├── .DS_Store ├── functions ├── .DS_Store ├── navigation │ ├── .DS_Store │ ├── page-url.sublime-snippet │ ├── nav-next.sublime-snippet │ ├── nav-prev.sublime-snippet │ ├── nav-tree.sublime-snippet │ ├── page-title.sublime-snippet │ ├── nav-parent.sublime-snippet │ ├── nav-text.sublime-snippet │ ├── nav-breadcrumbs.sublime-snippet │ ├── perch-layouts.sublime-snippet │ ├── nav-tree-top.sublime-snippet │ ├── page-modified.sublime-snippet │ ├── nav-group.sublime-snippet │ └── pages-navigation.sublime-snippet ├── addruntime.sublime-snippet ├── content │ ├── content.sublime-snippet │ ├── content-custom.sublime-snippet │ ├── content-custom-filter.sublime-snippet │ └── content-custom-filter-multiple.sublime-snippet └── listdetail.sublime-snippet ├── templates ├── .DS_Store ├── showall.sublime-snippet ├── help.sublime-snippet ├── after.sublime-snippet ├── if.sublime-snippet ├── before.sublime-snippet ├── search.sublime-snippet ├── layout.sublime-snippet ├── noresults.sublime-snippet ├── template.sublime-snippet ├── every.sublime-snippet ├── block.sublime-snippet ├── ifelse.sublime-snippet ├── content.sublime-snippet ├── repeater.sublime-snippet └── blocks.sublime-snippet ├── apps ├── podcasts │ ├── templates │ │ ├── .DS_Store │ │ ├── podcasts-show-template.sublime-snippet │ │ ├── podcasts-shows-list-template.sublime-snippet │ │ ├── podcasts-episode-template.sublime-snippet │ │ └── podcasts-episode-list-template.sublime-snippet │ └── functions │ │ ├── podcasts-shows.sublime-snippet │ │ ├── podcasts-show.sublime-snippet │ │ ├── podcasts-episodes.sublime-snippet │ │ ├── podcasts-episode.sublime-snippet │ │ └── podcasts-track-play.sublime-snippet ├── blog │ └── functions │ │ ├── blogtags.sublime-snippet │ │ ├── blogauthors.sublime-snippet │ │ ├── blogcategories.sublime-snippet │ │ ├── blogpost.sublime-snippet │ │ ├── blogsections.sublime-snippet │ │ ├── blogtag.sublime-snippet │ │ ├── blogauthor.sublime-snippet │ │ ├── blogrecentposts.sublime-snippet │ │ ├── blogarchiveyears.sublime-snippet │ │ ├── blogposttags.sublime-snippet │ │ ├── blogsection.sublime-snippet │ │ ├── blogarchivemonths.sublime-snippet │ │ ├── blogcategorytitle.sublime-snippet │ │ ├── blogpostauthor.sublime-snippet │ │ ├── blogpostcategories.sublime-snippet │ │ ├── blogcommentform.sublime-snippet │ │ ├── blogpostfield.sublime-snippet │ │ └── blogpostcommentssublime-snippet.sublime-snippet ├── forms │ ├── formerror.sublime-snippet │ ├── formlabel.sublime-snippet │ ├── forminput.sublime-snippet │ ├── forminputurl.sublime-snippet │ ├── forminputcolor.sublime-snippet │ ├── forminputemail.sublime-snippet │ ├── forminputradio.sublime-snippet │ ├── forminputtext.sublime-snippet │ ├── forminputhidden.sublime-snippet │ ├── forminputdate.sublime-snippet │ ├── forminputmonth.sublime-snippet │ ├── forminputweek.sublime-snippet │ ├── formselect.sublime-snippet │ ├── forminputcheck.sublime-snippet │ ├── forminputdatetime.sublime-snippet │ ├── forminputfile.sublime-snippet │ ├── forminputnum.sublime-snippet │ ├── forminputrange.sublime-snippet │ ├── forminputsubmit.sublime-snippet │ ├── forminputtextarea.sublime-snippet │ ├── forminputimage.sublime-snippet │ ├── form.sublime-snippet │ └── formex.sublime-snippet ├── comments │ ├── functions │ │ ├── comment.sublime-snippet │ │ ├── comments.sublime-snippet │ │ ├── commentcount.sublime-snippet │ │ └── commentsform.sublime-snippet │ └── templates │ │ ├── commentlisttemplate.sublime-snippet │ │ └── commentformtemplate.sublime-snippet └── mailchimp │ ├── mailchimpcampaignarchive.sublime-snippet │ └── mailchimpaddsubscriber.sublime-snippet └── README.md /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garyriverson/perchsnippets/HEAD/.DS_Store -------------------------------------------------------------------------------- /functions/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garyriverson/perchsnippets/HEAD/functions/.DS_Store -------------------------------------------------------------------------------- /templates/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garyriverson/perchsnippets/HEAD/templates/.DS_Store -------------------------------------------------------------------------------- /functions/navigation/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garyriverson/perchsnippets/HEAD/functions/navigation/.DS_Store -------------------------------------------------------------------------------- /apps/podcasts/templates/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/garyriverson/perchsnippets/HEAD/apps/podcasts/templates/.DS_Store -------------------------------------------------------------------------------- /templates/showall.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchshowall 4 | text.html 5 | -------------------------------------------------------------------------------- /templates/help.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | $1]]> 3 | perchhelp 4 | text.html 5 | -------------------------------------------------------------------------------- /templates/after.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | $0]]> 3 | perchafter 4 | text.html 5 | -------------------------------------------------------------------------------- /templates/if.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | $0]]> 3 | perchif 4 | text.html 5 | -------------------------------------------------------------------------------- /templates/before.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | $0]]> 3 | perchbefore 4 | text.html 5 | -------------------------------------------------------------------------------- /templates/search.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchsearch 4 | text.html 5 | 6 | 7 | -------------------------------------------------------------------------------- /templates/layout.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchlayout 4 | text.html, source.php 5 | -------------------------------------------------------------------------------- /templates/noresults.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | $1]]> 3 | perchnoresults 4 | text.html 5 | -------------------------------------------------------------------------------- /templates/template.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchtemplate 4 | text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogtags.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogtags 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/forms/formerror.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchformerror 4 | text.html 5 | -------------------------------------------------------------------------------- /functions/navigation/page-url.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchpageurl 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /templates/every.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | $0]]> 3 | perchevery 4 | text.html 5 | -------------------------------------------------------------------------------- /apps/comments/functions/comment.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchcomment 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogauthors.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogauthors 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/forms/formlabel.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchlabel 6 | text.html 7 | 8 | -------------------------------------------------------------------------------- /functions/navigation/nav-next.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchnavnext 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /functions/navigation/nav-prev.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchnavprev 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /functions/navigation/nav-tree.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchnavtree 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /functions/navigation/page-title.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchpagetitle 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /templates/block.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | $0]]> 3 | perchblock 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /templates/ifelse.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | $2$3]]> 4 | 5 | perchifelse 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/blog/functions/blogcategories.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogcat 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogpost.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogpost 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogsections.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogsections 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogtag.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogtag 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/comments/functions/comments.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchcomments 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /functions/navigation/nav-parent.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchnavparent 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /functions/navigation/nav-text.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchnavtext 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/forms/forminput.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinput 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/podcasts/functions/podcasts-shows.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchpodcastshows 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /functions/navigation/nav-breadcrumbs.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchnavcrumbs 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /functions/navigation/perch-layouts.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchlayout 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogauthor.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogauthor 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogrecentposts.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogrecentposts 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/mailchimp/mailchimpcampaignarchive.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchchimparchive 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogarchiveyears.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogarchiveyears 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogposttags.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogposttags 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogsection.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogsection 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/comments/functions/commentcount.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchcommentcount 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/forms/forminputurl.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputurl 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/mailchimp/mailchimpaddsubscriber.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchchimpadd 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/podcasts/functions/podcasts-show.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchpodcastshow 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /functions/addruntime.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchruntime 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogarchivemonths.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogarchivemonths 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogcategorytitle.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogcattitle 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/forms/forminputcolor.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputcolor 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/forms/forminputemail.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputemail 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/forms/forminputradio.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputradio 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/forms/forminputtext.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputtext 6 | text.html 7 | -------------------------------------------------------------------------------- /functions/navigation/nav-tree-top.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 1,)); ?>]]> 3 | perchnavtreetop 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogpostauthor.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogpostauthor 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogpostcategories.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogpostcats 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/forms/forminputhidden.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputhidden 6 | text.html 7 | -------------------------------------------------------------------------------- /functions/content/content.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchcontent 4 | source.php, text.html 5 | Function 6 | -------------------------------------------------------------------------------- /templates/content.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchcontent 4 | text.html 5 | Template Tag 6 | 7 | -------------------------------------------------------------------------------- /templates/repeater.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | $0]]> 4 | perchrepeater 5 | text.html 6 | -------------------------------------------------------------------------------- /apps/blog/functions/blogcommentform.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogcommentform 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogpostfield.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogpostfield 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/forms/forminputdate.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputdate 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/forms/forminputmonth.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputmonth 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/forms/forminputweek.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputweek 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/forms/formselect.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputselect 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/podcasts/functions/podcasts-episodes.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchpodcastepisodes 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/blog/functions/blogpostcommentssublime-snippet.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchblogcomments 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/forms/forminputcheck.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputcheck 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/forms/forminputdatetime.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputdatetime 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/forms/forminputfile.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputfile 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/forms/forminputnum.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputnumber 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/forms/forminputrange.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputrange 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/forms/forminputsubmit.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputsubmit 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/forms/forminputtextarea.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputtextarea 6 | text.html 7 | -------------------------------------------------------------------------------- /apps/podcasts/functions/podcasts-episode.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchpodcastepisode 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /functions/content/content-custom.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 7 | perchcustom 8 | source.php, text.html 9 | -------------------------------------------------------------------------------- /functions/navigation/page-modified.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | '%d %B %Y, %H:%M', 4 | ));?>]]> 5 | perchpagemod 6 | source.php, text.html 7 | -------------------------------------------------------------------------------- /templates/blocks.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $0 5 | ]]> 6 | 7 | perchblocks 8 | source.php, text.html 9 | -------------------------------------------------------------------------------- /apps/comments/functions/commentsform.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchcommentsform 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /apps/podcasts/functions/podcasts-track-play.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | ]]> 3 | perchpodcastlogplay 4 | source.php, text.html 5 | -------------------------------------------------------------------------------- /functions/navigation/nav-group.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 'footer', 4 | 'levels' => 1 5 | )); ?>]]> 6 | perchnavgroup 7 | source.php, text.html 8 | -------------------------------------------------------------------------------- /apps/forms/forminputimage.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]]> 5 | perchinputimage 6 | text.html 7 | -------------------------------------------------------------------------------- /functions/content/content-custom-filter.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 'bedrooms', 5 | 'match'=>'gte', 6 | 'value'=>3 7 | )); 8 | ?>]]> 9 | perchcustomfilter 10 | source.php, text.html 11 | -------------------------------------------------------------------------------- /apps/forms/form.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | ]]> 9 | perchform 10 | text.html 11 | -------------------------------------------------------------------------------- /apps/podcasts/templates/podcasts-show-template.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ]]> 5 | perchpodcastshow 6 | source.php, text.html 7 | -------------------------------------------------------------------------------- /functions/content/content-custom-filter-multiple.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | array( 5 | array( 6 | 'filter'=>'bedrooms', 7 | 'match'=>'gte', 8 | 'value'=>3 9 | ), 10 | array( 11 | 'filter'=>'price', 12 | 'match'=>'lte', 13 | 'value'=>500000 14 | ), 15 | ) 16 | )); 17 | ?>]]> 18 | perchcustomfiltermulti 19 | source.php, text.html 20 | -------------------------------------------------------------------------------- /apps/podcasts/templates/podcasts-shows-list-template.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 13 | 14 | 15 |
16 | ]]>
17 | perchpodcastshows 18 | source.php, text.html 19 |
-------------------------------------------------------------------------------- /functions/navigation/pages-navigation.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | '/', 5 | 'levels' => 0, 6 | 'hide-extensions' => false, 7 | 'hide-default-doc' => true, 8 | 'flat' => false, 9 | 'template' => 'item.html', 10 | 'include-parent' => false, 11 | 'skip-template' => false, 12 | 'siblings' => false, 13 | 'only-expand-selected' => false, 14 | 'add-trailing-slash' => false, 15 | 'navgroup' => false, 16 | 'include-hidden' => false, 17 | )); 18 | ?>]]> 19 | perchpagesnav 20 | source.php, text.html 21 | -------------------------------------------------------------------------------- /functions/listdetail.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 'item_detail.html', 6 | 'multiple' => true, 7 | 'edit-mode' => 'listdetail', 8 | )); 9 | 10 | if (perch_get('s')) { 11 | 12 | // Detail mode 13 | perch_content_custom('Items', array( 14 | 'template' => 'item_detail.html', 15 | 'filter' => 'slug', 16 | 'match' => 'eq', 17 | 'value' => perch_get('s'), 18 | 'count' => 1, 19 | )); 20 | } else { 21 | 22 | // List mode 23 | perch_content_custom('Items', array( 24 | 'template' => 'item_listing.html', 25 | )); 26 | } 27 | 28 | ?> 29 | ]]> 30 | 31 | perchlistdetail 32 | source.php, text.html 33 | -------------------------------------------------------------------------------- /apps/podcasts/templates/podcasts-episode-template.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |

7 | 8 |

Duration:

9 | 12 | ]]>
13 | perchpodcastepisode 14 | source.php, text.html 15 |
-------------------------------------------------------------------------------- /apps/podcasts/templates/podcasts-episode-list-template.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
7 | &ep="> 8 | " alt="" /> 9 |

