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 src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAlMrFJCY6VldvwPWn9zB1q417eTS7gNno&libraries=places"></script> | |
| <script> | |
| function initialize() { | |
| var input = document.getElementById('locationofproperty'); | |
| var options = { | |
| types: ['address'], | |
| componentRestrictions: { | |
| country: 'IN' |
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
| /* update user profile programaticaly in wordpress*/ | |
| add_action( 'personal_options_update', 'save_extra_user_profile_fields' ); | |
| add_action( 'edit_user_profile_update', 'save_extra_user_profile_fields' ); | |
| function save_extra_user_profile_fields( $user_id ) { | |
| if ( !current_user_can( 'edit_user', $user_id ) ) { | |
| return false; | |
| } | |
| update_user_meta( $user_id, 'phone_number', $_POST['phone_number'] ); |
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
| /* update user for multiple roles */ | |
| function update_and_add_user_role($userId,$role){ | |
| $required_id = $userId; | |
| $addMemberToGroup = new WP_User($required_id); | |
| $addMemberToGroup->add_role($role); | |
| } | |
| /*to remove use below function*/ | |
| remove_role( $role ); |
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
| <form method="post" action="" enctype="multipart/form-data"> | |
| <label>Name</label> | |
| <input type="text" placeholder="Name" name="name"> | |
| <br> | |
| <br> | |
| <input type="file" multiple name="file[]"> | |
| <br> | |
| <br> | |
| <input type="submit" value="submit" name="submit_val"> | |
| </form> |
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 for multiple location on map*************/ | |
| function get_map_by_location($mapData){ | |
| $mapId = $mapData['mapid']; | |
| $locations = $mapData['location']; | |
| /* $description = $mapData['description']; | |
| $statename = $mapData['statename']; */ | |
| $polyLatLong = $mapData['polyLatLong']; |
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
| //location added like value format | |
| $value .= '['.$i.','.$graphResult.'] | |
| $NetROIAfterSellFunction = cashAtClose('NetROIAfterSell','barchart','','Year',''); /*Returning value*/ | |
| //make array for data and call function for barchart | |
| $NetROIAfterSellResult = array( | |
| 'maintitle'=>'Net ROI After Sell (%)', | |
| 'class1'=>'NetROIAfterSell', | |
| 'toggleid'=>'NetROIAfterSell1', |
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
| jQuery(document).ready(function(){ | |
| var url= jQuery(location).attr('href'); | |
| if (window.location.href.indexOf("#wpcf7-f319-p233-o1") > -1) { | |
| urls = url.replace('#wpcf7-f319-p233-o1',''); | |
| window.location.replace(urls); | |
| return false; | |
| } | |
| }); |
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
| //without reload page change url | |
| function ChangeUrl(page, url) { | |
| if (typeof (history.pushState) != "undefined") { | |
| var obj = { Page: page, Url: url }; | |
| history.pushState(obj, obj.Page, obj.Url); | |
| } else { | |
| alert("Browser does not support HTML5."); | |
| } | |
| } | |
| jQuery(function () { |
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
| visual backend not working | |
| ===================================== | |
| html2element: function(html) { | |
| var $template, attributes = {}, | |
| template = html; | |
| $template = $(template(this.model.toJSON()).trim()), _.each($template.get(0).attributes, function(attr) { | |
| attributes[attr.name] = attr.value | |
| }), this.$el.attr(attributes).html($template.html()), this.setContent(), this.renderContent() | |
| }, |