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 inspiry_readable_price_format($price){ | |
| // first strip any formatting; | |
| $price = (0+str_replace(",","",$price)); | |
| // now filter it; | |
| if($price>1000000000000){ | |
| $price = round(($price/1000000000000),1). esc_html__(' T', 'easy-real-estate'); | |
| } |
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 inspiry_remove_tax_slugs($query_vars){ | |
| // Add the slugs of those taxonomies which you want to remove from url. | |
| $tax_slugs = array('property-type','property-status','property-city'); | |
| if( isset($query_vars['attachment']) ? $query_vars['attachment'] : null) : | |
| $include_children = true; | |
| $name = $query_vars['attachment']; |
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
| <style> | |
| /* Child Theme - Custom CSS File for Buyers to Modify */ | |
| .wp-customizer .wp-picker-input-wrap .button, .wp-picker-input-wrap .button { | |
| width: auto; | |
| display: inline-block; | |
| background: #ea723d !important; | |
| color: #fff !important; | |
| border: 0 !important; | |
| } | |
| .wp-picker-container .wp-color-result.button{ |
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
| Class Inspiry_Additional_Meta_Fields_Builder { | |
| public static $_instance; | |
| public $meta_box_data; | |
| function __construct(){ | |
| $this->meta_box_data = $this->inspiry_get_meta_box_value_array(); |
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
| // Block ru extention in email like www.google.ru | |
| $.validator.addMethod("noRu", function(value, element) { | |
| return (this.optional(element) || value.slice(-3) != ".ru"); | |
| }, "The .ru extention is not allowed in email address"); | |
| // Prevent users to add any URL in textarea | |
| $.validator.addMethod("noUrl", function(value, element) { | |
| return (this.optional(element) || value.match(/\b(http|https)?(:\/\/)?(\S*)\.(\w{2,4})(.*)/g) == null); |