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
{% if not user %} | |
{% redirect "profiel" %} | |
{% endif %} | |
{% extends "_layout" %} | |
{% set title = "Gekoppelde familieleden" %} | |
{% set entry = craft.entries.section('registratie').authorId(currentUser.id).first() %} | |
{% if entry | length == 0 %} | |
{% set entry = craft.entries.section('registratie').first() %} | |
{% endif %} |
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 AssetUploadPlugin extends BasePlugin | |
{ | |
function getName() | |
{ | |
return Craft::t('Upload assets on the front-end'); | |
} | |
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 SaveProfilePlugin extends BasePlugin | |
{ | |
function getName() | |
{ | |
return Craft::t('Save profile too when saving 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
<?php | |
namespace Craft; | |
class UserPhotoPlugin extends BasePlugin | |
{ | |
function getName() | |
{ | |
return Craft::t('Upload user photos on the front-end'); | |
} | |
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 AutoActivatePlugin extends BasePlugin | |
{ | |
function getName() | |
{ | |
return Craft::t('Auto activate from CP'); | |
} |
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 SlugifyPlugin extends BasePlugin | |
{ | |
public function getName() | |
{ | |
return Craft::t('Slugify Twig Extension'); | |
} | |
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 | |
return array( | |
"Analytics" => "Analytics", | |
"Plugin installed" => "Plugin geïnstalleerd", | |
"Couldn't install plugin." => "Kon plugin niet installeren", | |
"Analytics Settings" => "Analytics instellingen", | |
"Configure Analytics plugin in order to get started" => "Stel de Analytics plugin in om te beginnen", | |
"More Data" => "Meer gegevens", | |
"Less" => "Minder", |
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
// Register special hook for Markdown processing | |
function registerImportOperation(&$data, $handle) { | |
// Get field info | |
$field = craft()->fields->getFieldByHandle($handle); | |
// If it's a field ofcourse | |
if(!is_null($field)) { | |
// For some fieldtypes the're special rules |
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 SampleVariable | |
{ | |
public function newUserModel() | |
{ | |
// Create a new empty user model |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
OlderNewer