wordpress - To display "venue" in the output of ajax-event-calendar -


i searched "ajax-event-calendar" support forums , faq.but, won't got solution yet. want display venue details in output. ajax-event-calendar

  1. i got solution myself. go plugins folder -> ajax event calendar -> ajax-event-calendar.php -> line no. 820

    function render_eventlist_events($events, $whitelabel, $limit) { usort($events, array($this, 'array_compare_order')); $rows = $this->convert_array_to_object($events); $out = ''; foreach ($rows $count => $row) { global $wpdb; $id1 = $row->id; //echo $id1; $result1 = $wpdb->get_results("select venue wp_aec_event id ='$id1'"); foreach ( $result1 $result2 ) { $venue_name = $result2->venue; } //if ($count < $limit) { if (!$limit || $count < $limit) {

            // split database formatted datetime value display formatted date , time values         $row->start_date    = $this->convert_date($row->start, aec_db_datetime_format, aec_wp_date_format);         $row->start_time    = $this->convert_date($row->start, aec_db_datetime_format, aec_wp_time_format);         $row->end_date      = $this->convert_date($row->end, aec_db_datetime_format, aec_wp_date_format);         $row->end_time      = $this->convert_date($row->end, aec_db_datetime_format, aec_wp_time_format);         // link event         $class = ($whitelabel) ? '' : ' ' . $row->classname;         $out .= '<span class="fc-event-time">';         $out .= $row->start_date;          if (!$row->allday) {             $out .= ' ' . $row->start_time;         }         $out .= '</span>';         $out .= '<div class="fc-event' . $class . '" onclick="jquery.aecdialog({\'id\':' . $row->id . ',\'start\':\'' . $row->start . '\',\'end\':\'' . $row->end . '\'});">';         $out .= '<div class="fc-event-title">' . $this->render_i18n_data($row->title) . '</div>';         echo '<script type="text/javascript">';         echo 'if ($(window).width() < 980) {';             $out .= '<div class="fc-event-mobile">' . $row->start_time . ' | ' . $venue_name . '</div>';         echo '}';         echo '</script>';         $out .= '</div>';     } } return $out; 

    }

  2. have include code in stars venue display.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -