本文整理汇总了PHP中extend_template函数的典型用法代码示例。如果您正苦于以下问题:PHP extend_template函数的具体用法?PHP extend_template怎么用?PHP extend_template使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了extend_template函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: extend_template
<?php
extend_template('default');
?>
<?php
echo form_open($form_action);
?>
<?php
if (isset($return_loc)) {
echo form_hidden(array('return_location' => $return_loc));
}
?>
<?php
$this->table->set_template($cp_pad_table_template);
$this->table->set_heading(array('data' => lang('preference'), 'style' => 'width:50%;'), lang('setting'));
foreach ($fields as $name => $details) {
$pref = '';
switch ($details['type']) {
case 's':
$label = lang($name);
if (is_array($details['value'])) {
$pref = form_dropdown($name, $details['value'], $details['selected'], 'id="' . $name . '"');
} else {
$pref = '<span class="notice">' . lang('not_available') . '</span>';
}
break;
case 'r':
$label = lang($name);
if (is_array($details['value'])) {
foreach ($details['value'] as $options) {
示例2: extend_template
<?php
extend_template('basic');
?>
<div class="heading"><h2 class="edit">
<?php
if ($this->config->item('multiple_sites_enabled') == 'y') {
?>
<?php
echo form_dropdown('sites_list_pulldown', $sites_dropdown, $site_id, 'id="site_list_pulldown"');
?>
<?php
}
?>
<?php
echo $page_title;
?>
</h2></div>
<div class="pageContents">
<?php
$this->load->view('_shared/message');
?>
<p>
<?php
if ($group_id == 1) {
?>
<?php
echo lang('super_admin_edit_note');
示例3: extend_template
<?php
extend_template('wrapper', 'ee_right_nav');
?>
<div class="contents">
<?php
enabled('ee_right_nav') && $this->view('_shared/right_nav');
?>
<?php
if (isset($cp_notice) && !empty($cp_notice)) {
?>
<div id="ee_important_message" class="<?php
echo !$info_message_open ? 'closed' : 'open';
?>
">
<div class="contents" id="ee_homepage_notice">
<div class="heading">
<h2><span class="ee_notice_icon"></span><?php
echo lang('important_messages');
?>
<span class="msg_open_close">Ignore Button</span></h2>
</div>
<div class="pageContents open" id="noticeContents">
<p id="newVersionNotice"><?php
echo $cp_notice;
?>
</p>
<div class="clear"></div>
</div>
示例4: extend_template
<?php
extend_template('wrapper');
?>
<?php
enabled('ee_message') && $this->view('_shared/message');
?>
<?php
if ($message or isset($new_checksums)) {
?>
<div id="ee_important_message" class="<?php
echo !$info_message_open ? 'closed' : 'open';
?>
">
<div class="contents" id="ee_homepage_notice">
<div class="heading">
<h2><span class="ee_notice_icon"></span><?php
echo lang('important_messages');
?>
<span class="msg_open_close">Ignore Button</span></h2>
</div>
<div class="pageContents open" id="noticeContents">
<?php
// New Version Notice
if ($message) {
?>
<p id="newVersionNotice"><?php
echo $message;
?>
示例5: lang
<?php
$can_add_site = (bool) lang('create_new_site');
if ($can_add_site) {
extend_template('default');
} else {
extend_template('default', 'ee_right_nav');
}
?>
<h4><?php
echo lang('msm_product_name');
?>
</h4>
<p><?php
echo lang('msm_version') . $msm_version . ' ' . lang('msm_build_number') . $msm_build_number;
?>
</p>
<?php
$this->table->set_template($cp_pad_table_template);
$this->table->set_heading(array('data' => lang('site_id'), 'width' => '7%'), lang('site_label'), lang('site_name'), lang('edit_site'), lang('delete'));
foreach ($site_data->result() as $site) {
$this->table->add_row($site->site_id, "<strong>{$site->site_label}</strong>", $site->site_name, '<a href="' . BASE . AMP . 'C=sites' . AMP . 'M=add_edit_site' . AMP . 'site_id=' . $site->site_id . '">' . lang('edit_site') . '</a>', $site->site_id == 1 ? '----' : '<a href="' . BASE . AMP . 'C=sites' . AMP . 'M=site_delete_confirm' . AMP . 'site_id=' . $site->site_id . '">' . lang('delete') . '</a>');
}
echo $this->table->generate();