Esempio n. 1
0
    function zupp_logo_function($class = "class=''")
    {
        ?>
		
        <div id="logo" <?php 
        echo $class;
        ?>
>
        
            <a href="<?php 
        echo home_url();
        ?>
" title="<?php 
        bloginfo('name');
        ?>
">
                                                    
                <?php 
        if (zupp_setting('zupp_custom_logo')) {
            echo "<img src='" . zupp_setting('zupp_custom_logo') . "' alt='logo'>";
        } else {
            echo "<span class='sitename'>" . get_bloginfo('name') . "</span>";
            echo "<span class='sitedescription'>" . get_bloginfo('description') . "</span>";
        }
        ?>
                                                        
            </a>
        
        </div>
                                    
<?php 
    }
Esempio n. 2
0
    function zupp_socials_function()
    {
        $socials = array("facebook" => array("icon" => "fa fa-facebook", "target" => "_blank"), "twitter" => array("icon" => "fa fa-twitter", "target" => "_blank"), "flickr" => array("icon" => "fa fa-flickr", "target" => "_blank"), "google" => array("icon" => "fa fa-google-plus", "target" => "_blank"), "linkedin" => array("icon" => "fa fa-linkedin", "target" => "_blank"), "pinterest" => array("icon" => "fa fa-pinterest", "target" => "_blank"), "tumblr" => array("icon" => "fa fa-tumblr", "target" => "_blank"), "youtube" => array("icon" => "fa fa-youtube", "target" => "_blank"), "skype" => array("icon" => "fa fa-skype", "target" => "_self"), "instagram" => array("icon" => "fa fa-instagram", "target" => "_blank"), "github" => array("icon" => "fa fa-github", "target" => "_blank"), "xing" => array("icon" => "fa fa-xing", "target" => "_blank"), "whatsapp" => array("icon" => "fa fa-whatsapp", "target" => "_self"), "email" => array("icon" => "fa fa-envelope", "target" => "_self"));
        $i = 0;
        $html = "";
        foreach ($socials as $name => $attrs) {
            if (zupp_setting('zupp_footer_' . $name . '_button')) {
                $i++;
                $html .= '<a href="' . esc_url(zupp_setting('zupp_footer_' . $name . '_button'), array('http', 'https', 'tel', 'skype', 'mailto')) . '" target="' . $attrs['target'] . '" class="social ' . $name . '-button"> <i class="' . $attrs['icon'] . '" ></i> </a> ';
            }
        }
        if (zupp_setting('zupp_footer_rss_button') == "on") {
            $i++;
            $html .= '<a href="' . esc_url(get_bloginfo('rss2_url')) . '" title="Rss" class="social rss"> <i class="fa fa-rss" ></i>  </a> ';
        }
        if ($i > 0) {
            ?>
	
		<div class="socials">
				
			<?php 
            echo $html;
            ?>
							
		</div>
	
		<?php 
        }
    }
Esempio n. 3
0
    function zupp_infinitescroll_script_function($page)
    {
        if (zupp_setting($page) == "full") {
            $container = "'body.infinitescroll #blog'";
            $item = "#blog .post-container";
        } else {
            $container = "'body.infinitescroll #blog .row'";
            $item = "#blog .row .post-container";
        }
        ?>
	
		<script type="text/javascript">
	
			jQuery.noConflict()(function($){
						
				$(<?php 
        echo $container;
        ?>
).infinitescroll({
					navSelector  : ".wp-pagenavi",            
					nextSelector : ".wp-pagenavi a:first",    
					itemSelector : "<?php 
        echo $item;
        ?>
",
					loading: {
						img: "",
						msgText: '<div class="load-more"><i class="fa fa-circle-o-notch fa-spin"></i></div>',
					},
					
				}, 
					
				function(newElements) {
							
					var $newElems = $(newElements).css({
						opacity: 0
					});
					
					$newElems.imagesLoaded(function () {
								
						$newElems.animate({
							opacity: 1
						});
	
					});
					
				});
					
			});
						
		</script>
		
<?php 
    }
Esempio n. 4
0
 function zupp_excerpt_function()
 {
     global $post, $more;
     $more = 0;
     $class = 'button';
     $button = __('Read more', "zupp");
     if (zupp_setting('zupp_readmore_button') == "off") {
         $class = 'more';
         $button = ' [...] ';
     }
     if ($pos = strpos($post->post_content, '<!--more-->')) {
         $content = substr(apply_filters('the_content', get_the_content()), 0, -5);
     } else {
         $content = substr(apply_filters('the_excerpt', get_the_excerpt()), 0, -5);
     }
     echo $content . '<a class="' . $class . '" href="' . get_permalink($post->ID) . '" title="More">' . $button . '</a></p>';
 }
Esempio n. 5
0
		<?php 
