This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| // LISTING DETAIL PAGE TABS | |
| var tabs = $j('.cd-tabs'); | |
| tabs.each(function(){ | |
| var tab = $j(this), | |
| tabItems = tab.find('ul.cd-tabs-navigation'), | |
| tabContentWrapper = tab.children('ul.cd-tabs-content'), | |
| tabNavigation = tab.find('nav'); | |
| tabItems.on('click', 'a', function(event){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function showBeforeMore($fullText){ | |
| $more = '<!--more-->'; | |
| if(strpos($fullText, $more)!==false){ | |
| $morePos = strpos($fullText, $more); | |
| $rest = str_replace($more, '', $morePos); | |
| //only show the text before the <!--more--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $agent_id = get_field('idx_ID'); | |
| echo do_shortcode('[impress_property_showcase property_type="featured" agent_id="'.$agent_id.'" show_image="1" use_rows="1" num_per_row="3" max="12" order="low-high" styles="1" new_window="0" ]'); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| foreach ($entries as $entry){ | |
| $xmlstr = <<<XML | |
| <?xml version='1.0' encoding='UTF-8'?> | |
| <complaints></complaints> | |
| XML; | |
| $complaints = new SimpleXMLElement($xmlstr); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $output = array(); | |
| if(isset($med_sciences) && $med_sciences[0]=="Y"){ | |
| array_push($output , 'Medical Sciences'); | |
| } | |
| if(isset($food_ag) && $food_ag[0]=="Y"){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $output = ''; | |
| $fields = wcf_get_form_search_values($id); | |
| $settings = wcf_get_form_search_settings($id); | |
| $columns = $settings['columns_per_row'] != '' ? $settings['columns_per_row'] : 3; | |
| $template_loop = 'wcf-loop'; | |
| if ($settings['search_type'] == 'single') { | |
| if (!post_type_exists($settings['post_type'][0])) { | |
| return __('The post type: ' . $settings['post_type'] .' doesn\'t existing', WORDPRESS_CONTENT_FILTER_LANG); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function resortbrands($a,$b){ | |
| $a = preg_replace('/(\*|\.){2,}/', '$1', $a); | |
| $b = preg_replace('/(\*|\.){2,}/', '$1', $b); | |
| return strcmp($a,$b); | |
| } | |
| uasort($package, 'resortbrands'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function clean($string) { | |
| return str_replace('*', '', $string); | |
| } | |
| function sortMyThings($things) { | |
| uasort($things, function($left, $right) { | |
| $left = strtoupper(clean($left['name'])); | |
| $right = strtoupper(clean($right['name'])); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $grouped = []; | |