function klasik_styles()
{
    wp_register_style('prettyphoto-css', get_template_directory_uri() . '/css/prettyPhoto.css', '', '', 'screen, all');
    wp_enqueue_style('prettyphoto-css');
    if (is_admin()) {
        wp_register_style('admin-css', get_template_directory_uri() . '/css/admin.css', '', '', 'screen, all');
        wp_enqueue_style('admin-css');
    }
    if (!is_admin()) {
        wp_register_style('googleFonts', (is_ssl() ? 'https' : 'http') . '://fonts.googleapis.com/css?family=Open+Sans:400,600,300,700,600italic,400italic,300italic,700italic');
        wp_enqueue_style('googleFonts');
        wp_register_style('skeleton-css', get_template_directory_uri() . '/css/skeleton.css', '', '', 'screen, all');
        wp_enqueue_style('skeleton-css');
        wp_register_style('general-css', get_template_directory_uri() . '/css/general.css', '', '', 'screen, all');
        wp_enqueue_style('general-css');
        wp_register_style('flexslider-css', get_template_directory_uri() . '/css/flexslider.css', '', '', 'screen, all');
        wp_enqueue_style('flexslider-css');
        wp_register_style('fontawesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '4.0.3', 'all');
        wp_enqueue_style('fontawesome');
        wp_register_style('main-css', get_bloginfo('stylesheet_url'), '', '', 'all');
        wp_enqueue_style('main-css');
        if (file_exists(get_stylesheet_directory() . '/color.css')) {
            wp_register_style('color-css', get_stylesheet_directory_uri() . '/color.css', '', '', 'screen, all');
        } else {
            wp_register_style('color-css', get_stylesheet_directory_uri() . '/css/color.css', '', '', 'screen, all');
        }
        wp_enqueue_style('color-css');
        if (file_exists(get_stylesheet_directory() . '/rtl.css')) {
            wp_register_style('rtl-css', get_stylesheet_directory_uri() . '/rtl.css', '', '', 'screen, all');
            $enablertl = klasik_get_option('klasik_enable_rtl', '');
            if ($enablertl == '1') {
                wp_enqueue_style('rtl-css');
            }
        }
        if (file_exists(get_stylesheet_directory() . '/fixedmenu.css')) {
            wp_register_style('fixedmenu-css', get_stylesheet_directory_uri() . '/fixedmenu.css', '', '', 'screen, all');
            $enable_fixedmenu = klasik_get_option('klasik_enable_fixed_menu', '');
            if ($enable_fixedmenu == '1') {
                wp_enqueue_style('fixedmenu-css');
            }
        }
        wp_register_style('layout-css', get_stylesheet_directory_uri() . '/css/layout.css', '', '', 'all');
        wp_enqueue_style('layout-css');
        wp_register_style('noscript-css', get_stylesheet_directory_uri() . '/css/noscript.css', '', '', 'screen, all');
        wp_enqueue_style('noscript-css');
    }
}
Example #2
0
function klasik_footer_sidebar_init()
{
    $footcolumn = klasik_get_option('klasik_foot_column', '3');
    //get column
    if ($footcolumn == "1") {
        $typecol = "twelve columns";
    } elseif ($footcolumn == "2") {
        $typecol = "six columns";
    } elseif ($footcolumn == "3") {
        $typecol = "four columns";
    } elseif ($footcolumn == "4") {
        $typecol = "three columns";
    } elseif ($footcolumn == "5") {
        $typecol = "one_fifth columns";
    } else {
        $typecol = "two columns";
    }
    register_sidebar(array('name' => __('Footer Sidebar', 'klasik'), 'id' => 'footer', 'description' => __('Located at the footer column.', 'klasik'), 'before_widget' => '<div class="' . $typecol . '"><div class="widget-footer"><ul><li id="%1$s" class="widget-container %2$s">', 'after_widget' => '<div class="clear"></div></li></ul><div class="clear"></div></div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
}
Example #3
0
" />
<title><?php 
wp_title('|', true, 'right');
?>
</title>
<link rel="alternate" id="templateurl" href="<?php 
echo get_template_directory_uri();
?>
" />
<link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
" />

<?php 
$disableResponsive = klasik_get_option('klasik_disable_responsive', '');
if ($disableResponsive != '1') {
    ?>
<!-- Mobile Specific Metas
  ================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<?php 
}
?>

<!--[if lt IE 9]>
<script src="<?php 
echo get_template_directory_uri();
?>
/js/html5.js" type="text/javascript"></script>
<![endif]-->
Example #4
0
    function klasik_logo()
    {
        $logotype = klasik_get_option('klasik_logo_type');
        $logoimage = klasik_get_option('klasik_logo_image');
        $sitename = klasik_get_option('klasik_site_name');
        $tagline = klasik_get_option('klasik_tagline');
        if ($logoimage == "") {
            $logoimage = get_stylesheet_directory_uri() . "/images/logo.png";
        }
        ?>
		<?php 
        if ($logotype == 'textlogo') {
            ?>
			
			<?php 
            if ($sitename == "" && $tagline == "") {
                ?>
                <h1><a href="<?php 
                echo home_url('/');
                ?>
" title="<?php 
                _e('Click for Home', 'klasik');
                ?>
"><?php 
                bloginfo('name');
                ?>
</a></h1><span class="desc"><?php 
                bloginfo('description');
                ?>
</span>
            <?php 
            } else {
                ?>
                <h1><a href="<?php 
                echo home_url('/');
                ?>
" title="<?php 
                _e('Click for Home', 'klasik');
                ?>
"><?php 
                echo $sitename;
                ?>
</a></h1><span class="desc"><?php 
                echo $tagline;
                ?>
</span>
            <?php 
            }
            ?>
        
        <?php 
        } else {
            ?>
        	
            <div id="logoimg">
            <a href="<?php 
            echo home_url('/');
            ?>
" title="<?php 
            echo esc_attr(get_bloginfo('name', 'klasik'));
            ?>
" >
                <img src="<?php 
            echo $logoimage;
            ?>
" alt="" />
            </a>
            </div>
            
		<?php 
        }
    }
Example #5
0
    if (!dynamic_sidebar('maintop')) {
    }
    ?>
                        	<div class="clear"></div>
                        </div>
                  
                    <?php 
}
?>
                
                <div id="maincontent-container">  
                <div class="container">
                    <div class="row">
                    
                    <?php 
$sidebarposition = klasik_get_option('klasik_sidebar_position', 'two-col-left');
if (is_home()) {
    $pid = get_option('page_for_posts');
} else {
    $pid = '';
}
$custom_fields = klasik_get_customdata($pid);
$pagelayout = $sidebarposition;
if (isset($custom_fields['klasik_layout'][0]) && $custom_fields['klasik_layout'][0] != 'default') {
    $pagelayout = $custom_fields['klasik_layout'][0];
}
if ($pagelayout != 'one-col') {
    $mcontentclass = "hassidebar";
    $contentclass = 'contentcol columns ';
    if ($pagelayout == "two-col-left") {
        $mcontentclass .= " mborderright";
Example #6
0

<?php 
$footerscript = stripslashes(klasik_get_option('klasik_footerscript'));
if ($footerscript == "false") {
} else {
    ?>
<script>
<?php 
    echo $footerscript;
    ?>
</script>
<?php 
}
/* Always have wp_footer() just before the closing </body>
 * tag of your theme, or you will break many plugins, which
 * generally use this hook to reference JavaScript files.
 */
wp_footer();
?>
</body>
</html>
Example #7
0
    function klasik_print_js_fixed_menu()
    {
        ?>
	<script type="text/javascript">
	
		<?php 
        if (file_exists(get_stylesheet_directory() . '/fixedmenu.css')) {
            $enablefixedmenu = klasik_get_option('klasik_enable_fixed_menu', '');
            if ($enablefixedmenu) {
                ?>
		// Sticky menu
		jQuery(document).ready(function() {
			var stickyNavTop = jQuery('.fixedmenu').offset().top;
			
			var stickyNav = function(){
			var scrollTop = jQuery(window).scrollTop();
				 
			if (scrollTop > stickyNavTop) { 
				jQuery('.fixedmenu').addClass('sticky');
			} else {
				jQuery('.fixedmenu').removeClass('sticky'); 
			}
			};
			
			stickyNav();
			
			jQuery(window).scroll(function() {
				stickyNav();
			});
		});
		<?php 
            }
        }
        ?>
		
	</script>
	<?php 
    }
Example #8
0
/**
 * The Header for our theme.
 *
 *
 * @package WordPress
 * @subpackage Klasik
 * @since Klasik 1.0
 */
?>

<?php 
get_template_part('site-header');
?>

<?php 
$disableSlider = klasik_get_option('klasik_disable_slider', '');
?>

<div id="bodychild">
	<div id="outercontainer">
    
        <!-- HEADER -->
        <div id="outerheader" class="fixedmenu">
        	<div id="headercontainer">
                <div class="container">
                    <header id="top">
                        <div class="row">
                        
                            <div id="logo" class="four columns"><?php 
klasik_logo();
?>