function sith_widgets_init()
{
    $before_widget = '<div id="%1$s" class="widget %2$s">';
    $after_widget = '</div></div><!-- .widget /-->';
    $before_title = '<div class="widget-top"><h4>';
    $after_title = '</h4><div class="stripe-line"></div></div>
						<div class="widget-container">';
    register_sidebar(array('name' => __('Primary Widget Area', 'sith'), 'id' => 'primary-widget-area', 'description' => __('The Primary widget area', 'sith'), 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
    if (class_exists('Woocommerce')) {
        register_sidebar(array('name' => __('Shop - For WooCommerce Pages', 'sith'), 'id' => 'shop-widget-area', 'description' => __('This widget area uses in the WooCommerce pages .', 'sith'), 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
    }
    //Custom Sidebars
    $sidebars = sith_get_option('sidebars');
    if ($sidebars) {
        foreach ($sidebars as $sidebar) {
            register_sidebar(array('name' => $sidebar, 'id' => sanitize_title($sidebar), 'before_widget' => $before_widget, 'after_widget' => $after_widget, 'before_title' => $before_title, 'after_title' => $after_title));
        }
    }
    ## Footer Widgets ------------------------------------------------------------
    $footer_before_widget = '<div id="%1$s" class="footer-widget %2$s">';
    $footer_after_widget = '</div></div><!-- .widget /-->';
    $footer_before_title = '<div class="footer-widget-top"><h4>';
    $footer_after_title = '</h4></div>
						<div class="footer-widget-container">';
    $footer_widgets = sith_get_option('footer_widgets');
    if ($footer_widgets != 'disable') {
        register_sidebar(array('name' => __('First Footer Widget Area', 'sith'), 'id' => 'first-footer-widget-area', 'description' => __('The first footer widget area', 'sith'), 'before_widget' => $footer_before_widget, 'after_widget' => $footer_after_widget, 'before_title' => $footer_before_title, 'after_title' => $footer_after_title));
        if ($footer_widgets == 'footer-2c' || $footer_widgets == 'narrow-wide-2c' || $footer_widgets == 'wide-narrow-2c' || $footer_widgets == 'footer-3c' || $footer_widgets == 'wide-left-3c' || $footer_widgets == 'wide-right-3c' || $footer_widgets == 'footer-4c') {
            register_sidebar(array('name' => __('Second Footer Widget Area', 'sith'), 'id' => 'second-footer-widget-area', 'description' => __('The Second footer widget area', 'sith'), 'before_widget' => $footer_before_widget, 'after_widget' => $footer_after_widget, 'before_title' => $footer_before_title, 'after_title' => $footer_after_title));
        }
        if ($footer_widgets == 'footer-3c' || $footer_widgets == 'wide-left-3c' || $footer_widgets == 'wide-right-3c' || $footer_widgets == 'footer-4c') {
            register_sidebar(array('name' => __('Third Footer Widget Area', 'sith'), 'id' => 'third-footer-widget-area', 'description' => __('The Third footer widget area', 'sith'), 'before_widget' => $footer_before_widget, 'after_widget' => $footer_after_widget, 'before_title' => $footer_before_title, 'after_title' => $footer_after_title));
        }
        if ($footer_widgets == 'footer-4c') {
            register_sidebar(array('name' => __('Fourth Footer Widget Area', 'sith'), 'id' => 'fourth-footer-widget-area', 'description' => __('The Fourth footer widget area', 'sith'), 'before_widget' => $footer_before_widget, 'after_widget' => $footer_after_widget, 'before_title' => $footer_before_title, 'after_title' => $footer_after_title));
        }
    }
}
Beispiel #2
0
             delete_option($option);
         }
     }
     update_option('sith_active', 3);
     echo '<script>location.reload();</script>';
     die;
 }
 if (get_option('sith_active') < 4) {
     $categories_obj = get_categories('hide_empty=0');
     foreach ($categories_obj as $pn_cat) {
         $category_id = $pn_cat->cat_ID;
         $cat_sidebar = sith_get_option('sidebar_cat_' . $category_id);
         $cat_slider = sith_get_option('slider_cat_' . $category_id);
         $cat_bg = sith_get_option('cat' . $category_id . '_background');
         $cat_full_bg = sith_get_option('cat' . $category_id . '_background_full');
         $cat_color = sith_get_option('cat_' . $category_id . '_color');
         $new_cat = array();
         $new_cat['cat_sidebar'] = $cat_sidebar;
         $new_cat['cat_slider'] = $cat_slider;
         $new_cat['cat_color'] = $cat_color;
         $new_cat['cat_background'] = $cat_bg;
         $new_cat['cat_background_full'] = $cat_full_bg;
         update_option("sith_cat_" . $category_id, $new_cat);
     }
     $theme_options = get_option('sith_options');
     $theme_options['post_og_cards'] = false;
     $theme_options['slider_caption'] = false;
     $theme_options['slider'] = true;
     $theme_options['slider_caption_length'] = 100;
     $theme_options['box_meta_score'] = true;
     $theme_options['box_meta_date'] = true;
Beispiel #3
0
    if (sith_get_option('post_cats')) {
        ?>
	<span class="pm-categories"><?php 
        $i = 0;
        foreach (get_the_category() as $cat) {
            echo '<a href="' . get_category_link($cat->cat_ID) . '">' . $cat->cat_name . '</a>';
            if (++$i == 1) {
                break;
            }
        }
        ?>
</span>
<?php 
    }
    ?>
	
<?php 
    if (sith_get_option('post_comments')) {
        ?>
<span class="pm-comments"><?php 
        comments_popup_link(__(lang_leave_a_comment), __(lang_one_comment), __('% ' . lang_comments));
        ?>
</span>
<?php 
    }
    edit_post_link(__($lang_edit), '<span class="right">', '</span>');
    ?>
</p>
<div class="clear"></div>
<?php 
}
Beispiel #4
0
    $lang_ago = sith_get_option('lang_ago');
}
if (sith_get_option('lang_recent')) {
    $lang_recent = sith_get_option('lang_recent');
}
if (sith_get_option('lang_popular')) {
    $lang_popular = sith_get_option('lang_popular');
}
if (sith_get_option('lang_tags')) {
    $lang_tags = sith_get_option('lang_tags');
}
if (sith_get_option('lang_addmenu')) {
    $lang_addmenu = sith_get_option('lang_addmenu');
}
if (sith_get_option('lang_mob_navigation')) {
    $lang_mob_navigation = sith_get_option('lang_mob_navigation');
}
define('lang_search', $lang_search);
//sith_get_option( 'lang_search' );endif;
define('lang_home', $lang_home);
//sith_get_option( 'lang_home' );endif;
define('lang_search_results_for', $lang_search_results_for);
//sith_get_option( 'lang_search_results_for' );endif;
define('lang_tag_archives', $lang_tag_archives);
//sith_get_option( 'lang_tag_archives' );endif;
define('lang_author_archives', $lang_author_archives);
//sith_get_option( 'lang_author_archives' );endif;
define('lang_not_found', $lang_not_found);
//sith_get_option( 'lang_not_found' );endif;
define('lang_not_found_msg', $lang_not_found_msg);
//sith_get_option( 'lang_not_found_msg' );endif;
Beispiel #5
0
					<textarea id="sith_footer_text" name="sith_options[footer_text]" style="width:100%" rows="4"><?php 
echo htmlspecialchars_decode(sith_get_option('footer_text'));
?>
</textarea>				
					
				</div>
			</div>

			
			<div class="sith-options-item">
				<h3>Footer Layout</h3>
					<div class="option-item">

					<?php 
$checked_footer = 'checked="checked"';
$sith_footer_widgets = sith_get_option('footer_widgets');
?>
					<ul id="footer-widgets-options" class="sith-options">
						<li>
							<input id="sith_footer_widgets"  name="sith_options[footer_widgets]" type="radio" value="footer-1c" <?php 
if ($sith_footer_widgets == 'footer-1c') {
    echo $checked_footer;
}
?>
 />
							<a class="checkbox-select" href="#"><img src="<?php 
echo get_template_directory_uri();
?>
/theme-options/images/footer-widgets-1.png" /></a>
						</li>
						<li>
Beispiel #6
0
					<p><strong>Global CSS :</strong></p>
					<textarea id="sith_css" name="sith_options[css]" style="width:100%" rows="7"><?php 
echo sith_get_option('css');
?>
</textarea>
				</div>	
				<div class="option-item">
					<p><strong>Tablets CSS :</strong> Width from 768px to 985px</p>
					<textarea id="sith_css" name="sith_options[css_tablets]" style="width:100%" rows="7"><?php 
echo sith_get_option('css_tablets');
?>
</textarea>
				</div>
				<div class="option-item">
					<p><strong>Wide Phones CSS :</strong> Width from 480px to 767px</p>
					<textarea id="sith_css" name="sith_options[css_wide_phones]" style="width:100%" rows="7"><?php 
echo sith_get_option('css_wide_phones');
?>
</textarea>
				</div>
				<div class="option-item">
					<p><strong>Phones CSS :</strong> Width from 320px to 479px</p>
					<textarea id="sith_css" name="sith_options[css_phones]" style="width:100%" rows="7"><?php 
echo sith_get_option('css_phones');
?>
</textarea>
				</div>	
			</div>	
            
            
            
Beispiel #7
0
<?php

get_header();
if (sith_get_option('posts_display') != 'posts_content') {
    $layout_style_post = 'loop-full-content';
}
?>
 
<div class="<?php 
echo $layout_style_post;
?>
 custom-container">
	<div class="content">

		<div class="page-head">
			<h2 class="page-title">
				<?php 
