├── .gitignore
├── snippets
├── unregister-sidebar-alt.sublime-snippet
├── html5-support.sublime-snippet
├── remove-post-title.sublime-snippet
├── remove-breadcrumb.sublime-snippet
├── footer-widgets.sublime-snippet
├── post-format-images.sublime-snippet
├── force-full-layout.sublime-snippet
├── register-sidebar.sublime-snippet
├── reposition-secondary-nav.sublime-snippet
├── structural-wraps.sublime-snippet
├── custom-footer.sublime-snippet
├── unregister-layouts.sublime-snippet
├── unregister-superfish-scripts.sublime-snippet
├── custom-post-content.sublime-snippet
├── filter-excerpt-more.sublime-snippet
├── custom-search-text.sublime-snippet
├── remove-footer.sublime-snippet
├── add-viewport-meta.sublime-snippet
├── add-body-class.sublime-snippet
├── search-button-text.sublime-snippet
├── description-in-menu.sublime-snippet
├── genesis-custom-loop.sublime-snippet
├── child-theme-setup.sublime-snippet
└── setup-page-template.sublime-snippet
├── README.md
└── completions
├── genesis-constant-completions.sublime-completions
├── genesis-hook-completions.sublime-completions
└── genesis-filter-completions.sublime-completions
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | tester.html
--------------------------------------------------------------------------------
/snippets/unregister-sidebar-alt.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
5 | uralt
6 | source.php,source.php.embedded.block.html
7 | Unregister the Secondary Sidebar
8 |
--------------------------------------------------------------------------------
/snippets/html5-support.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
6 | genesishtml5
7 | source.php,source.php.embedded.block.html
8 | Enables HTML5 support
9 |
--------------------------------------------------------------------------------
/snippets/remove-post-title.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
6 | removetitle
7 | source.php,source.php.embedded.block.html
8 | Remove Post Title
9 |
--------------------------------------------------------------------------------
/snippets/remove-breadcrumb.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
6 | removebc
7 | source.php,source.php.embedded.block.html
8 | Remove the Breadcrumb
9 |
--------------------------------------------------------------------------------
/snippets/footer-widgets.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
6 | footerwidgets
7 | source.php,source.php.embedded.block.html
8 | Add theme support for footer widgets
9 |
--------------------------------------------------------------------------------
/snippets/post-format-images.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
6 | postformatimages
7 | source.php,source.php.embedded.block.html
8 | Enables post format images
9 |
--------------------------------------------------------------------------------
/snippets/force-full-layout.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
6 | forcefull
7 | source.php,source.php.embedded.block.html
8 | Force Full Width Page Layout
9 |
--------------------------------------------------------------------------------
/snippets/register-sidebar.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 | '${1:must-be-slug}',
5 | 'name' => '${2:Can Have Spaces}',
6 | 'description' => 'This is the $2 section'
7 | ) );
8 | ]]>
9 | grs
10 | source.php,source.php.embedded.block.html
11 | Register genesis sidebar
12 |
--------------------------------------------------------------------------------
/snippets/reposition-secondary-nav.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
7 | repositionsubnav
8 | source.php,source.php.embedded.block.html
9 | Reposition Subnav
10 |
--------------------------------------------------------------------------------
/snippets/structural-wraps.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
6 | structuralwraps
7 | source.php,source.php.embedded.block.html
8 | Enable structural wraps
9 |
--------------------------------------------------------------------------------
/snippets/custom-footer.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
14 | customfooter
15 | source.php,source.php.embedded.block.html
16 | Create custom footer
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/snippets/unregister-layouts.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
9 | urlayouts
10 | source.php,source.php.embedded.block.html
11 | Unregister unused layouts
12 |
--------------------------------------------------------------------------------
/snippets/unregister-superfish-scripts.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
14 | ursuperfish
15 | source.php,source.php.embedded.block.html
16 | Unregister superfish scripts
17 |
--------------------------------------------------------------------------------
/snippets/custom-post-content.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
14 | custompc
15 | source.php,source.php.embedded.block.html
16 | Custom post content function
17 |
--------------------------------------------------------------------------------
/snippets/filter-excerpt-more.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
14 | filterexcerptmore
15 | source.php,source.php.embedded.block.html
16 | Filter Excerpt More
17 |
--------------------------------------------------------------------------------
/snippets/custom-search-text.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
15 | customsearchtext
16 | source.php,source.php.embedded.block.html
17 | Customize Search Text
18 |
--------------------------------------------------------------------------------
/snippets/remove-footer.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
10 | removefooter
11 | source.php,source.php.embedded.block.html
12 | Remove footer and footer markup
13 |
--------------------------------------------------------------------------------
/snippets/add-viewport-meta.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 | ';
11 | }
12 | ]]>
13 | viewportmeta
14 | source.php,source.php.embedded.block.html
15 | Add viewport for responsive (mobile) design
16 |
--------------------------------------------------------------------------------
/snippets/add-body-class.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
15 | addbodyclass
16 | source.php,source.php.embedded.block.html
17 | Add custom body class
18 |
--------------------------------------------------------------------------------
/snippets/search-button-text.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
14 | customsearchbutton
15 | source.php,source.php.embedded.block.html
16 | Customize Search Button Text
17 |
--------------------------------------------------------------------------------
/snippets/description-in-menu.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 | post_content ) {
13 | return preg_replace( '/([^<]*?)', '\$1' . '' . \$item->post_content . '<', \$item_output );
14 | }
15 |
16 | return \$item_output;
17 | }
18 | ]]>
19 | emd
20 | source.php,source.php.embedded.block.html
21 | Display description in menus
22 |
--------------------------------------------------------------------------------
/snippets/genesis-custom-loop.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 | '',
18 | 'category_name' => 'blog', // use category slug
19 | 'order' => 'ASC',
20 | 'order_by' => 'title',
21 | 'paged' => \$paged,
22 | 'posts_per_page' => 5}
23 | ));
24 |
25 | genesis_custom_loop( \$args );
26 | }
27 |
28 | genesis();
29 | ]]>
30 | gcl
31 | source.php,source.php.embedded.block.html
32 | Setup genesis custom loop
33 |
--------------------------------------------------------------------------------
/snippets/child-theme-setup.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
27 | childthemesetup
28 | source.php,source.php.embedded.block.html
29 | Child theme setup function
30 |
--------------------------------------------------------------------------------
/snippets/setup-page-template.sublime-snippet:
--------------------------------------------------------------------------------
1 |
2 |
30 | setuptemplate
31 | source.php,source.php.embedded.block.html,text.html.basic
32 | Setup a custom page template
33 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | This is a [Sublime Text][sublime] package which includes a bunch of handy snippets for doing WordPress development with the Genesis Framework.
2 |
3 | ## Installation ##
4 |
5 | ### With Package Control ###
6 |
7 | If you have the [Package Control][package_control] package installed, you can install the Genesis package from inside Sublime Text itself. Open the Command Palette and select "Package Control: Install Package", then search for Genesis.
8 |
9 | It's just that simple!
10 |
11 | ### Without Package Control ###
12 |
13 | If you haven't got Package Control installed (seriously, go install it!) you will need to make a clone of this repository into your packages folder, like so:
14 |
15 | git clone https://github.com/jtallant/Genesis.git
16 |
17 | ### Full List of Available Snippets and their tab triggers ###
18 |
19 | [Snippet List With Tab Triggers][snippet_list]
20 |
21 | [sublime]: http://www.sublimetext.com/
22 | [package_control]: http://wbond.net/sublime_packages/package_control
23 | [snippet_list]: http://justintallant.com/genesis-sublime-text-2-snippets
24 |
25 |
26 | ### Contributors ###
27 |
28 | [@jtallant](http://twitter.com/jtallant)
29 | [@defries](http://twitter.com/defries)
--------------------------------------------------------------------------------
/completions/genesis-constant-completions.sublime-completions:
--------------------------------------------------------------------------------
1 | {
2 | "scope": "source.php - variable.other.php",
3 |
4 | "completions":
5 | [
6 | "PARENT_THEME_NAME",
7 | "PARENT_THEME_VERSION",
8 | "PARENT_THEME_BRANCH",
9 | "PARENT_DB_VERSION",
10 | "PARENT_THEME_RELEASE_DATE",
11 | "PARENT_DIR",
12 | "CHILD_DIR",
13 | "GENESIS_IMAGES_DIR",
14 | "GENESIS_LIB_DIR",
15 | "GENESIS_ADMIN_DIR",
16 | "GENESIS_ADMIN_IMAGES_DIR",
17 | "GENESIS_JS_DIR",
18 | "GENESIS_CSS_DIR",
19 | "GENESIS_CLASSES_DIR",
20 | "GENESIS_FUNCTIONS_DIR",
21 | "GENESIS_SHORTCODES_DIR",
22 | "GENESIS_STRUCTURE_DIR",
23 | "GENESIS_LANGUAGES_DIR",
24 | "GENESIS_TOOLS_DIR",
25 | "GENESIS_WIDGETS_DIR",
26 | "PARENT_URL",
27 | "CHILD_URL",
28 | "GENESIS_IMAGES_URL",
29 | "GENESIS_LIB_URL",
30 | "GENESIS_ADMIN_URL",
31 | "GENESIS_ADMIN_IMAGES_URL",
32 | "GENESIS_JS_URL",
33 | "GENESIS_CLASSES_DIR",
34 | "GENESIS_CSS_URL",
35 | "GENESIS_FUNCTIONS_URL",
36 | "GENESIS_SHORTCODES_URL",
37 | "GENESIS_STRUCTURE_URL",
38 | "GENESIS_LANGUAGES_URL",
39 | "GENESIS_TOOLS_URL",
40 | "GENESIS_WIDGETS_URL",
41 | "GENESIS_SETTINGS_FIELD",
42 | "GENESIS_SEO_SETTINGS_FIELD",
43 | "GENESIS_LOAD_FRAMEWORK",
44 | "GENESIS_SEO_DISABLED"
45 | ]
46 | }
--------------------------------------------------------------------------------
/completions/genesis-hook-completions.sublime-completions:
--------------------------------------------------------------------------------
1 | {
2 | "scope": "source.php - variable.other.php",
3 |
4 | "completions":
5 | [
6 | "genesis_pre",
7 | "genesis_pre_framework",
8 | "genesis_init",
9 | "genesis_setup",
10 | "genesis_doctype",
11 | "genesis_title",
12 | "genesis_meta",
13 | "genesis_before",
14 | "genesis_after",
15 | "genesis_before_header",
16 | "genesis_header",
17 | "genesis_header_right",
18 | "genesis_after_header",
19 | "genesis_site_title",
20 | "genesis_site_description",
21 | "genesis_before_content_sidebar_wrap",
22 | "genesis_after_content_sidebar_wrap",
23 | "genesis_before_content",
24 | "genesis_after_content",
25 | "genesis_sidebar",
26 | "genesis_before_sidebar_widget_area",
27 | "genesis_after_sidebar_widget_area",
28 | "genesis_sidebar_alt",
29 | "genesis_before_sidebar_alt_widget_area",
30 | "genesis_after_sidebar_alt_widget_area",
31 | "genesis_before_footer",
32 | "genesis_footer",
33 | "genesis_after_footer",
34 | "genesis_before_loop",
35 | "genesis_loop",
36 | "genesis_after_loop",
37 | "genesis_after_endwhile",
38 | "genesis_loop_else",
39 | "genesis_before_post",
40 | "genesis_after_post",
41 | "genesis_before_post_title",
42 | "genesis_post_title",
43 | "genesis_after_post_title",
44 | "genesis_before_post_content",
45 | "genesis_post_content",
46 | "genesis_after_post_content",
47 | "genesis_before_comments",
48 | "genesis_comments",
49 | "genesis_after_comments",
50 | "genesis_list_comments",
51 | "genesis_before_pings",
52 | "genesis_pings",
53 | "genesis_after_pings",
54 | "genesis_list_pings",
55 | "genesis_before_comment",
56 | "genesis_after_comment",
57 | "genesis_before_comment_form",
58 | "genesis_comment_form",
59 | "genesis_after_comment_form"
60 | ]
61 | }
--------------------------------------------------------------------------------
/completions/genesis-filter-completions.sublime-completions:
--------------------------------------------------------------------------------
1 | {
2 | "scope": "source.php - variable.other.php",
3 |
4 | "completions":
5 | [
6 | "genesis_title_comments",
7 | "genesis_no_comments_text",
8 | "genesis_comments_closed_text",
9 | "genesis_title_pings",
10 | "genesis_no_pings_text",
11 | "genesis_comment_list_args",
12 | "genesis_ping_list_args",
13 | "comment_author_says_text",
14 | "genesis_comment_form_args",
15 | "genesis_footer_backtotop_text",
16 | "genesis_footer_creds_text",
17 | "genesis_footer_output",
18 | "genesis_footer_scripts",
19 | "genesis_seo_title",
20 | "genesis_seo_description",
21 | "genesis_pre_load_favicon",
22 | "genesis_header_scripts",
23 | "genesis_custom_loop_args",
24 | "genesis_post_title_text",
25 | "genesis_post_title_output",
26 | "genesis_noposts_text",
27 | "genesis_post_info",
28 | "genesis_post_meta",
29 | "genesis_author_box_gravatar_size",
30 | "genesis_author_box_title",
31 | "the_search_query",
32 | "genesis_search_text",
33 | "genesis_search_button_text",
34 | "genesis_search_form",
35 | "genesis_breadcrumb_args",
36 | "genesis_breadcrumb_homelink",
37 | "genesis_breadcrumb_bloglink",
38 | "genesis_gravatar_sizes",
39 | "genesis_get_image_default_args",
40 | "genesis_pre_get_image",
41 | "genesis_get_image",
42 | "genesis_nav_default_args",
43 | "genesis_nav_home_text",
44 | "genesis_nav_items",
45 | "genesis_nav",
46 | "genesis_pre_get_option_",
47 | "genesis_options",
48 | "genesis_get_option function",
49 | "genesis_footer_backtotop_shortcode",
50 | "genesis_footer_copyright_shortcode",
51 | "genesis_footer_childtheme_link_shortcode",
52 | "genesis_footer_genesis_link_shortcode",
53 | "genesis_footer_studiopress_link_shortcode",
54 | "genesis_footer_wordpress_link_shortcode",
55 | "genesis_footer_loginout_shortcode",
56 | "genesis_post_date_shortcode",
57 | "genesis_post_time_shortcode",
58 | "genesis_post_author_link_shortcode",
59 | "genesis_post_author_shortcode",
60 | "genesis_post_comments_shortcode",
61 | "genesis_post_tags_shortcode",
62 | "genesis_post_categories_shortcode",
63 | "genesis_post_edit_shortcode",
64 | "genesis_settings_field",
65 | "genesis_seo_settings_field",
66 | "genesis_formatting_allowedtags",
67 | "genesis_seo_settings_defaults",
68 | "genesis_theme_settings_defaults",
69 | "genesis_after_comment_form"
70 | ]
71 | }
--------------------------------------------------------------------------------