From 3ca92d9d497f85b467c20d6abd948c72f0501d11 Mon Sep 17 00:00:00 2001 From: Zack Cote Date: Sat, 11 Jul 2015 08:54:34 -0400 Subject: [PATCH 1/9] Added .sublime-* files to .gitignore --- .gitignore | 1 + sanders.sublime-project | 8 + sanders.sublime-workspace | 319 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 328 insertions(+) create mode 100644 sanders.sublime-project create mode 100644 sanders.sublime-workspace diff --git a/.gitignore b/.gitignore index e2176d7..123fcdc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules bower_components assets/dist +*.sublime-* \ No newline at end of file diff --git a/sanders.sublime-project b/sanders.sublime-project new file mode 100644 index 0000000..24db303 --- /dev/null +++ b/sanders.sublime-project @@ -0,0 +1,8 @@ +{ + "folders": + [ + { + "path": "." + } + ] +} diff --git a/sanders.sublime-workspace b/sanders.sublime-workspace new file mode 100644 index 0000000..3c4ee2c --- /dev/null +++ b/sanders.sublime-workspace @@ -0,0 +1,319 @@ +{ + "auto_complete": + { + "selected_items": + [ + [ + "wp_rese", + "wp_reset_query" + ] + ] + }, + "buffers": + [ + { + "file": "/home/zack/vagrant-wordpress/www/theme-testing/htdocs/wp-content/themes/index.php", + "settings": + { + "buffer_size": 28, + "line_ending": "Unix" + } + } + ], + "build_system": "", + "build_system_choices": + [ + ], + "build_varint": "", + "command_palette": + { + "height": 368.0, + "last_filter": "packa", + "selected_items": + [ + [ + "packa", + "Package Control: Install Package" + ], + [ + "install", + "Package Control: Install Package" + ], + [ + "html", + "Set Syntax: HTML" + ] + ], + "width": 561.0 + }, + "console": + { + "height": 139.0, + "history": + [ + "import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)" + ] + }, + "distraction_free": + { + "menu_visible": true, + "show_minimap": false, + "show_open_files": false, + "show_tabs": false, + "side_bar_visible": false, + "status_bar_visible": false + }, + "expanded_folders": + [ + "/home/zack/vagrant-wordpress/www/theme-testing/htdocs/wp-content/themes/SandersTheme" + ], + "file_history": + [ + "/home/zack/.config/sublime-text-3/Packages/Terminal/Default (Linux).sublime-keymap", + "/home/zack/.config/sublime-text-3/Packages/User/Terminal.sublime-settings", + "/home/zack/.config/sublime-text-3/Packages/User/Preferences.sublime-settings", + "/home/zack/vagrant-wordpress/www/theme-testing/htdocs/wp-content/themes/SandersTheme/.gitignore", + "/usr/share/doc/autojump/README.Debian", + "/home/zack/.ssh/github_rsa.pub", + "/tmp/fz3temp-1/education-index.php", + "/home/zack/vagrant-local/www/default/dashboard/index.php", + "/home/zack/vagrant-local/www/default/dashboard-custom.php", + "/home/zack/.themes/Arc/gtk-3.0/gtk-contained.css", + "/tmp/fz3temp-2/education-index.php", + "/tmp/fz3temp-2/main.js", + "/home/zack/.xbindkeysrc", + "/tmp/fz3temp-2/content-browse.php", + "/tmp/fz3temp-2/browse.php", + "/tmp/fz3temp-2/content-gallery.php", + "/tmp/fz3temp-2/archive.php", + "/tmp/fz3temp-2/taxonomy-post_format.php", + "/usr/share/applications/defaults.list", + "/home/zack/Documents/WordPress/archive.php", + "/home/zack/.bashrc", + "/home/zack/.config/sublime-text-3/Packages/User/Default (Linux).sublime-keymap" + ], + "find": + { + "height": 30.0 + }, + "find_in_files": + { + "height": 0.0, + "where_history": + [ + ] + }, + "find_state": + { + "case_sensitive": false, + "find_history": + [ + "menu", + "MENU", + "cool_args", + "span", + "parent()", + "motion", + "get_field", + "get_Field", + "_text", + "gedit", + "alias" + ], + "highlight": true, + "in_selection": false, + "preserve_case": false, + "regex": false, + "replace_history": + [ + ], + "reverse": false, + "show_context": true, + "use_buffer2": true, + "whole_word": false, + "wrap": true + }, + "groups": + [ + { + "selected": 0, + "sheets": + [ + { + "buffer": 0, + "file": "/home/zack/vagrant-wordpress/www/theme-testing/htdocs/wp-content/themes/index.php", + "semi_transient": false, + "settings": + { + "buffer_size": 28, + "regions": + { + }, + "selection": + [ + [ + 28, + 28 + ] + ], + "settings": + { + "BracketHighlighterBusy": false, + "bh_regions": + [ + "bh_round", + "bh_round_center", + "bh_round_open", + "bh_round_close", + "bh_round_content", + "bh_default", + "bh_default_center", + "bh_default_open", + "bh_default_close", + "bh_default_content", + "bh_double_quote", + "bh_double_quote_center", + "bh_double_quote_open", + "bh_double_quote_close", + "bh_double_quote_content", + "bh_square", + "bh_square_center", + "bh_square_open", + "bh_square_close", + "bh_square_content", + "bh_c_define", + "bh_c_define_center", + "bh_c_define_open", + "bh_c_define_close", + "bh_c_define_content", + "bh_regex", + "bh_regex_center", + "bh_regex_open", + "bh_regex_close", + "bh_regex_content", + "bh_curly", + "bh_curly_center", + "bh_curly_open", + "bh_curly_close", + "bh_curly_content", + "bh_single_quote", + "bh_single_quote_center", + "bh_single_quote_open", + "bh_single_quote_close", + "bh_single_quote_content", + "bh_angle", + "bh_angle_center", + "bh_angle_open", + "bh_angle_close", + "bh_angle_content", + "bh_tag", + "bh_tag_center", + "bh_tag_open", + "bh_tag_close", + "bh_tag_content", + "bh_unmatched", + "bh_unmatched_center", + "bh_unmatched_open", + "bh_unmatched_close", + "bh_unmatched_content" + ], + "function_name_status_row": 2, + "syntax": "Packages/php-grammar/PHP.tmLanguage" + }, + "translation.x": 0.0, + "translation.y": 44.0, + "zoom_level": 1.0 + }, + "stack_index": 0, + "type": "text" + } + ] + } + ], + "incremental_find": + { + "height": 30.0 + }, + "input": + { + "height": 0.0 + }, + "layout": + { + "cells": + [ + [ + 0, + 0, + 1, + 1 + ] + ], + "cols": + [ + 0.0, + 1.0 + ], + "rows": + [ + 0.0, + 1.0 + ] + }, + "menu_visible": true, + "output.CSS Extended Completions": + { + "height": 0.0 + }, + "output.find_results": + { + "height": 0.0 + }, + "pinned_build_system": "", + "project": "sanders.sublime-project", + "replace": + { + "height": 56.0 + }, + "save_all_on_build": true, + "select_file": + { + "height": 0.0, + "last_filter": "", + "selected_items": + [ + ], + "width": 0.0 + }, + "select_project": + { + "height": 500.0, + "last_filter": "", + "selected_items": + [ + ], + "width": 380.0 + }, + "select_symbol": + { + "height": 0.0, + "last_filter": "", + "selected_items": + [ + ], + "width": 0.0 + }, + "selected_group": 0, + "settings": + { + }, + "show_minimap": true, + "show_open_files": true, + "show_tabs": true, + "side_bar_visible": true, + "side_bar_width": 232.0, + "status_bar_visible": true, + "template_settings": + { + } +} From c03333d29bbd6b959b598c80e52afbf4e0444e71 Mon Sep 17 00:00:00 2001 From: Zack Cote Date: Sat, 11 Jul 2015 09:27:29 -0400 Subject: [PATCH 2/9] Local JSON backup of custom fields (so everyone's on the same page :pencil:) --- assets/acf_local_json/index.php | 3 +++ lib/init.php | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 assets/acf_local_json/index.php diff --git a/assets/acf_local_json/index.php b/assets/acf_local_json/index.php new file mode 100644 index 0000000..613039e --- /dev/null +++ b/assets/acf_local_json/index.php @@ -0,0 +1,3 @@ + 'Theme Options' )); } + +/** + * ACF Local JSON + */ + +// save custom fields +function acf_json_save( $path ) { + $path = get_stylesheet_directory() . '/assets/acf_local_json'; + return $path; +} +add_filter('acf/settings/save_json', __NAMESPACE__ . '\\acf_json_save'); + +// load custom fields +function acf_json_load( $paths ) { + unset($paths[0]); + $paths[] = get_stylesheet_directory() . '/assets/acf_local_json'; + return $paths; +} +add_filter('acf/settings/load_json', __NAMESPACE__ . '\\acf_json_load'); \ No newline at end of file From 7cfaffb5793da9a0bf618e150af903bfdd27ed93 Mon Sep 17 00:00:00 2001 From: Zack Cote Date: Sat, 11 Jul 2015 09:37:01 -0400 Subject: [PATCH 3/9] spacing for build --- lib/init.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/init.php b/lib/init.php index dcf14f2..8deeeb7 100644 --- a/lib/init.php +++ b/lib/init.php @@ -53,16 +53,16 @@ function admin_menu_overrides() { */ // save custom fields -function acf_json_save( $path ) { +function acf_json_save($path) { $path = get_stylesheet_directory() . '/assets/acf_local_json'; return $path; } add_filter('acf/settings/save_json', __NAMESPACE__ . '\\acf_json_save'); // load custom fields -function acf_json_load( $paths ) { +function acf_json_load($paths) { unset($paths[0]); $paths[] = get_stylesheet_directory() . '/assets/acf_local_json'; return $paths; } -add_filter('acf/settings/load_json', __NAMESPACE__ . '\\acf_json_load'); \ No newline at end of file +add_filter('acf/settings/load_json', __NAMESPACE__ . '\\acf_json_load'); From 948e609b98a2087efc824aef07afa9615b7e3ed9 Mon Sep 17 00:00:00 2001 From: Zack Cote Date: Sat, 11 Jul 2015 09:44:19 -0400 Subject: [PATCH 4/9] whitespace ftw --- lib/init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/init.php b/lib/init.php index 8deeeb7..a0e432a 100644 --- a/lib/init.php +++ b/lib/init.php @@ -55,7 +55,7 @@ function admin_menu_overrides() { // save custom fields function acf_json_save($path) { $path = get_stylesheet_directory() . '/assets/acf_local_json'; - return $path; + return $path; } add_filter('acf/settings/save_json', __NAMESPACE__ . '\\acf_json_save'); @@ -63,6 +63,6 @@ function acf_json_save($path) { function acf_json_load($paths) { unset($paths[0]); $paths[] = get_stylesheet_directory() . '/assets/acf_local_json'; - return $paths; + return $paths; } add_filter('acf/settings/load_json', __NAMESPACE__ . '\\acf_json_load'); From db1e13177581cd5f8c7763c44377d62e97b27e63 Mon Sep 17 00:00:00 2001 From: Zack Cote Date: Sat, 11 Jul 2015 09:54:48 -0400 Subject: [PATCH 5/9] so aggressive --- lib/init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/init.php b/lib/init.php index a0e432a..e05b762 100644 --- a/lib/init.php +++ b/lib/init.php @@ -22,11 +22,11 @@ function widgets_init() { * Registers nav menus */ function nav_menus_init() { - register_nav_menus(array ( + register_nav_menus(array( 'header' => 'Site Navigation', 'footer_social' => 'Social Links', 'footer_organize' => 'Organize Links' - )); + )); } add_action('init', __NAMESPACE__ . '\\nav_menus_init'); From c4104a2cd7a6187c16457566e08ba7d29ed80c2b Mon Sep 17 00:00:00 2001 From: Zack Cote Date: Sat, 11 Jul 2015 09:58:09 -0400 Subject: [PATCH 6/9] local acf json --- lib/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/init.php b/lib/init.php index e05b762..8409691 100644 --- a/lib/init.php +++ b/lib/init.php @@ -26,7 +26,7 @@ function nav_menus_init() { 'header' => 'Site Navigation', 'footer_social' => 'Social Links', 'footer_organize' => 'Organize Links' - )); + )); } add_action('init', __NAMESPACE__ . '\\nav_menus_init'); From e5e8b7c4bcdd99e0d04f8dccb3f56fe3ac68c0f5 Mon Sep 17 00:00:00 2001 From: Zack Cote Date: Sat, 11 Jul 2015 10:08:06 -0400 Subject: [PATCH 7/9] duh. i'm officially a fucking idiot today. --- assets/acf_local_json/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/acf_local_json/index.php b/assets/acf_local_json/index.php index 613039e..7f11ef2 100644 --- a/assets/acf_local_json/index.php +++ b/assets/acf_local_json/index.php @@ -1,3 +1,3 @@ - Date: Tue, 14 Jul 2015 14:01:00 -0400 Subject: [PATCH 8/9] all clean --- sanders.sublime-project | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 sanders.sublime-project diff --git a/sanders.sublime-project b/sanders.sublime-project deleted file mode 100644 index 24db303..0000000 --- a/sanders.sublime-project +++ /dev/null @@ -1,8 +0,0 @@ -{ - "folders": - [ - { - "path": "." - } - ] -} From e3982eb025791177b38b776a20b8667cfa8b37bd Mon Sep 17 00:00:00 2001 From: Zack Cote Date: Tue, 14 Jul 2015 14:08:27 -0400 Subject: [PATCH 9/9] Delete sanders.sublime-workspace --- sanders.sublime-workspace | 319 -------------------------------------- 1 file changed, 319 deletions(-) delete mode 100644 sanders.sublime-workspace diff --git a/sanders.sublime-workspace b/sanders.sublime-workspace deleted file mode 100644 index 3c4ee2c..0000000 --- a/sanders.sublime-workspace +++ /dev/null @@ -1,319 +0,0 @@ -{ - "auto_complete": - { - "selected_items": - [ - [ - "wp_rese", - "wp_reset_query" - ] - ] - }, - "buffers": - [ - { - "file": "/home/zack/vagrant-wordpress/www/theme-testing/htdocs/wp-content/themes/index.php", - "settings": - { - "buffer_size": 28, - "line_ending": "Unix" - } - } - ], - "build_system": "", - "build_system_choices": - [ - ], - "build_varint": "", - "command_palette": - { - "height": 368.0, - "last_filter": "packa", - "selected_items": - [ - [ - "packa", - "Package Control: Install Package" - ], - [ - "install", - "Package Control: Install Package" - ], - [ - "html", - "Set Syntax: HTML" - ] - ], - "width": 561.0 - }, - "console": - { - "height": 139.0, - "history": - [ - "import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)" - ] - }, - "distraction_free": - { - "menu_visible": true, - "show_minimap": false, - "show_open_files": false, - "show_tabs": false, - "side_bar_visible": false, - "status_bar_visible": false - }, - "expanded_folders": - [ - "/home/zack/vagrant-wordpress/www/theme-testing/htdocs/wp-content/themes/SandersTheme" - ], - "file_history": - [ - "/home/zack/.config/sublime-text-3/Packages/Terminal/Default (Linux).sublime-keymap", - "/home/zack/.config/sublime-text-3/Packages/User/Terminal.sublime-settings", - "/home/zack/.config/sublime-text-3/Packages/User/Preferences.sublime-settings", - "/home/zack/vagrant-wordpress/www/theme-testing/htdocs/wp-content/themes/SandersTheme/.gitignore", - "/usr/share/doc/autojump/README.Debian", - "/home/zack/.ssh/github_rsa.pub", - "/tmp/fz3temp-1/education-index.php", - "/home/zack/vagrant-local/www/default/dashboard/index.php", - "/home/zack/vagrant-local/www/default/dashboard-custom.php", - "/home/zack/.themes/Arc/gtk-3.0/gtk-contained.css", - "/tmp/fz3temp-2/education-index.php", - "/tmp/fz3temp-2/main.js", - "/home/zack/.xbindkeysrc", - "/tmp/fz3temp-2/content-browse.php", - "/tmp/fz3temp-2/browse.php", - "/tmp/fz3temp-2/content-gallery.php", - "/tmp/fz3temp-2/archive.php", - "/tmp/fz3temp-2/taxonomy-post_format.php", - "/usr/share/applications/defaults.list", - "/home/zack/Documents/WordPress/archive.php", - "/home/zack/.bashrc", - "/home/zack/.config/sublime-text-3/Packages/User/Default (Linux).sublime-keymap" - ], - "find": - { - "height": 30.0 - }, - "find_in_files": - { - "height": 0.0, - "where_history": - [ - ] - }, - "find_state": - { - "case_sensitive": false, - "find_history": - [ - "menu", - "MENU", - "cool_args", - "span", - "parent()", - "motion", - "get_field", - "get_Field", - "_text", - "gedit", - "alias" - ], - "highlight": true, - "in_selection": false, - "preserve_case": false, - "regex": false, - "replace_history": - [ - ], - "reverse": false, - "show_context": true, - "use_buffer2": true, - "whole_word": false, - "wrap": true - }, - "groups": - [ - { - "selected": 0, - "sheets": - [ - { - "buffer": 0, - "file": "/home/zack/vagrant-wordpress/www/theme-testing/htdocs/wp-content/themes/index.php", - "semi_transient": false, - "settings": - { - "buffer_size": 28, - "regions": - { - }, - "selection": - [ - [ - 28, - 28 - ] - ], - "settings": - { - "BracketHighlighterBusy": false, - "bh_regions": - [ - "bh_round", - "bh_round_center", - "bh_round_open", - "bh_round_close", - "bh_round_content", - "bh_default", - "bh_default_center", - "bh_default_open", - "bh_default_close", - "bh_default_content", - "bh_double_quote", - "bh_double_quote_center", - "bh_double_quote_open", - "bh_double_quote_close", - "bh_double_quote_content", - "bh_square", - "bh_square_center", - "bh_square_open", - "bh_square_close", - "bh_square_content", - "bh_c_define", - "bh_c_define_center", - "bh_c_define_open", - "bh_c_define_close", - "bh_c_define_content", - "bh_regex", - "bh_regex_center", - "bh_regex_open", - "bh_regex_close", - "bh_regex_content", - "bh_curly", - "bh_curly_center", - "bh_curly_open", - "bh_curly_close", - "bh_curly_content", - "bh_single_quote", - "bh_single_quote_center", - "bh_single_quote_open", - "bh_single_quote_close", - "bh_single_quote_content", - "bh_angle", - "bh_angle_center", - "bh_angle_open", - "bh_angle_close", - "bh_angle_content", - "bh_tag", - "bh_tag_center", - "bh_tag_open", - "bh_tag_close", - "bh_tag_content", - "bh_unmatched", - "bh_unmatched_center", - "bh_unmatched_open", - "bh_unmatched_close", - "bh_unmatched_content" - ], - "function_name_status_row": 2, - "syntax": "Packages/php-grammar/PHP.tmLanguage" - }, - "translation.x": 0.0, - "translation.y": 44.0, - "zoom_level": 1.0 - }, - "stack_index": 0, - "type": "text" - } - ] - } - ], - "incremental_find": - { - "height": 30.0 - }, - "input": - { - "height": 0.0 - }, - "layout": - { - "cells": - [ - [ - 0, - 0, - 1, - 1 - ] - ], - "cols": - [ - 0.0, - 1.0 - ], - "rows": - [ - 0.0, - 1.0 - ] - }, - "menu_visible": true, - "output.CSS Extended Completions": - { - "height": 0.0 - }, - "output.find_results": - { - "height": 0.0 - }, - "pinned_build_system": "", - "project": "sanders.sublime-project", - "replace": - { - "height": 56.0 - }, - "save_all_on_build": true, - "select_file": - { - "height": 0.0, - "last_filter": "", - "selected_items": - [ - ], - "width": 0.0 - }, - "select_project": - { - "height": 500.0, - "last_filter": "", - "selected_items": - [ - ], - "width": 380.0 - }, - "select_symbol": - { - "height": 0.0, - "last_filter": "", - "selected_items": - [ - ], - "width": 0.0 - }, - "selected_group": 0, - "settings": - { - }, - "show_minimap": true, - "show_open_files": true, - "show_tabs": true, - "side_bar_visible": true, - "side_bar_width": 232.0, - "status_bar_visible": true, - "template_settings": - { - } -}