Skip to content

Instantly share code, notes, and snippets.

@jorgemartins
Created August 16, 2016 17:07
Show Gist options
  • Save jorgemartins/f304e1a70232d45f55a12135679c90fa to your computer and use it in GitHub Desktop.
Save jorgemartins/f304e1a70232d45f55a12135679c90fa to your computer and use it in GitHub Desktop.
Atom kirby snippets
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
# '.source.coffee':
# 'Console log':
# 'prefix': 'log'
# 'body': 'console.log $1'
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it here:
# https://github.com/bevry/cson#what-is-cson
'.text.php':
'make':
'prefix': 'make'
'body': '''
${1:\$exif->}${2:camera()->}make()
'''
'model':
'prefix': 'model'
'body': '''
${1:\$camera->}model()
'''
'toArray':
'prefix': 'toArray'
'body': '''
${1:\$camera->}toArray()
'''
'fit':
'prefix': 'fit'
'body': '''
${1:\$image->}${2:dimensions()->}fit(${3})
'''
'fitHeight':
'prefix': 'fitHeight'
'body': '''
${1:\$image->}${2:dimensions()->}fitHeight(${3})
'''
'fitWidth':
'prefix': 'fitWidth'
'body': '''
${1:\$image->}${2:dimensions()->}fitWidth(${3})
'''
'fitWidthAndHeight':
'prefix': 'fitWidthAndHeight'
'body': '''
${1:\$image->}${2:dimensions()->}fitWidthAndHeight(${3})
'''
'height':
'prefix': 'height'
'body': '''
${1:\$image->}height()
'''
'landscape':
'prefix': 'landscape'
'body': '''
${1:\$image->}landscape()
'''
'orientation':
'prefix': 'orientation'
'body': '''
${1:\$image->}orientation()
'''
'portrait':
'prefix': 'portrait'
'body': '''
${1:\$image->}${2:dimensions()->}portrait(${3})
'''
'ratio':
'prefix': 'ratio'
'body': '''
${1:\$image->}ratio()
'''
'square':
'prefix': 'square'
'body': '''
${1:\$image->}square()
'''
'width':
'prefix': 'width'
'body': '''
${1:\$image->}width()
'''
'aperture':
'prefix': 'aperture'
'body': '''
${1:\$image->}${2:exif()->}aperture()
'''
'camera':
'prefix': 'camera'
'body': '''
${1:\$image->}camera()
'''
'data':
'prefix': 'data'
'body': '''
${1:\$image->}${2:exif()->}data()
'''
'exposure':
'prefix': 'exposure'
'body': '''
${1:\$image->}${2:exif()->}exposure()
'''
'focalLength':
'prefix': 'focalLength'
'body': '''
${1:\$image->}${2:exif()->}focalLength()
'''
'isBW':
'prefix': 'isBW'
'body': '''
${1:\$image->}${2:exif()->}isBW()
'''
'isColor':
'prefix': 'isColor'
'body': '''
${1:\$image->}${2:exif()->}isColor()
'''
'iso':
'prefix': 'iso'
'body': '''
${1:\$image->}${2:exif()->}iso()
'''
'location':
'prefix': 'location'
'body': '''
${1:\$image->}location()
'''
'timestamp':
'prefix': 'timestamp'
'body': '''
${1:\$image->}${2:exif()->}timestamp()
'''
'toArray':
'prefix': 'toArray'
'body': '''
${1:\$image->}${2:exif()->}toArray()
'''
'bool':
'prefix': 'bool'
'body': '''
${1:\$field->}bool()
'''
'empty':
'prefix': 'empty'
'body': '''
${1:\$field->}empty()
'''
'escape':
'prefix': 'escape'
'body': '''
${1:\$field->}escape()
'''
'excerpt':
'prefix': 'excerpt'
'body': '''
${1:\$field->}excerpt(${2:\$length}, ${3:\$mode})
'''
'html':
'prefix': 'html'
'body': '''
${1:\$field->}html()
'''
'int':
'prefix': 'int'
'body': '''
${1:\$field->}int()
'''
'isEmpty':
'prefix': 'isEmpty'
'body': '''
${1:\$field->}isEmpty()
'''
'isFalse':
'prefix': 'isFalse'
'body': '''
${1:\$field->}isFalse()
'''
'isNotEmpty':
'prefix': 'isNotEmpty'
'body': '''
${1:\$field->}isNotEmpty()
'''
'isTrue':
'prefix': 'isTrue'
'body': '''
${1:\$field->}isTrue()
'''
'kirbytext':
'prefix': 'kirbytext'
'body': '''
${1:\$field->}kirbytext()
'''
'kt':
'prefix': 'kt'
'body': '''
${1:\$field->}kt()
'''
'length':
'prefix': 'length'
'body': '''
${1:\$field->}length()
'''
'link':
'prefix': 'link'
'body': '''
${1:\$field->}link()
'''
'lower':
'prefix': 'lower'
'body': '''
${1:\$field->}lower()
'''
'markdown':
'prefix': 'markdown'
'body': '''
${1:\$field->}markdown()
'''
'or':
'prefix': 'or'
'body': '''
${1:\$field->}or(${2:\$alternative})
'''
'pages':
'prefix': 'pages'
'body': '''
${1:\$field->}pages()
'''
'short':
'prefix': 'short'
'body': '''
${1:\$field->}short(${2:\$length})
'''
'split':
'prefix': 'split'
'body': '''
${1:\$field->}split(${2:',')
'''
'toFile':
'prefix': 'toFile'
'body': '''
${1:\$field->}toFile()
'''
'toPage':
'prefix': 'toPage'
'body': '''
${1:\$field->}toPage()
'''
'toStructure':
'prefix': 'toStructure'
'body': '''
${1:\$field->}toStructure()
'''
'upper':
'prefix': 'upper'
'body': '''
${1:\$field->}upper()
'''
'widont':
'prefix': 'widont'
'body': '''
${1:\$field->}widont()
'''
'words':
'prefix': 'words'
'body': '''
${1:\$field->}words()
'''
'xml':
'prefix': 'xml'
'body': '''
${1:\$field->}xml()
'''
'yaml':
'prefix': 'yaml'
'body': '''
${1:\$field->}yaml()
'''
'base64':
'prefix': 'base64'
'body': '''
${1:\$file->}base64()
'''
'dataUri':
'prefix': 'dataUri'
'body': '''
${1:\$file->}dataUri()
'''
'delete':
'prefix': 'delete'
'body': '''
${1:\$file->}delete()
'''
'dimensions':
'prefix': 'dimensions'
'body': '''
${1:\$file->}dimensions()
'''
'dir':
'prefix': 'dir'
'body': '''
${1:\$file->}dir()
'''
'download':
'prefix': 'download'
'body': '''
${1:\$file->}download()
'''
'exif':
'prefix': 'exif'
'body': '''
${1:\$file->}exif()
'''
'extension':
'prefix': 'extension'
'body': '''
${1:\$file->}extension()
'''
'filename':
'prefix': 'filename'
'body': '''
${1:\$file->}filename()
'''
'hasNext':
'prefix': 'hasNext'
'body': '''
${1:\$file->}hasNext()
'''
'hasPrev':
'prefix': 'hasPrev'
'body': '''
${1:\$file->}hasPrev()
'''
'hash':
'prefix': 'hash'
'body': '''
${1:\$file->}hash()
'''
'height':
'prefix': 'height'
'body': '''
${1:\$file->}height()
'''
'isLandscape':
'prefix': 'isLandscape'
'body': '''
${1:\$file->}isLandscape()
'''
'isPortrait':
'prefix': 'isPortrait'
'body': '''
${1:\$file->}isPortrait()
'''
'isReadable':
'prefix': 'isReadable'
'body': '''
${1:\$file->}isReadable()
'''
'isSquare':
'prefix': 'isSquare'
'body': '''
${1:\$file->}isSquare()
'''
'isWritable':
'prefix': 'isWritable'
'body': '''
${1:\$file->}isWritable()
'''
'mime':
'prefix': 'mime'
'body': '''
${1:\$file->}mime()
'''
'modified':
'prefix': 'modified'
'body': '''
${1:\$file->}modified(${2:\$fformat})
'''
'name':
'prefix': 'name'
'body': '''
${1:\$file->}name()
'''
'next':
'prefix': 'next'
'body': '''
${1:\$file->}next()
'''
'niceSize':
'prefix': 'niceSize'
'body': '''
${1:\$file->}niceSize()
'''
'orientation':
'prefix': 'orientation'
'body': '''
${1:\$file->}orientation()
'''
'page':
'prefix': 'page'
'body': '''
${1:\$file->}page()
'''
'prev':
'prefix': 'prev'
'body': '''
${1:\$file->}prev()
'''
'ratio':
'prefix': 'ratio'
'body': '''
${1:\$file->}ratio()
'''
'read':
'prefix': 'read'
'body': '''
${1:\$file->}read()
'''
'rename':
'prefix': 'rename'
'body': '''
${1:\$file->}rename(${2:\$to})
'''
'root':
'prefix': 'root'
'body': '''
${1:\$file->}root()
'''
'siblings':
'prefix': 'siblings'
'body': '''
${1:\$file->}siblings()
'''
'size':
'prefix': 'size'
'body': '''
${1:\$file->}size()
'''
'type':
'prefix': 'type'
'body': '''
${1:\$file->}type()
'''
'update':
'prefix': 'update'
'body': '''
${1:\$file->}update(${2:\$data})
'''
'url':
'prefix': 'url'
'body': '''
${1:\$file->}url()
'''
'width':
'prefix': 'width'
'body': '''
${1:\$file->}width()
'''
'count':
'prefix': 'count'
'body': '''
${1:\$files->}count()
'''
'filter':
'prefix': 'filter'
'body': '''
${1:\$files->}filter(${2:\$callback})
'''
'filterBy':
'prefix': 'filterBy'
'body': '''
${1:\$files->}filterBy(${2:\$haystack}${3:, \$method}${4:, \$needle})
'''
'find':
'prefix': 'find'
'body': '''
${1:\$files->}find(${2})
'''
'findBy':
'prefix': 'findBy'
'body': '''
${1:\$files->}findBy(${2:\$field}, ${3:\$value})
'''
'first':
'prefix': 'first'
'body': '''
${1:\$files->}first()
'''
'flip':
'prefix': 'flip'
'body': '''
${1:\$files->}flip()
'''
'get':
'prefix': 'get'
'body': '''
${1:\$files->}get(${2:\$filename})
'''
'groupBy':
'prefix': 'groupBy'
'body': '''
${1:\$files->}groupBy(${2:\$field},${3:true})
'''
'keys':
'prefix': 'keys'
'body': '''
${1:\$files->}keys()
'''
'last':
'prefix': 'last'
'body': '''
${1:\$files->}last()
'''
'limit':
'prefix': 'limit'
'body': '''
${1:\$files->}limit(${2:\$limit})
'''
'map':
'prefix': 'map'
'body': '''
${1:\$files->}map(${2:function()\{
${3}
\}})
'''
'not':
'prefix': 'not'
'body': '''
${1:\$files->}not(${2:\$file})
'''
'nth':
'prefix': 'nth'
'body': '''
${1:\$files->}nth(${2:\$nth})
'''
'offset':
'prefix': 'offset'
'body': '''
${1:\$files->}offset(${2:\$offset})
'''
'paginate':
'prefix': 'paginate'
'body': '''
${1:\$files->}paginate(${2:\$limit}${3:, \$options})
'''
'pluck':
'prefix': 'pluck'
'body': '''
${1:\$files->}pluck(${2:\$field}${3:, \$split}${4:, \$unique})
'''
'shuffle':
'prefix': 'shuffle'
'body': '''
${1:\$files->}shuffle()
'''
'slice':
'prefix': 'slice'
'body': '''
${1:\$files->}slice(${2:\$offset}${3:, \$limit})
'''
'sortBy':
'prefix': 'sortBy'
'body': '''
${1:\$files->}sortBy(${2:\$field}${3:, \$direction}${4:, \$method})
'''
'toArray':
'prefix': 'toArray'
'body': '''
${1:\$files->}toArray(${2:function()\{
${3}
\}})
'''
'toJson':
'prefix': 'toJson'
'body': '''
${1:\$files->}toJson()
'''
'attr':
'prefix': 'attr'
'body': '''
attr(${1:array(
${2:'name'} => ${3:'value'}
)});
'''
'brick':
'prefix': 'brick'
'body': '''
brick(${1:\$tag}${2:,false}${3:,\$attr_array});
'''
'css':
'prefix': 'css'
'body': '''
css(${1:\$path}${2:,\$media});
'''
'dump':
'prefix': 'dump'
'body': '''
dump(${1:\$var});
'''
'e':
'prefix': 'e'
'body': '''
e(${1:\$condition}${2:,'cond is successfull'}${3:,'cond failed'});
'''
'ecco':
'prefix': 'ecco'
'body': '''
ecco(${1:\$condition}${2:,'cond is successfull'}${3:,'cond failed'});
'''
'email':
'prefix': 'email'
'body': '''
email(${1:array(
${2:'to'} => ${3:'bastian@getkirby.com'},
${4:'from'} => ${5:'my@email.com'},
${6:'subject'} => ${7:'Sending emails with Kirby is easy'},
${8:'body'} => ${9:'Hey! This was really easy!'}
)});
'''
'excerpt':
'prefix': 'excerpt'
'body': '''
excerpt(${1:\$text},${2:140});
'''
'get':
'prefix': 'get'
'body': '''
get(${1:'q'});
'''
'gist':
'prefix': 'gist'
'body': '''
gist(${1:\$url});
'''
'go':
'prefix': 'go'
'body': '''
go(${1:'blog'});
'''
'gravatar':
'prefix': 'gravatar'
'body': '''
gravatar(${1:\$email}${2:,\$size});
'''
'h':
'prefix': 'h'
'body': '''
h(${1:\$text}${2:, true});
'''
'html':
'prefix': 'html'
'body': '''
html(${1:\$text}${2:, true});
'''
'invalid':
'prefix': 'invalid'
'body': '''
invalid(${1:\$data},${2:\$rules},${3:\$messages});
'''
'js':
'prefix': 'js'
'body': '''
js(${1:\$path}${2:, \$async});
'''
'kirbytag':
'prefix': 'kirbytag'
'body': '''
kirbytag(${1:\$attr});
'''
'kirbytext':
'prefix': 'kirbytext'
'body': '''
kirbytext(${1:\$text});
'''
'l':
'prefix': 'l'
'body': '''
l(${1:\$key});
'''
'markdown':
'prefix': 'markdown'
'body': '''
markdown(${1:\$text});
'''
'multiline':
'prefix': 'multiline'
'body': '''
multiline(${1:\$text});
'''
'page':
'prefix': 'page'
'body': '''
page(${1:\$uri});
'''
'param':
'prefix': 'param'
'body': '''
param(${1:\$key});
'''
'r':
'prefix': 'r'
'body': '''
r(${1:\$condition}${2:,'cond is successfull'}${3:,'cond failed'});
'''
'site':
'prefix': 'site'
'body': '''
site();
'''
'size':
'prefix': 'size'
'body': '''
size(${1:\$string});
'''
'thumb':
'prefix': 'thumb'
'body': '''
thumb(${1:\$image}${2:, array(
${3:'width'} => ${4:400},
${5:'height'} => ${6:250}
)});
'''
'twitter':
'prefix': 'twitter'
'body': '''
twitter(${1:\$username}${2:, \$text});
'''
'u':
'prefix': 'u'
'body': '''
u(${1:\$path});
'''
'url':
'prefix': 'url'
'body': '''
url(${1:\$path});
'''
'vimeo':
'prefix': 'vimeo'
'body': '''
vimeo(${1:\$url});
'''
'widont':
'prefix': 'widont'
'body': '''
widont(${1:\$text});
'''
'xml':
'prefix': 'xml'
'body': '''
xml(${1:\$text});
'''
'yaml':
'prefix': 'yaml'
'body': '''
yaml(${1:\$string});
'''
'youtube':
'prefix': 'youtube'
'body': '''
youtube(${1:\$url});
'''
'code':
'prefix': 'code'
'body': '''
${1:\$language}->code()
'''
'default':
'prefix': 'default'
'body': '''
${1:\$language}->default()
'''
'locale':
'prefix': 'locale'
'body': '''
${1:\$language}->locale()
'''
'name':
'prefix': 'name'
'body': '''
${1:\$language}->name()
'''
'url':
'prefix': 'url'
'body': '''
${1:\$language}->url()
'''
'lat':
'prefix': 'lat'
'body': '''
${1:\$exif->}${2:location()->}lat()
'''
'lng':
'prefix': 'lng'
'body': '''
${1:\$exif->}${2:location()->}lng()
'''
'toArray':
'prefix': 'toArray'
'body': '''
${1:\$exif->}${2:location()->}toArray()
'''
'archives':
'prefix': 'archives'
'body': '''
${1:\$page}->archives()
'''
'audio':
'prefix': 'audio'
'body': '''
${1:\$page}->audio()
'''
'children':
'prefix': 'children'
'body': '''
${1:\$page}->children()
'''
'code':
'prefix': 'code'
'body': '''
${1:\$page}->code()
'''
'content':
'prefix': 'content'
'body': '''
${1:\$page}->content()
'''
'date':
'prefix': 'date'
'body': '''
${1:\$page}->date(${2:'format'}, ${3:'fieldname'})()
'''
'delete':
'prefix': 'delete'
'body': '''
${1:\$page}->delete(${2:force_bool})
'''
'depth':
'prefix': 'depth'
'body': '''
${1:\$page}->depth()
'''
'dirname':
'prefix': 'dirname'
'body': '''
${1:\$page}->dirname()
'''
'diruri':
'prefix': 'diruri'
'body': '''
${1:\$page}->diruri()
'''
'documents':
'prefix': 'documents'
'body': '''
${1:\$page}->documents()
'''
'file':
'prefix': 'file'
'body': '''
${1:\$page}->file(${2:false})
'''
'files':
'prefix': 'files'
'body': '''
${1:\$page}->files()
'''
'find':
'prefix': 'find'
'body': '''
${1:\$page}->find(${2:'uri'})
'''
'grandChildren':
'prefix': 'grandChildren'
'body': '''
${1:\$page}->grandChildren()
'''
'hasArchives':
'prefix': 'hasArchives'
'body': '''
${1:\$page}->hasArchives()
'''
'hasAudio':
'prefix': 'hasAudio'
'body': '''
${1:\$page}->hasAudio()
'''
'hasChildren':
'prefix': 'hasChildren'
'body': '''
${1:\$page}->hasChildren()
'''
'hasDocuments':
'prefix': 'hasDocuments'
'body': '''
${1:\$page}->hasDocuments()
'''
'hasFiles':
'prefix': 'hasFiles'
'body': '''
${1:\$page}->hasFiles()
'''
'hasImages':
'prefix': 'hasImages'
'body': '''
${1:\$page}->hasImages()
'''
'hasInvisibleChildren':
'prefix': 'hasInvisibleChildren'
'body': '''
${1:\$page}->hasInvisibleChildren()
'''
'hasNext':
'prefix': 'hasNext'
'body': '''
${1:\$page}->hasNext()
'''
'hasNextVisible':
'prefix': 'hasNextVisible'
'body': '''
${1:\$page}->hasNextVisible()
'''
'hasPrev':
'prefix': 'hasPrev'
'body': '''
${1:\$page}->hasPrev()
'''
'hasPrevVisible':
'prefix': 'hasPrevVisible'
'body': '''
${1:\$page}->hasPrevVisible()
'''
'hasTemplate':
'prefix': 'hasTemplate'
'body': '''
${1:\$page}->hasTemplate()
'''
'hasVideos':
'prefix': 'hasVideos'
'body': '''
${1:\$page}->hasVideos()
'''
'hasVisibleChildren':
'prefix': 'hasVisibleChildren'
'body': '''
${1:\$page}->hasVisibleChildren()
'''
'hash':
'prefix': 'hash'
'body': '''
${1:\$page}->hash()
'''
'hide':
'prefix': 'hide'
'body': '''
${1:\$page}->hide()
'''
'id':
'prefix': 'id'
'body': '''
${1:\$page}->id()
'''
'image':
'prefix': 'image'
'body': '''
${1:\$page}->image(${2:filename})
'''
'images':
'prefix': 'images'
'body': '''
${1:\$page}->images()
'''
'index':
'prefix': 'index'
'body': '''
${1:\$page}->index()
'''
'intendedTemplate':
'prefix': 'intendedTemplate'
'body': '''
${1:\$page}->intendedTemplate()
'''
'intendedTemplateFile':
'prefix': 'intendedTemplateFile'
'body': '''
${1:\$page}->intendedTemplateFile()
'''
'is':
'prefix': 'is'
'body': '''
${1:\$page}->is(${2:\$other})
'''
'isActive':
'prefix': 'isActive'
'body': '''
${1:\$page}->isActive()
'''
'isAncestorOf':
'prefix': 'isAncestorOf'
'body': '''
${1:\$page}->isAncestorOf(${2:\$child})
'''
'isChildOf':
'prefix': 'isChildOf'
'body': '''
${1:\$page}->isChildOf(${2:\$parent})
'''
'isDeletable':
'prefix': 'isDeletable'
'body': '''
${1:page}->isDeletable()
'''
'isDescendantOf':
'prefix': 'isDescendantOf'
'body': '''
${1:\$page}->isDescendantOf(${2:\$parent})
'''
'isDescendantOfActive':
'prefix': 'isDescendantOfActive'
'body': '''
${1:\$page}->isDescendantOfActive()
'''
'isErrorPage':
'prefix': 'isErrorPage'
'body': '''
${1:\$page}->isErrorPage()
'''
'isHomePage':
'prefix': 'isHomePage'
'body': '''
${1:\$page}->isHomePage()
'''
'isInvisible':
'prefix': 'isInvisible'
'body': '''
${1:\$page}->isInvisible()
'''
'isOpen':
'prefix': 'isOpen'
'body': '''
${1:\$page}->isOpen()
'''
'isParentOf':
'prefix': 'isParentOf'
'body': '''
${1:\$page}->isParentOf(${2:\$child})
'''
'isVisible':
'prefix': 'isVisible'
'body': '''
${1:\$page}->isVisible()
'''
'isWritable':
'prefix': 'isWritable'
'body': '''
${1:\$page}->isWritable()
'''
'modified':
'prefix': 'modified'
'body': '''
${1:\$page}->modified(${2:'format'})
'''
'next':
'prefix': 'next'
'body': '''
${1:\$page}->next()
'''
'nextInvisible':
'prefix': 'nextInvisible'
'body': '''
${1:\$page}->nextInvisible()
'''
'nextVisible':
'prefix': 'nextVisible'
'body': '''
${1:\$page}->nextVisible()
'''
'num':
'prefix': 'num'
'body': '''
${1:\$page}->num()
'''
'parent':
'prefix': 'parent'
'body': '''
${1:\$page}->parent()
'''
'parents':
'prefix': 'parents'
'body': '''
${1:\$page}->parents()
'''
'prev':
'prefix': 'prev'
'body': '''
${1:\$page}->prev()
'''
'prevInvisible':
'prefix': 'prevInvisible'
'body': '''
${1:\$page}->prevInvisible()
'''
'prevVisible':
'prefix': 'prevVisible'
'body': '''
${1:\$page}->prevVisible()
'''
'root':
'prefix': 'root'
'body': '''
${1:\$page}->root()
'''
'search':
'prefix': 'search'
'body': '''
${1:\$page}->search(${2:\$query}${3:, \$params})
'''
'siblings':
'prefix': 'siblings'
'body': '''
${1:\$page}->siblings(${2:self_bool})
'''
'slug':
'prefix': 'slug'
'body': '''
${1:\$page}->slug()
'''
'sort':
'prefix': 'sort'
'body': '''
${1:\$page}->sort({2:num})
'''
'template':
'prefix': 'template'
'body': '''
${1:\$page}->template()
'''
'templateFile':
'prefix': 'templateFile'
'body': '''
${1:\$page}->templateFile()
'''
'tinyurl':
'prefix': 'tinyurl'
'body': '''
${1:\$page}->tinyurl()
'''
'title':
'prefix': 'title'
'body': '''
${1:\$page}->title()
'''
'uid':
'prefix': 'uid'
'body': '''
${1:\$page}->uid()
'''
'update':
'prefix': 'update'
'body': '''
${1:\$page}->update(${2:\$data_array})
'''
'uri':
'prefix': 'uri'
'body': '''
${1:\$page}->uri()
'''
'url':
'prefix': 'url'
'body': '''
${1:\$page}->url()
'''
'videos':
'prefix': 'videos'
'body': '''
${1:\$page}->videos()
'''
'children':
'prefix': 'children'
'body': '''
${1:\$pages->}children()
'''
'count':
'prefix': 'count'
'body': '''
${1:\$pages->}count()
'''
'create':
'prefix': 'create'
'body': '''
${1:\$pages->}create(${2:\$uid}, ${3:\$template}, ${4:\$data})
'''
'filter':
'prefix': 'filter'
'body': '''
${1:\$pages->}filter(${2:function() \{
${3}
\})}
'''
'filterBy':
'prefix': 'filterBy'
'body': '''
${1:\$pages->}filterBy(${2:\$haystack}${3:, \$method}${4:, \$needle})
'''
'find':
'prefix': 'find'
'body': '''
${1:\$pages->}find(${2})
'''
'findByURI':
'prefix': 'findByURI'
'body': '''
${1:\$pages->}findByURI(${1})
'''
'findOpen':
'prefix': 'findOpen'
'body': '''
${1:\$pages->}findOpen()
'''
'findBy':
'prefix': 'findBy'
'body': '''
${1:\$pages->}findBy(${2:\$field}, ${3:\$value})
'''
'first':
'prefix': 'first'
'body': '''
${1:\$pages->}first()
'''
'flip':
'prefix': 'flip'
'body': '''
${1:\$pages->}flip()
'''
'get':
'prefix': 'get'
'body': '''
${1:\$pages->}get(${2:\$uri})
'''
'groupBy':
'prefix': 'groupBy'
'body': '''
${1:\$pages->}groupBy(${2:\$field}, ${3:true})
'''
'has':
'prefix': 'has'
'body': '''
${1:\$pages->}has(${2})
'''
'index':
'prefix': 'index'
'body': '''
${1:\$pages->}index()
'''
'invisible':
'prefix': 'invisible'
'body': '''
${1:\$pages->}invisible()
'''
'keys':
'prefix': 'keys'
'body': '''
${1:\$pages->}keys()
'''
'last':
'prefix': 'last'
'body': '''
${1:\$pages->}last()
'''
'limit':
'prefix': 'limit'
'body': '''
${1:\$pages->}limit(${2:\$limit})
'''
'map':
'prefix': 'map'
'body': '''
${1:\$pages->}map(${2:function()\{
${3}
\}})
'''
'not':
'prefix': 'not'
'body': '''
${1:\$pages->}not()
'''
'nth':
'prefix': 'nth'
'body': '''
${1:\$pages->}nth(${2:\$nth})
'''
'offset':
'prefix': 'offset'
'body': '''
${1:\$pages->}offset(${2:\$offset})
'''
'paginate':
'prefix': 'paginate'
'body': '''
${1:\$pages->}paginate(${2:\$limit}${3:, \$options})
'''
'pagination':
'prefix': 'pagination'
'body': '''
${1:\$pages->}pagination()
'''
'pluck':
'prefix': 'pluck'
'body': '''
${1:\$pages->}pluck(${2:\$field}${3:, \$split}${4:, \$unique})
'''
'search':
'prefix': 'search'
'body': '''
${1:\$pages->}search(${2:\$query}${3:, \$params})
'''
'shuffle':
'prefix': 'shuffle'
'body': '''
${1:\$pages->}shuffle()
'''
'slice':
'prefix': 'slice'
'body': '''
${1:\$pages->}slice(${2:\$offset}, ${3:\$limit})
'''
'sortBy':
'prefix': 'sortBy'
'body': '''
${1:\$pages->}sortBy(${2:\$field}${3:, \$direction}${4:, \$method})
'''
'toArray':
'prefix': 'toArray'
'body': '''
${1:\$pages->}toArray(${2:function()\{
${3}
\}})
'''
'toJson':
'prefix': 'toJson'
'body': '''
${1:\$pages->}toJson()
'''
'visible':
'prefix': 'visible'
'body': '''
${1:\$pages->}visible()
'''
'firstPage':
'prefix': 'firstPage'
'body': '''
${1:\$pagination->}firstPage()
'''
'firstPageUrl':
'prefix': 'firstPageUrl'
'body': '''
${1:\$pagination->}firstPageUrl()
'''
'hasNextPage':
'prefix': 'hasNextPage'
'body': '''
${1:\$pagination->}hasNextPage()
'''
'hasPages':
'prefix': 'hasPages'
'body': '''
${1:\$pagination->}hasPages()
'''
'hasPrevPage':
'prefix': 'hasPrevPage'
'body': '''
${1:\$pagination->}hasPrevPage()
'''
'isFirstPage':
'prefix': 'isFirstPage'
'body': '''
${1:\$pagination->}isFirstPage()
'''
'isLastPage':
'prefix': 'isLastPage'
'body': '''
${1:\$pagination->}isLastPage()
'''
'items':
'prefix': 'items'
'body': '''
${1:\$pagination->}items()
'''
'lastPage':
'prefix': 'lastPage'
'body': '''
${1:\$pagination->}lastPage()
'''
'lastPageUrl':
'prefix': 'lastPageUrl'
'body': '''
${1:\$pagination->}lastPageUrl()
'''
'limit':
'prefix': 'limit'
'body': '''
${1:\$pagination->}limit()
'''
'nextPage':
'prefix': 'nextPage'
'body': '''
${1:\$pagination->}nextPage()
'''
'nextPageUrl':
'prefix': 'nextPageUrl'
'body': '''
${1:\$pagination->}nextPageUrl()
'''
'numEnd':
'prefix': 'numEnd'
'body': '''
${1:\$pagination->}numEnd()
'''
'numStart':
'prefix': 'numStart'
'body': '''
${1:\$pagination->}numStart()
'''
'offset':
'prefix': 'offset'
'body': '''
${1:\$pagination->}offset()
'''
'page':
'prefix': 'page'
'body': '''
${1:\$pagination->}page()
'''
'pageUrl':
'prefix': 'pageUrl'
'body': '''
${1:\$pagination->}pageUrl(${2:\$page})
'''
'pages':
'prefix': 'pages'
'body': '''
${1:\$pagination->}pages()
'''
'prevPage':
'prefix': 'prevPage'
'body': '''
${1:\$pagination->}prevPage()
'''
'prevPageUrl':
'prefix': 'prevPageUrl'
'body': '''
${1:\$pagination->}prevPageUrl()
'''
'range':
'prefix': 'range'
'body': '''
${1:\$pagination->}range(${2:\$range})
'''
'rangeEnd':
'prefix': 'rangeEnd'
'body': '''
${1:\$pagination->}rangeEnd()
'''
'rangeStart':
'prefix': 'rangeStart'
'body': '''
${1:\$pagination->}rangeStart()
'''
'toArray':
'prefix': 'toArray'
'body': '''
${1:\$pagination->}toArray()
'''
'activePage':
'prefix': 'activePage'
'body': '''
${1:\$site}->activePage()
'''
'archives':
'prefix': 'archives'
'body': '''
${1:\$site}->archives()
'''
'audio':
'prefix': 'audio'
'body': '''
${1:\$site}->audio()
'''
'breadcrumb':
'prefix': 'breadcrumb'
'body': '''
${1:\$site}->breadcrumb()
'''
'children':
'prefix': 'children'
'body': '''
${1:\$site}->children()
'''
'code':
'prefix': 'code'
'body': '''
${1:\$site}->code()
'''
'content':
'prefix': 'content'
'body': '''
${1:\$site}->content()
'''
'defaultLanguage':
'prefix': 'defaultLanguage'
'body': '''
${1:\$site}->defaultLanguage()
'''
'documents':
'prefix': 'documents'
'body': '''
${1:\$site}->documents()
'''
'errorPage':
'prefix': 'errorPage'
'body': '''
${1:\$site}->errorPage()
'''
'file':
'prefix': 'file'
'body': '''
${1:\$site}->file(${2:'filename'})
'''
'files':
'prefix': 'files'
'body': '''
${1:\$site}->files()
'''
'find':
'prefix': 'find'
'body': '''
${1:\$site}->find()
'''
'hasArchives':
'prefix': 'hasArchives'
'body': '''
${1:\$site}->hasArchives()
'''
'hasAudio':
'prefix': 'hasAudio'
'body': '''
${1:\$site}->hasAudio()
'''
'hasDocuments':
'prefix': 'hasDocuments'
'body': '''
${1:\$site}->hasDocuments()
'''
'hasFiles':
'prefix': 'hasFiles'
'body': '''
${1:\$site}->hasFiles()
'''
'hasImages':
'prefix': 'hasImages'
'body': '''
${1:\$site}->hasImages()
'''
'hasInvisibleChildren':
'prefix': 'hasInvisibleChildren'
'body': '''
${1:\$site}->hasInvisibleChildren()
'''
'hasVisibleChildren':
'prefix': 'hasVisibleChildren'
'body': '''
${1:\$site}->hasVisibleChildren()
'''
'homePage':
'prefix': 'homePage'
'body': '''
${1:\$site}->homePage()
'''
'image':
'prefix': 'image'
'body': '''
${1:\$site}->image(${2:'filename'})
'''
'images':
'prefix': 'images'
'body': '''
${1:\$site}->images()
'''
'index':
'prefix': 'index'
'body': '''
${1:\$site}->index()
'''
'language':
'prefix': 'language'
'body': '''
${1:\$site}->language(${2:'en'})
'''
'languages':
'prefix': 'languages'
'body': '''
${1:\$site}->languages()
'''
'locale':
'prefix': 'locale'
'body': '''
${1:\$site}->locale()
'''
'modified':
'prefix': 'modified'
'body': '''
${1:\$site}->modified(${2:'d.m.Y H:i'})
'''
'multilang':
'prefix': 'multilang'
'body': '''
${1:\$site}->multilang()
'''
'page':
'prefix': 'page'
'body': '''
${1:\$site}->page(${2:'some/sub/page/deep/down'})
'''
'pages':
'prefix': 'pages'
'body': '''
${1:\$site}->pages()
'''
'search':
'prefix': 'search'
'body': '''
${1:\$site}->search(${2:\$query}${3:, \$params})
'''
'update':
'prefix': 'update'
'body': '''
${1:\$site}->update(${2:data})
'''
'url':
'prefix': 'url'
'body': '''
${1:\$site}->url()
'''
'user':
'prefix': 'user'
'body': '''
${1:\$site}->user(${2:'kirby'})
'''
'users':
'prefix': 'users'
'body': '''
${1:\$site}->users()
'''
'videos':
'prefix': 'videos'
'body': '''
${1:\$site}->videos()
'''
'children':
'prefix': 'children'
'body': '''
->children()
'''
'html':
'prefix': 'html'
'body': '''
->html()
'''
'snippet':
'prefix': 'snippet'
'body': '''
snippet('${1:header}');
'''
'visible':
'prefix': 'visible'
'body': '''
->visible()
'''
'avatar':
'prefix': 'avatar'
'body': '''
${1:\$user}->avatar()
'''
'delete':
'prefix': 'delete'
'body': '''
${1:\$user}->delete()
'''
'email':
'prefix': 'email'
'body': '''
${1:\$user}->email()
'''
'firstName':
'prefix': 'firstName'
'body': '''
${1:\$user}->firstName()
'''
'gravatar':
'prefix': 'gravatar'
'body': '''
${1:\$user}->gravatar(${2:256})
'''
'hasPanelAccess':
'prefix': 'hasPanelAccess'
'body': '''
${1:\$user}->hasPanelAccess()
'''
'hasRole':
'prefix': 'hasRole'
'body': '''
${1:\$user}->hasRole(${2:'editor'})
'''
'is':
'prefix': 'is'
'body': '''
${1:\$user}->is(${2})
'''
'isCurrent':
'prefix': 'isCurrent'
'body': '''
${1:\$user}->isCurrent()
'''
'lastName':
'prefix': 'lastName'
'body': '''
${1:\$user}->lastName()
'''
'login':
'prefix': 'login'
'body': '''
${1:\$user}->login(${2:\$password})
'''
'logout':
'prefix': 'logout'
'body': '''
${1:\$user}->logout()
'''
'update':
'prefix': 'update'
'body': '''
${1:\$user}->update(array(
'email' => '${2}',
'firstName' => '${3}',
'lastName' => '${4}'
))
'''
'username':
'prefix': 'username'
'body': '''
${1:\$user}->username()
'''
'count':
'prefix': 'count'
'body': '''
${1:\$users}->count()
'''
'create':
'prefix': 'create'
'body': '''
${1:\$users}->create(array(
'username' => '${2}',
'email' => '${3}',
'password' => '${4}',
'firstName' => '${5}',
'lastName' => '${6}'
));
'''
'filter':
'prefix': 'filter'
'body': '''
${1:\$users}->filter(${2})
'''
'filterBy':
'prefix': 'filterBy'
'body': '''
${1:\$users}->filterBy(${2}, ${3})
'''
'find':
'prefix': 'find'
'body': '''
${1:\$users}->find(${2})
'''
'findBy':
'prefix': 'findBy'
'body': '''
${1:\$users}->findBy(${2}, ${3})
'''
'first':
'prefix': 'first'
'body': '''
${1:\$users}->first()
'''
'flip':
'prefix': 'flip'
'body': '''
${1:\$users}->flip()
'''
'get':
'prefix': 'get'
'body': '''
${1:\$users}->get(${2})
'''
'groupBy':
'prefix': 'groupBy'
'body': '''
${1:\$users}->groupBy(${2:\$field}, ${3:true})
'''
'keys':
'prefix': 'keys'
'body': '''
${1:\$users}->keys()
'''
'last':
'prefix': 'last'
'body': '''
${1:\$users}->last()
'''
'limit':
'prefix': 'limit'
'body': '''
${1:\$users}->limit(${2:\$limit})
'''
'map':
'prefix': 'map'
'body': '''
${1:\$users}->map(${2:function()\{
${3}
\}})
'''
'not':
'prefix': 'not'
'body': '''
${1:\$users}->not()
'''
'nth':
'prefix': 'nth'
'body': '''
${1:\$users}->nth(${2:\$nth})
'''
'offset':
'prefix': 'offset'
'body': '''
${1:\$users}->offset(${2:\$offset})
'''
'paginate':
'prefix': 'paginate'
'body': '''
${1:\$users}->paginate(${2:\$limit}, ${3:\$options})
'''
'pagination':
'prefix': 'pagination'
'body': '''
${1:\$users}->pagination()
'''
'pluck':
'prefix': 'pluck'
'body': '''
${1:\$users}->pluck(${2:\$field}, ${3:\$split}, ${4:\$unique})
'''
'shuffle':
'prefix': 'shuffle'
'body': '''
${1:\$users}->shuffle()
'''
'slice':
'prefix': 'slice'
'body': '''
${1:\$users}->slice(${2:\$offset}, ${3:\$limit})
'''
'sortBy':
'prefix': 'sortBy'
'body': '''
${1:\$users}->sortBy(${2:\$field}${3:, \$direction}${4:, \$method})
'''
'toArray':
'prefix': 'toArray'
'body': '''
${1:\$users}->toArray(${2:function()\{
${3}
\}})
'''
'toJson':
'prefix': 'toJson'
'body': '''
${1:\$users}->toJson()
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment