Exemple #1
0
 public function options()
 {
     ap_add_section('s3_slider', __('Serie3 slider', TEMPLATENAME));
     ap_add_select(array('name' => 's3_slider_default_cation_position', 'title' => __('Default caption position', TEMPLATENAME), 'default' => 'left-right', 'options' => array('top' => __('Top', TEMPLATENAME), 'left' => __('Left', TEMPLATENAME), 'right' => __('Right', TEMPLATENAME), 'left-right' => __('Left & Right', TEMPLATENAME), 'bottom' => __('Bottom', TEMPLATENAME)), 'desc' => sprintf('%s <b>%s:</b> %s', __('Choose a default caption position.', TEMPLATENAME), __('Notice', TEMPLATENAME), __('This slider does not support disable captions.', TEMPLATENAME))));
     ap_add_input(array('name' => 's3_slider_time_out', 'title' => __('Pause transitions', TEMPLATENAME), 'default' => '3000', 'class' => 'small-text', 'desc' => __('ms. Set pause between transitions.', TEMPLATENAME)));
     $config = array('title' => __('Serie3 Slider Options', TEMPLATENAME), 'id' => 's3postoptions', 'pages' => array('slideshow'), 'callback' => '', 'context' => 'normal', 'priority' => 'high');
     $options = array(array('name' => __('Caption Position', TEMPLATENAME), 'desc' => __('Position of caption on the slide.', TEMPLATENAME), 'id' => 's3_caption_position', 'default' => '', 'type' => 'select', 'options' => array('top' => __('Top', TEMPLATENAME), 'right' => __('Right', TEMPLATENAME), 'bottom' => __('Bottom', TEMPLATENAME), 'left' => __('Left', TEMPLATENAME)), 'empty' => __('Default', TEMPLATENAME)));
     new metaboxesGenerator($config, $options);
 }
