Home › Forums › Calendar Products › Community Events › community events list page – source code on frontend
- This topic has 2 replies, 2 voices, and was last updated 10 years, 9 months ago by
Brian.
-
AuthorPosts
-
June 20, 2015 at 3:44 pm #971661
Jacob
ParticipantHello Team,
After the 3.10 update my “community events list page” page appears to show some source code. I’m not a developer by far and can’t really say if this is due to the update or anything else on my page. I’m lost and would appreciate your help:
Source code displayed:
“class Tooltips_Walker extends Walker_Nav_Menu { function start_el(&$output, $item, $depth, $args) { $classes = empty ( $item->classes ) ? array () : (array) $item->classes; $class_names = join( ‘ ‘ , apply_filters( ‘nav_menu_css_class’ , array_filter( $classes ), $item ) ); ! empty ( $class_names ) and $class_names = ‘ class=”‘. esc_attr( $class_names ) . ‘”‘; $attributes = ”; if(strstr($class_names, ‘tooltips’)) { $attributes = ‘ class=”tooltips”‘; } $class_names = str_replace(‘tooltips’, ”, $class_names); $output .= ”
“; ! empty( $item->attr_title ) and $attributes .= ‘ title=”‘ . esc_attr( $item->attr_title ) .'”‘; ! empty( $item->target ) and $attributes .= ‘ target=”‘ . esc_attr( $item->target ) .'”‘; ! empty( $item->xfn ) and $attributes .= ‘ rel=”‘ . esc_attr( $item->xfn ) .'”‘; ! empty( $item->url ) and $attributes .= ‘ href=”‘ . esc_attr( $item->url ) .'”‘; // insert description for top level elements only // you may change this $description = ( ! empty ( $item->description ) and 0 == $depth ) ? esc_attr( $item->description ) : ”; $title = apply_filters( ‘the_title’, $item->title, $item->ID ); $item_output = $args->before . “” . $args->link_before . $title . ‘ ‘ . $args->link_after . $args->after; // Since $output is called by reference we don’t need to return anything. $output .= apply_filters( ‘walker_nav_menu_start_el’ , $item_output , $item , $depth , $args ); } } function get_avatar_url($author_id, $size){ $get_avatar = get_avatar( $author_id, $size ); preg_match(“/src='(.*?)’/i”, $get_avatar, $matches); return ( $matches[1] ); }”After switching themes I’ve seen that is related with the theme. Probably my custom header.php. However, it worked before the 3.10 update.
Hope you have an idea!
Best wishes,
JacobJune 21, 2015 at 5:24 am #971685Jacob
ParticipantHey folks,
Issue is resolved and nothing to do with your update at all:)
Soooorryyy!!
JacobJune 21, 2015 at 6:09 pm #971723Brian
MemberI am glad to see you were able to figure it out.
I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.
Thanks!
-
AuthorPosts
- The topic ‘community events list page – source code on frontend’ is closed to new replies.
