@@ -10,17 +10,17 @@ discard block |
||
| 10 | 10 | function podium_top_nav() |
| 11 | 11 | { |
| 12 | 12 | wp_nav_menu([ |
| 13 | - 'container' => false, // Remove nav container |
|
| 14 | - 'container_class' => '', // Class of container |
|
| 13 | + 'container' => false, // Remove nav container |
|
| 14 | + 'container_class' => '', // Class of container |
|
| 15 | 15 | 'menu' => 'The Top Menu', 'podium', // Menu name |
| 16 | - 'menu_class' => 'dropdown menu', // Adding custom nav class |
|
| 17 | - 'theme_location' => 'main-nav', // Where it's located in the theme |
|
| 18 | - 'before' => '', // Before each link <a> |
|
| 19 | - 'after' => '', // After each link </a> |
|
| 20 | - 'link_before' => '', // Before each link text |
|
| 21 | - 'link_after' => '', // After each link text |
|
| 22 | - 'depth' => 3, // Limit the depth of the nav |
|
| 23 | - 'fallback_cb' => false, // Fallback function (see below) |
|
| 16 | + 'menu_class' => 'dropdown menu', // Adding custom nav class |
|
| 17 | + 'theme_location' => 'main-nav', // Where it's located in the theme |
|
| 18 | + 'before' => '', // Before each link <a> |
|
| 19 | + 'after' => '', // After each link </a> |
|
| 20 | + 'link_before' => '', // Before each link text |
|
| 21 | + 'link_after' => '', // After each link text |
|
| 22 | + 'depth' => 3, // Limit the depth of the nav |
|
| 23 | + 'fallback_cb' => false, // Fallback function (see below) |
|
| 24 | 24 | 'walker' => new Top_Bar_Walker() |
| 25 | 25 | ]); |
| 26 | 26 | } |
@@ -30,17 +30,17 @@ discard block |
||
| 30 | 30 | function podium_off_canvas() |
| 31 | 31 | { |
| 32 | 32 | wp_nav_menu([ |
| 33 | - 'container' => false, // Remove nav container |
|
| 34 | - 'container_class' => '', // Class of container |
|
| 35 | - 'menu' => '', // Menu name |
|
| 33 | + 'container' => false, // Remove nav container |
|
| 34 | + 'container_class' => '', // Class of container |
|
| 35 | + 'menu' => '', // Menu name |
|
| 36 | 36 | 'menu_class' => 'off-canvas-list', // Adding custom nav class |
| 37 | - 'theme_location' => 'main-nav', // Where it's located in the theme |
|
| 38 | - 'before' => '', // Before each link <a> |
|
| 39 | - 'after' => '', // After each link </a> |
|
| 40 | - 'link_before' => '', // Before each link text |
|
| 41 | - 'link_after' => '', // After each link text |
|
| 42 | - 'depth' => 2, // Limit the depth of the nav |
|
| 43 | - 'fallback_cb' => false, // Fallback function (see below) |
|
| 37 | + 'theme_location' => 'main-nav', // Where it's located in the theme |
|
| 38 | + 'before' => '', // Before each link <a> |
|
| 39 | + 'after' => '', // After each link </a> |
|
| 40 | + 'link_before' => '', // Before each link text |
|
| 41 | + 'link_after' => '', // After each link text |
|
| 42 | + 'depth' => 2, // Limit the depth of the nav |
|
| 43 | + 'fallback_cb' => false, // Fallback function (see below) |
|
| 44 | 44 | 'walker' => new Offcanvas_Walker() |
| 45 | 45 | ]); |
| 46 | 46 | } |
@@ -49,16 +49,16 @@ discard block |
||
| 49 | 49 | function podium_footer_links() |
| 50 | 50 | { |
| 51 | 51 | wp_nav_menu([ |
| 52 | - 'container' => '', // Remove nav container |
|
| 53 | - 'container_class' => 'footer-links clearfix', // Class of container (should you choose to use it) |
|
| 54 | - 'menu' => __('Footer Links', 'podium'), // Nav name |
|
| 55 | - 'menu_class' => 'sub-nav', // Adding custom nav class |
|
| 56 | - 'theme_location' => 'footer-links', // Where it's located in the theme |
|
| 57 | - 'before' => '', // Before the menu |
|
| 58 | - 'after' => '', // After the menu |
|
| 59 | - 'link_before' => '', // Before each link |
|
| 60 | - 'link_after' => '', // After each link |
|
| 61 | - 'depth' => 0, // Limit the depth of the nav |
|
| 52 | + 'container' => '', // Remove nav container |
|
| 53 | + 'container_class' => 'footer-links clearfix', // Class of container (should you choose to use it) |
|
| 54 | + 'menu' => __('Footer Links', 'podium'), // Nav name |
|
| 55 | + 'menu_class' => 'sub-nav', // Adding custom nav class |
|
| 56 | + 'theme_location' => 'footer-links', // Where it's located in the theme |
|
| 57 | + 'before' => '', // Before the menu |
|
| 58 | + 'after' => '', // After the menu |
|
| 59 | + 'link_before' => '', // Before each link |
|
| 60 | + 'link_after' => '', // After each link |
|
| 61 | + 'depth' => 0, // Limit the depth of the nav |
|
| 62 | 62 | 'fallback_cb' => 'podium_footer_links_fallback' // Fallback function |
| 63 | 63 | ]); |
| 64 | 64 | } |
@@ -80,14 +80,14 @@ |
||
| 80 | 80 | */ |
| 81 | 81 | final class Offcanvas_Walker extends Walker_Nav_Menu |
| 82 | 82 | { |
| 83 | - /** |
|
| 84 | - * @param $element |
|
| 85 | - * @param $children_elements |
|
| 86 | - * @param $max_depth |
|
| 87 | - * @param $depth |
|
| 88 | - * @param $args |
|
| 89 | - * @param $output |
|
| 90 | - */ |
|
| 83 | + /** |
|
| 84 | + * @param $element |
|
| 85 | + * @param $children_elements |
|
| 86 | + * @param $max_depth |
|
| 87 | + * @param $depth |
|
| 88 | + * @param $args |
|
| 89 | + * @param $output |
|
| 90 | + */ |
|
| 91 | 91 | public function display_element($element, &$children_elements, $max_depth, $depth = 0, $args, &$output) |
| 92 | 92 | { |
| 93 | 93 | $element->has_children = !empty($children_elements[$element->ID]); |
@@ -7,10 +7,10 @@ |
||
| 7 | 7 | { |
| 8 | 8 | |
| 9 | 9 | remove_meta_box('dashboard_recent_comments', 'dashboard', 'core'); // Comments Widget |
| 10 | - remove_meta_box('dashboard_incoming_links', 'dashboard', 'core'); // Incoming Links Widget |
|
| 11 | - remove_meta_box('dashboard_plugins', 'dashboard', 'core'); // Plugins Widget |
|
| 12 | - remove_meta_box('dashboard_quick_press', 'dashboard', 'core'); // Quick Press Widget |
|
| 13 | - remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core'); // Recent Drafts Widget |
|
| 10 | + remove_meta_box('dashboard_incoming_links', 'dashboard', 'core'); // Incoming Links Widget |
|
| 11 | + remove_meta_box('dashboard_plugins', 'dashboard', 'core'); // Plugins Widget |
|
| 12 | + remove_meta_box('dashboard_quick_press', 'dashboard', 'core'); // Quick Press Widget |
|
| 13 | + remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core'); // Recent Drafts Widget |
|
| 14 | 14 | remove_meta_box('dashboard_primary', 'dashboard', 'core'); |
| 15 | 15 | remove_meta_box('dashboard_secondary', 'dashboard', 'core'); |
| 16 | 16 | remove_meta_box('yoast_db_widget', 'dashboard', 'normal'); // Yoast's SEO Plugin Widget |
@@ -54,4 +54,4 @@ |
||
| 54 | 54 | ?> |
| 55 | 55 | </div><!-- #content --> |
| 56 | 56 | </div><!-- .grid-container --> |
| 57 | -<?php get_footer();?> |
|
| 57 | +<?php get_footer(); ?> |
|
@@ -71,4 +71,4 @@ |
||
| 71 | 71 | </div><!-- #content --> |
| 72 | 72 | </div><!-- .grid-container --> |
| 73 | 73 | |
| 74 | -<?php get_footer();?> |
|
| 74 | +<?php get_footer(); ?> |
|
@@ -54,4 +54,4 @@ |
||
| 54 | 54 | ?> |
| 55 | 55 | </div><!-- #content --> |
| 56 | 56 | </div><!-- .grid-container --> |
| 57 | -<?php get_footer();?> |
|
| 57 | +<?php get_footer(); ?> |
|
@@ -9,23 +9,23 @@ |
||
| 9 | 9 | // require array list |
| 10 | 10 | $reqire_files = [ |
| 11 | 11 | '/inc/environment.class.php', // Set Eniroment. |
| 12 | - '/inc/enqueue-scripts.php', // Enqueue scripts and styles. |
|
| 13 | - '/inc/cleanup.php', // cleanup & setup theme. |
|
| 14 | - '/inc/widgets.php', // Implement Custom widgets. |
|
| 15 | - '/inc/template-tags.php', // Custom template tags for this theme. |
|
| 16 | - '/inc/extras.php', // Custom functions that act independently of the theme templates. |
|
| 17 | - '/inc/customizer.php', // Customizer additions. |
|
| 18 | - '/inc/menu-walkers.php', // TODO -> make comment describing the functionality of the page |
|
| 19 | - '/inc/menu.php', // TODO -> make comment describing the functionality of the page |
|
| 20 | - '/inc/admin.php', // Code for better handaling the admin area |
|
| 21 | - '/inc/custom-fields.php', // Inintialize custom fields (if you prefer to do this without ACF) |
|
| 12 | + '/inc/enqueue-scripts.php', // Enqueue scripts and styles. |
|
| 13 | + '/inc/cleanup.php', // cleanup & setup theme. |
|
| 14 | + '/inc/widgets.php', // Implement Custom widgets. |
|
| 15 | + '/inc/template-tags.php', // Custom template tags for this theme. |
|
| 16 | + '/inc/extras.php', // Custom functions that act independently of the theme templates. |
|
| 17 | + '/inc/customizer.php', // Customizer additions. |
|
| 18 | + '/inc/menu-walkers.php', // TODO -> make comment describing the functionality of the page |
|
| 19 | + '/inc/menu.php', // TODO -> make comment describing the functionality of the page |
|
| 20 | + '/inc/admin.php', // Code for better handaling the admin area |
|
| 21 | + '/inc/custom-fields.php', // Inintialize custom fields (if you prefer to do this without ACF) |
|
| 22 | 22 | '/inc/custom-post-type.php', // Inintialize unique CPT's and taxonomies for this project |
| 23 | - '/inc/pagination.php', // More flexible pagination function |
|
| 24 | - '/inc/clean-filenames.php', // Custom functions to clean filenames from Unicode to ASCII |
|
| 25 | - '/inc/config.php', // get the settings for the wordpress theme. |
|
| 26 | - '/inc/media.php', // Media functions. |
|
| 27 | - '/inc/vendor/autoload.php', // Load Composer packages |
|
| 28 | - '/inc/tgm.php', // Plugin installation and activation for Podium based themes. |
|
| 23 | + '/inc/pagination.php', // More flexible pagination function |
|
| 24 | + '/inc/clean-filenames.php', // Custom functions to clean filenames from Unicode to ASCII |
|
| 25 | + '/inc/config.php', // get the settings for the wordpress theme. |
|
| 26 | + '/inc/media.php', // Media functions. |
|
| 27 | + '/inc/vendor/autoload.php', // Load Composer packages |
|
| 28 | + '/inc/tgm.php', // Plugin installation and activation for Podium based themes. |
|
| 29 | 29 | '/inc/editor-caps.php' // Configure editor role capabilities |
| 30 | 30 | |
| 31 | 31 | // '/inc/disable-feeds.php' // Remove fedds content and links |