Пример #1
0
if (!$logo_url) {
    $logo_url = THEMEURL . 'images/kolor.png';
}
?>

	<!-- site header container -->
	<div class="container header_menu_container">
		
		<!-- site logo and menu container -->
		<div class="site_logo_menu">
			
			<!-- site logo -->
			<div class="four columns logo">
				
				<a href="<?php 
echo is_wpml() ? icl_get_home_url() : site_url('/');
?>
">
					<img src="<?php 
echo $logo_url;
?>
" />
					<?php 
if ($retina_logo_url) {
    $upload_dir = wp_upload_dir();
    $image_path = ABSPATH . str_replace(site_url('/'), '', $retina_logo_url);
    $retina_logo_width = '';
    if (file_exists($image_path)) {
        $retina_logo_width = getimagesize($image_path);
        $retina_logo_width = intval($retina_logo_width[0] / 2);
    }
Пример #2
0
    $phc_title = $_REQUEST['phc_title'];
    update_post_meta($post_id, 'phc_title', $phc_title);
    # Page Head Caption - Description
    $phc_description = $_REQUEST['phc_description'];
    update_post_meta($post_id, 'phc_description', $phc_description);
}
/* Flush rewrite rules for when post is saved */
add_action('save_post', 'laborator_flush_rewrite_rules');
/* Flush your rewrite rules */
function laborator_flush_rewrite_rules()
{
    global $wp_rewrite;
    $wp_rewrite->flush_rules();
}
/* WPML Functions */
if (is_wpml()) {
    get_template_part('inc/kolor-wpml');
}
/* Endless Scrolling */
get_template_part('inc/endless_scrolling');
/* Define Months for Translation */
__('January', TD);
__('February', TD);
__('March', TD);
__('April', TD);
__('May', TD);
__('June', TD);
__('July', TD);
__('August', TD);
__('September', TD);
__('October', TD);