Exemplo n.º 1
0
 /**
  * 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_general_start' => array('layout' => 'begin_fieldset', 'label' => T_('General Settings (All disps)')), 'layout' => array('label' => T_('Layout Settings'), 'note' => '', 'type' => 'select', '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')), 'defaultvalue' => 'right_sidebar'), 'max_image_height' => array('label' => T_('Max Image Height'), 'note' => 'px', 'defaultvalue' => '', 'type' => 'integer', 'allow_empty' => true), 'color_schemes' => array('label' => T_('Color Scheme'), 'note' => T_('Default color scheme is') . ' #1DC6DF.', 'defaultvalue' => '#1dc6df', 'type' => 'color'), 'background_disp' => array('label' => T_('Background Color'), 'note' => T_('Default color is') . ' #FFFFFF.', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'single_bg' => array('label' => T_('Background color for disp=single and disp=page'), 'note' => T_('Default color is') . ' #FFFFFF.', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'comments_bg' => array('label' => T_('Background color for disp=comments'), 'note' => T_('Default color is') . ' #F7F7F7.', 'defaultvalue' => '#F7F7F7', 'type' => 'color'), 'arcdir_bg' => array('label' => T_('Background color for disp=archive'), 'note' => T_('Default color is') . ' #F7F7F7.', 'defaultvalue' => '#F7F7F7', 'type' => 'color'), 'catdir_bg' => array('label' => T_('Background color for disp=category'), 'note' => T_('Default color is') . ' #F7F7F7.', 'defaultvalue' => '#F7F7F7', 'type' => 'color'), 'postidx_bg' => array('label' => T_('Background color for disp=postidx'), 'note' => T_('Default color is') . ' #F7F7F7.', 'defaultvalue' => '#F7F7F7', 'type' => 'color'), 'tags_bg' => array('label' => T_('Background color for disp=tags'), 'note' => T_('Default color is') . ' #F7F7F7.', 'defaultvalue' => '#F7F7F7', 'type' => 'color'), 'back_to_top' => array('label' => T_('Display Back To Top'), 'note' => T_('Check to display back to top button.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_general_end' => array('layout' => 'end_fieldset'), 'section_typograpy_start' => array('layout' => 'begin_fieldset', 'label' => T_('Typograpy Settings (All disps)')), 'typograpy_fz' => array('label' => T_('Font Size'), 'note' => '', 'type' => 'radio', 'options' => array(array('small', T_('Small')), array('normal', T_('Normal')), array('large', T_('Large'))), 'defaultvalue' => 'small'), 'color_content' => array('label' => T_('Page Text Color'), 'note' => T_('Change page text color here. This field is left blank by default.'), 'defaultvalue' => '', 'allow_empty' => true, 'type' => 'color'), 'section_typograpy_end' => array('layout' => 'end_fieldset'), 'section_header_start' => array('layout' => 'begin_fieldset', 'label' => T_('Header Top Settings (All disps)')), 'ht_show' => array('label' => T_('Display Header Top'), 'note' => T_('Check to display special header section.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'ht_contact_info' => array('label' => T_('Header Top Section Text'), 'defaultvalue' => 'Contact Us on 0800 123 4567 or info@example.com', 'note' => '<br />' . T_('Add your contact info'), 'type' => 'text', 'size' => '60'), 'header_top_color' => array('label' => T_('Header Top Section Color'), 'note' => T_('Default color is') . ' #777777.', 'defaultvalue' => '#777777', 'type' => 'color'), 'header_top_bg' => array('label' => T_('Header Top Section Background Color'), 'note' => T_('Default color is') . ' #FFFFFF.', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'section_header_end' => array('layout' => 'end_fieldset'), 'section_main_header_start' => array('layout' => 'begin_fieldset', 'label' => T_('Main Header Settings (All disps)')), 'header_sticky' => array('label' => T_('Activate Main Header Sticky'), 'note' => T_('Check to activate main header sticky'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'site_tite_color' => array('label' => T_('Site Title Color'), 'note' => T_('Default color is') . ' #333333.', 'defaultvalue' => '#333333', 'type' => 'color'), 'menu_link_color' => array('label' => T_('Menu Link Color'), 'note' => T_('Default color is') . ' #333333.', 'defaultvalue' => '#333333', 'type' => 'color'), 'main_header_bg' => array('label' => T_('Main Header Background Color'), 'note' => T_('Default color is') . ' #FFFFFF.', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'section_main_header_end' => array('layout' => 'end_fieldset'), 'section_disp_front_start' => array('layout' => 'begin_fieldset', 'label' => T_('Front Page Settings (disp=front)')), 'layout_front' => array('label' => T_('Layout Settings'), 'note' => '', 'type' => 'select', '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')), 'defaultvalue' => 'single_column'), 'front_bg' => array('label' => T_('Background color for disp=front'), 'note' => T_('Default color is') . ' #FFFFFF.', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'section_disp_front_end' => array('layout' => 'end_fieldset'), 'section_disp_post_start' => array('layout' => 'begin_fieldset', 'label' => T_('Post List Settings (disp=posts)')), 'layout_posts' => array('label' => T_('Post List Layout'), 'note' => '', 'type' => 'select', 'options' => array('regular' => T_('Regular'), 'mini_blog' => T_('Mini Blog Layout'), 'masonry' => T_('Masonry Layout')), 'defaultvalue' => 'regular'), 'posts_masonry_column' => array('label' => T_('Columns Posts Masonry'), 'note' => T_('Select the Column for Posts Masonry.'), 'type' => 'select', 'options' => array('two_columns' => T_('2 Columns'), 'three_columns' => T_('3 Columns'), 'four_columns' => T_('4 Columns')), 'defaultvalue' => 'three_column'), 'regular_post_bg' => array('label' => T_('Background Color for Regular Layout'), 'note' => T_('Default background color is') . ' #F7F7F7.', 'defaultvalue' => '#F7F7F7', 'type' => 'color'), 'mini_blog_bg' => array('label' => T_('Background Color for Mini Blog'), 'note' => T_('Default background color is') . ' #FFFFFF.', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'post_info_color' => array('label' => T_('Post Info Content Color'), 'note' => T_('Default color is') . ' #999999.', 'defaultvalue' => '#999999', 'type' => 'color'), 'post_info_link' => array('label' => T_('Post Info Link Color'), 'note' => T_('Default color is') . ' #333333.', 'defaultvalue' => '#333333', 'type' => 'color'), 'pagination_bottom_show' => array('label' => T_('Show Bottom Pagination'), 'note' => T_('Check to display Bottom Pagination.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'pagination_align' => array('label' => T_('Pagination Alignment'), 'note' => T_('Select left, right or centered alignment for the pagination.'), 'defaultvalue' => 'center', 'type' => 'select', 'options' => array('left' => T_('Left'), 'center' => T_('Center'), 'right' => T_('Right'))), 'section_disp_post_end' => array('layout' => 'end_fieldset'), 'section_tags_start' => array('layout' => 'begin_fieldset', 'label' => T_('Tags Settings (All disps)')), 'tags_color' => array('label' => T_('Post Tags Color'), 'note' => T_('Default color is') . ' #333333.', 'defaultvalue' => '#333333', 'type' => 'color'), 'tags_bg_color' => array('label' => T_('Post Tags Background Color'), 'note' => T_('Default color is') . ' #F7F7F7.', 'defaultvalue' => '#F7F7F7', 'type' => 'color'), 'tags_bdr_color' => array('label' => T_('Post Tags Border Color'), 'note' => T_('Default color is') . ' #E4E4E4.', 'defaultvalue' => '#E4E4E4', 'type' => 'color'), 'section_tags_end' => array('layout' => 'end_fieldset'), 'section_sidebar_start' => array('layout' => 'begin_fieldset', 'label' => T_('Sidebar Settings (All disps)')), 'sidebar_title_widget' => array('label' => T_('Widget Title Color'), 'note' => T_('Default color is') . ' #000000.', 'defaultvalue' => '#000000', 'type' => 'color'), 'sidebar_color_content' => array('label' => T_('Widget Content Color'), 'note' => T_('Default color is') . ' #333333.', 'defaultvalue' => '#333333', 'type' => 'color'), 'sidebar_color_link' => array('label' => T_('Widget Link Color'), 'note' => T_('Default color is') . ' #333333.', 'defaultvalue' => '#333333', 'type' => 'color'), 'sidebar_border_widget' => array('label' => T_('Widget Border Color'), 'note' => T_('Default color is') . ' #EEEEEE.', 'defaultvalue' => '#EEEEEE', 'type' => 'color'), 'section_sidebar_end' => array('layout' => 'end_fieldset'), 'section_footer_start' => array('layout' => 'begin_fieldset', 'label' => T_('Footer Settings (All disps)')), 'footer_dispay' => array('label' => T_('Display Footer Widget'), 'note' => T_('Check to display footer widget area with 4 columns.'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'footer_title_color' => array('label' => T_('Footer Widgets Title Color'), 'note' => T_('Default color is') . ' #FFFFFF.', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'footer_text_content' => array('label' => T_('Footer Content Color'), 'note' => T_('Default color is') . ' #FFFFFF.', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'footer_link_color' => array('label' => T_('Footer Links Color'), 'note' => T_('Default color is') . ' #FFFFFF.', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'footer_border_widget' => array('label' => T_('Footer Widgets Border Color'), 'note' => T_('Default color is') . ' #333333.', 'defaultvalue' => '#333333', 'type' => 'color'), 'copyright_color' => array('label' => T_('Copyright Content Color'), 'note' => T_('Default color is') . ' #999999.', 'defaultvalue' => '#999999', 'type' => 'color'), 'footer_bg' => array('label' => T_('Footer Background Color'), 'note' => T_('Default color is') . ' #222222.', 'defaultvalue' => '#222222', 'type' => 'color'), 'section_footer_end' => array('layout' => 'end_fieldset'), 'section_mediaidx_start' => array('layout' => 'begin_fieldset', 'label' => T_('Media Post Settings (disp=mediaidx)')), 'mediaidx_thumb_size' => array('label' => T_('Thumbnail Size for Media Index'), 'note' => '', 'defaultvalue' => 'fit-1280x720', 'options' => get_available_thumb_sizes(), 'type' => 'select'), 'mediaidx_grid' => array('label' => T_('Column Count'), 'note' => '', 'defaultvalue' => 'two_column', 'type' => 'select', 'options' => array('one_column' => T_('1 Column'), 'two_column' => T_('2 Columns'), 'three_column' => T_('3 Columns'))), 'mediaidx_layout' => array('label' => T_('Layout for disp=mediaidx'), 'note' => '', 'type' => 'select', 'options' => array('no_sidebar' => T_('No Sidebar'), 'left_sidebar' => T_('Left Sidebar'), 'right_sidebar' => T_('Right Sidebar')), 'defaultvalue' => 'no_sidebar'), 'mediaidx_style' => array('label' => T_('Mediaidx Style'), 'note' => T_('If you use box style you should change Mediaidx Background Color. Example:') . ' #F7F7F7.', 'defaultvalue' => 'default', 'type' => 'select', 'options' => array('default' => T_('Default'), 'box' => T_('Box Style'))), 'padding_column' => array('label' => T_('Image Padding'), 'note' => 'px.' . T_(' ( Default padding is 15px )'), 'defaultvalue' => '15', 'type' => 'integer', 'allow_empty' => true), 'mediaidx_title' => array('label' => T_('Display Image Title'), 'note' => T_('Check to display title of the image.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'mediaidx_title_style' => array('label' => T_('Title Style'), 'note' => T_('Select the title style for Photo Index and set image padding to 10px for optimal layout.'), 'defaultvalue' => 'default', 'type' => 'select', 'options' => array('default' => T_('Default'), 'hover' => T_('Hover Style'))), 'mediaidx_bg' => array('label' => T_('Background Color for disp=mediaidx'), 'note' => T_('Default color is') . ' #FFFFFF. ' . T_('Suggested background color:') . ' #F7F7F7.', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'mediaidx_bg_content' => array('label' => T_('Background Color for Mediaidx Content'), 'note' => T_('Default color is') . ' #FFFFFF.' . T_(' Activated when you use box style.'), 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'mediaidx_title_color' => array('label' => T_('Mediaidx Title Color'), 'note' => T_('Default color is') . ' #222222.' . T_(' Activated when you use box style and display image title.'), 'defaultvalue' => '#222222', 'type' => 'color'), 'section_mediaidx_end' => array('layout' => 'end_fieldset'), 'section_search_start' => array('layout' => 'begin_fieldset', 'label' => T_('Search Disp Settings (disp=search)')), 'search_title' => array('label' => T_('Search Box Title'), 'defaultvalue' => 'Search Result', 'note' => T_('Change the title of the Search Box.'), 'type' => 'text', 'size' => '30'), 'search_button_text' => array('label' => T_('Button Text'), 'defaultvalue' => 'Search', 'note' => T_('Change the text of the search button.'), 'type' => 'text', 'size' => '20'), 'search_field' => array('label' => T_('Show Search Field'), 'note' => T_('Check to show search field.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'search_text_info' => array('label' => T_('Search Info Text Color'), 'note' => T_('Default color is') . ' #999999.', 'defaultvalue' => '#999999', 'type' => 'color'), 'search_bg' => array('label' => T_('Background Color'), 'note' => T_('Default background color is') . ' #F7F7F7.', 'defaultvalue' => '#F7F7F7', 'type' => 'color'), 'section_search_end' => array('layout' => 'end_fieldset'), 'section_colorbox_start' => array('layout' => 'begin_fieldset', 'label' => T_('Colorbox Image Zoom (All disps)')), '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 (All disps)')), '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... (disp=access_denied and disp=access_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('sidebar', sprintf(T_('"%s" container'), NT_('Sidebar')), 0), array('footer', sprintf(T_('"%s" container'), NT_('Footer')), 1))), 'section_access_end' => array('layout' => 'end_fieldset')), parent::get_param_definitions($params));
     return $r;
 }
Exemplo n.º 2
0
 /**
  * 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;
 }
Exemplo n.º 3
0
 /**
  * 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;
 }
Exemplo n.º 4
0
 /**
  * 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.&nbsp;Built specially for <a href='http://b2evolution.net/'>b2evolution</a>.&nbsp;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;
 }
Exemplo n.º 5
0
 /**
  * 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_image_start' => array('layout' => 'begin_fieldset', 'label' => T_('Image Viewing')), 'max_image_height' => array('label' => T_('Max comment image height'), 'note' => 'px', 'defaultvalue' => '', 'type' => 'integer', 'allow_empty' => true), 'posts_thumb_size' => array('label' => T_('Thumbnail size for Albums'), 'note' => '', 'defaultvalue' => 'crop-192x192', 'options' => get_available_thumb_sizes(), 'type' => 'select'), 'single_thumb_size' => array('label' => T_('Thumbnail size inside Album'), 'note' => '', 'defaultvalue' => 'fit-256x256', 'options' => get_available_thumb_sizes(), 'type' => 'select'), 'mediaidx_thumb_size' => array('label' => T_('Thumbnail size in Media index'), 'note' => '', 'defaultvalue' => 'fit-256x256', 'options' => get_available_thumb_sizes(), 'type' => 'select'), 'banner_public' => array('label' => T_('Display "Public" banner'), 'note' => T_('Display banner for "Public" albums (albums & comments)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_image_end' => array('layout' => 'end_fieldset'), 'section_page_start' => array('layout' => 'begin_fieldset', 'label' => T_('Page Styles')), 'page_text_size' => array('label' => T_('Page text size'), 'note' => T_('Default value is 14 pixels.'), 'defaultvalue' => '14px', 'size' => '4px', 'type' => 'text'), 'page_text_color' => array('label' => T_('Page text color'), 'note' => T_('E-g: #00ff00 for green'), 'defaultvalue' => '#333', 'type' => 'color'), 'page_link_color' => array('label' => T_('Page link color'), 'note' => T_('E-g: #00ff00 for green'), 'defaultvalue' => '#337ab7', 'type' => 'color'), 'current_tab_text_color' => array('label' => T_('Current tab text color'), 'note' => T_('E-g: #ff6600 for orange'), 'defaultvalue' => '#333', 'type' => 'color'), 'page_bg_color' => array('label' => T_('Page background color'), 'note' => T_('E-g: #ff0000 for red'), 'defaultvalue' => '#fff', 'type' => 'color'), 'section_page_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;
 }
Exemplo n.º 6
0
 /**
  * Get definitions for editable params
  *
  * @see Plugin::GetDefaultSettings()
  * @param local params like 'for_editing' => true
  */
 function get_param_definitions($params)
 {
     $r = array_merge(array('standard_settings_begin' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Standard 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'), 'standard_settings_end' => array('layout' => 'end_fieldset'), 'basic_settings_begin' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Basic Settings')), 'skin_width' => array('label' => T_('Skin Width'), 'note' => 'Choose from preset widths, or define your own below after choosing Custom', 'defaultvalue' => 'mainbody2', 'options' => array('mainbody' => $this->T_('750px'), 'mainbody2' => $this->T_('950px'), 'mainbody4' => $this->T_('974px'), 'mainbody3' => $this->T_('100% - Fluid'), 'custom-mainbody' => $this->T_('Custom - Define width below')), 'type' => 'select'), 'custom_width' => array('label' => T_('Custom Width'), 'note' => T_('Use Values in pixel or percent, Ex: 960px OR 90%.Ineffective unless Custom is selected.'), 'defaultvalue' => ''), 'sidebar_choice' => array('label' => T_('Choose Sidebar'), 'note' => 'Choose whether to use a sidebar, and sidebar style', 'defaultvalue' => 'tq-t5', 'options' => array('tq-t7' => $this->T_('No Sidebar'), 'tq-t1' => $this->T_('Left-160px'), 'tq-t2' => $this->T_('Left-180px'), 'tq-t3' => $this->T_('Left-300px'), 'tq-t4' => $this->T_('Right-180px'), 'tq-t4' => $this->T_('Right-180px'), 'tq-t5' => $this->T_('Right-240px'), 'tq-t6' => $this->T_('Right-300px')), 'type' => 'select'), 'skin_preset' => array('label' => T_('Choose Preset - Color'), 'note' => 'Choose from a ready presets styles, or choose -Custom- to create your own below', 'defaultvalue' => 'right', 'options' => array('default' => $this->T_('Chita - Default'), 'green' => $this->T_('Green')), 'type' => 'select'), 'bg_pattern' => array('label' => T_('Choose Background Pattern'), 'note' => '', 'defaultvalue' => 'hcomb', 'options' => array('none' => $this->T_('None'), 'comb' => $this->T_('Honey Comb'), 'shadow' => $this->T_('Shadow'), 'grid' => $this->T_('Grids'), 'royal' => $this->T_('Royal'), 'abstrblue' => $this->T_('Abstract-Blue')), 'type' => 'select'), 'use_google_font' => array('label' => T_('Use Google WebFonts'), 'note' => T_('See http://code.google.com/webfonts for more information'), 'defaultvalue' => 'No', 'options' => array('No' => $this->T_('No'), 'Arimo' => $this->T_('Arimo'), 'Arvo' => $this->T_('Arvo'), 'Cantarell' => $this->T_('Cantarell'), 'Cardo' => $this->T_('Cardo'), 'Cousine' => $this->T_('Cousine'), 'Crimson' => $this->T_('Crimson'), 'Cuprum' => $this->T_('Cuprum'), 'Droid+Sans' => $this->T_('Droid Sans'), 'Droid+Sans+Mono' => $this->T_('Droid Sans Mono'), 'Droid+Serif' => $this->T_('Droid Serif'), 'IM+Fell' => $this->T_('IM Fell'), 'Inconsolata' => $this->T_('Inconsolata'), 'Josefin+Sans' => $this->T_('Josefin Sans'), 'Josefin+Slab' => $this->T_('Josefin Slab'), 'Lobster' => $this->T_('Lobster'), 'Molengo' => $this->T_('Molengo'), 'Neucha' => $this->T_('Neucha'), 'Neuton' => $this->T_('Neuton'), 'Nobile' => $this->T_('Nobile'), 'OFL+Sorts+Mill+Goudy+TT' => $this->T_('OFL Sorts Mill Goudy TT'), 'Old+Standard+TT' => $this->T_('Old Standard TT'), 'PT+Sans' => $this->T_('PT Sans'), 'Philosopher' => $this->T_('Philosopher'), 'Reenie+Beanie' => $this->T_('Reenie Beanie'), 'Tangerine' => $this->T_('Tangerine'), 'Tinos' => $this->T_('Tinos'), 'Vollkorn' => $this->T_('Vollkorn'), 'Yanone+Kaffeesatz' => $this->T_('Yanone Kaffeesatz')), 'type' => 'select'), 'load_add_variant' => array('label' => T_('Use Additional Font Variant'), 'note' => T_('See http://code.google.com/webfonts for which variants are available for which fonts ! Variants are loaded but not applied as styles, apply additional variants to desired elements of your choice.'), 'defaultvalue' => 'No', 'options' => array('' => $this->T_('No'), ',regular' => $this->T_('Regular'), ',italic' => $this->T_('Italic'), ',bold' => $this->T_('Bold'), ',bolditalic' => $this->T_('Bold Italic')), 'type' => 'select'), 'font_size' => array('label' => T_('Font Size'), 'note' => 'Adjust Font Size', 'defaultvalue' => '', 'options' => array('90%' => $this->T_('Smaller'), '100%' => $this->T_('Normal'), '120%' => $this->T_('Bigger'), '150%' => $this->T_('Large'), '200%' => $this->T_('Huge')), 'type' => 'select'), 'display_cat_list' => array('label' => T_('Category Navigation'), 'note' => 'Display a Category Navigation Css Menu with rss feeds', 'defaultvalue' => 1, 'type' => 'checkbox'), 'basic_settings_end' => array('layout' => 'end_fieldset'), 'colors_settings_begin' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Color Settings')), 'body_background_color' => array('label' => T_('Body Background Color'), 'note' => T_('Ex: #ff0000 for red'), 'defaultvalue' => '', 'valid_pattern' => array('pattern' => '¤^(#([a-f0-9]{3}){1,2})?$¤i', 'error' => T_('Invalid color code.'))), 'header_background_color' => array('label' => T_('Header Background Color'), 'note' => T_('Ex: #ff0000 for red'), 'defaultvalue' => '', 'valid_pattern' => array('pattern' => '¤^(#([a-f0-9]{3}){1,2})?$¤i', 'error' => T_('Invalid color code.'))), 'header_link_color' => array('label' => T_('Header Links Color'), 'note' => T_('Ex: #ff0000 for red'), 'defaultvalue' => '', 'valid_pattern' => array('pattern' => '¤^(#([a-f0-9]{3}){1,2})?$¤i', 'error' => T_('Invalid color code.'))), 'header_text_color' => array('label' => T_('Header Text Color'), 'note' => T_('Ex: #ff0000 for red'), 'defaultvalue' => '', 'valid_pattern' => array('pattern' => '¤^(#([a-f0-9]{3}){1,2})?$¤i', 'error' => T_('Invalid color code.'))), 'conten_background_color' => array('label' => T_('Content Background Color'), 'note' => T_('Ex: #ff0000 for red'), 'defaultvalue' => '', 'valid_pattern' => array('pattern' => '¤^(#([a-f0-9]{3}){1,2})?$¤i', 'error' => T_('Invalid color code.'))), 'content_link_color' => array('label' => T_('Content Links Color'), 'note' => T_('Ex: #ff0000 for red'), 'defaultvalue' => '', 'valid_pattern' => array('pattern' => '¤^(#([a-f0-9]{3}){1,2})?$¤i', 'error' => T_('Invalid color code.'))), 'content_text_color' => array('label' => T_('Content Text Color'), 'note' => T_('Ex: #ff0000 for red'), 'defaultvalue' => '', 'valid_pattern' => array('pattern' => '¤^(#([a-f0-9]{3}){1,2})?$¤i', 'error' => T_('Invalid color code.'))), 'footer_background_color' => array('label' => T_('Footer Background Color'), 'note' => T_('Ex: #ff0000 for red'), 'defaultvalue' => '', 'valid_pattern' => array('pattern' => '¤^(#([a-f0-9]{3}){1,2})?$¤i', 'error' => T_('Invalid color code.'))), 'footer_link_color' => array('label' => T_('Footer Links Color'), 'note' => T_('Ex: #ff0000 for red'), 'defaultvalue' => '', 'valid_pattern' => array('pattern' => '¤^(#([a-f0-9]{3}){1,2})?$¤i', 'error' => T_('Invalid color code.'))), 'footer_text_color' => array('label' => T_('Footer Text Color'), 'note' => T_('Ex: #ff0000 for red'), 'defaultvalue' => '', 'valid_pattern' => array('pattern' => '¤^(#([a-f0-9]{3}){1,2})?$¤i', 'error' => T_('Invalid color code.'))), 'color_settings_end' => array('layout' => 'end_fieldset'), 'enhance_begin' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Enhancements')), 'load_jquery' => array('label' => T_('Load Jquery'), 'note' => T_('Loads jQuery for enhancements like Slider, evobar animations etc. all kind of jQuery madness'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'infinite_scroll' => array('label' => T_('Infinite Scroll'), 'note' => T_('Loads Next Set of Posts like twitter without having the need to click on next page'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'use_slider' => array('label' => T_('Use Slider'), 'note' => T_('Choose to use an Image Slider.jQuery Needs to be loaded!! See advanced options below'), 'defaultvalue' => 'No', 'options' => array('No' => $this->T_('No'), 'Nivo' => $this->T_('Nivo-Image Slider')), 'type' => 'select'), 'enhance_end' => array('layout' => 'end_fieldset'), 'post_info_begin' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Post Details')), 'prev_next_page' => array('label' => T_('Page Nav'), 'note' => T_('Display Previous / Next Page links -blocks-'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'prev_next_single' => array('label' => T_('Post Nav'), 'note' => T_('Display Previous / Next Page links -blocks-'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_post_cats' => array('label' => T_('Post Categories'), 'note' => T_('Displays categories of each post'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_post_tags' => array('label' => T_('Display Tags'), 'note' => T_('Display Tags of each post'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_post_comm' => array('label' => T_('Comment Link'), 'note' => T_('Display Comment link & count for each post'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_post_perm' => array('label' => T_('Permalink'), 'note' => T_('Display Permalink for each post'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_post_author' => array('label' => T_('Author'), 'note' => T_('Display author of each post'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_msg_link' => array('label' => T_('Message Link'), 'note' => T_('Display a link to message the author of each post'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_post_time' => array('label' => T_('Post time'), 'note' => T_('Display time for each post'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_post_word_count' => array('label' => T_('Word Count'), 'note' => T_('Display word count for each post'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_post_view_count' => array('label' => T_('View Count'), 'note' => T_('Display view count for each post'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'display_post_lang' => array('label' => T_('Post Language'), 'note' => T_('Display time for each post'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_post_lang_flag' => array('label' => T_('Language Flag'), 'note' => T_('Display Language Flag for each post'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'post_info_end' => array('layout' => 'end_fieldset'), 'social_begin' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Social Sharing')), 'display_social_bar' => array('label' => T_('Social Sharing'), 'note' => T_('Displays a div of Social Sharing icons'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'fbook_like' => array('label' => T_('Facebook Like'), 'note' => T_('Displays a Facebook Like Icon'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'social_end' => array('layout' => 'end_fieldset'), 'slider_begin' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Slider Options')), 'slider_width' => array('label' => T_('Slider Width'), 'note' => T_('Ex: 950px'), 'defaultvalue' => ''), 'slider_height' => array('label' => T_('Slider Height'), 'note' => T_('Ex: 250px'), 'defaultvalue' => ''), 'use_slider_parameters' => array('label' => T_('Advanced Parameters'), 'note' => T_('Check to use advanced slide parameters and define values below, otherwise default parameters set will apply'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'slider_effect' => array('label' => T_('Slider Effect'), 'note' => T_('Choose a single effect if you like.Default is random.'), 'defaultvalue' => 'random', 'options' => array('random' => $this->T_('Random'), 'sliceDownRight' => $this->T_('sliceDownRight'), 'sliceDownLeft' => $this->T_('sliceDownLeft'), 'sliceUpRight' => $this->T_('sliceUpRight'), 'sliceUpLeft' => $this->T_('sliceUpLeft'), 'sliceUpDown' => $this->T_('sliceUpDown'), 'sliceUpDownLeft' => $this->T_('sliceUpDownLeft'), 'fold' => $this->T_('fade'), 'fold' => $this->T_('fade')), 'type' => 'select'), 'slider_slices' => array('label' => T_('Slider Slices'), 'note' => T_('Default is 15, Numeric value between 1 to infinity, setting the number too high may result in performance issues'), 'defaultvalue' => ''), 'slider_animSpeed' => array('label' => T_('Slider Animation Speed'), 'note' => T_('Default is 400, Numeric value in miliseconds Ex: 1000'), 'defaultvalue' => ''), 'slider_pauseTime' => array('label' => T_('Slider Pause Time'), 'note' => T_('Default is 3000, Numeric value in miliseconds Ex: 1000'), 'defaultvalue' => ''), 'slider_startSlide' => array('label' => T_('Starting Slide'), 'note' => T_('Set starting Slide (0 index) Default is 0'), 'defaultvalue' => ''), 'slider_directionNav' => array('label' => T_('Direction Nav'), 'note' => T_('Next & Prev'), 'defaultvalue' => 'true', 'options' => array('false' => $this->T_('false'), 'true' => $this->T_('true')), 'type' => 'select'), 'slider_directionNavHide' => array('label' => T_('Direction Nav Hide'), 'note' => T_('Only show on hover'), 'defaultvalue' => 'true', 'options' => array('false' => $this->T_('false'), 'true' => $this->T_('true')), 'type' => 'select'), 'slider_controlNav' => array('label' => T_('Show Ordered Navigation'), 'note' => T_('1,2,3...'), 'defaultvalue' => 'true', 'options' => array('false' => $this->T_('false'), 'true' => $this->T_('true')), 'type' => 'select'), 'slider_keyboardNav' => array('label' => T_('Keyboard Navigation'), 'note' => T_('Use left & right arrows'), 'defaultvalue' => 'true', 'options' => array('false' => $this->T_('false'), 'true' => $this->T_('true')), 'type' => 'select'), 'slider_pauseOnHover' => array('label' => T_('Pause on Hover'), 'note' => T_('Use left & right arrows'), 'defaultvalue' => 'true', 'options' => array('false' => $this->T_('false'), 'true' => $this->T_('true')), 'type' => 'select'), 'slider_manualAdvance' => array('label' => T_('Manual Advance'), 'note' => T_('Force manual transitions'), 'defaultvalue' => 'false', 'options' => array('false' => $this->T_('false'), 'true' => $this->T_('true')), 'type' => 'select'), 'slider_captionOpacity' => array('label' => T_('Caption Opacity'), 'note' => T_('Universal caption opacity'), 'defaultvalue' => '0.8', 'options' => array('0.1' => $this->T_('0.1'), '0.2' => $this->T_('0.2'), '0.3' => $this->T_('0.3'), '0.4' => $this->T_('0.4'), '0.5' => $this->T_('0.5'), '0.6' => $this->T_('0.6'), '0.7' => $this->T_('0.7'), '0.8' => $this->T_('0.8'), '0.9' => $this->T_('0.9'), '1' => $this->T_('1')), 'type' => 'select'), 'slider_end' => array('layout' => 'end_fieldset'), 'infinite_begin' => array('layout' => 'begin_fieldset', 'label' => $this->T_('Infinite Scroll Options')), 'inf_bufferPx' => array('label' => T_('Buffer Scroll Px'), 'note' => T_('increase this number if you want infscroll to fire quicker ||a high number means a user will not see the loading message || Default is 40, Numeric value'), 'defaultvalue' => ''), 'inf_animate' => array('label' => T_('animate'), 'note' => T_('boolean, if the page will do an animated scroll when new content loads, default: false'), 'defaultvalue' => 'false', 'options' => array('false' => $this->T_('false'), 'true' => $this->T_('true')), 'type' => 'select'), 'inf_extraScrollPx' => array('label' => T_('Extra Scroll Px'), 'note' => T_('animate must be true for this to matter || number of additonal pixels that the page will scroll || Default is 100, Numeric value'), 'defaultvalue' => ''), 'inf_loadingText' => array('label' => T_('Loading Text'), 'note' => T_('text accompanying loading image ||Default is "Loading the next set of posts..."'), 'defaultvalue' => ''), 'inf_donetext' => array('label' => T_('Done Text'), 'note' => T_('text displayed when all items have been retrieved ||Default: "Congratulations you ve reached the end of the internet."'), 'defaultvalue' => ''), 'inf_debug' => array('label' => T_('debug'), 'note' => T_('enable debug messaging ( to console.log )'), 'defaultvalue' => 'false', 'options' => array('false' => $this->T_('false'), 'true' => $this->T_('true')), 'type' => 'select'), 'infinite_end' => array('layout' => 'end_fieldset'), 'display_b2_credits' => array('label' => T_('Footer credits'), 'note' => T_('Display b2evolution links in footer'), 'defaultvalue' => 0, 'type' => 'checkbox'), 'display_b2_credits_side' => array('label' => T_('Sidebar credits'), 'note' => T_('Display b2evolution link in sidebar'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_footer_contact' => array('label' => T_('Contact link'), 'note' => T_('Display contact link in footer '), 'defaultvalue' => 1, 'type' => 'checkbox'), 'display_footer_help' => array('label' => T_('Help link'), 'note' => T_('Display help link in footer '), 'defaultvalue' => 1, 'type' => 'checkbox')), parent::get_param_definitions($params));
     global $app_version;
     if (round($app_version) >= 5) {
         unset($r['load_jquery']);
     }
     return $r;
 }
