Agenda-Widget: format title
-
Hello,
i’ve got a small problem with the agenda-widget of the event-organizer plugin. I am trying to slightly change the display of the title that is shown in the widget.
I want to split the title of every event that is shown in the widget at a certain character. I’ve tried to change the following section in the classes/class-eo-agenda-widget.php file (line 138 following):
<span><strong> <# if( event.all_day ){ #> <?php esc_html_e( 'All day', 'eventorganiser' ); ?> <# }else{ #> {{{ event.start.format(this.param.item_format) }}} <# } #> </strong></span> {{{ event.title }}}
However, i have no idea how i can edit the
{{{ event.tite }}}
text. I want to call the php function explode on the actual title of the event. But i don’t know how to get the title string of the event in pure php.Do you have any idea on how to proceed?
Thank you very much for your help!
- The topic ‘Agenda-Widget: format title’ is closed to new replies.