本文整理汇总了PHP中Skin::get_param_definitions方法的典型用法代码示例。如果您正苦于以下问题:PHP Skin::get_param_definitions方法的具体用法?PHP Skin::get_param_definitions怎么用?PHP Skin::get_param_definitions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Skin
的用法示例。
在下文中一共展示了Skin::get_param_definitions方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
*/
function get_param_definitions($params)
{
// Load to use function get_available_thumb_sizes()
load_funcs('files/model/_image.funcs.php');
$r = array_merge(array('menu_bg_color' => array('label' => T_('Menu background color'), 'note' => T_('E-g: #0000ff for blue'), 'defaultvalue' => '#333333', 'type' => 'color'), 'menu_text_color' => array('label' => T_('Menu text color'), 'note' => T_('E-g: #ff6600 for orange'), 'defaultvalue' => '#AAAAAA', 'type' => 'color'), 'page_bg_color' => array('label' => T_('Page background color'), 'note' => T_('E-g: #ff0000 for red'), 'defaultvalue' => '#666666', 'type' => 'color'), 'page_text_color' => array('label' => T_('Page text color'), 'note' => T_('E-g: #00ff00 for green'), 'defaultvalue' => '#AAAAAA', 'type' => 'color'), 'post_bg_color' => array('label' => T_('Post info background color'), 'note' => T_('E-g: #0000ff for blue'), 'defaultvalue' => '#555555', 'type' => 'color'), 'post_text_color' => array('label' => T_('Post info text color'), 'note' => T_('E-g: #ff6600 for orange'), 'defaultvalue' => '#AAAAAA', 'type' => 'color'), 'colorbox' => array('label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post' => array('label' => T_('Voting on Post Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment' => array('label' => T_('Voting on Comment Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user' => array('label' => T_('Voting on User Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'gender_colored' => array('label' => T_('Display gender'), 'note' => T_('Use colored usernames to differentiate men & women.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bubbletip' => array('label' => T_('Username bubble tips'), 'note' => T_('Check to enable bubble tips on usernames'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'autocomplete_usernames' => array('label' => T_('Autocomplete usernames'), 'note' => T_('Check to enable auto-completion of usernames entered after a "@" sign in the comment forms'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'banner_public' => array('label' => T_('"Public" banner'), 'note' => T_('Display banner for "Public" posts (posts & comments)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'mediaidx_thumb_size' => array('label' => T_('Thumbnail size for media index'), 'note' => '', 'defaultvalue' => 'fit-128x128', 'options' => get_available_thumb_sizes(), 'type' => 'select'), 'posts_thumb_size' => array('label' => T_('Thumbnail size in post list'), 'note' => '', 'defaultvalue' => 'crop-192x192', 'options' => get_available_thumb_sizes(), 'type' => 'select'), 'single_thumb_size' => array('label' => T_('Thumbnail size in single page'), 'note' => '', 'defaultvalue' => 'fit-256x256', 'options' => get_available_thumb_sizes(), 'type' => 'select')), parent::get_param_definitions($params));
return $r;
}
示例2: array
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
*/
function get_param_definitions($params)
{
// Load to use function get_available_thumb_sizes()
load_funcs('files/model/_image.funcs.php');
$r = array_merge(array('section_layout_start' => array('layout' => 'begin_fieldset', 'label' => T_('Layout Settings')), 'layout' => array('label' => T_('Layout'), 'note' => '', 'defaultvalue' => 'right_sidebar', 'options' => array('single_column' => T_('Single Column Large'), 'single_column_normal' => T_('Single Column'), 'single_column_narrow' => T_('Single Column Narrow'), 'single_column_extra_narrow' => T_('Single Column Extra Narrow'), 'left_sidebar' => T_('Left Sidebar'), 'right_sidebar' => T_('Right Sidebar')), 'type' => 'select'), 'section_layout_end' => array('layout' => 'end_fieldset'), 'section_image_start' => array('layout' => 'begin_fieldset', 'label' => T_('Images Layout')), 'max_image_height' => array('label' => T_('Max image height'), 'note' => 'px', 'defaultvalue' => '', 'type' => 'integer', 'allow_empty' => true), 'mediaidx_thumb_size' => array('label' => T_('Thumbnail size for media index'), 'note' => '', 'defaultvalue' => 'fit-80x80', 'options' => get_available_thumb_sizes(), 'type' => 'select'), 'section_image_end' => array('layout' => 'end_fieldset'), 'section_page_start' => array('layout' => 'begin_fieldset', 'label' => T_('Custom Page Styles')), 'page_bg_color' => array('label' => T_('Page background color'), 'note' => T_('E-g: #ff0000 for red'), 'defaultvalue' => '#666666', 'type' => 'color'), 'page_text_color' => array('label' => T_('Page text color'), 'note' => T_('E-g: #00ff00 for green'), 'defaultvalue' => '#AAAAAA', 'type' => 'color'), 'menu_bg_color' => array('label' => T_('Menu background color'), 'note' => T_('E-g: #0000ff for blue'), 'defaultvalue' => '#333333', 'type' => 'color'), 'menu_text_color' => array('label' => T_('Menu elements color'), 'note' => T_('E-g: #ff6600 for orange'), 'defaultvalue' => '#AAAAAA', 'type' => 'color'), 'menu_links_hover' => array('label' => T_('Menu links hover color'), 'note' => T_('E-g: #ff6600 for orange'), 'defaultvalue' => '#AAAAAA', 'type' => 'color'), 'post_bg_color' => array('label' => T_('Post info background color'), 'note' => T_('E-g: #0000ff for blue'), 'defaultvalue' => '#555555', 'type' => 'color'), 'post_border_col' => array('label' => T_('Post border color'), 'note' => T_('E-g: #0000ff for blue'), 'defaultvalue' => '#aaa', 'type' => 'color'), 'post_text_color' => array('label' => T_('Post info text color'), 'note' => T_('E-g: #ff6600 for orange'), 'defaultvalue' => '#AAAAAA', 'type' => 'color'), 'main_link_color' => array('label' => T_('Main content links color'), 'note' => T_('E-g: #fff for white'), 'defaultvalue' => '#fff', 'type' => 'color'), 'panel_titles' => array('label' => T_('Panel titles color'), 'note' => T_('E-g: #fff for white'), 'defaultvalue' => '#fff', 'type' => 'color'), 'section_page_end' => array('layout' => 'end_fieldset'), 'subm_prev_start' => array('layout' => 'begin_fieldset', 'label' => T_('Submit and Preview buttons styles')), 'prev_bgd' => array('label' => T_('Panel titles color'), 'defaultvalue' => '#aaa', 'type' => 'color'), 'subm_bgd' => array('label' => T_('Panel titles color'), 'defaultvalue' => '#333', 'type' => 'color'), 'subm_prev_end' => array('layout' => 'end_fieldset'), 'footer_start' => array('layout' => 'begin_fieldset', 'label' => T_('Submit and Preview buttons styles')), 'footer_bgd' => array('label' => T_('Footer background color'), 'defaultvalue' => '#aaa', 'type' => 'color'), 'footer_text' => array('label' => T_('Panel titles color'), 'defaultvalue' => '#aaa', 'type' => 'color'), 'footer_links' => array('label' => T_('Panel titles color'), 'defaultvalue' => '#aaa', 'type' => 'color'), 'footer_end' => array('layout' => 'end_fieldset'), 'section_colorbox_start' => array('layout' => 'begin_fieldset', 'label' => T_('Colorbox Image Zoom')), 'colorbox' => array('label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post' => array('label' => T_('Voting on Post Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment' => array('label' => T_('Voting on Comment Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user' => array('label' => T_('Voting on User Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_colorbox_end' => array('layout' => 'end_fieldset'), 'section_username_start' => array('layout' => 'begin_fieldset', 'label' => T_('Username options')), 'gender_colored' => array('label' => T_('Display gender'), 'note' => T_('Use colored usernames to differentiate men & women.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bubbletip' => array('label' => T_('Username bubble tips'), 'note' => T_('Check to enable bubble tips on usernames'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'autocomplete_usernames' => array('label' => T_('Autocomplete usernames'), 'note' => T_('Check to enable auto-completion of usernames entered after a "@" sign in the comment forms'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_username_end' => array('layout' => 'end_fieldset'), 'section_access_start' => array('layout' => 'begin_fieldset', 'label' => T_('When access is denied or requires login...')), 'access_login_containers' => array('label' => T_('Display on login screen'), 'note' => '', 'type' => 'checklist', 'options' => array(array('header', sprintf(T_('"%s" container'), NT_('Header')), 1), array('page_top', sprintf(T_('"%s" container'), NT_('Page Top')), 1), array('menu', sprintf(T_('"%s" container'), NT_('Menu')), 0), array('sidebar', sprintf(T_('"%s" container'), NT_('Sidebar')), 0), array('sidebar2', sprintf(T_('"%s" container'), NT_('Sidebar 2')), 0), array('footer', sprintf(T_('"%s" container'), NT_('Footer')), 1))), 'section_access_end' => array('layout' => 'end_fieldset')), parent::get_param_definitions($params));
return $r;
}
示例3: array
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
*/
function get_param_definitions($params)
{
// Load to use function get_available_thumb_sizes()
load_funcs('files/model/_image.funcs.php');
$r = array_merge(array('section_layout_start' => array('layout' => 'begin_fieldset', 'label' => T_('General Layout Settings')), 'layout' => array('label' => T_('Default Pages Layout'), 'note' => T_('Select general skin layout.'), 'defaultvalue' => 'right_sidebar', 'options' => array('single_column' => T_('Single Column Large'), 'single_column_normal' => T_('Single Column'), 'single_column_narrow' => T_('Single Column Narrow'), 'single_column_extra_narrow' => T_('Single Column Extra Narrow'), 'left_sidebar' => T_('Left Sidebar'), 'right_sidebar' => T_('Right Sidebar')), 'type' => 'select'), 'max_image_height' => array('label' => T_('Max image height'), 'note' => 'px. ' . T_('Set maximum height for post images.'), 'defaultvalue' => '', 'type' => 'integer', 'allow_empty' => true, 'size' => '7'), 'links_color' => array('label' => T_('Links Color Schemes'), 'note' => T_('Default links color schemes is') . ' #096. ' . T_('This color is used for links, buttons, hover and active classes.'), 'defaultvalue' => '#096', 'type' => 'color'), 'site_bg_color' => array('label' => T_('Color scheme supporting color'), 'note' => T_('Default supporting color is') . ' #fff. ' . T_('This color appears as the second color scheme combination and is used as a supporting color for links and page sections.'), 'defaultvalue' => '#fff', 'type' => 'color'), 'site_borders' => array('label' => T_('Color scheme second supporting color'), 'note' => T_('Default color is') . ' #eee. ' . T_('This color is used as a third color used for the custom site color scheme. It is mostly used for borders on elements.'), 'defaultvalue' => '#eee', 'type' => 'color'), 'title_logo_w' => array('label' => T_('Display logo/title'), 'note' => T_('Decide whether you want to display blog title, logo or neither of both.'), 'defaultvalue' => 'display_logo', 'options' => array('display_logo' => T_('Display logo'), 'display_title' => T_('Display title'), 'none' => T_('None')), 'type' => 'select'), 'logo_w_path' => array('label' => T_('Logo path'), 'note' => T_('Works only if "Display logo" selected above. Please use logo from within the skin folder.'), 'defaultvalue' => 'logo.png', 'type' => 'text', 'size' => '25'), 'backtotop_vis' => array('label' => T_('"Back to Top" button'), 'note' => T_('Check to enable the "Back to Top" button.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_layout_end' => array('layout' => 'end_fieldset'), 'nav_links_start' => array('layout' => 'begin_fieldset', 'label' => T_('Navigation Menu Settings')), 'menu_bg_color' => array('label' => T_('Navigation background color'), 'note' => T_('Default color is.') . ' #fff.', 'defaultvalue' => '#fff', 'type' => 'color'), 'menu_a_color' => array('label' => T_('Navigation links color'), 'note' => T_('Default color is.') . ' #333.', 'defaultvalue' => '#333', 'type' => 'color'), 'nav_search' => array('label' => T_('Navigation Search Field'), 'note' => T_('Check to enable a skin-specific search field in navigation menu.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'nav_social' => array('label' => T_('Navigation Social Links'), 'note' => T_('Check to enable a special social links widget in the navigation.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'nav_hamb_menu' => array('label' => T_('Hamburger menu at'), 'note' => T_('px. Set the width in pixels below which menu will have hamburger layout.'), 'defaultvalue' => '820', 'type' => 'integer', 'size' => '7'), 'nav_links_end' => array('layout' => 'end_fieldset'), 'front_disp_start' => array('layout' => 'begin_fieldset', 'label' => T_('Front Page Settings')), 'layout_front' => array('label' => T_('Front Page Layout'), 'note' => T_('Select front page layout.'), 'defaultvalue' => 'single_column_narrow', 'options' => array('single_column' => T_('Single Column Large'), 'single_column_normal' => T_('Single Column'), 'single_column_narrow' => T_('Single Column Narrow'), 'single_column_extra_narrow' => T_('Single Column Extra Narrow'), 'left_sidebar' => T_('Left Sidebar'), 'right_sidebar' => T_('Right Sidebar')), 'type' => 'select'), 'fr_sec_enable' => array('label' => T_('Enable front page intro section'), 'note' => T_('Check this to show a special intro section on disp=front of this skin.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'fr_sec_txt' => array('label' => T_('Intro text'), 'note' => T_('This is the introduction text that will appear in the disp=front. Type text or code in this field.'), 'defaultvalue' => "\nWelcome to Ego skin. Built specially for <a href='http://b2evolution.net/'>b2evolution</a>. Set the button destination in the back-office:", 'type' => 'textarea'), 'frsec_but_enable' => array('label' => T_('Enable section button'), 'note' => T_('Check this to enable the linking button in this section.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'fr_sec_btn_link' => array('label' => T_('Link URL'), 'note' => T_('Type the link destination (URL) you want this button to lead on. It can be any page, even external.'), 'defaultvalue' => "http://b2evolution.net/", 'type' => 'text', 'size' => 50), 'fr_sec_btn_txt' => array('label' => T_('Link title'), 'note' => T_('Type the title of the link.'), 'defaultvalue' => 'Link title', 'type' => 'text', 'size' => 20), 'front_disp_end' => array('layout' => 'end_fieldset'), 'posts_disp_start' => array('layout' => 'begin_fieldset', 'label' => T_('Posts Page Settings')), 'layout_posts' => array('label' => T_('Posts Page Layout'), 'note' => T_('Select posts page layout.'), 'defaultvalue' => 'right_sidebar', 'options' => array('single_column' => T_('Single Column Large'), 'single_column_normal' => T_('Single Column'), 'single_column_narrow' => T_('Single Column Narrow'), 'single_column_extra_narrow' => T_('Single Column Extra Narrow'), 'left_sidebar' => T_('Left Sidebar'), 'right_sidebar' => T_('Right Sidebar')), 'type' => 'select'), 'posts_format' => array('label' => T_('Posts Format'), 'note' => '(' . T_('Select posts format on posts page.') . ')', 'type' => 'radio', 'options' => array(array('default', T_('Default')), array('simple', T_('Simple')), array('masonry', T_('Masonry'))), 'defaultvalue' => 'default'), 'posts_masonry' => array('label' => T_('Number of columns'), 'note' => '(' . T_('Select the number of columns if Masonry post format is selected above') . ')', 'type' => 'radio', 'options' => array(array('one', T_('1 Column')), array('two', T_('2 Columns')), array('three', T_('3 Columns'))), 'defaultvalue' => 'one'), 'top_pagination' => array('label' => T_('Enable top pagination'), 'note' => T_('Check this to enable top page pagination.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bottom_pagination' => array('label' => T_('Enable bottom pagination'), 'note' => T_('Check this to enable bottom page pagination.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'pag_alignment' => array('label' => T_('Pagination Alignment'), 'note' => T_('Select pagination alignment on posts page.'), 'type' => 'select', 'options' => array('left' => T_('Left'), 'center' => T_('Center'), 'right' => T_('Right')), 'defaultvalue' => 'left'), 'posts_disp_end' => array('layout' => 'end_fieldset'), 'single_disp_start' => array('layout' => 'begin_fieldset', 'label' => T_('Single Page Settings')), 'layout_single' => array('label' => T_('Single Page Layout'), 'note' => T_('Select single page layout.'), 'defaultvalue' => 'right_sidebar', 'options' => array('single_column' => T_('Single Column Large'), 'single_column_normal' => T_('Single Column'), 'single_column_narrow' => T_('Single Column Narrow'), 'single_column_extra_narrow' => T_('Single Column Extra Narrow'), 'left_sidebar' => T_('Left Sidebar'), 'right_sidebar' => T_('Right Sidebar')), 'type' => 'select'), 'sidebar2_single' => array('label' => T_('Sidebar2 on Single Page'), 'note' => T_('Check this to enable Sidebar2 container only on single pages. On other pages regular Sidebar container will be shown.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'cover_image_start' => array('layout' => 'begin_fieldset', 'label' => T_('Cover Image Settings')), 'spec_cover_image' => array('label' => T_('Special Cover Image Position'), 'note' => T_('Check this to enable a special cover image placement.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'cover_text' => array('label' => T_('Cover section text color'), 'note' => T_('Default color is') . ' #fefefe.', 'defaultvalue' => '#fefefe', 'type' => 'color'), 'cover_links' => array('label' => T_('Cover section links color'), 'note' => T_('Default color is') . ' #fefefe.', 'defaultvalue' => '#fefefe', 'type' => 'color'), 'cover_borders' => array('label' => T_('Cover section borders color'), 'note' => T_('Default color is') . ' #fefefe.', 'defaultvalue' => '#fefefe', 'type' => 'color'), 'cover_image_end' => array('layout' => 'end_fieldset'), 'single_disp_end' => array('layout' => 'end_fieldset'), 'mediaidx_start' => array('layout' => 'begin_fieldset', 'label' => T_('Media Page Settings')), 'mediaidx_thumb_size' => array('label' => T_('Thumbnail size'), 'note' => T_('Thumbnail size for Media index page.'), 'defaultvalue' => 'crop-480x320', 'options' => get_available_thumb_sizes(), 'type' => 'select'), 'mediaidx_masonry' => array('label' => T_('Masonry Columns'), 'note' => '(' . T_('Select the number of columns for displaying media items') . ')', 'type' => 'radio', 'options' => array(array('one', T_('1 Column')), array('two', T_('2 Columns')), array('three', T_('3 Columns'))), 'defaultvalue' => 'three'), 'mediaidx_end' => array('layout' => 'end_fieldset'), 'catdir_start' => array('layout' => 'begin_fieldset', 'label' => T_('Category Page Settings')), 'catdir_layout' => array('label' => T_('Category Page Layout'), 'note' => '(' . T_('Select the number of columns for displaying media items') . ')', 'type' => 'radio', 'options' => array(array('catdir_list', T_('List')), array('catdir_masonry', T_('Masonry'))), 'defaultvalue' => 'catdir_list'), 'catdir_masonry_cols' => array('label' => T_('Masonry Columns'), 'note' => '(' . T_('Select the number of columns for displaying media items') . ')', 'type' => 'radio', 'options' => array(array('one', T_('1 Column')), array('two', T_('2 Columns')), array('three', T_('3 Columns'))), 'defaultvalue' => 'two'), 'catdir_thumb_size' => array('label' => T_('Thumbnail size'), 'note' => T_('Use this only if Masonry layout is enabled.'), 'defaultvalue' => 'crop-480x320', 'options' => get_available_thumb_sizes(), 'type' => 'select'), 'catdir_end' => array('layout' => 'end_fieldset'), 'footer_start' => array('layout' => 'begin_fieldset', 'label' => T_('Footer Settings')), 'b2evo_credits' => array('label' => T_('b2evolution credits'), 'note' => T_('Please help us promote b2evolution and leave b2evolution credits on your website.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'spec_sw_footer' => array('label' => T_('Special sitewide footer'), 'note' => T_('Check to enable the special sitewide footer (cookies declaration) layout.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'sp_sw_f_bg_col' => array('label' => T_('SW Footer background color'), 'note' => T_('Set the background color of the special sitewide footer section.'), 'defaultvalue' => '#333', 'type' => 'color'), 'sp_sw_f_col' => array('label' => T_('SW Footer color'), 'note' => T_('Set the color of the special sitewide footer section.'), 'defaultvalue' => '#fff', 'type' => 'color'), 'footer_end' => array('layout' => 'end_fieldset'), 'section_colorbox_start' => array('layout' => 'begin_fieldset', 'label' => T_('Colorbox Image Zoom')), 'colorbox' => array('label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post' => array('label' => T_('Voting on Post Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment' => array('label' => T_('Voting on Comment Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user' => array('label' => T_('Voting on User Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_colorbox_end' => array('layout' => 'end_fieldset'), 'section_username_start' => array('layout' => 'begin_fieldset', 'label' => T_('Username Settings')), 'gender_colored' => array('label' => T_('Display gender'), 'note' => T_('Use colored usernames to differentiate men & women.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bubbletip' => array('label' => T_('Username bubble tips'), 'note' => T_('Check to enable bubble tips on usernames'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'autocomplete_usernames' => array('label' => T_('Autocomplete usernames'), 'note' => T_('Check to enable auto-completion of usernames entered after a "@" sign in the comment forms'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_username_end' => array('layout' => 'end_fieldset'), 'section_access_start' => array('layout' => 'begin_fieldset', 'label' => T_('When access is denied or requires login...')), 'access_login_containers' => array('label' => T_('Display on login screen'), 'note' => '', 'type' => 'checklist', 'options' => array(array('menu', sprintf(T_('"%s" container'), NT_('Menu')), 1), array('sidebar', sprintf(T_('"%s" container'), NT_('Sidebar')), 1), array('sidebar2', sprintf(T_('"%s" container'), NT_('Sidebar 2')), 1), array('footer', sprintf(T_('"%s" container'), NT_('Footer')), 1))), 'section_access_end' => array('layout' => 'end_fieldset')), parent::get_param_definitions($params));
return $r;
}
示例4: array
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
*/
function get_param_definitions($params)
{
global $Blog, $app_version;
global $skins_url;
if (!($twitter_name = $Blog->get_setting('twitter_username'))) {
$twitter_name = '';
}
$set1 = array('section_general_start' => array('layout' => 'begin_fieldset', 'label' => T_('General Settings')), 'blog_name' => array('label' => $this->T_('Blog title'), 'note' => $this->T_('Enter image URL to display a logo'), 'defaultvalue' => $Blog->get('name'), 'type' => 'text', 'size' => 50), 'blog_tagline' => array('label' => $this->T_('Blog tagline'), 'defaultvalue' => $Blog->get('tagline'), 'type' => 'text', 'size' => 50), 'section_general_end' => array('layout' => 'end_fieldset'), 'section_colorbox_start' => array('layout' => 'begin_fieldset', 'label' => T_('Colorbox Image Zoom')), 'colorbox' => array('label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post' => array('label' => T_('Voting on Post Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment' => array('label' => T_('Voting on Comment Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user' => array('label' => T_('Voting on User Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_colorbox_end' => array('layout' => 'end_fieldset'), 'section_username_start' => array('layout' => 'begin_fieldset', 'label' => T_('Username options')), 'gender_colored' => array('label' => T_('Display gender'), 'note' => T_('Use colored usernames to differentiate men & women.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bubbletip' => array('label' => T_('Username bubble tips'), 'note' => T_('Check to enable bubble tips on usernames'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'autocomplete_usernames' => array('label' => T_('Autocomplete usernames'), 'note' => T_('Check to enable auto-completion of usernames entered after a "@" sign in the comment forms'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_username_end' => array('layout' => 'end_fieldset'));
if (version_compare($app_version, '6.0', '>=')) {
// We need this due to 'checklist' fields are available starting with version 6.
$set2 = array('section_access_start' => array('layout' => 'begin_fieldset', 'label' => T_('When access is denied or requires login...')), 'access_login_containers' => array('label' => T_('Display on login screen'), 'note' => '', 'type' => 'checklist', 'options' => array(array('header', sprintf(T_('"%s" container'), NT_('Header')), 1), array('page_top', sprintf(T_('"%s" container'), NT_('Page Top')), 1), array('menu', sprintf(T_('"%s" container'), NT_('Menu')), 0), array('sidebar', sprintf(T_('"%s" container'), NT_('Sidebar')), 0), array('sidebar2', sprintf(T_('"%s" container'), NT_('Sidebar 2')), 0), array('footer', sprintf(T_('"%s" container'), NT_('Footer')), 1))), 'section_access_end' => array('layout' => 'end_fieldset'));
$set1 = array_merge($set1, $set2);
}
$set3 = array('2_start' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Layout')), 'skin_color' => array('label' => $this->T_('Skin color'), 'note' => '', 'defaultvalue' => 'green', 'options' => array('green' => $this->T_('Green'), 'blue' => $this->T_('Blue'), 'red' => $this->T_('Red'), 'grey' => $this->T_('Grey')), 'type' => 'select'), 'skin_width' => array('label' => $this->T_('Skin width'), 'note' => '', 'defaultvalue' => 'fixed', 'options' => array('fixed' => $this->T_('Fixed'), 'fluid' => $this->T_('Fluid')), 'type' => 'select'), 'skin_layout' => array('label' => $this->T_('Skin layout'), 'note' => '', 'defaultvalue' => 'col-2-right', 'options' => array('col-1' => $this->T_('1 column'), 'col-2-right' => $this->T_('2 columns: Sidebar to the right'), 'col-2-left' => $this->T_('2 columns: Sidebar to the left'), 'col-3' => $this->T_('3 columns'), 'col-3-right' => $this->T_('3 columns: Sidebars to the right'), 'col-3-left' => $this->T_('3 columns: Sidebars to the left')), 'type' => 'select'), 'skin_font' => array('label' => $this->T_('Skin font'), 'note' => '', 'defaultvalue' => '"Segoe UI",Calibri,"Myriad Pro",Myriad,"Trebuchet MS",Helvetica,Arial,sans-serif', 'options' => array('"Segoe UI",Calibri,"Myriad Pro",Myriad,"Trebuchet MS",Helvetica,Arial,sans-serif' => 'Segoe UI (Windows Vista/7)', '"Helvetica Neue",Helvetica,Arial,Geneva,"MS Sans Serif",sans-serif' => 'Helvetica/Arial', 'Georgia,"Nimbus Roman No9 L",serif' => 'Georgia (sans serif)', '"Lucida Grande","Lucida Sans","Lucida Sans Unicode","Helvetica Neue",Helvetica,Arial,Verdana,sans-serif' => 'Lucida Grande/Sans (Mac/Windows)'), 'type' => 'select'), '2_end' => array('layout' => 'end_fieldset'), '3_start' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Tabbed widget settings')), 'tabbed_widget' => array('label' => $this->T_('Tabbed widget'), 'note' => $this->T_('Display javascript tabbed widget on the sidebar'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_comments' => array('label' => $this->T_('Recent comments'), 'note' => $this->T_('The number of recent comments'), 'defaultvalue' => 6, 'type' => 'integer', 'size' => 3), 'display_archives' => array('label' => $this->T_('Archives'), 'note' => $this->T_('The number of months in archive'), 'defaultvalue' => 12, 'type' => 'integer', 'size' => 3), 'display_tags' => array('label' => $this->T_('Tags'), 'note' => $this->T_('The number of tags'), 'defaultvalue' => 40, 'type' => 'integer', 'size' => 3), '3_end' => array('layout' => 'end_fieldset'), '4_start' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Misc settings')), 'display_related' => array('label' => $this->T_('Related posts'), 'note' => $this->T_('The number of related articles in single post mode'), 'defaultvalue' => 10, 'type' => 'integer', 'size' => 3), 'display_my_tweets' => array('label' => $this->T_('Twitter widget'), 'note' => $this->T_('The number of items in "My latest tweets" widget. Select 0 to disable.'), 'defaultvalue' => 5, 'type' => 'integer', 'size' => 3), '4_end' => array('layout' => 'end_fieldset'), '5_start' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Enable/disable features')), 'fancy_helper' => array('label' => $this->T_('FancyBox Helper'), 'note' => $this->T_('See <a href="' . $skins_url . $this->get_default_name() . '/resources/fancyapps/demo/index.html" target="_blank"> Demo</a> and <a href="' . $skins_url . $this->get_default_name() . '/resources/fancyapps/demo/readme.html" target="_blank">Added Features</a> or visit <a href="http://fancyapps.com/fancybox/" target="_blank">fancyBox</a>'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'post_meta' => array('label' => $this->T_('Post metadata'), 'note' => $this->T_('Display post metadata block in single post mode'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'posts_author_avatar' => array('label' => $this->T_('Author avatar (list)'), 'note' => $this->T_('Display author avatar next to post title in <u>post list mode</u>'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'single_author_avatar' => array('label' => $this->T_('Author avatar (single)'), 'note' => $this->T_('Display author avatar next to post title in <u>single post mode</u>'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'enable_thumbshots' => array('label' => $this->T_('Display thumbshots'), 'note' => $this->T_('Display website previews on external post links.') . ' (Website thumbnails provided by <a href="http://www.thumbshots.ru/en/" target="_blank">Thumbshots.RU</a>)', 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_credits' => array('label' => $this->T_('Display footer credits'), 'note' => $this->T_('You get this skin for free. We do appreciate you giving us credit. <b>Thank you for your support!</b>'), 'defaultvalue' => 1, 'type' => 'checkbox'), '5_end' => array('layout' => 'end_fieldset'), '6_start' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Social buttons')), 'facebook_user' => array('label' => $this->T_('Facebook'), 'note' => $this->T_('Username. Leave empty to hide the button'), 'defaultvalue' => 'b2evolution', 'type' => 'text', 'size' => 40), 'flickr_user' => array('label' => $this->T_('Flickr'), 'note' => $this->T_('Username. Leave empty to hide the button'), 'type' => 'text', 'size' => 40), 'myspace_user' => array('label' => $this->T_('Myspace'), 'note' => $this->T_('Username. Leave empty to hide the button'), 'type' => 'text', 'size' => 40), 'linkedin_user' => array('label' => $this->T_('LinkedIn'), 'note' => $this->T_('Username. Leave empty to hide the button'), 'type' => 'text', 'size' => 40), 'twitter_user' => array('label' => $this->T_('Twitter'), 'note' => $this->T_('Username. Leave empty to hide the button'), 'defaultvalue' => $twitter_name, 'type' => 'text', 'size' => 40), 'youtube_user' => array('label' => $this->T_('Youtube'), 'note' => $this->T_('Username. Leave empty to hide the button'), 'defaultvalue' => '', 'type' => 'text', 'size' => 40));
$set = array_merge($set1, $set3);
if (version_compare($app_version, '4') && ($res = $this->check_updates())) {
// Check for updates in b2evo v4 and up
$set = array('updates' => array('label' => $this->T_('Updates'), 'info' => sprintf('<span style="color:red; font-weight:bold">New version %s is available. %s</span>', $res['version'], get_icon('download') . ' <a href="' . $res['url'] . '" target="_blank">Download now</a>'), 'type' => 'info')) + $set;
}
return array_merge($set, parent::get_param_definitions($params));
}
示例5: array
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
*/
function get_param_definitions($params)
{
$r = array_merge(array('section_layout_start' => array('layout' => 'begin_fieldset', 'label' => T_('Blog introduction settings')), 'main_content_headline' => array('label' => T_('Introduction headline'), 'defaultvalue' => 'About this blog', 'type' => 'text', 'size' => '100%'), 'main_content' => array('label' => T_('Introduce your blog'), 'defaultvalue' => 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin placerat malesuada est. Aenean hendrerit lectus eget ante. Etiam gravida felis. Vivamus viverra, mi sit amet gravida placerat, tortor arcu porta ligula, in accumsan sem ante non turpis. Morbi nec enim id augue blandit tempor. Praesent imperdiet facilisis mi. Sed aliquam, magna vel consequat hendrerit, nisl nulla elementum sem, vitae porttitor massa eros ut orci. In vehicula. Aliquam condimentum convallis nisl. Ut id lorem. Etiam quis enim. Nam sagittis metus tincidunt ligula. Mauris blandit adipiscing lectus. Aenean malesuada. Etiam blandit ornare dolor.', 'type' => 'textarea', 'size' => '100%'), 'section_layout_end' => array('layout' => 'end_fieldset'), '3_start' => array('layout' => 'begin_fieldset', 'label' => T_('Other skin settings')), 'colorbox' => array('label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'gender_colored' => array('label' => T_('Display gender'), 'note' => T_('Use colored usernames to differentiate men & women.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bubbletip' => array('label' => T_('Username bubble tips'), 'note' => T_('Check to enable bubble tips on usernames'), 'defaultvalue' => 0, 'type' => 'checkbox'), '3_end' => array('layout' => 'end_fieldset')), parent::get_param_definitions($params));
return $r;
}
示例6: array
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
*/
function get_param_definitions($params)
{
$r = array_merge(array('head_bg_color' => array('label' => T_('Header Background Color'), 'note' => T_('E-g: #ff0000 for red'), 'defaultvalue' => '#03699C', 'type' => 'color'), 'head_text_color' => array('label' => T_('Header Text Color'), 'note' => T_('E-g: #00ff00 for green'), 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'menu_bg_color' => array('label' => T_('Menu Background Color'), 'note' => T_('E-g: #ff0000 for red'), 'defaultvalue' => '#74b4d4', 'type' => 'color'), 'menu_text_color' => array('label' => T_('Menu Text Color'), 'note' => T_('E-g: #00ff00 for green'), 'defaultvalue' => '#000000', 'type' => 'color'), 'footer_bg_color' => array('label' => T_('Footer Background Color'), 'note' => T_('E-g: #0000ff for blue'), 'defaultvalue' => '#DEE3E7', 'type' => 'color'), 'display_post_date' => array('label' => T_('Post date'), 'note' => T_('Display the date of each post'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox' => array('label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'gender_colored' => array('label' => T_('Display gender'), 'note' => T_('Use colored usernames to differentiate men & women.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bubbletip' => array('label' => T_('Username bubble tips'), 'note' => T_('Check to enable bubble tips on usernames'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'banner_public' => array('label' => T_('"Public" banner'), 'note' => T_('Display banner for "Public" posts (posts & comments)'), 'defaultvalue' => 1, 'type' => 'checkbox')), parent::get_param_definitions($params));
return $r;
}
示例7: array
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
*/
function get_param_definitions($params)
{
$r = array_merge(array('html5_support' => array('label' => T_('HTML5'), 'defaultvalue' => '1', 'note' => 'activate HTML5 support across all browsers (as of 08/08/2009)', 'type' => 'checkbox'), 'colorbox' => array('label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'gender_colored' => array('label' => T_('Display gender'), 'note' => T_('Use colored usernames to differentiate men & women.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bubbletip' => array('label' => T_('Username bubble tips'), 'note' => T_('Check to enable bubble tips on usernames'), 'defaultvalue' => 0, 'type' => 'checkbox')), parent::get_param_definitions($params));
return $r;
}
示例8: array
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
*/
function get_param_definitions($params)
{
$r = array_merge(array('general_start' => array('layout' => 'begin_fieldset', 'label' => T_('General Settings')), 'bg_color' => array('label' => T_('Site background color'), 'note' => T_('Default color is') . ' #FFF.', 'defaultvalue' => '#FFF', 'type' => 'color'), 'text_color' => array('label' => T_('Site text color'), 'note' => T_('Default color is') . ' #666.', 'defaultvalue' => '#666', 'type' => 'color'), 'headings_color' => array('label' => T_('Site headings color'), 'note' => T_('Default color is') . ' #444.', 'defaultvalue' => '#444', 'type' => 'color'), 'link_color' => array('label' => T_('Site link color'), 'note' => T_('Default color is') . ' #212121.', 'defaultvalue' => '#212121', 'type' => 'color'), 'link_h_color' => array('label' => T_('Site link hover color'), 'note' => T_('Default color is') . ' #448AFF.', 'defaultvalue' => '#448AFF', 'type' => 'color'), 'section_bg' => array('label' => T_('Items background color'), 'note' => T_('This stands for menu links, buttons, featured/intro posts, etc. Default color is') . ' #F4F4F4.', 'defaultvalue' => '#F4F4F4', 'type' => 'color'), 'divider_color' => array('label' => T_('Divider color'), 'note' => T_('Divider is a line on the bottom of every post. Default color is') . ' #E7E7E7.', 'defaultvalue' => '#E7E7E7', 'type' => 'color'), 'left_navigation' => array('label' => T_('Fixed sidebar'), 'note' => T_('Check to enable the fixed sidebar.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'general_layout_end' => array('layout' => 'end_fieldset'), 'header_layout_start' => array('layout' => 'begin_fieldset', 'label' => T_('Header Settings')), 'header_bg' => array('label' => T_('Header background color'), 'note' => T_('Default color is') . ' #448AFF.', 'defaultvalue' => '#448AFF', 'type' => 'color'), 'header_color' => array('label' => T_('Header font color'), 'note' => T_('Default color is') . ' #FFF.', 'defaultvalue' => '#FFF', 'type' => 'color'), 'header_layout_end' => array('layout' => 'end_fieldset'), 'section_layout_start' => array('layout' => 'begin_fieldset', 'label' => T_('Layout Settings')), 'max_image_height' => array('label' => T_('Max image height'), 'note' => 'px', 'defaultvalue' => '', 'type' => 'integer', 'allow_empty' => true), 'page_navigation' => array('label' => T_('Page navigation'), 'note' => T_('(EXPERIMENTAL)') . ' ' . T_('Check this to show previous/next page links to navigate inside the <b>current</b> chapter.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'section_layout_end' => array('layout' => 'end_fieldset'), 'section_colorbox_start' => array('layout' => 'begin_fieldset', 'label' => T_('Colorbox Image Zoom')), 'colorbox' => array('label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post' => array('label' => T_('Voting on Post Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment' => array('label' => T_('Voting on Comment Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user' => array('label' => T_('Voting on User Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_colorbox_end' => array('layout' => 'end_fieldset'), 'section_username_start' => array('layout' => 'begin_fieldset', 'label' => T_('Username options')), 'gender_colored' => array('label' => T_('Display gender'), 'note' => T_('Use colored usernames to differentiate men & women.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bubbletip' => array('label' => T_('Username bubble tips'), 'note' => T_('Check to enable bubble tips on usernames'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'autocomplete_usernames' => array('label' => T_('Autocomplete usernames'), 'note' => T_('Check to enable auto-completion of usernames entered after a "@" sign in the comment forms'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_username_end' => array('layout' => 'end_fieldset'), 'section_access_start' => array('layout' => 'begin_fieldset', 'label' => T_('When access is denied or requires login...')), 'access_login_containers' => array('label' => T_('Display on login screen'), 'note' => '', 'type' => 'checklist', 'options' => array(array('header', sprintf(T_('"%s" container'), NT_('Header')), 1), array('page_top', sprintf(T_('"%s" container'), NT_('Page Top')), 1), array('menu', sprintf(T_('"%s" container'), NT_('Menu')), 0), array('sidebar', sprintf(T_('"%s" container'), NT_('Sidebar')), 0), array('sidebar2', sprintf(T_('"%s" container'), NT_('Sidebar 2')), 0), array('footer', sprintf(T_('"%s" container'), NT_('Footer')), 1))), 'section_access_end' => array('layout' => 'end_fieldset')), parent::get_param_definitions($params));
return $r;
}
示例9: array
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
*/
function get_param_definitions($params)
{
$r = array_merge(array('html5_support' => array('label' => T_('HTML5'), 'defaultvalue' => '1', 'note' => 'activate HTML5 support across all browsers (as of 08/08/2009)', 'type' => 'checkbox')), parent::get_param_definitions($params));
return $r;
}
示例10: array
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
*/
function get_param_definitions($params)
{
$r = array_merge(array('head_bg_color' => array('label' => T_('Header Background Color'), 'note' => T_('E-g: #ff0000 for red'), 'defaultvalue' => '#78a', 'type' => 'color'), 'menu_bg_color' => array('label' => T_('Menu Background Color'), 'note' => T_('E-g: #ff0000 for red'), 'defaultvalue' => '#ddd', 'type' => 'color'), 'display_post_time' => array('label' => T_('Post time'), 'note' => T_('Display time for each post'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'sidebar_position' => array('label' => T_('Sidebar position'), 'note' => '', 'defaultvalue' => 'right', 'options' => array('left' => $this->T_('Left'), 'right' => $this->T_('Right')), 'type' => 'select'), 'colorbox' => array('label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'gender_colored' => array('label' => T_('Display gender'), 'note' => T_('Use colored usernames to differentiate men & women.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bubbletip' => array('label' => T_('Username bubble tips'), 'note' => T_('Check to enable bubble tips on usernames'), 'defaultvalue' => 0, 'type' => 'checkbox')), parent::get_param_definitions($params));
return $r;
}
示例11: array
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
*/
function get_param_definitions($params)
{
$r = array_merge(array('display_metadata' => array('label' => T_('Display post metadata'), 'defaultvalue' => '1', 'note' => T_('Display post metadata (date, author, categories and tags)'), 'type' => 'checkbox'), 'display_b2evo_logo' => array('label' => T_('Display the b2evo logo'), 'defaultvalue' => '1', 'note' => T_('Display the b2evolution logo in the sidebar'), 'type' => 'checkbox'), 'colorbox' => array('label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'gender_colored' => array('label' => T_('Display gender'), 'note' => T_('Use colored usernames to differentiate men & women.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bubbletip' => array('label' => T_('Username bubble tips'), 'note' => T_('Check to enable bubble tips on usernames'), 'defaultvalue' => 0, 'type' => 'checkbox')), parent::get_param_definitions($params));
return $r;
}
示例12: array
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
* @return array
*/
function get_param_definitions($params)
{
$r = array_merge(array('section_layout_start' => array('layout' => 'begin_fieldset', 'label' => T_('Layout Settings')), 'layout' => array('label' => T_('Layout'), 'note' => T_('Select skin layout.'), 'defaultvalue' => 'right_sidebar', 'options' => array('single_column' => T_('Single Column Large'), 'single_column_normal' => T_('Single Column'), 'single_column_narrow' => T_('Single Column Narrow'), 'single_column_extra_narrow' => T_('Single Column Extra Narrow'), 'left_sidebar' => T_('Left Sidebar'), 'right_sidebar' => T_('Right Sidebar')), 'type' => 'select'), 'max_image_height' => array('label' => T_('Max image height'), 'note' => 'px. ' . T_('Set maximum height for post images.'), 'defaultvalue' => '', 'type' => 'integer', 'allow_empty' => true), 'font_size' => array('label' => T_('Font size'), 'note' => T_('Select content font size.'), 'defaultvalue' => 'default', 'options' => array('default' => T_('Default (14px)'), 'standard' => T_('Standard (16px)'), 'medium' => T_('Medium (18px)'), 'large' => T_('Large (20px)'), 'very_large' => T_('Very large (22px)')), 'type' => 'select'), 'section_layout_end' => array('layout' => 'end_fieldset'), 'section_colorbox_start' => array('layout' => 'begin_fieldset', 'label' => T_('Colorbox Image Zoom')), 'colorbox' => array('label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post' => array('label' => T_('Voting on Post Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment' => array('label' => T_('Voting on Comment Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user' => array('label' => T_('Voting on User Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_colorbox_end' => array('layout' => 'end_fieldset'), 'section_username_start' => array('layout' => 'begin_fieldset', 'label' => T_('Username options')), 'gender_colored' => array('label' => T_('Display gender'), 'note' => T_('Use colored usernames to differentiate men & women.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bubbletip' => array('label' => T_('Username bubble tips'), 'note' => T_('Check to enable bubble tips on usernames'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'autocomplete_usernames' => array('label' => T_('Autocomplete usernames'), 'note' => T_('Check to enable auto-completion of usernames entered after a "@" sign in the comment forms'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_username_end' => array('layout' => 'end_fieldset'), 'section_access_start' => array('layout' => 'begin_fieldset', 'label' => T_('When access is denied or requires login...')), 'access_login_containers' => array('label' => T_('Display on login screen'), 'note' => '', 'type' => 'checklist', 'options' => array(array('header', sprintf(T_('"%s" container'), NT_('Header')), 1), array('page_top', sprintf(T_('"%s" container'), NT_('Page Top')), 1), array('menu', sprintf(T_('"%s" container'), NT_('Menu')), 0), array('sidebar', sprintf(T_('"%s" container'), NT_('Sidebar')), 0), array('sidebar2', sprintf(T_('"%s" container'), NT_('Sidebar 2')), 0), array('footer', sprintf(T_('"%s" container'), NT_('Footer')), 1))), 'section_access_end' => array('layout' => 'end_fieldset')), parent::get_param_definitions($params));
return $r;
}
示例13: array
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
*/
function get_param_definitions($params)
{
$r = array_merge(array('section_layout_start' => array('layout' => 'begin_fieldset', 'label' => T_('Layout Settings')), 'max_image_height' => array('label' => T_('Max image height'), 'note' => 'px. ' . T_('Set maximum height for post images.'), 'defaultvalue' => '', 'type' => 'integer', 'size' => '7', 'allow_empty' => true), 'section_layout_end' => array('layout' => 'end_fieldset'), '1_start' => array('layout' => 'begin_fieldset', 'label' => T_('Image section')), 'front_bg_image' => array('label' => T_('Background image'), 'note' => T_('Set background image in Main Area section.'), 'defaultvalue' => 'shared/global/sunset/sunset.jpg', 'type' => 'text', 'size' => '50'), '1_end' => array('layout' => 'end_fieldset'), '2_start' => array('layout' => 'begin_fieldset', 'label' => T_('Front Page Main Area Overlay')), 'front_width' => array('label' => T_('Width'), 'note' => T_('Adjust width of the Main Area container.'), 'size' => '7', 'defaultvalue' => '450px'), 'front_position' => array('label' => T_('Position'), 'note' => T_('Select the position of Main Area container.'), 'defaultvalue' => 'left', 'options' => array('left' => T_('Left'), 'middle' => T_('Middle'), 'right' => T_('Right')), 'type' => 'select'), 'front_bg_color' => array('label' => T_('Background color'), 'note' => T_('Click to select a color.'), 'defaultvalue' => '#000000', 'type' => 'color'), 'front_bg_opacity' => array('label' => T_('Background opacity'), 'note' => '%. ' . T_('Adjust the background transparency level.'), 'size' => '7', 'maxlength' => '3', 'defaultvalue' => '10', 'type' => 'integer', 'valid_range' => array('min' => 0, 'max' => 100)), 'pict_title_color' => array('label' => T_('Title color'), 'note' => T_('Click to select a color.'), 'defaultvalue' => '#F0F0F0', 'type' => 'color'), 'front_text_color' => array('label' => T_('Text color'), 'note' => T_('Click to select a color.'), 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'front_link_color' => array('label' => T_('Link color'), 'note' => T_('Click to select a color.'), 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'pict_muted_color' => array('label' => T_('Muted text color'), 'note' => T_('Click to select a color.'), 'defaultvalue' => '#F0F0F0', 'type' => 'color'), 'front_icon_color' => array('label' => T_('Inverse icon color'), 'note' => T_('Click to select a color.'), 'defaultvalue' => '#CCCCCC', 'type' => 'color'), '2_end' => array('layout' => 'end_fieldset'), '3_start' => array('layout' => 'begin_fieldset', 'label' => T_('Front Page Secondary Area Overlay')), 'secondary_text_color' => array('label' => T_('Text color'), 'note' => T_('Click to select a color.'), 'defaultvalue' => '#333', 'type' => 'color'), '3_end' => array('layout' => 'end_fieldset'), 'section_colorbox_start' => array('layout' => 'begin_fieldset', 'label' => T_('Colorbox Image Zoom')), 'colorbox' => array('label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post' => array('label' => T_('Voting on Post Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment' => array('label' => T_('Voting on Comment Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user' => array('label' => T_('Voting on User Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_colorbox_end' => array('layout' => 'end_fieldset'), 'section_username_start' => array('layout' => 'begin_fieldset', 'label' => T_('Username options')), 'gender_colored' => array('label' => T_('Display gender'), 'note' => T_('Use colored usernames to differentiate men & women.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bubbletip' => array('label' => T_('Username bubble tips'), 'note' => T_('Check to enable bubble tips on usernames'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'autocomplete_usernames' => array('label' => T_('Autocomplete usernames'), 'note' => T_('Check to enable auto-completion of usernames entered after a "@" sign in the comment forms'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_username_end' => array('layout' => 'end_fieldset'), 'section_access_start' => array('layout' => 'begin_fieldset', 'label' => T_('When access is denied or requires login...')), 'access_login_containers' => array('label' => T_('Display on login screen'), 'note' => '', 'type' => 'checklist', 'options' => array(array('header', sprintf(T_('"%s" container'), NT_('Header')), 1), array('page_top', sprintf(T_('"%s" container'), NT_('Page Top')), 1), array('menu', sprintf(T_('"%s" container'), NT_('Menu')), 0), array('footer', sprintf(T_('"%s" container'), NT_('Footer')), 1))), 'section_access_end' => array('layout' => 'end_fieldset')), parent::get_param_definitions($params));
return $r;
}
示例14: array
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
*/
function get_param_definitions($params)
{
$r = array_merge(array('head_bg_color_top' => array('label' => T_('Header gradient top color'), 'note' => T_('E-g: #ff0000 for red'), 'defaultvalue' => '#6aace6', 'type' => 'color'), 'head_bg_color_bottom' => array('label' => T_('Header gradient bottom color'), 'note' => T_('E-g: #00ff00 for green'), 'defaultvalue' => '#4280b6', 'type' => 'color'), 'display_post_date' => array('label' => T_('Post date'), 'note' => T_('Display the date of each post'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'sidebar_position' => array('label' => T_('Sidebar position'), 'note' => '', 'defaultvalue' => 'right', 'options' => array('left' => $this->T_('Left'), 'right' => $this->T_('Right')), 'type' => 'select'), 'colorbox' => array('label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post' => array('label' => T_('Voting on Post Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_post_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment' => array('label' => T_('Voting on Comment Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_comment_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user' => array('label' => T_('Voting on User Images'), 'note' => T_('Check this to enable AJAX voting buttons in the colorbox zoom view'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'colorbox_vote_user_numbers' => array('label' => T_('Display Votes'), 'note' => T_('Check to display number of likes and dislikes'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'gender_colored' => array('label' => T_('Display gender'), 'note' => T_('Use colored usernames to differentiate men & women.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bubbletip' => array('label' => T_('Username bubble tips'), 'note' => T_('Check to enable bubble tips on usernames'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'autocomplete_usernames' => array('label' => T_('Autocomplete usernames'), 'note' => T_('Check to enable auto-completion of usernames entered after a "@" sign in the comment forms'), 'defaultvalue' => 1, 'type' => 'checkbox')), parent::get_param_definitions($params));
return $r;
}
示例15: array
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
*/
function get_param_definitions($params)
{
$r = array_merge(array('colorbox' => array('label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'gender_colored' => array('label' => T_('Display gender'), 'note' => T_('Use colored usernames to differentiate men & women.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'bubbletip' => array('label' => T_('Username bubble tips'), 'note' => T_('Check to enable bubble tips on usernames'), 'defaultvalue' => 0, 'type' => 'checkbox')), parent::get_param_definitions($params));
return $r;
}