// remove description field for the slide configuration $this->add_description_field( 'no' ); $this->add_layout_fields( array( /*'slider_desc' =>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' ) ) ), */ 'slider_name' => array( 'label' => __('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() ) ) ); function yit_get_revolution_sliders() { global $wpdb; if ( ! yit_if_thereis_revslider() ) { return array(); } $tableName = GlobalsRevSlider::$table_sliders; $slider = new RevSlider();
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;
} $tables[] = str_replace($wpdb->prefix, '', GlobalsRevSlider::$table_sliders); $tables[] = str_replace($wpdb->prefix, '', GlobalsRevSlider::$table_slides); $tables[] = str_replace($wpdb->prefix, '', GlobalsRevSlider::$table_static_slides); $tables[] = str_replace($wpdb->prefix, '', GlobalsRevSlider::$table_settings); $tables[] = str_replace($wpdb->prefix, '', GlobalsRevSlider::$table_css); $tables[] = str_replace($wpdb->prefix, '', GlobalsRevSlider::$table_layer_anims); 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()))); 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;
} $custom_css = RevOperations::getStaticCss(); $custom_css = UniteCssParserRev::compress_css($custom_css); wp_add_inline_style('rs-plugin-settings', $custom_css); $setBase = is_ssl() ? "https://" : "http://"; $url_jquery = $setBase . "ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?app=revolution"; wp_enqueue_script("jquery", $url_jquery); // put javascript to footer add_action('wp_footer', array($GLOBALS['productFront'], 'putJavascript')); } if (version_compare(preg_replace('/-beta-([0-9]+)/', '', $revSliderVersion), '4.6', '>=')) { add_action('wp_head', 'yit_revslider_slider'); } // remove description field for the slide configuration $this->add_description_field('no'); $this->add_layout_fields(array('slider_name' => array('label' => __('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()))); 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;
return; } wp_enqueue_style("rs-plugin-settings", UniteBaseClassRev::$url_plugin . "rs-plugin/css/settings.css", array(), GlobalsRevSlider::SLIDER_REVISION); $custom_css = RevOperations::getStaticCss(); $custom_css = UniteCssParserRev::compress_css($custom_css); wp_add_inline_style('rs-plugin-settings', $custom_css); $setBase = is_ssl() ? "https://" : "http://"; $url_jquery = $setBase . "ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?app=revolution"; wp_enqueue_script("jquery", $url_jquery); // put javascript to footer add_action('wp_footer', array($GLOBALS['productFront'], 'putJavascript')); } add_action('wp_head', 'yit_revslider_slider'); // remove description field for the slide configuration $this->add_description_field('no'); $this->add_layout_fields(array('slider_name' => array('label' => __('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()), 'is_boxed' => array('label' => __('Is boxed', 'yit'), 'desc' => __('Set the slider to boxed (useful if you keep "Shop by category" menu opened in header).', 'yit'), 'type' => 'onoff', 'options' => 'no'))); 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;