示例#1
0
                        It has survived not only five centuries, but also the leap into electronic typesetting,

                        remaining essentially unchanged.</div>', 'options' => array('font-family' => 'Droid Sans'), 'support' => array('font_family'), 'desc' => '', 'desc_bottom' => ''), array('name' => 'heading_1', 'title' => __('H1', 'smooththemes'), 'type' => 'style', 'function' => 'st_settings_fonts', 'default' => '', 'previetxt' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'support' => array('font_size'), 'options' => array('font-size' => '34'), 'desc_bottom' => ''), array('name' => 'heading_2', 'title' => __('H2', 'smooththemes'), 'type' => 'style', 'function' => 'st_settings_fonts', 'default' => '', 'previetxt' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'support' => array('font_size'), 'options' => array('font-size' => '34'), 'desc_bottom' => ''), array('name' => 'heading_3', 'title' => __('H3', 'smooththemes'), 'type' => 'style', 'function' => 'st_settings_fonts', 'default' => '', 'previetxt' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'support' => array('font_size'), 'options' => array('font-size' => '34'), 'desc_bottom' => ''), array('name' => 'heading_4', 'title' => __('H4', 'smooththemes'), 'type' => 'style', 'function' => 'st_settings_fonts', 'default' => '', 'previetxt' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'support' => array('font_size'), 'options' => array('font-size' => '34'), 'desc_bottom' => ''), array('name' => 'heading_5', 'title' => __('H5', 'smooththemes'), 'type' => 'style', 'function' => 'st_settings_fonts', 'default' => '', 'previetxt' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'support' => array('font_size'), 'options' => array('font-size' => '34'), 'desc_bottom' => ''), array('name' => 'heading_6', 'title' => __('H6', 'smooththemes'), 'type' => 'style', 'function' => 'st_settings_fonts', 'default' => '', 'previetxt' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'support' => array('font_size'), 'options' => array('font-size' => '34'), 'desc_bottom' => ''));