if (is_active_sidebar(zupp_sidebar_name('scroll'))) {
    dynamic_sidebar(zupp_sidebar_name('scroll'));
}
?>
	    
		<div class="post-article">

			<div class="copyright">
	                
				<p>
				
					<?php 
if (zupp_setting('zupp_copyright_text')) {
    echo stripslashes(zupp_setting('zupp_copyright_text'));
} else {
    echo __('Copyright ', 'zupp') . get_bloginfo("name") . " " . date("Y");
}
echo " | " . __('Theme by', 'zupp');
?>
 
                    
                    	<a href="<?php 
echo esc_url('https://www.goatshark.com/');
?>
" target="_blank">Goatshark Enterprises, LLC</a> |
                        
                        <a href="<?php 
echo esc_url(__('http://wordpress.org/', 'zupp'));
?>
Esempio n. 6
0
 function zupp_body_classes_function($classes)
 {
     global $wp_customize;
     if (zupp_setting('zupp_infinitescroll_system') == "on") {
         $classes[] = 'infinitescroll';
     }
     if (zupp_is_single() && (zupp_get_header_layout() == "header_five" || zupp_get_header_layout() == "header_six")) {
         $classes[] = 'hide_title';
     }
     if (preg_match('~MSIE|Internet Explorer~i', $_SERVER['HTTP_USER_AGENT']) || strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0') !== false) {
         $classes[] = 'ie_browser';
     }
     if (isset($wp_customize)) {
         $classes[] = 'customizer_active';
     }
     return $classes;
 }
