php - Override Class Twig Timely all-in-one-event-calendar -


i trying override how categories display in timely's all-in-one-event-calendar. calendar uses twig display categories in , alphabetical list. need group list parent id.

at location /all-in-on-event-calendar/app/view/calendar/taxonomy.php is:

/**  * creates html categories filter  *  * @param array $view_args  * @return string  */ public function get_html_for_categories( array $view_args ) {     return $this->_get_html_for_taxonomy( $view_args ); }  /**  * generates html taxonomy selector.  *  * @param array $view_args arguments parent view  * @param bool  $tag       whether it's tags or categories.  *  * @return string          markup categories selector  */ protected function _get_html_for_taxonomy( $view_args, $tag = false ) {     $taxonomy_name      = 'events_categories';     $type               = 'category';     $type_for_filter    = 'cat_ids';     $type_for_view_args = 'categories';      .... stuff want override....      .... twig loader feeds twig template....     $loader = $this->_registry->get( 'theme.loader' );     return $loader->get_file( $type_for_view_args . '.twig', $args, false )         ->get_content(); } 

then in /all-in-on-event-calendar/public/themes-ai1ec/mytemplate/categories.twig is:

<li class="ai1ec-dropdown ai1ec-category-filter {% if selected_cat_ids not empty %}ai1ec-active{% endif %}"> <a class="ai1ec-dropdown-toggle" data-toggle="ai1ec-dropdown">     <i class="ai1ec-fa ai1ec-fa-folder-open"></i>     <span class="ai1ec-clear-filter ai1ec-tooltip-trigger"         data-href="{{ clear_filter }}"         {{ data_type | raw }}         title="{{ text_clear_category_filter }}">         <i class="ai1ec-fa ai1ec-fa-times-circle"></i>     </span>     {{ text_categories }}  ..... cut off rest ..... 

basically - know how can override get_html_for_categories in custom template feeds twig template. know modify /all-in-on-event-calendar/app/view/calendar/taxonomy.php changes rewritten every update. there functions.php located @ /all-in-on-event-calendar/public/themes-ai1ec/mytemplate/functions.php can't seem override class there. suggestions? thanks!


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -