<?php get_header(); ?> <?php $post_id = get_the_ID(); ?> <!--get all datas--> <?php $all_product_datas = redux_post_meta('redux_demo', $post_id); ?> <!--start header parallax image--> <?php if ($all_product_datas['metabox_products_header_img_display'] == 1) { ?> <section id="nicdark_singlepost_parallax" class="nicdark_section nicdark_imgparallax" style="background:url(<?php echo $all_product_datas['metabox_products_header_img']['url']; ?> ) 50% 0 fixed; background-size:cover;"> <div class="nicdark_filter <?php echo $all_product_datas['metabox_products_header_filter']; ?> ">
<?php /* Template Name: Left Navigation */ global $cl_redata, $cl_current_view; do_action('codeless_routing_template', 'page'); $cl_current_view = 'page'; $id = codeless_get_post_id(); $replaced = redux_post_meta('cl_redata', (int) $id); if (!empty($replaced)) { foreach ($replaced as $key => $value) { $cl_redata[$key] = $value; } } get_header(); get_template_part('includes/view/page_header'); ?> <section id="content" class="composer_content" style="background-color:<?php echo !empty($cl_redata['page_content_background']) ? esc_attr($cl_redata['page_content_background']) : '#ffffff'; ?> ;"> <div class="container sidebar-left" id="blog"> <div class="row"> <div class="span3"> <ul class="side-nav"> <?php if (is_page('$post->post_parent')) {
<?php global $cl_redata; wp_reset_query(); ?> <a href="#" class="scrollup">Scroll</a> <?php // TOP wapper closed ?> <?php if ((int) codeless_get_post_id() && !redux_post_meta('cl_redata', (int) codeless_get_post_id(), 'fullscreen_post_style')) { ?> </div> <?php } ?> <!-- Footer --> <div class="footer_wrapper"> <footer id="footer" class=""> <?php if ($cl_redata['show_footer']) { ?> <div class="inner"> <div class="container"> <div class="row-fluid ff">
function codeless_header_remove_slider_mobile($classes = '') { global $cl_redata; $slider_onmobile_remove = 0; if ((int) codeless_get_post_id() != 0) { $slider_onmobile_remove = redux_post_meta('cl_redata', (int) codeless_get_post_id(), 'slider_onmobile_remove'); } if ($slider_onmobile_remove) { $classes[] = 'remove_slider_onmobile'; } return $classes; }
/** * Get single post option value * @param unknown $option * @param string $id * @return NULL|mixed */ function ts_get_post_opt($option, $id = '') { global $post; if (!empty($id)) { $local_id = $id; } else { if (!isset($post->ID)) { return null; } $local_id = get_the_ID(); } if (function_exists('redux_post_meta')) { $options = redux_post_meta(REDUX_OPT_NAME, $local_id); } else { $options = get_post_meta($local_id, REDUX_OPT_NAME, true); } if (isset($options[$option])) { return $options[$option]; } else { return null; } }
function az_dots_menu_navigation($postid) { global $options_alice, $post; $options_az = redux_post_meta('alice', $postid); $check_display_dots_menu = $options_az['az_dots_menu_display']; $section_ids_dots_menu = $options_az['az_dots_menu_id_sections']; $section_label_dots_menu = $options_az['az_dots_menu_label_sections']; $output_dots_menu = ''; if ($check_display_dots_menu == 'show') { // Explde Section ID $sections_ids_array = explode(',', esc_attr($section_ids_dots_menu)); $sections_ids_array = array_map('trim', $sections_ids_array); // Explode Section Label $sections_label_array = explode(',', esc_attr($section_label_dots_menu)); $sections_label_array = array_map('trim', $sections_label_array); $i = 1; if (!empty($section_label_dots_menu)) { foreach (array_combine($sections_ids_array, $sections_label_array) as $item => $name) { $output_dots_menu = '<li><a href="#' . strtolower($item) . '" class="dots-menu-anchor" data-number="' . $i . '"><span class="dots-menu-dot"></span><span class="dots-menu-label">' . $name . '</span></a></li>'; echo !empty($output_dots_menu) ? $output_dots_menu : ''; $i++; } } else { foreach ($sections_ids_array as $item) { $output_dots_menu = '<li><a href="#' . strtolower($item) . '" class="dots-menu-anchor" data-number="' . $i . '"><span class="dots-menu-dot"></span></a></li>'; echo !empty($output_dots_menu) ? $output_dots_menu : ''; $i++; } } } }
function codeless_register_global_scripts() { global $cl_redata; wp_enqueue_script('jquery'); wp_enqueue_script('bootstrap.min'); wp_enqueue_script('jquery-easing-1-1'); wp_enqueue_script('jquery-easing-1-3'); wp_enqueue_script('jquery.mobilemenu'); wp_enqueue_script('isotope'); if ($cl_redata['nicescroll']) { wp_enqueue_script('smoothscroll'); } wp_enqueue_script('jquery.flexslider-min'); wp_enqueue_script('jquery.fancybox'); wp_enqueue_script('jquery.fancybox-media'); wp_enqueue_script('jquery.carouFredSel-6.1.0-packed'); wp_enqueue_script('jquery.hoverex'); /*wp_enqueue_script('mediaelementplayer'); */ wp_enqueue_script('tooltip'); wp_enqueue_script('jquery.parallax'); wp_enqueue_script('main'); wp_enqueue_script('comment-reply'); wp_enqueue_script('placeholder'); wp_enqueue_script('countdown'); wp_enqueue_script('waypoints.min'); wp_enqueue_script('idangerous.swiper'); wp_enqueue_script('jquery.appear'); wp_enqueue_script('modernizr'); wp_enqueue_script('jquery.countTo'); wp_enqueue_script('animations'); wp_enqueue_script('background-check.min'); wp_enqueue_script('jquery.fullPage'); wp_enqueue_script('skrollr'); wp_enqueue_script('select2'); wp_enqueue_script('jquery.slicknav.min'); wp_enqueue_script('classie'); wp_enqueue_script('mixitup'); wp_enqueue_script('masonry'); wp_enqueue_script('jquery.onepage'); wp_enqueue_script('imagesloaded'); wp_enqueue_script('jquery.infinitescroll'); if (redux_post_meta('cl_redata', (int) codeless_get_post_id(), 'fullscreen_post_style') || $cl_redata['fullscreen_sections_active']) { wp_enqueue_script('fullscreen_post'); } echo "\n <script type='text/javascript'>\n /* <![CDATA[ */ \n"; echo "var codeless_global = { \n \tajaxurl: '" . esc_js(admin_url('admin-ajax.php')) . "',\n \tbutton_style: '" . esc_js($cl_redata['overall_button_style'][0]) . "'\n \t}; \n /* ]]> */ \n "; echo "</script>\n \n "; }
<?php get_header(); ?> <?php $post_id = get_the_ID(); ?> <!--get all datas--> <?php $all_package_datas = redux_post_meta('redux_demo', $post_id); ?> <?php include 'include/package/header-image-packages.php'; ?> <?php $nicdark_packagelayout = $all_package_datas['layout_packages']; ?> <!--FULL WIDTH PAGE--> <?php if ($nicdark_packagelayout == 0) { ?> <?php if (have_posts()) { while (have_posts()) {
$check_archive_type_color_settings = $options_alice['archive_logo_navi_type_color']; if ($check_archive_type_color_settings == "dark") { $type_navi_color = 'dark-type'; } else { $type_navi_color = 'light-type'; } } else { if (is_404()) { $check_error_type_color_settings = $options_alice['error_logo_navi_type_color']; if ($check_error_type_color_settings == "dark") { $type_navi_color = 'dark-type'; } else { $type_navi_color = 'light-type'; } } else { $options_az = redux_post_meta('alice', $postid); $check_type_color_settings = $options_az['az_logo_navi_type_color']; if ($check_type_color_settings == "dark") { $type_navi_color = 'dark-type'; } else { $type_navi_color = 'light-type'; } } } } ?> <!DOCTYPE html> <!--[if gte IE 9]> <html class="no-js lt-ie9 no-scroll-animation-effects <?php echo esc_attr($right_click_options); ?>
$uniquecategories = array_unique($allcategories); //all filter button and starter div $str .= '<div class="nicdark_masonry_btns"><div class="nicdark_margin10"><a data-filter="*" class="nicdark_bg_grey_hover nicdark_transition nicdark_btn nicdark_border_grey small grey">' . $nicdark_text_postquery_all . '</a></div>'; //output all categories buttons foreach ($uniquecategories as $value) { $categoryuniquename = get_category_by_slug($value); $str .= '<div class="nicdark_margin10"><a data-filter=".' . $value . '" class="nicdark_bg_grey_hover nicdark_transition nicdark_btn nicdark_border_grey small grey">' . $categoryuniquename->cat_name . '</a></div>'; } //closer div and spacer $str .= '<div class="nicdark_space10"></div></div>'; } //end filter $str .= '<div class="nicdark_masonry_container ' . $outputfilter . '">'; while ($the_query->have_posts()) { $the_query->the_post(); $alldatas = redux_post_meta('redux_demo', $post_id); $postcolor = $alldatas['metabox_posts_color']; //info post $titlepost = get_the_title(); $excerptpost = get_the_excerpt(); $permalink = get_permalink($post_id); $categories = get_the_category(); $categoryslug = $categories[0]->category_nicename; //comment $qntcomments = get_comments_number(); $commentword = __("Comments", "nicdark-shortcodes"); if ($qntcomments == 0) { $outputcomments = __('No Comments', 'nicdark-shortcodes'); } elseif ($qntcomments == 1) { $outputcomments = __('One Comment', 'nicdark-shortcodes'); } else {