$sidebar_tab = array(array('name' => 'sidebars', 'title' => 'Sidebars', 'type' => 'ui', 'default' => '', 'support' => array('title', 'id'), 'desc' => '', 'desc_bottom' => 'Create custom sidebar.'));
global $st_hooks;
$ads_tab = array(array('name' => 'ads', 'title' => 'Site Ads Management', 'type' => 'ui', 'default' => '', 'support' => array('title', 'content', 'hook'), 'hooks' => $st_hooks, 'desc' => '', 'desc_bottom' => ''));
$tracking_code = array(array('name' => 'headder_tracking_code', 'type' => 'textarea', 'title' => __('Header tracking code', 'smooththemes'), 'default' => ''), array('name' => 'footer_tracking_code', 'type' => 'textarea', 'title' => __('Footer tracking code', 'smooththemes'), 'default' => ''));
$blog_tab = array(array('name' => 'blog_toptitle', 'type' => 'text', 'title' => __('Blog title', 'smooththemes'), 'default' => ''));
$tab_sceen_slider = array(array('type' => 'heading', 'title' => __('Full Screen Slider settings', 'smooththemes')), array('name' => 'fsc_autoplay', 'type' => 'radio', 'title' => __('Should the animation loop?', 'smooththemes'), 'options' => array('y' => __('Yes'), 'n' => __('No')), 'default' => 'y'), array('name' => 'fsc_slideshow', 'type' => 'radio', 'title' => __('Slideshow on/off', 'smooththemes'), 'options' => array('y' => __('On'), 'n' => __('Off')), 'default' => 'y'), array('name' => 'fsc_interval', 'type' => 'text', 'title' => __('Slideshow Speed', 'smooththemes'), 'default' => '6000', 'desc_bottom' => __('Length between transitions, default: 6000', 'smooththemes')), array('name' => 'fsc_transition_speed', 'type' => 'text', 'title' => __('Speed of transition', 'smooththemes'), 'default' => '800', 'desc_bottom' => __('Speed of transition, default: 800', 'smooththemes')));
$tab_gimage_flow = array(array('type' => 'heading', 'title' => __('Gallery Image Flow settings', 'smooththemes')), array('name' => 'gif_horizon', 'type' => 'text', 'title' => __('Active image size', 'smooththemes'), 'default' => '0.6', 'desc_bottom' => __('Min: 0, max: 1, default: 0.6', 'smooththemes')), array('name' => 'gif_size', 'type' => 'text', 'title' => __('Item size', 'smooththemes'), 'default' => '0.2', 'desc_bottom' => __('Min: 0, max: 1, default: 0.2', 'smooththemes')), array('name' => 'gif_border', 'type' => 'text', 'title' => __('Item margin', 'smooththemes'), 'default' => '0', 'desc_bottom' => __('Min: 0, default: 0', 'smooththemes')));
$tab_gkenburns = array(array('type' => 'heading', 'title' => __('Gallery Kenburns', 'smooththemes')), array('name' => 'gkb_frames_per_second', 'type' => 'text', 'title' => __('frames per second', 'smooththemes'), 'default' => '30', 'desc_bottom' => __('Start 0, default: 30', 'smooththemes')), array('name' => 'gkb_display_time', 'type' => 'text', 'title' => __('display time', 'smooththemes'), 'default' => '5000', 'desc_bottom' => __('Start 0, default: 5000', 'smooththemes')), array('name' => 'gkb_fade_time', 'type' => 'text', 'title' => __('fade time', 'smooththemes'), 'default' => '1000', 'desc_bottom' => __('Start 0, default: 1000', 'smooththemes')), array('name' => 'gkb_zoom', 'type' => 'text', 'title' => __('zoom', 'smooththemes'), 'default' => '1.2', 'desc_bottom' => __('Start 0, default: 1.2', 'smooththemes')));
$tab_gflip = array(array('type' => 'heading', 'title' => __('Gallery Flip', 'smooththemes')), array('name' => 'gflip_directionnav', 'type' => 'radio', 'title' => __('directionNav', 'smooththemes'), 'options' => array('y' => __('Yes'), 'n' => __('No')), 'default' => 'y', 'desc' => 'Next & Prev navigation'), array('name' => 'gflip_thumbnail', 'type' => 'radio', 'title' => __('Show Thumbnail', 'smooththemes'), 'options' => array('y' => __('Yes'), 'n' => __('No')), 'default' => 'y', 'desc' => ''));
$envato = array(array('name' => 'tf_username', 'type' => 'text', 'title' => __('Envato Username', 'smooththemes'), 'default' => ''), array('name' => 'tf_api', 'type' => 'text', 'title' => __('Envato API Key', 'smooththemes'), 'default' => ''));
// ========================== Setup Load Panel ========================== \\
$tabs_settings = new Smooththemes_tabs_settings();
// General Setting
$tabs_settings->add_tab('general', __('General Setings', 'smooththemes'), $general_tab, 'icon-cog');
$tabs_settings->add_tab('general_page', __('Page Settings', 'smooththemes'), $general_tab_page, 'icon-caret-right', 'general');
$tabs_settings->add_tab('general_logo', __('Logo', 'smooththemes'), $general_tab_logo, 'icon-caret-right', 'general');
$tabs_settings->add_tab('general_favicon', __('Favicon', 'smooththemes'), $general_tab_favicon, 'icon-caret-right', 'general');
$tabs_settings->add_tab('general_sidebar', __('Custom Sidebars', 'smooththemes'), $sidebar_tab, 'icon-caret-right', 'general');
// Font Style Setting
$tabs_settings->add_tab('fonts', __('Font Style', 'smooththemes'), '', 'icon-font');
$tabs_settings->add_tab('fonts_body', __('Body Font', 'smooththemes'), $font_body, 'icon-caret-right', 'fonts');
$tabs_settings->add_tab('fonts_heading', __('Heading Font', 'smooththemes'), $font_heading, 'icon-caret-right', 'fonts');
// Color Setting
$tabs_settings->add_tab('elements_color', __('Elements Color', 'smooththemes'), '', 'icon-magic');
$tabs_settings->add_tab('body_predefined_colors', __('Global Skin', 'smooththemes'), $global_skin_tab, 'icon-caret-right', 'elements_color');
$tabs_settings->add_tab('body_bg', __('Body Background', 'smooththemes'), $bg_tab, 'icon-caret-right', 'elements_color');
$tabs_settings->add_tab('head_bg', __('Header', 'smooththemes'), $header_bg_tab, 'icon-caret-right', 'elements_color');
示例#2
0
                        when an unknown printer took a galley of type and scrambled it to make a type specimen book. 
                        It has survived not only five centuries, but also the leap into electronic typesetting,
                        remaining essentially unchanged.</div>', 'options' => array('font-family' => 'Droid Sans'), 'support' => array('font_family'), 'desc' => '', 'desc_bottom' => ''), array('name' => 'heading_1', 'title' => __('H1', 'smooththemes'), 'type' => 'style', 'function' => 'st_settings_fonts', 'default' => '', 'previetxt' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'support' => array('font_size'), 'options' => array('font-size' => '34'), 'desc_bottom' => ''), array('name' => 'heading_2', 'title' => __('H2', 'smooththemes'), 'type' => 'style', 'function' => 'st_settings_fonts', 'default' => '', 'previetxt' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'support' => array('font_size'), 'options' => array('font-size' => '34'), 'desc_bottom' => ''), array('name' => 'heading_3', 'title' => __('H3', 'smooththemes'), 'type' => 'style', 'function' => 'st_settings_fonts', 'default' => '', 'previetxt' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'support' => array('font_size'), 'options' => array('font-size' => '34'), 'desc_bottom' => ''), array('name' => 'heading_4', 'title' => __('H4', 'smooththemes'), 'type' => 'style', 'function' => 'st_settings_fonts', 'default' => '', 'previetxt' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'support' => array('font_size'), 'options' => array('font-size' => '34'), 'desc_bottom' => ''), array('name' => 'heading_5', 'title' => __('H5', 'smooththemes'), 'type' => 'style', 'function' => 'st_settings_fonts', 'default' => '', 'previetxt' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'support' => array('font_size'), 'options' => array('font-size' => '34'), 'desc_bottom' => ''), array('name' => 'heading_6', 'title' => __('H6', 'smooththemes'), 'type' => 'style', 'function' => 'st_settings_fonts', 'default' => '', 'previetxt' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'support' => array('font_size'), 'options' => array('font-size' => '34'), 'desc_bottom' => ''));
