예제 #1
0
파일: config.php 프로젝트: zgomotos/Bazar
<?php

/**
 * @package WordPress
 * @subpackage Your Inspiration Themes
 */
yit_register_slider_style($slider_type, 'slider-elastic', 'css/elastic.css');
yit_register_slider_script($slider_type, 'jquery-eislideshow', 'js/jquery.eislideshow.js');
// set here if the slider is reponsive or not
$this->responsive_sliders[$slider_type] = true;
// add image size
yit_add_image_size('thumb-slider-elastic', 150, 59, true);
// add support to slide
yit_add_slide_support($slider_type, 'title, subtitle, link');
// add the slider fields for the admin
yit_add_slider_config($slider_type, array(array('name' => __('Width', 'yit'), 'id' => 'width', 'type' => 'number', 'desc' => __('Select the width of the slider, in base of the images that you want to add (Set 0 if you want it full width).', 'yit'), 'min' => 0, 'max' => 2000, 'std' => 0), array('name' => __('Height', 'yit'), 'id' => 'height', 'type' => 'number', 'desc' => __('Select the height of the slider, in base of the images that you want to add.', 'yit'), 'std' => 338, 'min' => 200, 'max' => 2000), array('name' => __('Autoplay', 'yit'), 'id' => 'autoplay', 'type' => 'onoff', 'desc' => __('Select if you want that the slider change the slide automatically.', 'yit'), 'std' => 1), array('name' => __('Animation', 'yit'), 'id' => 'animation', 'type' => 'select', 'options' => array('sides' => __('Sides', 'yit'), 'center' => __('Center', 'yit')), 'desc' => __('Animation types -> "sides" : new slides will slide in from left / right; "center": new slides will appear in the center.', 'yit'), 'std' => 'sides'), array('name' => __('Pause between slides (s)', 'yit'), 'id' => 'interval', 'type' => 'slider', 'desc' => __('Select the delay between slides, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 3), array('name' => __('Animation speed (s)', 'yit'), 'id' => 'speed', 'type' => 'slider', 'desc' => __('The speed of the animation between two slide, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 0.8)));
// add the slider fields for the admin
yit_slider_typography_options($slider_type, array(array('id' => 'title-font', 'type' => 'typography', 'name' => __('Title', 'yit'), 'desc' => __('Configure the title.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 40, 'unit' => 'px', 'family' => 'Playfair Display', 'style' => 'italic', 'color' => '#000000'), 'style' => array('selectors' => '.slider-%s .ei-title h2, .slider-%s .ei-title h2 a', 'properties' => 'font-size, font-family, color, font-style, font-weight')), array('id' => 'subtitle-font', 'type' => 'typography', 'name' => __('Subitle', 'yit'), 'desc' => __('Configure the subtitle.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 40, 'unit' => 'px', 'family' => 'Open Sans Condensed:300', 'style' => 'regular', 'color' => '#4D4C4C'), 'style' => array('selectors' => '.slider-%s .ei-title h3, .slider-%s .ei-title h3 a', 'properties' => 'font-size, font-family, color, font-style, font-weight'))));
예제 #2
0
파일: config.php 프로젝트: jayeshnair/ctp
<?php

/**
 * @package WordPress
 * @subpackage Your Inspiration Themes
 */
yit_register_slider_style($slider_type, 'slider-thumbnail', 'css/thumbnails.css');
yit_register_slider_script($slider_type, 'jquery-thumbnail', 'js/jquery.aw-showcase.js');
// set here if the slider is reponsive or not
$this->responsive_sliders[$slider_type] = true;
// add image size
yit_add_image_size('thumb-slider-thumbnails', 226, 100, true);
// add support to slide
yit_add_slide_support($slider_type, 'title, subtitle');
// add the slider fields for the admin
yit_add_slider_config($slider_type, array(array('name' => __('Effect', 'yit'), 'id' => 'effect', 'type' => 'select', 'desc' => __('Select the effect you want for slides transiction.', 'yit'), 'options' => array('vslide' => 'vslide', 'hslide' => 'hslide', 'fade' => 'fade'), 'std' => 'fade'), array('name' => __('Pause between slides (s)', 'yit'), 'id' => 'interval', 'type' => 'slider', 'desc' => __('Select the delay between slides, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 3), array('name' => __('Animation speed (s)', 'yit'), 'id' => 'speed', 'type' => 'slider', 'desc' => __('The speed of the animation between two slide, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 0.8), array('name' => __('Content width', 'yit'), 'id' => 'width', 'type' => 'number', 'desc' => __('Select the width of content (set 0 for full width feature).', 'yit'), 'min' => 0, 'max' => 2000, 'std' => 0), array('name' => __('Content height', 'yit'), 'id' => 'height', 'type' => 'number', 'desc' => __('Select the height of content (take in mind 22px of padding and border of the slider, so if you want the slider 400px height, set 378px as height.).', 'yit'), 'min' => 10, 'max' => 2000, 'std' => 378)));
// add the slider fields for the admin
yit_slider_typography_options($slider_type, array(array('id' => 'tooltip-font', 'type' => 'typography', 'name' => __('Caption font', 'yit'), 'desc' => __('Configure the tooltip title of the slide.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 26, 'unit' => 'px', 'family' => 'Lato', 'style' => 'bold', 'color' => '#585555'), 'style' => array('selectors' => '.slider-%s.slider div.showcase-text h2', 'properties' => 'font-size, font-family, color, font-style, font-weight')), array('id' => 'extra-tooltip-font', 'type' => 'typography', 'name' => __('Tooltip text font', 'yit'), 'desc' => __('Configure the font of the text in the slide.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 12, 'unit' => 'px', 'family' => 'Lato', 'style' => 'regular', 'color' => '#6e6e6e'), 'style' => array('selectors' => '.slider-%s.slider div.showcase-text p', 'properties' => 'font-size, font-family, color, font-style, font-weight'))));
예제 #3
0
파일: config.php 프로젝트: zgomotos/Bazar
<?php

/**
 * @package WordPress
 * @subpackage Your Inspiration Themes
 */
yit_register_slider_style($slider_type, 'slider-polaroid', 'css/polaroid.css');
yit_register_slider_script($slider_type, 'jquery-transform', 'js/jquery.transform-0.8.0.min.js');
yit_register_slider_script($slider_type, 'jquery-preloader', 'js/jquery.preloader.js');
yit_register_slider_script($slider_type, 'jquery-polaroid', 'js/jquery.polaroid.js');
// set here if the slider is reponsive or not
$this->responsive_sliders[$slider_type] = false;
// add support to slide
yit_add_slide_support($slider_type, 'title, content', array(array('name' => __('Content alignment', 'yit'), 'id' => 'content_align', 'type' => 'select', 'options' => array('left' => __('Left', 'yit'), 'right' => __('Right', 'yit')), 'desc' => __('Select where you want the content. The image automatically will be aligned in the opposite side.', 'yit'), 'std' => 'right'), array('name' => __('Full background', 'yit'), 'id' => 'is_full', 'type' => 'onoff', 'desc' => __('Set YES here if you want the background in full width, when you have a content inside the slide.', 'yit'), 'std' => 0)));
// thumbnails image size
add_image_size('slider-polaroid-thumb', 150, 150, true);
// add the slider fields for the admin
yit_add_slider_config($slider_type, array(array('name' => __('Width content', 'yit'), 'id' => 'width', 'type' => 'number', 'desc' => __('Select the width of container (select 0 if you want to have the same width of site container).', 'yit'), 'min' => 0, 'max' => 2000, 'std' => 0), array('name' => __('Height content', 'yit'), 'id' => 'height', 'type' => 'number', 'desc' => __('Select the height of container.', 'yit'), 'min' => 10, 'max' => 2000, 'std' => 400), array('name' => __('Pause between slides (s)', 'yit'), 'id' => 'interval', 'type' => 'slider', 'desc' => __('Select the delay between slides, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 3), array('name' => __('Animation speed (s)', 'yit'), 'id' => 'speed', 'type' => 'slider', 'desc' => __('The speed of the animation between two slide, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 0.8), array('type' => 'sep'), array('id' => 'responsive_mode', 'name' => __('Responsive mode', 'yit'), 'desc' => __('Select some other responsive slider or static image to replace to this slider, when you are in responsive.', 'yit'), 'type' => 'responsivesliders'), array('id' => 'responsive_image', 'name' => __('Responsive Image', 'yit'), 'desc' => __('Upload here an image, if you have defined the "Static Image" in the option above.', 'yit'), 'type' => 'upload')));
// add the slider fields for the admin
yit_slider_typography_options($slider_type, array(array('id' => 'title-font', 'type' => 'typography', 'name' => __('Title', 'yit'), 'desc' => __('Configure the title.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 24, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'extra-bold', 'color' => '#e5f99a'), 'style' => array('selectors' => '.slider-%s.slider .slide-content h2, .slider-%s.slider .slide-content h2, .text-polaroid h2', 'properties' => 'font-size, font-family, color, font-style, font-weight')), array('id' => 'paragraphs-font', 'type' => 'typography', 'name' => __('Paragraphs', 'yit'), 'desc' => __('Configure the paragraphs.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 12, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'regular', 'color' => '#ffffff'), 'style' => array('selectors' => '.slider-%s.slider .slide-content p, .slider-%s.slider .slide-content p, .text-polaroid p', 'properties' => 'font-size, font-family, color, font-style, font-weight'))));
예제 #4
0
파일: config.php 프로젝트: zgomotos/Bazar
<?php

/**
 * @package WordPress
 * @subpackage Your Inspiration Themes
 */
yit_register_slider_style($slider_type, 'slider-flexslider', 'css/flexslider.css');
yit_register_slider_style($slider_type, 'slider-flexslider-elegant-slider', 'css/slider.css');
// set here if the slider is reponsive or not
$this->responsive_sliders[$slider_type] = true;
// add support to slide
yit_add_slide_support($slider_type, 'title, content-editor, link');
// add the slider fields for the admin
yit_add_slider_config($slider_type, array(array('name' => __('Width content', 'yit'), 'id' => 'width', 'type' => 'number', 'desc' => __('Select the width of container (leave 0 to get all container width).', 'yit'), 'min' => 0, 'max' => 2000, 'std' => 0), array('name' => __('Height content', 'yit'), 'id' => 'height', 'type' => 'number', 'desc' => __('Select the height of container.', 'yit'), 'min' => 10, 'max' => 2000, 'std' => 400), array('name' => __('Effect', 'yit'), 'id' => 'effect', 'type' => 'select', 'options' => array('fade' => 'Fade', 'slide' => 'Slide'), 'desc' => __('The effect used to change slide.', 'yit'), 'std' => 'fade'), array('name' => __('Pause between slides (s)', 'yit'), 'id' => 'interval', 'type' => 'slider', 'desc' => __('Select the delay between slides, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 3), array('name' => __('Animation speed (s)', 'yit'), 'id' => 'speed', 'type' => 'slider', 'desc' => __('The speed of the animation between two slide, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 0.8), array('name' => __('Content tooltip position', 'yit'), 'id' => 'caption_position', 'type' => 'select', 'desc' => __('Define the position of the tooltip of the text.', 'yit'), 'options' => array('top' => __('Top', 'yit'), 'bottom' => __('Bottom', 'yit'), 'left' => __('Left', 'yit'), 'right' => __('Right', 'yit')), 'std' => 'right'), array('name' => __('Caption speed (s)', 'yit'), 'id' => 'caption_speed', 'type' => 'slider', 'desc' => __('The speed animation of caption.', 'yit'), 'min' => 0.1, 'max' => 10, 'step' => 0.1, 'std' => 0.4)));
// add the slider fields for the admin
yit_slider_typography_options($slider_type, array(array('id' => 'title-font', 'type' => 'typography', 'name' => __('Title', 'yit'), 'desc' => __('Configure the title.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 17, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'bold', 'color' => '#ffffff'), 'style' => array('selectors' => '.slider-%s.slider ul li .slider-caption h2, .slider-%s.slider ul li .slider-caption h2 a', 'properties' => 'font-size, font-family, color, font-style, font-weight')), array('id' => 'paragraphs-font', 'type' => 'typography', 'name' => __('Paragraphs', 'yit'), 'desc' => __('Configure the paragraphs.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 12, 'unit' => 'px', 'family' => 'Open Sans', 'style' => 'regular', 'color' => '#ffffff'), 'style' => array('selectors' => '.slider-%s.slider ul li .slider-caption p', 'properties' => 'font-size, font-family, color, font-style, font-weight')), array('id' => 'special-font', 'type' => 'typography', 'name' => __('[special_font]', 'yit'), 'desc' => __('Configure the [special_font] text.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 24, 'unit' => 'px', 'family' => 'Shadows Into Light', 'style' => 'regular', 'color' => '#ffffff'), 'style' => array('selectors' => '.slider-%s.slider ul li .slider-caption .special-font', 'properties' => 'font-size, font-family, color, font-style, font-weight'))));
예제 #5
0
<?php

/**
 * @package WordPress
 * @subpackage Your Inspiration Themes
 */
include 'layerslider.php';
// add the check in case you use the [button]
add_filter('yit_sc_button_include_content', create_function('$to_check', '$to_check[] = serialize( get_option("layerslider-slides") ); return $to_check;'));
// add the layer slider in the sample data
add_filter('yit_sample_data_options', create_function('$options', '$options[] = "layerslider-slides"; return $options;'));
// set here if the slider is reponsive or not
$this->responsive_sliders[$slider_type] = true;
// add the slider fields for the admin
yit_add_slider_config($slider_type, array(array('type' => 'simple-text', 'desc' => sprintf(__('Configure the slider in <a href="%s">LayerSlider</a> page and then select below the slider to use for this slider.', 'yit'), admin_url('admin.php?page=layerslider'))), array('id' => 'layer_slider', 'name' => __('Select the slider', 'yit'), 'desc' => __('Select the slider you want to show when you want to show this slider.', 'yit'), 'type' => 'select', 'options' => layerslider_get_sliders())));
// add the slider fields for the admin
yit_slider_typography_options($slider_type, array(array('id' => 'p-font', 'type' => 'typography', 'name' => __('p', 'yit'), 'desc' => __('Configure the font for the "p" elements.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 12, 'unit' => 'px', 'family' => 'Droid Sans', 'style' => 'regular', 'color' => '#585555'), 'style' => array('selectors' => '#slider-%s.layer-slider .ls-layer p', 'properties' => 'font-size, font-family, font-style, font-weight, color')), array('id' => 'a-font', 'type' => 'typography', 'name' => __('Links', 'yit'), 'desc' => __('Configure the color for the links.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 12, 'unit' => 'px', 'family' => 'Droid Sans', 'style' => 'regular', 'color' => '#c97e08'), 'style' => array('selectors' => '#slider-%s.layer-slider .ls-layer a', 'properties' => 'color')), array('id' => 'a-hover-font', 'type' => 'typography', 'name' => __('Links hover', 'yit'), 'desc' => __('Configure the color for the links, when mouse over.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 12, 'unit' => 'px', 'family' => 'Droid Sans', 'style' => 'regular', 'color' => '#2E2D2D'), 'style' => array('selectors' => '#slider-%s.layer-slider .ls-layer a:hover', 'properties' => 'color')), array('id' => 'h1-font', 'type' => 'typography', 'name' => __('h1', 'yit'), 'desc' => __('Configure the font for the "h1" elements.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 34, 'unit' => 'px', 'family' => 'Rokkitt', 'style' => 'regular', 'color' => '#2E2D2D'), 'style' => array('selectors' => '#slider-%s.layer-slider .ls-layer h1', 'properties' => 'font-size, font-family, font-style, font-weight, color')), array('id' => 'h2-font', 'type' => 'typography', 'name' => __('h2', 'yit'), 'desc' => __('Configure the font for the "h2" elements.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 30, 'unit' => 'px', 'family' => 'Rokkitt', 'style' => 'regular', 'color' => '#2E2D2D'), 'style' => array('selectors' => '#slider-%s.layer-slider .ls-layer h2', 'properties' => 'font-size, font-family, font-style, font-weight, color')), array('id' => 'h3-font', 'type' => 'typography', 'name' => __('h3', 'yit'), 'desc' => __('Configure the font for the "h3" elements.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 26, 'unit' => 'px', 'family' => 'Rokkitt', 'style' => 'regular', 'color' => '#c97e08'), 'style' => array('selectors' => '#slider-%s.layer-slider .ls-layer h3', 'properties' => 'font-size, font-family, font-style, font-weight, color')), array('id' => 'h4-font', 'type' => 'typography', 'name' => __('h4', 'yit'), 'desc' => __('Configure the font for the "h4" elements.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 22, 'unit' => 'px', 'family' => 'Rokkitt', 'style' => 'regular', 'color' => '#2E2D2D'), 'style' => array('selectors' => '#slider-%s.layer-slider .ls-layer h1', 'properties' => 'font-size, font-family, font-style, font-weight, color')), array('id' => 'h5-font', 'type' => 'typography', 'name' => __('h5', 'yit'), 'desc' => __('Configure the font for the "h5" elements.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 18, 'unit' => 'px', 'family' => 'Rokkitt', 'style' => 'regular', 'color' => '#2E2D2D'), 'style' => array('selectors' => '#slider-%s.layer-slider .ls-layer h5', 'properties' => 'font-size, font-family, font-style, font-weight, color')), array('id' => 'h6-font', 'type' => 'typography', 'name' => __('h6', 'yit'), 'desc' => __('Configure the font for the "h6" elements.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 14, 'unit' => 'px', 'family' => 'Rokkitt', 'style' => 'regular', 'color' => '#2E2D2D'), 'style' => array('selectors' => '#slider-%s.layer-slider .ls-layer h6', 'properties' => 'font-size, font-family, font-style, font-weight, color'))));
// add the script js to hide the second tab, if is selected the Layer slider in the select
function yit_hide_second_tab_layersslider()
{
    ?>
    <script type="text/javascript">
        jQuery(document).ready(function($){
            if ( $('#<?php 
    echo yit_get_model('cpt_unlimited')->metabox_name;
    ?>
_slider_type').val() == 'layer-slider' )
                $('a[href="#item-edit"]').parent().remove();
        });
    </script>
    <?php 
예제 #6
0
<?php

/**
 * @package WordPress
 * @subpackage Your Inspiration Themes
 */
yit_register_slider_style($slider_type, 'slider-thumbnail', 'css/thumbnails.css');
yit_register_slider_script($slider_type, 'jquery-thumbnail', 'js/jquery.aw-showcase.js');
// set here if the slider is reponsive or not
$this->responsive_sliders[$slider_type] = true;
// add image size
add_image_size('thumb-slider-thumbnails', 60, 60, true);
// add support to slide
yit_add_slide_support($slider_type, 'link', array(array('name' => __('Caption', 'yit'), 'id' => 'caption', 'type' => 'text', 'desc' => __('Define here the text to use in the caption of the slide.', 'yit'), 'std' => ''), array('type' => 'simple-text', 'desc' => '<b>' . __('Add Tooltip', 'yit') . '</b>'), array('name' => __('Tooltip Text', 'yit'), 'id' => 'tooltip_text', 'type' => 'textarea', 'desc' => __('Select the text to show inside the tooltip.', 'yit'), 'std' => ''), array('name' => __('Image', 'yit'), 'id' => 'tooltip_image', 'type' => 'upload', 'desc' => __('You can add here an image to show above the text inside the tooltip (optional)', 'yit'), 'std' => ''), array('name' => __('URL', 'yit'), 'id' => 'tooltip_url', 'type' => 'text', 'desc' => __('Define here the URL where the tooltip have to point.', 'yit'), 'std' => ''), array('name' => __('Coords X', 'yit'), 'id' => 'tooltip_x', 'type' => 'number', 'desc' => __('Define here the position, from the left, where place the tooltip.', 'yit'), 'std' => '20'), array('name' => __('Coords Y', 'yit'), 'id' => 'tooltip_y', 'type' => 'number', 'desc' => __('Define here the position, from the top, where place the tooltip.', 'yit'), 'std' => '20')));
// add the slider fields for the admin
yit_add_slider_config($slider_type, array(array('name' => __('Effect', 'yit'), 'id' => 'effect', 'type' => 'select', 'desc' => __('Select the effect you want for slides transiction.', 'yit'), 'options' => array('vslide' => 'vslide', 'hslide' => 'hslide', 'fade' => 'fade'), 'std' => 'fade'), array('name' => __('How to show the title', 'yit'), 'id' => 'show_caption', 'type' => 'select', 'desc' => __('Define how to show the title in the slide.', 'yit'), 'options' => array('show' => __('Show always', 'yit'), 'onload' => __('Show on load', 'yit'), 'onhover' => __('Show on hover', 'yit')), 'std' => 'onload'), array('name' => __('Pause between slides (s)', 'yit'), 'id' => 'interval', 'type' => 'slider', 'desc' => __('Select the delay between slides, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 3), array('name' => __('Animation speed (s)', 'yit'), 'id' => 'speed', 'type' => 'slider', 'desc' => __('The speed of the animation between two slide, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 0.8), array('name' => __('Content width', 'yit'), 'id' => 'width', 'type' => 'number', 'desc' => __('Select the width of content (take in mind 22px of padding and border of the slider, so if you want the slider 1200px width, set 1178px as width.).', 'yit'), 'min' => 10, 'max' => 2000, 'std' => 1178), array('name' => __('Content height', 'yit'), 'id' => 'height', 'type' => 'number', 'desc' => __('Select the height of content (take in mind 22px of padding and border of the slider, so if you want the slider 400px height, set 378px as height.).', 'yit'), 'min' => 10, 'max' => 2000, 'std' => 378), array('type' => 'sep')));
// add the slider fields for the admin
yit_slider_typography_options($slider_type, array(array('id' => 'tooltip-font', 'type' => 'typography', 'name' => __('Caption font', 'yit'), 'desc' => __('Configure the tooltip text in hover of the slide.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 13, 'unit' => 'px', 'family' => 'Droid Sans', 'style' => 'regular', 'color' => '#585555'), 'style' => array('selectors' => '#slider-%s.slider.thumbnails .showcase-caption p', 'properties' => 'font-size, font-family, color, font-style, font-weight')), array('id' => 'extra-tooltip-font', 'type' => 'typography', 'name' => __('Tooltip text font', 'yit'), 'desc' => __('Configure the font of the additional tooltip that you add inside the slide in a custom position.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 12, 'unit' => 'px', 'family' => 'Droid Sans', 'style' => 'regular', 'color' => '#000'), 'style' => array('selectors' => '#slider-%s.slider.thumbnails div.showcase-tooltip', 'properties' => 'font-size, font-family, color, font-style, font-weight'))));
예제 #7
0
파일: config.php 프로젝트: zgomotos/Bazar
    global $wpdb;
    if (!yit_if_thereis_revslider()) {
        return $tables;
    }
    $tables[] = str_replace($wpdb->prefix, '', GlobalsRevSlider::$table_sliders);
    $tables[] = str_replace($wpdb->prefix, '', GlobalsRevSlider::$table_slides);
    $tables[] = str_replace($wpdb->prefix, '', GlobalsRevSlider::$table_settings);
    return $tables;
}
add_filter('yit_sample_data_tables', 'yit_add_revslider_tables');
// add the layer slider in the sample data
//add_filter( 'yit_sample_data_options', create_function( '$options', '$options[] = "layerslider-slides"; return $options;' ) );
// set here if the slider is reponsive or not
$this->responsive_sliders[$slider_type] = true;
// add the slider fields for the admin
yit_add_slider_config($slider_type, array(array('type' => 'simple-text', 'desc' => sprintf(__('Configure the slider in <a href="%s">Revolution Slider</a> page and then select below the slider to use for this slider.', 'yit'), admin_url('admin.php?page=revslider'))), array('id' => 'slider_name', 'name' => __('Select the slider', 'yit'), 'desc' => __('Select the slider you want to show when you want to show this slider.', 'yit'), 'type' => 'select', 'options' => yit_get_revolution_sliders()), array('id' => 'slider_text', 'name' => __('Additional text', 'yit'), 'desc' => __("Write here some html content to show near the slider. Leave empty if you don't want any content near the slider (this text will not shown when you put the slider inside the page content).", 'yit'), 'type' => 'textarea-editor'), array('id' => 'slider_align', 'name' => __('Additional text align', 'yit'), 'desc' => __("Set where you want to put the html content, on right or left side of slider.", 'yit'), 'type' => 'select', 'options' => array('left' => __('Left', 'yit'), 'right' => __('Right', 'yit')), 'std' => 'right')));
function yit_get_revolution_sliders()
{
    global $wpdb;
    if (!yit_if_thereis_revslider()) {
        return array();
    }
    $tableName = GlobalsRevSlider::$table_sliders;
    $slider = new RevSlider();
    return $slider->getArrSlidersShort();
}
function yit_if_thereis_revslider()
{
    global $wpdb;
    if (!class_exists('GlobalsRevSlider')) {
        return false;
예제 #8
0
파일: config.php 프로젝트: zgomotos/Bazar
<?php

/**
 * @package WordPress
 * @subpackage Your Inspiration Themes
 */
global $yit;
yit_register_slider_style($slider_type, 'slider-flash', 'css/flash.css');
yit_register_slider_script($slider_type, 'swfobject');
// set here if the slider is reponsive or not
$this->responsive_sliders[$slider_type] = false;
// add support to slide
yit_add_slide_support($slider_type, 'title, content-editor, link');
// add the slider fields for the admin
yit_add_slider_config($slider_type, array(array('name' => __('Width content', 'yit'), 'id' => 'width', 'type' => 'number', 'desc' => __('Select the width of container (default is 1170).', 'yit'), 'min' => 0, 'max' => 2000, 'std' => 1170), array('name' => __('Height content', 'yit'), 'id' => 'height', 'type' => 'number', 'desc' => __('Select the height of container.', 'yit'), 'min' => 10, 'max' => 2000, 'std' => 395), array('type' => 'sep'), array('id' => 'responsive_mode', 'name' => __('Responsive mode', 'yit'), 'desc' => __('Select some other responsive slider or static image to replace to this slider, when you are in responsive.', 'yit'), 'type' => 'responsivesliders'), array('id' => 'responsive_image', 'name' => __('Responsive Image', 'yit'), 'desc' => __('Upload here an image, if you have defined the "Static Image" in the option above.', 'yit'), 'type' => 'upload'), array('type' => 'sep'), array('type' => 'simple-text', 'desc' => '<b>' . __('Transitions', 'yit') . '</b>'), array("name" => __('Pieces', 'yit'), "desc" => __('Number of pieces to which the image is sliced', 'yit'), "id" => "Pieces", "type" => "slider", "min" => 0, "max" => 40, "std" => 9), array("name" => __('Time', 'yit'), "desc" => __('Time for one cube to turn (expressed in seconds).', 'yit'), "id" => "Time", "type" => "slider", "min" => 0, "max" => 5, "step" => 0.1, "std" => 1), array("name" => __('Transition', 'yit'), "desc" => __('Transition type of the Tweener class', 'yit'), "id" => "Transition", "type" => "select", "options" => $yit->getConfigEasings(), "std" => "easeInOutBack"), array("name" => __('Depth Offset', 'yit'), "desc" => __('The offset during transition on the z-axis. Value between 100 and 1000 are recommended.', 'yit'), "id" => "DepthOffset", "type" => "slider", "min" => 100, "max" => 1000, "step" => 50, "std" => 300), array("name" => __('Cube Distance', 'yit'), "desc" => __('The distance between the cubes during transition. Values between 5 and 50 are recommended.', 'yit'), "id" => "CubeDistance", "type" => "slider", "min" => 5, "max" => 50, "std" => 30), array('type' => 'sep'), array('type' => 'simple-text', 'desc' => '<b>' . __('General Configuration', 'yit') . '</b>'), array("name" => __('Loader Color', 'yit'), "desc" => __('Color of the cubes before the first image appears, also the color of the back sides of the cube, which become visible at some transition types', 'yit'), "id" => "LoaderColor", "type" => "colorpicker", "std" => "#333333"), array("name" => __('Inner Side Color', 'yit'), "desc" => __('Color of the inner sides of the cube when sliced', 'yit'), "id" => "InnerSideColor", "type" => "colorpicker", "std" => "#222222"), array("name" => __('Autoplay', 'yit'), "desc" => __('Number of seconds from one transition to another, if not stopped. Set to 0 to disable autoplay', 'yit'), "id" => "Autoplay", "type" => "slider", "min" => 0, "max" => 20, "label" => "s", "std" => 4), array('type' => 'sep'), array('type' => 'simple-text', 'desc' => '<b>' . __('Shadow', 'yit') . '</b>'), array("name" => __('Side Shadow Alpha', 'yit'), "desc" => __('Sides get darker when moved away from the front. This is the degree of darkness - 0 == no change, 1 == 100&#37; black.', 'yit'), "id" => "SideShadowAlpha", "type" => "slider", "min" => 0, "max" => 1, "step" => 0.1, "std" => 0.8), array("name" => __('Drop Shadow Alpha', 'yit'), "desc" => __('Alpha of the drop shadow - 0 == no shadow, 1 == opaque', 'yit'), "id" => "DropShadowAlpha", "type" => "slider", "min" => 0, "max" => 1, "step" => 0.1, "std" => 0.7), array("name" => __('Drop Shadow Distance', 'yit'), "desc" => __('Distance of the shadow from the bottom of the image', 'yit'), "id" => "DropShadowDistance", "type" => "slider", "min" => 0, "max" => 100, "std" => 25), array("name" => __('Drop Shadow Scale', 'yit'), "desc" => __('As the shadow is blurred, it appears wider that the actual image, when not resized. Thus it\'s a good idea to make it slightly smaller. - 1 would be no resizing at all.', 'yit'), "id" => "DropShadowScale", "type" => "slider", "min" => 0, "max" => 1, "step" => 0.05, "std" => 0.95), array("name" => __('Drop Shadow Blur X', 'yit'), "desc" => __('Blur of the drop shadow on the x-axis', 'yit'), "id" => "DropShadowBlurX", "type" => "slider", "min" => 0, "max" => 200, "std" => 40), array("name" => __('Drop Shadow Blur Y', 'yit'), "desc" => __('Blur of the drop shadow on the y-axis', 'yit'), "id" => "DropShadowBlurY", "type" => "slider", "min" => 0, "max" => 200, "std" => 4), array('type' => 'sep'), array('type' => 'simple-text', 'desc' => '<b>' . __('Menu', 'yit') . '</b>'), array("name" => __('Menu Distance X', 'yit'), "desc" => __('Distance between two menu items (from center to center).', 'yit'), "id" => "MenuDistanceX", "type" => "slider", "min" => 0, "max" => 400, "std" => 20), array("name" => __('Menu Distance Y', 'yit'), "desc" => __('Distance of the menu from the bottom of the image.', 'yit'), "id" => "MenuDistanceY", "type" => "slider", "min" => 0, "max" => 400, "std" => 50), array("name" => __('Menu Color Inactive Item', 'yit'), "desc" => __('Color of an inactive menu item.', 'yit'), "id" => "MenuColor1", "type" => "colorpicker", "std" => "#999999"), array("name" => __('Menu Color Active Item', 'yit'), "desc" => __('Color of an active menu item.', 'yit'), "id" => "MenuColor2", "type" => "colorpicker", "std" => "#333333"), array("name" => __('Menu Color Inner Circle od Active Item', 'yit'), "desc" => __('Color of the inner circle of an active menu item. Should equal the background color of the whole thing.', 'yit'), "id" => "MenuColor3", "type" => "colorpicker", "std" => "#FFFFFF"), array('type' => 'sep'), array('type' => 'simple-text', 'desc' => '<b>' . __('Controls', 'yit') . '</b>'), array("name" => __('Control Size', 'yit'), "desc" => __('Size of the controls, which appear on rollover (play, stop, info, link)', 'yit'), "id" => "ControlSize", "type" => "slider", "min" => 0, "max" => 400, "step" => 10, "std" => 100), array("name" => __('Control Distance', 'yit'), "desc" => __('Distance between the controls (from the borders).', 'yit'), "id" => "ControlDistance", "type" => "slider", "min" => 0, "max" => 100, "std" => 20), array("name" => __('Bg Color', 'yit'), "desc" => __('Background color of the controls', 'yit'), "id" => "ControlColor1", "type" => "colorpicker", "std" => "#222222"), array("name" => __('Font Color', 'yit'), "desc" => __('Font color of the controls', 'yit'), "id" => "ControlColor2", "type" => "colorpicker", "std" => "#FFFFFF"), array("name" => __('Control Alpha', 'yit'), "desc" => __('Alpha of a control, when mouse is not over', 'yit'), "id" => "ControlAlpha", "type" => "slider", "min" => 0, "max" => 1, "step" => 0.05, "std" => 0.8), array("name" => __('Control Alpha Hover status', 'yit'), "desc" => __('Alpha of a control, when mouse is hover.', 'yit'), "id" => "ControlAlphaOver", "type" => "slider", "min" => 0, "max" => 1, "step" => 0.05, "std" => 0.95), array("name" => __('Control X', 'yit'), "desc" => __('X-position of the point, which aligns the controls (measured from [0,0] of the image)', 'yit'), "id" => "ControlsX", "type" => "slider", "min" => 0, "max" => 1170, "step" => 10, "std" => 585), array("name" => __('Control Y', 'yit'), "desc" => __('Y-position of the point, which aligns the controls (measured from [0,0] of the image)', 'yit'), "id" => "ControlsY", "type" => "slider", "min" => 0, "max" => 350, "step" => 10, "std" => 240), array("name" => __('Controls Align', 'yit'), "desc" => __('Type of alignment from the point [controlsX, controlsY]', 'yit'), "id" => "ControlsAlign", "type" => "select", "options" => array('center' => __('center', 'yit'), 'left' => __('left', 'yit'), 'right' => __('right', 'yit')), "std" => 'center'), array('type' => 'sep'), array('type' => 'simple-text', 'desc' => '<b>' . __('Tooltip', 'yit') . '</b>'), array("name" => __('Tooltip Height', 'yit'), "desc" => __('Height of the tooltip surface in the menu', 'yit'), "id" => "TooltipHeight", "type" => "slider", "min" => 0, "max" => 200, "std" => 30), array("name" => __('Tooltip Color', 'yit'), "desc" => __('Color of the tooltip surface in the menu', 'yit'), "id" => "TooltipColor", "type" => "colorpicker", "std" => "#222222"), array("name" => __('Tooltip Text Y', 'yit'), "desc" => __('Y-distance of the tooltip text field from the top of the tooltip', 'yit'), "id" => "TooltipTextY", "type" => "slider", "min" => 0, "max" => 200, "std" => 5), array("name" => __('Tooltip Text Color', 'yit'), "desc" => __('Color of the tooltip text', 'yit'), "id" => "TooltipTextColor", "type" => "colorpicker", "std" => "#FFFFFF"), array("name" => __('Tooltip Margin Left', 'yit'), "desc" => __('Margin of the text to the left end of the tooltip', 'yit'), "id" => "TooltipMarginLeft", "type" => "slider", "min" => 0, "max" => 50, "std" => 5), array("name" => __('Tooltip Margin Right', 'yit'), "desc" => __('Margin of the text to the right end of the tooltip', 'yit'), "id" => "TooltipMarginRight", "type" => "slider", "min" => 0, "max" => 50, "std" => 7), array("name" => __('Tooltip Text Sharpness', 'yit'), "desc" => __('Sharpness of the tooltip text (-400 to 400)', 'yit'), "id" => "TooltipTextSharpness", "type" => "slider", "min" => -400, "max" => 400, "step" => 10, "std" => 50), array("name" => __('Tooltip Text Thickness', 'yit'), "desc" => __('Thickness of the tooltip text (-400 to 400)', 'yit'), "id" => "TooltipTextThickness", "type" => "slider", "min" => -400, "max" => 400, "step" => 10, "std" => -100), array('type' => 'sep'), array('type' => 'simple-text', 'desc' => '<b>' . __('Info box', 'yit') . '</b>'), array("name" => __('Info Width', 'yit'), "desc" => __('The width of the info text field', 'yit'), "id" => "InfoWidth", "type" => "slider", "min" => 0, "max" => 1170, "step" => 20, "std" => 400), array("name" => __('Info Background', 'yit'), "desc" => __('The background color of the info text field', 'yit'), "id" => "InfoBackground", "type" => "colorpicker", "std" => "#FFFFFF"), array("name" => __('Info Background Alpha', 'yit'), "desc" => __('The alpha of the background of the info text, the image shines through, when smaller than 1', 'yit'), "id" => "InfoBackgroundAlpha", "type" => "slider", "min" => 0, "max" => 1, "step" => 0.05, "std" => 0.95), array("name" => __('Info Margin', 'yit'), "desc" => __('The margin of the text field in the info section to all sides', 'yit'), "id" => "InfoMargin", "type" => "slider", "min" => 0, "max" => 100, "std" => 15), array("name" => __('Info Text Sharpness', 'yit'), "desc" => __('Sharpness of the Info text (-400 to 400)', 'yit'), "id" => "InfoTextSharpness", "type" => "slider", "min" => -400, "max" => 400, "step" => 10, "std" => 0), array("name" => __('Info Text Thickness', 'yit'), "desc" => __('Thickness of the Info text (-400 to 400)', 'yit'), "id" => "InfoTextThickness", "type" => "slider", "min" => -400, "max" => 400, "step" => 10, "std" => 0)));
예제 #9
0
파일: config.php 프로젝트: jayeshnair/ctp
<?php

/**
 * @package WordPress
 * @subpackage Your Inspiration Themes
 */
yit_register_slider_style($slider_type, 'slider-rotating', 'css/slider-rotating.css');
yit_register_slider_script($slider_type, 'slider-rotating', 'js/jquery.RotateImageMenu.js');
// set here if the slider is reponsive or not
$this->responsive_sliders[$slider_type] = true;
// add support to slide
yit_add_slide_support($slider_type, 'link');
// add the slider fields for the admin
yit_add_slider_config($slider_type, array(array('name' => __('Width content', 'yit'), 'id' => 'width', 'type' => 'number', 'desc' => __('Select the width of container (select 0 if you want to have the same width of site container).', 'yit'), 'min' => 0, 'max' => 2000, 'std' => 0), array('name' => __('Height content', 'yit'), 'id' => 'height', 'type' => 'number', 'desc' => __('Select the height of container.', 'yit'), 'min' => 10, 'max' => 2000, 'std' => 400), array('name' => __('Slider Title', 'yit'), 'desc' => __("The title that appears above slides (leave empty if you don't want this title).", 'yit'), 'id' => 'slider_title', 'type' => 'text', 'std' => ''), array('name' => __('Number of panel', 'yit'), 'desc' => __('Number of panels for each slide.', 'yit'), 'id' => 'n_panels', 'type' => 'slider', 'min' => 2, 'max' => 5, 'step' => 1, 'std' => 4), array('name' => __('Pause between slides (s)', 'yit'), 'id' => 'interval', 'type' => 'slider', 'desc' => __('Select the delay between slides, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 7), array('name' => __('Animation speed (s)', 'yit'), 'id' => 'speed', 'type' => 'slider', 'desc' => __('The speed of the animation between two slide, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 0.2), array('name' => __('Header background color', 'yit'), 'id' => 'header-background', 'type' => 'colorpicker', 'desc' => __('The color of background if the slider is set in header (empty if you want transparent)', 'yit'), 'std' => '')));
예제 #10
0
파일: config.php 프로젝트: jayeshnair/ctp
<?php

/**
 * @package WordPress
 * @subpackage Your Inspiration Themes
 */
// set here if the slider is reponsive or not
$this->responsive_sliders[$slider_type] = true;
// add support to slide
yit_add_slide_support($slider_type, 'content', array(array('name' => __('Vertical align', 'yit'), 'id' => 'valign', 'type' => 'select', 'desc' => '', 'std' => 'center', 'options' => array('top' => __('Top', 'yit'), 'center' => __('Center', 'yit'), 'bottom' => __('Bottom', 'yit'))), array('name' => __('Horizontal align', 'yit'), 'id' => 'halign', 'type' => 'select', 'desc' => '', 'std' => 'center', 'options' => array('left' => __('Left', 'yit'), 'center' => __('Center', 'yit'), 'right' => __('Right', 'yit'))), array('id' => 'color', 'name' => __('Content Text Color', 'yit'), 'desc' => '', 'type' => 'colorpicker', 'std' => '#ffffff'), array('id' => 'hover_color', 'name' => __('Links hover Color', 'yit'), 'desc' => '', 'type' => 'colorpicker', 'std' => '#000'), array('id' => 'effect', 'name' => __('Effect', 'yit'), 'desc' => '', 'type' => 'select', 'options' => array('fadeIn' => __('fadeIn', 'yit'), 'fadeInUp' => __('fadeInUp', 'yit'), 'fadeInDown' => __('fadeInDown', 'yit'), 'fadeInLeft' => __('fadeInLeft', 'yit'), 'fadeInRight' => __('fadeInRight', 'yit'), 'fadeInUpBig' => __('fadeInUpBig', 'yit'), 'fadeInDownBig' => __('fadeInDownBig', 'yit'), 'fadeInLeftBig' => __('fadeInLeftBig', 'yit'), 'fadeInRightBig' => __('fadeInRightBig', 'yit'), 'bounceIn' => __('bounceIn', 'yit'), 'bounceInDown' => __('bounceInDown', 'yit'), 'bounceInUp' => __('bounceInUp', 'yit'), 'bounceInLeft' => __('bounceInLeft', 'yit'), 'bounceInRight' => __('bounceInRight', 'yit'), 'rotateIn' => __('rotateIn', 'yit'), 'rotateInDownLeft' => __('rotateInDownLeft', 'yit'), 'rotateInDownRight' => __('rotateInDownRight', 'yit'), 'rotateInUpLeft' => __('rotateInUpLeft', 'yit'), 'rotateInUpRight' => __('rotateInUpRight', 'yit'), 'lightSpeedIn' => __('lightSpeedIn', 'yit'), 'hinge' => __('hinge', 'yit'), 'rollIn' => __('rollIn', 'yit')), 'std' => 'fadeIn'), array('id' => 'button_size', 'name' => __('Button Size', 'yit'), 'desc' => '', 'type' => 'select', 'options' => array('large' => __('Large', 'yit'), 'small' => __('Small', 'yit')), 'std' => 'small')));
// add the slider fields for the admin
yit_add_slider_config($slider_type, array(array('name' => __('Height content', 'yit'), 'id' => 'height', 'type' => 'number', 'desc' => __('Select the height of container.', 'yit'), 'min' => 100, 'max' => 2000, 'std' => 600), array('name' => __('Enable Autoplay', 'yit'), 'id' => 'autoplay', 'type' => 'onoff', 'desc' => __('Enable autoplay of slides.', 'yit'), 'std' => true), array('name' => __('Autoplay speed', 'yit'), 'id' => 'autoplay_speed', 'type' => 'number', 'desc' => __('Autoplay speed in seconds', 'yit'), 'min' => 1, 'max' => 60, 'std' => 5)));
예제 #11
0
<?php

/**
 * @package WordPress
 * @subpackage Your Inspiration Themes
 */
yit_register_slider_style($slider_type, 'slider-cycle', 'css/cycle.css');
yit_register_slider_style($slider_type, 'slider-cycle-ie', 'css/cycle-ie.css');
yit_register_slider_script($slider_type, 'jquery-cycle', 'js/jquery.anythingslider.js');
// set here if the slider is reponsive or not
$this->responsive_sliders[$slider_type] = false;
// add support to slide
yit_add_slide_support($slider_type, 'title, content-editor, link', array(array('name' => __('Background Color', 'yit'), 'id' => 'background_color', 'type' => 'colorpicker', 'desc' => __('Select the background color for this slide. It changes also the text color automatically, in base of this color.', 'yit'), 'std' => ''), array('name' => __('Position Image', 'yit'), 'id' => 'position_image', 'type' => 'text-array', 'desc' => __('Select the position of image (leave empty to put it to the top left of the slider container).', 'yit'), 'fields' => array('top' => __('Top', 'yit'), 'right' => __('Right', 'yit'), 'bottom' => __('Bottom', 'yit'), 'left' => __('Left', 'yit')), 'size' => 40, 'std' => ''), array('name' => __('Position Text', 'yit'), 'id' => 'position_text', 'type' => 'text-array', 'desc' => __('Select the position of the text (leave empty to put it to the top left of the slider container).', 'yit'), 'fields' => array('top' => __('Top', 'yit'), 'right' => __('Right', 'yit'), 'bottom' => __('Bottom', 'yit'), 'left' => __('Left', 'yit')), 'size' => 40, 'std' => '')));
// add the slider fields for the admin
yit_add_slider_config($slider_type, array(array('name' => __('Height', 'yit'), 'id' => 'height', 'type' => 'number', 'desc' => __('Select the height of slider.', 'yit'), 'min' => 50, 'max' => 700, 'std' => 485), array("name" => __("Next & Prev navigation", 'yit'), "desc" => __("Choose if you want to show Next & Prev arrows", 'yit'), "id" => 'directionNav', "type" => "onoff", "std" => 1), array("name" => __("Next & Prev only on hover", 'yit'), "desc" => __("Choose if you want to show Next & Prev arrows only on hover", 'yit'), "id" => 'directionNavHide', "type" => "onoff", "std" => 1), array("name" => __("Autoplay", 'yit'), "desc" => __("Choose if you want to start automatically the slider transitions", 'yit'), "id" => 'autoplay', "type" => "onoff", "std" => 1), array("name" => __("Enable Widget Area", 'yit'), "desc" => __("Choose if you want to enable or disable the widget area below the slider", 'yit'), "id" => 'enable_widget_area', "type" => "onoff", "std" => 1), array("name" => __("Widget area", 'yit'), "desc" => sprintf(__("Choose the sidebar use for the 'Widget area' to use in the slider. Create a new one in <a href=\"%s\">Sidebars</a>.", 'yit'), admin_url('admin.php?page=yit_panel_sidebars')), "id" => 'sidebar', "type" => "sidebarlist", "std" => ''), array('name' => __('Pause between slides (s)', 'yit'), 'id' => 'interval', 'type' => 'slider', 'desc' => __('Select the delay between slides, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 3), array('name' => __('Animation speed (s)', 'yit'), 'id' => 'speed', 'type' => 'slider', 'desc' => __('The speed of the animation between two slide, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 0.8), array('name' => __('Text color for dark background', 'yit'), 'id' => 'light_color', 'type' => 'colorpicker', 'desc' => __('A light color for the text in a slide with the background of the slide is dark.', 'yit'), 'std' => '#fff'), array('name' => __('Text color for light background', 'yit'), 'id' => 'dark_color', 'type' => 'colorpicker', 'desc' => __('A dark color for the text in a slide with the background of the slide is light.', 'yit'), 'std' => '#030303'), array('type' => 'sep'), array('id' => 'responsive_mode', 'name' => __('Responsive mode', 'yit'), 'desc' => __('Select some other responsive slider or static image to replace to this slider, when you are in responsive.', 'yit'), 'type' => 'responsivesliders'), array('id' => 'responsive_image', 'name' => __('Responsive Image', 'yit'), 'desc' => __('Upload here an image, if you have defined the "Static Image" in the option above.', 'yit'), 'type' => 'upload')));
// add the slider fields for the admin
yit_slider_typography_options($slider_type, array(array('id' => 'title-font', 'type' => 'typography', 'name' => __('Title', 'yit'), 'desc' => __('Configure the title.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 48, 'unit' => 'px', 'family' => 'Oswald', 'style' => 'regular', 'color' => '#ffffff'), 'style' => array('selectors' => '#slider-%s.slider_cycle .slide-title h2, #slider-%s.slider_cycle .slide-title h2 span', 'properties' => 'font-size, font-family, font-style, font-weight')), array('id' => 'title-font-highlight', 'type' => 'typography', 'name' => __('Title highlight', 'yit'), 'desc' => __('Configure the highlight of the title (that is the text inside the brackets).', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 48, 'unit' => 'px', 'family' => 'Oswald', 'style' => 'regular', 'color' => '#ea7206'), 'style' => array('selectors' => '#slider-%s.slider_cycle .slide-title h2 span', 'properties' => 'font-size, font-family, color, font-style, font-weight')), array('id' => 'paragraphs-font', 'type' => 'typography', 'name' => __('Paragraphs', 'yit'), 'desc' => __('Configure the paragraphs.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 14, 'unit' => 'px', 'family' => 'Droid Sans', 'style' => 'regular', 'color' => '#ffffff'), 'style' => array('selectors' => '#slider-%s.slider_cycle .slide-content p', 'properties' => 'font-size, font-family, font-style, font-weight'))));
/**
 * Return the absolute position of an object
 *
 * @since 1.0
 */
function yit_slide_get_style($style)
{
    $return = '';
    foreach ($style as $p => $v) {
        $v = is_numeric($v) ? $v . 'px' : $v;
        if ($v != '') {
            $return .= $p . ':' . $v . ';';
        }
    }
예제 #12
0
파일: config.php 프로젝트: jayeshnair/ctp
<?php

/**
 * @package WordPress
 * @subpackage Your Inspiration Themes
 */
yit_register_slider_style($slider_type, 'slider-flexslider', 'css/flexslider.css');
yit_register_slider_style($slider_type, 'slider-flexslider-slider', 'css/slider.css');
// set here if the slider is reponsive or not
$this->responsive_sliders[$slider_type] = true;
// add support to slide
yit_add_slide_support($slider_type, 'link');
// add the slider fields for the admin
yit_add_slider_config($slider_type, array(array('name' => __('Width content', 'yit'), 'id' => 'width', 'type' => 'number', 'desc' => __('Select the width of container (select 0 if you want to have the same width of site container).', 'yit'), 'min' => 0, 'max' => 2000, 'std' => 0), array('name' => __('Height content', 'yit'), 'id' => 'height', 'type' => 'number', 'desc' => __('Select the height of container.', 'yit'), 'min' => 10, 'max' => 2000, 'std' => 400), array('name' => __('Effect', 'yit'), 'id' => 'effect', 'type' => 'select', 'options' => array('fade' => 'Fade', 'slide' => 'Slide'), 'desc' => __('The effect used to change slide.', 'yit'), 'std' => 'fade'), array('name' => __('Pause between slides (s)', 'yit'), 'id' => 'interval', 'type' => 'slider', 'desc' => __('Select the delay between slides, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 3), array('name' => __('Animation speed (s)', 'yit'), 'id' => 'speed', 'type' => 'slider', 'desc' => __('The speed of the animation between two slide, expressed in seconds.', 'yit'), 'min' => 0.1, 'max' => 20, 'step' => 0.1, 'std' => 0.8), array('name' => __('Control Nav', 'yit'), 'id' => 'controlnav', 'type' => 'onoff', 'desc' => __('Show slides control nav', 'yit'), 'std' => false)));