コード例 #1
0
 /**
  * Set up hooks for this template
  *
  * @return void
  * @since 3.0
  **/
 public function hooks()
 {
     parent::hooks();
     // Remove the comments template
     add_filter('comments_template', array($this, 'remove_comments_template'));
     add_action('tribe_events_single_venue_before_upcoming_events', array($this, 'setup_upcoming_events'));
     add_filter('tribe_get_template_part_templates', array($this, 'remove_list_navigation'), 10, 3);
 }
コード例 #2
0
ファイル: week.php プロジェクト: TMBR/johnjohn
 /**
  * Set up hooks for week view
  *
  * @return void
  * */
 protected function hooks()
 {
     parent::hooks();
     add_filter('tribe_events_header_attributes', array($this, 'header_attributes'), 10, 2);
     add_action('tribe_events_week_pre_setup_event', array($this, 'manage_sensitive_info'));
     add_filter('tribe_pre_get_view', array($this, 'setup_loop'));
     add_filter('tribe_pre_get_view', array($this, 'set_week_days'));
 }
コード例 #3
0
ファイル: photo.php プロジェクト: TMBR/johnjohn
 protected function hooks()
 {
     parent::hooks();
     add_filter('tribe_events_header_attributes', array($this, 'header_attributes'));
 }
コード例 #4
0
ファイル: single-organizer.php プロジェクト: TMBR/johnjohn
 /**
  * Set up hooks for this template
  *
  * @return void
  **/
 protected function hooks()
 {
     parent::hooks();
     add_action('tribe_events_single_organizer_before_upcoming_events', array($this, 'setup_upcoming_events'));
     add_filter('tribe_get_template_part_templates', array($this, 'remove_list_navigation'), 10, 3);
 }
コード例 #5
0
ファイル: day.php プロジェクト: donwea/nhap.org
 /**
  * Set up hooks for this template
  *
  * @return void
  * @since 3.0
  **/
 public function hooks()
 {
     parent::hooks();
     add_filter('tribe_get_ical_link', array($this, 'ical_link'), 20, 1);
     add_filter('tribe_events_header_attributes', array($this, 'header_attributes'));
 }
コード例 #6
0
ファイル: map.php プロジェクト: donwea/nhap.org
 /**
  * Set up hooks for map view
  *
  * @return void
  * @since 3.0
  **/
 protected function hooks()
 {
     parent::hooks();
     add_filter('tribe_events_header_attributes', array($this, 'header_attributes'));
     add_action('tribe_events_list_before_the_event_title', array($this, 'add_event_distance'));
 }