function rt_get_base_page($for = "") { $page = ""; if ($for == "products" && RT_PRODUCTPAGE != "") { $page = rt_create_breadcrumb_item(array("url" => get_permalink(rt_wpml_page_id(RT_PRODUCTPAGE)), "title" => get_the_title(rt_wpml_page_id(RT_PRODUCTPAGE)))); } elseif ($for == "portfolio" && RT_PORTFOLIOPAGE != "") { $page = rt_create_breadcrumb_item(array("url" => get_permalink(rt_wpml_page_id(RT_PORTFOLIOPAGE)), "title" => get_the_title(rt_wpml_page_id(RT_PORTFOLIOPAGE)))); } elseif ($for == "blog" && RT_BLOGPAGE != "") { $page = rt_create_breadcrumb_item(array("url" => get_permalink(rt_wpml_page_id(RT_BLOGPAGE)), "title" => get_the_title(rt_wpml_page_id(RT_BLOGPAGE)))); } return $page; }
function rt_is_portfolio_page() { global $rt_taxonomy, $rt_post_type, $post, $rt_templateID; $post_id = is_object($post) ? rt_wpml_page_id($post->ID) : ""; if (RT_PORTFOLIOPAGE != "" && $post_id == RT_PORTFOLIOPAGE) { return true; } if ($rt_taxonomy == "portfolio_categories" || $rt_post_type == 'portfolio') { return true; } //check default porfolio template usage if ($rt_templateID == "templateid_002") { return true; } }
?> <?php if (!get_option(RT_THEMESLUG . '_hide_woo_cart') && class_exists('Woocommerce')) { ?> <?php global $woocommerce; ?> <?php if (is_user_logged_in()) { ?> <li class="icon-user"><a href="<?php echo get_permalink(rt_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="icon-logout"><a href="<?php echo wp_logout_url(home_url('/')); ?> " title="<?php _e('Logout', 'rt_theme'); ?> "><?php