Esempio n. 7
0
function zupp_css_custom()
{
    echo '<style type="text/css">';
    /* =================== BODY STYLE =================== */
    if (get_theme_mod('zupp_full_image_background') == "on") {
        echo "body {  -webkit-background-size: cover;-moz-background-size: cover;-o-background-size: cover;background-size: cover;}";
    }
    /* =================== END BODY STYLE =================== */
    /* =================== HEADER STYLE =================== */
    if (get_theme_mod('zupp_full_image_header_background') == "on" || !get_theme_mod('zupp_full_image_header_background')) {
        echo "#header { -webkit-background-size: cover;-moz-background-size: cover;-o-background-size: cover;background-size: cover;}";
    } else {
        echo "#header { -webkit-background-size: inherit;-moz-background-size: inherit;-o-background-size: inherit;background-size: inherit;}";
    }
    if (get_theme_mod('zupp_header_background_position')) {
        echo "#header { background-position:" . get_theme_mod('zupp_header_background_position') . ";}";
    }
    if (get_theme_mod('zupp_header_background_repeat')) {
        echo "#header { background-repeat:" . get_theme_mod('zupp_header_background_repeat') . ";}";
    }
    if (get_theme_mod('zupp_header_background_attachment')) {
        echo "#header { background-attachment:" . get_theme_mod('zupp_header_background_attachment') . ";}";
    }
    if (get_theme_mod('zupp_header_padding')) {
        echo "#header { padding: " . get_theme_mod('zupp_header_padding') . " 0; }";
    }
    if (get_theme_mod('header_image')) {
        echo "#header { background-image:url('" . get_theme_mod('header_image') . "')}";
    }
    if (get_theme_mod('header_image') == "remove-header") {
        echo "#header { background:none !important; margin-bottom:0 !important; padding:50px 0 !important;}";
    }
    /* =================== END HEADER STYLE =================== */
    if (get_theme_mod('header_textcolor')) {
        echo '#header a, #header .navigation i, #logo a span.sitename, #logo a span.sitedescription, #slogan, #slogan h1, #slogan span { color: #' . get_theme_mod('header_textcolor') . '; } ';
    }
    if (zupp_setting('zupp_header_textcolor_hover')) {
        echo '#header a:hover, #logo a:hover span.sitename, #logo a:hover span.sitedescription , #header .navigation i:hover { color: ' . zupp_setting('zupp_header_textcolor_hover') . ' }';
    }
    /* =================== BEGIN PAGE WIDTH =================== */
    if (zupp_setting('zupp_screen1')) {
        echo "@media (min-width:768px){.container{width:" . zupp_setting('zupp_screen1') . "px}}";
        echo "@media (min-width:768px){.container.block{width:" . (zupp_setting('zupp_screen1') - 10) . "px}}";
    }
    if (zupp_setting('zupp_screen2')) {
        echo "@media (min-width:992px){.container{width:" . zupp_setting('zupp_screen2') . "px}}";
        echo "@media (min-width:992px){.container.block{width:" . (zupp_setting('zupp_screen2') - 10) . "px}}";
    }
    if (zupp_setting('zupp_screen3')) {
        echo "@media (min-width:1200px){.container{width:" . zupp_setting('zupp_screen3') . "px}}";
        echo "@media (min-width:1200px){.container.block{width:" . (zupp_setting('zupp_screen3') - 10) . "px}}";
    }
    /* =================== END PAGE WIDTH =================== */
    /* =================== BEGIN LOGO STYLE =================== */
    /* Logo Font Size */
    if (zupp_setting('zupp_logo_font_size')) {
        echo "#logo a span.sitename { font-size:" . zupp_setting('zupp_logo_font_size') . "; } ";
    }
    /* Logo Description */
    if (zupp_setting('zupp_logo_description_size')) {
        echo "#logo a span.sitedescription { font-size:" . zupp_setting('zupp_logo_description_size') . "; } ";
    }
    /* =================== END LOGO STYLE =================== */
    /* =================== BEGIN SLOGAN STYLE =================== */
    /* Slogan Font Size */
    if (zupp_setting('zupp_slogan_font_size')) {
        echo "#slogan, #slogan h1 { font-size:" . zupp_setting('zupp_slogan_font_size') . "; } ";
    }
    /* Subslogan Font Size */
    if (zupp_setting('zupp_subslogan_font_size')) {
        echo "#slogan span { font-size:" . zupp_setting('zupp_subslogan_font_size') . "; } ";
    }
    /* =================== END SLOGAN STYLE =================== */
    /* =================== BEGIN NAV STYLE =================== */
    $navstyle = '';
    /* Nav  Font Size */
    if (zupp_setting('zupp_menu_font_size')) {
        echo "nav.custommenu ul li a, #footer nav.custommenu ul li a { font-size:" . zupp_setting('zupp_menu_font_size') . ";}";
        echo "nav.custommenu ul ul li a, #footer nav.custommenu ul ul li a { font-size:" . (str_replace("px", "", zupp_setting('zupp_menu_font_size')) - 4) . "px;}";
    }
    /* =================== END NAV STYLE =================== */
    /* =================== BEGIN CONTENT STYLE =================== */
    if (zupp_setting('zupp_content_font_size')) {
        echo ".post-article p, .post-article li, .post-article address, .post-article dd, .post-article blockquote, .post-article td, .post-article th, .textwidget, .toggle_container h5.element  { font-size:" . zupp_setting('zupp_content_font_size') . "}";
    }
    /* =================== END CONTENT STYLE =================== */
    /* =================== START TITLE STYLE =================== */
    $titlestyle = '';
    if (zupp_setting('zupp_h1_font_size')) {
        echo "h1 {font-size:" . zupp_setting('zupp_h1_font_size') . "; }";
    }
    if (zupp_setting('zupp_h2_font_size')) {
        echo "h2 { font-size:" . zupp_setting('zupp_h2_font_size') . "; }";
    }
    if (zupp_setting('zupp_h3_font_size')) {
        echo "h3 { font-size:" . zupp_setting('zupp_h3_font_size') . "; }";
    }
    if (zupp_setting('zupp_h4_font_size')) {
        echo "h4 { font-size:" . zupp_setting('zupp_h4_font_size') . "; }";
    }
    if (zupp_setting('zupp_h5_font_size')) {
        echo "h5 { font-size:" . zupp_setting('zupp_h5_font_size') . "; }";
    }
    if (zupp_setting('zupp_h6_font_size')) {
        echo "h6 { font-size:" . zupp_setting('zupp_h6_font_size') . "; }";
    }
    /* =================== END TITLE STYLE =================== */
    /* =================== END LINK STYLE =================== */
    if (zupp_setting('zupp_custom_css_code')) {
        echo zupp_setting('zupp_custom_css_code');
    }
    echo '</style>';
}
Esempio n. 8
0
bloginfo('charset');
?>
" />
<meta http-equiv="Content-Type" content="<?php 
bloginfo('html_type');
?>
; charset=<?php 
bloginfo('charset');
?>
" />

<?php 
if (zupp_setting('zupp_custom_favicon')) {
    ?>
<link rel="shortcut icon" href="<?php 
    echo zupp_setting('zupp_custom_favicon');
    ?>
"/><?php 
}
?>

<link rel="stylesheet" href="<?php 
bloginfo('stylesheet_url');
?>
" media="screen" />

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.2, user-scalable=yes" />

<!--[if IE 8]>
    <script src="<?php 
