Ejemplo n.º 1
0
 /**
  * Add header attributes for photo view
  *
  * @return string
  **/
 public function header_attributes($attrs)
 {
     $attrs['data-startofweek'] = get_option('start_of_week');
     $attrs['data-view'] = 'photo';
     $attrs['data-baseurl'] = tribe_get_photo_permalink(false);
     return apply_filters('tribe_events_pro_header_attributes', $attrs);
 }
Ejemplo n.º 2
0
 /**
  * Add photo view to the views selector in the tribe events bar.
  *
  * @param array $views The current array of views registered to the tribe bar.
  *
  * @return array The views registered with photo view added.
  */
 public function setup_photoview_in_bar($views)
 {
     $views[] = array('displaying' => 'photo', 'anchor' => __('Photo', 'tribe-events-calendar-pro'), 'event_bar_hook' => 'tribe_events_before_template', 'url' => tribe_get_photo_permalink());
     return $views;
 }