Skip to content

Instantly share code, notes, and snippets.

View objectivehtml's full-sized avatar

Justin Kimbrell objectivehtml

  • Woodland Park, CO
View GitHub Profile
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
{
<h3>{{ entry.title }}</h3>
{% for block in entry.components %}
<section>
{% if block.type == 'customContent' %}
{{ block.page }}
{% elseif block.type == 'description' %}
{% if block.related | length %}
{% set block = block.related.first().components.type('parameters').first() %}
{% endif %}
{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}&#8457;
</p>
</div>
{/current_observation}
{/exp:weather_underground:conditions}
<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>
(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
<script>
$(document).ready(function (){
$(".nav-toggle").click(function(e) {
$('.first').removeClass("opened");
$(this).parent().addClass("opened");
e.preventDefault();
});
});
public function class_students()
{
if(!$course = Course::findByUrlTitle($this->param('course_url_title')))
{
return ChannelEntriesParser::noResults();
}
if(!$students = $course->students())
{
return ChannelEntriesParser::noResults();
<?php
function your_method()
{
if(!$param = ee()->TMPL->fetch_param('your_param'))
{
show_error('The X parameter is required');
}
}
// Step 1. Add class="map" to all your exp:gmap:init tags
// Step2. Add this to your CSS
.map img { max-width: none;}