Christopher

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Christopher
    Participant

    Hi Hunter,

    Thanks for your reply. I guess the client (calgaryphil.com) can’t find or retrieve access to their Google Account at the moment.

    In the meantime I thought I would ask another question.

    We are doing a template override on single-event.php. We initially did the template override maybe a 1.5 to 2 years ago. I wonder if using this older version of the override file could cause this indexing problem?

    Here is the code in the override single-event.php in question:

    
    <?php
    /**
     * Single Event Template
     * A single event. This displays the event title, description, meta, and
     * optionally, the Google map for the event.
     *
     * Override this template in your own theme by creating a file at [your-theme]/tribe-events/single-event.php
     *
     * @package TribeEventsCalendar
     *
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	die( '-1' );
    }
    
    $event_id = get_the_ID();
    
    ?>
    
    <!-- Notices -->
    	<?php tribe_events_the_notices() ?>
        
        <div class="add-event-breadcrumbs"><?php tribe_breadcrumbs(); ?></div>
    
    	<?php the_title( '<h2 class="tribe-events-single-event-title summary entry-title">', '</h2>' ); ?>
        
        
    <div id="sidebar" class="sidebar" style="float:left;">
    <div id="nav_menu-20" class="widget widget_nav_menu">
    <div class="menu-event-landing-page-menu-container">
    <ul id="menu-event-landing-page-menu" class="menu">
    <li id="menu-item-5802" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-5802">
    <a href="http://calgaryphil.com/events/tag/2016-17-season/">2016/17 Season</a>
    </li>
    <li id="menu-item-1755" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1755">
    <a href="http://calgaryphil.com/concerts-tickets/tickets/subscriptions/">Subscriptions</a>
    </li>
    <li id="menu-item-1756" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1756">
    <a href="http://calgaryphil.com/concerts-tickets/tickets/group-sales/">Group Sales</a>
    </li>
    <li id="menu-item-1757" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1757">
    <a href="http://calgaryphil.com/concerts-tickets/tickets/seating-map/">Seating Map</a>
    </li>
    <li id="menu-item-1758" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1758">
    <a href="http://calgaryphil.com/concerts-tickets/tickets/ticket-policies/">Ticket Policies</a>
    </li>
    <li id="menu-item-1759" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1759">
    <a href="http://calgaryphil.com/concerts-tickets/tickets/corporate-offers/">Corporate Offers</a>
    </li>
    <li id="menu-item-1760" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1760">
    <a href="http://calgaryphil.com/concerts-tickets/cpossibilities/">Cpossibilities</a>
    </li>
    <li id="menu-item-1761" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1761">
    <a href="http://calgaryphil.com/concerts-tickets/special-events/">Special Events</a>
    </li>
    <li id="menu-item-1762" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1762">
    <a href="http://calgaryphil.com/concerts-tickets/music-venues/">Music Venues</a>
    </li>
    </ul>
    </div>
    </div>
    </div>
        
    
    <div id="tribe-events-content" class="tribe-events-single vevent hentry" style="float:right;">    
    
    	<!-- Event header -->
    	<div id="tribe-events-header" <?php tribe_events_the_header_attributes() ?>>
    		<!-- Navigation -->
    		<h3 class="tribe-events-visuallyhidden"><?php _e( 'Event Navigation', 'tribe-events-calendar' ) ?></h3>
    		<ul class="tribe-events-sub-nav">
    			<li class="tribe-events-nav-previous"><?php tribe_the_prev_event_link( '<span>&laquo;</span> %title%' ) ?></li>
    			<li class="tribe-events-nav-next"><?php tribe_the_next_event_link( '%title% <span>&raquo;</span>' ) ?></li>
    		</ul>
    		<!-- .tribe-events-sub-nav -->
    	</div>
    	<!-- #tribe-events-header -->
    
    	<?php while ( have_posts() ) :  the_post(); ?>
    		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    			<!-- Event featured image, but exclude link -->
    			<?php /*echo tribe_event_featured_image( $event_id, 'full', false );*/ ?>
    
    			<div id="owl-example" class="owl-carousel owl-theme">
    
    				<?php 
    
    				$image = get_field('image_1');
    
    				if( !empty($image) ): 
    
    					// vars
    					$url = $image['url'];
    					$title = $image['title'];
    					$alt = $image['alt'];
    					$caption = $image['caption'];
    
    					// thumbnail
    					$size = 'large';
    					$thumb = $image['sizes'][ $size ];
    					$width = $image['sizes'][ $size . '-width' ];
    					$height = $image['sizes'][ $size . '-height' ];
    					?>
    
    					<div class="item">
    
    						<img src="<?php echo $thumb; ?>" alt="<?php echo $alt; ?>" />
    
    					</div>
    
    				<?php endif; ?>
    
    				<?php 
    
    				$image = get_field('image_2');
    
    				if( !empty($image) ): 
    
    					// vars
    					$url = $image['url'];
    					$title = $image['title'];
    					$alt = $image['alt'];
    					$caption = $image['caption'];
    
    					// thumbnail
    					$size = 'large';
    					$thumb = $image['sizes'][ $size ];
    					$width = $image['sizes'][ $size . '-width' ];
    					$height = $image['sizes'][ $size . '-height' ];
    					?>
    
    					<div class="item">
    
    						<img src="<?php echo $thumb; ?>" alt="<?php echo $alt; ?>" />
    
    					</div>
    
    				<?php endif; ?>
    
    				<?php 
    
    				$image = get_field('image_3');
    
    				if( !empty($image) ): 
    
    					// vars
    					$url = $image['url'];
    					$title = $image['title'];
    					$alt = $image['alt'];
    					$caption = $image['caption'];
    
    					// thumbnail
    					$size = 'large';
    					$thumb = $image['sizes'][ $size ];
    					$width = $image['sizes'][ $size . '-width' ];
    					$height = $image['sizes'][ $size . '-height' ];
    					?>
    
    					<div class="item">
    
    						<img src="<?php echo $thumb; ?>" alt="<?php echo $alt; ?>" />
    
    					</div>
    
    				<?php endif; ?>
    
    				<?php 
    
    				$image = get_field('image_4');
    
    				if( !empty($image) ): 
    
    					// vars
    					$url = $image['url'];
    					$title = $image['title'];
    					$alt = $image['alt'];
    					$caption = $image['caption'];
    
    					// thumbnail
    					$size = 'large';
    					$thumb = $image['sizes'][ $size ];
    					$width = $image['sizes'][ $size . '-width' ];
    					$height = $image['sizes'][ $size . '-height' ];
    					?>
    
    					<div class="item">
    
    						<img src="<?php echo $thumb; ?>" alt="<?php echo $alt; ?>" />
    
    					</div>
    
    				<?php endif; ?>
    
    				<?php 
    
    				$image = get_field('image_5');
    
    				if( !empty($image) ): 
    
    					// vars
    					$url = $image['url'];
    					$title = $image['title'];
    					$alt = $image['alt'];
    					$caption = $image['caption'];
    
    					// thumbnail
    					$size = 'large';
    					$thumb = $image['sizes'][ $size ];
    					$width = $image['sizes'][ $size . '-width' ];
    					$height = $image['sizes'][ $size . '-height' ];
    					?>
    
    					<div class="item">
    
    						<img src="<?php echo $thumb; ?>" title="<?php echo $title; ?>" />
    
    					</div>
    
    				<?php endif; ?>
    
    			</div>
                
                
                <div id="event-details-col1">
                <h2 class="add-performance-details-title">PERFORMANCE DETAILS</h2>
                <p style="margin:0;">VENUE: <?php echo tribe_get_venue_link(); ?></p>
    		    <p style="display:inline; margin:0;">SERIES: <?php echo tribe_meta_event_cats(); ?></p>
    			</div>
    			<div id="event-details-col2">
                
                <div class="fusion-button-wrapper fusion-alignright">
    <style type="text/css">
    .fusion-button.button-1{border-width:1px;color:#ffffff;border-color:#ffffff;}.fusion-button.button-1:hover,.fusion-button.button-1:focus,.fusion-button.button-1:active{border-width:1px;border-color:#787878;color:#787878;}.fusion-button.button-1{background: #36373c;}.fusion-button.button-1:hover,.button-1:focus,.fusion-button.button-1:active{background: #000000;}
    
    #content{
      	margin-left: auto !important;
        margin-right: auto !important;
        float:none !important;
    }
    
    </style>
    
    <!-- <a class="fusion-button button-flat button-round button-large button-default button-1 fusion-animated fadeInLeft" data-target=".social-share-popup" data-toggle="modal" href="#" target="_self" data-animationduration="0.5" data-animationtype="fadeInLeft" style="visibility: visible; animation-duration: 0.5s;">
    <i class="fa fa-share button-icon-left"></i>
    <span class="fusion-button-text">SHARE</span>
    </a> -->
    
    </div>
    <div class="mailmunch-forms-after-post" style="display: none !important;"></div>
                
                
                </div>
                
                <div id="add-share-popup-modal" class="fusion-modal modal fade modal-1 social-share-popup" aria-hidden="true" aria-labelledby="modal-heading-1" role="dialog" tabindex="-1" style="display: none;">
    <style type="text/css">
    .modal-1 .modal-header, .modal-1 .modal-footer{border-color:#ebebeb;}
    </style>
    <div class="modal-dialog modal-sm">
    <div class="modal-content fusion-modal-content" style="background-color:#ffffff">
    <div class="modal-header">
    <button class="close" aria-hidden="true" data-dismiss="modal" type="button">×</button>
    <h3 id="modal-heading-1" class="modal-title" aria-hidden="true" data-dismiss="modal" data-fontsize="20" data-lineheight="24">CHOOSE YOUR PLATFORM</h3>
    </div>
    <div class="modal-body">
    <div id="add-share-popup" class="share-box fusion-sharing-box boxed-icons" style="background-color: rgb(255, 255, 255);">
    <h4 class="tagline" style="color: rgb(51, 51, 51);" data-fontsize="16" data-lineheight="20">Share This Story, Choose Your Platform!</h4>
    <div class="fusion-social-networks boxed-icons">
    <a class="fusion-social-network-icon fusion-tooltip fusion-facebook fusion-icon-facebook" data-toggle="tooltip" title="" data-title="" data-placement="top" style="color:#ffffff;background-color:#a8a8a8;border-color:#a8a8a8;border-radius:24px;" target="_blank" href="http://www.facebook.com/sharer.php?m2w&s=100&p[url]=&p[images][0]=http://calgaryphil.com/wp-content/uploads/2015/04/CPO-Group-photo.jpg&p[title]=" data-original-title="Facebook"></a>
    <a class="fusion-social-network-icon fusion-tooltip fusion-twitter fusion-icon-twitter" data-toggle="tooltip" title="" data-title="" data-placement="top" style="color:#ffffff;background-color:#a8a8a8;border-color:#a8a8a8;border-radius:24px;" target="_blank" href="https://twitter.com/share?text=&url=" data-original-title="Twitter"></a>
    <a class="fusion-social-network-icon fusion-tooltip fusion-pinterest fusion-icon-pinterest" data-toggle="tooltip" title="" data-title="" data-placement="top" style="color:#ffffff;background-color:#a8a8a8;border-color:#a8a8a8;border-radius:24px;" target="_blank" href="http://pinterest.com/pin/create/button/?url=&description=&media=" data-original-title="Pinterest"></a>
    <a class="fusion-social-network-icon fusion-tooltip fusion-googleplus fusion-icon-googleplus" data-toggle="tooltip" title="" data-title="" data-placement="top" style="color:#ffffff;background-color:#a8a8a8;border-color:#a8a8a8;border-radius:24px;" target="_blank" href="https://plus.google.com/share?url=" onclick="javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" data-original-title="Google+"></a>
    <a class="fusion-social-network-icon fusion-tooltip fusion-linkedin fusion-icon-linkedin" data-toggle="tooltip" title="" data-title="" data-placement="top" style="color:#ffffff;background-color:#a8a8a8;border-color:#a8a8a8;border-radius:24px;" target="_blank" href="http://linkedin.com/shareArticle?mini=true&url=&title=" data-original-title="Linkedin"></a>
    <a class="fusion-social-network-icon fusion-tooltip fusion-mail fusion-icon-mail" data-toggle="tooltip" title="" data-title="" data-placement="top" style="color:#ffffff;background-color:#a8a8a8;border-color:#a8a8a8;border-radius:24px;" target="_self" href="mailto:?subject=&body=" data-original-title="Mail"></a>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
                
                
    			<!-- Event content -->
    			<?php do_action( 'tribe_events_single_event_before_the_content' ) ?>
    			<div class="tribe-events-single-event-description tribe-events-content entry-content description">
    				<?php the_content(); ?>
    
    		  </div>
    			<!-- .tribe-events-single-event-description -->
    			<?php do_action( 'tribe_events_single_event_after_the_content' ) ?>
    
    			<!-- Event meta -->
    			<?php do_action( 'tribe_events_single_event_before_the_meta' ) ?>
    			<?php
    			/**
    			 * The tribe_events_single_event_meta() function has been deprecated and has been
    			 * left in place only to help customers with existing meta factory customizations
    			 * to transition: if you are one of those users, please review the new meta templates
    			 * and make the switch!
    			 */
    			if ( ! apply_filters( 'tribe_events_single_event_meta_legacy_mode', false ) ) {
    				tribe_get_template_part( 'modules/meta' );
    			} else {
    				echo tribe_events_single_event_meta();
    			}
    			?>
    			<?php do_action( 'tribe_events_single_event_after_the_meta' ) ?>
    </div> <!-- #post-x -->
    		<?php if ( get_post_type() == TribeEvents::POSTTYPE && tribe_get_option( 'showComments', false ) ) comments_template() ?>
    	<?php endwhile; ?>
    
    	<!-- Event footer -->
    	<div id="tribe-events-footer">
    		<!-- Navigation -->
    		<!-- Navigation -->
    		<h3 class="tribe-events-visuallyhidden"><?php _e( 'Event Navigation', 'tribe-events-calendar' ) ?></h3>
    		<ul class="tribe-events-sub-nav">
    			<li class="tribe-events-nav-previous"><?php tribe_the_prev_event_link( '<span>&laquo;</span> %title%' ) ?></li>
    			<li class="tribe-events-nav-next"><?php tribe_the_next_event_link( '%title% <span>&raquo;</span>' ) ?></li>
    		</ul>
    		<!-- .tribe-events-sub-nav -->
    	</div>
    	<!-- #tribe-events-footer -->
    
    </div><!-- #tribe-events-content -->
    

    Thanks,
    Chris

    • This reply was modified 9 years, 5 months ago by Christopher.
    Christopher
    Participant

    Okay I will try that as soon as I find time. I’ll let you know how I make out. Good suggestion on setting up a staging site!

    Thanks,
    Chris

    in reply to: Exclude Events Tags From Related Events Output #984435
    Christopher
    Participant

    Hi Josh,

    Thanks, yes this is exactly what I needed!

    Cheers,
    Chris

    in reply to: Exclude Events Tags From Related Events Output #971644
    Christopher
    Participant

    Hi Josh,

    Thanks, yes that helped me. I removed the code below from this file:

    events-calendar-pro/public/template-tags/general.php

    if ( $tags ) {

    $args[‘tax_query’][] = array( ‘taxonomy’ => ‘post_tag’, ‘field’ => ‘id’, ‘terms’ => $tags );

    }

    It did the trick, but this is not ideal because I’m not doing an override here. I’ve edited the file directly.

    I guess my next question is there a way to override this file? I couldn’t find an answer to this in your documentation.

    Thanks,
    Chris

Viewing 4 posts - 1 through 4 (of 4 total)