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
| $('.add-to-cart').submit(function(e) { | |
| var form = $(this); | |
| var action = form.attr('action'); | |
| var post = {}; | |
| var urlTitle = FilterFarm.segment(3); | |
| form.find('input, select, textarea').each(function() { | |
| var $t = $(this); |
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
| $('a').click(function() { | |
| var id = $(this).attr('id'); | |
| $('.marker').hide(); | |
| $(id).show(); | |
| }); | |
| <a href="#your-category">Your Category</a> |
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
| var hasLoaded = false; | |
| google.maps.event.addListener(map_map, 'tilesloaded', function() { | |
| if(!hasLoaded) { | |
| // Do something | |
| hasLoaded = true; | |
| } | |
| }); |
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
| {exp:stash:set no_results_prefix="nested_"} | |
| {stash:page_content} | |
| {exp:channel:entries} | |
| {if nested_no_results} | |
| You have no channel entries. | |
| {/if} | |
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
| public function delegate() | |
| { | |
| $delegate = $this->tag_part(2); | |
| $method = $this->tag_part(3); | |
| $this->EE->TMPL->tagparts[1] = $delegate; | |
| $this->EE->TMPL->tagparts[2] = $method; | |
| return $this->run($delegate); | |
| } |
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
| google.maps.event.trigger(map, 'resize'); | |
| map_map.setCenter(map_markers[0].getPosition(), 12); |
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
| var pos = map_markers[0].getPosition(); | |
| var lat = pos.lat(); | |
| var lng = post.lng(); |
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
| map_map.setCenter(new google.maps.LatLng(map_markers[0].position.Xa, map_markers[0].position.Ya)); |
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
| {exp:channel:entries channel="your-channel" dynamic="no" disable="member_data|pagination"} | |
| {exp:stash:append_list name='list' parse_tags="yes" save="yes" scope="site" context='{categories}{category_name}{/categories}'} | |
| {stash:this_title}{title}{/stash:this_title} | |
| {categories} | |
| {stash:this_category_name} | |
| {category_name} | |
| {/stash:this_category_name} | |
| {exp:stash:set name="test_var" type="snippet"}{category_name}{/exp:stash:set} | |
| {/categories} |
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
| {exp:safecracker channel="members" error_handling="inline" return="profile" | |
| dynamic_title="[member_first_name] [member_last_name] - [email]" register_member="true" | |
| } | |
| Screen Name: <input type="text" name="screen_name" value="{screen_name}" /> | |
| Email: <input type="text" name="email" value="{email}" /> | |
| {label:member_first_name}: <input type="text" name="member_first_name" value="{member_first_name}" /> | |
| <input type="submit" value="Save" /> | |
| {/exp:safecracker} |