function is_contact_page()
{
    global $post;
    @($post->ID = wpml_page_id($post->ID));
    if ($post->ID == CONTACTPAGE) {
        return true;
    }
    //check default contact template usage
    if (get_post_meta($post->ID, THEMESLUG . 'custom_sidebar_position', true) == "templateid_005") {
        return true;
    }
}
Exemple #2
0
    ?>
" title="<?php 
    _e('View your shopping cart', 'rt_theme');
    ?>
"><?php 
    echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'rt_theme'), $woocommerce->cart->cart_contents_count);
    ?>
 - <?php 
    echo $woocommerce->cart->get_cart_total();
    ?>
</a></li>
		  <?php 
    if (is_user_logged_in()) {
        ?>
		  <li class="user"><a href="<?php 
        echo get_permalink(wpml_page_id(get_option('woocommerce_myaccount_page_id')));
        ?>
" title="<?php 
        _e('My Account', 'rt_theme');
        ?>
"><?php 
        _e('My Account', 'rt_theme');
        ?>
</a></li>
		  <li class="logout"><a href="<?php 
        echo wp_logout_url(home_url('/'));
        ?>
" title="<?php 
        _e('Logout', 'rt_theme');
        ?>
"><?php