/** * Display out latest Tweets using the Twitter 1.1 API */ function display_latest_tweets($username, $no_tweets, $reply) { $twitterConnection = new TwitterOAuth(rd_options('reedwan_tweet_consumer_key'), rd_options('reedwan_tweet_consumer_secret'), rd_options('reedwan_tweet_access_token'), rd_options('reedwan_tweet_token_secret')); $twitterData = $twitterConnection->get('statuses/user_timeline', array('screen_name' => $username, 'count' => $no_tweets, 'exclude_replies' => $reply)); if ($twitterData && is_array($twitterData)) { ?> <?php foreach ($twitterData as $tweet) { ?> <li> <i class="fa-twitter"></i> <span> <?php $latestTweet = $tweet->text; $latestTweet = preg_replace('/http:\\/\\/([a-z0-9_\\.\\-\\+\\&\\!\\#\\~\\/\\,]+)/i', '<a href="http://$1" target="_blank">http://$1</a>', $latestTweet); echo $latestTweet; ?> </span> <?php $twitterTime = strtotime($tweet->created_at); $timeAgo = ago($twitterTime); ?> <div class="meta"><a href="http://twitter.com/<?php echo $tweet->user->screen_name; ?> /statuses/<?php echo $tweet->id_str; ?> " class="jtwt_date"><?php echo $timeAgo; ?> </a></div> </li> <?php } ?> <?php } }
if (rd_options('reedwan_post_author') == 1) { ?> <div class="box-author mts clearfix"> <?php echo author_box(get_the_author_meta('ID'), true); ?> </div> <?php } ?> <?php if (rd_options('reedwan_post_similar') == 1) { ?> <?php echo related_posts(rd_options('reedwan_post_similar_number'), rd_options('reedwan_post_similar_by'), get_the_ID()); ?> <?php } ?> <?php if ($post_comment != 'comment_none') { ?> <div class="single-comments mts clearfix"> <?php if ($post_comment == 'comment_disqus') { ?> <?php echo disqus_embed($disqus_shortname); ?> <?php
} } if (class_exists('bbPress')) { if (is_bbpress()) { bbp_breadcrumb(array('before' => '<ul class="breadcrumb">', 'after' => '</ul>', 'sep' => ' ', 'crumb_before' => '<li>', 'crumb_after' => '</li>', 'home_text' => __('Home', 'corporative'))); } } ?> </div> <?php } ?> </div> <?php if (is_singular('post') && rd_options('reedwan_post_nav') == 1 || is_singular('product') && rd_options('reedwan_post_nav') == 1 || is_singular('portfolio') && rd_options('reedwan_portfolio_nav') == 1) { ?> <div class="single-navs"> <div class="nav-prev"> <?php previous_post_link('%link', '<i class="icons-arrow-left-thin"></i>'); ?> </div> <div class="nav-next"> <?php next_post_link('%link', '<i class="icons-arrow-right-thin"></i>'); ?> </div> </div> <?php }
"> <?php } ?> <?php wp_head(); ?> </head> <body <?php body_class(); ?> > <div id="frame_" > <div id="layout" class="<?php echo rd_options('reedwan_theme_layout'); ?> "> <?php get_template_part('includes/header1'); if (!is_home() && !is_front_page() && !is_page_template('template-homepage.php') && !is_404()) { get_template_part('includes/title-breadcrumb'); } if (!is_404()) { /* Main Slider */ global $post; if (class_exists('Woocommerce')) { if (is_shop()) { $pageID = get_option('woocommerce_shop_page_id'); } else { $pageID = $post->ID;
<?php get_header(); wp_enqueue_script('isotop'); $portfolio_column = $portfolio_sidebar = $portfolio_masonry = $portfolio_description = $portfolio_view = $portfolio_category = $portfolio_view_text = $portfolio_padding = $portfolio_excerpt = $sidebar = $isotope = $grid = $width = $height = $thumb = $title = $padding = $mediatitle = ''; $portfolio_column = rd_options('reedwan_portfolio_archive_column'); $portfolio_sidebar = rd_options('reedwan_portfolio_archive_sidebar'); $portfolio_masonry = rd_options('reedwan_portfolio_archive_masonry'); $portfolio_description = rd_options('reedwan_portfolio_archive_description'); $portfolio_view = rd_options('reedwan_portfolio_archive_view'); $portfolio_category = rd_options('reedwan_portfolio_archive_category'); $portfolio_view_text = rd_options('reedwan_portfolio_archive_view_text'); $portfolio_padding = rd_options('reedwan_portfolio_archive_padding'); $portfolio_excerpt = rd_options('reedwan_portfolio_archive_excerpt'); if ($portfolio_sidebar == 'sidebar_none') { $sidebar = 'grid_12'; } else { $sidebar = 'grid_9'; } if ($portfolio_masonry == 1) { $isotope = ' data-layout-mode="masonry"'; $width = 515; $height = 9999; $thumb = 'portfolio_masonry'; } else { $isotope = ' data-layout-mode="fitRows"'; $width = 515; $height = 339; $thumb = 'portfolio'; } if ($portfolio_column == 'column_2') {
function google_analytics() { $output = rd_options('reedwan_analytic'); if ($output != "") { echo stripslashes($output) . "\n"; } }
} if (get_field('contact_latitude')) { $latitude = get_field('contact_latitude'); } if (get_field('contact_longitude')) { $longitude = get_field('contact_longitude'); } if (get_field('contact_zoom')) { $zoom = get_field('contact_zoom'); } if (get_field('contact_height')) { $mapHeight = get_field('contact_height'); } $mapHeight = str_replace(array('px', ' '), array('', ''), $mapHeight); if ($page_sidebar == 'default' || empty($page_sidebar)) { $page_sidebar = rd_options('reedwan_page_sidebar'); } if ($page_sidebar == 'sidebar_none') { $sidebar = 'grid_12'; $contact_style = ' one'; } else { $sidebar = 'grid_9'; $contact_style = ' second'; } if (get_field('contact_email')) { $contactEmail = get_field('contact_email'); } else { $contactEmail = get_option('admin_email'); } if (isset($_POST['submitted'])) { $regex = '/^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,3})$/';
function corporative_enqueue_style() { if (!is_admin()) { wp_enqueue_style('style', get_stylesheet_uri()); wp_enqueue_style('icons', get_template_directory_uri() . '/css/icons.css'); wp_enqueue_style('animate', get_template_directory_uri() . '/css/animate.css'); if (class_exists('Woocommerce')) { wp_enqueue_style('shop', get_template_directory_uri() . '/css/shop.css'); } if (rd_options('reedwan_responsive') == 1) { wp_enqueue_style('responsive', get_template_directory_uri() . '/css/responsive.css'); } wp_enqueue_style('layer-slider-custom', get_template_directory_uri() . '/css/layerslider.css'); } }
"> <?php $more = 0; the_content('Read More ...', 'corporative'); ?> <?php wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'corporative'), 'after' => '</div>')); ?> </div> </div> <?php if (rd_options('reedwan_portfolio_similar') == 1) { ?> <?php echo related_portfolios(rd_options('reedwan_portfolio_similar_number'), 'portfolio_category', get_the_ID()); ?> <?php } ?> <?php if ($portfolio_comment != 'comment_none') { ?> <div class="single-comments mts clearfix"> <?php if ($portfolio_comment == 'comment_disqus') { ?> <?php echo disqus_embed($disqus_shortname); ?>
$format = __('Audio', 'corporative'); } elseif (has_post_format('gallery')) { $icon = 'icons-sliders-vertical'; $format = __('Gallery', 'corporative'); } else { $icon = 'icons-document-fill'; $format = ''; } if (get_field('post_comment')) { $post_comment = get_field('post_comment'); } if ($post_comment == 'comment_default' || empty($post_comment)) { $post_comment = rd_options('reedwan_post_comment'); } if ($post_comment == 'comment_disqus') { $disqus_shortname = rd_options('reedwan_disqus_shortname'); } ?> <li id="post-<?php the_ID(); ?> " class="grid_item <?php echo $grid; ?> "> <div class="post_b"> <?php if ($archive_share == 1) { ?> <a href="<?php the_permalink();
<?php if (rd_options('reedwan_language_switcher') == 1 and function_exists('icl_get_languages')) { $languages = icl_get_languages('skip_missing=0'); if (1 < count($languages)) { ?> <div class="top-lang layout_dropdown show_onclick has_title"> <div class="top-lang-h"> <div class="top-lang-list"> <?php foreach ($languages as $language) { if ($language['active']) { $current_language = $language; continue; } ?> <a class="top-lang-item lang_<?php echo $language['language_code']; ?> " href="<?php echo $language['url']; ?> "> <span class="top-lang-item-icon"></span> <span class="top-lang-item-title"><?php echo $language['native_name']; ?> </span> </a> <?php }
<div class="top-info"> <?php get_template_part('includes/language-switcher'); ?> </div> <?php get_template_part('includes/social-header'); ?> </div> </div> <?php } ?> <?php $sticky = ''; if (rd_options('reedwan_sticky_header') == 1) { $sticky = ' my_sticky'; } else { $sticky = ''; } ?> <div class="head<?php echo $sticky; ?> "> <div class="row clearfix"> <div class="logo"> <?php if (rd_options_array('reedwan_logo', 'url')) { $logo = rd_options_array('reedwan_logo', 'url'); } else {
<?php /* Template Name: Side Navigation */ get_header(); $page_sidebar = ''; $page_sidebar = rd_options('reedwan_side_navigation_sidebar'); ?> <div class="page-content<?php if ($page_sidebar == 'sidebar_left') { echo ' left-sidebar'; } ?> "> <div class="row clearfix"> <div class="row_inner"> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div id="post-<?php the_ID(); ?> " <?php post_class('pages pages_cont grid_9'); ?> > <?php the_content(); ?>
function rd_after_container() { $post_sidebar = ''; if (is_product()) { if (get_field('product_sidebar')) { $post_sidebar = get_field('product_sidebar'); } if ($post_sidebar == 'sidebar_default' || empty($post_sidebar)) { $post_sidebar = rd_options('reedwan_woo_product_sidebar_position'); } } elseif (is_shop()) { $pageID = get_option('woocommerce_shop_page_id'); if (get_field('page_sidebar', $pageID)) { $post_sidebar = get_field('page_sidebar', $pageID); } if ($post_sidebar == 'sidebar_default' || empty($post_sidebar)) { $post_sidebar = rd_options('reedwan_woo_archive_sidebar_position'); } } elseif (is_product_category() || is_product_tag()) { $post_sidebar = rd_options('reedwan_woo_archive_sidebar_position'); } else { $post_sidebar = 'sidebar_none'; } echo '</div>'; if ($post_sidebar != 'sidebar_none') { echo '<div class="sidebar grid_3">'; if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('woo-sidebar')) { } echo '</div>'; } echo '</div></div></div>'; }
<?php if (rd_options('reedwan_flickr') != '') { ?> <a target="_blank" href="<?php echo rd_options('reedwan_flickr'); ?> " class="<?php echo $toltip; ?> animated" data-gen="expandOpen" title="flickr"><i class="icons-social-flickr"></i></a> <?php } ?> <?php if (rd_options('reedwan_email') != '') { ?> <a href="mailto:<?php echo rd_options('reedwan_email'); ?> " target="_top" class="<?php echo $toltip; ?> animated" data-gen="expandOpen" title="email"><i class="icons-mail"></i></a> <?php } ?> </div><!-- end social --> <?php }
<?php get_header(); ?> <div class="page-content"> <div class="row clearfix"> <div class="row_inner"> <div class="grid_12"> <div class="tac error-page clearfix"> <i class="icons-animal-footprint errori"></i> <h2 class="tac mtt"> <?php echo rd_options('reedwan_404_title'); ?> </h2> <p> <?php echo rd_options('reedwan_404_decription'); ?> </p> <a href="<?php echo home_url('/'); ?> " class="tbutton medium"><span><i class="icons-arrow-left mi"></i> <?php _e('Back To Homepage', 'corporative'); ?> </span></a> </div> </div> </div> </div> </div><!-- end page content --> <?php get_footer();
function custom_head_addons() { ?> <!-- Theme Panel CSS --> <style type="text/css" media="screen"> ::selection{ background:<?php echo rd_options('reedwan_general_color'); ?> ; } ::-moz-selection{ background:<?php echo rd_options('reedwan_general_color'); ?> ; } <?php if (rd_options('reedwan_responsive') != 1) { ?> .full{ min-width:1200px; } #mainnav{ display:block !important; } <?php } ?> /*** Body Fonts ***/ body { color: <?php echo rd_options_array('reedwan_body_font', 'color'); ?> ; line-height: <?php echo rd_options_array('reedwan_body_font', 'line-height'); ?> ; font-family: <?php echo rd_options_array('reedwan_body_font', 'font-family'); ?> ; font-size: <?php echo rd_options_array('reedwan_body_font', 'font-size'); ?> ; font-weight: <?php echo rd_options_array('reedwan_body_font', 'font-weight'); ?> ; <?php if (rd_options_array('reedwan_background', 'background-image')) { ?> background-image: url('<?php echo rd_options_array('reedwan_background', 'background-image'); ?> '); <?php } ?> <?php if (rd_options_array('reedwan_background', 'background-position')) { ?> background-position: <?php echo rd_options_array('reedwan_background', 'background-position'); ?> ; <?php } ?> <?php if (rd_options_array('reedwan_background', 'background-color')) { ?> background-color: <?php echo rd_options_array('reedwan_background', 'background-color'); ?> ; <?php } ?> <?php if (rd_options_array('reedwan_background', 'background-repeat')) { ?> background-repeat: <?php echo rd_options_array('reedwan_background', 'background-repeat'); ?> ; <?php } ?> <?php if (rd_options_array('reedwan_background', 'background-attachment')) { ?> background-attachment: <?php echo rd_options_array('reedwan_background', 'background-attachment'); ?> ; <?php } ?> <?php if (rd_options_array('reedwan_background', 'background-size')) { ?> -webkit-background-size: <?php echo rd_options_array('reedwan_background', 'background-size'); ?> ; -moz-background-size: <?php echo rd_options_array('reedwan_background', 'background-size'); ?> ; -o-background-size: <?php echo rd_options_array('reedwan_background', 'background-size'); ?> ; background-size: <?php echo rd_options_array('reedwan_background', 'background-size'); ?> ; <?php } ?> } input, textarea, select, button, .sf-menu li li a{ font-family: <?php echo rd_options_array('reedwan_body_font', 'font-family'); ?> ; } .counter-title, .xactive .sf-mega-wrap .megamenu-title a, .xactive .sf-mega-wrap .megamenu-title{ color: <?php echo rd_options_array('reedwan_body_font', 'color'); ?> ; } /*** Head Fonts ***/ h1, h2, h3, h4, h5, h6, .product_list_widget li a, .comment-head, .counter-value, .widget_calendar table#wp-calendar caption, .foot-menu li a{ color: <?php echo rd_options_array('reedwan_heading_font', 'color'); ?> ; font-family: <?php echo rd_options_array('reedwan_heading_font', 'font-family'); ?> ; font-weight: <?php echo rd_options_array('reedwan_heading_font', 'font-weight'); ?> ; line-height: 1.5; text-transform: <?php echo rd_options_array('reedwan_heading_font', 'text-transform'); ?> ; } .foot-menu li a{ color:#fff; } .widget_calendar thead>tr>th, .pages_cont .woocommerce input, .pages_cont .woocommerce textarea, .woocommerce-page .pages_shop input, .woocommerce-page .pages_shop textarea, .pages_cont .woocommerce label, .woocommerce-page .pages_shop label, .shop_attributes tr th, #reviews .meta strong, .shop_table th, .cart-collaterals .cart_totals.calculated_shipping th, .product-subtotal .amount, .cart-subtotal .amount, .widget_shopping_cart_content .total, .accordion-head p, .toggle-head p{ color: <?php echo rd_options_array('reedwan_heading_font', 'color'); ?> ; } .sf-mega-wrap .megamenu-title, .sf-mega-wrap .megamenu-title a{ font-family: <?php echo rd_options_array('reedwan_heading_font', 'font-family'); ?> ; font-weight: <?php echo rd_options_array('reedwan_heading_font', 'font-weight'); ?> ; text-transform: <?php echo rd_options_array('reedwan_heading_font', 'text-transform'); ?> ; } .package-content li { font-weight: <?php echo rd_options_array('reedwan_heading_font', 'font-weight'); ?> ; } /*** Link Color ***/ a, .product_list_widget li a { color: #000; } /*** Menu Fonts ***/ .sf-menu a { font-family: <?php echo rd_options_array('reedwan_nav_font', 'font-family'); ?> ; color: <?php echo rd_options_array('reedwan_nav_font', 'color'); ?> ; text-transform: <?php echo rd_options_array('reedwan_nav_font', 'text-transform'); ?> ; font-weight: <?php echo rd_options_array('reedwan_nav_font', 'font-weight'); ?> ; font-size: <?php echo rd_options_array('reedwan_nav_font', 'font-size'); ?> ; } .sf-menu li.cart-nav:hover > a, .sf-menu li.cart-nav > a:hover{ color: <?php echo rd_options_array('reedwan_nav_font', 'color'); ?> ; } /*** General Color ***/ a:hover, .preve:hover, .nexte:hover, .breadcrumbIn ul li a:hover, .tagcloud a:hover, .sf-menu li:hover > a, .sf-menu li > a:hover, .sf-menu li.current_page_ancestor > a, .sf-menu li.current-menu-item > a, .sf-menu li.current_page_item > a, .sf-menu li.current-menu-ancestor > a, .top-head .information-head i, .top-head .top-info i, .header1 .search button:hover, .single-navs a:hover, .side-nav .current_page_item > a, .side-nav .current_page_item a, .filterable li.active a, .filterable li a:hover, .link-edit a:hover, .f_meta a:hover, .meta-tag a:hover, .p_details a:hover, .widget ul li.current a, .widget > ul > li:hover > a, .dark .widget ul li.current a, .dark .widget > ul > li:hover > a, .widget_search button:hover .widget_product_search button:hover, #newsletters button:hover, .posts-widget-block li:hover a, .list-icon ul li i, .counter-value.colored, .service .tbutton, .service-one:hover .s_icon, .service-two:hover .s_icon, .style2 .accordion-head i, .style2 .toggle-head i, .dark a:hover, .flexslider ul.slides li .flex-caption a:hover, .flex-direction-nav a i, .required, .star-rating span:before, .price, .cart-collaterals .cart_totals.calculated_shipping .order-total td, .checkout .order-total .amount, .product_list_widget li a:hover, .dark .product_list_widget li a:hover, .top-lang.layout_dropdown .top-lang-current:before, .top-lang.layout_dropdown .top-lang-list .top-lang-item:hover, .pricing-table .head .price-table, .team small, .landing-title-tag strong, .p_details .p_bottom .p_bottom_cat a:hover, .wpb_content_element strong, .owl-caption a:hover, span.bbp-admin-links a:hover, .bbp-reply-header a.bbp-reply-permalink:hover, #bbpress-forums #bbp-single-user-details #bbp-user-navigation li.current a, .shipping-calculator-button, .cart-nav-items .cart-link a:hover, .cart-nav-items .checkout-link a:hover { color: <?php echo rd_options('reedwan_general_color'); ?> ; } @media only screen and (max-width: 768px) { .subarrow:hover, .sf-menu li li:hover > a, .sf-menu li li > a:hover, .sf-menu li li.current_page_ancestor > a, .sf-menu li li.current-menu-item > a, .sf-menu li li.current_page_item > a, .sf-menu li li.current-menu-ancestor > a{ color: <?php echo rd_options('reedwan_general_color'); ?> ; } } /*** Background Color ***/ .sticky-post, .pagination span, .pagination a:hover, .service .tbutton:hover, .service.tbutton:active, .service-one:hover:after, #toTop:hover, .tipsy-inner, #mobilepro, .flex-direction-nav a:hover, .plus4, .text4, .cart-nav-count, .pages_cont .woocommerce .shop_table input[type="submit"].checkout-button, .woocommerce-page .pages_shop .shop_table input[type="submit"].checkout-button, .onsale, .woocommerce-message, .woocommerce-info, .woocommerce-error, .price_slider_amount .button:hover, .ui-slider-horizontal .ui-slider-range, .dropcap.style4, .pricing-table.featured .head, .pricing-button:hover, .featured .pricing-button, .dark .pricing-button, .dark .pricing-button:hover, .owl-prev:hover, .owl-next:hover, .owl-carousel.outer_nav .owl-prev:hover, .owl-carousel.outer_nav .owl-next:hover, .form-submit input[type=submit]:hover, .contactForm #sendMessage:hover, #sendOrder:hover, #bbpress-forums div.bbp-topic-tags a:hover, .bbp-topic-pagination .current, .pages_cont .woocommerce input[type="submit"], .pages_cont .woocommerce button[type="submit"], .woocommerce-page .pages_shop input[type="submit"], .woocommerce-page .pages_shop button[type="submit"], .wc-proceed-to-checkout a{ background-color:<?php echo rd_options('reedwan_general_color'); ?> ; } /*** Border Color ***/ .side-nav .current_page_item > a, .filterable li.active a, .filterable li a:hover, .f_meta a:hover, .meta-tag a:hover, .widget_search input:focus, .widget_product_search input:focus:focus, #newsletters input:focus:focus, .dark .widget_search input:focus, .dark .widget_product_search input:focus, .dark #newsletters input:focus, .search-again-form input[type="text"]:focus, .bbp-topic-form input#bbp_topic_title:focus, .bbp-topic-form input#bbp_topic_tags:focus, .bbp-topic-form select#bbp_stick_topic_select:focus, .bbp-topic-form select#bbp_topic_status_select:focus, #bbpress-forums fieldset select#bbp_forum_id:focus, #bbpress-forums fieldset select#bbp_forum_id:focus, #bbpress-forums input#bbp_reply_move_destination_title:focus, #bbpress-forums input#bbp_topic_split_destination_title:focus, #bbpress-forums input#bbp_topic_edit_reason:focus, #bbpress-forums input#bbp_reply_edit_reason:focus, #bbpress-forums #bbp-your-profile fieldset input:focus, #bbpress-forums #bbp-your-profile fieldset textarea:focus, .bbp-login-form .bbp-username input:focus, .bbp-login-form .bbp-email input:focus, .bbp-login-form .bbp-password input:focus, .bbp-reply-form input#bbp_topic_tags:focus, .service .tbutton, .bbp-topic-pagination .page-numbers:hover, .service:hover .s_icon.awesome i, #commentform #author:focus, #commentform #email:focus, #commentform #url:focus, #commentform #comment:focus, #track_input:focus, .contactForm #senderName:focus, .contactForm #senderEmail:focus, .contactForm #subject:focus, .contactForm #message:focus, .pages_cont .woocommerce input:focus, .pages_cont .woocommerce textarea:focus, .woocommerce-page .pages_shop input:focus, .woocommerce-page .pages_shop textarea:focus, .price_slider_amount .button:hover, .dropcap.style4, .owl-prev:hover, .owl-next:hover, .owl-carousel.outer_nav .owl-prev:hover, .owl-carousel.outer_nav .owl-next:hover, .owl-controls .owl-page.active, #bbpress-forums div.bbp-topic-tags a:hover, .bbp-topic-pagination .current { border-color: <?php echo rd_options('reedwan_general_color'); ?> ; } /*** Border Top Color ***/ .tabs li a.active, .dark .tabs li a.active, .action.tac .inner, .tipsy-s .tipsy-arrow:before, .tipsy-e .tipsy-arrow:before, .dark .action.tac .inner, .portfolio_carousel_wrap .show_all a:before, .posts_carousel_wrap .show_all a:before, .header3 .sf-menu > li.current_page_ancestor > a, .header3 .sf-menu > li.current-menu-item > a, .header3 .sf-menu > li.current_page_item > a, .header3 .sf-menu > li.current-menu-ancestor > a { border-top-color: <?php echo rd_options('reedwan_general_color'); ?> ; } /*** Border Left Color ***/ .wpb_tour .tabs li a.active, .dark .wpb_tour .tabs li a.active, .action .inner, .dark .action .inner, code, pre, blockquote { border-left-color: <?php echo rd_options('reedwan_general_color'); ?> ; } /*** Border Right Color ***/ .action.rev .inner, .tipsy-w .tipsy-arrow:before, .dark .action.rev .inner{ border-right-color: <?php echo rd_options('reedwan_general_color'); ?> ; } /*** Border Bottom Color ***/ .sf-menu li:hover > a, .sf-menu li > a:hover, .sf-menu li.current_page_ancestor > a, .sf-menu li.current-menu-item > a, .sf-menu li.current_page_item > a, .sf-menu li.current-menu-ancestor > a, .sf-menu li.current_page_ancestor > a:before, .sf-menu li.current-menu-item > a:before, .sf-menu li.current_page_item > a:before, .sf-menu li.current-menu-ancestor > a:before, .tipsy-n .tipsy-arrow:before, .header1 .search input:focus, .widget ul li.current a, .widget > ul > li:hover > a, .dark .widget ul li.current a, .dark .widget > ul > li:hover > a, .services .service-one:hover, .portfolio_carousel_wrap .show_all a, .posts_carousel_wrap .show_all a{ border-bottom-color: <?php echo rd_options('reedwan_general_color'); ?> ; } .breadcrumb-place{ <?php if (rd_options_array('reedwan_breadcrumb_bg', 'background-image')) { ?> background-image: url('<?php echo rd_options_array('reedwan_breadcrumb_bg', 'background-image'); ?> '); <?php } ?> <?php if (rd_options_array('reedwan_breadcrumb_bg', 'background-position')) { ?> background-position: <?php echo rd_options_array('reedwan_breadcrumb_bg', 'background-position'); ?> ; <?php } ?> <?php if (rd_options_array('reedwan_breadcrumb_bg', 'background-color')) { ?> background-color: <?php echo rd_options_array('reedwan_breadcrumb_bg', 'background-color'); ?> ; <?php } ?> <?php if (rd_options_array('reedwan_breadcrumb_bg', 'background-repeat')) { ?> background-repeat: <?php echo rd_options_array('reedwan_breadcrumb_bg', 'background-repeat'); ?> ; <?php } ?> <?php if (rd_options_array('reedwan_breadcrumb_bg', 'background-attachment')) { ?> background-attachment: <?php echo rd_options_array('reedwan_breadcrumb_bg', 'background-attachment'); ?> ; <?php } ?> <?php if (rd_options_array('reedwan_breadcrumb_bg', 'background-size')) { ?> -webkit-background-size: <?php echo rd_options_array('reedwan_breadcrumb_bg', 'background-size'); ?> ; -moz-background-size: <?php echo rd_options_array('reedwan_breadcrumb_bg', 'background-size'); ?> ; -o-background-size: <?php echo rd_options_array('reedwan_breadcrumb_bg', 'background-size'); ?> ; background-size: <?php echo rd_options_array('reedwan_breadcrumb_bg', 'background-size'); ?> ; <?php } ?> } <?php $bread_bg = $bread_height = ''; if (get_field('breadcrumb_custom') == 1) { if (get_field('breadcrumb_height')) { $bread_height = get_field('breadcrumb_height'); } if (get_field('breadcrumb_bg')) { $bread_bg = get_field('breadcrumb_bg'); } } if ($bread_height == '') { $bread_height = rd_options('reedwan_breadcrumb_height'); } ?> <?php if ($bread_bg) { ?> .breadcrumb-place{background-image:url('<?php echo $bread_bg; ?> ');} <?php } ?> <?php if ($bread_height) { ?> .breadcrumb-row{height:<?php echo $bread_height; ?> ;} <?php } ?> /*** Color ***/ pre, code, .author-title-social .author-social a:hover { color: #333; } .site_description, .top-head .social a{ color: #aaa; } .social a{ color: #e0e0e0; } .sf-menu .search-pop-form input[type="text"], .search-again-form input[type="text"]{ color:#969595; } .top-head .information-head, .top-head .top-info, .header1 .search button, .comment-info.comment-head, .errori{ color:#ccc; } .header1 .search input{ color: #C5C5C5; } .header1 .search input:focus{ color: #191919; } .blockquote, .f_meta, .f_meta a, .pages_cont .woocommerce select, .woocommerce-page .pages_shop select{ color:#888; } .link-edit a, .author-title-social .author-social a{ color:#bdbdbd; } .post_format, .post_count { color: #E1E1E1; } .meta-tag a{ color:#adadad; } .widget_search input, .widget_product_search input, #newsletters input { color: #A7A7A7; } .widget_search button, .widget_product_search button, #newsletters button{ color: #bbb; } .accordion-head, .toggle-head{ color:#666; } .service-one .s_icon { color: #c2c2c2; } .tabs li a { color: #B1B1B1; } .disabled { color: #EEE !important; } .preve, .nexte { color: #cecece; } .price del{ color:#7A7A7A; } @media only screen and (max-width: 768px) { .service-one .s_icon { margin-top: -30px; color: <?php echo rd_options('reedwan_general_color'); ?> ; } .service-one:after { background: <?php echo rd_options('reedwan_general_color'); ?> ; } .service-one .s_icon.awesome i { border-color: <?php echo rd_options('reedwan_general_color'); ?> ; } } <?php if (rd_options('reedwan_custom_css')) { ?> <?php echo stripslashes(rd_options('reedwan_custom_css')); ?> <?php } ?> </style> <?php }
<li class="search-pop"> <a class="fa-search search-pop-button"></a> <div id="search-pop-form" class="search-pop-form"> <?php get_search_form(); ?> </div> </li> <?php } ?> <?php if (class_exists('Woocommerce')) { ?> <?php if (rd_options('reedwan_woo_cart_link_nav') == 1) { ?> <li class="cart-nav"> <?php if ($woocommerce->cart->cart_contents_count) { ?> <a href="<?php echo get_permalink(get_option('woocommerce_cart_page_id')); ?> "><i class="fa-shopping-cart"></i><span class="cart-nav-count"><?php echo $woocommerce->cart->cart_contents_count; ?> </span></a> <ul class="cart-nav-items"> <?php foreach ($woocommerce->cart->cart_contents as $cart_item) {
body_class(); ?> > <div id="frame_" > <div id="layout" class="<?php echo rd_options('reedwan_theme_layout'); ?> "> <?php if (rd_options('reedwan_header_style') == 'header1') { get_template_part('includes/header1'); } else { if (rd_options('reedwan_header_style') == 'header2') { get_template_part('includes/header2'); } else { if (rd_options('reedwan_header_style') == 'header3') { get_template_part('includes/header3'); } else { get_template_part('includes/header4'); } } } if (!is_home() && !is_front_page() && !is_page_template('template-homepage.php') && !is_404()) { get_template_part('includes/title-breadcrumb'); } if (!is_404()) { /* Main Slider */ global $post; if (class_exists('Woocommerce')) { if (is_shop()) { $pageID = get_option('woocommerce_shop_page_id');
function posts($atts, $content = null) { $atts = vc_map_get_attributes('posts', $atts); extract($atts); if ($column != 1) { wp_enqueue_script('isotop'); } $out = $grid = $metaAuthor = $date = $comments = $views = $category = $thumb = $width = $height = $isotope = $format_icon = $args = $my_query = ''; global $paged; $args = array('post_type' => 'post', 'category_name' => $cats, 'pagination' => true, 'posts_per_page' => $number, 'ignore_sticky_postss' => 1, 'paged' => $paged); $my_query = new WP_Query($args); if ($column == 1) { $grid = 'grid_12'; $metaAuthor = $date = $comments = $views = $category = 'view'; if ($social == 1) { $thumb = 'blog_column1_bar_share'; $width = 706; $height = 350; } else { $thumb = 'blog_column1_bar'; $width = 786; $height = 380; } } else { if ($column == 2) { $grid = 'grid_6'; $metaAuthor = $date = $comments = 'view'; } if ($column == 3) { $grid = 'grid_4'; $date = $comments = 'view'; } if ($layout_mode == 'masonry') { $thumb = 'blog_masonry'; $width = 697; $height = 9999; } else { $thumb = 'blog_nomasonry'; $width = 697; $height = 480; } } $grids_wrap = ' grids_wrap'; if ($layout_mode == 'masonry' && $column != 1) { $isotope = ' data-layout-mode="masonry"'; } if ($layout_mode == 'fitRows' && $column != 1) { $isotope = ' data-layout-mode="fitRows"'; } if ($column == 1) { $grids_wrap = ''; } if ($social != 'yes') { $format_icon = ' hide_angle'; } $out .= '<div class="wpb_content_element posts_wrap column_' . $column . '">'; $out .= wpb_widget_title(array('title' => $title)); $out .= '<div class="posts_layout' . $grids_wrap . '">'; $out .= '<div class="row_inner clearfix">'; $out .= '<ul class="grid_layout"' . $isotope . '>'; while ($my_query->have_posts()) { $my_query->the_post(); $disqus_shortname = $gallery = $audioURL = $videoURL = $format = $icon = $post_comment = ''; if (get_field('post_gallery')) { $gallery = get_field('post_gallery'); } if (get_field('post_video')) { $videoURL = get_field('post_video'); } if (get_field('post_audio')) { $audioURL = get_field('post_audio'); } if (has_post_format('video')) { $icon = 'icons-play'; $format = __('Video', 'corporative'); } elseif (has_post_format('audio')) { $icon = 'icons-music'; $format = __('Audio', 'corporative'); } elseif (has_post_format('gallery')) { $icon = 'icons-sliders-vertical'; $format = __('Gallery', 'corporative'); } else { $icon = 'icons-document-fill'; $format = ''; } if (get_field('post_comment')) { $post_comment = get_field('post_comment'); } if ($post_comment == 'comment_default' || empty($post_comment)) { $post_comment = rd_options('reedwan_post_comment'); } if ($post_comment == 'comment_disqus') { $disqus_shortname = rd_options('reedwan_disqus_shortname'); } $out .= '<li id="post-' . get_the_ID() . '" class="grid_item no_title_thumb ' . $grid . '">'; $out .= '<div class="post_b">'; if ($social == 'yes') { $out .= '<a href="' . get_permalink() . '" class="post_format lefttip" title="' . $format . '"><i class="' . $icon . '"></i></a>'; $out .= '<div class="social post_social">'; $out .= '<a href="http://twitter.com/home?status=' . get_the_title() . ' ' . get_permalink() . '" target="_blank" class="lefttip" title="Twitter"><i class="icons-social-twitter"></i></a>'; $thumbx = ''; $thumbx = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'facebook'); $out .= '<a href="http://www.facebook.com/sharer.php?s=100&p[title]=' . urlencode(get_the_title()) . '&p[summary]=' . urlencode(get_the_excerpt()) . '&p[url]=' . urlencode(get_permalink()) . '&p[images][0]=' . urlencode($thumbx[0]) . '" target="_blank" class="lefttip" title="Facebook"><i class="icons-social-facebook"></i></a>'; $out .= '<a href="https://plus.google.com/share?url=' . get_permalink() . '" onclick="javascript:window.open(this.href,"", "menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600");return false;" target="_blank" class="lefttip" title="Google Plus"><i class="icons-social-google-plus"></i></a>'; $thumby = ''; $thumby = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'medium'); $out .= '<a href="http://pinterest.com/pin/create/button/?url=' . urlencode(get_permalink()) . '&description=' . urlencode(get_the_title()) . '&media=' . urlencode($thumby[0]) . '" target="_blank" class="lefttip" title="Pinterest"><i class="icons-social-pinterest"></i></a>'; $out .= '</div>'; } $out .= '<div class="post_content' . $format_icon . '">'; if ($layout_mode == 'masonry') { $out .= mediaholder('', $format, $thumb, $videoURL, $audioURL, $gallery); } else { $out .= mediaholder_caption('', $format, $width, $height, $thumb, $videoURL, $audioURL, $gallery); } $out .= '<div class="post_inner_content clearfix">'; $out .= '<h2 class="post_title"> <a href="' . get_permalink() . '" title="">' . get_the_title() . '</a></h2>'; if ($meta == 'yes') { $out .= '<div class="f_meta clearfix">'; $out .= post_meta($disqus_shortname, $metaAuthor, $date, $comments, $views, $category); $out .= '</div>'; } $out .= excerpt($excerpt); if ($more == 'yes') { $out .= '<div class="right more"><a href="' . get_permalink() . '">' . __('Read More', 'corporative') . ' →</a></div>'; } $out .= '</div>'; $out .= '</div>'; $out .= '</div>'; $out .= '</li>'; } wp_reset_postdata(); $out .= '</ul>'; $out .= '</div>'; if ($pagination == 'yes') { $out .= new_pagination($my_query->max_num_pages); } $out .= '</div>'; $out .= '</div>'; return $out; }
<?php $showFooterNavigation = rd_options('reedwan_show_footer_nav'); $credits = rd_options('reedwan_credits_footer'); $widgetFooter = rd_options('reedwan_footer_widget'); $footerVersion = rd_options('reedwan_footer_version'); ?> <footer id="footer" class="dark"> <?php if ($widgetFooter == 'footer-1') { ?> <?php get_template_part('includes/footer-1'); ?> <?php } elseif ($widgetFooter == 'footer-2') { ?> <?php get_template_part('includes/footer-2'); ?> <?php } elseif ($widgetFooter == 'footer-3') { ?> <?php get_template_part('includes/footer-3'); ?> <?php } else { ?> <?php get_template_part('includes/footer-4'); ?>
$sticky = ''; if (rd_options('reedwan_sticky_header') == 1) { $sticky = ' my_sticky'; } else { $sticky = ''; } ?> <div class="headdown<?php echo $sticky; ?> "> <div class="row clearfix"> <div class="row_inner"> <div class="grid_12"> <?php if (rd_options('reedwan_show_top_header') == 1) { ?> <?php get_template_part('includes/social-header'); ?> <?php } ?> <?php get_template_part('includes/menu-header'); ?> </div> </div><!-- row inner --> </div><!-- row --> </div><!-- headdown --> </header><!-- end header -->
<?php get_header(); $page_sidebar = $sidebar = $page_comment = $disqus_shortname = $sidebar_id = ''; $page_sidebar = rd_options('reedwan_forum_sidebar'); if ($page_sidebar == 'sidebar_none') { $sidebar = 'grid_12'; } else { $sidebar = 'grid_9'; } ?> <div class="page-content<?php if ($page_sidebar == 'sidebar_left') { echo ' left-sidebar'; } ?> "> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div class="row clearfix"> <div class="row_inner"> <div id="post-<?php the_ID(); ?> " <?php post_class('pages pages_cont ' . $sidebar); ?>