View .gitignore
## OS X GENERATED FILES
.DS_Store
Icon
Icon?
Thumbs.db
._*
.Spotlight-V100
.Trashes
## MISCELLANEOUS
View .gitignore
## OS X GENERATED FILES
.DS_Store
Icon
Icon?
Thumbs.db
._*
.Spotlight-V100
.Trashes
View config.php
<?php
/*
Place the following line above the $plugin_info array in pi.[add_on_name].php:
require_once(PATH_THIRD . '[websafe_add-on_name]/config.php');
*/
if (! defined('ADD_ON_V')) {
define('ADD_ON_NAME', 'cpb [Add-on Name]');
define('ADD_ON_V', '0.1');
}
View rss_[WEBSAFE_ADD-ON_NAME].xml
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:ee_addon="http://ee-garage.com/nsm_addon_updater">
<channel>
<title>cpb [ADD-ON_NAME] Changelog</title>
<link>http://curtisblackwell.com/expressionengine-add-ons/cpb-[WEBSAFE ADD-ON NAME]</link>
<description>cpb [ADD-ON_NAME] Changelog</description>
{exp:channel:entries
channel = "addons"
disable = "categories|member_data|pagination"
entry_id = "[ENTRY_ID]"}
View head
<title>{exp:stash:get name="title"}</title>
View string_noindex
{!--
Place the following line in <head>
{exp:string name="noindex"}
--}
{exp:string:set name="noindex"}<meta name="robots" content="noindex">{/exp:string:set}
View sn_canonical_uri.html
{exp:stash:set
name = "canonical_uri"
save = "yes"
refresh = "525600"
}{exp:switchee variable="{last_segment}"}{case value="" default="yes"}{/case}{case value="{segment_1}"}/{segment_1}{/case}{case value="{segment_2}"}/{segment_1}/{segment_2}{/case}{case value="{segment_3}"}/{segment_1}/{segment_2}/{segment_3}{/case}{/exp:switchee}{/exp:stash:set}
View inline_styling.html
{!--
Place the following line in the <head>
{exp:string name="inline_styling"}
You'll need to create a textarea and set formatting to "None." The short name in the example is inline_styling.
--}
{exp:channel:entries
View index.html
{!--
# FIELDS
1. Matrix: images
* File: image
* PT Pill: alignment (left, right, or block)
* Text: description
* PT Pill: width
2. Textarea/WYSIWYG: body
View pagination
{!--
This will only work if embedded in another switchee tag pair.
If it's not embedded, change the {switchee} tags to {exp:switchee}.
--}
{paginate}
{switchee variable="{abp_has_previous}"}
{case value="1"}