$class = $arr[3];
}
- $replacement = '\$this->renderElement(\''. $element. '\', array(\'basename\' => \$character[\'Character\'][\''. $filename. '\'], \'classname\' => \''.$classname.'\', \'options\' => array(\'previewVersion\' => \''. $size. '\', \'class\' => \''. $class. '\', \'nodata\' => \'image\')));';
+ $replacement = '\$this->element(\''. $element. '\', array(\'basename\' => \$character[\'Character\'][\''. $filename. '\'], \'classname\' => \''.$classname.'\', \'options\' => array(\'previewVersion\' => \''. $size. '\', \'class\' => \''. $class. '\', \'nodata\' => \'image\')));';
$data = $this->__changeSkin($data, "echo ".$replacement, $pattern, 1);
}
$view = & new $this->Controller->view( $this->Controller , false );\r
$view->layout = $this->layout;\r
$mess = null;\r
- $content = $view->renderElement( $this->view_dir . DS . $type . DS . $this->template , array('content' => $content ) , true );\r
+ $content = $view->element( $this->view_dir . DS . $type . DS . $this->template , array('content' => $content ) , true );\r
if( 1.2 > (float) substr(Configure::version(),0,3) ){\r
$view->subDir = $this->layout_dir . DS . $type . DS ;\r
}else{\r
}\r
return true;\r
}\r
-}?>
\ No newline at end of file
+}?>\r
<p>
<div class="image">
<?php
- echo $this->renderElement('character_picture_image', array(
+ echo $this->element('character_picture_image', array(
'attachment' => $characterPicture['Attachment'][0],
'options' => array(
'previewVersion' => 'orig',
<?php
-echo $this->renderElement('character_picture_index', array(
+echo $this->element('character_picture_index', array(
'character' => $character,
'characterPictures' => $characterPictures,
'isOwner' => false,
<?php
-echo $this->renderElement('character_picture_view', array(
+echo $this->element('character_picture_view', array(
'characterPicture' => $characterPicture,
'isOwner' => false,
'isAdmin' => true,
<p>
<div class="image">
<?php
- echo $this->renderElement('character_picture_image', array(
+ echo $this->element('character_picture_image', array(
'attachment' => $characterPicture['Attachment'][0],
'options' => array(
'previewVersion' => 'orig',
<?php
-echo $this->renderElement('character_picture_index', array(
+echo $this->element('character_picture_index', array(
'character' => $character,
'characterPictures' => $characterPictures,
'isOwner' => false,
<?php
-echo $this->renderElement('character_picture_index', array(
+echo $this->element('character_picture_index', array(
'character' => $character,
'characterPictures' => $characterPictures,
'isOwner' => true,
<?php
-echo $this->renderElement('character_picture_view', array(
+echo $this->element('character_picture_view', array(
'characterPicture' => $characterPicture,
'isOwner' => $isOwner,
'isAdmin' => false,
<?php
-echo $this->renderElement(
+echo $this->element(
'character_profile_archive_index',
array(
'characterProfileArchives' => $characterProfileArchives,
<?php
-echo $this->renderElement(
+echo $this->element(
'character_profile_archive_view',
array(
'characterProfileArchive' => $characterProfileArchive,
}
$cacheSet['key'] .= "_".$character['Character']['id'];
-echo $this->renderElement(
+echo $this->element(
'character_profile_archive_index',
array(
'characterProfileArchives' => $characterProfileArchives,
<?php
-echo $this->renderElement(
+echo $this->element(
'character_profile_archive_confirm',
array(
'characterProfileArchives' => $this->data,
}
$cacheSet['key'] .= "_".$characterProfileArchive['CharacterProfileArchive']['id'];
-echo $this->renderElement(
+echo $this->element(
'character_profile_archive_view',
array(
'characterProfileArchive' => $characterProfileArchive,
$footer = null;
- echo $this->renderElement('box', array(
+ echo $this->element('box', array(
'header' => $header,
'body' => $body,
'footer' => $footer,
$footer = null;
- echo $this->renderElement('box', array(
+ echo $this->element('box', array(
'header' => $header,
'body' => $body,
'footer' => $footer,
</legend>
<?php
-echo $this->renderElement(
+echo $this->element(
'character_view',
array(
'character' => $character,
</div>
<?php
-echo $this->renderElement(
+echo $this->element(
'character_view',
array(
'character' => $this->data,
<?php
-echo $this->renderElement(
+echo $this->element(
'character_index',
array(
'character' => $characters,
<?php
-echo $this->renderElement(
+echo $this->element(
'character_view',
array(
'character' => $character,
</legend>
<?php
-echo $this->renderElement(
+echo $this->element(
'character_view',
array(
'character' => $character,
<td style="text-align: center;" class="image160" rowspan="3">
<div id="CharacterMainPicture" class="image150">
<?php
- echo $this->renderElement('character_picture_image', array(
+ echo $this->element('character_picture_image', array(
'basename' => $this->data['Character']['main_picture'],
'options' => array(
'class' => 'mainImage',
<?php
-echo $this->renderElement(
+echo $this->element(
'character_index',
array(
'character' => $characters,
<?php
-echo $this->renderElement(
+echo $this->element(
'character_index',
array(
'character' => $characters,
}
$cacheSet['key'] .= "_".$character['Character']['id'];
-echo $this->renderElement(
+echo $this->element(
'character_view',
array(
'character' => $character,
<?php if (isset($character['Character'])): ?>
<?php
- echo $this->renderElement(
+ echo $this->element(
'character_skinchanger',
array(
'character' => $character,
<td class="center">
<?php if ($site_configs['Character.listImage']['value'] == 2): ?>
<?php
- $picture = $this->renderElement('character_picture_image', array(
+ $picture = $this->element('character_picture_image', array(
'basename' => $character['Character']['main_picture'],
'options' => array(
'previewVersion' => 's',
<div class="picture">
<?php
- echo $this->renderElement('character_picture_tumbnail', array(
+ echo $this->element('character_picture_tumbnail', array(
'basename' => $characterPicture['Attachment'][0]['basename'],
'name' => $characterPicture['Attachment'][0]['alternative'],
'options' => array(
<td id="Character<?php echo $i ?>Picture" class="picture_<?php echo $previewVersion ?>">
<div class="CharacterThmbnailCol picture">
<?php
- echo $this->renderElement('character_picture_tumbnail', array(
+ echo $this->element('character_picture_tumbnail', array(
'basename' => $character['Character']['main_picture'],
'name' => $text->truncate($character['Character']['name'], 32),
'options' => array(
<td id="Character<?php echo $i ?>Picture" class="picture_<?php echo $previewVersion ?>">
<div class="CharacterThmbnailCol picture">
<?php
- echo $this->renderElement('character_picture_tumbnail', array(
+ echo $this->element('character_picture_tumbnail', array(
'basename' => $character['Character']['main_picture'],
'name' => $text->truncate($character['Character']['name'], 32),
'options' => array(
<div class="image">
<?php
- echo $this->renderElement('character_picture_image', array(
+ echo $this->element('character_picture_image', array(
'attachment' => $characterPicture['Attachment'][0],
'options' => array(
'previewVersion' => 'orig',
$footer .= '</ul></div>';
- echo $this->renderElement('box', array(
+ echo $this->element('box', array(
'id' => $id,
'header' => $title. $date. $public,
'body' => $characterProfileArchive['CharacterProfileArchive']['memo']. " ",
<?php
$character = $characterProfileArchive['CharacterProfileArchive']['value'];
- echo $this->renderElement(
+ echo $this->element(
'character_view',
array(
'character' => $character,
<?php if (isset($character['Character'])): ?>
<?php
- echo $this->renderElement(
+ echo $this->element(
'character_skinchanger',
array(
'character' => $character,
<?php if (isset($character['Character']['full_length']) && !empty($character['Character']['full_length'])): ?>
<?php
-echo $this->renderElement('character_picture_full', array(
+echo $this->element('character_picture_full', array(
'basename' => $character['Character']['full_length'],
'options' => array(
'previewVersion' => 'orig',
<td rowspan="4" class="image160" style="text-align:center;">
<div class="image150" id="CharacterMainPicture">
<?php
- $main_picture = $this->renderElement('character_picture_image', array(
+ $main_picture = $this->element('character_picture_image', array(
'basename' => $character['Character']['main_picture'],
'options' => array(
'class' => 'mainImage',
));
if (!$main_picture) {
- $main_picture = $this->renderElement('character_picture_image', array(
+ $main_picture = $this->element('character_picture_image', array(
'basename' => '',
'options' => array(
'class' => 'mainImage',
if ($num > 4) {
break;
}
- $picture = $this->renderElement('character_picture_image', array(
+ $picture = $this->element('character_picture_image', array(
'attachment' => $v['Attachment'][0],
'options' => array(
'previewVersion' => 's',
<?php if (isset($chracter['Character'])): ?>
<li>
<?php
- echo $this->renderElement(
+ echo $this->element(
'character_skinchanger',
array(
'character' => $character,
$key .= "_". $target_user['User']['id'];
}
- echo $this->renderElement('character_picture_table', array(
+ echo $this->element('character_picture_table', array(
'header' => sprintf(__("%s's Characters", true), $target_user['User']['name']),
'characters' => $target_user_characters,
'previewVersion' => 'm',
<?php if (CorePlus::is_valid($public_characters, '0')): ?>
<!-- All Latest Characters -->
<?php
- echo $this->renderElement('character_picture_table', array(
+ echo $this->element('character_picture_table', array(
'header' => __('Latest Characters', true),
'characters' => $public_characters,
'previewVersion' => 'm',
<?php
-echo $this->renderElement('error', array(
+echo $this->element('error', array(
'message' => __('There is no page.', true),
));
<?php
-echo $this->renderElement('error', array(
+echo $this->element('error', array(
'message' => __('There is no page.', true),
));
<div id="container">
<div id="header">
<?php
-echo $this->renderElement('pc_header_intro', array(
+echo $this->element('pc_header_intro', array(
'site_configs' => $site_configs,
));
?>
<li>
<?php echo $html->link(__('Characters', true), array('controller' => 'characters', 'action' => 'index')); ?>
<?php
-echo $this->renderElement('admin_character_sidenav', array(
+echo $this->element('admin_character_sidenav', array(
));
?>
</li>
<?php echo $html->link(__('Systems', true), array('controller' => 'systems', 'action' => 'index')); ?>
<?php
if (!$site_configs['System.singleSystem']['value']) {
- echo $this->renderElement('admin_system_sidenav', array(
+ echo $this->element('admin_system_sidenav', array(
));
}
?>
<li>
<?php echo $html->link(__('Users', true), array('controller' => 'users', 'action' => 'index')); ?>
<?php
-echo $this->renderElement('admin_user_sidenav', array(
+echo $this->element('admin_user_sidenav', array(
));
?>
</li>
switch ($this->params["controller"]) {
case 'users':
case 'regist_mails':
- echo $this->renderElement('admin_user_sidenav', array());
+ echo $this->element('admin_user_sidenav', array());
break;
case 'systems':
case 'character_sheets':
case 'profile_tables':
case 'profile_table_statics':
if (!$site_configs['System.singleSystem']['value'] || (isset($selected_system) && !empty($selected_system))) {
- echo $this->renderElement('admin_system_sidenav', array());
+ echo $this->element('admin_system_sidenav', array());
}
break;
case 'characters':
case 'character_profile_archives':
case 'character_pictures':
- echo $this->renderElement('admin_character_sidenav', array());
+ echo $this->element('admin_character_sidenav', array());
break;
case 'site_configs':
switch ($this->params["action"]) {
case 'admin_edit_customcss':
case 'admin_delete_allcache':
- echo $this->renderElement('admin_config_sidenav', array());
+ echo $this->element('admin_config_sidenav', array());
break;
default:
echo null;
<div id="footer">
<?php
- echo $this->renderElement('version',
+ echo $this->element('version',
array(
'version' => Configure::read('Version'),
)
<div id="header">
<?php
-echo $this->renderElement('pc_header_intro', array(
+echo $this->element('pc_header_intro', array(
'site_configs' => $site_configs,
));
?>
case 'change_password':
case 'delete':
if ($user['User']['id']) {
- echo $this->renderElement('config_sidenav', array());
+ echo $this->element('config_sidenav', array());
}
break;
default:
break;
case 'regist_mails':
if ($user['User']['id']) {
- echo $this->renderElement('config_sidenav', array());
+ echo $this->element('config_sidenav', array());
}
break;
case 'systems':
if (!$site_configs['System.singleSystem']['value']) {
- echo $this->renderElement('system_sidenav', array());
+ echo $this->element('system_sidenav', array());
}
break;
case 'characters':
case 'character_profile_archives':
case 'character_pictures':
- echo $this->renderElement('character_sidenav', array());
+ echo $this->element('character_sidenav', array());
break;
default:
echo null;
<?php endif; ?>
<?php
- echo $this->renderElement('version',
+ echo $this->element('version',
array(
'version' => Configure::read('Version'),
)
$footer = null;
- echo $this->renderElement('box', array(
+ echo $this->element('box', array(
'header' => $system_img. $system_name. $public. $npc_use,
'body' => $system['System']['detail']." ",
'footer' => $footer,
<?php
$total = $html->tag('span', sprintf(__('Total Characters %d', true), $system['System']['character_num']), array('class' => 'total_chara_num'));
- echo $this->renderElement('character_picture_table', array(
+ echo $this->element('character_picture_table', array(
'header' => __('Characters', true). $total,
'characters' => $system['Character'],
'previewVersion' => 'xs',
$total = $html->tag('span', sprintf(__('Total Characters %d', true), $system['System']['character_num']), array('class' => 'total_chara_num'));
- echo $this->renderElement('character_picture_table', array(
+ echo $this->element('character_picture_table', array(
'header' => $system_name. $total,
'characters' => $system['Character'],
'previewVersion' => 's',
'<li>'.$html->link(__('Delete System', true), array('action' => 'delete', $system['System']['id'])).'</li>'.
'</ul>';
- echo $this->renderElement('box', array(
+ echo $this->element('box', array(
'header' => $system_name. $public. $system_link. $npc_use,
'body' => $body,
'footer' => $footer,
<?php
$total = $html->tag('span', sprintf(__('Total Characters %d', true), $system['System']['character_num']), array('class' => 'total_chara_num'));
- echo $this->renderElement('character_picture_table', array(
+ echo $this->element('character_picture_table', array(
'header' => __('Characters', true). $total,
'characters' => $system['Character'],
'previewVersion' => 'xs',
$footer = null;
- echo $this->renderElement('box', array(
+ echo $this->element('box', array(
'header' =>$header,
'body' => $body,
'footer' => $footer,
$total = $html->tag('span', sprintf(__('Total Characters %d', true), $system['System']['character_num']), array('class' => 'total_chara_num'));
- echo $this->renderElement('character_picture_table', array(
+ echo $this->element('character_picture_table', array(
'header' => $system_name. $total,
'characters' => $system['Character'],
'previewVersion' => 's',
$footer = null;
- echo $this->renderElement('box', array(
+ echo $this->element('box', array(
'header' => $system_name. $system_link,
'body' => $body,
'footer' => $footer,
$add_link = $html->tag('span', $html->link(__('New Character', true), array('controller' => 'characters', 'action' => 'add', 'system_id:'.$system['System']['id'])), array('class' => 'addLink'));
- echo $this->renderElement('character_picture_table', array(
+ echo $this->element('character_picture_table', array(
'header' => __('Characters', true). $total. $add_link,
'characters' => $system['Character'],
'previewVersion' => 'xs',
<?php
$total = $html->tag('span', sprintf(__('Total Characters %d', true), count($target_user['Character'])), array('class' => 'total_chara_num'));
- echo $this->renderElement('character_picture_table', array(
+ echo $this->element('character_picture_table', array(
'header' => __('Characters', true). $total,
'characters' => $target_user['Character'],
'previewVersion' => 'xs',
<?php
if (!empty($user['Character'])) {
foreach ($user['Character'] as $v) {
- $picture = $this->renderElement('character_picture_image', array(
+ $picture = $this->element('character_picture_image', array(
'basename' => $v['main_picture'],
'options' => array(
'previewVersion' => 'xs',
<?php
$total = $html->tag('span', sprintf(__('Total Characters %d', true), count($target_user['Character'])), array('class' => 'total_chara_num'));
- echo $this->renderElement('character_picture_table', array(
+ echo $this->element('character_picture_table', array(
'header' => __('Characters', true). $total,
'characters' => $target_user['Character'],
'previewVersion' => 'xs',
<?php
if (!empty($user['Character'])) {
foreach ($user['Character'] as $v) {
- $picture = $this->renderElement('character_picture_image', array(
+ $picture = $this->element('character_picture_image', array(
'basename' => $v['main_picture'],
'options' => array(
'previewVersion' => 'xs',
<div id="home" class="layout2colums users view">
<?php
- echo $this->renderElement('home_left', array(
+ echo $this->element('home_left', array(
'user' => $user,
'owner' => false,
));
- echo $this->renderElement('home_right', array(
+ echo $this->element('home_right', array(
'user' => $user,
'owner' => false,
'public_characters' => $public_characters,