本文整理汇总了PHP中Skin::get_template方法的典型用法代码示例。如果您正苦于以下问题:PHP Skin::get_template方法的具体用法?PHP Skin::get_template怎么用?PHP Skin::get_template使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Skin
的用法示例。
在下文中一共展示了Skin::get_template方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: switch
/**
* Those templates are used for example by the messaging screens.
*/
function get_template($name)
{
switch ($name) {
case 'Form':
// Default Form settings:
return array('layout' => 'fieldset', 'title_fmt' => '<span style="float:right">$global_icons$</span><h2>$title$</h2>' . "\n", 'no_title_fmt' => '<span style="float:right">$global_icons$</span>' . "\n", 'formstart' => '<table class="bForums" width="100%" cellspacing="1" cellpadding="2" border="0">', 'formend' => '</table>', 'fieldset_begin' => '<tr><th colspan="3" $fieldset_attribs$>$fieldset_title$</th></tr>', 'fieldset_end' => '', 'fieldstart' => '<tr $ID$>', 'fieldend' => '</tr>', 'labelclass' => '', 'labelstart' => '<td class="row1 left">', 'labelend' => '</td>', 'labelempty' => '<td class="row1 left"></td>', 'inputstart' => '<td class="row2 left">', 'inputend' => '</td>', 'infostart' => '<td class="row2 left" colspan="2">', 'infoend' => '</td>', 'buttonsstart' => '<tr><td colspan="2" class="buttons">', 'buttonsend' => '</td></tr>', 'inline_labelstart' => '<td class="left" colspan="2">', 'inline_labelend' => '</td>', 'inline_inputstart' => '', 'inline_inputend' => '', 'customstart' => '<tr><td colspan="2" class="custom_content">', 'customend' => '</td></tr>', 'note_format' => ' <span class="notes">%s</span>');
default:
// Delegate to parent class:
return parent::get_template($name);
}
}
示例2: init_params_by_skin
/**
* Init results params from skin template params. It's used when Results table is filled from ajax result.
*
* @param string the template param which can have values( 'admin', 'front' )
* @param string the name of the skin
*/
function init_params_by_skin($skin_type, $skin_name)
{
switch ($skin_type) {
case 'admin':
// admin skin type
global $adminskins_path;
require_once $adminskins_path . $skin_name . '/_adminUI.class.php';
$this->params = AdminUI::get_template('Results');
break;
case 'front':
// front office skin type
global $skins_path;
require_once $skins_path . $skin_name . '/_skin.class.php';
$this->params = Skin::get_template('Results');
break;
default:
debug_die('Invalid results template param!');
}
}
示例3: switch
/**
* Those templates are used for example by the messaging screens.
*/
function get_template($name)
{
switch ($name) {
case 'cat_array_mode':
// What category level use to display the items on disp=posts:
// - 'children' - Get items from current category and from all its sub-categories recirsively
// - 'parent' - Get items ONLY from current category WITHOUT sub-categories
return 'parent';
default:
// Delegate to parent class:
return parent::get_template($name);
}
}
示例4: switch
/**
* Those templates are used for example by the messaging screens.
*/
function get_template($name)
{
switch ($name) {
case 'disp_params':
// Params for skin_include( '$disp$', array( ) )
return array('author_link_text' => 'auto', 'profile_tabs' => array('block_start' => '<nav><ul class="nav nav-tabs profile_tabs">', 'item_start' => '<li>', 'item_end' => '</li>', 'item_selected_start' => '<li class="active">', 'item_selected_end' => '</li>', 'block_end' => '</ul></nav>'), 'pagination' => array('block_start' => '<div class="center"><ul class="pagination">', 'block_end' => '</ul></div>', 'page_current_template' => '<span>$page_num$</span>', 'page_item_before' => '<li>', 'page_item_after' => '</li>', 'page_item_current_before' => '<li class="active">', 'page_item_current_after' => '</li>', 'prev_text' => '<i class="fa fa-angle-double-left"></i>', 'next_text' => '<i class="fa fa-angle-double-right"></i>'), 'skin_form_before' => '<div class="panel panel-default skin-form">' . '<div class="panel-heading">' . '<h3 class="panel-title">$form_title$</h3>' . '</div>' . '<div class="panel-body">', 'skin_form_after' => '</div></div>', 'display_form_messages' => true, 'form_title_login' => T_('Log in to your account') . '$form_links$', 'form_title_lostpass' => get_request_title() . '$form_links$', 'lostpass_page_class' => 'evo_panel__lostpass', 'login_form_inskin' => false, 'login_page_class' => 'evo_panel__login', 'login_page_before' => '<div class="$form_class$">', 'login_page_after' => '</div>', 'display_reg_link' => true, 'abort_link_position' => 'form_title', 'abort_link_text' => '<button type="button" class="close" aria-label="Close"><span aria-hidden="true">×</span></button>', 'register_page_before' => '<div class="evo_panel__register">', 'register_page_after' => '</div>', 'register_form_title' => T_('Register'), 'register_links_attrs' => '', 'register_use_placeholders' => true, 'register_field_width' => 252, 'register_disabled_page_before' => '<div class="evo_panel__register register-disabled">', 'register_disabled_page_after' => '</div>', 'activate_form_title' => T_('Account activation'), 'activate_page_before' => '<div class="evo_panel__activation">', 'activate_page_after' => '</div>', 'search_input_before' => '<div class="input-group">', 'search_input_after' => '', 'search_submit_before' => '<span class="input-group-btn">', 'search_submit_after' => '</span></div>', 'search_use_editor' => true, 'search_author_format' => 'login', 'search_cell_author_start' => '<p class="small text-muted">', 'search_cell_author_end' => '</p>', 'search_date_format' => 'F jS, Y', 'featured_intro_before' => '<div class="jumbotron">', 'featured_intro_after' => '</div>', 'msgform_form_title' => T_('Sending a message'));
default:
// Delegate to parent class:
return parent::get_template($name);
}
}