Completed
Push — master ( 607c14...fc21e9 )
by Amit
04:14 queued 01:49
created
inc/menu.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -10,17 +10,17 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
inc/menu-walkers.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -80,14 +80,14 @@
 block discarded – undo
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]);
Please login to merge, or discard this patch.
inc/admin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
comments.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@
 block discarded – undo
56 56
                     <h2 class="screen-reader-text"><?php esc_html_e('Comment navigation', 'podium');?></h2>
57 57
                     <div class="nav-links">
58 58
                         <div class="nav-previous"><?php previous_comments_link(
59
-                                                          esc_html__('Older Comments', 'podium')
60
-                                                      );?></div>
59
+                                                            esc_html__('Older Comments', 'podium')
60
+                                                        );?></div>
61 61
                             <div
62 62
                             class="nav-next"><?php next_comments_link(esc_html__('Newer Comments', 'podium'));?></div>
63 63
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -53,13 +53,13 @@  discard block
 block discarded – undo
53 53
                 if (get_comment_pages_count() > 1
54 54
                 && get_option('page_comments')) { // Are there comments to navigate through? ?>
55 55
                 <nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
56
-                    <h2 class="screen-reader-text"><?php esc_html_e('Comment navigation', 'podium');?></h2>
56
+                    <h2 class="screen-reader-text"><?php esc_html_e('Comment navigation', 'podium'); ?></h2>
57 57
                     <div class="nav-links">
58 58
                         <div class="nav-previous"><?php previous_comments_link(
59 59
                                                           esc_html__('Older Comments', 'podium')
60
-                                                      );?></div>
60
+                                                      ); ?></div>
61 61
                             <div
62
-                            class="nav-next"><?php next_comments_link(esc_html__('Newer Comments', 'podium'));?></div>
62
+                            class="nav-next"><?php next_comments_link(esc_html__('Newer Comments', 'podium')); ?></div>
63 63
 
64 64
                         </div><!-- .nav-links -->
65 65
                     </nav><!-- #comment-nav-above -->
@@ -78,10 +78,10 @@  discard block
 block discarded – undo
78 78
 
79 79
     <?php if (get_comment_pages_count() > 1 && get_option('page_comments')) {?>
80 80
         <nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
81
-            <h2 class="screen-reader-text"><?php esc_html_e('Comment navigation', 'podium');?></h2>
81
+            <h2 class="screen-reader-text"><?php esc_html_e('Comment navigation', 'podium'); ?></h2>
82 82
             <div class="nav-links">
83
-                <div class="nav-previous"><?php previous_comments_link(esc_html__('Older Comments', 'podium'));?></div>
84
-                <div class="nav-next"><?php next_comments_link(esc_html__('Newer Comments', 'podium'));?></div>
83
+                <div class="nav-previous"><?php previous_comments_link(esc_html__('Older Comments', 'podium')); ?></div>
84
+                <div class="nav-next"><?php next_comments_link(esc_html__('Newer Comments', 'podium')); ?></div>
85 85
             </div><!-- .nav-links -->
86 86
         </nav><!-- #comment-nav-below -->
87 87
     <?php }?>
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
         && '0' != get_comments_number()
92 92
         && post_type_supports(get_post_type(), 'comments')) {
93 93
     ?>
94
-    <p class="no-comments"><?php esc_html_e('Comments are closed.', 'podium');?></p>
94
+    <p class="no-comments"><?php esc_html_e('Comments are closed.', 'podium'); ?></p>
95 95
 <?php }?>
96
-<?php comment_form();?>
96
+<?php comment_form(); ?>
97 97
 
98 98
 </div><!-- #comments -->
Please login to merge, or discard this patch.
functions.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -9,22 +9,22 @@
 block discarded – undo
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
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 28
     '/inc/editor-caps.php'       // Configure editor role capabilities
29 29
 
30 30
     // '/inc/disable-feeds.php'  //   Remove fedds content and links
Please login to merge, or discard this patch.