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
<form method="post" action="" id="login-form" accept-charset="UTF-8"> | |
<input type="hidden" name="action" value="users/login"> | |
<input type="hidden" name="redirect" value="{{redirect}}"> | |
<div class="form-group"> | |
<label for="email">Email</label> | |
<input id="email" type="text" name="loginName" class="form-control"> | |
</div> | |
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
<!-- Site by Familiar | |
////////////////////// | |
////////////////////// | |
////////////////////// | |
/////// | |
/////// | |
/////// | |
/////// | |
/////// | |
/////////////////////// |
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
server { | |
listen 80; | |
server_name familiar.studio www.familiar-studio.com www.familiar.studio familiarstudio.com www.familiarstudio.com familiar.io familiar.is; | |
return 301 http://familiar-studio.com$request_uri; | |
} |