10 | 11 | 12 |

13 |
14 | 15 | 16 |

Duration:

17 | 18 |
19 | 20 | 21 |
22 | ]]>
23 | perchpodcastepisodes 24 | source.php, text.html 25 |
-------------------------------------------------------------------------------- /apps/comments/templates/commentlisttemplate.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Comments

4 | 20 | ]]>
21 | perchcommentlisttemplate 22 | source.php, text.html 23 |
-------------------------------------------------------------------------------- /apps/forms/formex.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 |
8 | Name 9 | 10 | Please add your name 11 |
12 | 13 |
14 | Email 15 | 16 | Please add your email address 17 | Please check your email address 18 |
19 | 20 |
21 | Message 22 | 23 | Please add a message 24 |
25 | 26 |
27 | 28 |
29 | 30 | 31 | 32 | 33 | ]]>
34 | perchformex 35 | text.html 36 |
-------------------------------------------------------------------------------- /apps/comments/templates/commentformtemplate.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Leave a comment 5 |
6 | Name 7 | 8 | Required 9 |
10 |
11 | Email 12 | 13 | Required 14 | Check format of address 15 |
16 |
17 | Website 18 | 19 |
20 |
21 | Comment 22 | 23 | Required 24 |
25 |
26 | " /> 27 | " /> 28 | 29 |
30 |
31 | 32 |

