Advertisement
BakerMan

Comment out sp_ functions (TEC)

Oct 17th, 2012
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 19.43 KB | None | 0 0
  1. <?php
  2. /**
  3.  * These are for backwards compatibility with the free The Events Calendar plugin.
  4.  * Don't use them.
  5.  *
  6.  * Amendment: all sp_ prefixed functions have been commented out.
  7.  */
  8.  
  9. // Don't load directly
  10. if ( !defined('ABSPATH') ) { die('-1'); }
  11.  
  12. if ( class_exists('TribeEvents') ) {
  13.  
  14.     function event_grid_view() {
  15.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_calendar_grid()' );
  16.         tribe_calendar_grid();
  17.     }
  18.  
  19.     function get_event_google_map_link( $postId = null ) {
  20.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_map_link()' );
  21.         return tribe_get_map_link( $postId );
  22.     }
  23.  
  24.     function event_google_map_link( $postId = null ) {
  25.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_map_link()' );
  26.         echo tribe_get_map_link( $postId );
  27.     }
  28.  
  29.     function tec_get_event_address( $postId = null, $includeVenue = false ) {
  30.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_full_address()' );
  31.         return tribe_get_full_address($postId, $includeVenue);
  32.     }
  33.  
  34.     function tec_event_address( $postId = null ) {
  35.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_full_address()' );
  36.         echo tribe_get_full_address( $postId );
  37.     }
  38.  
  39.     function tec_address_exists( $postId = null ) {
  40.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_address_exists()' );
  41.         return tribe_address_exists( $postId );
  42.     }
  43.  
  44.     function get_event_google_map_embed( $postId = null, $width = '', $height = '' ) {
  45.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_embedded_map()' );
  46.         return tribe_get_embedded_map( $postId, $width, $height );
  47.     }
  48.  
  49.     function event_google_map_embed( $postId = null, $width = null, $height = null ) {
  50.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_embedded_map()' );
  51.         echo tribe_get_embedded_map( $postId, $width, $height );
  52.     }
  53.  
  54.     function get_jump_to_date_calendar( $prefix = '' ) {
  55.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_month_year_dropdowns()' );
  56.         tribe_month_year_dropdowns( $prefix );
  57.     }
  58.  
  59.     function the_event_start_date( $postId = null, $showtime = 'true', $dateFormat = '' ) {
  60.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_start_date()' );
  61.         echo tribe_get_start_date( $postId, $showtime, $dateFormat );
  62.     }
  63.  
  64.     function the_event_end_date( $postId = null, $showtime = 'true', $dateFormat = '' ) {
  65.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_end_date()' );
  66.         echo tribe_get_end_date( $postId, $showtime, $dateFormat );
  67.     }
  68.  
  69.     function the_event_cost( $postId = null) {
  70.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_cost()' );
  71.         echo tribe_get_cost($postId);
  72.     }
  73.  
  74.     function the_event_venue( $postId = null) {
  75.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_venue()' );
  76.         echo tribe_get_venue( $postID );
  77.     }
  78.  
  79.     function the_event_country( $postId = null) {
  80.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_country()' );
  81.         echo tribe_get_country( $postID );
  82.     }
  83.  
  84.     function the_event_address( $postId = null) {
  85.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_address()' );
  86.         echo tribe_get_address( $postID );
  87.     }
  88.  
  89.     function the_event_city( $postId = null) {
  90.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_city()' );
  91.         echo tribe_get_city( $postID );
  92.     }
  93.  
  94.     function the_event_state( $postId = null) {
  95.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_state()' );
  96.         echo tribe_get_state( $postID );
  97.     }
  98.  
  99.     function the_event_province( $postId = null) {
  100.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_province()' );
  101.         echo tribe_get_province( $postID );
  102.     }
  103.  
  104.     function the_event_zip( $postId = null) {
  105.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_zip()' );
  106.         echo tribe_get_zip( $postID );
  107.     }
  108.  
  109.     function the_event_phone( $postId = null) {
  110.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_phone()' );
  111.         echo tribe_get_phone( $postID );
  112.     }
  113.  
  114.     function the_event_region() {
  115.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_region()' );
  116.         echo tribe_get_region( $postID );
  117.     }
  118.  
  119.     function the_event_all_day( $postId = null ) {
  120.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_all_day()' );
  121.         echo tribe_get_all_day( $postID );
  122.     }
  123.  
  124.     function is_new_event_day() {
  125.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_new_event_day()' );
  126.         return tribe_is_new_event_day();
  127.     }
  128.  
  129.     function get_events( $numResults = null, $catName = null ) {
  130.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_events()' );
  131.         return tribe_get_events( $numResults, $catName );
  132.     }
  133.  
  134.     function events_displaying_past() {
  135.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_past()' );
  136.         return tribe_is_past();
  137.     }
  138.  
  139.     function events_displaying_upcoming() {
  140.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_upcoming()' );
  141.         return tribe_is_upcoming();
  142.     }
  143.  
  144.     function events_displaying_month() {
  145.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_month()' );
  146.         return tribe_is_month();
  147.     }
  148.  
  149.     function events_get_past_link() {
  150.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_past_link()' );
  151.         return tribe_get_past_link();
  152.     }
  153.  
  154.     function events_get_upcoming_link() {
  155.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_upcoming_link()' );
  156.         return tribe_get_upcoming_link();
  157.     }
  158.  
  159.     function events_get_next_month_link() {
  160.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_next_month_link()' );
  161.         return tribe_get_next_month_link();
  162.     }
  163.  
  164.     function events_get_previous_month_link() {
  165.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_previous_month_link()' );
  166.         return tribe_get_previous_month_link();
  167.     }
  168.  
  169.     function events_get_events_link() {
  170.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_events_link()' );
  171.         return tribe_get_events_link();
  172.     }
  173.  
  174.     function events_get_gridview_link() {
  175.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_gridview_link()' );
  176.         return tribe_get_gridview_link();
  177.     }
  178.  
  179.     function events_get_listview_link() {
  180.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_listview_link()' );
  181.         return tribe_get_listview_link();
  182.     }
  183.  
  184.     function events_get_listview_past_link() {
  185.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_listview_past_link()' );
  186.         return tribe_get_listview_past_link();
  187.     }
  188.  
  189.     function events_get_previous_month_text() {
  190.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_previous_month_text()' );
  191.         return tribe_get_previous_month_text();
  192.     }
  193.  
  194.     function events_get_current_month_text() {
  195.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_current_month_text()' );
  196.         return tribe_get_current_month_text();
  197.     }
  198.  
  199.     function events_get_next_month_text() {
  200.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_next_month_text()' );
  201.         return tribe_get_next_month_text();
  202.     }
  203.  
  204.     function events_get_displayed_month() {
  205.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_displayed_month()' );
  206.         return tribe_get_displayed_month();
  207.     }
  208.  
  209.     function events_get_this_month_link() {
  210.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_this_month_link()' );
  211.         return tribe_get_this_month_link();
  212.     }
  213.  
  214.     /* SP Template Tags.  Deprecated in favor of return tribe_ */
  215.     /*if ( !function_exists( 'sp_get_option' ) ) {
  216.         function sp_get_option($optionName, $default = '') {
  217.             _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_option()' );
  218.             return tribe_get_option($optionName, $default);
  219.         }
  220.     }
  221.  
  222.     function sp_calendar_grid() {
  223.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_calendar_grid()' );
  224.         return tribe_calendar_grid();
  225.     }
  226.  
  227.     function sp_calendar_mini_grid() {
  228.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_calendar_mini_grid()' );
  229.         return tribe_calendar_mini_grid();
  230.     }
  231.  
  232.     function sp_sort_by_month( $results, $date ) {
  233.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_sort_by_month()' );
  234.         return tribe_sort_by_month( $results, $date );
  235.     }
  236.  
  237.     function sp_is_event( $postId = null ) {
  238.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_event()' );
  239.         return tribe_is_event( $postId );
  240.     }
  241.  
  242.     function sp_get_map_link( $postId = null ) {
  243.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_map_link()' );
  244.         return tribe_get_map_link( $postId );
  245.     }
  246.  
  247.     function sp_the_map_link( $postId = null ) {
  248.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_map_link()' );
  249.         echo tribe_get_map_link( $postId );
  250.     }
  251.  
  252.     function sp_get_full_address( $postId = null, $includeVenue = false ) {
  253.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_full_address()' );
  254.         return tribe_get_full_address( $postId );
  255.     }
  256.  
  257.     function sp_the_full_address( $postId = null ) {
  258.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_full_address()' );
  259.         echo tribe_get_full_address( $postId );
  260.     }
  261.  
  262.     function sp_address_exists( $postId = null ) {
  263.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_address_exists()' );
  264.         return tribe_address_exists( $postId );
  265.     }
  266.  
  267.     function sp_get_embedded_map( $postId = null, $width = '', $height = '' ) {
  268.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_embedded_map()' );
  269.         return tribe_get_embedded_map( $postId, $width, $height );
  270.     }
  271.  
  272.     function sp_the_embedded_map( $postId = null, $width = null, $height = null ) {
  273.         _deprecated_function( __FUNCTION__, '2.0', 'echo tribe_get_embedded_map()' );
  274.         echo tribe_get_embedded_map( $postId, $width, $height );
  275.     }
  276.  
  277.     function sp_month_year_dropdowns( $prefix = '' ) {
  278.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_month_year_dropdowns()' );
  279.         return tribe_month_year_dropdowns( $prefix );
  280.     }
  281.  
  282.     function sp_get_start_date( $postId = null, $showtime = true, $dateFormat = '' ) {
  283.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_start_date()' );
  284.         return tribe_get_start_date( $postId, $showtime, $dateFormat );
  285.     }
  286.  
  287.     function sp_get_end_date( $postId = null, $showtime = 'true', $dateFormat = '' ) {
  288.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_end_date()' );
  289.         return tribe_get_end_date( $postId, $showtime, $dateFormat );
  290.     }
  291.  
  292.     function sp_get_cost( $postId = null) {
  293.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_cost()' );
  294.         return tribe_get_cost( $postId);
  295.     }
  296.  
  297.     function sp_has_organizer( $postId = null) {
  298.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_has_organizer()' );
  299.         return tribe_has_organizer( $postId);
  300.     }
  301.  
  302.     function sp_get_organizer( $postId = null) {
  303.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_organizer()' );
  304.         return tribe_get_organizer( $postId);
  305.     }
  306.  
  307.     function sp_get_organizer_email( $postId = null) {
  308.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_organizer_email()' );
  309.         return tribe_get_organizer_email( $postId);
  310.     }
  311.  
  312.     function sp_get_organizer_website( $postId = null) {
  313.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_organizer_link( $postId, false )' );
  314.         return tribe_get_organizer_link( $postId, false );
  315.     }
  316.  
  317.     function sp_get_organizer_link( $postId = null) {
  318.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_organizer_link()' );
  319.         return tribe_get_organizer_link( $postId);
  320.     }
  321.  
  322.     function sp_get_organizer_phone( $postId = null) {
  323.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_organizer_phone()' );
  324.         return tribe_get_organizer_phone( $postId);
  325.     }
  326.  
  327.     function sp_has_venue( $postId = null) {
  328.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_venue_id()' );
  329.         return tribe_get_venue_id( $postId);
  330.     }
  331.  
  332.     function sp_get_venue( $postId = null) {
  333.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_venue()' );
  334.         return tribe_get_venue( $postId);
  335.     }
  336.  
  337.     function sp_get_country( $postId = null) {
  338.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_country()' );
  339.         return tribe_get_country( $postId);
  340.     }
  341.  
  342.     function sp_get_address( $postId = null) {
  343.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_address()' );
  344.         return tribe_get_address( $postId);
  345.     }
  346.  
  347.     function sp_get_city( $postId = null) {
  348.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_city()' );
  349.         return tribe_get_city( $postId);
  350.     }
  351.  
  352.     function sp_get_stateprovince( $postId = null) {
  353.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_stateprovince()' );
  354.         return tribe_get_stateprovince( $postId);
  355.     }
  356.  
  357.     function sp_get_state( $postId = null) {
  358.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_state()' );
  359.         return tribe_get_state( $postId);
  360.     }
  361.  
  362.     function sp_get_province( $postId = null) {
  363.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_province()' );
  364.         return tribe_get_province( $postId);
  365.     }
  366.  
  367.     function sp_get_zip( $postId = null) {
  368.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_zip()' );
  369.         return tribe_get_zip( $postId);
  370.     }
  371.  
  372.     function sp_get_phone( $postId = null) {
  373.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_phone()' );
  374.         return tribe_get_phone( $postId);
  375.     }
  376.  
  377.     function sp_previous_event_link( $anchor = false ) {
  378.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_previous_event_link()' );
  379.         return tribe_previous_event_link( $anchor );
  380.     }
  381.  
  382.     function sp_next_event_link( $anchor = false ) {
  383.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_next_event_link()' );
  384.         return tribe_next_event_link( $anchor );
  385.     }
  386.  
  387.     function sp_post_id_helper( $postId ) {
  388.         _deprecated_function( __FUNCTION__, '2.0' );
  389.         return TribeEvents::postIdHelper( $postId );
  390.     }
  391.  
  392.     function sp_is_new_event_day() {
  393.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_new_event_day()' );
  394.         return tribe_is_new_event_day();
  395.     }
  396.  
  397.     function sp_get_events( $args = '' ) {
  398.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_events()' );
  399.         return tribe_get_events( $args );
  400.     }
  401.  
  402.     function sp_is_past() {
  403.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_past()' );
  404.         return tribe_is_past();
  405.     }
  406.  
  407.     function sp_is_upcoming() {
  408.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_upcoming()' );
  409.         return tribe_is_upcoming();
  410.     }
  411.  
  412.     function sp_is_month() {
  413.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_month()' );
  414.         return tribe_is_month();
  415.     }
  416.  
  417.     function sp_get_past_link() {
  418.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_past_link()' );
  419.         return tribe_get_past_link();
  420.     }
  421.  
  422.     function sp_get_upcoming_link() {
  423.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_upcoming_link()' );
  424.         return tribe_get_upcoming_link();
  425.     }
  426.  
  427.     function sp_get_next_month_link() {
  428.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_next_month_link()' );
  429.         return tribe_get_next_month_link();
  430.     }
  431.  
  432.     function sp_get_previous_month_link() {
  433.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_previous_month_link()' );
  434.         return tribe_get_previous_month_link();
  435.     }
  436.  
  437.     function sp_get_month_view_date() {
  438.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_month_view_date()' );
  439.         return tribe_get_month_view_date();
  440.     }
  441.  
  442.     function sp_get_single_ical_link() {
  443.         if( function_exists('tribe_get_single_ical_link') ) {
  444.             _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_single_ical_link()' );
  445.             return tribe_get_single_ical_link();
  446.         }
  447.     }
  448.  
  449.     function sp_get_events_link() {
  450.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_events()' );
  451.         return tribe_get_events_link();
  452.     }
  453.  
  454.     function sp_get_gridview_link($term = null) {
  455.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_gridview_link()' );
  456.         return tribe_get_gridview_link($term);
  457.     }
  458.  
  459.     function sp_get_listview_link($term = null) {
  460.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_listview_link()' );
  461.         return tribe_get_listview_link($term);
  462.     }
  463.  
  464.     function sp_get_listview_past_link() {
  465.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_listview_past_link()' );
  466.         return tribe_get_listview_past_link();
  467.     }
  468.  
  469.     function sp_get_dropdown_link_prefix() {
  470.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_listview_past_link()' );
  471.         return tribe_get_dropdown_link_prefix();
  472.     }
  473.  
  474.     function sp_get_ical_link() {
  475.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_ical_link()' );
  476.         return tribe_get_ical_link();
  477.     }
  478.  
  479.     function sp_get_previous_month_text() {
  480.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_previous_month_text()' );
  481.         return tribe_get_previous_month_text();
  482.     }
  483.  
  484.     function sp_get_current_month_text(){
  485.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_current_month_text()' );
  486.         return tribe_get_current_month_text();
  487.     }
  488.  
  489.     function sp_get_next_month_text() {
  490.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_next_month_text()' );
  491.         return tribe_get_next_month_text();
  492.     }
  493.  
  494.     function sp_get_displayed_month() {
  495.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_displayed_month()' );
  496.         return tribe_get_displayed_month();
  497.     }
  498.  
  499.     function sp_get_this_month_link() {
  500.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_this_month_link()' );
  501.         return tribe_get_this_month_link();
  502.     }
  503.  
  504.     function sp_get_region( $postId = null ) {
  505.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_region()' );
  506.         return tribe_get_region( $postId );
  507.     }
  508.  
  509.     function sp_get_all_day( $postId = null ) {
  510.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_all_day()' );
  511.         return tribe_get_all_day( $postId );
  512.     }
  513.  
  514.     function sp_is_multiday( $postId = null) {
  515.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_multiday()' );
  516.         return tribe_is_multiday( $postId );
  517.     }
  518.  
  519.     function sp_events_title() {
  520.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_events_title()' );
  521.         return tribe_events_title();
  522.     }
  523.  
  524.     function sp_meta_event_cats() {
  525.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_meta_event_cats()' );
  526.         return tribe_meta_event_cats();
  527.     }
  528.  
  529.     function sp_meta_event_category_name(){
  530.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_meta_event_category_name()' );
  531.         return tribe_meta_event_category_name();
  532.     }
  533.  
  534.     function sp_get_add_to_gcal_link() {
  535.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_gcal_link()' );
  536.         return tribe_get_gcal_link();
  537.     }*/
  538.  
  539.     function eventsGetOptionValue($optionName) {
  540.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_option()' );
  541.         return tribe_get_option($optionName);
  542.     }
  543.  
  544.     function events_by_month( $results, $date ) {
  545.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_sort_by_month()' );
  546.         return tribe_sort_by_month( $results, $date );
  547.     }
  548.  
  549.     function is_event( $postId = null ) {
  550.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_is_event()' );
  551.         return tribe_is_event( $postId );
  552.     }
  553.  
  554.     function getEventMeta( $id, $meta, $single = true ){
  555.         _deprecated_function( __FUNCTION__, '2.0', 'tribe_get_event_meta()' );
  556.         return tribe_get_event_meta( $id, $meta, $single );
  557.     }
  558.  
  559.     function tribe_the_map_link( $postId = null ) {
  560.         _deprecated_function( __FUNCTION__, '2.0.1', 'echo tribe_get_map_link()' );
  561.         echo tribe_get_map_link( $postId );
  562.     }
  563.  
  564.     function tribe_the_embedded_map( $postId = null, $width = null, $height = null ) {
  565.         _deprecated_function( __FUNCTION__, '2.0.1', 'echo tribe_get_embedded_map()' );
  566.         echo tribe_get_embedded_map( $postId, $width, $height );
  567.     }
  568.  
  569.     function tribe_the_full_address( $postId = null, $includeVenueName = false ) {
  570.         _deprecated_function( __FUNCTION__, '2.0.1', 'echo tribe_get_full_address()' );
  571.         echo tribe_get_full_address( $postId );
  572.     }
  573.  
  574.     function tribe_get_organizer_website( $postId = null)  {
  575.         _deprecated_function( __FUNCTION__, '2.0.1', 'echo tribe_get_organizer_link($postId,false)' );
  576.         $output = tribe_get_organizer_link( $postId, false );
  577.         return apply_filters( 'tribe_get_organizer_website', $output);
  578.     }
  579.  
  580.     function tribe_get_venue_permalink( $postId = null)  {
  581.         _deprecated_function( __FUNCTION__, '2.0.1', 'echo tribe_get_venue_link($postId,false)' );
  582.         return tribe_get_venue_link( $postId, false );
  583.     }
  584.  
  585. }
  586. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement