From 2f1a41babdb383c5476e16fe62fdc11c0ed9b92f Mon Sep 17 00:00:00 2001 From: CK Hicks Date: Wed, 14 Sep 2016 16:01:59 -0500 Subject: [PATCH 1/2] cleanup: removes timthumb, updates deprecated/incorrect functions --- functions/wordpress/acf-options.php | 6 +++ functions/wordpress/custom-crops.php | 9 +++++ functions/wordpress/custom-menus.php | 17 ++++++++ functions/wordpress/custom-post-types.php | 48 +++++++++++++++++++++++ functions/wordpress/custom-sidebars.php | 16 ++++++++ functions/wordpress/custom-taxonomies.php | 33 ++++++++++++++++ 6 files changed, 129 insertions(+) create mode 100644 functions/wordpress/acf-options.php create mode 100644 functions/wordpress/custom-crops.php create mode 100644 functions/wordpress/custom-menus.php create mode 100644 functions/wordpress/custom-post-types.php create mode 100644 functions/wordpress/custom-sidebars.php create mode 100644 functions/wordpress/custom-taxonomies.php diff --git a/functions/wordpress/acf-options.php b/functions/wordpress/acf-options.php new file mode 100644 index 0000000..5b5700b --- /dev/null +++ b/functions/wordpress/acf-options.php @@ -0,0 +1,6 @@ + 'header-menu', 'container' => 'nav', 'container_class' => 'nav-header' ) ); + +// function register_site_menus() { +// register_nav_menus( +// array( +// 'header-menu' => __( 'Header' ), +// 'footer-menu' => __( 'Footer' ) +// ) +// ); +// } +// add_action( 'init', 'register_site_menus' ); diff --git a/functions/wordpress/custom-post-types.php b/functions/wordpress/custom-post-types.php new file mode 100644 index 0000000..f02eab5 --- /dev/null +++ b/functions/wordpress/custom-post-types.php @@ -0,0 +1,48 @@ + _x('Movies', 'post type general name'), + 'singular_name' => _x('Movie', 'post type singular name'), + 'add_new' => _x('Add New', 'movie'), + 'add_new_item' => __('Add New Movie'), + 'edit_item' => __('Edit Movie'), + 'new_item' => __('New Movie'), + 'view_item' => __('View Movie'), + 'search_items' => __('Search Movies'), + 'not_found' => __('No Movies found'), + 'not_found_in_trash' => __('No Movies found in Trash'), + 'parent_item_colon' => '', + 'menu_name' => 'Movies' + ); + $args = array( + 'labels' => $labels, + 'public' => true, + 'publicly_queryable' => true, + 'show_ui' => true, + 'show_in_menu' => true, + 'show_in_nav_menus' => false, + 'query_var' => true, + 'rewrite' => array('slug' => 'movies'), + 'capability_type' => 'post', + 'has_archive' => true, + 'hierarchical' => false, + 'menu_position' => 29, + 'menu_icon' => 'dashicons-groups', + 'supports' => array('title', 'page-attributes') + ); + register_post_type('portfolio', $args); + + */ + +} +add_action( 'init', 'register_custom_post_types' ); diff --git a/functions/wordpress/custom-sidebars.php b/functions/wordpress/custom-sidebars.php new file mode 100644 index 0000000..1987cb9 --- /dev/null +++ b/functions/wordpress/custom-sidebars.php @@ -0,0 +1,16 @@ + 'Updates', +// 'id' => 'sidebar-updates', +// 'description' => '', +// 'before_widget' => '
', +// 'after_widget' => '
', +// 'before_title' => '

', +// 'after_title' => '

' )); diff --git a/functions/wordpress/custom-taxonomies.php b/functions/wordpress/custom-taxonomies.php new file mode 100644 index 0000000..ca741f8 --- /dev/null +++ b/functions/wordpress/custom-taxonomies.php @@ -0,0 +1,33 @@ + true, + 'show_ui' => true, + 'public' => true, + 'label' => __('Market'), + 'show_in_nav_menus' => false, + 'labels' => array( + 'add_new_item' => 'Add New Market' + ), + 'query_var' => true, + ) + ); + + */ + +} +add_action( 'init', 'register_custom_taxonomies' ); \ No newline at end of file From c1d69d8926bbde13817a63e2aa25bc772c0155d2 Mon Sep 17 00:00:00 2001 From: CK Hicks Date: Wed, 14 Sep 2016 16:02:56 -0500 Subject: [PATCH 2/2] more fixes --- footer.php | 4 +- functions.php | 6 +- functions/core/custom-crops.php | 9 - functions/core/custom-menus.php | 17 - functions/core/custom-post-types.php | 50 - functions/core/custom-sidebars.php | 16 - functions/core/custom-taxonomies.php | 35 - functions/timthumb/timthumb-config.php | 2 - functions/timthumb/timthumb.php | 1251 ----------------------- functions/wordpress/enqueue-scripts.php | 25 +- functions/wordpress/utility.php | 43 +- header.php | 11 +- page.php | 10 +- singular.php | 1 - style.css | 10 + 15 files changed, 36 insertions(+), 1454 deletions(-) delete mode 100644 functions/core/custom-crops.php delete mode 100644 functions/core/custom-menus.php delete mode 100644 functions/core/custom-post-types.php delete mode 100644 functions/core/custom-sidebars.php delete mode 100644 functions/core/custom-taxonomies.php delete mode 100644 functions/timthumb/timthumb-config.php delete mode 100644 functions/timthumb/timthumb.php diff --git a/footer.php b/footer.php index 7df470f..5aeffad 100644 --- a/footer.php +++ b/footer.php @@ -5,8 +5,8 @@
-> +> \ No newline at end of file diff --git a/page.php b/page.php index 27bab20..104eacf 100644 --- a/page.php +++ b/page.php @@ -1,10 +1,2 @@ - - + \ No newline at end of file diff --git a/singular.php b/singular.php index 3946eb9..104eacf 100644 --- a/singular.php +++ b/singular.php @@ -1,3 +1,2 @@ - \ No newline at end of file diff --git a/style.css b/style.css index a2a8edd..6e33dee 100644 --- a/style.css +++ b/style.css @@ -1,3 +1,13 @@ +/*! + * Theme Name: Your Theme Name Here + * Theme URI: http://www.yourdomainhere.com + * Author: 40Digits + * Author URI: http://www.40digits.com + * Description: With love and tacos from 40Digits + * Version: 1.0 + * Text Domain: 40d-wp-theme + */ + html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video { margin: 0; padding: 0;