Thank you. Your comment has been submitted and will appear on the site once approved.

33 |
34 | ]]>
35 | perchcommentformtemplate 36 | source.php, text.html 37 |
-------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # perchsnippets 2 | 3 | # Overview 4 | 5 | Sublime Text snippets for [Perch CMS](http://grabaperch.com) projects. 6 | 7 | Update: April 27, 2020. I've got time and a project, so I'm working on updating these and reorganizing them. Some of these are out of date, at least one of them doesn't work properly, but I always forget which one until I try to use it. So we're gonna fix all the things. 8 | 9 | ## Template Snippets 10 | 11 | ### Content Templates 12 | 13 | | Tag | Trigger | Details | 14 | | ------------------- | -------------- | ----------------------------------------- | 15 | | `` | perchafter | 16 | | `` | perchbefore | 17 | | `` | perchblocks | Creates blocks group | 18 | | `` | perchblock | Creates block | 19 | | `` | perchcontent | 20 | | `` | perchifelse | 21 | | `` | perchevery | 22 | | `` | perchhelp | Creates a block of html help information. | 23 | | `` | perchif | 24 | | `` | perchlayout | 25 | | `` | perchnoresults | 26 | | `` | perchrepeater | 27 | | `` | perchsearch | 28 | | `` | perchshowall | 29 | | `` | perchtemplate | 30 | 31 | ### Forms 32 | 33 | | Tag | Trigger | Details | 34 | | ------------------------------- | ------------------ | -------------------------------------------------------------------------------------------------------- | 35 | | `` | perchform | Also includes `` and `` tags for faster form creation | 36 | | `---` | perchformex | Creates [example form](http://docs.grabaperch.com/docs/form/template-tags/). | 37 | | `` | perchlabel | Label tag with attributes. | 38 | | `` | percherror | Creates error tag with attributes. | 39 | | `` | perchinput | Creates input element with default attributes. | 40 | | `` | perchinputtext | Creates input element of type text | 41 | | `` | perchinputemail | Creates input element of type email | 42 | | `` | perchinputurl | Creates an input element of type url in your form. This will validate to require a protocol. | 43 | | `` | perchinputrange | Includes min, max and step attributes; creates html5 widgets. | 44 | | `` | perchinputnum | Like range, includes min, max and step attributes. | 45 | | `` | perchinputdate | Creates date input, accepts YYYY-MM-DD format. | 46 | | `` | perchinputdatetime | Creates datetime input, accepts YYYY-MM-DD HH:MM format. | 47 | | `` | perchinputmonth | Creates month input, accepts YYYY-MM format. | 48 | | `` | perchinputweek | Accepts a year and week number YYYY-WNN e.g. 2011-W23 (W is literal) | 49 | | `` | perchinputcolor | Accepts a hex color;displays as html5 colorpicker in some browsers. | 50 | | `` | perchinputtextarea | Creates a textarea. | 51 | | `` | perchinputselect | Creates a select list; includes the options attribute. | 52 | | `` | perchinputradio | Creates a radio input. | 53 | | `` | perchinputcheck | Creates a checkbox; the value set will be checked by default. | 54 | | `` | perchinputimage | Creates an image input with all possible attributes. | 55 | | `` | perchinputfile | Creates a file input | 56 | | `` | perchinputhidden | Creates a hidden field. | 57 | | `` | perchinputsubmit | Creates a submit field. Includes value attribute, which becomes the text displayed on the submit button. | 58 | 59 | ### Blog 60 | 61 | | Output | Trigger | Details | 62 | | -------------------------------------------------------------- | ---------------------- | -------------------------------------------------------------------------------------------- | 63 | | `` | perchblogauthor | Display a blog post's author | 64 | | `` | perchblogauthors | Displays list of blog authors | 65 | | `` | perchblogpostauthor | Displays author of a post | 66 | | `` | perchblogcat | Outputs a list of categories set up for the blog. | 67 | | `` | perchblogcattitle | Outputs the title of a category | 68 | | `` | perchblogarchiveyears | Displays a list of years and the count of the number of posts in each year. | 69 | | `` | perchblogarchivemonths | Displays a list of years, and then months nested within those years, along with post counts. | 70 | | `` | perchblogpostcats | Display the categories for a given blog post. | 71 | | `` | perchblogcommentform | Display a comment form for the given post. | 72 | | `` | perchblogcomments | Displays comments for a given post. | 73 | | `` | perchblogpostfield | Output a single field (such as the title) from a blog post. | 74 | | `` | perchblogposttags | Displays the tags for a given post. | 75 | | `` | perchblogpost | Displays a single post. | 76 | | `` | perchblogrecentposts | Get a list of the most recent blog posts. | 77 | | `` | perchblogsection | Output the section. | 78 | | `` | perchblogsections | Output a list of sections set up for the blog. | 79 | | `` | perchblogtag | Output the title of a tag. | 80 | | `` | perchblogtags | Display a list of tags used across all blog posts. | 81 | 82 | ### Comments 83 | 84 | | Output | Trigger | Details | 85 | | ------------------------------------------------------------------------------ | ------------------------ | ----------------------------------------------------------------------------------------------------- | 86 | | `` | perchcomment | Display a single comment | 87 | | `` | perchcommentcount | Display count of comments on an item | 88 | | `` | perchcommentsform | Outputs a comment form | 89 | | `` | perchcomments | Displays all comments for a given item id | 90 | | `N/A` | perchcommentformtemplate | Outputs [example comment form](http://docs.grabaperch.com/addons/comments/template-tags/) template | 91 | | `N/A` | perchcommentlisttemplate | Outputs [example comment listing](http://docs.grabaperch.com/addons/comments/template-tags/) template | 92 | 93 | ### Mailchimp 94 | 95 | | Output | Trigger | Details | 96 | | -------------------------------------------------- | ----------------- | -------------------------- | 97 | | `` | perchchimpadd | Add a subscriber | 98 | | `` | perchchimparchive | Display a campaign archive | 99 | 100 | ### Podcasts 101 | 102 | | Output | Trigger | Details | 103 | | ---------------------------------------------------------------------- | -------------------- | ------------------------------------------- | 104 | | `` | perchpodcastepisode | Display a single episode | 105 | | `` | perchpodcastepisodes | Display a list of episodes for a given show | 106 | | `` | perchpodcastshow | Display a single show | 107 | | `` | perchpodcastshows | Display a list of the shows | 108 | | `` | perchpodcastlogplay | Log an episode as being played | 109 | 110 | | Template | Trigger | Details | 111 | | -------- | -------------------- | ------------------------ | 112 | | `N/A` | perchpodcastepisode | Default episode template | 113 | | `N/A` | perchpodcastepisodes | Episodes list template | 114 | | `N/A` | perchpodcastshow | Default show template | 115 | | `N/A` | perchpodcastshows | Shows list template | 116 | | `N/A` | perchpodcastrss | RSS items template | 117 | 118 | ## Function Snippets 119 | 120 | | Output | Trigger | Details | 121 | | ------------------------------------------------------------------ | ------------ | -------------------------------------------------------------- | 122 | | `` | perchruntime | Creates an include for the runtime from the root of the server | 123 | 124 | ### Content 125 | 126 | | Output | Trigger | Details | 127 | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | --------------------------------------- | 128 | | `` | perchcontent | Creates new content region | 129 | | `` | perchcustom | Creates new custom content region | 130 | | `'bedrooms','match'=>'gte','value'=>3));?>` | perchcustomfilter | Custom content filter example | 131 | | `array(array('filter'=>'bedrooms','match'=>'gte','value'=>3),array('filter'=>'price','match'=>'lte','value'=>500000),)));?>` | perchcustomfiltermulti | Filter by multiple fields example | 132 | | ` 'item_detail.html','filter' => 'slug','match' => 'eq','value' => perch_get('s'),'count' => 1,));} else {perch_content_custom('Items', array('template' => 'item_listing.html',));}?>` | perchlistdetail | Creates a single-page list-detail page. | 133 | 134 | ### Navigation 135 | 136 | | Output | Trigger | Details | 137 | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------- | ------------------------------------------------------------------------------------------------------ | 138 | | `'footer','levels' => 1)); ?>` | perchnavgroup | Displays navigation group based on slug | 139 | | `` | perchlayout | Include a layout file | 140 | | `` | perchpageurl | Outputs url of current page | 141 | | ` '%d %B %Y, %H:%M',));?>` | perchpagemod | Outputs the date the page was last updated; formatted using [strftime](http://php.net/strftime) codes. | 142 | | `` | perchnavcrumbs | Outputs a breadcrumb trail for the current page. | 143 | | `` | perchnavtext | Outputs navigation text of current page. | 144 | | `` | perchnavtree | Outputs navigation tree of pages that exist (are editable) in Perch. | 145 | | ` 1,)); ?>` | perchnavtreetop | Outputs top level of navigation tree. | 146 | | `'/','levels'=>0,'hide-extensions'=>false,'hide-default-doc'=>true,'flat'=>false,'template'=>'item.html','include-parent'=>false,'skip-template'=>false,'siblings'=>false,'only-expand-selected'=>false,'add-trailing-slash'=>false,'navgroup'=>false,'include-hidden'=>false,));?>` | perchnavall | Perch_pages_navigation with all available options | 147 | | `` | perchnavnext | Outputs details of the next page in the navigational hierarchy. | 148 | | `` | perchnavparent | Outputs details of the current page's parent page. | 149 | | `` | perchnavprev | Outputs details of the previous page. | 150 | | `` | perchpagetitle | Outputs page title | 151 | 152 | ## Installation and Use 153 | 154 | These snippets are for Sublime Text 2 or 3 and are sorted into folders. 155 | 156 | 1. Copy the Perch Snippets folder into the `/Packages/User` folder, which can be accessed easily through `Preferences` > `Browse Packages`. 157 | 2. Relaunch Sublime Text. 158 | 3. Enjoy. 159 | --------------------------------------------------------------------------------