Exemplo n.º 1
0
          <?php 
$section = get_simple_post('club-kit');
?>
          <?php 
echo get_vc_custom_css($section->ID);
?>

          <div class="container">

            <div class="row">
              <div class="col-sm-9">
                <?php 
echo apply_filters('the_content', $section->post_content);
?>
                <?php 
echo bones_get_edit_link($section->ID);
?>
              </div>
              <div class="col-sm-3 cta-badge-wrap">
                <div class="cta-badge has-ribbon">
                  <div class="badge-content">
                    Don't Miss Out!
                  </div>
                </div>
              </div>
            </div>

            <?php 
include_once '_query-products.php';
?>
          </div>
Exemplo n.º 2
0
function get_simple_section($slug, $args = array())
{
    $class = "page-section section-{$slug}";
    if (isset($args['class'])) {
        $class .= ' ' . $args['class'];
    }
    $section = get_simple_post($slug);
    $html = '<section class="' . $class . '" id="' . $slug . '-' . $section->ID . '" >';
    $html .= '<div class="container">';
    $html .= get_vc_custom_css($section->ID);
    $html .= apply_filters('the_content', $section->post_content);
    $html .= bones_get_edit_link($section->ID);
    $html .= '</div>';
    $html .= '</section>';
    return $html;
}
<div class="single-event-popup <?php echo tribe_events_event_classes( $event_id ); ?>">
    <div class="col-sm-4">
      <?php echo tribe_event_featured_image( $event_id, 'event-popup', false ); ?>
    </div>
    <div class="col-sm-8">
      
      <h2 class="event-title"><?php echo $event->post_title; ?></h2>
      <?php echo apply_filters( 'the_content', $event->post_content ); ?>

      <ul class="meta-info">
        <li><label>What:</label> <?php echo $event->post_title; ?></li>
        <li><label>When:</label> <?php echo tribe_events_event_schedule_details( $event_id ); ?></li>

        <?php if ( tribe_address_exists( $event_id ) ) : ?>
          <li><label>Where:</label> <?php echo tribe_get_full_address( $event_id ); ?></li>
        <?php endif; ?>

        <li><label>Cost:</label> <?php echo get_post_meta( $event_id, '_ecp_custom_2', true ); ?></li>
        
        <?php if ( tribe_has_organizer( $event_id ) ): ?>
          <li><label>Info:</label> <a href="mailto:<?php echo tribe_get_organizer_email( $event_id ); ?>"><?php echo tribe_get_organizer_email( $event_id ); ?></a></li>
        <?php endif; ?>
  
        <li><label>Register:</label> <?php echo get_post_meta( $event_id, '_ecp_custom_5', true ); ?></li>
      </ul>

      <?php echo bones_get_edit_link( $event_id ); ?>

    </div>
</div>
Exemplo n.º 4
0
  <ul class="product-list row">
    <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
    <?php  $src = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_id() ), 'product-thumb' ); ?>

    <li class="item col-xs-6 col-sm-3">
      <a class="item-link fancybox fancybox.ajax" href="<?php the_permalink() ?>">
        <img class="featured-image" src="<?php echo $src[0]; ?>" alt="">

        <h3 class="item-title">
          <?php if( get_post_meta(get_the_id(), '_product_price', true) ): ?>
            <?php printf('%s: $%s', get_the_title(), get_post_meta(get_the_id(), '_product_price', true) ); ?>
          <?php else: ?>
          <?php the_title(); ?>
          <?php endif; ?>
        </h3>
        <?php echo bones_get_edit_link( get_the_id() ); ?>
      </a>
    </li>

    <?php endwhile; ?>
    <?php wp_reset_postdata(); ?>
  </ul>

<?php endif; ?>
<?php wp_enqueue_script( 'fancybox' ); ?>
<?php wp_enqueue_script( 'lightslider' ); ?>
<script type="text/javascript">
jQuery(document).ready(function($){

  
  $(".product-list .item .item-link").on('click', function(e){