Exemple #1
0
 function widget($args, $instance)
 {
     extract($instance);
     spyropress_the_bucket($bucket);
 }
Exemple #2
0
        if (isset($value['background-position'])) {
            $bg[] = $value['background-position'];
        }
        $style .= !empty($bg) ? ' background: ' . join(' ', $bg) . ';' : '';
    }
    if (isset($page_options['border_top']) && !empty($page_options['border_top'])) {
        $style .= 'border-top-color:#' . str_replace('#', '', $page_options['border_top']) . ';';
    }
    if (isset($page_options['border_bottom']) && !empty($page_options['border_bottom'])) {
        $style .= 'border-bottom-color:#' . str_replace('#', '', $page_options['border_bottom']) . ';';
    }
    if (!empty($style)) {
        $style = 'style="' . $style . '"';
    }
    ?>

<section class="page-top custom-product"<?php 
    echo $style;
    ?>
>
    <?php 
    if (isset($page_options['bucket'])) {
        spyropress_the_bucket($page_options['bucket']);
    } elseif (isset($page_options['header_content'])) {
        echo '<div class="container">' . apply_filters('the_content', $page_options['header_content']) . '</div>';
    }
    ?>

</section>
<?php 
}