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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Moreevents_ext { | |
var $name = 'moreEvents'; | |
var $version = '1.2.5'; | |
var $description = 'moreEvents system extensions'; | |
var $settings_exist = 'n'; | |
var $docs_url = ''; // 'http://expressionengine.com/user_guide/'; |
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
{% extends "_layout" %} | |
{% set seo = { | |
title: "My New Title" | |
} %} | |
{% block content %} | |
{% endblock %} |
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 MyPluginNamePlugin extends BasePlugin | |
{ | |
/* -------------------------------------------------------------- | |
* PLUGIN INFO | |
* ------------------------------------------------------------ */ | |
public function getName() |
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
var express = require('express'), | |
passport = require('passport'), | |
LocalStrategy = require('passport-local').Strategy; | |
var users = [ | |
{ id: 1, username: 'bob', password: 'secret', email: 'bob@example.com' } | |
]; | |
function findById(id, fn) { | |
var idx = id - 1; |
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
define([ | |
'marionette', | |
'templates' | |
], function(Marionette, Templates) { | |
var app = new Marionette.Application({ | |
root: '/', | |
templates: Templates | |
}); | |
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 FeedMeCustomSortPlugin extends BasePlugin | |
{ | |
// ========================================================================= | |
// PLUGIN INFO | |
// ========================================================================= | |
public function getName() |
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( | |
"Workflow" => "Workflow", | |
"Entry submitted for approval." => "Entry submitted for approval.", | |
"Could not submit for approval." => "Could not submit for approval.", | |
"Submission revoked." => "Submission revoked.", | |
"Could not revoke submission." => "Could not revoke submission.", | |
"Entry approved and published." => "Entry approved and published.", |
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
{# Usage #} | |
{% set transform = { width: 700, height: 247, mode: 'crop' } %} | |
<img class="banner" src="{{ _self.transform(entry.bannerImage.first, transform) }}"> | |
{# Macro to prevent upscaling - something Craft doesn't support just yet... #} | |
{% macro transform(image, transform) %} | |
{% spaceless %} | |
{% set originalWidth = image.getWidth(false) %} | |
{% set transformedWidth = image.getWidth(transform) %} |
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 SmartMapPlugin extends BasePlugin | |
{ | |
public function init() | |
{ | |
Craft::import('plugins.smartmap.integrations.feedme.fields.SmartMap_AddressFeedMeFieldType'); | |
} |
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 | |
// Get all XML files in directory | |
$files = glob('data/*xml'); | |
$jsons = array(); | |
if (isset($_GET['start']) && isset($_GET['end'])) { | |
$start = $_GET['start']; | |
$end = $_GET['end']; |
OlderNewer