Example #1
0
    <div class="block-title-block">
        <h3 class="block-title col-xs-10 inner-tabber">Описание</h3>
        <a class="col-xs-2 inner-tabber" href="#tab-spec">Посмотреть все <i class="fa fa-angle-right"></i></a>
    </div>
    <div class="clearfix"></div>

    <div class="col-xs-12 taber-cont">
        <?php 
the_content();
?>
    </div>


    <div class="col-xs-8">
        <?php 
$cont = new BE_Compare_Products();
$cont->new_product_tab_content_short();
?>
    </div>
    <div class="col-xs-4">
        <h3 class="deck-title"><?php 
the_title();
?>
</h3>
        <p>
            <?php 
echo $deck_tab_text;
?>
        </p>
        <a href="<?php 
echo get_term_link((int) $terms[0]->term_id, 'product_cat');
Example #2
0
/**
 * Спецификации
 */
function spec_tab_content()
{
    global $post;
    $ins_text = get_post_meta($post->ID, '_ins_text', true);
    $sert_text = get_post_meta($post->ID, '_sert_text', true);
    ?>
    <div class="cr-product-block spec-taber">

        <div class="block-title-block">
            <h3 class="block-title col-xs-12">Описание</h3>
        </div>

        <div class="col-xs-4 docer-col">

            <div class="ins-ti">Инструкции и сертификаты</div>
            <ul>
                <li>
                    <?php 
    if (!empty($ins_text)) {
        $filetype = wp_check_filetype($ins_text);
        $file = str_replace(get_home_url(), $_SERVER['DOCUMENT_ROOT'], $ins_text);
        echo '<i class="fa fa-file-' . $filetype['ext'] . '-o"></i>';
        echo '<a href="' . esc_url($ins_text) . '" title="Инструкция для ' . get_the_title() . '">Инструкция для ' . get_the_title() . ' ' . getSize($file) . '</a>';
    }
    ?>
                </li>
                <li>
                    <?php 
    if (!empty($sert_text)) {
        $filetype = wp_check_filetype($sert_text);
        $file = str_replace(get_home_url(), $_SERVER['DOCUMENT_ROOT'], $sert_text);
        echo '<i class="fa fa-file-' . $filetype['ext'] . '-o"></i>';
        echo '<a href="' . esc_url($sert_text) . '" title="Скачать сертификат соответствия ' . get_the_title() . '">Скачать сертификат соответствия ' . get_the_title() . ' ' . getSize($file) . '</a>';
    }
    ?>
                </li>
            </ul>

        </div>

        <div class="col-xs-8">
            <?php 
    $cont = new BE_Compare_Products();
    $cont->new_product_tab_content();
    ?>
        </div>

    </div>
<?php 
}
Example #3
0
<?php

global $post;
$text = get_post_meta($post->ID, '_compare_text', true);
$text = !empty($text) ? $text : 'В избранное';
$block_favorites_border = get_post_meta($post->ID, '_block_compare_border', true);
$block_favorites_border = 1 == $block_favorites_border ? ' none-border' : '';
?>
<div class="cr-product-block cr-compare-block<?php 
echo $block_favorites_border;
?>
">
    <?php 
$class = new BE_Compare_Products();
$class->display_button();
?>
</div>