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
if(isset($this->EE->api_sc_channel_entries)) | |
{ | |
$this->EE->api_channel_form_channel_entries->errors[] = $error; | |
} | |
else if(isset($this->EE->api_sc_channel_entries)) | |
{ | |
$this->EE->api_sc_channel_entries->errors[] = $error; | |
} | |
else | |
{ |
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
<h3>{{ entry.title }}</h3> | |
{% for block in entry.components %} | |
<section> | |
{% if block.type == 'customContent' %} | |
{{ block.page }} | |
{% elseif block.type == 'description' %} |
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
{% if block.related | length %} | |
{% set block = block.related.first().components.type('parameters').first() %} | |
{% endif %} |
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:weather_underground:conditions location="Naples, FL" key="d2d5ecbba5abbe0d"} | |
{current_observation} | |
<div class="weather"> | |
<p> | |
Current Time: {current_time format="%g:%i %A"}<br> | |
Current Weather: {temp_f}℉ | |
</p> | |
</div> | |
{/current_observation} | |
{/exp:weather_underground:conditions} |
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
<div class="row collapse"> | |
<div class="large-3 columns"> | |
<h4><label for="email">{{ trans('timeblocker.email') }}</label></h4> | |
</div> | |
<div class="large-9 columns"> | |
<input type="email" name="email" value="{{ Input::old('email') }}" id="email" placeholder="Email Address" /> | |
@if($errors->has('email')) <label for="email" class="error">{{ $errors->first('email') }}</label>@endif | |
</div> |
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
(SELECT exp_channel_titles.entry_id, COUNT(exp_categories.cat_id) AS cat_count, exp_categories.cat_id, exp_categories.cat_id as \'category_id\', GROUP_CONCAT(cat_id SEPARATOR \'|\') as \'cat_ids\', GROUP_CONCAT(cat_id SEPARATOR \'|\') as \'category_ids\', exp_categories.cat_name, exp_categories.cat_name as \'category_name\', exp_categories.cat_url_title, exp_categories.cat_url_title as \'category_url_title\', exp_categories.parent_id as \'cat_parent_id\', exp_categories.parent_id as \'category_parent_id\', exp_categories.site_id as \'cat_site_id\', exp_categories.site_id as \'category_site_id\', exp_categories.group_id as \'cat_group_id\', exp_categories.group_id as \'category_group_id\', exp_categories.cat_description as \'cat_description\', exp_categories.cat_description as \'category_description\', exp_categories.cat_image as \'cat_image\', exp_categories.cat_image as \'category_image\', GROUP_CONCAT(exp_categories.cat_name SEPARATOR \'|\') as \'cat_names\', GROUP_CONCAT(exp_categories.cat_name SEPARATOR |
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
<script> | |
$(document).ready(function (){ | |
$(".nav-toggle").click(function(e) { | |
$('.first').removeClass("opened"); | |
$(this).parent().addClass("opened"); | |
e.preventDefault(); | |
}); | |
}); |
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 class_students() | |
{ | |
if(!$course = Course::findByUrlTitle($this->param('course_url_title'))) | |
{ | |
return ChannelEntriesParser::noResults(); | |
} | |
if(!$students = $course->students()) | |
{ | |
return ChannelEntriesParser::noResults(); |
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
<?php | |
function your_method() | |
{ | |
if(!$param = ee()->TMPL->fetch_param('your_param')) | |
{ | |
show_error('The X parameter is required'); | |
} | |
} |
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
// Step 1. Add class="map" to all your exp:gmap:init tags | |
// Step2. Add this to your CSS | |
.map img { max-width: none;} |