if (have_posts()) {
    ?>
				<?php 
    echo lang_search_results_for, ': <span>' . get_search_query() . '</span>';
    ?>
				<?php 
} else {
    ?>
				<?php 
    echo lang_not_found;
    ?>
				<?php 
}
?>
function sith_wp_head()
{
    ?>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <script src="<?php 
    echo get_template_directory_uri();
    ?>
/js/respond.min.js"></script>
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" media="all" href="<?php 
    echo get_template_directory_uri();
    ?>
/css/ie9.css" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" media="screen" href="<?php 
    echo get_template_directory_uri();
    ?>
/css/ie8.css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" media="all" href="<?php 
    echo get_template_directory_uri();
    ?>
/css/ie7.css" />
<![endif]-->
<!--if IE 7
    link(rel='stylesheet', href='<?php 
    echo get_template_directory_uri();
    ?>
/css/fontello-ie7.css')
    
    -->
<script>
      function toggleCodes(on) {
        var obj = document.getElementById('icons');
        
        if (on) {
          obj.className += ' codesOn';
        } else {
          obj.className = obj.className.replace(' codesOn', '');
        }
      }
      
    </script>
<script type='text/javascript'>
	/* <![CDATA[ */
	var silicontvar = {'mob_navigation' : '<?php 
    echo lang_mob_navigation;
    ?>
'};
	var tie = {"ajaxurl":"<?php 
    echo admin_url('admin-ajax.php');
    ?>
" , "your_rating":"<?php 
    echo $your_rating;
    ?>
"};
	/* ]]> */
</script>
<?php 
    global $is_IE;
    if ($is_IE) {
        ?>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<?php 
    }
    if (sith_get_option('disable_responsive')) {
        ?>
<meta name="viewport" content="width=1045" />
<?php 
    } else {
        ?>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<?php 
    }
    echo "\n";
    ?>
<style type="text/css" media="screen">
<?php 
    if (sith_get_option('theme_color')) {
        ?>
 a, #fnp-nav a:after {
color:<?php 
        echo sith_get_option('theme_color');
        ?>
!important;
}
.post-box-title a, .entry-loop-title a { color: #444444 !important}
.post-box-title a:hover, .entry-loop-title a:hover {color:<?php 
        echo sith_get_option('theme_color');
        ?>
!important;}


.search-top .search-button { background:<?php 
        echo sith_get_option('theme_color');
        ?>
!important;}


.top-navigation ul li a:hover, .top-navigation ul li:hover > a, .top-navigation ul :hover > a, .top-navigation ul ul li:hover > a, .top-navigation ul ul :hover > a, .pagination a:hover {
 background:<?php 
        echo sith_get_option('theme_color');
        ?>
!important;
}
.top-navigation li.current-menu-item a:hover, .top-navigation ul li.current-menu-item:hover > a {
 background:<?php 
        echo sith_get_option('theme_color');
        ?>
!important;
}
.widget-top, .footer-widget-top, .page-header-bar, .comment-respond h3#reply-title {
border-bottom-color:<?php 
        echo sith_get_option('theme_color');
        ?>
!important;
}
.widget-container a {
	color: #444444 !important
}
.widget-container a:hover { color:<?php 
        echo sith_get_option('theme_color');
        ?>
!important;}
.pagination a:hover, .post-caption h2 a {
	color: #fff !important
}
.social-icons [class^="sithicon-"]:before, .social-icons-widget .social-icons [class^="sithicon-"]:before, .social-icons [class*=" sithicon-"]:before, .social-icons-widget .social-icons [class*=" sithicon-"]:before {
    border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
    color:#FFF;
}
<?php 
    }
    ?>
  

<?php 
    if (sith_get_option('post_title_color')) {
        ?>
.post-box-title a, .entry-loop-title a { color: <?php 
        echo sith_get_option('post_title_color');
        ?>
 !important}
<?php 
    }
    ?>
  
<?php 
    if (sith_get_option('post_title_color_hover')) {
        ?>
.post-box-title a:hover, .entry-loop-title a:hover {color:<?php 
        echo sith_get_option('post_title_color_hover');
        ?>
!important;}
<?php 
    }
    ?>
  




<?php 
    if (sith_get_option('background')) {
        $bg = sith_get_option('background');
        if (sith_get_option('background_full')) {
            ?>
 .background-cover {
<?php 
            echo "\n";
            ?>
 background-color:<?php 
            echo $bg['color'];
            ?>
 !important;
 background-image : url('<?php 
            echo $bg['img'];
            ?>
') !important;
<?php 
            echo "\n";
            ?>
 filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php 
            echo $bg['img'];
            ?>
', sizingMethod='scale') !important;
<?php 
            echo "\n";
            ?>
 -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php 
            echo $bg['img'];
            ?>
',sizingMethod='scale')" !important;
<?php 
            echo "\n";
            ?>
}
<?php 
        } else {
            ?>
 body {
<?php 
            if (!empty($bg['color'])) {
                ?>
background-color:<?php 
                echo $bg['color'];
                ?>
 !important;
<?php 
                echo "\n";
            }
            ?>
 <?php 
            if (!empty($bg['img'])) {
                ?>
background-image: url('<?php 
                echo $bg['img'];
                ?>
') !important;
<?php 
                echo "\n";
            }
            ?>
 <?php 
            if (!empty($bg['repeat'])) {
                ?>
background-repeat:<?php 
                echo $bg['repeat'];
                ?>
 !important;
<?php 
                echo "\n";
            }
            ?>
 <?php 
            if (!empty($bg['attachment'])) {
                ?>
background-attachment:<?php 
                echo $bg['attachment'];
                ?>
 !important;
<?php 
                echo "\n";
            }
            ?>
 <?php 
            if (!empty($bg['hor']) || !empty($bg['ver'])) {
                ?>
background-position:<?php 
                echo $bg['hor'];
                ?>
 <?php 
                echo $bg['ver'];
                ?>
 !important;
<?php 
                echo "\n";
            }
            ?>
}
<?php 
        }
        ?>
 <?php 
    }
    ?>
 
 <?php 
    if (sith_get_option('highlighted_color')) {
        ?>
 ::-moz-selection {
background: <?php 
        echo sith_get_option('highlighted_color');
        ?>
;
}
::selection {
background: <?php 
        echo sith_get_option('highlighted_color');
        ?>
;
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('links_color') || sith_get_option('links_decoration')) {
        ?>
 a {
 <?php 
        if (sith_get_option('links_color')) {
            echo 'color: ' . sith_get_option('links_color') . ';';
        }
        ?>
 <?php 
        if (sith_get_option('links_decoration')) {
            echo 'text-decoration: ' . sith_get_option('links_decoration') . ';';
        }
        ?>
}
.shortc-button {
	color: #fff !important
}
.white.shortc-button {
	color: #000 !important
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('links_color_hover') || sith_get_option('links_decoration_hover')) {
        ?>
 a:hover {
 <?php 
        if (sith_get_option('links_color_hover')) {
            echo 'color: ' . sith_get_option('links_color_hover') . '!important;';
        }
        ?>
 <?php 
        if (sith_get_option('links_decoration_hover')) {
            echo 'text-decoration: ' . sith_get_option('links_decoration_hover') . ';';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    $topnav_bg = sith_get_option('topnav_background');
    if (!empty($topnav_bg['img']) || !empty($topnav_bg['color'])) {
        ?>
 .top-navigation {
background:<?php 
        if (!empty($topnav_bg['color'])) {
            echo $topnav_bg['color'];
        }
        ?>
 <?php 
        if (!empty($topnav_bg['img'])) {
            ?>
url('<?php 
            echo $topnav_bg['img'];
            ?>
')<?php 
        }
        ?>
 <?php 
        if (!empty($topnav_bg['repeat'])) {
            echo $topnav_bg['repeat'];
        }
        ?>
 <?php 
        if (!empty($topnav_bg['attachment'])) {
            echo $topnav_bg['attachment'];
        }
        ?>
 <?php 
        if (!empty($topnav_bg['hor'])) {
            echo $topnav_bg['hor'];
        }
        ?>
 <?php 
        if (!empty($topnav_bg['ver'])) {
            echo $topnav_bg['ver'];
        }
        ?>
;
}
<?php 
        echo "\n";
        ?>
 <?php 
    }
    ?>
 <?php 
    if (sith_get_option('topnav_links_color')) {
        ?>
 .top-navigation ul li a {
 <?php 
        if (sith_get_option('topnav_links_color')) {
            echo 'color: ' . sith_get_option('topnav_links_color') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('topnav_links_color_hover')) {
        ?>
 .top-navigation ul li a:hover, .top-navigation ul li:hover > a, .top-navigation ul :hover > a, .top-navigation ul ul li:hover > a, .top-navigation ul ul :hover > a {
 <?php 
        if (sith_get_option('topnav_links_color_hover')) {
            echo 'color: ' . sith_get_option('topnav_links_color_hover') . ' !important;';
        }
        ?>
}
 <?php 
    }
    ?>
 <?php 
    if (sith_get_option('topnav_background_links_color_hover')) {
        ?>
 .top-navigation ul li a:hover, .top-navigation ul li:hover > a, .top-navigation ul :hover > a, .top-navigation ul ul li:hover > a, .top-navigation ul ul :hover > a {
 <?php 
        if (sith_get_option('topnav_background_links_color_hover')) {
            echo 'background: ' . sith_get_option('topnav_background_links_color_hover') . ' !important;';
        }
        ?>
}
 <?php 
    }
    ?>
 <?php 
    if (sith_get_option('topnav_links_color')) {
        ?>
  <?php 
    }
    ?>
 <?php 
    if (sith_get_option('topnav_submenu_background')) {
        ?>
 .top-navigation ul ul {
background-color:<?php 
        echo sith_get_option('topnav_submenu_background') . ' !important;';
        ?>
}
<?php 
        echo "\n";
        ?>
 .top-navigation ul > li.parent-list:hover > a:after {
border-color: transparent transparent <?php 
        echo sith_get_option('topnav_submenu_background') . ' !important;';
        ?>
}
<?php 
        echo "\n";
        ?>
  <?php 
    }
    ?>
 <?php 
    if (sith_get_option('topnav_submenu_links_color')) {
        ?>
 .top-navigation ul.sub-menu a, .top-navigation ul ul li.current-menu-item a, .top-navigation ul ul li.current-menu-parent a, .top-navigation ul ul li.current-page-ancestor a, .top-navigation ul ul li a, .top-navigation ul.sub-menu a, .top-navigation ul li.current-menu-item ul a, .top-navigation ul li.current-menu-parent ul a, .top-navigation ul li.current-page-ancestor ul a {
 <?php 
        if (sith_get_option('topnav_submenu_links_color')) {
            echo 'color:' . sith_get_option('topnav_submenu_links_color') . ' !important;';
        }
        ?>
}
.top-navigation ul.sub-menu a, .top-navigation ul ul li.current-menu-item a, .top-navigation ul ul li.current-menu-parent a, .top-navigation ul ul li.current-page-ancestor a, .top-navigation ul li.current-menu-parent ul.sub-menu li a {
 <?php 
        if (sith_get_option('topnav_submenu_links_color')) {
            echo 'color:' . sith_get_option('topnav_submenu_links_color') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    if (sith_get_option('topnav_current_links_color')) {
        ?>
 .top-navigation ul li.current-menu-item a, .top-navigation ul li.current-menu-parent a, .top-navigation ul li.current-page-ancestor a, .sub-navigation ul li a {
 <?php 
        if (sith_get_option('topnav_current_links_color')) {
            echo 'color: ' . sith_get_option('topnav_current_links_color') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('topnav_current_links_background')) {
        ?>
 .top-navigation ul li.current-menu-item a, .top-navigation ul li.current-menu-parent a, .top-navigation ul li.current-page-ancestor a, .sub-navigation {
<?php 
        if (sith_get_option('topnav_current_links_background')) {
            echo 'background: ' . sith_get_option('topnav_current_links_background') . ' ;';
        }
        ?>
  <?php 
        if (sith_get_option('topnav_current_links_color')) {
            echo 'color: ' . sith_get_option('topnav_current_links_color') . ';';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    if (sith_get_option('topnav_submenu_links_color')) {
        ?>
 .top-navigation ul ul a {
 <?php 
        if (sith_get_option('topnav_submenu_links_color')) {
            echo 'color:' . sith_get_option('topnav_submenu_links_color') . ' !important;';
        }
        ?>
}
.top-navigation ul.sub-menu a, .top-navigation ul ul li.current-menu-item a, .top-navigation ul ul li.current-menu-parent a, .top-navigation ul ul li.current-page-ancestor a, .top-navigation ul li.current-menu-parent ul.sub-menu li a {
 <?php 
        if (sith_get_option('topnav_submenu_links_color')) {
            echo 'color:' . sith_get_option('topnav_submenu_links_color') . ' !important;';
        }
        ?>
}
 <?php 
    }
    ?>
  <?php 
    if (sith_get_option('topnav_links_color_hover')) {
        ?>
 .top-navigation li.current-menu-item a:hover, .top-navigation ul li.current-menu-item a:hover, .top-navigation ul li.current-menu-item:hover > a {
 <?php 
        if (sith_get_option('topnav_links_color_hover')) {
            echo 'color: ' . sith_get_option('topnav_links_color_hover') . ' !important;';
        }
        ?>
}
 <?php 
    }
    ?>
 <?php 
    if (sith_get_option('topnav_background_links_color_hover')) {
        ?>
 .top-navigation li.current-menu-item a:hover, .top-navigation ul li.current-menu-item:hover > a {
 <?php 
        if (sith_get_option('topnav_background_links_color_hover')) {
            echo 'background: ' . sith_get_option('topnav_background_links_color_hover') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>
  
<?php 
    if (sith_get_option('mainnav_links_color')) {
        ?>
 

#main-nav ul li a .sub-indicator {
	<?php 
        if (sith_get_option('mainnav_links_color')) {
            echo 'border-top: 4px solid ' . sith_get_option('mainnav_links_color') . ';';
        }
        ?>
	}

<?php 
    }
    ?>
 
<?php 
    if (sith_get_option('mainnav_links_color_hover')) {
        ?>
 
#main-nav ul li a:hover .sub-indicator, #main-nav ul li:hover a .sub-indicator {
	<?php 
        if (sith_get_option('mainnav_links_color_hover')) {
            echo 'border-top: 4px solid ' . sith_get_option('mainnav_links_color_hover') . ';';
        }
        ?>
	}
<?php 
    }
    if (sith_get_option('mainnav_submenu_background2')) {
        ?>
 #main-nav ul ul {
background-color:<?php 
        echo sith_get_option('mainnav_submenu_background2') . ' !important;';
        ?>
}
<?php 
        echo "\n";
        ?>
 #main-nav ul > li.parent-list:hover > a:after {
border-color: transparent transparent <?php 
        echo sith_get_option('mainnav_submenu_background2') . ' !important;';
        ?>
}
<?php 
        echo "\n";
    }
    ?>
 <?php 
    if (sith_get_option('mainnav_submenu_links_color')) {
        ?>
  #main-nav ul ul a{
 <?php 
        if (sith_get_option('mainnav_submenu_links_color')) {
            echo 'color:' . sith_get_option('mainnav_submenu_links_color') . ' !important;';
        }
        ?>
}
#main-nav ul ul li a .sub-indicator, #main-nav ul li:hover ul li a .sub-indicator {
	
	<?php 
        if (sith_get_option('mainnav_submenu_links_color')) {
            echo 'border-top: 4px solid transparent;border-left: 4px solid ' . sith_get_option('mainnav_submenu_links_color') . ';';
        }
        ?>
}

<?php 
    }
    ?>
  

<?php 
    if (sith_get_option('mainnav_current_links_color')) {
        ?>
#main-nav ul li.current-menu-item a, #main-nav ul li.current-menu-parent a, #main-nav ul li.current-page-ancestor a, .sub-navigation ul li a {
 <?php 
        if (sith_get_option('mainnav_current_links_color')) {
            echo 'color: ' . sith_get_option('mainnav_current_links_color') . ' !important;';
        }
        ?>
}
#main-nav ul li.current-menu-item a .sub-indicator, #main-nav ul li.current-menu-parent a .sub-indicator {	<?php 
        if (sith_get_option('mainnav_current_links_color')) {
            echo 'border-top: 4px solid ' . sith_get_option('mainnav_current_links_color') . ';';
        }
        ?>
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('mainnav_current_links_background')) {
        ?>
 #main-nav ul li.current-menu-item a, #main-nav ul li.current-menu-parent a, #main-nav ul li.current-page-ancestor a, .sub-navigation { <?php 
        if (sith_get_option('mainnav_current_links_background')) {
            echo 'background: ' . sith_get_option('mainnav_current_links_background') . ' ;';
        }
        ?>
 <?php 
        if (sith_get_option('mainnav_current_links_color')) {
            echo 'color: ' . sith_get_option('mainnav_current_links_color') . ';';
        }
        ?>
}  
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('mainnav_links_color_hover')) {
        ?>
#main-nav ul li.current-menu-parent a:hover .sub-indicator, 
#main-nav ul:hover li.current-menu-parent a .sub-indicator {border-top: 4px solid <?php 
        sith_get_option('mainnav_submenu_links_color');
        ?>
;}
#main-nav ul:hover li.current-menu-parent ul li a:hover .sub-indicator {border-left: 4px solid <?php 
        sith_get_option('mainnav_submenu_links_color');
        ?>
}
#main-nav ul:hover li.current-menu-parent ul li a .sub-indicator {border-top: 4px solid transparent;}
<?php 
    }
    ?>


<?php 
    if (sith_get_option('mainnav_submenu_links_color')) {
        ?>
  #main-nav ul.sub-menu a,  #main-nav ul ul li.current-menu-item a,  #main-nav ul ul li.current-menu-parent a,  #main-nav ul ul li.current-page-ancestor a,  #main-nav ul ul li a, #main-nav ul.sub-menu a,  #main-nav ul li.current-menu-item ul a,  #main-nav ul li.current-menu-parent ul a,  #main-nav ul li.current-page-ancestor ul a {
 <?php 
        if (sith_get_option('mainnav_submenu_links_color')) {
            echo 'color:' . sith_get_option('mainnav_submenu_links_color') . ' !important;';
        }
        ?>
}

#main-nav ul:hover li.current-menu-parent ul li a .sub-indicator {border-top: 4px solid transparent;}
#main-nav ul ul li:hover ul li a .sub-indicator {<?php 
        if (sith_get_option('mainnav_submenu_links_color')) {
            echo 'border-top: 4px solid transparent;border-left: 4px solid ' . sith_get_option('mainnav_submenu_links_color') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>


 <?php 
    if (sith_get_option('mainnav_links_color_hover')) {
        ?>
 #main-nav li.current-menu-item a:hover, #main-nav ul li.current-menu-item a:hover, #main-nav ul li.current-menu-item:hover > a {
 <?php 
        if (sith_get_option('mainnav_links_color_hover')) {
            echo 'color: ' . sith_get_option('mainnav_links_color_hover') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>
  

<?php 
    if (sith_get_option('mainnav_background_links_color_hover')) {
        ?>
 #main-nav li.current-menu-item a:hover, 
#main-nav ul li.current-menu-item:hover > a {
 <?php 
        if (sith_get_option('mainnav_background_links_color_hover')) {
            echo 'background: ' . sith_get_option('mainnav_background_links_color_hover') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>
 

 <?php 
    if (sith_get_option('mainnav_links_color_hover')) {
        ?>
 #main-nav ul li a:hover, #main-nav ul li:hover > a, #main-nav ul :hover > a, #main-nav ul ul li:hover > a, #main-nav ul ul :hover > a {
 <?php 
        if (sith_get_option('mainnav_links_color_hover')) {
            echo 'color: ' . sith_get_option('mainnav_links_color_hover') . ' !important;';
        }
        ?>
}
#main-nav ul li.current-menu-item a:hover .sub-indicator, #main-nav ul:hover li.current-menu-item a .sub-indicator {	<?php 
        if (sith_get_option('mainnav_links_color_hover')) {
            echo 'border-top: 4px solid ' . sith_get_option('mainnav_links_color_hover') . ';';
        }
        ?>
}

#main-nav ul li.current-menu-item ul li a:hover .sub-indicator,
#main-nav ul:hover li.current-menu-item ul li a .sub-indicator {	<?php 
        if (sith_get_option('mainnav_links_color_hover')) {
            echo 'border-top: 4px solid transparent;';
        }
        ?>
}


#main-nav ul ul li:hover a .sub-indicator, 
#main-nav ul ul li ul li:hover a .sub-indicator {<?php 
        if (sith_get_option('mainnav_links_color_hover')) {
            echo 'border-top: 4px solid transparent;border-left: 4px solid ' . sith_get_option('mainnav_links_color_hover') . ' !important;';
        }
        ?>
}

<?php 
        /* ERRO DE HOVER EM OUTROS MENUS QUE NÃO SEJA AQUELE DO QUAL O MOUSE PASSA.
        #main-nav ul li.current-menu-parent a:hover .sub-indicator, 
        #main-nav ul:hover li.current-menu-parent a .sub-indicator {<?php if( sith_get_option( 'mainnav_links_color_hover' ) ) echo '  border-top: 4px solid '.sith_get_option( 'mainnav_links_color_hover' ).' ;';
        ?>} */
    }
    ?>
  


<?php 
    if (sith_get_option('mainnav_background_links_color_hover')) {
        ?>
 #main-nav ul li a:hover, #main-nav ul li:hover > a, #main-nav ul :hover > a, #main-nav ul ul li:hover > a, #main-nav ul ul :hover > a {
 <?php 
        if (sith_get_option('mainnav_background_links_color_hover')) {
            echo 'background: ' . sith_get_option('mainnav_background_links_color_hover') . ' !important;';
        }
        ?>
}

<?php 
    }
    ?>
  


<?php 
    if (sith_get_option('search_button_background')) {
        ?>
 .search-top .search-button {
 <?php 
        if (sith_get_option('search_button_background')) {
            echo 'background-color: ' . sith_get_option('search_button_background') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('search_button_color')) {
        ?>
 .search-top button.search-button:before {
 <?php 
        if (sith_get_option('search_button_color')) {
            echo 'color: ' . sith_get_option('search_button_color') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    if (sith_get_option('breadcrumbs_background') || sith_get_option('breadcrumbs_background') || sith_get_option('breadcrumbs_text_color')) {
        ?>
 #crumbs {
<?php 
        if (sith_get_option('breadcrumbs_background')) {
            echo 'background: ' . sith_get_option('breadcrumbs_background') . ';';
        }
        ?>
 <?php 
        if (sith_get_option('breadcrumbs_text_color')) {
            echo 'color: ' . sith_get_option('breadcrumbs_text_color') . ';';
        }
        ?>
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('breadcrumbs_links_color')) {
        ?>
 #crumbs a {
<?php 
        if (sith_get_option('breadcrumbs_links_color')) {
            echo 'color: ' . sith_get_option('breadcrumbs_links_color') . ';';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    if (sith_get_option('breadcrumbs_links_color_hover')) {
        ?>
 #crumbs a:hover {
<?php 
        if (sith_get_option('breadcrumbs_links_color_hover')) {
            echo 'color: ' . sith_get_option('breadcrumbs_links_color_hover') . ';';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    $header_bg = sith_get_option('header_background');
    if (!empty($header_bg['img']) || !empty($header_bg['color'])) {
        ?>
 .header-content {
background:<?php 
        if (!empty($header_bg['color'])) {
            echo $header_bg['color'];
        }
        ?>
 <?php 
        if (!empty($header_bg['img'])) {
            ?>
url('<?php 
            echo $header_bg['img'];
            ?>
')<?php 
        }
        ?>
 <?php 
        if (!empty($header_bg['repeat'])) {
            echo $header_bg['repeat'];
        }
        ?>
 <?php 
        if (!empty($header_bg['attachment'])) {
            echo $header_bg['attachment'];
        }
        ?>
 <?php 
        if (!empty($header_bg['hor'])) {
            echo $header_bg['hor'];
        }
        ?>
 <?php 
        if (!empty($header_bg['ver'])) {
            echo $header_bg['ver'];
        }
        ?>
 !important;
}
<?php 
        echo "\n";
        ?>
 <?php 
    }
    ?>
 <?php 
    $mainnav_bg = sith_get_option('mainnav_background');
    if (!empty($mainnav_bg['img']) || !empty($mainnav_bg['color'])) {
        ?>
 #main-nav {
background:<?php 
        if (!empty($mainnav_bg['color'])) {
            echo $mainnav_bg['color'];
        }
        ?>
 <?php 
        if (!empty($mainnav_bg['img'])) {
            ?>
url('<?php 
            echo $mainnav_bg['img'];
            ?>
')<?php 
        }
        ?>
 <?php 
        if (!empty($mainnav_bg['repeat'])) {
            echo $mainnav_bg['repeat'];
        }
        ?>
 <?php 
        if (!empty($mainnav_bg['attachment'])) {
            echo $mainnav_bg['attachment'];
        }
        ?>
 <?php 
        if (!empty($mainnav_bg['hor'])) {
            echo $mainnav_bg['hor'];
        }
        ?>
 <?php 
        if (!empty($mainnav_bg['ver'])) {
            echo $mainnav_bg['ver'];
        }
        ?>
;
}
<?php 
        echo "\n";
        ?>
 <?php 
    }
    ?>
 <?php 
    if (sith_get_option('header_links_color')) {
        ?>
 header#header-layout .logo a {
 <?php 
        if (sith_get_option('header_links_color')) {
            echo 'color: ' . sith_get_option('header_links_color') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('header_text_color')) {
        ?>
 header#header-layout .logo span {
 <?php 
        if (sith_get_option('header_text_color')) {
            echo 'color: ' . sith_get_option('header_text_color') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('mainnav_links_color')) {
        ?>
 #main-nav ul li a {
 <?php 
        if (sith_get_option('mainnav_links_color')) {
            echo 'color: ' . sith_get_option('mainnav_links_color') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('postcaption_bg_title')) {
        ?>
 .post-caption h2 a {
<?php 
        if (sith_get_option('postcaption_bg_title')) {
            echo 'background:' . sith_get_option('postcaption_bg_title') . '!important;';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    if (sith_get_option('postcaption_color_title')) {
        ?>
 .post-caption h2 a {
<?php 
        if (sith_get_option('postcaption_color_title')) {
            echo 'color:' . sith_get_option('postcaption_color_title') . '!important;';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    if (sith_get_option('postcaption_bg_excerpt')) {
        ?>
 .post-caption p {
<?php 
        if (sith_get_option('postcaption_bg_excerpt')) {
            echo 'background:' . sith_get_option('postcaption_bg_excerpt') . '!important;';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    if (sith_get_option('postcaption_color_excerpt')) {
        ?>
 .post-caption p {
<?php 
        if (sith_get_option('postcaption_bg_excerpt')) {
            echo 'color:' . sith_get_option('postcaption_color_excerpt') . '!important;';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    if (sith_get_option('slider_color')) {
        ?>
 .content .slider-caption h2 a, .full-width .content .slider-caption h2 a, .flex-direction-nav a, .flex-control-paging li a, #sidebar .slider-caption, .slider-caption h2 a, .full-width .content .slider-caption h2 a, #sidebar .slider-caption h2 a {
<?php 
        if (sith_get_option('slider_color')) {
            echo 'color:' . sith_get_option('slider_color') . ';';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    if (sith_get_option('widget_title_background')) {
        ?>
 .widget-top, .footer-widget-top {
<?php 
        if (sith_get_option('widget_title_background')) {
            echo 'background:' . sith_get_option('widget_title_background') . ';';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    if (sith_get_option('widget_title_color')) {
        ?>
 .widget-top, .widget-top a, .widget-top h4, .footer-widget-top h4 {
<?php 
        if (sith_get_option('widget_title_color')) {
            echo 'color:' . sith_get_option('widget_title_color') . ';';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    if (sith_get_option('widget_content_color')) {
        ?>
 #sidebar .widget-container, .widget-container a, .box-layout-content, .footer-widget-container, #sidebar .widget-container a, .box-layout-content a, .footer-widget-container a, .widget-container li span.date, .footer-widget-container li span.date {
<?php 
        if (sith_get_option('widget_content_color')) {
            echo 'color:' . sith_get_option('widget_content_color') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    if (sith_get_option('widget_content_background')) {
        ?>
 #sidebar .widget-container, .box-layout-content, .footer-widget-container, #sidebar .widget-container a, .box-layout-content a, .footer-widget-container a {
<?php 
        if (sith_get_option('widget_content_background')) {
            echo 'background:' . sith_get_option('widget_content_background') . ';';
        }
        ?>
}
<?php 
    }
    ?>
  
<?php 
    /*if( sith_get_option( 'widget_border_color' ) ): ?> #sidebar .widget-container, .footer-widget-container, #sidebar .widget-container, .footer-widget-container, .widget-top, .footer-widget-top, .box-layout {
    <?php if( sith_get_option( 'widget_border_color' ) ) echo 'border: 4px solid '.sith_get_option( 'widget_border_color' ).';';
    ?>
    }
    .widget-top, .footer-widget-top, .box-layout-title {
    }
    .box-layout-title {
    <?php if( sith_get_option( 'widget_border_color' ) ) echo 'border-bottom: 1px solid '.sith_get_option( 'widget_border_color' ).';';
    ?>
    }
    <?php endif;
    */
    ?>
  

<?php 
    if (sith_get_option('widget_border_color')) {
        ?>
.footer-widget-top, .widget-top, .page-header-bar, .comment-respond h3#reply-title {<?php 
        if (sith_get_option('widget_border_color')) {
            echo 'border-bottom: 4px solid ' . sith_get_option('widget_border_color') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>
  

<?php 
    if (sith_get_option('widget_links_color')) {
        ?>
.widget-container a, .footer-widget-container a {color:<?php 
        echo sith_get_option('widget_links_color');
        ?>
 !important;}
<?php 
    }
    ?>
 

<?php 
    if (sith_get_option('widget_links_color_hover')) {
        ?>
.widget-container a:hover, .footer-widget-container a:hover {color:<?php 
        echo sith_get_option('widget_links_color_hover');
        ?>
 !important;}
<?php 
    }
    ?>
 




<?php 
    if (sith_get_option('disable_responsive')) {
        ?>
 body {
overflow:inherit;
overflow-x:inherit;
}
<?php 
    }
    ?>
 <?php 
    $content_bg = sith_get_option('main_content_bg');
    if (!empty($content_bg['img']) || !empty($content_bg['color'])) {
        ?>
 #main-content {
background:<?php 
        if (!empty($content_bg['color'])) {
            echo $content_bg['color'];
        }
        ?>
 <?php 
        if (!empty($content_bg['img'])) {
            ?>
url('<?php 
            echo $content_bg['img'];
            ?>
')<?php 
        }
        ?>
 <?php 
        if (!empty($content_bg['repeat'])) {
            echo $content_bg['repeat'];
        }
        ?>
 <?php 
        if (!empty($content_bg['attachment'])) {
            echo $content_bg['attachment'];
        }
        ?>
 <?php 
        if (!empty($content_bg['hor'])) {
            echo $content_bg['hor'];
        }
        ?>
 <?php 
        if (!empty($content_bg['ver'])) {
            echo $content_bg['ver'];
        }
        ?>
;
}
<?php 
        echo "\n";
        ?>
 <?php 
    }
    ?>
 <?php 
    $boxes_bg = sith_get_option('boxes_bg');
    if (!empty($boxes_bg['img']) || !empty($boxes_bg['color'])) {
        ?>
 .box-layout-content, #sidebar .widget-container, .container-posts, .column2 li.first-news, .wide-box li.first-news {
background:<?php 
        if (!empty($boxes_bg['color'])) {
            echo $boxes_bg['color'];
        }
        ?>
 <?php 
        if (!empty($boxes_bg['img'])) {
            ?>
url('<?php 
            echo $boxes_bg['img'];
            ?>
')<?php 
        }
        ?>
 <?php 
        if (!empty($boxes_bg['repeat'])) {
            echo $boxes_bg['repeat'];
        }
        ?>
 <?php 
        if (!empty($boxes_bg['attachment'])) {
            echo $boxes_bg['attachment'];
        }
        ?>
 <?php 
        if (!empty($boxes_bg['hor'])) {
            echo $boxes_bg['hor'];
        }
        ?>
 <?php 
        if (!empty($boxes_bg['ver'])) {
            echo $boxes_bg['ver'];
        }
        ?>
 !important;
}
<?php 
        echo "\n";
        ?>
 <?php 
    }
    ?>
 <?php 
    if (sith_get_option('breaking_title_bg')) {
        ?>
 .breaking-news span {
<?php 
        if (sith_get_option('breaking_title_bg')) {
            echo 'background: ' . sith_get_option('breaking_title_bg') . ';';
        }
        ?>
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('post_links_color') || sith_get_option('post_links_decoration')) {
        ?>
 body.single .post .entry a, body.page .post .entry a, .post-box-title a {
 <?php 
        if (sith_get_option('post_links_color')) {
            echo 'color: ' . sith_get_option('post_links_color') . ';';
        }
        ?>
 <?php 
        if (sith_get_option('post_links_decoration')) {
            echo 'text-decoration: ' . sith_get_option('post_links_decoration') . ';';
        }
        ?>
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('post_links_color_hover') || sith_get_option('post_links_decoration_hover')) {
        ?>
 body.single .post .entry a:hover, body.page .post .entry a:hover, .post-box-title a:hover {
 <?php 
        if (sith_get_option('post_links_color_hover')) {
            echo 'color: ' . sith_get_option('post_links_color_hover') . ';';
        }
        ?>
 <?php 
        if (sith_get_option('post_links_decoration_hover')) {
            echo 'text-decoration: ' . sith_get_option('post_links_decoration_hover') . ';';
        }
        ?>
}
<?php 
    }
    ?>
 <?php 
    $footer_bg = sith_get_option('footer_background');
    if (!empty($footer_bg['img']) || !empty($footer_bg['color'])) {
        ?>
 footer#theme-footer {
background:<?php 
        if (!empty($footer_bg['color'])) {
            echo $footer_bg['color'];
        }
        ?>
 <?php 
        if (!empty($footer_bg['img'])) {
            ?>
url('<?php 
            echo $footer_bg['img'];
            ?>
')<?php 
        }
        ?>
 <?php 
        if (!empty($footer_bg['repeat'])) {
            echo $footer_bg['repeat'];
        }
        ?>
 <?php 
        if (!empty($footer_bg['attachment'])) {
            echo $footer_bg['attachment'];
        }
        ?>
 <?php 
        if (!empty($footer_bg['hor'])) {
            echo $footer_bg['hor'];
        }
        ?>
 <?php 
        if (!empty($footer_bg['ver'])) {
            echo $footer_bg['ver'];
        }
        ?>
;
}
<?php 
        echo "\n";
        ?>
 <?php 
    }
    ?>
 <?php 
    if (sith_get_option('footer_title_color')) {
        ?>
 .footer-widget-top h3 {
<?php 
        if (sith_get_option('footer_title_color')) {
            echo 'color: ' . sith_get_option('footer_title_color') . ';';
        }
        ?>
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('footer_text_color')) {
        ?>
 .footer-layout, footer#theme-footer {
<?php 
        if (sith_get_option('footer_text_color')) {
            echo 'color: ' . sith_get_option('footer_text_color') . ';';
        }
        ?>
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('footer_links_color')) {
        ?>
 .footer-layout a, .footer-layout .social-icons a {
<?php 
        if (sith_get_option('footer_links_color')) {
            echo 'color: ' . sith_get_option('footer_links_color') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    if (sith_get_option('footer_links_color_hover')) {
        ?>
 .footer-layout a:hover, .footer-layout .social-icons a:hover {
<?php 
        if (sith_get_option('footer_links_color_hover')) {
            echo 'color: ' . sith_get_option('footer_links_color_hover') . ' !important;';
        }
        ?>
}
<?php 
    }
    ?>
  <?php 
    $css_code = str_replace("<pre>", "", htmlspecialchars_decode(sith_get_option('css')));
    echo $css_code = str_replace("</pre>", "", $css_code), "\n";
    ?>
 <?php 
    if (sith_get_option('css_tablets')) {
        ?>
  @media (min-width: 768px) and (max-width: 991px) {
<?php 
        $css_code1 = str_replace("<pre>", "", htmlspecialchars_decode(sith_get_option('css_tablets')));
        echo $css_code1 = str_replace("</pre>", "", $css_code1), "\n";
        ?>
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('css_wide_phones')) {
        ?>
 @media (max-width: 767px) {
<?php 
        $css_code2 = str_replace("<pre>", "", htmlspecialchars_decode(sith_get_option('css_wide_phones')));
        echo $css_code2 = str_replace("</pre>", "", $css_code2), "\n";
        ?>
}
<?php 
    }
    ?>
 <?php 
    if (sith_get_option('css_phones')) {
        ?>
 @media only screen and (max-width: 479px) {
<?php 
        $css_code3 = str_replace("<pre>", "", htmlspecialchars_decode(sith_get_option('css_phones')));
        echo $css_code3 = str_replace("</pre>", "", $css_code3), "\n";
        ?>
}
<?php 
    }
    ?>
 
</style>
<?php 
    if (sith_get_option('apple_iPad_retina')) {
        ?>
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php 
        echo sith_get_option('apple_iPad_retina');
        ?>
" />
<?php 
    }
    if (sith_get_option('apple_iphone_retina')) {
        ?>
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="<?php 
        echo sith_get_option('apple_iphone_retina');
        ?>
" />
<?php 
    }
    if (sith_get_option('apple_iPad')) {
        ?>
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php 
        echo sith_get_option('apple_iPad');
        ?>
" />
<?php 
    }
    if (sith_get_option('apple_iphone')) {
        ?>
<link rel="apple-touch-icon-precomposed" href="<?php 
        echo sith_get_option('apple_iphone');
        ?>
" />
<?php 
    }
    echo htmlspecialchars_decode(sith_get_option('header_code')), "\n";
}
Beispiel #9
0
    <div class="left">
      <?php 
if (sith_get_option('footer_text')) {
} else {
    $footer_time = mysql2date('Y', current_time('timestamp'));
    echo '&#169; ' . $footer_time;
    '';
    echo ' - ';
    echo bloginfo('name');
    echo ' - Powered by <a href="http://www.wordpress.org">WordPress</a> | Designed by <a href="http://www.themenovum.com" title="ThemeNovum" target="_blank">ThemeNovum</a>';
}
if (sith_get_option('footer_text')) {
    $footer_vars = array('%year%', '%site%', '%url%');
}
$footer_val = array(date('Y'), get_bloginfo('name'), home_url());
$footer_text = str_replace($footer_vars, $footer_val, sith_get_option('footer_text'));
echo htmlspecialchars_decode($footer_text);
?>

    </div>
 
  </div>
  <!-- .Container --> 
</div>

</div>
</div>

<?php 
wp_footer();
?>
Beispiel #10
0
<?php

$footer_widgets = sith_get_option('footer_widgets') ? sith_get_option('footer_widgets') : "footer-3c";
if ($footer_widgets != 'disable') {
    ?>
<footer id="theme-footer">
	<div id="footer-widget-area" class="<?php 
    echo $footer_widgets;
    ?>
">
<div class="container">
	<?php 
    if (is_active_sidebar('first-footer-widget-area')) {
        ?>
		<div id="footer-first" class="footer-widgets-box">
			<?php 
        dynamic_sidebar('first-footer-widget-area');
        ?>
		</div>
	<?php 
    }
    ?>

	<?php 
    if (is_active_sidebar('second-footer-widget-area')) {
        ?>
		<div id="footer-second" class="footer-widgets-box">
			<?php 
        dynamic_sidebar('second-footer-widget-area');
        ?>
		</div><!-- #second .widget-area -->
Beispiel #11
0
        $sith_sidebar_post = sanitize_title($get_meta["sith_sidebar_post"][0]);
        $sidebar_post = sith_get_option('sidebar_post');
        if ($sith_sidebar_post) {
            dynamic_sidebar($sith_sidebar_post);
        } elseif ($sidebar_post) {
            dynamic_sidebar(sanitize_title($sidebar_post));
        } else {
            dynamic_sidebar('primary-widget-area');
        }
    }
} elseif (is_category()) {
    $category_id = get_query_var('cat');
    $cat_sidebar = sith_get_option('sidebar_cat_' . $category_id);
    $sidebar_archive = sith_get_option('sidebar_archive');
    if ($cat_sidebar) {
        dynamic_sidebar(sanitize_title($cat_sidebar));
    } elseif ($sidebar_archive) {
        dynamic_sidebar(sanitize_title($sidebar_archive));
    } else {
        dynamic_sidebar('primary-widget-area');
    }
} else {
    $sidebar_archive = sith_get_option('sidebar_archive');
    if ($sidebar_archive) {
        dynamic_sidebar(sanitize_title($sidebar_archive));
    } else {
        dynamic_sidebar('primary-widget-area');
    }
}
?>
</aside>
Beispiel #12
0
        ?>
		<?php 
        echo sith_google_maps($get_meta['sith_googlemap_url'][0], $width, $height);
        ?>
		
		
<?php 
    } elseif ($get_meta['sith_post_head'][0] == 'slider' && !empty($get_meta['sith_post_slider'][0])) {
        if ($get_meta["sith_sidebar_pos"][0] == 'full') {
            $size = 'big-slider';
        } else {
            $size = 'slider';
        }
        $effect = sith_get_option('flexi_slider_effect');
        $speed = sith_get_option('flexi_slider_speed');
        $time = sith_get_option('flexi_slider_time');
        if (!$speed || $speed == ' ' || !is_numeric($speed)) {
            $speed = 7000;
        }
        if (!$time || $time == ' ' || !is_numeric($time)) {
            $time = 600;
        }
        if ($effect == 'slideV') {
            $effect = 'animation: "slide",
					  direction: "vertical",';
        } elseif ($effect == 'slideH') {
            $effect = 'animation: "slide",';
        } else {
            $effect = 'animation: "fade",';
        }
        $custom_slider_args = array('post_type' => 'sith_slider', 'p' => $get_meta['sith_post_slider'][0], 'no_found_rows' => 1);
Beispiel #13
0
<?php

global $get_meta, $post;
if (sith_get_option('related') && empty($get_meta["sith_hide_related"][0]) || isset($get_meta["sith_hide_related"][0]) && $get_meta["sith_hide_related"][0] == 'no') {
    $related_no = sith_get_option('related_number') ? sith_get_option('related_number') : 3;
    global $post;
    $orig_post = $post;
    $query_type = sith_get_option('related_query');
    if ($query_type == 'author') {
        $args = array('post__not_in' => array($post->ID), 'posts_per_page' => $related_no, 'author' => get_the_author_meta('ID'), 'no_found_rows' => 1);
    } elseif ($query_type == 'tag') {
        $tags = wp_get_post_tags($post->ID);
        $tags_ids = array();
        foreach ($tags as $individual_tag) {
            $tags_ids[] = $individual_tag->term_id;
        }
        $args = array('post__not_in' => array($post->ID), 'posts_per_page' => $related_no, 'tag__in' => $tags_ids, 'no_found_rows' => 1);
    } else {
        $categories = get_the_category($post->ID);
        $category_ids = array();
        foreach ($categories as $individual_category) {
            $category_ids[] = $individual_category->term_id;
        }
        $args = array('post__not_in' => array($post->ID), 'posts_per_page' => $related_no, 'category__in' => $category_ids, 'no_found_rows' => 1);
    }
    $related_query = new wp_query($args);
    if ($related_query->have_posts()) {
        $count = 0;
        ?>
	<section id="related_posts" class="box-layout">
		<div class="box-layout-title">
Beispiel #14
0
		<?php 
if (sith_get_option('post_authorbio') && empty($get_meta["sith_hide_author"][0]) || isset($get_meta["sith_hide_related"][0]) && $get_meta["sith_hide_author"][0] == 'no') {
    ?>
		
		<section id="author-box" class="box-layout">
			<div class="box-layout-title">
				<h2><?php 
    echo lang_about;
    ?>
 <?php 
    the_author();
    ?>
 </h2>
			</div>
			<div class="container-posts box-layout-content">
				<?php 
    sith_author_box();
    ?>
			</div>
		</section><!-- #author-box -->
		<?php 
}
Beispiel #15
0
 
    <div class="post-inner" >
      <?php 
while (have_posts()) {
    the_post();
    if (sith_get_option('cate_template_' . $category_id)) {
        get_template_part(sith_get_option('cate_template_' . $category_id));
    } else {
        get_template_part('loop-excerpt');
    }
}
?>
    </div>
    <div class="clear"></div>
    <?php 
if ($wp_query->max_num_pages > 1) {
    sith_pagenavi();
}
?>
  </div>
  <!-- .content -->
  
  <?php 
if (sith_get_option('sidebar_position_' . $sidebar_cat_position) != 'home-full-layout-nosidebar') {
    get_sidebar();
} else {
}
?>
</div>
<?php 
get_footer();
Beispiel #16
0
function sith_breadcrumbs()
{
    if (sith_get_option('breadcrumbs')) {
        $delimiter = sith_get_option('breadcrumbs_delimiter') ? sith_get_option('breadcrumbs_delimiter') : '&raquo;';
        $before = '<span class="current">';
        $after = '</span>';
        if (!is_home() && !is_front_page() || is_paged()) {
            echo '<div xmlns:v="http://rdf.data-vocabulary.org/#"  id="crumbs"><div class="container clear">';
            global $post;
            $homeLink = home_url();
            $lang_home = lang_home;
            echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" class="crumbs-home" href="' . $homeLink . '">' . __($lang_home) . '</a></span> ' . $delimiter . ' ';
            if (is_category()) {
                global $wp_query;
                $cat_obj = $wp_query->get_queried_object();
                $thisCat = $cat_obj->term_id;
                $thisCat = get_category($thisCat);
                $parentCat = get_category($thisCat->parent);
                if ($thisCat->parent != 0) {
                    if (!is_wp_error($cat_code = get_category_parents($parentCat, TRUE, ' ' . $delimiter . ' '))) {
                        $cat_code = str_replace('<a', '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title"', $cat_code);
                        echo $cat_code = str_replace('</a>', '</a></span>', $cat_code);
                    }
                }
                echo $before . '' . single_cat_title('', false) . '' . $after;
            } elseif (is_day()) {
                echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a></span> ' . $delimiter . ' ';
                echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_month_link(get_the_time('Y'), get_the_time('m')) . '">' . get_the_time('F') . '</a></span> ' . $delimiter . ' ';
                echo $before . get_the_time('d') . $after;
            } elseif (is_month()) {
                echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a></span> ' . $delimiter . ' ';
                echo $before . get_the_time('F') . $after;
            } elseif (is_year()) {
                echo $before . get_the_time('Y') . $after;
            } elseif (is_single() && !is_attachment()) {
                if (get_post_type() != 'post') {
                    $post_type = get_post_type_object(get_post_type());
                    $slug = $post_type->rewrite;
                    echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->labels->singular_name . '</a></span> ' . $delimiter . ' ';
                    echo $before . get_the_title() . $after;
                } else {
                    $cat = get_the_category();
                    $cat = $cat[0];
                    if (!empty($cat)) {
                        if (!is_wp_error($cat_code = get_category_parents($cat, TRUE, ' ' . $delimiter . ' '))) {
                            $cat_code = str_replace('<a', '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title"', $cat_code);
                            echo $cat_code = str_replace('</a>', '</a></span>', $cat_code);
                        }
                    }
                    echo $before . get_the_title() . $after;
                }
            } elseif (is_page() && !$post->post_parent || function_exists('bp_current_component') && bp_current_component()) {
                echo $before . get_the_title() . $after;
            } elseif (!is_single() && !is_page() && get_post_type() != 'post') {
                $post_type = get_post_type_object(get_post_type());
                echo $before . $post_type->labels->singular_name . $after;
            } elseif (is_attachment()) {
                $parent = get_post($post->post_parent);
                $cat = get_the_category($parent->ID);
                $cat = $cat[0];
                echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_permalink($parent) . '">' . $parent->post_title . '</a></span> ' . $delimiter . ' ';
                echo $before . get_the_title() . $after;
            } elseif (is_page() && $post->post_parent) {
                $parent_id = $post->post_parent;
                $breadcrumbs = array();
                while ($parent_id) {
                    $page = get_page($parent_id);
                    $breadcrumbs[] = '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a></span>';
                    $parent_id = $page->post_parent;
                }
                $breadcrumbs = array_reverse($breadcrumbs);
                foreach ($breadcrumbs as $crumb) {
                    echo $crumb . ' ' . $delimiter . ' ';
                }
                echo $before . get_the_title() . $after;
            } elseif (is_search()) {
                echo $before;
                echo lang_search_results_for;
                echo ': ';
                printf(get_search_query());
                echo $after;
            } elseif (is_tag()) {
                echo $before;
                echo lang_tag_archives;
                printf(single_tag_title('', false));
                echo $after;
            } elseif (is_author()) {
                global $author;
                $userdata = get_userdata($author);
                echo $before;
                echo lang_author_archives;
                printf($userdata->display_name);
                echo $after;
            } elseif (is_404()) {
                echo $before;
                echo lang_not_found;
                echo $after;
            } elseif (is_tax()) {
                echo $before;
                $term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
                echo $term->name;
                echo $after;
            }
            if (get_query_var('paged')) {
                if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()) {
                    echo ' (';
                }
                echo __('page ', 'sith') . ' ' . get_query_var('paged');
                if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()) {
                    echo ')';
                }
            }
            echo '</div></div>';
        }
    }
}
Beispiel #17
0
the_permalink();
?>
" title="<?php 
printf(esc_attr__('%s', 'sith'), the_title_attribute('echo=0'));
?>
" rel="bookmark">
          <?php 
if (strlen($post->post_title) > $post_caption_title_limit) {
    echo substr(the_title($before = '', $after = '', FALSE), 0, $post_caption_title_limit) . '...';
} else {
    the_title();
}
?>
          </a> </h2>
        <?php 
if (sith_get_option('disable_box_excerpt')) {
} else {
    ?>
        <p><?php 
    echo sith_content_limit(get_the_excerpt(), $post_caption_excerpt_limit);
    ?>
</p>
        <?php 
}
?>
      </div>
    </article>
    <!-- .default-loop-post --> 
  </div>
</div>
function sith_options($value)
{
    global $options_fonts;
    ?>

<div class="option-item module-<?php 
    echo $value['type'];
    ?>
" id="<?php 
    echo $value['id'];
    ?>
-item"> <span class="label label-custom-checkbox">
  <?php 
    echo $value['name'];
    ?>
  </span>
  <?php 
    switch ($value['type']) {
        case 'text':
            ?>
  <input  name="sith_options[<?php 
            echo $value['id'];
            ?>
]" id="<?php 
            echo $value['id'];
            ?>
" type="text" value="<?php 
            echo sith_get_option($value['id']);
            ?>
" />
  <?php 
            if ($value['id'] == "slider_tag" || $value['id'] == "breaking_tag") {
                $tags = get_tags('orderby=count&order=desc&number=50');
                ?>
  <a style="cursor:pointer" title="Choose from the most used tags" onclick="toggleVisibility('<?php 
                echo $value['id'];
                ?>
_tags');"><img src="<?php 
                echo get_template_directory_uri();
                ?>
/theme-options/images/expand.png" alt="" /></a> <span class="tags-list" id="<?php 
                echo $value['id'];
                ?>
_tags">
  <?php 
                foreach ($tags as $tag) {
                    ?>
  <a style="cursor:pointer" onclick="if(<?php 
                    echo $value['id'];
                    ?>
.value != ''){ var sep = ' , '}else{var sep = ''} <?php 
                    echo $value['id'];
                    ?>
.value=<?php 
                    echo $value['id'];
                    ?>
.value+sep+(this.rel);" rel="<?php 
                    echo $tag->name;
                    ?>
"><?php 
                    echo $tag->name;
                    ?>
</a>
  <?php 
                }
                ?>
  </span>
  <?php 
            }
            ?>
  <?php 
            break;
        case 'arrayText':
            $currentValue = sith_get_option($value['id']);
            ?>
  <input  name="sith_options[<?php 
            echo $value['id'];
            ?>
][<?php 
            echo $value['key'];
            ?>
]" id="<?php 
            echo $value['id'];
            ?>
[<?php 
            echo $value['key'];
            ?>
]" type="text" value="<?php 
            echo $currentValue[$value['key']];
            ?>
" />
  <?php 
            break;
        case 'short-text':
            ?>
  <input style="width:50px" name="sith_options[<?php 
            echo $value['id'];
            ?>
]" id="<?php 
            echo $value['id'];
            ?>
" type="text" value="<?php 
            echo sith_get_option($value['id']);
            ?>
" />
  <?php 
            break;
        case 'checkbox':
            echo '<div class="st-custom-checkbox">';
            if (sith_get_option($value['id'])) {
                $checked = "checked=\"checked\"";
            } else {
                $checked = "";
            }
            ?>
  <input class="on-of custom-checkbox" type="checkbox" name="sith_options[<?php 
            echo $value['id'];
            ?>
]" id="<?php 
            echo $value['id'];
            ?>
" value="true" <?php 
            echo $checked;
            ?>
 />
  <span class="label-custom-checkbox2">
  <?php 
            echo $value['name_checkbox'];
            ?>
  </span> </div>
<!--TEST-->

<?php 
            break;
        case 'checkbox':
            if (sith_get_option($value['id'])) {
                $checked = "checked=\"checked\"";
            } else {
                $checked = "";
            }
            ?>
<input class="on-of" type="checkbox" name="sith_options[<?php 
            echo $value['id'];
            ?>
]" id="<?php 
            echo $value['id'];
            ?>
" value="true" <?php 
            echo $checked;
            ?>
 />
<?php 
            break;
        case 'radio':
            ?>
<div style="float:left; width: 295px;">
  <?php 
            foreach ($value['options'] as $key => $option) {
                ?>
  <label style="display:block; margin-bottom:8px;">
    <input name="sith_options[<?php 
                echo $value['id'];
                ?>
]" id="<?php 
                echo $value['id'];
                ?>
" type="radio" value="<?php 
                echo $key;
                ?>
" <?php 
                if (sith_get_option($value['id']) == $key) {
                    echo ' checked="checked"';
                }
                ?>
>
    <?php 
                echo $option;
                ?>
</label>
  <?php 
            }
            ?>
</div>
<?php 
            break;
        case 'select':
            ?>
<select name="sith_options[<?php 
            echo $value['id'];
            ?>
]" id="<?php 
            echo $value['id'];
            ?>
">
  <?php 
            foreach ($value['options'] as $key => $option) {
                ?>
  <option value="<?php 
                echo $key;
                ?>
" <?php 
                if (sith_get_option($value['id']) == $key) {
                    echo ' selected="selected"';
                }
                ?>
><?php 
                echo $option;
                ?>
</option>
  <?php 
            }
            ?>
</select>
<?php 
            break;
        case 'textarea':
            ?>
<textarea style="direction:ltr; text-align:left" name="sith_options[<?php 
            echo $value['id'];
            ?>
]" id="<?php 
            echo $value['id'];
            ?>
" type="textarea" cols="100%" rows="3" tabindex="4"><?php 
            echo sith_get_option($value['id']);
            ?>
</textarea>
<?php 
            break;
        case 'upload':
            ?>
<input id="<?php 
            echo $value['id'];
            ?>
" class="img-path" type="text" size="56" style="direction:ltr; text-laign:left" name="sith_options[<?php 
            echo $value['id'];
            ?>
]" value="<?php 
            echo sith_get_option($value['id']);
            ?>
" />
<input id="upload_<?php 
            echo $value['id'];
            ?>
_button" type="button" class="small_button" value="Upload" />
<?php 
            if (isset($value['extra_text'])) {
                ?>
<span class="extra-text"><?php 
                echo $value['extra_text'];
                ?>
</span>
<?php 
            }
            ?>
<div id="<?php 
            echo $value['id'];
            ?>
-preview" class="img-preview" <?php 
            if (!sith_get_option($value['id'])) {
                echo 'style="display:none;"';
            }
            ?>
> <img src="<?php 
            if (sith_get_option($value['id'])) {
                echo sith_get_option($value['id']);
            } else {
                echo get_template_directory_uri() . '/theme-options/images/spacer.png';
            }
            ?>
" alt="" /> <a class="del-img" title="Delete"></a> </div>
<?php 
            break;
        case 'slider':
            ?>
<div id="<?php 
            echo $value['id'];
            ?>
-slider"></div>
<input type="text" id="<?php 
            echo $value['id'];
            ?>
" value="<?php 
            echo sith_get_option($value['id']);
            ?>
" name="sith_options[<?php 
            echo $value['id'];
            ?>
]" style="width:50px;" />
<?php 
            echo $value['unit'];
            ?>
 
<script>
				  jQuery(document).ready(function() {
					jQuery("#<?php 
            echo $value['id'];
            ?>
-slider").slider({
						range: "min",
						min: <?php 
            echo $value['min'];
            ?>
,
						max: <?php 
            echo $value['max'];
            ?>
,
						value: <?php 
            if (sith_get_option($value['id'])) {
                echo sith_get_option($value['id']);
            } else {
                echo 0;
            }
            ?>
,

						slide: function(event, ui) {
						jQuery('#<?php 
            echo $value['id'];
            ?>
').attr('value', ui.value );
						}
					});
				  });
				</script>
<?php 
            break;
        case 'background':
            $current_value = sith_get_option($value['id']);
            ?>
<input id="<?php 
            echo $value['id'];
            ?>
-img" class="img-path" type="text" size="56" style="direction:ltr; text-align:left" name="sith_options[<?php 
            echo $value['id'];
            ?>
][img]" value="<?php 
            echo $current_value['img'];
            ?>
" />
<input id="upload_<?php 
            echo $value['id'];
            ?>
_button" type="button" class="small_button" value="Upload" />
<div style="margin-top:15px; clear:both">
  <div id="<?php 
            echo $value['id'];
            ?>
colorSelector" class="color-pic">
    <div style="background-color:<?php 
            echo $current_value['color'];
            ?>
"></div>
  </div>
  <input style="width:80px; margin-right:5px;"  name="sith_options[<?php 
            echo $value['id'];
            ?>
][color]" id="<?php 
            echo $value['id'];
            ?>
color" type="text" value="<?php 
            echo $current_value['color'];
            ?>
" />
  <select name="sith_options[<?php 
            echo $value['id'];
            ?>
][repeat]" id="<?php 
            echo $value['id'];
            ?>
[repeat]" style="width:96px;">
    <option value="" <?php 
            if (!$current_value['repeat']) {
                echo ' selected="selected"';
            }
            ?>
></option>
    <option value="repeat" <?php 
            if ($current_value['repeat'] == 'repeat') {
                echo ' selected="selected"';
            }
            ?>
>repeat</option>
    <option value="no-repeat" <?php 
            if ($current_value['repeat'] == 'no-repeat') {
                echo ' selected="selected"';
            }
            ?>
>no-repeat</option>
    <option value="repeat-x" <?php 
            if ($current_value['repeat'] == 'repeat-x') {
                echo ' selected="selected"';
            }
            ?>
>repeat-x</option>
    <option value="repeat-y" <?php 
            if ($current_value['repeat'] == 'repeat-y') {
                echo ' selected="selected"';
            }
            ?>
>repeat-y</option>
  </select>
  <select name="sith_options[<?php 
            echo $value['id'];
            ?>
][attachment]" id="<?php 
            echo $value['id'];
            ?>
[attachment]" style="width:96px;">
    <option value="" <?php 
            if (!$current_value['attachment']) {
                echo ' selected="selected"';
            }
            ?>
></option>
    <option value="fixed" <?php 
            if ($current_value['attachment'] == 'fixed') {
                echo ' selected="selected"';
            }
            ?>
>Fixed</option>
    <option value="scroll" <?php 
            if ($current_value['attachment'] == 'scroll') {
                echo ' selected="selected"';
            }
            ?>
>scroll</option>
  </select>
  <select name="sith_options[<?php 
            echo $value['id'];
            ?>
][hor]" id="<?php 
            echo $value['id'];
            ?>
[hor]" style="width:96px;">
    <option value="" <?php 
            if (!$current_value['hor']) {
                echo ' selected="selected"';
            }
            ?>
></option>
    <option value="left" <?php 
            if ($current_value['hor'] == 'left') {
                echo ' selected="selected"';
            }
            ?>
>Left</option>
    <option value="right" <?php 
            if ($current_value['hor'] == 'right') {
                echo ' selected="selected"';
            }
            ?>
>Right</option>
    <option value="center" <?php 
            if ($current_value['hor'] == 'center') {
                echo ' selected="selected"';
            }
            ?>
>Center</option>
  </select>
  <select name="sith_options[<?php 
            echo $value['id'];
            ?>
][ver]" id="<?php 
            echo $value['id'];
            ?>
[ver]" style="width:100px;">
    <option value="" <?php 
            if (!$current_value['ver']) {
                echo ' selected="selected"';
            }
            ?>
></option>
    <option value="top" <?php 
            if ($current_value['ver'] == 'top') {
                echo ' selected="selected"';
            }
            ?>
>Top</option>
    <option value="center" <?php 
            if ($current_value['ver'] == 'center') {
                echo ' selected="selected"';
            }
            ?>
>Center</option>
    <option value="bottom" <?php 
            if ($current_value['ver'] == 'bottom') {
                echo ' selected="selected"';
            }
            ?>
>Bottom</option>
  </select>
</div>
<div id="<?php 
            echo $value['id'];
            ?>
-preview" class="img-preview" <?php 
            if (!$current_value['img']) {
                echo 'style="display:none;"';
            }
            ?>
> <img src="<?php 
            if ($current_value['img']) {
                echo $current_value['img'];
            } else {
                echo get_template_directory_uri() . '/theme-options/images/spacer.png';
            }
            ?>
" alt="" /> <a class="del-img" title="Delete"></a> </div>
<script>
				jQuery('#<?php 
            echo $value['id'];
            ?>
colorSelector').ColorPicker({
					color: '<?php 
            echo $current_value['color'];
            ?>
',
					onShow: function (colpkr) {
						jQuery(colpkr).fadeIn(500);
						return false;
					},
					onHide: function (colpkr) {
						jQuery(colpkr).fadeOut(500);
						return false;
					},
					onChange: function (hsb, hex, rgb) {
						jQuery('#<?php 
            echo $value['id'];
            ?>
colorSelector div').css('backgroundColor', '#' + hex);
						jQuery('#<?php 
            echo $value['id'];
            ?>
color').val('#'+hex);
					}
				});
				sith_styling_uploader('<?php 
            echo $value['id'];
            ?>
');
				</script>
<?php 
            break;
        case 'color':
            ?>
<div id="<?php 
            echo $value['id'];
            ?>
colorSelector" class="color-pic">
  <div style="background-color:<?php 
            echo sith_get_option($value['id']);
            ?>
"></div>
</div>
<input style="width:80px; margin-right:5px;"  name="sith_options[<?php 
            echo $value['id'];
            ?>
]" id="<?php 
            echo $value['id'];
            ?>
" type="text" value="<?php 
            echo sith_get_option($value['id']);
            ?>
" />
<script>
				jQuery('#<?php 
            echo $value['id'];
            ?>
colorSelector').ColorPicker({
					color: '<?php 
            echo sith_get_option($value['id']);
            ?>
',
					onShow: function (colpkr) {
						jQuery(colpkr).fadeIn(500);
						return false;
					},
					onHide: function (colpkr) {
						jQuery(colpkr).fadeOut(500);
						return false;
					},
					onChange: function (hsb, hex, rgb) {
						jQuery('#<?php 
            echo $value['id'];
            ?>
colorSelector div').css('backgroundColor', '#' + hex);
						jQuery('#<?php 
            echo $value['id'];
            ?>
').val('#'+hex);
					}
				});
				</script>
<?php 
            break;
        case 'typography':
            $current_value = sith_get_option($value['id']);
            ?>
<div style="clear:both;"></div>
<div style="clear:both; padding:10px 14px; margin:0 -15px;">
  <div id="<?php 
            echo $value['id'];
            ?>
colorSelector" class="color-pic">
    <div style="background-color:<?php 
            echo $current_value['color'];
            ?>
"></div>
  </div>
  <input style="width:80px; margin-right:5px;"  name="sith_options[<?php 
            echo $value['id'];
            ?>
][color]" id="<?php 
            echo $value['id'];
            ?>
color" type="text" value="<?php 
            echo $current_value['color'];
            ?>
" />
  <select name="sith_options[<?php 
            echo $value['id'];
            ?>
][size]" id="<?php 
            echo $value['id'];
            ?>
[size]" style="width:55px;">
    <option value="" <?php 
            if (!$current_value['size']) {
                echo ' selected="selected"';
            }
            ?>
></option>
    <?php 
            for ($i = 1; $i < 101; $i++) {
                ?>
    <option value="<?php 
                echo $i;
                ?>
" <?php 
                if ($current_value['size'] == $i) {
                    echo ' selected="selected"';
                }
                ?>
><?php 
                echo $i;
                ?>
</option>
    <?php 
            }
            ?>
  </select>
  <select name="sith_options[<?php 
            echo $value['id'];
            ?>
][font]" id="<?php 
            echo $value['id'];
            ?>
[font]" style="width:190px;">
    <?php 
            foreach ($options_fonts as $font => $font_name) {
                if (empty($font_name) || $font_name == 'Arabic') {
                    ?>
    <optgroup disabled="disabled" label="<?php 
                    echo $font_name;
                    ?>
"></optgroup>
    <?php 
                } else {
                    ?>
    <option value="<?php 
                    echo $font;
                    ?>
" <?php 
                    if ($current_value['font'] == $font) {
                        echo ' selected="selected"';
                    }
                    ?>
><?php 
                    echo $font_name;
                    ?>
</option>
    <?php 
                }
            }
            ?>
  </select>
  <select name="sith_options[<?php 
            echo $value['id'];
            ?>
][weight]" id="<?php 
            echo $value['id'];
            ?>
[weight]" style="width:96px;">
    <option value="" <?php 
            if (!$current_value['weight']) {
                echo ' selected="selected"';
            }
            ?>
></option>
    <option value="normal" <?php 
            if ($current_value['weight'] == 'normal') {
                echo ' selected="selected"';
            }
            ?>
>Normal</option>
    <option value="bold" <?php 
            if ($current_value['weight'] == 'bold') {
                echo ' selected="selected"';
            }
            ?>
>Bold</option>
    <option value="lighter" <?php 
            if ($current_value['weight'] == 'lighter') {
                echo ' selected="selected"';
            }
            ?>
>Lighter</option>
    <option value="bolder" <?php 
            if ($current_value['weight'] == 'bolder') {
                echo ' selected="selected"';
            }
            ?>
>Bolder</option>
    <option value="100" <?php 
            if ($current_value['weight'] == '100') {
                echo ' selected="selected"';
            }
            ?>
>100</option>
    <option value="200" <?php 
            if ($current_value['weight'] == '200') {
                echo ' selected="selected"';
            }
            ?>
>200</option>
    <option value="300" <?php 
            if ($current_value['weight'] == '300') {
                echo ' selected="selected"';
            }
            ?>
>300</option>
    <option value="400" <?php 
            if ($current_value['weight'] == '400') {
                echo ' selected="selected"';
            }
            ?>
>400</option>
    <option value="500" <?php 
            if ($current_value['weight'] == '500') {
                echo ' selected="selected"';
            }
            ?>
>500</option>
    <option value="600" <?php 
            if ($current_value['weight'] == '600') {
                echo ' selected="selected"';
            }
            ?>
>600</option>
    <option value="700" <?php 
            if ($current_value['weight'] == '700') {
                echo ' selected="selected"';
            }
            ?>
>700</option>
    <option value="800" <?php 
            if ($current_value['weight'] == '800') {
                echo ' selected="selected"';
            }
            ?>
>800</option>
    <option value="900" <?php 
            if ($current_value['weight'] == '900') {
                echo ' selected="selected"';
            }
            ?>
>900</option>
  </select>
  <select name="sith_options[<?php 
            echo $value['id'];
            ?>
][style]" id="<?php 
            echo $value['id'];
            ?>
[style]" style="width:100px;">
    <option value="" <?php 
            if (!$current_value['style']) {
                echo ' selected="selected"';
            }
            ?>
></option>
    <option value="normal" <?php 
            if ($current_value['style'] == 'normal') {
                echo ' selected="selected"';
            }
            ?>
>Normal</option>
    <option value="italic" <?php 
            if ($current_value['style'] == 'italic') {
                echo ' selected="selected"';
            }
            ?>
>Italic</option>
    <option value="oblique" <?php 
            if ($current_value['style'] == 'oblique') {
                echo ' selected="selected"';
            }
            ?>
>oblique</option>
  </select>
</div>
<script>
				jQuery('#<?php 
            echo $value['id'];
            ?>
colorSelector').ColorPicker({
					color: '<?php 
            echo $current_value['color'];
            ?>
',
					onShow: function (colpkr) {
						jQuery(colpkr).fadeIn(500);
						return false;
					},
					onHide: function (colpkr) {
						jQuery(colpkr).fadeOut(500);
						return false;
					},
					onChange: function (hsb, hex, rgb) {
						jQuery('#<?php 
            echo $value['id'];
            ?>
colorSelector div').css('backgroundColor', '#' + hex);
						jQuery('#<?php 
            echo $value['id'];
            ?>
color').val('#'+hex);
						<?php 
            if ($value['id'] == 'typography_test') {
                ?>
						jQuery('#font-preview').css('color', '#' + hex);
						<?php 
            }
            ?>
					}
				});
				</script>
<?php 
            break;
    }
    if (isset($value['extra_text']) && $value['type'] != 'upload') {
        ?>
<span class="extra-text"><?php 
        echo $value['extra_text'];
        ?>
</span>
<?php 
    }
    if (isset($value['help'])) {
        ?>
<span class="themenovum-help"><?php 
        echo $value['help'];
        ?>
</span>
<?php 
    }
    ?>
</div>
<?php 
}
Beispiel #19
0
    }
    ?>
  <?php 
    get_template_part('includes/single-author');
    ?>
  <?php 
    get_template_part('includes/single-related');
    ?>
  <?php 
}
?>
  <?php 
comments_template('', true);
?>
  <?php 
if (sith_get_option('post_nav')) {
    ?>
  <div id="fnp-nav">
    <div class="fnp-previous">
      <?php 
    previous_post_link('%link', '<div class="fnp-box-left"><div class="fnp-content-left"><div class="fnp-content-border"></div><div class="fnp-nav-title">' . __($lang_previous_article) . '</div><div class="fnp-nav-link">%title</div></div></div>');
    ?>
    </div>
    <div class="fnp-next">
      <?php 
    next_post_link('%link', '<div class="fnp-box-right"><div class="fnp-content-right"><div class="fnp-content-border"></div><div class="fnp-nav-title">' . __($lang_next_article) . '</div><div class="fnp-nav-link">%title</div></div></div>');
    ?>
    </div>
  </div>
  <?php 
}
Beispiel #20
0
<?php 
sith_options(array("name" => "Sidebar Position", "id" => "sidebar_pos", "options" => array("right" => "Right", "left" => "Left"), "type" => "select"));
?>
			</div>
			
			<div class="sith-options-item">
				<h3>Add Sidebar</h3>
				<div class="option-item">
					<span class="label">Sidebar Name</span>
					
					<input id="sidebarName" type="text" size="56" style="direction:ltr; text-laign:left" name="sidebarName" value="" />
					<input id="sidebarAdd"  class="small_button" type="button" value="Add" />
					
					<ul id="sidebarsList">
					<?php 
$sidebars = sith_get_option('sidebars');
if ($sidebars) {
    foreach ($sidebars as $sidebar) {
        ?>
						<li>
							<div class="widget-head"><?php 
        echo $sidebar;
        ?>
  <input id="sith_sidebars" name="sith_options[sidebars][]" type="hidden" value="<?php 
        echo $sidebar;
        ?>
" /><a class="del-sidebar"></a></div>
						</li>
							<?php 
    }
}
Beispiel #21
0
    //}
    ?>
      <?php 
}
?>
    </div>

    <?php 
if ($wp_query->max_num_pages > 1) {
    sith_pagenavi();
}
?>

  </div>
  <!-- .content /-->
  
  <?php 
if (sith_get_option('full_home_nosidebar')) {
} else {
    ?>

  <?php 
    get_sidebar();
    ?>

  <?php 
}
?>
</div>
<?php 
get_footer();
function sith_page_options_module()
{
    global $post;
    $get_meta = get_post_custom($post->ID);
    $sith_sidebar_pos = $get_meta["sith_sidebar_pos"][0];
    if (!empty($get_meta["sith_review_criteria"][0])) {
        $sith_review_criteria = unserialize($get_meta["sith_review_criteria"][0]);
    }
    $categories_obj = get_categories();
    $categories = array();
    foreach ($categories_obj as $pn_cat) {
        $categories[$pn_cat->cat_ID] = $pn_cat->cat_name;
    }
    ?>
	
	<script type="text/javascript">
		jQuery(document).ready(function($) {
		  jQuery('.on-of').checkbox({empty:'<?php 
    echo get_template_directory_uri();
    ?>
/panel/images/empty.png'});
		 });
		jQuery(function() {
			jQuery( "#sith-reviews-list" ).sortable({placeholder: "sith-review-state-highlight"});
		});
	</script>
		<input type="hidden" name="sith_hidden_flag" value="true" />	
		
	
	
		<div class="sith-options-item">
			<h3>Sidebar Options</h3>
	<?php 
    sith_post_options(array("name" => "Sidebar Position", "id" => "sith_sidebar_pos", "options" => array("default" => "Default", "right" => "Right", "left" => "Left", "full" => "No Sidebar"), "type" => "select"));
    ?>
			<?php 
    $sidebars = sith_get_option('sidebars');
    $new_sidebars = array('' => 'Default');
    if (class_exists('Woocommerce')) {
        $new_sidebars['shop-widget-area'] = __('Shop - For WooCommerce Pages', 'sith');
    }
    if ($sidebars) {
        foreach ($sidebars as $sidebar) {
            $new_sidebars[$sidebar] = $sidebar;
        }
    }
    sith_post_options(array("name" => "Choose Sidebar", "id" => "sith_sidebar_post", "type" => "select", "options" => $new_sidebars));
    ?>
		</div>
		

  <?php 
}
Beispiel #23
0
}
if (sith_get_option('home_posts_template') != 'loop-3caption') {
} else {
    $homepage_full_layout = ' home-full-layout-nosidebar';
    define('home_full_layout', $homepage_full_layout);
}
$sith_sidebar_pos = get_query_var('cat');
if (sith_get_option('sith_sidebar_pos') != 'full') {
} else {
    $sith_sidebar_pos = ' full-width';
}
$sith_sidebar_pos = get_query_var('cat');
if (sith_get_option('sith_sidebar_pos') != 'right') {
} else {
    $sith_sidebar_pos = ' sidebar-right';
}
$sith_sidebar_pos = get_query_var('cat');
if (sith_get_option('sith_sidebar_pos') != 'left') {
} else {
    $sith_sidebar_pos = ' sidebar-left';
}
define('post_sidebar_pos', $sith_sidebar_pos);
?>
</div>
<?php 
sith_banner('banner_top', '<div class="ads-top clear">', '</div>');
?>
<div id="main-content" class="container container_12<?php 
echo $sidebar;
?>
">
Beispiel #24
0
<?php

/**************************************************************
 *                                                            *
 *   Provides a notification to the user everytime            *
 *   your WordPress theme is updated                          *
 *                                                            *
 *   Author: Joao Araujo                                      *
 *   Profile: http://themeforest.net/user/unisphere           *
 *   Follow me: http://twitter.com/unispheredesign            *
 *                                                            *
 **************************************************************/
if (sith_get_option('notify_theme') && is_admin()) {
    // Adds an update notification to the WordPress Dashboard menu
    function update_notifier_menu()
    {
        if (function_exists('simplexml_load_string') && function_exists('wp_get_theme')) {
            // Stop if simplexml_load_string funtion isn't available
            $xml = get_latest_theme_version(SILICONTHEMES_NOTIFIER_CACHE_INTERVAL);
            // Get the latest remote XML file on our server
            $theme_data = wp_get_theme();
            // Read theme current version from the style.css
            if (version_compare($xml->latest, $theme_data['Version'], '>')) {
                // Compare current theme version with the remote XML version
                //add_theme_page( SILICONTHEMES_NOTIFIER_THEME_NAME . ' Theme Updates', SILICONTHEMES_NOTIFIER_THEME_NAME . ' <span class="update-plugins count-1"><span class="update-count">1 Update</span></span>', 'administrator', 'theme-update-notifier', 'update_notifier');
                //add_submenu_page('panel', SILICONTHEMES_NOTIFIER_THEME_NAME . ' Theme Updates', SILICONTHEMES_NOTIFIER_THEME_NAME . ' <span class="update-plugins count-1"><span class="update-count">1 Update</span></span>','administrator', 'theme-update-notifier' , 'update_notifier');
                add_submenu_page('themeoptions', SILICONTHEMES_NOTIFIER_THEME_NAME . ' Theme Updates', 'Theme <span class="update-plugins count-1"><span class="update-count">1 Update</span></span>', 'administrator', 'theme-update-notifier', 'update_notifier');
            }
        }
    }
    add_action('admin_menu', 'update_notifier_menu');
Beispiel #25
0
    if (sith_get_option($posts_display) != 'posts_excerpt') {
    } else {
        get_template_part('loop-excerpt');
    }
    if (sith_get_option($posts_display) != 'posts_likegoogle') {
    } else {
        get_template_part('loop-simple-list');
    }
    if (sith_get_option($posts_display) != 'loop-2caption') {
    } else {
        get_template_part('loop-2caption');
    }
    ?>

<?php 
    if (sith_get_option($posts_display)) {
    } else {
        get_template_part('loop-excerpt');
    }
    //}
}
?>
</div>

<?php 
if (!have_posts()) {
    ?>
<div id="post-0" class="post not-found container-posts" style=" background:#fff; border:1px solid #ddd">
  <h2 class="post-title">
   <?php 
    echo lang_not_found;
Beispiel #26
0
sith_options(array("name_checkbox" => "Home Builder Disabled?", "id" => "disable_home_builder", "type" => "checkbox"));
?>
			</div>	
                	
			</div>
            
            
            
			
			<div class="sith-options-item">
				<h3>Categories Tabs Box</h3>
				
				<?php 
sith_options(array("name_checkbox" => "Show Category Tabs Box", "id" => "home_tabs_box", "type" => "checkbox"));
if (sith_get_option('home_tabs')) {
    $sith_home_tabs = sith_get_option('home_tabs');
} else {
    $sith_home_tabs = array();
}
$sith_home_tabs_new = array();
foreach ($sith_home_tabs as $key1 => $option1) {
    if (array_key_exists($option1, $categories)) {
        $sith_home_tabs_new[$option1] = $categories[$option1];
    }
}
foreach ($categories as $key2 => $option2) {
    if (!in_array($key2, $sith_home_tabs)) {
        $sith_home_tabs_new[$key2] = $option2;
    }
}
?>
Beispiel #27
0
			</script>
		</li>
	<?php 
}
?>
	<?php 
if (sith_get_option('share_linkdin')) {
    ?>
		<li><script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="<?php 
    the_permalink();
    ?>
" data-counter="right"></script></li>
	<?php 
}
?>
	<?php 
if (sith_get_option('share_pinterest')) {
    ?>
		<li style="width:80px;"><script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script><a href="http://pinterest.com/pin/create/button/?url=<?php 
    the_permalink();
    ?>
&amp;media=<?php 
    echo sith_thumb_src('slider');
    ?>
" class="pin-it-button" count-layout="horizontal"><img border="0" src="http://assets.pinterest.com/images/PinExt.png" title="Pin It" /></a></li>
	<?php 
}
?>
	</ul>
	<div class="clear"></div>
</div> <!-- .share-post -->
Beispiel #28
0
function sith_option_posts_per_page($value)
{
    global $option_posts_per_page;
    if (is_home() && sith_get_option('display_homepage') == 'boxes') {
        return 1;
    } else {
        return $option_posts_per_page;
    }
}
Beispiel #29
0
    ?>
 excerpt-space<?php 
}
?>
">
      <?php 
if (sith_get_option('post_title_position')) {
} else {
    ?>
      <?php 
    get_template_part('includes/archives-meta');
    ?>
      <?php 
}
?>
      <p> <?php 
echo sith_content_limit(get_the_excerpt(), $post_excerpt_limit);
?>
 </p>
    </div>
    <?php 
if (sith_get_option('archives_social')) {
    get_template_part('includes/single-share');
}
// Get Share Button template
?>
    <div class="clear"></div>
  </article>
  <!-- .default-loop-post --> 
</div>
Beispiel #30
0
function sith_banner($banner, $before = false, $after = false)
{
    if (sith_get_option($banner)) {
        echo $before;
        ?>
		<?php 
        if (sith_get_option($banner . '_img')) {
            $target = $nofollow = "";
            if (sith_get_option($banner . '_tab')) {
                $target = 'target="_blank"';
            }
            if (sith_get_option($banner . '_nofollow')) {
                $nofollow = 'rel="nofollow"';
            }
            ?>
			
			<a href="<?php 
            echo sith_get_option($banner . '_url');
            ?>
" title="<?php 
            echo sith_get_option($banner . '_alt');
            ?>
" <?php 
            echo $target;
            echo $nofollow;
            ?>
>
				<img src="<?php 
            echo sith_get_option($banner . '_img');
            ?>
" alt="<?php 
            echo sith_get_option($banner . '_alt');
            ?>
" />
			</a>
		<?php 
        } elseif (sith_get_option($banner . '_publisher')) {
            ?>
		<script type="text/javascript">
			var adWidth = jQuery(document).width();
			google_ad_client = "<?php 
            echo sith_get_option($banner . '_publisher');
            ?>
";
			<?php 
            if ($banner != 'banner_above' && $banner != 'banner_below') {
                ?>
if ( adWidth >= 768 ) {
			  google_ad_slot	= "<?php 
                echo sith_get_option($banner . '_728');
                ?>
";
			  google_ad_width	= 728;
			  google_ad_height 	= 90;
			} else <?php 
            }
            ?>
 if ( adWidth >= 468 ) {
			  google_ad_slot	= "<?php 
            echo sith_get_option($banner . '_468');
            ?>
";
			  google_ad_width 	= 468;
			  google_ad_height 	= 60;
			}else {
			  google_ad_slot 	= "<?php 
            echo sith_get_option($banner . '_300');
            ?>
";
			  google_ad_width 	= 300;
			  google_ad_height 	= 250;
			}
		</script>
		<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
		<?php 
        } elseif (sith_get_option($banner . '_adsense')) {
            ?>
			<?php 
            echo do_shortcode(htmlspecialchars_decode(sith_get_option($banner . '_adsense')));
            ?>
		<?php 
        }
        ?>
		<?php 
        echo $after;
    }
}