PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wilcity-shortcodes
/
app
/
ParseShortcodeAtts
<?php namespace WILCITY_SC\ParseShortcodeAtts; use WILCITY_SC\SCHelpers; use WilokeListingTools\Framework\Helpers\TermSetting; trait ParseTermsInSc { public function getTermsInSc() { if (!isset($this->aScAttributes['listing_locations'])) { return false; } $aTaxonomyKeys=[]; if(isset($this->aScAttributes['post_type'])){ $aTaxonomyKeys = TermSetting::getListingTaxonomyKeys($this->aScAttributes['post_type']); } $aTaxonomies = []; foreach ($aTaxonomyKeys as $taxonomy) { $termIDs = ''; if (isset($this->aScAttributes[$taxonomy]) && !empty($this->aScAttributes[$taxonomy])) { $termIDs = $this->aScAttributes[$taxonomy]; } else if (isset($this->aScAttributes[$taxonomy.'s']) && !empty($this->aScAttributes[$taxonomy.'s'])) { $termIDs = $this->aScAttributes[$taxonomy.'s']; } if (!empty($termIDs)) { $aTaxonomies[$taxonomy] = SCHelpers::getAutoCompleteVal($termIDs); } } $this->aScAttributes['terms_in_sc'] = $aTaxonomies; } }
[+]
..
[-] CountPostsInTerm.php
[edit]
[-] ParsePostType.php
[edit]
[-] ParseTermArgs.php
[edit]
[-] MergeIsAppRenderingAtts.php
[edit]
[-] ParseTermsInSc.php
[edit]
[-] PrepareHeading.php
[edit]
[-] ParseColumnClasses.php
[edit]
[-] BuildTermQueryArgs.php
[edit]
[-] ParseImageSize.php
[edit]
[-] ParseShortcodeAtts.php
[edit]
[-] GetPostsInTerm.php
[edit]
[-] ParseTermLink.php
[edit]