Пример #1
0
}
?>
">
			<p><a href="<?php 
the_permalink();
?>
"><?php 
echo get_the_date('F d, Y');
?>
</a> - <?php 
comments_popup_link(__('No Comments!', 'semplice'), __('1 comment.', 'semplice'), __('% comments', 'semplice'));
?>
</p>
			<h2 class="<?php 
if (get_field('skinoptions_heading_fontsize', 'options')) {
    echo get_Field('skinoptions_heading_fontsize', 'options');
}
?>
 <?php 
if (get_field('skinoptions_heading_weight', 'options')) {
    echo get_field('skinoptions_heading_weight', 'options');
} else {
    echo 'bold';
}
?>
 <?php 
echo get_field('skinoptions_heading_align', 'options');
?>
"><a href="<?php 
the_permalink();
?>
Пример #2
0
 * 
 */
// add mobile detection
$detect = new Mobile_Detect();
// output css var
$output_css = '';
#---------------------------------------------------------------------------#
# Fullscreen Cover															#
#---------------------------------------------------------------------------#
// cover visbility
$cover_visibility = get_field('cover_visibility');
// content vertical position
$vertical_positioning = get_field('content_vertical_positioning');
// get project objects
$covers = get_field('cover_slider');
if ($covers && get_Field('use_semplice') === 'coverslider') {
    // loader bar color
    $output_css .= '.bar { background: ' . get_field('loader_bar_color_coverslider') . '!important; }';
    foreach ($covers as $post) {
        // get post id
        setup_postdata($post);
        // look if there is a fullscreen cover
        if (get_field('cover_visibility') === 'visible') {
            semplice_cover($post->ID, $detect, true);
        }
    }
    wp_reset_postdata();
} else {
    if ($cover_visibility === 'visible') {
        // call semplice cover
        semplice_cover(get_the_id(), $detect, false);