This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* POSTモジュール処理前 | |
* $thisModuleのプロパティを参照・操作するなど | |
* | |
* @param ACMS_POST $thisModule | |
*/ | |
public function beforePostFire($thisModule) | |
{ | |
$moduleName = get_class($thisModule); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>カスタムフィールドグループ demo</h1> | |
<table class="js-fieldgroup-sortable"> | |
<tr> | |
<td><input type="button" class="item-insert" value="追加" /></td> | |
<td>日付</td> | |
<td>メールアドレス</td> | |
<td>削除</td> | |
</tr> | |
<!-- BEGIN sampleGroup:loop --> | |
<tr class="sortable-item"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { | |
// iPhone, iPod Touchの場合の動作 | |
MasterViewController *masterViewController = [[[MasterViewController alloc] initWithNibName:@"MasterViewController_iPhone" bundle:nil] autorelease]; | |
self.navigationController = [[[UINavigationController alloc] initWithRootViewController:masterViewController] autorelease]; | |
self.window.rootViewController = self.navigationController; | |
} else { | |
// iPadの場合の動作 | |
MasterViewController *masterViewController = [[[MasterViewController alloc] initWithNibName:@"MasterViewController_iPhone" bundle:nil] autorelease]; | |
self.navigationController = [[[UINavigationController alloc] initWithRootViewController:masterViewController] autorelease]; | |
self.window.rootViewController = self.navigationController; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { background-color: #DDDDDD; font: 30px sans-serif; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ACMS_GET_CustomModule extends ACMS_GET | |
{ | |
function get() | |
{ | |
$Tpl = new Template($this->tpl, new ACMS_Corrector()); | |
// 中略 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ACMS_User_POST_Sample extends ACMS_POST | |
{ | |
public function post() | |
{ | |
$Field =& $this->extract('field', new ACMS_Validator()); | |
$this->saveField('eid', EID, $Field); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- blog custom field --> | |
<h2>customGroup</h2> | |
<table class="js-fieldgroup-sortable"> | |
<tr> | |
<td><input type="button" class="item-insert acms-admin-btn-admin" value="追加" /></td> | |
<th>変換前</th> | |
<th>変換後</th> | |
<td>削除</td> | |
</tr> | |
<!-- BEGIN customGroup:loop --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<php | |
... | |
if ( 1 | |
and $to = $Mail->getArray('AdminTo') | |
and $subjectTpl = findTemplate($Mail->get('AdminSubjectTpl')) | |
and $bodyTpl = findTemplate($Mail->get('AdminBodyTpl')) | |
) { | |
$Mail->set('adminSubject', $this->getMailTxt($subjectTpl, $Field)); | |
$Mail->set('adminBody', $this->getMailTxt($bodyTpl, $Field)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadEntryFulltext($eid) | |
{ | |
$DB = DB::singleton(dsn()); | |
$SQL = SQL::newSelect('column'); | |
$SQL->addWhereOpr('column_entry_id', $eid); | |
$q = $SQL->get(dsn()); | |
$text = ''; | |
$meta = ''; | |
if ( $DB->query($q, 'fetch') and ($row = $DB->fetch($q)) ) { do { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------- | |
// cache | |
define('ZIP_USE', !DEBUG_MODE and !!ZIP_ENABLE and ('on' == config('zip_http'))); | |
if ( 1 | |
and !DEBUG_MODE | |
and ('on' == config('cache')) | |
and (!SID or (config('subscriber_cache') === 'on' and ACMS_RAM::userAuth(SUID) === 'subscriber' and !$Q->get('admin'))) | |
and !(is_ajax() and config('ajax_nocache') === 'on' and $GetQuery->get('nocache') === 'yes') | |
and !HTTPS | |
and !ACMS_POST |
OlderNewer