$subcribe_tab = array(array('name' => 'show_subcribe', 'title' => __('Show subcribe form', 'smooththemes'), 'options' => array('y' => __('Yes'), 'n' => __('No')), 'default' => 'y', 'type' => 'radio', 'desc' => '', 'desc_bottom' => ''), array('name' => 'subcribe_form_type', 'title' => __('subcribe form', 'smooththemes'), 'options' => array('f' => 'Feedburner (Default)', 'm' => 'Mailchimp'), 'default' => 'f', 'type' => 'radio', 'desc' => '', 'desc_bottom' => ''), array('name' => 'feedburner_urli', 'title' => 'Feedburner urli', 'type' => 'text', 'default' => '', 'desc' => '', 'desc_bottom' => 'You can get Feedburner urli from http://feedburner.google.com/'), array('name' => 'mailchimp_action', 'title' => 'Mailchimp form action', 'type' => 'text', 'default' => '', 'desc' => '', 'desc_bottom' => 'Example: <strong>http://smooththemes.us7.list-manage.com/subscribe/post?u=dc130fe66084d082c54779086&amp;id=736887358d</strong> <br/> You can get Mailchimp form action follow steps  <a href="' . ST_ADMIN_URL . '/images/mailchimp-form.png" target="_blank">Here</a> '));
$posttype_tab = array(array('name' => 'post_room', 'title' => __('Change room slug', 'smooththemes'), 'default' => '', 'type' => 'text', 'desc' => 'Change/Rewrite the permalink when you use permalink as /%postname%/ ', 'desc_bottom' => ''), array('name' => 'post_event', 'title' => __('Change event slug', 'smooththemes'), 'default' => '', 'type' => 'text', 'desc' => 'Change/Rewrite the permalink when you use permalink as /%postname%/ ', 'desc_bottom' => ''), array('name' => 'post_portfolio', 'title' => __('Change portfolio slug', 'smooththemes'), 'default' => '', 'type' => 'text', 'desc' => 'Change/Rewrite the permalink when you use permalink as /%postname%/ ', 'desc_bottom' => ''));
$sidebar_tab = array(array('name' => 'sidebars', 'title' => 'Sidebars', 'type' => 'ui', 'default' => '', 'support' => array('title', 'id'), 'desc' => '', 'desc_bottom' => 'Create custom sidebar.'));
global $st_hooks;
$ads_tab = array(array('name' => 'ads', 'title' => 'Site Ads Management', 'type' => 'ui', 'default' => '', 'support' => array('title', 'content', 'hook'), 'hooks' => $st_hooks, 'desc' => '', 'desc_bottom' => ''));
$tracking_code = array(array('name' => 'headder_tracking_code', 'type' => 'textarea', 'title' => __('Header tracking code', 'smooththemes'), 'default' => ''), array('name' => 'footer_tracking_code', 'type' => 'textarea', 'title' => __('Footer tracking code', 'smooththemes'), 'default' => ''));
$blog_tab = array(array('name' => 'show_blog_toptitle', 'title' => __('Show Top title in Categories page and Single', 'smooththemes'), 'options' => array('y' => __('Yes'), 'n' => __('No')), 'default' => 'y', 'type' => 'radio', 'desc' => '', 'desc_bottom' => ''), array('name' => 'blog_toptitle', 'title' => __('Top title', 'smooththemes'), 'type' => 'text', 'default' => __('', 'smooththemes'), 'desc' => '', 'desc_bottom' => ''), array('name' => 'show_blog_titlebar', 'title' => __('Show titlebar in Categories page and Single', 'smooththemes'), 'options' => array('y' => __('Yes'), 'n' => __('No')), 'default' => 'y', 'type' => 'radio', 'desc' => '', 'desc_bottom' => ''), array('name' => 'blog_titlebar', 'title' => __('Titlebar title', 'smooththemes'), 'type' => 'text', 'default' => __('Blog', 'smooththemes'), 'desc' => '', 'desc_bottom' => ''), array('name' => 'blog_titlebar_desc', 'title' => __('Titlebar descriptions', 'smooththemes'), 'type' => 'text', 'default' => '', 'desc' => '', 'desc_bottom' => ''), array('name' => 'blog_titlebar_img', 'title' => __('Titlebar background', 'smooththemes'), 'type' => 'upload', 'default' => '', 'desc' => '', 'desc_bottom' => ''));
$reservation_head_tab = array(array('name' => 'show_head_reservation_btn', 'title' => __('Show reservation button in header', 'smooththemes'), 'options' => array('y' => __('Yes'), 'n' => __('No')), 'default' => 'y', 'type' => 'radio', 'desc' => '', 'desc_bottom' => ''), array('name' => 'reservation_btn_link', 'title' => __('Button URL', 'smooththemes'), 'type' => 'text', 'default' => '', 'desc' => '', 'desc_bottom' => ''), array('name' => 'reservation_btn_txt', 'title' => __('Button text', 'smooththemes'), 'type' => 'text', 'default' => 'Reservation', 'desc' => '', 'desc_bottom' => ''), array('name' => 'reservation_btn_skin', 'title' => __('Pre-Defined Skins', 'smooththemes'), 'type' => 'layout', 'multiple' => false, 'options' => $predefined_colors, 'size' => 30, 'default' => '80b500', 'desc_bottom' => __('Select a color scheme for your reservation button.', 'smooththemes')), array('name' => 'reservation_btn_custom_skin', 'title' => __('Use custom color', 'smooththemes'), 'options' => array('y' => __('Yes'), 'n' => __('No')), 'default' => 'n', 'type' => 'radio', 'desc' => '', 'desc_bottom' => ''), array('name' => 'reservation_btn_color', 'title' => __('Custom color for reservation', 'smooththemes'), 'type' => 'color', 'default' => '', 'desc' => '', 'desc_bottom' => ''));
$room_tab = array(array('name' => 'room_show_res_btn', 'title' => __('Show reservation button in single room', 'smooththemes'), 'options' => array('y' => __('Yes'), 'n' => __('No')), 'default' => 'y', 'type' => 'radio', 'desc' => '', 'desc_bottom' => ''), array('name' => 'room_res_btn_link', 'title' => __('Button URL', 'smooththemes'), 'type' => 'text', 'default' => '', 'desc' => '', 'desc_bottom' => ''), array('name' => 'room_res_btn_txt', 'title' => __('Button text', 'smooththemes'), 'type' => 'text', 'default' => 'Book this room', 'desc' => '', 'desc_bottom' => ''));
$titlebar_tab = array(array('title' => __('Default Titlebar settings', 'smooththemes'), 'type' => 'heading'), array('name' => 'titlebar_title', 'title' => __('Titlebar title', 'smooththemes'), 'type' => 'text', 'default' => __('Blog', 'smooththemes'), 'desc' => '', 'desc_bottom' => ''), array('name' => 'titlebar_desc', 'title' => __('Titlebar descriptions', 'smooththemes'), 'type' => 'text', 'default' => '', 'desc' => '', 'desc_bottom' => ''), array('name' => 'titlebar_img', 'title' => __('Titlebar background', 'smooththemes'), 'type' => 'upload', 'default' => '', 'desc' => '', 'desc_bottom' => ''));
$envato = array(array('name' => 'tf_username', 'type' => 'text', 'title' => __('Envato Username', 'smooththemes'), 'default' => ''), array('name' => 'tf_api', 'type' => 'text', 'title' => __('Envato API Key', 'smooththemes'), 'default' => ''));
// ========================== Setup Load Panel ========================== \\
$tabs_settings = new Smooththemes_tabs_settings();
// General Setting
$tabs_settings->add_tab('general', __('General Setings', 'smooththemes'), $general_tab, 'icon-cog');
$tabs_settings->add_tab('general_page', __('Page Settings', 'smooththemes'), $general_tab_page, 'icon-caret-right', 'general');
$tabs_settings->add_tab('general_logo', __('Logo', 'smooththemes'), $general_tab_logo, 'icon-caret-right', 'general');
$tabs_settings->add_tab('general_favicon', __('Favicon', 'smooththemes'), $general_tab_favicon, 'icon-caret-right', 'general');
$tabs_settings->add_tab('general_sidebar', __('Custom Sidebars', 'smooththemes'), $sidebar_tab, 'icon-caret-right', 'general');
// Font Style Setting
$tabs_settings->add_tab('fonts', __('Font Style', 'smooththemes'), '', 'icon-font');
$tabs_settings->add_tab('fonts_body', __('Body Font', 'smooththemes'), $font_body, 'icon-caret-right', 'fonts');
$tabs_settings->add_tab('fonts_heading', __('Heading Font', 'smooththemes'), $font_heading, 'icon-caret-right', 'fonts');
// Color Setting
$tabs_settings->add_tab('elements_color', __('Elements Color', 'smooththemes'), '', 'icon-magic');
$tabs_settings->add_tab('body_predefined_colors', __('Global Skin', 'smooththemes'), $global_skin_tab, 'icon-caret-right', 'elements_color');
$tabs_settings->add_tab('body_bg', __('Body Background', 'smooththemes'), $bg_tab, 'icon-caret-right', 'elements_color');
$tabs_settings->add_tab('head_bg', __('Header', 'smooththemes'), $header_bg_tab, 'icon-caret-right', 'elements_color');