echo get_template_directory_uri();
Esempio n. 9
0
            <div <?php 
        post_class();
        ?>
 >
    
				<?php 
        do_action('zupp_postformat');
        ?>
        
                <div style="clear:both"></div>
            
			</div>
		
		<?php 
    }
    if (zupp_setting('zupp_infinitescroll_system') == "on") {
        do_action('zupp_infinitescroll_script', 'zupp_home');
    }
} else {
    ?>

			<div class="pin-article col-md-12" >
        
                <article class="article category">
                        
                    <div class="post-article">
        
                        <h2><?php 
    _e('Content not found', "zupp");
    ?>
</h2>           
Esempio n. 10
0
    function zupp_masonry_function()
    {
        ?>
	
		<div class="row" id="masonry">
			
			<?php 
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                ?>
	   
                <article <?php 
                post_class();
                ?>
>
                
                    <?php 
                do_action('zupp_postformat');
                ?>
                
                </article>
	
			<?php 
            }
            do_action('zupp_masonry_script');
            if (zupp_setting('zupp_infinitescroll_system') == "on") {
                do_action('zupp_infinitescroll_masonry_script');
            }
        } else {
            ?>
    
                <article class="post-container col-md-12" >
            
					<div class="post-article">
            
						<h1><?php 
            _e('Content not found', "zupp");
            ?>
</h1>           
                            
						<p> <?php 
            _e('No article found in this blog.', "zupp");
            ?>
 </p>
            
						<h2> <?php 
            _e('What can i do?', "zupp");
            ?>
 </h2>           
            
						<p> <a href="<?php 
            echo esc_url(home_url('/'));
            ?>
" title="<?php 
            bloginfo('name');
            ?>
"> <?php 
            _e('Back to the homepage', "zupp");
            ?>
 </a> </p>
                          
						<p> <?php 
            _e('Make a search, from the below form:', "zupp");
            ?>
 </p>
                            
						<section class="contact-form">
                            
							<form method="get" id="searchform" action="<?php 
            echo home_url('/');
            ?>
">
							<input type="text" value="<?php 
            _e('Search', "zupp");
            ?>
" name="s" id="s" onblur="if (this.value == '') {this.value = '<?php 
            _e('Search', "zupp");
            ?>
';}" onfocus="if (this.value == '<?php 
            _e('Search', "zupp");
            ?>
') {this.value = '';}" class="input-search"/>
							<input type="submit" id="searchsubmit" class="button-search" value="<?php 
            _e('Search', "zupp");
            ?>
" />
							</form>
                                
							<div class="clear"></div>
                                
						</section>
             
                   </div>
            
                </article>
        
            <?php 
        }
        ?>
			
		</div>
		
	<?php 
    }
Esempio n. 11
0
<?php

get_header();
do_action('zupp_header_sidebar', 'header-sidebar-area');
if (!zupp_setting('zupp_home') || zupp_setting('zupp_home') == "masonry") {
    get_template_part('layouts/home-masonry');
} else {
    get_template_part('layouts/home-blog');
}
do_action('zupp_bottom_sidebar', 'bottom-sidebar-area');
get_footer();
Esempio n. 12
0
<?php

get_header();
do_action('zupp_header_sidebar', 'header-sidebar-area');
if (!zupp_setting('zupp_search_layout') || zupp_setting('zupp_search_layout') == "masonry") {
    get_template_part('layouts/search-masonry');
} else {
    get_template_part('layouts/search-blog');
}
do_action('zupp_bottom_sidebar', 'bottom-sidebar-area');
get_footer();
Esempio n. 13
0
<?php

get_header();
do_action('zupp_header_sidebar', 'header-sidebar-area');
if (!zupp_setting('zupp_category_layout') || zupp_setting('zupp_category_layout') == "masonry") {
    get_template_part('layouts/archive-masonry');
} else {
    get_template_part('layouts/archive-blog');
}
do_action('zupp_bottom_sidebar', 'bottom-sidebar-area');
get_footer();
Esempio n. 14
0
 function zupp_template($id)
 {
     $template = array("full" => "col-md-12", "left-sidebar" => "col-md-8", "right-sidebar" => "col-md-8");
     $span = $template["right-sidebar"];
     $sidebar = "right-sidebar";
     if ((is_category() || is_tag() || is_tax() || is_month()) && zupp_setting('zupp_category_layout')) {
         $span = $template[zupp_setting('zupp_category_layout')];
         $sidebar = zupp_setting('zupp_category_layout');
     } else {
         if (is_home() && zupp_setting('zupp_home')) {
             $span = $template[zupp_setting('zupp_home')];
             $sidebar = zupp_setting('zupp_home');
         } else {
             if (is_search() && zupp_setting('zupp_search_layout')) {
                 $span = $template[zupp_setting('zupp_search_layout')];
                 $sidebar = zupp_setting('zupp_search_layout');
             } else {
                 if ((is_single() || is_page()) && zupp_postmeta('zupp_template')) {
                     $span = $template[zupp_postmeta('zupp_template')];
                     $sidebar = zupp_postmeta('zupp_template');
                 }
             }
         }
     }
     return ${$id};
 }
Esempio n. 15
0
 function zupp_get_height()
 {
     if (zupp_setting('zupp_thumbnails')) {
         return zupp_setting('zupp_thumbnails');
     } else {
         return "600";
     }
 }