Skip to content

Instantly share code, notes, and snippets.

@viruthagiri
Last active September 13, 2016 14:42
Show Gist options
  • Select an option

  • Save viruthagiri/d07977b95da3d249148e5e428024b02c to your computer and use it in GitHub Desktop.

Select an option

Save viruthagiri/d07977b95da3d249148e5e428024b02c to your computer and use it in GitHub Desktop.

Revisions

  1. viruthagiri revised this gist Sep 13, 2016. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions eveent_date.php
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,8 @@
    <?php
    add_filter( 'template_include', 'custom_geodir_event_template_loader',0);
    function custom_geodir_event_template_loader($template) {

    if(geodir_get_current_posttype() == 'gd_event'){
    remove_filter('geodir_detail_page_sidebar_content', 'geodir_event_detail_page_sitebar_content', 2);
    add_action('geodir_before_main_content', 'geodir_event_show_shedule_date');
    add_action('geodir_details_main_content', 'geodir_event_show_shedule_date', 35);
    }
    }
  2. viruthagiri revised this gist Sep 13, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion eveent_date.php
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,6 @@ function custom_geodir_event_template_loader($template) {

    if(geodir_get_current_posttype() == 'gd_event'){
    remove_filter('geodir_detail_page_sidebar_content', 'geodir_event_detail_page_sitebar_content', 2);
    add_action('geodir_after_main_content', 'geodir_event_show_shedule_date');
    add_action('geodir_before_main_content', 'geodir_event_show_shedule_date');
    }
    }
  3. viruthagiri created this gist Sep 13, 2016.
    9 changes: 9 additions & 0 deletions eveent_date.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    <?php
    add_filter( 'template_include', 'custom_geodir_event_template_loader',0);
    function custom_geodir_event_template_loader($template) {

    if(geodir_get_current_posttype() == 'gd_event'){
    remove_filter('geodir_detail_page_sidebar_content', 'geodir_event_detail_page_sitebar_content', 2);
    add_action('geodir_after_main_content', 'geodir_event_show_shedule_date');
    }
    }