PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wilcity-mobile-app
/
app
/
SidebarOnApp
<?php namespace WILCITY_APP\SidebarOnApp; class Categories { public function __construct() { add_filter('wilcity/mobile/sidebar/categories', array($this, 'render'), 10, 2); } public function render($post, $aAtts){ $aInfo = array(); $aTerms = wp_get_post_terms($post->ID, 'listing_cat'); if ( empty($aTerms) || is_wp_error($aTerms) ){ return false; } foreach ( $aTerms as $order => $oTerm ){ if ( empty( $oTerm ) || is_wp_error( $oTerm ) ) { continue; } $aInfo[$order] = \WilokeHelpers::getTermOriginalIcon($oTerm); $aInfo[$order]['name'] = $oTerm->name; $aInfo[$order]['term_id'] = $oTerm->term_id; $aInfo[$order]['slug'] = $oTerm->slug; } return json_encode($aInfo); } }
[+]
..
[-] Claim.php
[edit]
[-] TermBox.php
[edit]
[-] Categories.php
[edit]
[-] BusinessInfo.php
[edit]
[-] BusinessHours.php
[edit]
[-] PriceRange.php
[edit]
[-] CustomContent.php
[edit]
[-] Statistic.php
[edit]
[-] Tags.php
[edit]