Exemple #2
0
function theme_options_pages()
{
    /*-------------------- Appearance Options Subpage --------------------*/
    ap_add_sub_page('Appearance', __('Theme Options', TEMPLATENAME), __('Theme Options', TEMPLATENAME), 'administrator', 'custom_theme_options');
    ap_page_title(__('Theme Options', TEMPLATENAME));
    ap_page_icon('index');
    /*-------------------- General Options --------------------*/
    ap_add_section('general', __('General', TEMPLATENAME));
    ap_add_checkbox(array('name' => 'show_switcher', 'title' => __('Display color switcher?', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to display color switcher on the frontend.', TEMPLATENAME)));
    $_theme_colors = theme_get_color_styles();
    reset($_theme_colors);
    ap_add_select(array('name' => 'default_theme_color', 'title' => __('Choose color scheme', TEMPLATENAME), 'default' => key($_theme_colors), 'options' => $_theme_colors));
    ap_add_upload(array('name' => 'logo', 'title' => __('Upload logo', TEMPLATENAME), 'class' => 'large-text'));
    ap_add_upload(array('name' => 'favicon', 'title' => __('Upload favicon', TEMPLATENAME), 'class' => 'large-text', 'desc' => __('File type: .ico or .png File dimensions: 16x16, 32x32.', TEMPLATENAME)));
    ap_add_checkbox(array('name' => 'use_breadcrumbs', 'title' => __('Display breadcrumbs?', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to display breadcrumbs.', TEMPLATENAME)));
    ap_add_select(array('name' => 'default_side_sidebar', 'title' => __('Default side sidebar', TEMPLATENAME), 'default' => 'disable', 'options' => array('disable' => __('Disable', TEMPLATENAME)), 'options_func' => 'get_registered_sidebars', 'desc' => __('Choose sidebar for side of page.', TEMPLATENAME)));
    ap_add_select(array('name' => 'default_bottom_sidebar', 'title' => __('Default bottom sidebar', TEMPLATENAME), 'default' => 'disable', 'options' => array('disable' => __('Disable', TEMPLATENAME)), 'options_func' => 'get_registered_sidebars', 'desc' => __('Choose sidebar for bottom of page.', TEMPLATENAME)));
    ap_add_input(array('name' => 'copyright', 'title' => __('Footer copyright text', TEMPLATENAME), 'default' => 'Copyright &copy; 2010 ' . get_bloginfo('name') . ' company. All rights reserved.', 'desc' => __('Type a copyright text.', TEMPLATENAME), 'class' => 'large-text code'));
    ap_add_textarea(array('name' => 'custom_css', 'title' => __('Custom CSS', TEMPLATENAME), 'class' => 'large-text code'));
    /*-------------------- Theme Fonts Options --------------------*/
    ap_add_section('fonts', __('Fonts', TEMPLATENAME));
    ap_add_radio(array('name' => 'font_family', 'title' => __('Base theme font', TEMPLATENAME), 'default' => 'Arial,Helvetica,Garuda,sans-serif', 'options' => theme_base_font_options()));
    ap_add_checkbox(array('name' => 'use_cufon_font', 'title' => __('Enable Cufon', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to use cufon font.', TEMPLATENAME)));
    ap_add_radio(array('name' => 'cufon_font', 'title' => __('Choose cufon fonts', TEMPLATENAME), 'default' => 'MgOpen Modata', 'options_func' => 'theme_cufon_font_options'));
    /*-------------------- Home Page Options --------------------*/
    ap_add_section('home', __('Home & Slider', TEMPLATENAME));
    ap_add_radio(array('name' => 'show_on_front', 'title' => __('Home page displays', TEMPLATENAME), 'options' => array('posts' => __('Your latest posts', TEMPLATENAME), 'page' => sprintf(__('A %sstatic page%s (select bellow)', TEMPLATENAME), '<a href="edit.php?post_type=page">', '</a>')), 'default' => 'posts'));
    ap_add_select(array('name' => 'page_on_front', 'title' => __('Static home page', TEMPLATENAME), 'options' => array(0 => __('- Select -', TEMPLATENAME)) + get_registered_pages(), 'default' => '0'));
    ap_add_checkbox(array('name' => 'use_feature_home_box', 'title' => __('Show Special box?', TEMPLATENAME), 'default' => false, 'desc' => __('Check this to show special box.', TEMPLATENAME)));
    ap_add_textarea(array('name' => 'feature_home_box', 'title' => __('Home page Special box', TEMPLATENAME), 'default' => '', 'desc' => __('Content area for special gray box, which is under slider.', TEMPLATENAME), 'class' => 'large-text code'));
    global $_theme_sliders_list;
    ap_add_select(array('name' => 'slider_type', 'title' => __('Choose a slider type', TEMPLATENAME), 'default' => '', 'options' => array('disable' => __('Disable', TEMPLATENAME)) + $_theme_sliders_list, 'desc' => __('Slider to be Displayed in Header.', TEMPLATENAME), 'onchange' => 'this.form.submit();'));
    ap_add_input(array('name' => 'slider_count_items', 'title' => __('Number of slides', TEMPLATENAME), 'default' => '', 'desc' => __('Number of slides to be displayed. (Empty to show all the slides)', TEMPLATENAME), 'class' => 'small-text'));
    ap_add_select(array('name' => 'slider_post_order', 'title' => __('Order by', TEMPLATENAME), 'default' => 'rand', 'options' => array('none' => __('No order', TEMPLATENAME), 'rand' => __('Randomly', TEMPLATENAME), 'date' => __('Date', TEMPLATENAME)), 'desc' => __('Choose an option to order slides.', TEMPLATENAME)));
    ap_add_select(array('name' => 'slider_sort_order', 'title' => __('Sort type', TEMPLATENAME), 'default' => 'ASC', 'options' => array('ASC' => __('Ascendent', TEMPLATENAME), 'DESC' => __('Descendent', TEMPLATENAME)), 'desc' => __('Disabled if "Order By" option is "Randomly"', TEMPLATENAME)));
    ap_add_checkbox(array('name' => 'slider_caption', 'title' => __('Captions', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to display captions over the slides. (If choosen slider supports this option)', TEMPLATENAME)));
    ap_add_checkbox(array('name' => 'slider_caption_title', 'title' => __('Captions titles', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to display slide title in captions.', TEMPLATENAME)));
    ap_add_checkbox(array('name' => 'slider_caption_content', 'title' => __('Captions content', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to display slide content in captions.', TEMPLATENAME)));
    ap_add_checkbox(array('name' => 'slider_caption_more', 'title' => __('Captions "more" button?', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to display "more" button.', TEMPLATENAME)));
    ap_add_input(array('name' => 'slider_caption_more_text', 'title' => __('"More" button text', TEMPLATENAME), 'default' => __('Read more', TEMPLATENAME), 'desc' => __('"More" buttons text for slides captions.', TEMPLATENAME)));
    ap_add_checkbox(array('name' => 'slider_link', 'title' => __('Use linked slides?', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to make slider images linked. (If choosen slider supports this option)', TEMPLATENAME)));
    /*-------------------- Sliders Options Pages --------------------*/
    theme_slider_options();
    /*-------------------- Portfolio Page Options --------------------*/
    ap_add_section('portfolio', __('Portfolio & Gallery', TEMPLATENAME));
    ap_add_select(array('name' => 'portfolio_layout', 'title' => __('Portfolio page layout', TEMPLATENAME), 'default' => 'portfolio2', 'options' => array('portfolio2' => __('1 columns', TEMPLATENAME), 'portfolio3' => __('2 columns', TEMPLATENAME), 'portfolio4' => __('3 columns', TEMPLATENAME)), 'desc' => __('Choose layout type for Portfolio Page.', TEMPLATENAME)));
    ap_add_input(array('name' => 'portfolio_rows', 'title' => __('Number of lines (portfolio page)', TEMPLATENAME), 'default' => '4', 'desc' => __('Only regards for portfolio page', TEMPLATENAME), 'class' => 'small-text'));
    ap_add_select(array('name' => 'portfolio_bottom_sidebar', 'title' => __('Portfolio bottom sidebar', TEMPLATENAME), 'default' => 'disable', 'options' => array('disable' => __('Disable', TEMPLATENAME)), 'options_func' => 'get_registered_sidebars', 'desc' => __('Choose your bottom sidebar for portfolio page.', TEMPLATENAME)));
    ap_add_input(array('name' => 'portfolio_more_text', 'title' => __('More button text', TEMPLATENAME), 'default' => __('Read more', TEMPLATENAME), 'desc' => __('Leave it blank if you do not want to display this button.', TEMPLATENAME)));
    ap_add_input(array('name' => 'portfolio_target_text', 'title' => __('Target button text', TEMPLATENAME), 'default' => __('Visit website', TEMPLATENAME)));
    ap_add_checkbox(array('name' => 'portfolio_show_date', 'title' => __('Display a meta date information?', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to display meta date information for portfolio single page.', TEMPLATENAME)));
    ap_add_checkbox(array('name' => 'portfolio_show_clients', 'title' => __('Display a clients meta information?', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to display a post clients for portfolio single page.', TEMPLATENAME)));
    ap_add_checkbox(array('name' => 'portfolio_show_division', 'title' => __('Display a divisions meta information?', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to display a post divisions for portfolio single page.', TEMPLATENAME)));
    ap_add_checkbox(array('name' => 'portfolio_show_comments', 'title' => __('Enable comments?', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to enable a post comments for portfolio posts.', TEMPLATENAME)));
    ap_add_select(array('name' => 'gallery_bottom_sidebar', 'title' => __('Gallery bottom sidebar', TEMPLATENAME), 'default' => 'disable', 'options' => array('disable' => __('Disable', TEMPLATENAME)), 'options_func' => 'get_registered_sidebars', 'desc' => __('Choose bottom sidebar for gallery pages.', TEMPLATENAME)));
    ap_add_input(array('name' => 'gallery_limit', 'title' => __('Number of thumbnails for gallery page', TEMPLATENAME), 'default' => '18', 'desc' => __('Number of thumbtails to be displayed on the gallery page', TEMPLATENAME), 'class' => 'small-text'));
    ap_add_select(array('name' => 'lightbox_skin', 'title' => __('LightBox skin', TEMPLATENAME), 'default' => 'light_square', 'options' => array('dark_rounded' => __('Dark Rounded', TEMPLATENAME), 'dark_square' => __('Dark Square', TEMPLATENAME), 'facebook' => __('Facebook', TEMPLATENAME), 'light_rounded' => __('Light Rounded', TEMPLATENAME), 'light_square' => __('Light Square', TEMPLATENAME)), 'desc' => __('Choose a skin for LightBox.', TEMPLATENAME)));
    /*-------------------- Blog Options --------------------*/
    ap_add_section('blog', __('Blog posts & Pages', TEMPLATENAME));
    ap_add_select(array('name' => 'blog_side_sidebar', 'title' => __('Blog side sidebar', TEMPLATENAME), 'default' => 'disable', 'options' => array('disable' => __('Disable', TEMPLATENAME)), 'options_func' => 'get_registered_sidebars', 'desc' => __('Choose side sidebar for blog pages.', TEMPLATENAME)));
    ap_add_select(array('name' => 'blog_bottom_sidebar', 'title' => __('Blog bottom sidebar', TEMPLATENAME), 'default' => 'disable', 'options' => array('disable' => __('Disable', TEMPLATENAME)), 'options_func' => 'get_registered_sidebars', 'desc' => __('Choose bottom sidebar for blog pages.', TEMPLATENAME)));
    ap_add_input(array('name' => 'blog_more_text', 'title' => __('More button text', TEMPLATENAME), 'default' => __('Read more', TEMPLATENAME), 'desc' => __('Leave it blank if you do not want to display this button.', TEMPLATENAME)));
    ap_add_input(array('name' => 'searches_limit', 'title' => __('Search posts limit', TEMPLATENAME), 'default' => '10', 'desc' => __('Type a number of posts to be displayed on search results page', TEMPLATENAME), 'class' => 'small-text'));
    global $_theme_layouts;
    ap_add_select(array('name' => 'default_blog_layout', 'title' => __('Default layout for blog', TEMPLATENAME), 'default' => 1, 'options' => $_theme_layouts, 'desc' => __('Select default layout for blog.', TEMPLATENAME)));
    ap_add_select(array('name' => 'default_pages_layout', 'title' => __('Default layout for pages', TEMPLATENAME), 'default' => 3, 'options' => $_theme_layouts, 'desc' => __('Select default layout for pages.', TEMPLATENAME)));
    ap_add_checkbox(array('name' => 'show_about_autor', 'title' => __('Show about autor box?', TEMPLATENAME), 'default' => true));
    ap_add_select(array('name' => 'page_404', 'title' => __('Page of error 404', TEMPLATENAME), 'default' => '', 'options' => array('default' => __('Embedded 404 page', TEMPLATENAME)) + get_registered_pages(), 'desc' => __('Select your 404 page.', TEMPLATENAME)));
    /*-------------------- SEO Options --------------------*/
    ap_add_section('google', __('Google Analytics', TEMPLATENAME));
    ap_add_checkbox(array('name' => 'ga_use', 'title' => __('Use Google Analytics', TEMPLATENAME), 'default' => false, 'desc' => __('Check this if you want to enable Google Analytics Service', TEMPLATENAME)));
    ap_add_textarea(array('name' => 'ga_code', 'title' => __('Google Analytics Code', TEMPLATENAME), 'default' => "<script type=\"text/javascript\">\n\n  var _gaq = _gaq || [];\n  _gaq.push(['_setAccount', 'XX-XXXXXXXX-X']);\n  _gaq.push(['_trackPageview']);\n\n  (function() {\n\t var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n\t ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n\t var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n  })();\n\n</script>", 'desc' => sprintf(__('Paste your %sGoogle Analytics%s code here, it will get applied to each page.', TEMPLATENAME), '<a href="http://www.google.com/analytics/" target="_blank">', '</a>'), 'class' => 'large-text code'));
    /*-------------------- Social Options --------------------*/
    ap_add_section('social', __('Social', TEMPLATENAME));
    global $_theme_social_links;
    foreach ($_theme_social_links as $key => $link) {
        ap_add_input(array('name' => $key . '_social_link', 'title' => '<b>' . ucfirst($link) . '</b><img src="' . get_bloginfo('template_url') . "/images/social/{$key}.png" . '">', 'default' => '', 'class' => 'large-text'));
    }
}
Exemple #3
0
 public function options()
 {
     ap_add_section('coin_slider', __('Coin slider', TEMPLATENAME));
     ap_add_select(array('name' => 'coin_slider_effect', 'title' => __('Type of animation', TEMPLATENAME), 'default' => 'random', 'options' => array('random' => __('Random', TEMPLATENAME), 'swirl' => __('Swirl', TEMPLATENAME), 'rain' => __('Rain', TEMPLATENAME), 'straight' => __('Straight', TEMPLATENAME)), 'empty' => __('All effects (random)', TEMPLATENAME), 'desc' => __('Choose an effect of changing slides.', TEMPLATENAME)));
     ap_add_input(array('name' => 'coin_slider_delay', 'title' => __('Delay between images', TEMPLATENAME), 'default' => '3000', 'desc' => __('ms. Delay between images.', TEMPLATENAME), 'class' => 'small-text'));
     ap_add_input(array('name' => 'coin_slider_sdelay', 'title' => __('Delay between squares', TEMPLATENAME), 'default' => '30', 'desc' => __('ms. Delay between squares.', TEMPLATENAME), 'class' => 'small-text'));
     ap_add_input(array('name' => 'coin_slider_squares_width', 'title' => __('Squares per width', TEMPLATENAME), 'default' => '10', 'class' => 'small-text'));
     ap_add_input(array('name' => 'coin_slider_squares_height', 'title' => __('Squares per height', TEMPLATENAME), 'default' => '5', 'class' => 'small-text'));
     ap_add_select(array('name' => 'coin_slider_default_cation_position', 'title' => __('Default caption position', TEMPLATENAME), 'default' => 'bottom-left', 'options' => array('top-left' => __('Top-Left Corner', TEMPLATENAME), 'top-right' => __('Top-Right Corner', TEMPLATENAME), 'bottom-right' => __('Bottom-Right Corner', TEMPLATENAME), 'bottom-left' => __('Bottom-Left Corner', TEMPLATENAME)), 'desc' => __('Choose a caption position.', TEMPLATENAME)));
     ap_add_input(array('name' => 'coin_slider_opacity', 'title' => __('Opacity title & navigation', TEMPLATENAME), 'default' => '80', 'desc' => __('% Opacity of title and navigation.', TEMPLATENAME), 'class' => 'small-text'));
     ap_add_input(array('name' => 'coin_slider_title_speed', 'title' => __('Speed of title appereance', TEMPLATENAME), 'default' => '500', 'desc' => __('ms. Speed of title appereance.', TEMPLATENAME), 'class' => 'small-text'));
     ap_add_checkbox(array('name' => 'coin_slider_navigation', 'title' => __('Direct navigation', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to display "Prev" & "Next" buttons.', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'coin_slider_hover', 'title' => __('Pause on mouse hover', TEMPLATENAME), 'default' => true, 'desc' => __('Determines if slideshow will pause while mouse is hovering over slideshow.', TEMPLATENAME)));
     $config = array('title' => __('Coin Slider Options', TEMPLATENAME), 'id' => 'coinpostoptions', 'pages' => array('slideshow'), 'callback' => '', 'context' => 'normal', 'priority' => 'high');
     $options = array(array('name' => __('Caption Position', TEMPLATENAME), 'desc' => __('Position of caption on the slide.', TEMPLATENAME), 'id' => 'coin_caption_position', 'default' => '', 'type' => 'select', 'options' => array('top-left' => __('Top-Left Corner', TEMPLATENAME), 'top-right' => __('Top-Right Corner', TEMPLATENAME), 'bottom-right' => __('Bottom-Right Corner', TEMPLATENAME), 'bottom-left' => __('Bottom-Left Corner', TEMPLATENAME)), 'empty' => __('Default', TEMPLATENAME)));
     new metaboxesGenerator($config, $options);
 }
Exemple #4
0
 public function options()
 {
     ap_add_section('nivo_slider', __('Nivo slider', TEMPLATENAME));
     ap_add_select(array('name' => 'nivo_slider_effect', 'title' => __('Sliding effect', TEMPLATENAME), 'default' => 'random', 'options' => array('sliceDown' => __('Down', TEMPLATENAME), 'sliceDownLeft' => __('DownLeft', TEMPLATENAME), 'sliceUp' => __('Up', TEMPLATENAME), 'sliceUpLeft' => __('UpLeft', TEMPLATENAME), 'sliceUpDown' => __('UpDown', TEMPLATENAME), 'sliceUpDownLeft' => __('UpDownLeft', TEMPLATENAME), 'fold' => __('Fold', TEMPLATENAME), 'fade' => __('Fade', TEMPLATENAME), 'random' => __('Random', TEMPLATENAME)), 'desc' => __('Choose an effect of changing slides.', TEMPLATENAME)));
     ap_add_input(array('name' => 'nivo_slider_slices', 'title' => __('Number of slices', TEMPLATENAME), 'default' => '15', 'class' => 'small-text', 'desc' => __('Number of slices in slide.', TEMPLATENAME)));
     ap_add_input(array('name' => 'nivo_slider_speed', 'title' => __('Animation speed', TEMPLATENAME), 'default' => '600', 'desc' => __('ms. Type an amount of time slide transition lasts.', TEMPLATENAME), 'class' => 'small-text'));
     ap_add_input(array('name' => 'nivo_slider_pause', 'title' => __('Pause time', TEMPLATENAME), 'default' => '3000', 'desc' => __('ms. Type an amount of time slide transition lasts.', TEMPLATENAME), 'class' => 'small-text'));
     ap_add_checkbox(array('name' => 'nivo_slider_direction_nav', 'title' => __('Direction navigation', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to display "Prev" & "Next" buttons.', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'nivo_slider_direction_nav_hide', 'title' => __('Direction navigation hide', TEMPLATENAME), 'default' => false, 'desc' => __('Check this to show "Prev" & "Next" buttons when mouse is over slides.', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'nivo_slider_control_nav', 'title' => __('Control navigation', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to display control navigation (bullets).', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'nivo_slider_thumb', 'title' => __('Show thumbnails', TEMPLATENAME), 'default' => false, 'desc' => __('Check this if you want shwow thumbnail control navigation.', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'nivo_slider_pause_on_hover', 'title' => __('Pause on mouse hover', TEMPLATENAME), 'default' => true, 'desc' => __('Determines if slideshow will pause while mouse is hovering over slideshow.', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'nivo_slider_manual_advance', 'title' => __('Manual transitions', TEMPLATENAME), 'default' => false, 'desc' => __('Check this if you want force manual transitions.', TEMPLATENAME)));
     ap_add_select(array('name' => 'nivo_slider_caption_easing', 'title' => __('Caption easing effect', TEMPLATENAME), 'default' => 'linear', 'options' => array('linear' => 'linear', 'swing' => 'swing', 'easeInQuad' => 'easeInQuad', 'easeOutQuad' => 'easeOutQuad', 'easeInOutQuad' => 'easeInOutQuad', 'easeInCubic' => 'easeInCubic', 'easeOutCubic' => 'easeOutCubic', 'easeInOutCubic' => 'easeInOutCubic', 'easeInQuart' => 'easeInQuart', 'easeOutQuart' => 'easeOutQuart', 'easeInOutQuart' => 'easeInOutQuart', 'easeInQuint' => 'easeInQuint', 'easeOutQuint' => 'easeOutQuint', 'easeInOutQuint' => 'easeInOutQuint', 'easeInSine' => 'easeInSine', 'easeOutSine' => 'easeOutSine', 'easeInOutSine' => 'easeInOutSine', 'easeInExpo' => 'easeInExpo', 'easeOutExpo' => 'easeOutExpo', 'easeInOutExpo' => 'easeInOutExpo', 'easeInCirc' => 'easeInCirc', 'easeOutCirc' => 'easeOutCirc', 'easeInOutCirc' => 'easeInOutCirc', 'easeInElastic' => 'easeInElastic', 'easeOutElastic' => 'easeOutElastic', 'easeInOutElastic' => 'easeInOutElastic', 'easeInBack' => 'easeInBack', 'easeOutBack' => 'easeOutBack', 'easeInOutBack' => 'easeInOutBack', 'easeInBounce' => 'easeInBounce', 'easeOutBounce' => 'easeOutBounce', 'easeInOutBounce' => 'easeInOutBounce'), 'desc' => __('Select which easing effect to use for caption.', TEMPLATENAME)));
     ap_add_input(array('name' => 'nivo_slider_caption_opacity', 'title' => __('Caption opacity', TEMPLATENAME), 'default' => '80', 'desc' => __('% The Opacity of Caption with it\'s background.', TEMPLATENAME), 'class' => 'small-text'));
     ap_add_select(array('name' => 'nivo_slider_caption_position', 'title' => __('Default caption position', TEMPLATENAME), 'default' => 'left', 'options' => array('left' => __('Left', TEMPLATENAME), 'right' => __('Right', TEMPLATENAME)), 'desc' => __('Choose a default caption position.', TEMPLATENAME)));
     $config = array('title' => __('Nivo Slider Options', TEMPLATENAME), 'id' => 'nivopostoptions', 'pages' => array('slideshow'), 'callback' => '', 'context' => 'normal', 'priority' => 'high');
     $options = array(array('name' => __('Caption Position', TEMPLATENAME), 'desc' => __('Position of caption on the slide.', TEMPLATENAME), 'id' => 'nivo_caption_position', 'default' => '', 'type' => 'select', 'options' => array('right' => __('Right', TEMPLATENAME), 'left' => __('Left', TEMPLATENAME)), 'empty' => __('Default', TEMPLATENAME)));
     new metaboxesGenerator($config, $options);
 }
 public function options()
 {
     ap_add_section('roundabout_slider', __('Roundabout slider', TEMPLATENAME));
     ap_add_input(array('name' => 'roundabout_slider_speed', 'title' => __('Animation speed', TEMPLATENAME), 'default' => '800', 'desc' => __('ms. The length of time that all animations take to complete by default.', TEMPLATENAME), 'class' => 'small-text'));
     ap_add_checkbox(array('name' => 'roundabout_slider_tofocus', 'title' => __('Click to focus', TEMPLATENAME), 'default' => true, 'desc' => __('If true, will disable any click events on elements within the moving element that was clicked. Once the element is in focus, click events will no longer be blocked.', TEMPLATENAME)));
     ap_add_select(array('name' => 'roundabout_slider_easing', 'title' => __('Easing animation', TEMPLATENAME), 'default' => 'linear', 'options' => array('linear' => 'linear', 'swing' => 'swing', 'easeInQuad' => 'easeInQuad', 'easeOutQuad' => 'easeOutQuad', 'easeInOutQuad' => 'easeInOutQuad', 'easeInCubic' => 'easeInCubic', 'easeOutCubic' => 'easeOutCubic', 'easeInOutCubic' => 'easeInOutCubic', 'easeInQuart' => 'easeInQuart', 'easeOutQuart' => 'easeOutQuart', 'easeInOutQuart' => 'easeInOutQuart', 'easeInQuint' => 'easeInQuint', 'easeOutQuint' => 'easeOutQuint', 'easeInOutQuint' => 'easeInOutQuint', 'easeInSine' => 'easeInSine', 'easeOutSine' => 'easeOutSine', 'easeInOutSine' => 'easeInOutSine', 'easeInExpo' => 'easeInExpo', 'easeOutExpo' => 'easeOutExpo', 'easeInOutExpo' => 'easeInOutExpo', 'easeInCirc' => 'easeInCirc', 'easeOutCirc' => 'easeOutCirc', 'easeInOutCirc' => 'easeInOutCirc', 'easeInElastic' => 'easeInElastic', 'easeOutElastic' => 'easeOutElastic', 'easeInOutElastic' => 'easeInOutElastic', 'easeInBack' => 'easeInBack', 'easeOutBack' => 'easeOutBack', 'easeInOutBack' => 'easeInOutBack', 'easeInBounce' => 'easeInBounce', 'easeOutBounce' => 'easeOutBounce', 'easeInOutBounce' => 'easeInOutBounce'), 'desc' => __('Select which easing effect to use.', TEMPLATENAME)));
 }
Exemple #6
0
 public function options()
 {
     ap_add_section('round_slider', __('3D round carousel', TEMPLATENAME));
     ap_add_input(array('name' => 'round_slider_speed', 'title' => __('Carousel speed', TEMPLATENAME), 'default' => '300', 'desc' => __('ms. Speed it will take to rotate from one to the next.', TEMPLATENAME), 'class' => 'small-text'));
     ap_add_checkbox(array('name' => 'round_slider_quicker', 'title' => __('Quicker for further', TEMPLATENAME), 'default' => true, 'desc' => __('Check to make animations faster when clicking an item that is far away from the center.', TEMPLATENAME)));
     ap_add_select(array('name' => 'round_slider_easing', 'title' => __('Easing animation', TEMPLATENAME), 'default' => 'linear', 'options' => array('linear' => 'linear', 'swing' => 'swing', 'easeInQuad' => 'easeInQuad', 'easeOutQuad' => 'easeOutQuad', 'easeInOutQuad' => 'easeInOutQuad', 'easeInCubic' => 'easeInCubic', 'easeOutCubic' => 'easeOutCubic', 'easeInOutCubic' => 'easeInOutCubic', 'easeInQuart' => 'easeInQuart', 'easeOutQuart' => 'easeOutQuart', 'easeInOutQuart' => 'easeInOutQuart', 'easeInQuint' => 'easeInQuint', 'easeOutQuint' => 'easeOutQuint', 'easeInOutQuint' => 'easeInOutQuint', 'easeInSine' => 'easeInSine', 'easeOutSine' => 'easeOutSine', 'easeInOutSine' => 'easeInOutSine', 'easeInExpo' => 'easeInExpo', 'easeOutExpo' => 'easeOutExpo', 'easeInOutExpo' => 'easeInOutExpo', 'easeInCirc' => 'easeInCirc', 'easeOutCirc' => 'easeOutCirc', 'easeInOutCirc' => 'easeInOutCirc', 'easeInElastic' => 'easeInElastic', 'easeOutElastic' => 'easeOutElastic', 'easeInOutElastic' => 'easeInOutElastic', 'easeInBack' => 'easeInBack', 'easeOutBack' => 'easeOutBack', 'easeInOutBack' => 'easeInOutBack', 'easeInBounce' => 'easeInBounce', 'easeOutBounce' => 'easeOutBounce', 'easeInOutBounce' => 'easeInOutBounce'), 'desc' => __('Select which easing effect to use.', TEMPLATENAME)));
 }
Exemple #7
0
 public function options()
 {
     ap_add_section('orbit_slider', __('Orbit slider', TEMPLATENAME));
     ap_add_select(array('name' => 'orbit_slider_animation', 'title' => __('Type of animation', TEMPLATENAME), 'default' => 'fade', 'options' => array('fade' => __('Fade', TEMPLATENAME), 'horizontal-slide' => __('Horizontal', TEMPLATENAME), 'vertical-slide' => __('Vertical', TEMPLATENAME)), 'desc' => __('Choose an effect of changing slides.', TEMPLATENAME)));
     ap_add_input(array('name' => 'orbit_slider_animation_speed', 'title' => __('Animation speed', TEMPLATENAME), 'default' => '1500', 'desc' => __('ms. How fast animations are.', TEMPLATENAME), 'class' => 'small-text'));
     ap_add_checkbox(array('name' => 'orbit_slider_direction_nav', 'title' => __('Direct navigation', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to display "Prev" & "Next" buttons.', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'orbit_slider_bullets', 'title' => __('Control navigation', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to display control navigation (bullets).', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'orbit_slider_timer', 'title' => __('Use auto transition', TEMPLATENAME), 'default' => true, 'desc' => __('Check this to enable auto transition slides.', TEMPLATENAME)));
     ap_add_input(array('name' => 'orbit_slider_advance_speed', 'title' => __('Auto transition pause', TEMPLATENAME), 'default' => '4000', 'desc' => __('ms. If auto transition is enabled, time between transitions.', TEMPLATENAME), 'class' => 'small-text'));
     ap_add_checkbox(array('name' => 'orbit_slider_mouse_out', 'title' => __('Continue on mouse over', TEMPLATENAME), 'default' => true, 'desc' => __('Continue on mouse over if auto transition is enabled.', TEMPLATENAME)));
     ap_add_input(array('name' => 'orbit_slider_mouse_out_after', 'title' => __('Pause after mouse over', TEMPLATENAME), 'default' => '3000', 'desc' => __('ms. How long after mouseout timer should continue.', TEMPLATENAME), 'class' => 'small-text'));
     ap_add_input(array('name' => 'orbit_slider_captions_speed', 'title' => __('Caption animate speed', TEMPLATENAME), 'default' => '600', 'desc' => __('ms. How quickly to animate in caption on load and between captioned and uncaptioned photos.', TEMPLATENAME), 'class' => 'small-text'));
 }
 public function options()
 {
     ap_add_section('anything_slider', __('Anything Slider', TEMPLATENAME));
     ap_add_checkbox(array('name' => 'anything_playRtl', 'title' => __('Transition Right To Left', TEMPLATENAME), 'default' => false, 'desc' => __('Check this for transition right-to-left.', TEMPLATENAME)));
     ap_add_input(array('name' => 'anything_delay', 'title' => __('Delay', TEMPLATENAME), 'default' => 3000, 'desc' => __('ms. How long between slideshow transitions in AutoPlay mode.', TEMPLATENAME)));
     ap_add_input(array('name' => 'anything_animationTime', 'title' => __('Animation Speed', TEMPLATENAME), 'default' => 600, 'desc' => __('ms. How long the slideshow transition takes.', TEMPLATENAME)));
     ap_add_select(array('name' => 'anything_easing', 'title' => __('Transition easing effect', TEMPLATENAME), 'default' => 'swing', 'options' => array('linear' => 'linear', 'swing' => 'swing', 'easeInQuad' => 'easeInQuad', 'easeOutQuad' => 'easeOutQuad', 'easeInOutQuad' => 'easeInOutQuad', 'easeInCubic' => 'easeInCubic', 'easeOutCubic' => 'easeOutCubic', 'easeInOutCubic' => 'easeInOutCubic', 'easeInQuart' => 'easeInQuart', 'easeOutQuart' => 'easeOutQuart', 'easeInOutQuart' => 'easeInOutQuart', 'easeInQuint' => 'easeInQuint', 'easeOutQuint' => 'easeOutQuint', 'easeInOutQuint' => 'easeInOutQuint', 'easeInSine' => 'easeInSine', 'easeOutSine' => 'easeOutSine', 'easeInOutSine' => 'easeInOutSine', 'easeInExpo' => 'easeInExpo', 'easeOutExpo' => 'easeOutExpo', 'easeInOutExpo' => 'easeInOutExpo', 'easeInCirc' => 'easeInCirc', 'easeOutCirc' => 'easeOutCirc', 'easeInOutCirc' => 'easeInOutCirc', 'easeInElastic' => 'easeInElastic', 'easeOutElastic' => 'easeOutElastic', 'easeInOutElastic' => 'easeInOutElastic', 'easeInBack' => 'easeInBack', 'easeOutBack' => 'easeOutBack', 'easeInOutBack' => 'easeInOutBack', 'easeInBounce' => 'easeInBounce', 'easeOutBounce' => 'easeOutBounce', 'easeInOutBounce' => 'easeInOutBounce'), 'desc' => __('Select which easing effect to use for transition.', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'anything_buildArrows', 'title' => __('Build arrows', TEMPLATENAME), 'default' => true, 'desc' => __('Check this for builds the forwards and backwards buttons.', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'anything_toggleArrows', 'title' => __('Toggle arrows', TEMPLATENAME), 'default' => false, 'desc' => __('Check this for side navigation arrows will slide out on hovering & hide @ other times.', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'anything_buildNavigation', 'title' => __('Build navigation', TEMPLATENAME), 'default' => true, 'desc' => __('Check this for builds a list of anchor links to link to each slide.', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'anything_toggleControls', 'title' => __('Toggle controls', TEMPLATENAME), 'default' => true, 'desc' => __('Check this for show navigation on hover and hide other.', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'anything_autoPlay', 'title' => __('Auto play', TEMPLATENAME), 'default' => true, 'desc' => __('This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not.', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'anything_pauseOnHover', 'title' => __('Pause on hover', TEMPLATENAME), 'default' => true, 'desc' => __('Check this for the slideshow will pause on hover.', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'anything_resumeOnVideoEnd', 'title' => __('Resume on video end', TEMPLATENAME), 'default' => true, 'desc' => __('Check this for pause the autoplay until the youtube video is complete.', TEMPLATENAME)));
     ap_add_checkbox(array('name' => 'anything_stopAtEnd', 'title' => __('Stop at end', TEMPLATENAME), 'default' => false, 'desc' => __('Check this for the slideshow will stop on the last slide.', TEMPLATENAME)));
     ap_add_select(array('name' => 'anything_default_cation_position', 'title' => __('Default caption position', TEMPLATENAME), 'default' => 'left', 'options' => array('top' => __('Top', TEMPLATENAME), 'bottom' => __('Bottom', TEMPLATENAME), 'left' => __('Left', TEMPLATENAME), 'right' => __('Right', TEMPLATENAME)), 'desc' => __('Choose a default caption position.', TEMPLATENAME)));
     ap_add_select(array('name' => 'anything_default_text_position', 'title' => __('Default text position', TEMPLATENAME), 'default' => 'left', 'options' => array('left' => __('Left', TEMPLATENAME), 'right' => __('Right', TEMPLATENAME)), 'desc' => __('Choose a default text position.', TEMPLATENAME)));
     $config = array('title' => __('Anything-Slider Options', TEMPLATENAME), 'id' => 'slideshow_anything', 'pages' => array('slideshow'), 'callback' => '', 'context' => 'normal', 'priority' => 'high');
     $options = array(array('name' => __('Type', TEMPLATENAME), 'id' => 'anything_slide_type', 'default' => 'image', 'type' => 'select', 'options' => array('image' => __('Image', TEMPLATENAME), 'image_text' => __('Image with text', TEMPLATENAME), 'text' => __('Only text', TEMPLATENAME))), array('name' => __('Caption Position', TEMPLATENAME), 'id' => 'anything_caption_position', 'default' => 'top', 'type' => 'select', 'options' => array('top' => __('Top', TEMPLATENAME), 'bottom' => __('Bottom', TEMPLATENAME), 'left' => __('Left', TEMPLATENAME), 'right' => __('Right', TEMPLATENAME))), array('name' => __('Text Position', TEMPLATENAME), 'id' => 'anything_text_position', 'default' => 'left', 'type' => 'select', 'options' => array('left' => __('Left', TEMPLATENAME), 'right' => __('Right', TEMPLATENAME))), array('name' => __('Video (optional)', TEMPLATENAME), 'desc' => sprintf('%s %s:<br/>%s<br/>%s<br/>%s<br/>%s<br/>%s', __('Supported YouTube, Vimeo, Dailymotion or Flash. (If this option is set then the above will be ignored)', TEMPLATENAME), __('For example', TEMPLATENAME), 'http://www.youtube.com/watch?v=bhzJO34SCoc', 'http://vimeo.com/6698094', 'http://www.dailymotion.com/video/xuhuv_within-temptation-ice-queen_music', '*.mov', '*.swf'), 'id' => 'anything_video_link', 'default' => '', 'type' => 'text', 'class' => 'large-text'));
     new metaboxesGenerator($config, $options);
 }