This file contains 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
{# | |
normal craft structure menu | |
------------- | |
works well in enough most of the time but limited in that it combines the content sturctures with the menu structures into a single section, making more complex navigations more complicated. | |
#} | |
{% set pages = craft.entries.section('pages') %} |
This file contains 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
{% set workshops = craft.entries.section('workshops').find() %} | |
{% spaceless %} | |
{{ workshops|json_encode }} | |
{% endspaceless %} |
This file contains 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
{# for regular fields #} | |
{% if entry.fieldHandle %} | |
{{ entry.fieldHandle}} | |
{% else %} | |
{{ global.fieldHandle}} | |
{% endif %} | |
{# for array fields (entries, assets, etc) #} |
This file contains 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 | |
/** | |
* Craft OAuth by Dukt | |
* | |
* @package Craft OAuth | |
* @author Benjamin David | |
* @copyright Copyright (c) 2014, Dukt | |
* @license https://dukt.net/craft/oauth/docs/license | |
* @link https://dukt.net/craft/oauth/ |
This file contains 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 init() | |
{ | |
craft()->users->onActivateUser = function(Event $event) { | |
$user = $event->params['user']; | |
// check salesforce for contact with that email address | |
// if exists, get contact ID and save it on user | |
// if doesnt exist create contact and account (using organization name) and save contactID on user | |
This file contains 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
app.directive ('modal', function() { | |
return { | |
replace: false, | |
link:function (scope, element, attrs) { | |
element.fitVids(); | |
} | |
} | |
}) |
This file contains 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 | |
namespace Craft; | |
class SalesforceController extends BaseController | |
{ | |
private $scopes = array(); | |
private $params = array(); | |
public function actionGetStudents() { | |
return 'test this stuff out'; |
This file contains 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
{% set segments = craft.request.getSegments() %} | |
{% set newUrl = segments[2:segments|length] %} | |
{% set newUrl = city.slug ~ newUrl %} |
This file contains 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 PageReference checkIfNotNominee() { | |
User theUser = GlobalVariables.getCurrentUser(); | |
Coontact theContact = GlobalVariables.getCurrentContact(theUser); | |
if (theContact.RecordTypeId != RecordTypeConstant.nomineeContactRecordTypeId) { | |
PageReference page = System.Page.PosseCommunity; | |
page.setRedirect(true); | |
return page; | |
} else { |
This file contains 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 type="text/javascript">var ChannelImages=ChannelImages?ChannelImages:new Object();ChannelImages.Fields=ChannelImages.Fields?ChannelImages.Fields:new Object();ChannelImages.Fields.Field_85={"key":1350501036,"field_name":"field_id_85","field_label":"Images","settings":{"no_sizes":"no","keep_original":"yes","upload_location":"s3","show_stored_images":"no","stored_images_by_author":"no","stored_images_search_type":"entry","show_import_files":"no","jeditable_event":"click","image_limit":"100","hybrid_upload":"yes","progressive_jpeg":"no","wysiwyg_original":"yes","save_data_in_field":"yes","show_image_edit":"no","allow_per_image_action":"no","locked_url_fieldtype":"no","disable_cover":"no","action_groups":{"1":{"group_name":"small_square","wysiwyg":"yes","actions":{"resize_adaptive":{"width":"160","height":"160","quality":"100","upsizing":"no"}},"final_size":{"width":"160","height":"160","quality":"100","upsizing":"no"},"editable":"no"},"2":{"group_name":"small","wysiwyg":"yes","actions":{"resize":{"width": |
OlderNewer