Exemplo n.º 7
0
 /**
  * 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));
 }
Exemplo n.º 8
0
 /**
  * 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'), '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;
 }
Exemplo n.º 9
0
 /**
  * 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;
 }
Exemplo n.º 10
0
 /**
  * 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;
 }
Exemplo n.º 11
0
 /**
  * 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;
 }
 /**
  * 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;
 }
Exemplo n.º 13
0
 /**
  * Get definitions for editable params
  *
  * @see Plugin::GetDefaultSettings()
  * @param local params like 'for_editing' => true
  */
 function get_param_definitions($params)
 {
     $r = array_merge(array('avatar_style' => array('label' => T_('Style of profile pictures'), 'note' => '', 'defaultvalue' => 'round', 'type' => 'radio', 'options' => array(array('round', T_('Round the corners of profile pictures')), array('square', T_('Original pictures with square corners'))), 'field_lines' => true), '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'), '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'), 'width_switcher' => array('label' => T_('Width switcher'), 'note' => T_('Check to enable the width switcher between fixed value and 100%.'), 'defaultvalue' => 1, 'type' => 'checkbox')), parent::get_param_definitions($params));
     return $r;
 }
Exemplo n.º 14
0
 /**
  * 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;
 }
Exemplo n.º 15
0
 /**
  * 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'), '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;
 }
Exemplo n.º 16
0
 /**
  * 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;
 }
Exemplo n.º 17
0
 /**
  * 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_image' => array('label' => T_('Header Image'), 'note' => T_('0 for random header image; 1,2,3,4 for custom header image.'), 'defaultvalue' => 0, 'valid_pattern' => array('pattern' => '~^([0-4]{1})?$~', 'error' => T_('Invalid Header Image.'))), '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;
 }
Exemplo n.º 18
0
 /**
  * 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;
 }
Exemplo n.º 19
0
 /**
  * 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')), 'layout_general' => array('label' => T_('General Layout'), 'note' => '', 'defaultvalue' => 'no_sidebar', 'options' => array('no_sidebar' => T_('No Sidebar'), 'left_sidebar' => T_('Left Sidebar'), 'right_sidebar' => T_('Right Sidebar')), 'type' => 'select'), 'layout_single' => array('label' => T_('Single Thread Layout'), 'note' => '', 'defaultvalue' => 'no_sidebar', 'options' => array('no_sidebar' => T_('No Sidebar'), 'left_sidebar' => T_('Left Sidebar'), 'right_sidebar' => T_('Right Sidebar')), 'type' => 'select'), 'max_image_height' => array('label' => T_('Max image height'), 'note' => 'px', 'defaultvalue' => '', 'type' => 'integer', 'allow_empty' => true), 'section_layout_end' => array('layout' => 'end_fieldset'), 'section_forum_start' => array('layout' => 'begin_fieldset', 'label' => T_('Forum Display Settings')), 'display_post_date' => array('label' => T_('Post date'), 'note' => T_('Display the date of each post'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'banner_public' => array('label' => T_('Display "Public" banner'), 'note' => T_('Display banner for "Public" posts (posts & comments)'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'section_forum_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' => 1, '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;
 }
Exemplo n.º 20
0
 /**
  * Get definitions for editable params
  *
  * @see Plugin::GetDefaultSettings()
  * @param local params like 'for_editing' => true
  */
 function get_param_definitions($params)
 {
     global $Blog;
     // Load to use function get_available_thumb_sizes()
     load_funcs('files/model/_image.funcs.php');
     // System provide bg images
     $bodybg_cat = 'assets/images/bodybg/';
     // Background images folder relative to this skin folder
     $arr_bodybg = $this->get_arr_pics_from_folder($this->get_path() . $bodybg_cat, $this->get_url() . $bodybg_cat, 60, 60);
     // User Custom bg images
     $custom_bodybg_cat = "bodybg/";
     // Background images folder which created by users themselves, and it's relative to collection media dir
     $arr_custom_bodybg = $this->get_arr_pics_from_folder($Blog->get_media_dir() . $custom_bodybg_cat, $Blog->get_media_url() . $custom_bodybg_cat, 65, 65);
     $r = array_merge(array('general_settings_start' => array('layout' => 'begin_fieldset', 'label' => T_('General Settings') . ' (All disps)'), 'layout' => array('label' => T_('Front Page Layout'), 'note' => '', 'defaultvalue' => 'right_sidebar', 'type' => 'select', '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'))), 'max_image_height' => array('label' => T_('Max image height'), 'note' => 'px', 'defaultvalue' => '', 'type' => 'integer', 'allow_empty' => true), 'color_schemes' => array('label' => T_('Color Schemes'), 'note' => T_('Default value is') . ' #1ABC9C', 'defaultvalue' => '#1ABC9C', 'type' => 'color'), 'background_type' => array('label' => T_('Site Background Style'), 'note' => T_('Select your favorite') . ' <code>Background Style</code> ' . T_('for your site.'), 'type' => 'select', 'options' => array('color' => T_('Site Background Color'), 'images' => T_('Background Image Pattern'), 'custom_images' => T_('Custom Background Image')), 'defaultvalue' => 'images'), 'site_background_color' => array('label' => T_('Site Background Color'), 'note' => T_('Default value is') . ' #F5F7F9', 'defaultvalue' => '#F5F7F9', 'type' => 'color'), 'bg_image' => array('label' => T_('Background Image Pattern'), 'note' => T_('Choose your favorite background image pattern'), 'type' => 'radio', 'options' => $arr_bodybg, 'defaultvalue' => reset($arr_bodybg[0])), 'bg_image_custom' => array('label' => T_('User Custom Background Image'), 'note' => T_('(Please create a folder named') . ' <code>' . str_replace("/", "", $custom_bodybg_cat) . '</code> ' . T_('in your collection media folder and put the images into it. Now') . ' <a href="admin.php?ctrl=files" target="_blank"><i>' . T_('Create folder or Upload images ') . '</i></a>.', 'type' => 'radio', 'options' => $arr_custom_bodybg, 'defaultvalue' => reset($arr_custom_bodybg[0])), 'bg_image_custom_attach' => array('label' => T_('Custom Background Attachment'), 'note' => T_('Select the Background Attachment for Custom Background Image.'), 'type' => 'select', 'options' => array('initial' => T_('Initial'), 'fixed' => T_('Fixed')), 'defaultvalue' => 'initial'), 'bg_image_custom_size' => array('label' => T_('Custom Background Size'), 'note' => T_('Select the background size for Custom Background Image.'), 'type' => 'select', 'defaultvalue' => 'auto', 'options' => array('auto' => T_('Auto'), 'contain' => T_('Contain'), 'cover' => T_('Cover'))), 'bt_top' => array('label' => T_('Display Button Back To Top'), 'note' => T_('Check to enable button back to top.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'bg_wrap_content' => array('label' => T_('Content Background Wrapper'), 'note' => T_('Change Background wrapper for Posts, Widget, Search Results and other. Default value is') . ' <code>#FFFFFF</code>', 'type' => 'color', 'defaultvalue' => '#FFFFFF'), 'general_settings_end' => array('layout' => 'end_fieldset'), 'page_setting_start' => array('layout' => 'begin_fieldset', 'label' => T_('Page Settings') . ' (All disps)'), 'page_content_color' => array('label' => T_('Page Content Color'), 'note' => T_('Default value is blank'), 'defaultvalue' => '', 'type' => 'color'), 'page_heading_color' => array('label' => T_('Page Heading Color'), 'note' => T_('Default value is') . ' <code>#555555</code>', 'type' => 'color', 'defaultvalue' => '#555555'), 'page_font_size' => array('label' => T_('Font Size Page'), 'note' => T_('px. Change font size for content all page.'), 'type' => 'integer', 'defaultvalue' => '', 'size' => 5, 'allow_empty' => true), 'page_info_color' => array('label' => T_('Page Info Text Color'), 'note' => T_('Default value is') . ' <code>#777777</code>', 'defaultvalue' => '#777777', 'type' => 'color'), 'page_info_link' => array('label' => T_('Page Info Link Color'), 'note' => T_('Default value is') . ' <code>#A9A9A9</code>', 'defaultvalue' => '#A9A9A9', 'type' => 'color'), 'page_setting_end' => array('layout' => 'end_fieldset'), 'header_settings_start' => array('layout' => 'begin_fieldset', 'label' => T_('Header settings') . ' (All disps)'), 'head_center_mode' => array('label' => T_('Max Width Header Center Mode'), 'note' => T_('px - Set Max Width for Header Center Mode. Default') . ' <code>(992px)</code>' . T_(', example:') . ' <code>1170px</code>', 'defaultvalue' => '992', 'size' => '5', 'type' => 'integer', 'allow_empty' => true), 'header_bg_color' => array('label' => T_('Header Background Color'), 'note' => T_('Default value is') . ' <code>#262626</code>', 'defaultvalue' => '#262626', 'type' => 'color'), 'nav_color_link' => array('label' => T_('Navigation Link Color'), 'note' => T_('Default value is') . ' <code>#FFFFFF</code>', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'nav_color_hovlink' => array('label' => T_('Navigation Hover Link Color'), 'note' => T_('Default value is') . ' <code>#FFFFFF</code>', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'header_settings_end' => array('layout' => 'end_fieldset'), 'posts_settings_start' => array('layout' => 'begin_fieldset', 'label' => T_('Posts Settings') . ' (disp=posts)'), 'posts_layout' => array('label' => T_('Posts Layout'), 'note' => T_('Select "Single Column Large" Layout for Post 3 Column'), 'type' => 'select', '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')), 'defaultvalue' => 'right_sidebar'), 'posts_column' => array('label' => T_('Posts Columns'), 'note' => T_('( Number of posts columns in posts disp. )'), 'type' => 'select', 'options' => array('one' => T_('1 Column'), 'two' => T_('2 Columns'), 'three' => T_('3 Columns')), 'defaultvalue' => 'one'), 'pagination_layout' => array('label' => T_('Pagination Layout'), 'note' => T_('Select Layout for Pagination'), 'type' => 'select', 'options' => array('left' => T_('Left'), 'center' => T_('Centers'), 'right' => T_('Right')), 'defaultvalue' => 'center'), 'posts_title_color' => array('label' => T_('Posts Title Color'), 'note' => T_('Default value is') . ' <code>#555555</code>', 'defaultvalue' => '#555555', 'type' => 'color'), 'posts_settings_end' => array('layout' => 'end_fieldset'), 'tags_settings_start' => array('layout' => 'begin_fieldset', 'label' => T_('Tags Layout Settings') . ' (All disps)'), 'tags_color' => array('label' => T_('Tags Text Color'), 'note' => T_('Default value is') . ' <code>#FFFFFF</code>', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'tags_bg' => array('label' => T_('Tags Background Color'), 'note' => T_('Default value is') . ' <code>#333333</code>', 'defaultvalue' => '#333333', 'type' => 'color'), 'tags_icon' => array('label' => T_('Show Icon Tags'), 'note' => T_('Check to show icon tags.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'tags_settings_end' => array('layout' => 'end_fieldset'), 'single_settings_start' => array('layout' => 'begin_fieldset', 'label' => T_('Single and Page Disp Settings') . ' (disp=single and disp=page)'), 'single_layout' => array('label' => T_('Single and Page Layout'), 'note' => '', 'defaultvalue' => 'single_column', 'type' => 'select', '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'))), 'single_settings_end' => array('layout' => 'end_fieldset'), 'sidebar_settings_start' => array('layout' => 'begin_fieldset', 'label' => T_('Sidebar Settings') . ' (All disps)'), 'side_widget_title' => array('label' => T_('Widget Title Color'), 'note' => T_('Default value is') . ' <code>#555555</code>', 'defaultvalue' => '#555555', 'type' => 'color'), 'side_widget_content' => array('label' => T_('Widget Content Color'), 'note' => T_('Default value is') . ' <code>#6F6F6F</code>', 'defaultvalue' => '#6F6F6F', 'type' => 'color'), 'side_widget_link' => array('label' => T_('Widget Link Color'), 'note' => T_('Default value is') . '<strong> Empty</strong>' . T_('. The empty value link color will be follow Color Schemes.'), 'defaultvalue' => '', 'type' => 'color', 'allow_empty' => true), 'side_border' => array('label' => T_('Widget Border Color'), 'note' => T_('Default value is') . ' <code>#EEEEEE</code>', 'defaultvalue' => '#EEEEEE', 'type' => 'color'), 'sidebar_settings_end' => array('layout' => 'end_fieldset'), 'uil_widget_settings_start' => array('layout' => 'begin_fieldset', 'label' => T_('Special Widget Settings') . ' (All Disps)'), 'uil_widget_readmore' => array('label' => T_('List-type Widgets "Read more" button'), 'note' => T_('Check to display the "Read more" button after content on all list-type widgets (Excerpt and Teaser)'), 'type' => 'checkbox', 'defaultvalue' => 1), 'uil_widget_settings_end' => array('layout' => 'end_fieldset'), 'footer_settings_start' => array('layout' => 'begin_fieldset', 'label' => T_('Footer Settings') . ' (All disps)'), 'footer_widget' => array('label' => T_('Display Footer Widget'), 'note' => T_('Check to enable footer widget.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'footer_bg_color' => array('label' => T_('Footer Main Background Color'), 'note' => T_('Default value is') . ' <code>#262626</code>', 'defaultvalue' => '#262626', 'type' => 'color'), 'footer_widget_title' => array('label' => T_('Footer Widget Title Color'), 'note' => T_('Default value is') . ' <code>#FFFFFF</code>', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'footer_widget_content' => array('label' => T_('Footer Widget Content Color'), 'note' => T_('Default value is') . ' <code>#FFFFFF</code>', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'footer_widget_link' => array('label' => T_('Footer Widget Link Color'), 'note' => T_('Default value is ') . '<strong>' . T_('Empty') . '</strong>.', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'footer_border_color' => array('label' => T_('Footer Border Color'), 'note' => T_('Default value is') . ' <code>#3C3C3C</code>', 'defaultvalue' => '#3C3C3C', 'type' => 'color'), 'footer_tags_bg' => array('label' => T_('Tags Widget Background Color'), 'note' => T_('Default value is') . ' <code>#333333</code>', 'defaultvalue' => '#333333', 'type' => 'color'), 'footer_user_link' => array('label' => T_('Display Footer User Links'), 'note' => T_('Check to enable widget user links.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'footer_sm_color' => array('label' => T_('Social Media Icon Color'), 'note' => T_('Default value is') . ' <code>#FFFFFF</code>', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'footer_sm_bgcolor' => array('label' => T_('Social Media Background Color'), 'note' => T_('Default value is') . ' <code>#212121</code>', 'defaultvalue' => '#212121', 'type' => 'color'), 'footer_copyright' => array('label' => T_('Display Footer Copyright'), 'note' => T_('Check to display footer copyright.'), 'defaultvalue' => 1, 'type' => 'checkbox'), 'footer_copyright_content' => array('label' => T_('Copyright Content Color'), 'note' => T_('Default value is') . ' <code>#FFFFFF</code>', 'defaultvalue' => '#FFFFFF', 'type' => 'color'), 'footer_copyright_link' => array('label' => T_('Copyright Link Color'), 'note' => T_('Default value is ') . '<strong>' . T_('Empty') . '</strong>.' . T_('The color follow Color Schemes.'), 'defaultvalue' => '', 'type' => 'color', 'allow_empty' => true), 'footer_settings_end' => array('layout' => 'end_fieldset'), 'section_media_start' => array('layout' => 'begin_fieldset', 'label' => T_('Media Posts Settings') . ' (disp=mediaidx)'), 'mediaidx_layout' => array('label' => T_('Media Posts Layout'), 'note' => '', 'defaultvalue' => 'single_column', 'type' => 'select', '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'))), 'mediaidx_thumb_size' => array('label' => T_('Thumbnail size for media index'), 'note' => '', 'defaultvalue' => 'crop-480x320', 'options' => get_available_thumb_sizes(), 'type' => 'select'), 'mediaidx_grid' => array('label' => T_('Column'), 'note' => '', 'defaultvalue' => 'three_column', 'type' => 'select', 'options' => array('one_column' => T_('1 Column'), 'two_column' => T_('2 Column'), 'three_column' => T_('3 Column'))), 'padding_column' => array('label' => T_('Padding Image Column'), 'note' => T_('px ( default padding') . '15px' . T_(' )'), 'defaultvalue' => '15', 'type' => 'integer', 'allow_empty' => true), 'section_media_end' => array('layout' => 'end_fieldset'), 'user_settings_start' => array('layout' => 'begin_fieldset', 'label' => T_('User Disp Layout') . ' (All disps)'), 'user_layout' => array('label' => T_('Page Layout'), 'note' => '', 'defaultvalue' => 'single_column_normal', 'type' => 'select', 'options' => array('single_column_normal' => T_('Single Column'), 'left_sidebar' => T_('Left Sidebar'), 'right_sidebar' => T_('Right Sidebar'))), 'user_settings_end' => array('layout' => 'end_fieldset'), 'section_colorbox_start' => array('layout' => 'begin_fieldset', 'label' => T_('Colorbox Image Zoom') . ' (All disps)'), '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') . ' (All disp)'), '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') . ' (disp=access_denied and disp=access_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('sidebar', sprintf(T_('"%s" container'), NT_('Sidebar')), 0), array('footer', sprintf(T_('"%s" container'), NT_('Footer')), 1))), 'section_access_end' => array('layout' => 'end_fieldset')), parent::get_param_definitions($params));
     return $r;
 }
Exemplo n.º 21
0
 /**
  * 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'), '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')), parent::get_param_definitions($params));
     return $r;
 }
Exemplo n.º 22
0
 /**
  * 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;
 }
Exemplo n.º 23
0
 /**
  * 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;
 }
Exemplo n.º 24
0
 /**
  * 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;
 }
Exemplo n.º 25
0
 /**
  * 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', '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;
 }
Exemplo n.º 26
0
 /**
  * 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;
 }
Exemplo n.º 27
0
 /**
  * Get definitions for editable params
  *
  * @see Plugin::GetDefaultSettings()
  * @param local params like 'for_editing' => true
  */
 function get_param_definitions($params)
 {
     $r = array_merge(array('skin_color' => array('label' => T_('Skin Color'), 'defaultvalue' => 'red', 'note' => '', 'type' => 'select', 'options' => array('blue' => 'blue', 'brown' => 'brown', 'green' => 'green', 'magenta' => 'magenta', 'red' => 'red')), 'width_style' => array('label' => T_('Width Style'), 'defaultvalue' => 'fluid', 'note' => '', 'type' => 'select', 'options' => array('fixed' => 'fixed', 'fluid' => 'fluid')), 'column_count' => array('label' => T_('No. of Columns'), 'defaultvalue' => '3', 'note' => '', 'type' => 'select', 'options' => array('3' => '3', '2' => '2', '1' => '1')), '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;
 }