Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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_('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;
 }
Ejemplo 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_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;
 }
Ejemplo 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_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;
 }
 /**
  * Get definitions for editable params
  *
  * @see Plugin::GetDefaultSettings()
  * @param local params like 'for_editing' => true
  */
 function get_param_definitions($params)
 {
     load_funcs('files/model/_image.funcs.php');
     /**
      * @var ItemTypeCache
      */
     $ItemTypeCache =& get_ItemTypeCache();
     $item_type_options = array('' => T_('All')) + $ItemTypeCache->get_option_array();
     $r = array_merge(array('title' => array('label' => T_('Block title'), 'note' => T_('Title to display in your skin.'), 'size' => 40, 'defaultvalue' => T_('Recent photos')), 'item_type' => array('label' => T_('Item type'), 'note' => T_('What kind of items do you want to list?'), 'type' => 'select', 'options' => $item_type_options, 'defaultvalue' => '1'), 'thumb_size' => array('label' => T_('Thumbnail size'), 'note' => T_('Cropping and sizing of thumbnails'), 'type' => 'select', 'options' => get_available_thumb_sizes(), 'defaultvalue' => 'crop-80x80'), 'thumb_layout' => array('label' => T_('Layout'), 'note' => T_('How to lay out the thumbnails'), 'type' => 'select', 'options' => array('grid' => T_('Grid'), 'list' => T_('List')), 'defaultvalue' => 'grid'), 'disp_image_title' => array('label' => T_('Display image title'), 'note' => T_('Check this to display image title. This falls back to post title if image title is not set.'), 'type' => 'checkbox', 'defaultvalue' => false), 'grid_nb_cols' => array('label' => T_('Columns'), 'note' => T_('Number of columns in grid mode.'), 'size' => 4, 'defaultvalue' => 2), 'limit' => array('label' => T_('Max items'), 'note' => T_('Maximum number of items to display.'), 'size' => 4, 'defaultvalue' => 3), 'order_by' => array('label' => T_('Order by'), 'note' => T_('How to sort the items'), 'type' => 'select', 'options' => get_available_sort_options(), 'defaultvalue' => 'datestart'), 'order_dir' => array('label' => T_('Direction'), 'note' => T_('How to sort the items'), 'type' => 'radio', 'options' => array(array('ASC', T_('Ascending')), array('DESC', T_('Descending'))), 'defaultvalue' => 'DESC'), 'blog_ID' => array('label' => T_('Blogs'), 'note' => T_('IDs of the blogs to use, leave empty for the current blog. Separate multiple blogs by commas.'), 'size' => 4)), 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)
 {
     load_funcs('files/model/_image.funcs.php');
     /**
      * @var ItemTypeCache
      */
     $ItemTypeCache =& get_ItemTypeCache();
     $item_type_options = array('' => T_('All')) + $ItemTypeCache->get_option_array();
     $r = array_merge(array('title' => array('label' => T_('Block title'), 'note' => T_('Title to display in your skin.'), 'size' => 40, 'defaultvalue' => T_('Recent photos')), 'item_visibility' => array('label' => T_('Item visibility'), 'note' => T_('What post statuses should be included in the list?'), 'type' => 'radio', 'field_lines' => true, 'options' => array(array('public', T_('show public images (cacheable)')), array('all', T_('show all images the current user is allowed to see (not cacheable)'))), 'defaultvalue' => 'all'), 'item_type' => array('label' => T_('Post type'), 'note' => T_('What kind of items do you want to list?'), 'type' => 'select', 'options' => $item_type_options, 'defaultvalue' => '1'), 'thumb_size' => array('label' => T_('Thumbnail size'), 'note' => T_('Cropping and sizing of thumbnails'), 'type' => 'select', 'options' => get_available_thumb_sizes(), 'defaultvalue' => 'crop-80x80'), 'thumb_layout' => array('label' => T_('Layout'), 'note' => T_('How to lay out the thumbnails'), 'type' => 'select', 'options' => array('grid' => T_('Grid'), 'list' => T_('List'), 'flow' => T_('Flowing Blocks')), 'defaultvalue' => 'flow'), 'disp_image_title' => array('label' => T_('Display image title'), 'note' => T_('Check this to display image title. This falls back to post title if image title is not set.'), 'type' => 'checkbox', 'defaultvalue' => false), 'grid_nb_cols' => array('label' => T_('Columns'), 'note' => T_('Number of columns in grid mode.'), 'size' => 4, 'defaultvalue' => 2), 'limit' => array('label' => T_('Max items'), 'note' => T_('Maximum number of items to display.'), 'size' => 4, 'defaultvalue' => 3), 'order_by' => array('label' => T_('Order by'), 'note' => T_('How to sort the items'), 'type' => 'select', 'options' => get_available_sort_options(), 'defaultvalue' => 'datestart'), 'order_dir' => array('label' => T_('Direction'), 'note' => T_('How to sort the items'), 'type' => 'radio', 'options' => array(array('ASC', T_('Ascending')), array('DESC', T_('Descending'))), 'defaultvalue' => 'DESC'), 'blog_ID' => array('label' => T_('Collection'), 'note' => T_('ID of the collection to use, leave empty for the current collection.'), 'size' => 4, 'type' => 'integer', 'allow_empty' => true)), parent::get_param_definitions($params));
     return $r;
 }
Ejemplo n.º 8
0
 /**
  * Get definitions for editable params
  *
  * @see Plugin::GetDefaultSettings()
  * @param local params like 'for_editing' => true
  */
 function get_param_definitions($params)
 {
     load_funcs('files/model/_image.funcs.php');
     /**
      * @var ItemTypeCache
      */
     $ItemTypeCache =& get_ItemTypeCache();
     $item_type_options = array('#' => T_('Default'), '' => T_('All')) + $ItemTypeCache->get_option_array();
     $r = array_merge(array('title' => array('label' => T_('Block title'), 'note' => T_('Title to display in your skin.'), 'size' => 60, 'defaultvalue' => T_('Items')), 'title_link' => array('label' => T_('Link to blog'), 'note' => T_('Link the block title to the blog?'), 'type' => 'checkbox', 'defaultvalue' => false), 'item_type' => array('label' => T_('Item type'), 'note' => T_('What kind of items do you want to list?'), 'type' => 'select', 'options' => $item_type_options, 'defaultvalue' => '#'), 'thumb_size' => array('label' => T_('Thumbnail size'), 'note' => T_('Cropping and sizing of thumbnails'), 'type' => 'select', 'options' => get_available_thumb_sizes(), 'defaultvalue' => 'crop-80x80'), 'follow_mainlist' => array('label' => T_('Follow Main List'), 'note' => T_('Do you want to restrict to contents related to what is displayed in the main area?'), 'type' => 'radio', 'options' => array(array('no', T_('No')), array('tags', T_('By tags'))), 'defaultvalue' => 'no'), 'blog_ID' => array('label' => T_('Blog'), 'note' => T_('ID of the blog to use, leave empty for the current blog.'), 'size' => 4), 'item_group_by' => array('label' => T_('Group by'), 'note' => T_('Do you want to group the Items?'), 'type' => 'radio', 'options' => array(array('none', T_('None')), array('chapter', T_('By category/chapter'))), 'defaultvalue' => 'none'), 'order_by' => array('label' => T_('Order by'), 'note' => T_('How to sort the items'), 'type' => 'select', 'options' => get_available_sort_options(), 'defaultvalue' => 'datestart'), 'order_dir' => array('label' => T_('Direction'), 'note' => T_('How to sort the items'), 'type' => 'radio', 'options' => array(array('ASC', T_('Ascending')), array('DESC', T_('Descending'))), 'defaultvalue' => 'DESC'), 'limit' => array('label' => T_('Max items'), 'note' => T_('Maximum number of items to display.'), 'size' => 4, 'defaultvalue' => 20), 'disp_title' => array('label' => T_('Titles'), 'note' => T_('Display title.'), 'type' => 'checkbox', 'defaultvalue' => true), 'item_title_link_type' => array('label' => T_('Link titles'), 'note' => T_('Where should titles be linked to?'), 'type' => 'select', 'options' => array('auto' => T_('Automatic'), 'permalink' => T_('Item permalink'), 'linkto_url' => T_('Item URL'), 'none' => T_('Nowhere')), 'defaultvalue' => 'auto'), 'attached_pics' => array('label' => T_('Attached pictures'), 'note' => '', 'type' => 'radio', 'options' => array(array('none', T_('None')), array('first', T_('Display first')), array('all', T_('Display all'))), 'defaultvalue' => 'none'), 'item_pic_link_type' => array('label' => T_('Link pictures'), 'note' => T_('Where should pictures be linked to?'), 'type' => 'select', 'options' => array('auto' => T_('Automatic'), 'permalink' => T_('Item permalink'), 'linkto_url' => T_('Item URL'), 'none' => T_('Nowhere')), 'defaultvalue' => 'auto'), 'disp_excerpt' => array('label' => T_('Excerpt'), 'note' => T_('Display excerpt for each item.'), 'type' => 'checkbox', 'defaultvalue' => false), 'disp_teaser' => array('label' => T_('Content teaser'), 'type' => 'checkbox', 'defaultvalue' => false, 'note' => T_('Display content teaser for each item.')), 'disp_teaser_maxwords' => array('label' => T_('Max Words'), 'type' => 'integer', 'defaultvalue' => 20, 'note' => T_('Max number of words for the teasers.'))), parent::get_param_definitions($params));
     // pre_dump( $r['item_type']['options'] );
     return $r;
 }
 /**
  * Get definitions for editable params
  *
  * @see Plugin::GetDefaultSettings()
  * @param local params like 'for_editing' => true
  */
 function get_param_definitions($params)
 {
     load_funcs('files/model/_image.funcs.php');
     $r = array_merge(array('profile_picture_size' => array('label' => T_('Profile picture size'), 'note' => '', 'type' => 'select', 'options' => get_available_thumb_sizes(), 'defaultvalue' => 'crop-top-15x15'), 'blog_ID' => array('label' => T_('Collection ID'), 'note' => T_('Leave empty for current collection.'), 'type' => 'integer', 'allow_empty' => true, 'size' => 5, 'defaultvalue' => '')), parent::get_param_definitions($params));
     if (isset($r['allow_blockcache'])) {
         // Disable "allow blockcache" because this widget uses the selected items
         $r['allow_blockcache']['defaultvalue'] = false;
         $r['allow_blockcache']['disabled'] = 'disabled';
         $r['allow_blockcache']['note'] = T_('This widget cannot be cached in the block cache.');
     }
     return $r;
 }
Ejemplo n.º 10
0
 /**
  * Get definitions for editable params
  *
  * @see Plugin::GetDefaultSettings()
  * @param local params like 'for_editing' => true
  */
 function get_param_definitions($params)
 {
     load_funcs('files/model/_image.funcs.php');
     $r = array_merge(array('title' => array('label' => T_('Block title'), 'note' => T_('Title to display in your skin.'), 'size' => 40, 'defaultvalue' => T_('User log in')), 'password_link_show' => array('label' => T_('Password recovery link'), 'note' => T_('Show link'), 'type' => 'checkbox', 'defaultvalue' => 1), 'password_link' => array('size' => 30, 'note' => T_('Link text to display'), 'type' => 'text', 'defaultvalue' => T_('Lost password?')), 'register_link_show' => array('label' => T_('Register link'), 'note' => T_('Show link'), 'type' => 'checkbox', 'defaultvalue' => 1), 'register_link' => array('size' => 30, 'note' => T_('Link text to display'), 'type' => 'text', 'defaultvalue' => T_('No account yet? Register here &raquo;')), 'profile_picture_size' => array('label' => T_('Profile picture'), 'note' => '', 'type' => 'select', 'options' => get_available_thumb_sizes(T_('none')), 'defaultvalue' => 'crop-top-32x32'), 'group_show' => array('label' => T_('User group'), 'note' => T_('Show user group'), 'type' => 'checkbox', 'defaultvalue' => 1), 'group_text' => array('size' => 30, 'note' => T_('Group text to display'), 'type' => 'text', 'defaultvalue' => T_('Your group: $group$')), 'level_show' => array('label' => T_('User level'), 'note' => T_('Show user level'), 'type' => 'checkbox', 'defaultvalue' => 1), 'level_text' => array('size' => 30, 'note' => T_('Level text to display'), 'type' => 'text', 'defaultvalue' => T_('Your level: $level$')), 'greeting_show' => array('label' => T_('Greeting'), 'note' => T_('Show greeting'), 'type' => 'checkbox', 'defaultvalue' => 1), 'greeting_text' => array('size' => 30, 'note' => T_('Greeting text to display'), 'type' => 'text', 'defaultvalue' => T_('Hello $login$!'))), parent::get_param_definitions($params));
     if (isset($r['allow_blockcache'])) {
         // Set default blockcache to false and disable this setting because caching is never allowed for this widget
         $r['allow_blockcache']['defaultvalue'] = false;
         $r['allow_blockcache']['disabled'] = 'disabled';
         $r['allow_blockcache']['note'] = T_('This widget cannot be cached in the block cache.');
     }
     return $r;
 }
Ejemplo n.º 11
0
 /**
  * Get definitions for editable params
  *
  * @see Plugin::GetDefaultSettings()
  * @param local params like 'for_editing' => true
  */
 function get_param_definitions($params)
 {
     load_funcs('files/model/_image.funcs.php');
     /**
      * @var ItemTypeCache
      */
     $ItemTypeCache =& get_ItemTypeCache();
     $item_type_options = array('#' => T_('Default'), '' => T_('All')) + $ItemTypeCache->get_option_array();
     $r = array_merge(array('title' => array('label' => T_('Block title'), 'note' => T_('Title to display in your skin.'), 'size' => 60, 'defaultvalue' => T_('Items')), 'title_link' => array('label' => T_('Link to blog'), 'note' => T_('Link the block title to the blog?'), 'type' => 'checkbox', 'defaultvalue' => false), 'item_visibility' => array('label' => T_('Item visibility'), 'note' => T_('What post statuses should be included in the list?'), 'type' => 'radio', 'field_lines' => true, 'options' => array(array('public', T_('show public posts')), array('all', T_('show all posts the current user is allowed to see'))), 'defaultvalue' => 'all'), 'item_type' => array('label' => T_('Post type'), 'note' => T_('What kind of items do you want to list?'), 'type' => 'select', 'options' => $item_type_options, 'defaultvalue' => '#'), 'follow_mainlist' => array('label' => T_('Follow Main List'), 'note' => T_('Do you want to restrict to contents related to what is displayed in the main area?'), 'type' => 'radio', 'options' => array(array('no', T_('No')), array('tags', T_('By tags'))), 'defaultvalue' => 'no'), 'blog_ID' => array('label' => T_('Collections'), 'note' => T_('List collection IDs separated by \',\', \'*\' for all collections, \'-\' for current collection without aggregation or leave empty for current collection including aggregation.'), 'size' => 4, 'type' => 'text', 'valid_pattern' => array('pattern' => '/^(\\d+(,\\d+)*|-|\\*)?$/', 'error' => T_('Invalid list of Collection IDs.')), 'defaultvalue' => ''), 'cat_IDs' => array('label' => T_('Categories'), 'note' => T_('List category IDs separated by ,'), 'size' => 15, 'type' => 'text', 'valid_pattern' => array('pattern' => '/^(\\d+(,\\d+)*|-|\\*)?$/', 'error' => T_('Invalid list of Category IDs.'))), 'item_group_by' => array('label' => T_('Group by'), 'note' => T_('Do you want to group the Items?'), 'type' => 'radio', 'options' => array(array('none', T_('None')), array('chapter', T_('By category/chapter'))), 'defaultvalue' => 'none'), 'order_by' => array('label' => T_('Order by'), 'note' => T_('How to sort the items'), 'type' => 'select', 'options' => get_available_sort_options(), 'defaultvalue' => 'datestart'), 'order_dir' => array('label' => T_('Direction'), 'note' => T_('How to sort the items'), 'type' => 'radio', 'options' => array(array('ASC', T_('Ascending')), array('DESC', T_('Descending'))), 'defaultvalue' => 'DESC'), 'limit' => array('label' => T_('Max items'), 'note' => T_('Maximum number of items to display.'), 'size' => 4, 'defaultvalue' => 20), 'disp_title' => array('label' => T_('Titles'), 'note' => T_('Display title.'), 'type' => 'checkbox', 'defaultvalue' => true), 'item_title_link_type' => array('label' => T_('Link titles to'), 'note' => T_('Where should titles be linked to?'), 'type' => 'select', 'options' => array('auto' => T_('Automatic'), 'permalink' => T_('Item permalink'), 'linkto_url' => T_('Item URL'), 'none' => T_('Nowhere')), 'defaultvalue' => 'permalink'), 'attached_pics' => array('label' => T_('Attached pictures'), 'note' => '', 'type' => 'radio', 'options' => array(array('none', T_('None')), array('first', T_('Display first picture')), array('all', T_('Display all pictures'))), 'defaultvalue' => 'none'), 'disp_first_image' => array('label' => T_('First picture'), 'note' => '', 'type' => 'radio', 'options' => array(array('special', T_('Special placement before title')), array('normal', T_('No special treatment (same as other pictures)'))), 'defaultvalue' => 'normal'), 'max_pics' => array('label' => T_('Max pictures'), 'note' => T_('Maximum number of pictures to display after the title.'), 'size' => 4, 'type' => 'integer', 'defaultvalue' => '', 'allow_empty' => true), 'thumb_size' => array('label' => T_('Image size'), 'note' => T_('Cropping and sizing of thumbnails'), 'type' => 'select', 'options' => get_available_thumb_sizes(), 'defaultvalue' => 'crop-80x80'), 'item_pic_link_type' => array('label' => T_('Link pictures'), 'note' => T_('Where should pictures be linked to?'), 'type' => 'select', 'options' => array('auto' => T_('Automatic'), 'permalink' => T_('Item permalink'), 'linkto_url' => T_('Item URL'), 'none' => T_('Nowhere')), 'defaultvalue' => 'auto'), 'disp_excerpt' => array('label' => T_('Excerpt'), 'note' => T_('Display excerpt for each item.'), 'type' => 'checkbox', 'defaultvalue' => false), 'disp_teaser' => array('label' => T_('Content teaser'), 'type' => 'checkbox', 'defaultvalue' => false, 'note' => T_('Display content teaser for each item.')), 'disp_teaser_maxwords' => array('label' => T_('Max Words'), 'type' => 'integer', 'defaultvalue' => 20, 'note' => T_('Max number of words for the teasers.'))), parent::get_param_definitions($params));
     if (isset($r['allow_blockcache'])) {
         // Disable "allow blockcache" because this widget uses the selected items
         $r['allow_blockcache']['defaultvalue'] = false;
         $r['allow_blockcache']['disabled'] = 'disabled';
         $r['allow_blockcache']['note'] = T_('This widget cannot be cached in the block cache.');
     }
     return $r;
 }
Ejemplo n.º 12
0
 /**
  * Get definitions for editable params
  *
  * @see Plugin::GetDefaultSettings()
  * @param array local params
  *  - 'size': Size definition, see {@link $thumbnail_sizes}. E.g. 'fit-160x160'.
  */
 function get_param_definitions($params)
 {
     load_funcs('files/model/_image.funcs.php');
     $r = array_merge(array('thumb_size' => array('type' => 'select', 'label' => T_('Image size'), 'options' => get_available_thumb_sizes(), 'note' => sprintf(T_('List of available image sizes is defined in %s.'), '$thumbnail_sizes'), 'defaultvalue' => 'fit-160x160')), parent::get_param_definitions($params));
     return $r;
 }
Ejemplo n.º 13
0
$Form->begin_fieldset(T_('Username display for logged-in users (front-office)') . get_manual_link('user-bubble-tips-settings'));
$Form->radio('user_url_loggedin', $Settings->get('user_url_loggedin'), array(array('page', T_('Always user page'), ''), array('url', T_('User website if available (fallback to user page)'), '')), T_('Link to'), true);
$Form->info(T_('Note'), T_('Enable bubble tips in each skin\'s settings.'));
if (isset($GLOBALS['files_Module'])) {
    $Form->select_input_array('bubbletip_size_front', $Settings->get('bubbletip_size_front'), get_available_thumb_sizes(), T_('Bubble tip image format'), '', $params);
}
$Form->end_fieldset();
// --------------------------------------------
$Form->begin_fieldset(T_('Username display for anonymous user (front-office)') . get_manual_link('user-bubble-tips-settings'));
$Form->radio('user_url_anonymous', $Settings->get('user_url_anonymous'), array(array('page', T_('Always user page (if allowed)'), ''), array('url', T_('User website if available (fallback to user page)'), '')), T_('Link to'), true);
// Allow anonymous users to see the user display ( disp=user )
$Form->checkbox_input('allow_anonymous_user_profiles', $Settings->get('allow_anonymous_user_profiles'), T_('Allow to see user profiles'));
$Form->info(T_('Note'), T_('Enable bubble tips in each skin\'s settings.'));
$Form->checkbox_input('bubbletip_anonymous', $Settings->get('bubbletip_anonymous'), T_('Allow to see bubbletips'), array('note' => T_('Check to enable bubble tips on usernames')));
if (isset($GLOBALS['files_Module'])) {
    $Form->select_input_array('bubbletip_size_anonymous', $Settings->get('bubbletip_size_anonymous'), get_available_thumb_sizes(), T_('Bubble tip image format'), '', $params);
}
$Form->textarea('bubbletip_overlay', $Settings->get('bubbletip_overlay'), 5, T_('Image overlay text'), '', 20);
$Form->end_fieldset();
// --------------------------------------------
$Form->begin_fieldset(T_('Other permissions for anonymous users') . get_manual_link('anonymous-users-permissions'));
$Form->checkbox_input('allow_anonymous_user_list', $Settings->get('allow_anonymous_user_list'), T_('Allow to see user list'));
$user_level_params = array('input_prefix' => T_('from') . ' ');
if (!$Settings->get('allow_anonymous_user_list') && !$Settings->get('allow_anonymous_user_profiles')) {
    // Disable the user groups levels interval because the users pages are not available for anonymous users
    $user_level_params['disabled'] = 'disabled';
}
$Form->interval('allow_anonymous_user_level_min', $Settings->get('allow_anonymous_user_level_min'), 'allow_anonymous_user_level_max', $Settings->get('allow_anonymous_user_level_max'), 2, T_('Show only User Groups Levels'), '', $user_level_params);
$Form->end_fieldset();
// --------------------------------------------
if ($current_User->check_perm('users', 'edit')) {
Ejemplo n.º 14
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;
 }
Ejemplo n.º 15
0
 /**
  * Get definitions for editable params
  *
  * @see Plugin::GetDefaultSettings()
  * @param local params like 'for_editing' => true
  */
 function get_param_definitions($params)
 {
     load_funcs('files/model/_image.funcs.php');
     $r = array_merge(array('title' => array('label' => T_('Block title'), 'note' => T_('Title to display in your skin.'), 'size' => 40, 'defaultvalue' => T_('Random Users')), 'thumb_size' => array('label' => T_('Thumbnail size'), 'note' => T_('Cropping and sizing of thumbnails'), 'type' => 'select', 'options' => get_available_thumb_sizes(), 'defaultvalue' => 'crop-top-80x80'), 'thumb_layout' => array('label' => T_('Layout'), 'note' => T_('How to lay out the thumbnails'), 'type' => 'select', 'options' => array('grid' => T_('Grid'), 'list' => T_('List'), 'flow' => T_('Flowing Blocks')), 'defaultvalue' => 'flow'), 'grid_nb_cols' => array('label' => T_('Columns'), 'note' => T_('Number of columns in grid mode.'), 'size' => 4, 'defaultvalue' => 1), 'limit' => array('label' => T_('Max pictures'), 'note' => T_('Maximum number of pictures to display.'), 'size' => 4, 'defaultvalue' => 1), 'bubbletip' => array('label' => T_('Bubble tips'), 'note' => T_('Check to enable bubble tips -- Bubble tips must also be enabled for the current skin.'), 'type' => 'checkbox', 'defaultvalue' => 1), 'order_by' => array('label' => T_('Order by'), 'note' => T_('How to sort the users'), 'type' => 'select', 'options' => array('random' => T_('Random users'), 'regdate' => T_('Most recent registrations'), 'moddate' => T_('Most recent profile updates')), 'defaultvalue' => 'random'), 'style' => array('label' => T_('Display'), 'note' => '', 'type' => 'select', 'options' => array('simple' => T_('Pictures only'), 'badges' => T_('User badges')), 'defaultvalue' => 'simple'), 'gender' => array('label' => T_('Gender filtering'), 'note' => '', 'type' => 'select', 'options' => array('any' => T_('Any'), 'same' => T_('Same gender as User'), 'opposite' => T_('Opposite gender as User')), 'defaultvalue' => 'any'), 'location' => array('label' => T_('Location filtering'), 'note' => '', 'type' => 'select', 'options' => array('any' => T_('Any'), 'country' => T_('Same country as User'), 'region' => T_('Same region as User'), 'subregion' => T_('Same sub-region as User'), 'city' => T_('Same city as User'), 'closest' => T_('Closest users')), 'defaultvalue' => 'any')), parent::get_param_definitions($params));
     return $r;
 }
Ejemplo n.º 16
0
$Form->hidden_ctrl();
$Form->hidden('action', 'update');
$Form->hidden('tab', 'other');
$Form->hidden('blog', $edited_Blog->ID);
$Form->begin_fieldset(T_('Search results') . get_manual_link('search-results-other'));
$Form->text('search_per_page', $edited_Blog->get_setting('search_per_page'), 4, T_('Number of results per page'), '', 4);
$Form->end_fieldset();
$Form->begin_fieldset(T_('Latest comments') . get_manual_link('latest-comments-other'));
$Form->text('latest_comments_num', $edited_Blog->get_setting('latest_comments_num'), 4, T_('Number of comments shown'), '', 4);
$Form->end_fieldset();
$Form->begin_fieldset(T_('Archive pages') . get_manual_link('archives-other'));
$Form->radio('archive_mode', $edited_Blog->get_setting('archive_mode'), array(array('monthly', T_('monthly')), array('weekly', T_('weekly')), array('daily', T_('daily')), array('postbypost', T_('post by post'))), T_('Archive grouping'), false, T_('How do you want to browse the post archives? May also apply to permalinks.'));
// TODO: Hide if archive_mode != 'postbypost' (JS)
// fp> there should probably be no post by post mode since we do have other ways to list posts now
// fp> TODO: this is display param and should go to plugin/widget
$Form->radio('archives_sort_order', $edited_Blog->get_setting('archives_sort_order'), array(array('date', T_('date')), array('title', T_('title'))), T_('Archive sorting'), false, T_('How to sort your archives? (only in post by post mode)'));
$Form->end_fieldset();
$Form->begin_fieldset(T_('Download pages') . get_manual_link('download-display-other'));
$Form->text_input('download_delay', $edited_Blog->get_setting('download_delay'), 2, T_('Download delay'));
$Form->end_fieldset();
if (isset($GLOBALS['files_Module'])) {
    load_funcs('files/model/_image.funcs.php');
    $params['force_keys_as_values'] = true;
    $Form->begin_fieldset(T_('User directory') . get_manual_link('user-directory-other'));
    $Form->select_input_array('image_size_user_list', $edited_Blog->get_setting('image_size_user_list'), get_available_thumb_sizes(), T_('Profile picture size'), '', $params);
    $Form->end_fieldset();
    $Form->begin_fieldset(T_('Messaging pages') . get_manual_link('messaging-other'));
    $Form->select_input_array('image_size_messaging', $edited_Blog->get_setting('image_size_messaging'), get_available_thumb_sizes(), T_('Profile picture size'), '', $params);
    $Form->end_fieldset();
}
$Form->end_form(array(array('submit', 'submit', T_('Save Changes!'), 'SaveButton')));
Ejemplo n.º 17
0
 /**
  * Get definitions for editable params
  *
  * @see Plugin::GetDefaultSettings()
  * @param local params like 'for_editing' => true
  */
 function get_param_definitions($params)
 {
     load_funcs('files/model/_image.funcs.php');
     $r = array_merge(array('title' => array('label' => T_('Block title'), 'note' => T_('Title to display in your skin.'), 'size' => 40, 'defaultvalue' => T_('Random Users')), 'thumb_size' => array('label' => T_('Thumbnail size'), 'note' => T_('Cropping and sizing of thumbnails'), 'type' => 'select', 'options' => get_available_thumb_sizes(), 'defaultvalue' => 'crop-top-80x80'), 'thumb_layout' => array('label' => T_('Layout'), 'note' => T_('How to lay out the thumbnails'), 'type' => 'select', 'options' => array('grid' => T_('Grid'), 'list' => T_('List')), 'defaultvalue' => 'grid'), 'grid_nb_cols' => array('label' => T_('Columns'), 'note' => T_('Number of columns in grid mode.'), 'size' => 4, 'defaultvalue' => 1), 'limit' => array('label' => T_('Max pictures'), 'note' => T_('Maximum number of pictures to display.'), 'size' => 4, 'defaultvalue' => 1), 'bubbletip' => array('label' => T_('Bubble tips'), 'note' => T_('Check to enable bubble tips -- Bubble tips must also be enabled for the current skin.'), 'type' => 'checkbox', 'defaultvalue' => 1), 'order_by' => array('label' => T_('Order by'), 'note' => T_('How to sort the users'), 'type' => 'select', 'options' => array('random' => T_('Random users'), 'regdate' => T_('Most recent registrations'), 'moddate' => T_('Most recent profile updates')), 'defaultvalue' => 'random')), parent::get_param_definitions($params));
     return $r;
 }
Ejemplo n.º 18
0
 /**
  * Get definitions for editable params
  *
  * @see Plugin::GetDefaultSettings()
  * @param local params like 'for_editing' => true
  */
 function get_param_definitions($params)
 {
     load_funcs('files/model/_image.funcs.php');
     $r = array_merge(array('title' => array('label' => T_('Block title'), 'note' => T_('Title to display in your skin.'), 'size' => 40, 'defaultvalue' => T_('User log in')), 'password_link_show' => array('label' => T_('Password recovery link'), 'note' => T_('Show link'), 'type' => 'checkbox', 'defaultvalue' => 1), 'password_link' => array('size' => 30, 'note' => T_('Link text to display'), 'type' => 'text', 'defaultvalue' => T_('Lost password?')), 'register_link_show' => array('label' => T_('Register link'), 'note' => T_('Show link'), 'type' => 'checkbox', 'defaultvalue' => 1), 'register_link' => array('size' => 30, 'note' => T_('Link text to display'), 'type' => 'text', 'defaultvalue' => T_('No account yet? Register here &raquo;')), 'profile_picture_size' => array('label' => T_('Profile picture'), 'note' => '', 'type' => 'select', 'options' => get_available_thumb_sizes(T_('none')), 'defaultvalue' => 'crop-top-32x32'), 'group_show' => array('label' => T_('User group'), 'note' => T_('Show user group'), 'type' => 'checkbox', 'defaultvalue' => 1), 'group_text' => array('size' => 30, 'note' => T_('Group text to display'), 'type' => 'text', 'defaultvalue' => T_('Your group: $group$')), 'level_show' => array('label' => T_('User level'), 'note' => T_('Show user level'), 'type' => 'checkbox', 'defaultvalue' => 1), 'level_text' => array('size' => 30, 'note' => T_('Level text to display'), 'type' => 'text', 'defaultvalue' => T_('Your level: $level$')), 'greeting_show' => array('label' => T_('Greeting'), 'note' => T_('Show greeting'), 'type' => 'checkbox', 'defaultvalue' => 1), 'greeting_text' => array('size' => 30, 'note' => T_('Greeting text to display'), 'type' => 'text', 'defaultvalue' => T_('Hello $login$ !'))), parent::get_param_definitions($params));
     return $r;
 }
Ejemplo n.º 19
0
$Form->radio('location_country', $edited_Blog->get_setting('location_country'), $location_options, T_('Country'));
$Form->radio('location_region', $edited_Blog->get_setting('location_region'), $location_options, T_('Region'));
$Form->radio('location_subregion', $edited_Blog->get_setting('location_subregion'), $location_options, T_('Sub-region'));
$Form->radio('location_city', $edited_Blog->get_setting('location_city'), $location_options, T_('City'));
$Form->checkbox('show_location_coordinates', $edited_Blog->get_setting('show_location_coordinates'), T_('Show location coordinates'), T_('Check this to be able to set the location coordinates and view on map.'));
$Form->end_fieldset();
// display features settings provided by optional modules:
// echo 'modules';
modules_call_method('display_collection_features', array('Form' => &$Form, 'edited_Blog' => &$edited_Blog));
$Form->begin_fieldset(T_('RSS/Atom feeds') . get_manual_link('item-feeds-features'));
$Form->radio('feed_content', $edited_Blog->get_setting('feed_content'), array(array('none', T_('No feeds')), array('title', T_('Titles only')), array('excerpt', T_('Post excerpts')), array('normal', T_('Standard post contents (stopping at "&lt;!-- more -->")')), array('full', T_('Full post contents (including after "&lt;!-- more -->")'))), T_('Post feed contents'), true, T_('How much content do you want to make available in post feeds?'));
$Form->text('posts_per_feed', $edited_Blog->get_setting('posts_per_feed'), 4, T_('Posts in feeds'), T_('How many of the latest posts do you want to include in RSS & Atom feeds?'), 4);
if (isset($GLOBALS['files_Module'])) {
    load_funcs('files/model/_image.funcs.php');
    $params['force_keys_as_values'] = true;
    $Form->select_input_array('image_size', $edited_Blog->get_setting('image_size'), get_available_thumb_sizes(), T_('Image size'), '', $params);
}
$Form->end_fieldset();
$Form->begin_fieldset(T_('Custom fields') . get_manual_link('item-custom-fields'));
$custom_field_types = array('double' => array('label' => T_('Numeric'), 'title' => T_('Add new numeric custom field'), 'note' => T_('Ex: Price, Weight, Length... &ndash; will be stored as a double floating point number.'), 'size' => 20, 'maxlength' => 40), 'varchar' => array('label' => T_('String'), 'title' => T_('Add new text custom field'), 'note' => T_('Ex: Color, Fabric... &ndash; will be stored as a varchar(2000) field.'), 'size' => 30, 'maxlength' => 60));
foreach ($custom_field_types as $type => $data) {
    echo '<div id="custom_' . $type . '_field_list">';
    // dispaly hidden count_custom_type value and increase after a new field was added
    $count_custom_field = $edited_Blog->get_setting('count_custom_' . $type);
    echo '<input type="hidden" name="count_custom_' . $type . '" value=' . $count_custom_field . ' />';
    $deleted_custom_fields = param('deleted_custom_' . $type, 'string', '');
    echo '<input type="hidden" name="deleted_custom_' . $type . '" value="' . $deleted_custom_fields . '" />';
    for ($i = 1; $i <= $count_custom_field; $i++) {
        // dispaly all existing custom field name
        $field_id_suffix = 'custom_' . $type . '_' . $i;
        $custom_guid = $edited_Blog->get_setting('custom_' . $type . $i);
 /**
  * Get definitions for editable params
  *
  * @see Plugin::GetDefaultSettings()
  * @param local params like 'for_editing' => true
  */
 function get_param_definitions($params)
 {
     load_funcs('files/model/_image.funcs.php');
     $r = array_merge(array('skin_template' => array('label' => T_('Template'), 'note' => '.inc.php', 'defaultvalue' => '_item_block'), 'item_class' => array('label' => T_('Item class'), 'defaultvalue' => 'featurepost'), 'disp_title' => array('label' => T_('Title'), 'note' => T_('Display title.'), 'type' => 'checkbox', 'defaultvalue' => true), 'item_title_link_type' => array('label' => T_('Link title'), 'note' => T_('Intro posts are never linked to their permalink URL'), 'type' => 'select', 'options' => array('auto' => T_('Automatic'), 'permalink' => T_('Item permalink'), 'linkto_url' => T_('Item URL'), 'none' => T_('Nowhere')), 'defaultvalue' => 'auto'), 'image_size' => array('label' => T_('Image Size'), 'note' => T_('Cropping and sizing of thumbnails'), 'type' => 'select', 'options' => get_available_thumb_sizes(), 'defaultvalue' => 'fit-400x320'), 'attached_pics' => array('label' => T_('Attached pictures'), 'note' => '', 'type' => 'radio', 'options' => array(array('none', T_('None')), array('first', T_('Display first')), array('all', T_('Display all'))), 'defaultvalue' => 'none'), 'item_pic_link_type' => array('label' => T_('Link pictures'), 'note' => T_('Where should pictures be linked to?'), 'type' => 'select', 'options' => array('original' => T_('Image URL'), 'single' => T_('Item permalink')), 'defaultvalue' => 'original'), 'blog_ID' => array('label' => T_('Collections'), 'note' => T_('List collection IDs separated by \',\', \'*\' for all collections, \'-\' for current collection without aggregation or leave empty for current collection including aggregation.'), 'size' => 4, 'type' => 'text', 'valid_pattern' => array('pattern' => '/^(\\d+(,\\d+)*|-|\\*)?$/', 'error' => T_('Invalid list of Collection IDs.')), 'defaultvalue' => '-')), parent::get_param_definitions($params));
     return $r;
 }