?> " alt="<?php the_title_attribute(); ?> "> </picture> <?php } else { ?> <picture itemscope itemprop="image"> <source media="(max-width: 600px)" srcset="<?php echo llorix_one_lite_get_file('/images/no-thumbnail-mobile.jpg'); ?> "> <img src="<?php echo llorix_one_lite_get_file('/images/no-thumbnail.jpg'); ?> " alt="<?php the_title_attribute(); ?> "> </picture> <?php } ?> </a> <div class="post-date entry-published updated"> <span class="post-date-day"><?php the_time('d'); ?>
</div> <div itemscope itemprop="image" class="icon-container white-text"> <a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> "> <?php if (has_post_thumbnail()) { the_post_thumbnail('llorix-one-lite-post-thumbnail-latest-news'); } else { ?> <img src="<?php echo llorix_one_lite_get_file('/images/no-thumbnail-latest-news.jpg'); ?> " width="150" height="150" alt="<?php the_title(); ?> "> <?php } ?> </a> </div> <div class="info"> <header class="entry-header"> <h1 itemprop="headline" class="entry-title"> <a href="<?php the_permalink();
* It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package llorix-one-lite */ get_header(); ?> </div> <!-- /END COLOR OVER IMAGE --> </header> <!-- /END HOME / HEADER --> <?php $llorix_one_lite_blog_header_image = get_theme_mod('llorix_one_lite_blog_header_image', llorix_one_lite_get_file('/images/background-images/background-blog.jpg')); $llorix_one_lite_blog_header_title = get_theme_mod('llorix_one_lite_blog_header_title', esc_html__('BLOG', 'llorix-one-lite')); $llorix_one_lite_blog_header_subtitle = get_theme_mod('llorix_one_lite_blog_header_subtitle'); if (!empty($llorix_one_lite_blog_header_image) || !empty($llorix_one_lite_blog_header_title) || !empty($llorix_one_lite_blog_header_subtitle)) { if (!empty($llorix_one_lite_blog_header_image)) { echo '<div class="archive-top" style="background-image: url(' . $llorix_one_lite_blog_header_image . ');">'; } else { echo '<div class="archive-top">'; } echo '<div class="section-overlay-layer">'; echo '<div class="container">'; if (!empty($llorix_one_lite_blog_header_title)) { echo '<p class="archive-top-big-title">' . $llorix_one_lite_blog_header_title . '</p>'; echo '<p class="colored-line"></p>'; } if (!empty($llorix_one_lite_blog_header_subtitle)) {
<!-- CONTAINER --> <?php $llorix_one_lite_header_logo = get_theme_mod('llorix_one_lite_header_logo', llorix_one_lite_get_file('/images/logo-2.png')); $llorix_one_lite_header_title = get_theme_mod('llorix_one_lite_header_title', esc_html__('Simple, Reliable and Awesome.', 'llorix-one-lite')); $llorix_one_lite_header_subtitle = get_theme_mod('llorix_one_lite_header_subtitle', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'); $llorix_one_lite_header_button_text = get_theme_mod('llorix_one_lite_header_button_text', esc_html__('GET STARTED', 'llorix-one-lite')); $llorix_one_lite_header_button_link = get_theme_mod('llorix_one_lite_header_button_link', '#'); $llorix_one_lite_enable_move = get_theme_mod('llorix_one_lite_enable_move'); $llorix_one_lite_first_layer = get_theme_mod('llorix_one_lite_first_layer', llorix_one_lite_get_file('/images/background1.png')); $llorix_one_lite_second_layer = get_theme_mod('llorix_one_lite_second_layer', llorix_one_lite_get_file('/images/background2.png')); if (!empty($llorix_one_lite_header_logo) || !empty($llorix_one_lite_header_title) || !empty($llorix_one_lite_header_subtitle) || !empty($llorix_one_lite_header_button_text)) { ?> <?php if (!empty($llorix_one_lite_enable_move) && $llorix_one_lite_enable_move) { echo '<ul id="llorix_one_lite_move">'; if (empty($llorix_one_lite_first_layer) && empty($llorix_one_lite_second_layer)) { $llorix_one_header_image2 = get_header_image(); echo '<li class="layer layer1" data-depth="0.10" style="background-image: url(' . $llorix_one_header_image2 . ');"></li>'; } else { if (!empty($llorix_one_lite_first_layer)) { echo '<li class="layer layer1" data-depth="0.10" style="background-image: url(' . $llorix_one_lite_first_layer . ');"></li>'; } if (!empty($llorix_one_lite_second_layer)) { echo '<li class="layer layer2" data-depth="0.20" style="background-image: url(' . $llorix_one_lite_second_layer . ');"></li>'; } } echo '</ul>'; } ?>
function llorix_one_lite_php_style() { echo '<style type="text/css">'; $llorix_one_lite_title_color = get_theme_mod('llorix_one_lite_title_color'); if (!empty($llorix_one_lite_title_color)) { echo '.dark-text { color: ' . $llorix_one_lite_title_color . ' }'; } $llorix_one_lite_text_color = get_theme_mod('llorix_one_lite_text_color'); if (!empty($llorix_one_lite_text_color)) { echo 'body{ color: ' . $llorix_one_lite_text_color . '}'; } $llorix_one_lite_enable_move = get_theme_mod('llorix_one_lite_enable_move'); $llorix_one_lite_first_layer = get_theme_mod('llorix_one_lite_first_layer', llorix_one_lite_get_file('/images/background1.png')); $llorix_one_lite_second_layer = get_theme_mod('llorix_one_lite_second_layer', llorix_one_lite_get_file('/images/background2.png')); if ((empty($llorix_one_lite_enable_move) || !$llorix_one_lite_enable_move) && (is_front_page() || is_page_template('template-frontpage.php'))) { $llorix_one_header_image = get_header_image(); if (!empty($llorix_one_header_image)) { echo '.header{ background-image: url(' . $llorix_one_header_image . ');}'; } } $llorix_one_lite_frontpage_opacity = get_theme_mod('llorix_one_lite_frontpage_opacity', 'rgba(13, 60, 85, 0.5)'); if (!empty($llorix_one_lite_frontpage_opacity)) { echo '.overlay-layer-wrap{ background:' . $llorix_one_lite_frontpage_opacity . ';}'; } $llorix_one_lite_blog_opacity = get_theme_mod('llorix_one_lite_blog_opacity', 'rgba(13, 60, 85, 0.6)'); if (!empty($llorix_one_lite_blog_opacity)) { echo '.archive-top .section-overlay-layer{ background:' . $llorix_one_lite_blog_opacity . ';}'; } echo '</style>'; }
<!-- ========================= SECTION: CLIENTS LOGOs ============================== --> <?php global $wp_customize; $llorix_one_lite_logos_show = get_theme_mod('llorix_one_lite_logos_show'); $llorix_one_lite_logos = get_theme_mod('llorix_one_lite_logos_content', json_encode(array(array("image_url" => llorix_one_lite_get_file('/images/companies/1.png'), "link" => "#", 'id' => 'llorix_one_lite_56d069bb8cb71'), array("image_url" => llorix_one_lite_get_file('/images/companies/2.png'), "link" => "#", 'id' => 'llorix_one_lite_56d069bc8cb72'), array("image_url" => llorix_one_lite_get_file('/images/companies/3.png'), "link" => "#", 'id' => 'llorix_one_lite_56d069bd8cb73'), array("image_url" => llorix_one_lite_get_file('/images/companies/4.png'), "link" => "#", 'id' => 'llorix_one_lite_56d06d128cb74'), array("image_url" => llorix_one_lite_get_file('/images/companies/5.png'), "link" => "#", 'id' => 'llorix_one_lite_56d06d3d8cb75')))); /* If section is not disabled */ if (isset($llorix_one_lite_logos_show) && $llorix_one_lite_logos_show != 1) { if (!empty($llorix_one_lite_logos)) { $llorix_one_lite_logos_decoded = json_decode($llorix_one_lite_logos); if (!empty($llorix_one_lite_logos_decoded)) { echo '<div class="clients white-bg" id="clients" role="region" aria-label="' . __('Affiliates Logos', 'llorix-one-lite') . '">'; echo '<div class="container">'; echo '<ul class="client-logos">'; foreach ($llorix_one_lite_logos_decoded as $llorix_one_lite_logo) { if (!empty($llorix_one_lite_logo->image_url)) { echo '<li>'; if (!empty($llorix_one_lite_logo->link)) { if (function_exists('icl_t')) { echo '<a href="' . esc_url(icl_t('Logo link', $llorix_one_lite_logo->id . '_logo_link', $llorix_one_lite_logo->link)) . '" title="">'; echo '<img src="' . esc_url(icl_t('Logo image', $llorix_one_lite_logo->id . '_logo_image', $llorix_one_lite_logo->image_url)) . '" alt="' . esc_html__('Logo', 'llorix-one-lite') . '">'; echo '</a>'; } else { echo '<a href="' . $llorix_one_lite_logo->link . '" title="">'; echo '<img src="' . $llorix_one_lite_logo->image_url . '" alt="' . esc_html__('Logo', 'llorix-one-lite') . '">'; echo '</a>'; } } else { if (function_exists('icl_t')) { echo '<img src="' . esc_url(icl_t('Logo image', $llorix_one_lite_logo->id . '_logo_image', $llorix_one_lite_logo->image_url)) . '" alt="' . esc_html__('Logo', 'llorix-one-lite') . '">';
/** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ function llorix_one_lite_customize_preview_js() { wp_enqueue_script('llorix_one_lite_customizer', llorix_one_lite_get_file('/js/customizer.js'), array('customize-preview'), '1.0.2', true); }
<!-- ========================= SECTION: RIBBON ============================== --> <?php global $wp_customize; $ribbon_background = get_theme_mod('llorix_one_lite_ribbon_background', llorix_one_lite_get_file('/images/background-images/parallax-img/parallax-img1.jpg')); $llorix_one_lite_ribbon_title = get_theme_mod('llorix_one_lite_ribbon_title', esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'llorix-one-lite')); $llorix_one_lite_button_text = get_theme_mod('llorix_one_lite_button_text', esc_html__('GET STARTED', 'llorix-one-lite')); $llorix_one_lite_button_link = get_theme_mod('llorix_one_lite_button_link', '#'); $llorix_one_lite_ribbon_show = get_theme_mod('llorix_one_lite_ribbon_show'); /* If section is not disabled */ if (isset($llorix_one_lite_ribbon_show) && $llorix_one_lite_ribbon_show != 1) { if (!empty($llorix_one_lite_ribbon_title) || !empty($llorix_one_lite_button_text)) { if (!empty($ribbon_background)) { echo '<section class="call-to-action ribbon-wrap" id="ribbon" style="background-image:url(' . $ribbon_background . ');" role="region" aria-label="' . esc_html__('Ribbon', 'llorix-one-lite') . '">'; } else { echo '<section class="call-to-action ribbon-wrap" id="ribbon" role="region" aria-label="' . esc_html__('Ribbon', 'llorix-one-lite') . '">'; } ?> <div class="section-overlay-layer"> <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <?php if (!empty($llorix_one_lite_ribbon_title)) { echo '<h2 class="white-text strong">' . esc_attr($llorix_one_lite_ribbon_title) . '</h2>'; } elseif (isset($wp_customize)) { echo '<h2 class="white-text strong llorix_one_lite_only_customizer"></h2>'; } if (!empty($llorix_one_lite_button_text)) {
<!-- ========================= SECTION: ABOUT ============================== --> <?php global $wp_customize; $llorix_one_lite_our_story_image = get_theme_mod('llorix_one_lite_our_story_image', llorix_one_lite_get_file('http://www.npk-brizk.ru/images/icon-why-1.png')); $llorix_one_lite_our_story_title = get_theme_mod('llorix_one_lite_our_story_title', esc_html__('Любая бронеконструкция по вашим параметрам и чертежам!', 'llorix-one-lite')); $llorix_one_lite_our_story_text = get_theme_mod('llorix_one_lite_our_story_text', esc_html__('<p>Работаем по госту</p><p>Вся продукция сертифицирована</p><p>Цена без посредников</p><p>Четкие сроки поставки</p>', 'llorix-one-lite')); $llorix_one_lite_our_story_show = get_theme_mod('llorix_one_lite_our_story_show'); /* If section is not disabled */ if (isset($llorix_one_lite_our_story_show) && $llorix_one_lite_our_story_show != 1) { if (!empty($llorix_one_lite_our_story_image) || !empty($llorix_one_lite_our_story_title) || !empty($llorix_one_lite_our_story_text)) { ?> <section class="brief text-left brief-design-one brief-left" id="story" role="region" aria-label="<?php esc_html_e('About', 'llorix-one-lite'); ?> "> <div class="section-overlay-layer"> <div class="container"> <div class="row"> <!-- BRIEF IMAGE --> <?php if (!empty($llorix_one_lite_our_story_image)) { if (!empty($llorix_one_lite_our_story_title)) { echo '<div class="col-md-6 brief-content-two"><div class="brief-image-right"><img src="http://fotohomka.ru/images/Dec/01/2042b2c09430144bf09e5f632ef7b35f/1.jpg" alt="' . esc_attr($llorix_one_lite_our_story_title) . '"></div></div>'; } else { echo '<div class="col-md-6 brief-content-two"><div class="brief-image-right"><img src="http://fotohomka.ru/images/Dec/01/2042b2c09430144bf09e5f632ef7b35f/1.jpg" alt="' . esc_html__('About', 'llorix-one-lite') . '"></div></div>'; } } elseif (isset($wp_customize)) { echo '<div class="col-md-6 brief-content-two llorix_one_lite_only_customizer"><img src="" alt=""><div class="brief-image-right"></div></div>';
<!-- ========================= SECTION: ABOUT ============================== --> <?php global $wp_customize; $llorix_one_lite_our_story_image = get_theme_mod('llorix_one_lite_our_story_image', llorix_one_lite_get_file('/images/about-us.png')); $llorix_one_lite_our_story_title = get_theme_mod('llorix_one_lite_our_story_title', esc_html__('Our Story', 'llorix-one-lite')); $llorix_one_lite_our_story_text = get_theme_mod('llorix_one_lite_our_story_text', esc_html__('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.', 'llorix-one-lite')); $llorix_one_lite_our_story_show = get_theme_mod('llorix_one_lite_our_story_show'); /* If section is not disabled */ if (isset($llorix_one_lite_our_story_show) && $llorix_one_lite_our_story_show != 1) { if (!empty($llorix_one_lite_our_story_image) || !empty($llorix_one_lite_our_story_title) || !empty($llorix_one_lite_our_story_text)) { ?> <section class="brief text-left brief-design-one brief-left" id="story" role="region" aria-label="<?php esc_html_e('About', 'llorix-one-lite'); ?> "> <div class="section-overlay-layer"> <div class="container"> <div class="row"> <!-- BRIEF IMAGE --> <?php if (!empty($llorix_one_lite_our_story_image)) { if (!empty($llorix_one_lite_our_story_title)) { echo '<div class="col-md-6 brief-content-two"><div class="brief-image-right"><img src="' . esc_url($llorix_one_lite_our_story_image) . '" alt="' . esc_attr($llorix_one_lite_our_story_title) . '"></div></div>'; } else { echo '<div class="col-md-6 brief-content-two"><div class="brief-image-right"><img src="' . esc_url($llorix_one_lite_our_story_image) . '" alt="' . esc_html__('About', 'llorix-one-lite') . '"></div></div>'; } } elseif (isset($wp_customize)) { echo '<div class="col-md-6 brief-content-two llorix_one_lite_only_customizer"><img src="" alt=""><div class="brief-image-right"></div></div>'; }