How to add it under my Slider?
-
Hello. My theme has Slider and i want to add this plugin under it? How can i do it?
Check picutre: https://prntscr.com/kq6q3qI want it there?
Thanks.
-
I’ve got no idea.
It all depends on the Theme or Page Builder you are using. Each theme is different.
If your theme uses a decent Page Builder, such as Divi or Visual Composer, you should be able to add the SA shortcode to the bottom of the relevant section.Looking at the screenshot you provided, I would guess that possibly you have a custom layout (using a custom template) on that page, as the site background appears as a styrip below the header slider – in that case you will have to find and edit the corresponding PHP template file for the page, and then add the following PHP to that template:
echo do_shortcode("[slide-anything id='???']");
Replace ??? with ID for your slider.Thanks for your answer, but it’s a bit hard for me to udnerstand where and which files should i use. Is it possible to give you the theme link so you can fast check it and tell me where to put the code?
https://smthemes.com/animepress/I will appricate it!
Well looking at the Theme link you provided, they don’t say anything about an included page builder, so the theme probably uses custom templates. So I would guess that you would need to modify the home page PHP template to place the Slide Anything slider where you want – which will require someone with a bit of WordPress coding experience.
So you will need to edit either the ‘front-page.php’, ‘home.php’ or ‘index.php’ template within your theme (see ‘Home Page Display’ in this link: https://developer.www.ads-software.com/themes/basics/template-hierarchy/). This will probably take a bit of playing about.
Can’t we work it out somehow? I can give you the code of the .php files you would like to have so you can put it in the right places? I’ve thought it should be easy… just to add it somehwere in header echo do_shortcode(“[slide-anything id=’8864′]”); and everything to works…
I’ve added <?php echo do_shortcode(“[slide-anything id=’8864′]”); ?> in my footer, the plugin appears, but…
Check picture: https://prntscr.com/kqiyf1
I want it under the slider with the require space between it and my table below. You know…
This is my header.php code if you needed it.
<?php global $SMTheme; if ( isset($_POST['ajaxpage'])&&$_POST['ajaxpage']=='1' ) { ob_start(); get_template_part('theloop'); get_template_part('navigation'); $return['content']=ob_get_contents(); ob_end_clean(); header('Content-type: application/json'); echo json_encode($return); die(); } $SMTheme->get_layout(); echo '<!DOCTYPE html>'."\r\n"; ?> <html <?php language_attributes(); ?>> <head profile="https://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width" /> <title><?php wp_title( false ); ?></title> <?php $SMTheme->seo(); ?> <?php if( (is_archive()&&is_day()&&$SMTheme->get( 'seo', 'day' ))|| (is_archive()&&is_month()&&$SMTheme->get( 'seo', 'month' ))|| (is_archive()&&is_year()&&$SMTheme->get( 'seo', 'year' ))|| (is_category()&&$SMTheme->get( 'seo', 'category' ))|| (is_tag()&&$SMTheme->get( 'seo', 'tag' ))|| (is_author()&&$SMTheme->get( 'seo', 'author' ))|| (is_search()&&$SMTheme->get( 'seo', 'search' )) ) { ?><meta name="robots" content="noindex" /><?php } ?> <?php if ( is_singular() ) { wp_enqueue_script( 'comment-reply' ); } ?> <?php wp_head(); ?> <style type="text/css"> <?php echo $SMTheme->get( 'integration','css' )?> </style> <?php echo $SMTheme->get( 'integration','headcode' ); ?> <script type="text/javascript"> jQuery(document).ready(function() { <?php $SMTheme->block_slider_config(); ?> jQuery(".menus .children").addClass('sub-menu'); <?php $SMTheme->block_menu_config("menus"); ?> jQuery('textarea[name="comment"]').each(function(){ jQuery(this).attr('name','<?php echo $_SESSION['commentinput']; ?>'); }); jQuery('.feedback input').each(function(){ jQuery(this).attr('name','<?php echo $_SESSION['commentinput']; ?>['+jQuery(this).attr('name')+']'); }); jQuery('.feedback textarea').each(function(){ jQuery(this).attr('name','<?php echo $_SESSION['commentinput']; ?>['+jQuery(this).attr('name')+']'); }); }); </script> </head> <body <?php $class=$SMTheme->block_slider_css(); $class.=' '.$SMTheme->sidebars_type; body_class( $class ); ?> layout='<?php echo $SMTheme->layout; ?>'> <div id='scrollUp'><img src='<?php echo get_template_directory_uri().'/images/smt/arrow-up.png';?>' alt='Up' title='Scroll window up' /></div> <div id='all'> <div id='header'> <div class='container clearfix'> <div id='secondarymenu-container'> <div id="logo"> <?php $SMTheme->block_logo();?> </div> <div class="menusearch" title=""> <?php get_search_form(); ?> </div> <div id='menu-box'> <div id='secondarymenu'> <?php wp_nav_menu('depth=0&theme_location=sec-menu&container_class=menu-topmenu-container&menu_class=menus menu-topmenu&fallback_cb=block_sec_menu'); ?> </div> </div> </div> <?php smt_mobile_menu('sec-menu'); ?> <?php smt_mobile_menu('main-menu'); ?> <div id='mainmenu-container'> <div id='mainmenu'> <?php $nav_menu_params=array( 'depth'=>0, 'theme_location'=>'main-menu', 'menu_class'=>'menus menu-primary', 'fallback_cb'=>'block_main_menu' ); wp_nav_menu($nav_menu_params); ?> </div> </div> <?php if ((is_front_page()&&$SMTheme->get( 'slider', 'homepage'))||(!is_front_page()&&$SMTheme->get( 'slider', 'innerpage'))) {?> <div class='slider-container'> <div class='slider-bgr'></div> <?php $SMTheme->block_slider(); ?> </div><?php }?> </div> </div> <div id='content-top' class='container'></div> <div id='content'> <div class='container clearfix'> <?php get_sidebar(); ?> <div id="main_content">
And this here is my function.php … maybe here the magic happens?
<?php if ( ( $pagenow == "themes.php" ) && current_user_can('administrator') && isset( $_GET['activated'] ) && ( $_GET['activated']=='true' ) ) { if (!include_once( get_template_directory() . '/inc/activation.php' )) { $stylesheet = get_option( 'theme_switched' ); switch_theme( $stylesheet, $stylesheet ); if ( file_exists( get_template_directory() . '/inc/activation.php' ) ) { $error_message[]="PHP hasn't access to file /inc/activation.php. Check the file permissions and try again please."; } else { $error_message[]="File /inc/activation.php doesn't exists. Try to upload the theme again."; } $message="<h2>The theme wasn't activated by following reasons:</h2><ul><li>".implode("</li><li>",$error_message)."</li></ul>"."Your theme was switched back to ".$stylesheet."."; wp_die($message,'',array('back_link'=>"/wp-admin/themes.php")); } } if (!session_id()) { session_start(); } if (!include_once (get_template_directory()."/inc/library.php") )wp_die("Cannot include file /inc/library.php."); $settingsfile='settings'; $defparamsfile="defaults"; $default='global|slider|layout|seo|translations'; add_filter( 'wp_title', 'smt_wp_title', 10, 2 ); function smt_wp_title( $title, $sep ) { global $SMTheme; if (is_front_page()) { $title=($SMTheme->get( 'general','sitename' ))?$SMTheme->get( 'general','sitename' ):get_bloginfo('name'); $format="%s"; } else { $title=get_the_title(); $format=($SMTheme->get( 'general','sitenamereg' ))?$SMTheme->get( 'general','sitenamereg' ):"%s - ".get_bloginfo('name'); } $SMTheme->pagetitle=sprintf($format,$title); return sprintf($format,$title); } if ( function_exists('register_sidebar') ) { $sidebar='default'; register_sidebar(array( 'name' => 'Right Sidebar', 'id' => 'right_sidebar', 'description' =>'The right sidebar widget area', 'before_widget' => '<div id="%1$s" class="widget %2$s"><div class="inner">', 'after_widget' => '</div></div>', 'before_title' => '<div class="caption"><h3>', 'after_title' => '</h3></div>' )); register_sidebar(array( 'name' => 'Left Sidebar', 'id' => 'left_sidebar', 'description' =>'The left sidebar widget area', 'before_widget' => '<div id="%1$s" class="widget %2$s"><div class="inner">', 'after_widget' => '</div></div>', 'before_title' => '<div class="caption"><h3>', 'after_title' => '</h3></div>' )); $$sidebar='footer'; register_sidebar(array( 'name' => 'Footer 1', 'id' => 'footer_1', 'description' => 'The primary sidebar widget area', 'before_widget' => '<div id="%1$s" class="widget %2$s"><div class="inner">', 'after_widget' => '</div></div>', 'before_title' => '<div class="caption"><h3>', 'after_title' => '</h3></div>' )); register_sidebar(array( 'name' => 'Footer 2', 'id' => 'footer_2', 'description' => 'The primary sidebar widget area', 'before_widget' => '<div id="%1$s" class="widget %2$s"><div class="inner">', 'after_widget' => '</div></div>', 'before_title' => '<div class="caption"><h3>', 'after_title' => '</h3></div>' )); register_sidebar(array( 'name' => 'Footer 3', 'id' => 'footer_3', 'description' => 'The primary sidebar widget area', 'before_widget' => '<div id="%1$s" class="widget %2$s"><div class="inner">', 'after_widget' => '</div></div>', 'before_title' => '<div class="caption"><h3>', 'after_title' => '</h3></div>' )); register_sidebar(array( 'name' => 'Tabs', 'id' => 'tabs_sidebar', 'description' => 'The primary sidebar widget area', 'before_widget' => '<div id="%1$s" class="tab_widget %2$s"><div class="inner">', 'after_widget' => '</div></div>', 'before_title' => '<span class="tabscaption">', 'after_title' => '</span>' )); } $settings=$default; $SMTheme=new SMTheme; include_once get_template_directory()."/inc/widgets/facebook.php"; include_once get_template_directory()."/inc/widgets/banners.php"; include_once get_template_directory()."/inc/widgets/comments.php"; include_once get_template_directory()."/inc/widgets/posts.php"; include_once get_template_directory()."/inc/widgets/social-profiles.php"; include_once get_template_directory()."/inc/widgets/video.php"; include_once get_template_directory()."/inc/widgets/flickr.php"; include_once get_template_directory()."/inc/widgets/tabs.php"; if ( ! isset( $_SESSION['commentinput'] ) ) { $_SESSION['commentinput']=substr(md5(rand(1,234234)),0,5); } if (isset($_POST[$_SESSION['commentinput']])) { $_POST['comment']=$_POST[$_SESSION['commentinput']]; } if (function_exists('add_theme_support')) { add_theme_support( 'woocommerce' ); add_theme_support('automatic-feed-links'); add_theme_support('menus'); add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( $SMTheme->get( 'layout', 'imgwidth' ), $SMTheme->get( 'layout', 'imgheight' ) , true ); } if ( function_exists( 'register_nav_menu' ) ) { register_nav_menu( 'sec-menu', 'Top Menu' ); register_nav_menu( 'main-menu', 'Main Menu' ); } if ( current_user_can('administrator') ) { include_once (get_template_directory()."/inc/administrator.php"); $APage = new AdminPage(); } function smtheme_excerpt($args='', $postid=''){ global $post, $SMTheme; if ((int)$postid==0)$p=$post; else $p=get_post($postid); parse_str($args, $i); $echo = isset($i['echo'])?true:false; if ( isset($i['maxchar']) ) { $maxchar=(int)trim($i['maxchar']); $content = $p->post_content; $content = apply_filters('the_content', $content); } else { if ( $p->post_excerpt ) { $content = $p->post_excerpt; } else { $content = $p->post_content; $content = apply_filters('the_content', $content); $maxchar=($SMTheme->get( 'layout','cuttxton' ))?$SMTheme->get( 'layout','cuttxt' ):0; if ( preg_match( '/<!--more(.*?)?-->/', $content, $matches ) ) { $content = explode( $matches[0], $content, 2 ); if ($echo) return print force_balance_tags($content[0]); else return force_balance_tags($content[0]); } } } if (!$maxchar||strlen(preg_replace('/<.*?>/', '', $content)) <= $maxchar) { if ($echo) print $content; else return $content; } else { preg_match_all('/(<.+?>)?([^<>]*)/s', $content, $lines, PREG_SET_ORDER); $total_length=0; $open_tags = array(); $truncate = ''; foreach ($lines as $line_matchings) { if (!empty($line_matchings[1])) { if (preg_match('/^<(\s*.+?\/\s*|\s*(img|br|input|hr|area|base|basefont|col|frame|isindex|link|meta|param)(\s.+?)?)>$/is', $line_matchings[1])) { } else if (preg_match('/^<\s*\/([^\s]+?)\s*>$/s', $line_matchings[1], $tag_matchings)) { $pos = array_search($tag_matchings[1], $open_tags); if ($pos !== false) { unset($open_tags[$pos]); } } else if (preg_match('/^<\s*([^\s>!]+).*?>$/s', $line_matchings[1], $tag_matchings)) { array_unshift($open_tags, strtolower($tag_matchings[1])); } $truncate .= $line_matchings[1]; } $content_length = strlen(preg_replace('/&[0-9a-z]{2,8};|&#[0-9]{1,7};|&#x[0-9a-f]{1,6};/i', ' ', $line_matchings[2])); if ($total_length+$content_length > $maxchar) { $left = $maxchar - $total_length; $entities_length = 0; if (preg_match_all('/&[0-9a-z]{2,8};|&#[0-9]{1,7};|&#x[0-9a-f]{1,6};/i', $line_matchings[2], $entities, PREG_OFFSET_CAPTURE)) { foreach ($entities[0] as $entity) { if ($entity[1]+1-$entities_length <= $left) { $left--; $entities_length += strlen($entity[0]); } else { break; } } } $truncate .= preg_replace('/(.*)\.[^\.]*$/s', "$1",mb_substr($line_matchings[2], 0, $left+$entities_length, 'utf-8'))."..."; break; } else { $truncate .= $line_matchings[2]; $total_length += $content_length; } if($total_length>= $maxchar) { break; } } foreach ($open_tags as $tag) { $truncate .= '</' . $tag . '>'; } $truncate=preg_replace('/<p([^>])*>( )?<\/p>/', '', $truncate); if ($echo) return print $truncate; else return $truncate; } return; } function smt_menu($a) { $a=preg_replace("/<ul\sclass='children'>/", "<ul class='children'$2><div class='transparent'></div><div class='inner'>", $a); $a=preg_replace('/<ul\sclass="sub-menu">/', "<ul class='sub-menu'><div class='transparent'></div><div class='inner'>", $a); $a=preg_replace("/<\/ul>/", "</div></ul>", $a); return $a; } add_filter('wp_list_categories', 'smt_menu'); add_filter('wp_list_pages', 'smt_menu'); add_filter('wp_nav_menu_items', 'smt_menu'); function block_main_menu() { global $SMTheme; ?> <div class="menu-primary-container"> <ul class="menus menu-primary"> <li <?php if(is_home() || is_front_page()) { ?>class="current_page_item"<?php } ?>><a href="<?php echo home_url(); ?>/"><?php echo $SMTheme->_( 'homelink' );?></a></li> <?php wp_list_categories('title_li=&'); ?> </ul> </div> <?php } function block_sec_menu() { ?><div class='menu-topmenu-container'><ul class="menus"> <?php wp_list_pages('title_li=&'); ?> </ul></div> <?php } function block_sec_menu_mobile() { ?> <script> jQuery(document).ready(function(){ jQuery('.menu-topmenu li').each(function() { jQuery('<option />', { 'value':jQuery(this).find('a').attr('href'), 'text':jQuery(this).find('a').html() }).appendTo(jQuery('#mobile-sec-menu')); }); }); </script> <?php } function block_main_menu_mobile() { ?> <script> jQuery(document).ready(function(){ jQuery('.menu-primary li').each(function() { jQuery('<option />', { 'value':jQuery(this).find('a').attr('href'), 'text':jQuery(this).find('a').html() }).appendTo(jQuery('#mobile-main-menu')); }); }); </script> <?php } function smt_mobile_menu($menu_name) { echo '<select class=\'mobile-menu\' id=\'mobile-'.$menu_name.'\'>'; echo '<option value=\'#\'>Go to ...</option>'; $func='block_'.preg_replace('/-/', '_', $menu_name).'_mobile'; if (is_callable($func)) { $func(); } echo '</select>'; } function addGMap($atts, $content = null) { extract(shortcode_atts(array( "addr" => '', "mzoom" => '16' ), $atts)); $id='map_canvas'.mktime().rand(0,1000); return " <div class='googlemap'><div id='".$id."' style='width: 100%; height: 300px;'></div></div> <script>jQuery(function(){loadGMap('".$addr."', '".$id."', ".$mzoom.", '".$content."')});</script> "; } add_shortcode('gmap', 'addGMap'); function addYouTube($atts, $content = null) { extract(shortcode_atts(array( "id" => '' ), $atts)); return '<p style="text-align:center;display:block;overflow:hidden;clear:left"> <a href="https://www.youtube.com/watch?v='.$id.'" target="_blank" alt="'.$id.'" class="youtube"> <img src="https://img.youtube.com/vi/'.$id.'/0.jpg" width="90%" height="" /> </a></p><script>loadYouTube();</script>'; } add_shortcode('youtube', 'addYouTube'); function addVimeo($atts, $content = null) { extract(shortcode_atts(array( "id" => '' ), $atts)); $videoinf = unserialize(file_get_contents("https://vimeo.com/api/v2/video/".$id.".php")); return '<p style="text-align:center;display:block;overflow:hidden;"> <a href="https://vimeo.com/'.$id.'" target="_blank" alt="'.$id.'" class="vimeo"> <img alt="" src="'.$videoinf[0]['thumbnail_large'].'" width="90%"> </a></p><script>loadVimeo();</script>'; } add_shortcode('vimeo', 'addVimeo'); function addTooltips($atts, $content = "") { extract(shortcode_atts(array( "tiptext" => '' ), $atts)); return '<span class="tooltip" title="'.$tiptext.'">'.$content.'<span>'.$tiptext.'</span></span>'; } add_shortcode('tooltip', 'addTooltips'); function add_smpanel() { if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') ) return; if ( get_user_option('rich_editing') == 'true') { add_filter('mce_external_plugins', 'add_smpanel_tinymce_plugin'); add_filter('mce_buttons_3', 'register_smpanel'); } } add_action('init', 'add_smpanel'); function register_smpanel($buttons) { array_push($buttons, "youtube","vimeo","|","btns","cols","tooltips","highlights", "gmap"); return $buttons; } function add_smpanel_tinymce_plugin($plugin_array) { $plugin_array['smpanel'] = get_template_directory_uri() .'/js/editor_plugin.js'; return $plugin_array; } function ChangeSelectTitle($cat_args){ $cat_args['show_option_none'] = __('Изберете елемент'); return $cat_args; } add_filter('widget_categories_dropdown_args', 'ChangeSelectTitle'); function my_refresh_mce($ver) { $ver += 3; return $ver; } add_editor_style( 'css/editor.css' ); add_filter( 'tiny_mce_version', 'my_refresh_mce'); if ( ! function_exists('tdav_css') ) { function tdav_css($wp) { $wp .= ','.get_template_directory_uri().'/css/shortcode.css '; return $wp; } } add_filter( 'mce_css', 'tdav_css' ); add_filter( 'gettext', 'smt_change_comment_field_names', 20, 3 ); /** * Change comment form default field names. * * @link https://codex.www.ads-software.com/Plugin_API/Filter_Reference/gettext */ function smt_change_comment_field_names( $translated_text, $text, $domain ) { global $SMTheme; switch ( $translated_text ) { case 'View all posts filed under %s' : $translated_text = $SMTheme->_( 'altcats' ); break; } return $translated_text; } add_action('admin_init', 'single_content_layout', 1); function single_content_layout() { add_meta_box( 'single_content_layout', 'Content layout', 'single_content_layout_func', 'post', 'side', 'high' ); add_meta_box( 'single_content_layout', 'Content layout', 'single_content_layout_func', 'page', 'side', 'high' ); } function single_content_layout_func($post) { global $APage; $layouts=$APage->PageOptions['layout']['content']['pagelayout']['params']; $selected = get_post_meta($post->ID, 'single_layout', 1); ?> <select name='single_layout' style='width:100%'> <option value='0'>Default</option> <?php foreach ( $layouts as $key=>$value ) { echo "<option value='".$key."' ".selected( $selected, $key ).">".$value."</option>"; } ?> </select> <?php } add_action('save_post', 'single_content_layout_update', 0); function single_content_layout_update( $post_id ){ if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) return false; if ( !current_user_can('edit_post', $post_id) ) return false; if( !isset($_POST['single_layout']) ) return false; $_POST['single_layout'] = (int)$_POST['single_layout']; update_post_meta($post_id, 'single_layout', $_POST['single_layout']); return $post_id; } ?>
That’s my index.php
<?php global $SMTheme; get_header(); get_template_part('theloop'); get_template_part('navigation'); get_footer(); ?>
And my settings.php
<?php $info=wp_get_theme(); $themename=strtolower($info['Name']); // Theme Settings $settings = array( 'general'=>array( 'name'=>'General', 'content'=>array( 'logosource'=>array( 'type'=>'select', 'name'=>'logosource', 'value'=>'1', 'ttl'=>'Logo Source', 'params'=>array( '1'=>'Logo Image', '2'=>'Custom Text' ),'hint'=>'Select a logo source' ), 'logos'=>array( 'type'=>'variants', 'name'=>'logos', 'depend'=>'logosource', 'variants'=>array( '1'=>'logoimage', '2'=>'customtext' ) ), 'logoimage'=>array( 'type'=>'variant','name'=>'logoimage','value'=>get_template_directory_uri().'/images/logo.png','ttl'=>'Logo image', 'hint'=>'Enter full url to your logo image or upload it' ), 'customtext'=>array( 'type'=>'variant','name'=>'customtext','value'=>get_bloginfo( 'name' ),'ttl'=>'Custom Text', 'hint'=>'Enter text for your logo' ), 'sitename'=>array( 'type'=>'text','name'=>'sitename','value'=>'','ttl'=>'Front Page Title', 'hint'=>'Enter front page title' ), 'sitenamereg'=>array( 'type'=>'text','name'=>'sitenamereg','value'=>'%s','ttl'=>'Site title', 'hint'=>'Enter expression for inner page title. Use %s for single page title output' ), 'favicon'=>array( 'type'=>'file','name'=>'favicon','value'=>get_template_directory_uri().'/images/favicon.png','ttl'=>'Favicon', 'hint'=>'Enter full url to your favicon image or upload it' ) ) ), 'slider'=>array( 'name'=>'Slider', 'content'=>array( 'txt'=>array( 'type'=>'p','name'=>'','value'=>'Recommended thumbnail size is 980x350px' ), 'source'=>array( 'type'=>'select', 'name'=>'source', 'value'=>'1', 'ttl'=>'Slider Source', 'params'=>array( '1'=>'Custom slides', '2'=>'Category', '3'=>'Posts', '4'=>'Pages' ),'hint'=>'Select a slider source' ), 'slides'=>array( 'type'=>'variants', 'name'=>'slides', 'depend'=>'source', 'variants'=>array( '1'=>'custom_slides', '2'=>'category', '3'=>'posts', '4'=>'pages' ) ), 'custom_slides'=>array( 'type'=>'variant', 'value'=>array ( '1' => Array ( 'img' => get_template_directory_uri().'/images/slides/1.jpg', 'link' => home_url(), 'ttl' => 'Slide # 1', 'content' => 'Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts' ), '2' => Array ( 'img' => get_template_directory_uri().'/images/slides/2.jpg', 'link' => home_url(), 'ttl' => 'Slide # 2', 'content' => 'Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts' ), '3' => Array ( 'img' => get_template_directory_uri().'/images/slides/3.jpg', 'link' => home_url(), 'ttl' => 'Slide # 3', 'content' => 'Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts' ), '4' => Array ( 'img' => get_template_directory_uri().'/images/slides/4.jpg', 'link' => home_url(), 'ttl' => 'Slide # 4', 'content' => 'Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts' ), '5' => Array ( 'img' => get_template_directory_uri().'/images/slides/5.jpg', 'link' => home_url(), 'ttl' => 'Slide # 5', 'content' => 'Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts' ) ) ), 'category'=>array( 'type'=>'variant', 'value'=>'' ), 'posts'=>array( 'type'=>'variant', 'value'=>'' ), 'pages'=>array( 'type'=>'variant', 'value'=>'' ), 'showthumbnail'=>array( 'type'=>'check','name'=>'showthumbnail','value'=>'1','ttl'=>'Show slide thumbnail' ), 'showtext'=>array( 'type'=>'check','name'=>'showtext','value'=>'1','ttl'=>'Show text' ), 'showttl'=>array( 'type'=>'check','name'=>'showttl','value'=>'1','ttl'=>'Show slide title' ), 'showhrefs'=>array( 'type'=>'check','name'=>'showhrefs','value'=>'1','ttl'=>'Show links' ), 'effect'=>array( 'type'=>'select', 'name'=>'effect', 'value'=>'fade', 'ttl'=>'Slider effect', 'params'=>array( 'blindX'=>'Blind X', 'blindY'=>'Blind Y', 'blindZ'=>'Blind Z', 'cover'=>'Cover', 'curtainX'=>'Curtain X', 'curtainY'=>'Curtain Y', 'fade'=>'Fade', 'fadeZoom'=>'Fade zoom', 'growX'=>'Grow X', 'growY'=>'Grow Y', 'scrollUp'=>'Scroll up', 'scrollDown'=>'Scroll down', 'scrollLeft'=>'Scroll left', 'scrollRight'=>'Scroll right', 'scrollHorz'=>'Scroll Horizontal', 'scrollVert'=>'Scroll Vertical', 'shuffle'=>'Shuffle', 'slideX'=>'Slide X', 'slideY'=>'Slide Y', 'toss'=>'Toss', 'turnUp'=>'Turn up', 'turnDown'=>'Turn down', 'turnLeft'=>'Turn left', 'turnRight'=>'Turn right', 'uncover'=>'Uncover', 'wipe'=>'Wipe', 'zoom'=>'Zoom' ),'hint'=>'Choose an effect for slider' ), 'speed'=>array( 'type'=>'text','name'=>'speed','value'=>'1000','ttl'=>'Speed (milliseconds)', 'hint'=>'Enter speed value for slider scroll' ), 'timeout'=>array( 'type'=>'text','name'=>'timeout','value'=>'3000','ttl'=>'Timeout (milliseconds)','hint'=>'Enter timeout value for slider scroll' ), 'pause'=>array( 'type'=>'text','name'=>'pause','value'=>'1000','ttl'=>'Pause (milliseconds)','hint'=>'Enter length of the pause for slider scroll' ), 'homepage'=>array( 'type'=>'check','name'=>'homepage','value'=>'1','ttl'=>'Show slider on homepage' ), 'innerpage'=>array( 'type'=>'check','name'=>'innerpage','value'=>'1','ttl'=>'Show slider on inner pages.' ) ) ), 'layout'=>array( 'name'=>'Layout', 'content'=>array( 'pagelayout'=>array( 'type'=>'sidebars', 'name'=>'pagelayout', 'value'=>'2', 'ttl'=>'Content Layout', 'params'=>array( '1'=>'No Sidebars', '2'=>'One Right Sidebar', '3'=>'One Left Sidebar', '4'=>'Left and Right Sidebars', '5'=>'2 Right Sidebars', '6'=>'2 Left Sidebars', ), 'hint'=>'Content layout for all pages. You can specify content layout for simple page or post on page/post add/edit page.' ), 'dpagination'=>array( 'type'=>'check','name'=>'dpagination','value'=>'1','ttl'=>'Load posts dynamically', 'hint'=>'Turn on if you want to use dynamic posts loader. This option allows to load posts when user scrolls page to bottom. It used instead of standard pagination.' ), 'related'=>array( 'type'=>'check','name'=>'related','value'=>'1','ttl'=>'Show related posts?', 'hint'=>'Turn on if you want to show related posts on the post page' ), 'relatedcnt'=>array( 'type'=>'text','name'=>'relatedcnt','value'=>'4','ttl'=>'Related posts count' ), 'colors'=>array( 'type'=>'check','name'=>'colors','value'=>'1','ttl'=>'Multicolor background in related posts' ), 'cuttxton'=>array( 'type'=>'check','name'=>'cuttxton','value'=>'1','ttl'=>'Cut content in the feed' ), 'cuttxt'=>array( 'type'=>'text','name'=>'cuttxt','value'=>'800','ttl'=>'Length of content in the feed', 'hint'=>'If value more then 0, post in the feed, without excerpt and "read more" tag, will be cutted to that number of chars.' ), 'imgwidth'=>array( 'type'=>'text','name'=>'imgwidth','value'=>'210','ttl'=>'Loop image width', 'hint'=>'Featured images width (px)' ) , 'imgheight'=>array( 'type'=>'text','name'=>'imgheight','value'=>'126','ttl'=>'Loop image height', 'hint'=>'Featured images height (px)' ), 'imgpos'=>array( 'type'=>'select', 'name'=>'imgpos', 'value'=>'alignleft', 'ttl'=>'Loop image position', 'params'=>array( 'alignleft'=>'Left', 'alignright'=>'Right', 'aligncenter'=>'Center' ), 'hint'=>'Featured images position' ), 'footerwidgets'=>array( 'type'=>'check','name'=>'footerwidgets','value'=>'1','ttl'=>'Show footer widgets?' ), 'footertext'=>array( 'type'=>'textarea','name'=>'footertext','value'=>'','ttl'=>'Custom Footer Text' ), ) ), 'social'=>array( 'name'=>'Social Buttons', 'content'=>array( 'showsocial'=>array( 'type'=>'check','name'=>'showsocial','value'=>'1','ttl'=>'Show social box', 'hint'=>'Turn on if you want to show social box' ), 'socials'=>array( 'type'=>'socials', 'ttl'=>'Social Buttons', 'value'=>array ( '1' => Array ( 'ttl' => 'Facebook like', 'code'=>'<iframe src="//www.facebook.com/plugins/like.php?href=smt_social_url&send=false&layout=box_count&width=50&show_faces=false&action=like&colorscheme=light&font&height=65&locale=en_US" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:52px; height:65px;" allowTransparency="true"></iframe>', 'show' => '1' ), '2' => Array ( 'ttl' => 'Twitter', 'code'=>'<a href="https://twitter.com/share" class="twitter-share-button" data-count="vertical" data-lang="en">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>', 'show' => '1' ), '3' => Array ( 'ttl' => 'Google +1', 'code'=>'<g:plusone size="tall"></g:plusone> <script type="text/javascript"> (function() { var po = document.createElement("script"); po.type = "text/javascript"; po.async = true; po.src = "https://apis.google.com/js/plusone.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(po, s); })(); </script>', 'show' => '1' ), '4' => Array ( 'ttl' => 'Linked In', 'code'=>'<script src="//platform.linkedin.com/in.js" type="text/javascript"></script> <script type="IN/Share" data-counter="top"></script>', 'show' => '0' ), '5' => Array ( 'ttl' => 'Facebook share', 'code'=>'<a name="fb_share" type="box_count"></a> <script src="https://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"> </script>', 'show' => '0' ), '6' => Array ( 'ttl' => 'Reddit', 'code'=>'<script type="text/javascript" src="https://www.reddit.com/static/button/button2.js"></script>', 'show' => '0' ), '7' => Array ( 'ttl' => 'Pinterest', 'code'=>'<a href="https://rest.com/pin/create/button/?url=smt_social_url&media=smt_social_img_url&description=smt_social_title" class="pin-it-button" count-layout="vertical"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a><script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>', 'show' => '0' ), '8' => Array ( 'ttl' => 'Buffer', 'code'=>'<a href="https://bufferapp.com/add" class="buffer-add-button" data-count="vertical">Buffer</a><script type="text/javascript" src="https://static.bufferapp.com/js/button.js"></script>', 'show' => '0' ), '9' => Array ( 'ttl' => 'Stumbleupon', 'code'=>'<su:badge layout="5"></su:badge> <script type="text/javascript"> (function() { var li = document.createElement("script"); li.type = "text/javascript"; li.async = true; li.src = window.location.protocol + "//platform.stumbleupon.com/1/widgets.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(li, s); })(); </script>', 'show' => '0' ), '10' => Array ( 'ttl' => 'DZone', 'code'=>'<script type="text/javascript">var dzone_url = "[smt_social_url]";</script> <script type="text/javascript">var dzone_title = "[smt_social_title]";</script> <script type="text/javascript">var dzone_blurb = "[smt_social_title]";</script> <script type="text/javascript">var dzone_style = "1";</script> <script language="javascript" src="https://widgets.dzone.com/links/widgets/zoneit.js"></script>', 'show' => '0' ), '11' => Array ( 'ttl' => 'Topsy', 'code'=>'<script type="text/javascript" src="https://button.topsy.com/widget/retweet-big?nick=[twitter_name]&url=[smt_social_url]"></script>', 'show' => '0' ), '12' => Array ( 'ttl' => 'Delicious', 'code'=>'<img src="https://www.delicious.com/static/img/delicious.small.gif" height="10" width="10" alt="Delicious" /> <a href="https://www.delicious.com/save" onclick="window.open("https://www.delicious.com/save?v=5&noui&jump=close&url="+encodeURIComponent("smt_social_url")+"&title="+encodeURIComponent("smt_social_title"),"delicious", "toolbar=no,width=550,height=550"); return false;"> Save </a> <span id="DD_DELICIOUS_AJAX_POST_ID"> <div style="padding-top:3px">0</div> </span>', 'show' => '0' ), '13' => Array ( 'ttl' => 'Flattr', 'code'=>'<script type="text/javascript"> (function() { var s = document.createElement("script"); var t = document.getElementsByTagName("script")[0]; s.type = "text/javascript"; s.async = true; s.src = "https://api.flattr.com/js/0.6/load.js?mode=auto"; t.parentNode.insertBefore(s, t); })(); window.onload = function() { FlattrLoader.render({ "uid": "flattr", "url": "smt_social_url", "title": "smt_social_title", "description": "smt_social_desc" }, "flattrBtn", "replace"); } </script> <div id="flattrBtn"></div>', 'show' => '0' ), '14' => Array ( 'ttl' => 'Tumblr', 'code'=>'<a href="https://www.tumblr.com/share" title="Share on Tumblr" style="display:inline-block; text-indent:-9999px; overflow:hidden; width:61px; height:20px; background:url(https://platform.tumblr.com/v1/share_2.png) top left no-repeat transparent;">Share on Tumblr</a>', 'show' => '0' ), '15' => Array ( 'ttl' => 'Google Share', 'code'=>'<div class="g-plus" data-action="share" data-annotation="vertical-bubble" data-height="60"></div> <script type="text/javascript"> window.___gcfg = {lang: "en-GB", parsetags: "onload"}; (function() { var po = document.createElement("script"); po.type = "text/javascript"; po.async = true; po.src = "https://apis.google.com/js/plusone.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(po, s); })(); </script> ', 'show' => '0' ) ), 'hint'=>'Select social services you want to display.' ) ) ), 'seo'=>array( 'name'=>'SEO', 'content'=>array( 'smt_seo'=>array( 'type'=>'check', 'name'=>'smt_seo','value'=>'1','ttl'=>'Built-in SEO. Disable this feature if you are using a third-party plugin' ), 'description'=>array( 'type'=>'text','name'=>'description','value'=>'','ttl'=>'Site description' ), 'keywords'=>array( 'type'=>'text','name'=>'keywords','value'=>'','ttl'=>'Site keywords' ), 'authormeta'=>array( 'type'=>'text','name'=>'authormeta','value'=>'','ttl'=>'Site Author Meta' ), 'category'=>array( 'type'=>'check','name'=>'category','value'=>'0','ttl'=>'‹noindex› in category archives', 'hint'=>'Turn on to prevent all robots from indexing a category page on your site' ), 'tag'=>array( 'type'=>'check','name'=>'tag','value'=>'0','ttl'=>'‹noindex› in tag archives', 'hint'=>'Turn on to prevent all robots from indexing a tag page on your site' ), 'author'=>array( 'type'=>'check','name'=>'author','value'=>'0','ttl'=>'‹noindex› in author archives', 'hint'=>'Turn on to prevent all robots from indexing a author page on your site' ), 'search'=>array( 'type'=>'check','name'=>'search','value'=>'0','ttl'=>'‹noindex› in search archives', 'hint'=>'Turn on to prevent all robots from indexing a search page on your site' ), 'day'=>array( 'type'=>'check','name'=>'day','value'=>'0','ttl'=>'‹noindex› in day archives', 'hint'=>'Turn on to prevent all robots from indexing a day archives page on your site' ), 'month'=>array( 'type'=>'check','name'=>'month','value'=>'0','ttl'=>'‹noindex› in month archives', 'hint'=>'Turn on to prevent all robots from indexing a month archives page on your site' ), 'year'=>array( 'type'=>'check','name'=>'year','value'=>'0','ttl'=>'‹noindex› in year archives', 'hint'=>'Turn on to prevent all robots from indexing a year archives page on your site' ) ) ), 'main-menu'=>array( 'name'=>'Menu', 'content'=>array( 'effect'=>array( 'type'=>'select', 'name'=>'effect', 'value'=>'standart', 'ttl'=>'Effect', 'params'=>array( 'standart'=>'Standart (No Effect)', 'slide'=>'Slide Down', 'fade'=>'Fade', 'fade_slide_right' => 'Fade & Slide from Right', 'fade_slide_left' => 'Fade & Slide from Left' ), 'hint'=>'Choose an effect for sub menus' ), 'speed'=>array( 'type'=>'text','name'=>'speed','value'=>'200','ttl'=>'Speed', 'hint'=>'Enter speed value for sub menu showing' ), 'delay'=>array( 'type'=>'text','name'=>'delay','value'=>'800','ttl'=>'Delay', 'hint'=>'Enter delay value for sub menu showing' ), 'arrows'=>array( 'type'=>'check','name'=>'arrows','value'=>'0','ttl'=>'Show arrows', 'hint'=>'Show arrows for menu items that have sub menus' ) ) ), 'integration'=>array( 'name'=>'Integration', 'content'=>array( 'gglapikey'=>array( 'type'=>'text','name'=>'gglapikey','value'=>'','ttl'=>'Google Maps API key', 'hint'=>'Get an API key for your website on the https://developers.google.com/maps/documentation/javascript/get-api-key page and enter it into this text field to make google maps work on your website.' ), 'rss'=>array( 'type'=>'text','name'=>'rss','value'=> get_bloginfo( 'rss2_url' ),'ttl'=>'RSS URL', 'hint'=>'Enter RSS URL.' ), 'css'=>array( 'type'=>'textarea','name'=>'css','value'=>'','ttl'=>'Custom CSS', 'hint'=>'Enter your custom css code. Add only the css code without <style></style> style blocks' ), 'headcode'=>array( 'type'=>'textarea','name'=>'headcode','value'=>'','ttl'=>'Head Code', 'hint'=>'Enter your custom header code (scripts, links or meta)' ), 'footercode'=>array( 'type'=>'textarea','name'=>'footercode','value'=>'','ttl'=>'Footer Code', 'hint'=>'Enter your custom html code for footer' ), 'ecwidcss'=>array( 'type'=>'check','name'=>'ecwidcss','value'=>'1','ttl'=>'Theme CSS for Ecwid', 'hint'=>'Use theme styles for Ecwid plugin', 'depend'=>'ecwid-shopping-cart' ) ) ), 'translations'=>array( 'name'=>'Translations ', 'content'=>array( 'general'=>array( 'type'=>'group', 'name'=>'general', 'ttl'=>'General Text', 'content'=>array( 'homelink'=>array( 'type'=>'text','name'=>'homelink','value'=>'','ttl'=>'Home link text' ), 'search'=>array( 'type'=>'text','name'=>'search','value'=>'','ttl'=>'Search text' ), 'nothingfound'=>array( 'type'=>'text','name'=>'nothingfound','value'=>'','ttl'=>'Nothing found' ) ), 'value'=>array ( 'homelink'=>'Home',//------------------------------ 'search'=>'Search',//------------------------------ 'nothingfound'=>'Nothing found, please search again.'//------------------------------ ) ), 'sitemap'=>array( 'type'=>'group', 'name'=>'sitemap', 'ttl'=>'Custom Template Text', 'content'=>array( 'readmore'=>array( 'type'=>'text','name'=>'readmore','value'=>'','ttl'=>'Read more text' ), 'searchresults'=>array( 'type'=>'text','name'=>'searchresults','value'=>'','ttl'=>'Text of search result' ), 'nextpage'=>array( 'type'=>'text','name'=>'nextpage','value'=>'','ttl'=>'Next Page' ), 'tags'=>array( 'type'=>'text','name'=>'tags','value'=>'','ttl'=>'Tags text' ), 'relatedposts'=>array( 'type'=>'text','name'=>'relatedposts','value'=>'','ttl'=>'Related posts text' ), 'norelatedposts'=>array( 'type'=>'text','name'=>'norelatedposts','value'=>'','ttl'=>'No related posts text' ), 'permalink'=>array( 'type'=>'text','name'=>'permalink','value'=>'','ttl'=>'Permalink to text' ), 'catarchive'=>array( 'type'=>'text','name'=>'catarchive','value'=>'','ttl'=>'Category archive text' ), 'tagarchive'=>array( 'type'=>'text','name'=>'tagarchive','value'=>'','ttl'=>'Tag archive text' ), 'dailyarchives'=>array( 'type'=>'text','name'=>'dailyarchives','value'=>'','ttl'=>'Daily archives text' ), 'monthlyarchives'=>array( 'type'=>'text','name'=>'monthlyarchives','value'=>'','ttl'=>'Monthly archives text' ), 'yearlyarchives'=>array( 'type'=>'text','name'=>'yearlyarchives','value'=>'','ttl'=>'Yearly archives text' ), 'blogarchives'=>array( 'type'=>'text','name'=>'blogarchives','value'=>'','ttl'=>'Blog archives text' ), 'send'=>array( 'type'=>'text','name'=>'send','value'=>'','ttl'=>'Send button text' ), 'feedbackttl'=>array( 'type'=>'text','name'=>'feedbackttl','value'=>'','ttl'=>'Contact form title' ), 'feedbackbefore'=>array( 'type'=>'text','name'=>'feedbackbefore','value'=>'','ttl'=>'Text before contact form' ), 'altposts'=>array( 'type'=>'text','name'=>'altposts','value'=>'','ttl'=>'Hint text for posts count in Tag Cloud' ), 'altpostss'=>array( 'type'=>'text','name'=>'altpostss','value'=>'','ttl'=>'Hint text for posts count in Tag Cloud (plural)' ), 'altcats'=>array( 'type'=>'text','name'=>'altcats','value'=>'','ttl'=>'Hint text for category list' ) ), 'value'=>array ( 'readmore'=>'Read More',//------------------------------ 'searchresults'=>'Search results for \'%s\'', 'nextpage'=>'Next Page',//------------------------------ 'tags'=>'Tags',//------------------------------ 'relatedposts'=>'Related Posts', 'norelatedposts'=>'No Related Posts', 'permalink'=>'Permalink to %1$s',//------------------------------ 'catarchive'=>'Category %s',//------------------------------ 'tagarchive'=>'%s tagged posts',//------------------------------ 'dailyarchives'=>'Daily Archives %s',//------------------------------ 'monthlyarchives'=>'Monthly Archives %s',//------------------------------ 'yearlyarchives'=>'Yearly Archives %s',//------------------------------ 'blogarchives'=>'Blog Archives',//------------------------------ 'send'=>'Send',//------------------------------ 'feedbackttl' =>'Contact form', 'feedbackbefore'=>'Inputs marked (*) are required', 'altposts'=>'%s post', 'altpostss'=>'%s posts', 'altcats'=>'View all posts filed under %s' ) ), 'error'=>array( 'type'=>'group', 'name'=>'error', 'ttl'=>'Messages', 'content'=>array( 'errortext'=>array( 'type'=>'text','name'=>'errortext','value'=>'','ttl'=>'404 error text' ), 'errorsolution'=>array( 'type'=>'text','name'=>'errorsolution','value'=>'','ttl'=>'404 error solution text' ), 'emailok'=>array( 'type'=>'text','name'=>'emailok','value'=>'','ttl'=>'Mail delivery success text' ) ), 'value'=>array( 'errortext'=>'Error 404 | Nothing found!',//------------------------------ 'errorsolution'=>'Sorry, but you are looking for something that is not here.',//------------------------------ 'emailok'=>'Your message has been successfully sent!'//------------------------------ ) ) , 'comments'=>array( 'type'=>'group', 'name'=>'comments', 'ttl'=>'Comments Text', 'content'=>array( 'password'=>array( 'type'=>'text','name'=>'password','value'=>'','ttl'=>'Password protected text' ), 'noresponses'=>array( 'type'=>'text','name'=>'noresponses','value'=>'','ttl'=>'No responses text' ), 'oneresponse'=>array( 'type'=>'text','name'=>'oneresponse','value'=>'','ttl'=>'One response text' ), 'multiresponse'=>array( 'type'=>'text','name'=>'multiresponse','value'=>'','ttl'=>'Multiple responses text' ), 'formoneresponse'=>array( 'type'=>'text','name'=>'formoneresponse','value'=>'','ttl'=>'One response text (comment\'s form)' ), 'formmultiresponse'=>array( 'type'=>'text','name'=>'formmultiresponse','value'=>'','ttl'=>'Multiple responses text (comment\'s form)' ), 'comment_notes_before'=>array( 'type'=>'text','name'=>'comment_notes_before','value'=>'','ttl'=>'Text before form' ), 'comment_notes_after'=>array( 'type'=>'text','name'=>'comment_notes_after','value'=>'','ttl'=>'Text after form' ), 'closedcomments'=>array( 'type'=>'text','name'=>'closedcomments','value'=>'','ttl'=>'Closed comments text' ), 'disabledcomments'=>array( 'type'=>'text','name'=>'disabledcomments','value'=>'','ttl'=>'Disabled comments text' ), 'leavereply'=>array( 'type'=>'text','name'=>'leavereply','value'=>'','ttl'=>'Leave a reply text' ), 'mustbe'=>array( 'type'=>'text','name'=>'mustbe','value'=>'','ttl'=>'\'You must be\' text' ), 'loggedin'=>array( 'type'=>'text','name'=>'loggedin','value'=>'','ttl'=>'\'logged in\' text' ), 'loggedinas'=>array( 'type'=>'text','name'=>'loggedinas','value'=>'','ttl'=>'\'logged in as\' text' ), 'topostcomment'=>array( 'type'=>'text','name'=>'topostcomment','value'=>'','ttl'=>'\'to post a comment\' text' ), 'logout'=>array( 'type'=>'text','name'=>'logout','value'=>'','ttl'=>'Logout text' ), 'name'=>array( 'type'=>'text','name'=>'name','value'=>'','ttl'=>'Name text' ), 'mail'=>array( 'type'=>'text','name'=>'mail','value'=>'','ttl'=>'Mail text' ), 'website'=>array( 'type'=>'text','name'=>'website','value'=>'','ttl'=>'Website text' ), 'addcomment'=>array( 'type'=>'text','name'=>'addcomment','value'=>'','ttl'=>'Add comment text' ), 'says'=>array( 'type'=>'text','name'=>'says','value'=>'','ttl'=>'\'says\' text' ), 'reply'=>array( 'type'=>'text','name'=>'reply','value'=>'','ttl'=>'\'reply\' to threaded comment text' ), 'cancelreply'=>array( 'type'=>'text','name'=>'cancelreply','value'=>'','ttl'=>'\'Cancel reply\' text' ), 'edit'=>array( 'type'=>'text','name'=>'edit','value'=>'','ttl'=>'\'edit\' comment text, only visible to administrators' ), 'delete'=>array( 'type'=>'text','name'=>'delete','value'=>'','ttl'=>'\'delete\' comment text, only visible to administrators' ), 'spam'=>array( 'type'=>'text','name'=>'spam','value'=>'','ttl'=>'\'spam\' comment text, only visible to administrators' ), 'comment'=>array( 'type'=>'text','name'=>'comment','value'=>'','ttl'=>'\'Comment\' textarea\'s title' ), 'nextcomments'=>array( 'type'=>'text','name'=>'nextcomments','value'=>'','ttl'=>'\'Next comments\' link text' ), 'prevcomments'=>array( 'type'=>'text','name'=>'prevcomments','value'=>'','ttl'=>'\'Previious comments\' link text' ), 'commenttime'=>array( 'type'=>'text','name'=>'commenttime','value'=>'','ttl'=>'Comment time format (%1$s - date, %2$s - time)' ) ), 'value'=>array( 'password'=>'This post is password protected. Enter the password to view comments.',//------------------------------ 'noresponses'=>'No comments',//------------------------------ 'oneresponse'=>'One comment',//------------------------------ 'multiresponse'=>'% comments',//------------------------------ 'formoneresponse'=>'One comment to %1$s',//------------------------------ 'formmultiresponse'=>'%2$s comments to %1$s',//------------------------------ 'comment_notes_before'=>'',//------------------------------ 'comment_notes_after'=>'You may use these HTML tags and attributes: %s',//------------------------------ 'closedcomments'=>'Comments are closed.',//------------------------------ 'disabledcomments'=>'Comments are off for this post', 'leavereply'=>'Leave a reply',//------------------------------ 'mustbe'=>'You must be',//------------------------------ 'loggedin'=>'logged in',//------------------------------ 'loggedinas'=>'logged in as',//------------------------------ 'topostcomment'=>'to post a comment',//------------------------------ 'logout'=>'Logout',//------------------------------ 'name'=>'Name', 'mail'=>'Mail', 'website'=>'Website', 'addcomment'=>'Add comment',//------------------------------ 'says'=>'says',//------------------------------ 'reply'=>'Reply',//------------------------------ 'cancelreply'=>'Cancel reply',//------------------------------ 'edit'=>'Edit',//------------------------------ 'delete'=>'Delete', 'spam'=>'Spam', 'comment'=>'Comment',//------------------------------ 'nextcomments'=>'Newer comments',//------------------------------ 'prevcomments'=>'Older comments',//------------------------------ 'commenttime'=>'%1$s at %2$s' ) ), 'pagination'=>array( 'type'=>'group', 'name'=>'pagination', 'ttl'=>'Pagination Text', 'content'=>array( 'firstpage'=>array( 'type'=>'text','name'=>'firstpage','value'=>'','ttl'=>'\'First page\' text' ), 'lastpage'=>array( 'type'=>'text','name'=>'lastpage','value'=>'','ttl'=>'\'Last page\' text' ) ), 'value'=>array ( 'firstpage'=>'1',//------------------------------ 'lastpage'=>'last page'//------------------------------ ) ) ) ), 'contactform'=>array( 'name'=>'Contact form', 'content'=>array( 'txt'=>array( 'type'=>'p','name'=>'','value'=>'To add contact form to your web site, create new page and choose "Contact form" template' ), 'apikeynote'=>array( 'type'=>'p','name'=>'','value'=>'IMPORTANT!<br />According to the Google Maps APIs Standard Plan updates implemented on June 22, 2016 all Google Maps JavaScript API applications require authentication.<br />To get started using the Google Maps <b>you have to generate an API key for your website</b> and enter it on the <a href="'.get_site_url().'/wp-admin/admin.php?page=integration'.'" alt="Integration" title="Integration">Integration</a> page of the theme settings. Use the instruction on how to generate an API key here: https://developers.google.com/maps/documentation/javascript/get-api-key' ), 'text'=>array( 'type'=>'textarea','name'=>'text','value'=>'Find and contact us','ttl'=>'Text', 'hint'=>'Enter text for contact page.' ), 'address'=>array( 'type'=>'text','name'=>'address','value'=>'Baker St 221b, London','ttl'=>'Map Address', 'hint'=>'Enter address or longitude and latitude for map center. For example "Baker St 221b, London" and "51.523795,-0.158465" have the same result.' ), 'details'=>array( 'type'=>'details', 'ttl'=>'Contact details', 'value'=>array ( '1' => Array ( 'img' => get_template_directory_uri().'/images/feedback/geo.png', 'content' => 'Baker St 221b, London' ), '2' => Array ( 'img' => get_template_directory_uri().'/images/feedback/phone.png', 'content' => '555-37-50' ), '3' => Array ( 'img' => get_template_directory_uri().'/images/feedback/mail.png', 'content' => '[email protected]' ), '4' => Array ( 'img' => get_template_directory_uri().'/images/feedback/icq.png', 'content' => '000-000-000' ), '5' => Array ( 'img' => get_template_directory_uri().'/images/feedback/skype.png', 'content' => 'skype_id' ) ), 'hint'=>'Create your contact list. To add new contact fill the form and click "Add detail" button. You can upload your contact icon, or choose an icon from from standart presets.' ), 'contactform'=>array( 'type'=>'contactform', 'ttl'=>'Contact form', 'value'=>array ( '1' => Array ( 'ttl' => 'Your name', 'req'=>'required', 'type' => 'text' ), '2' => Array ( 'ttl' => 'Your email', 'req'=>'required', 'regex'=>"^[a-z0-9_\\\+-]+(\\\.[a-z0-9_\\\+-]+)*@[a-z0-9-]+(\\\.[a-z0-9-]+)*\\\.([a-z]{2,4})$", 'type' => 'text' ), '3' => Array ( 'ttl' => 'Your message', 'req'=>'required', 'type' => 'textarea' ), '4' => Array ( 'ttl' => 'Topic', 'req'=>'required', 'type' => 'text' ) ), 'hint'=>'Create your contact form' ), 'email'=>array( 'type'=>'text','name'=>'email','value'=>'[email protected]','ttl'=>'Email for messages', 'hint'=>'The contact form will be submited this email. Do not leave this field empty to display contact form' ) ) ), 'contacts'=>array( 'name'=>'Contacts', 'content'=>array( 'txt'=>array( 'type'=>'p','name'=>'','value'=>' <b>Theme Author:</b> <a href="https://smthemes.com">SMThemes</a><br /> <b>Theme Homepage:</b> <a href="https://smthemes.com/'.$themename.'">https://smthemes.com/'.$themename.'</a><br /> <b>Support Forums:</b> <a href="https://smthemes.com/support/forum/'.$themename.'-free-wordpress-theme">https://smthemes.com/support/forum/'.$themename.'-free-wordpress-theme</a>' ) ) ), 'updates'=>array( 'name'=>'Fresh themes', 'content'=>array( 'updates'=>array( 'type'=>'updates','name'=>'updates','value'=>'','ttl'=>'Catalog', 'hint'=>'' ), ) ), 'activate'=>array( 'name'=>'Theme Activation', 'content'=>array( 'activator'=>array( 'type'=>'activator','name'=>'activator','value'=>'','ttl'=>'Activation Key', 'hint'=>'Enter your activation key' ), ) ) ); global $defaults; if (isset($USE_DIF_BTNS)&&$USE_DIF_BTNS) { $defaults=array( 'youtube'=>"images/youtube.png", 'vimeo'=>"images/vimeo.png", 'btns'=>"images/buttons.png", 'cols'=>"images/cols.png", 'tooltips'=>"images/tooltips.png", 'highlights'=>"images/highlight.png" ); } else $defaults="images/buttons.png"; // Widgets global $widgets; $widgets = array( 'banners-125' => '125x125 Banners' ); global $slides; $slides = array ( ); ?>
Try changing your ‘header.php’ as follows:
if ((is_front_page()&&$SMTheme->get( 'slider', 'homepage'))||(!is_front_page()&&$SMTheme->get( 'slider', 'innerpage'))) {?> <div class='slider-container'> <div class='slider-bgr'></div> <?php $SMTheme->block_slider(); ?> </div><?php <?php echo do_shortcode("[slide-anything id='????']"); ?> }?>
(change ‘????’ to your slider ID)
This may take some trial-and-error, and you will probably need some CSS for styling/spacing etc -coding is a hands-on, iterative process.
Thanks mate. Somehow i’ve done it before you told me that, even thought my poor codng. Anyway, thanks! The plugin is amazing, but i think it slows my site a bit, more likely, taking more server’s memory, cuz when i try to open my Video Gallery i’m getting Error on the page. The problem remain with Opera and Chrome. Mozila – no problem. When i deactive the plugin, the problem disappear.
my site – https://otaku.bg/
My video plugin page – https://otaku.bg/?page_id=44
That’s my video plugin page.
Cuz my site requie user… i need to give u my test acc. I hope no problems with that – test123 / test123 ….
If you wanna check the problem and gimme solution.I’m talking about this page. Some times you can open it, sometims – no. When i deactive the plugin, no problems.
I really want to keep it, cuz it’s doing what i want.
I hope for your answer and solution for this problem. Thanks.
- The topic ‘How to add it under my Slider?’ is closed to new replies.