Skip to content

Commit

Permalink
Prefix the following functions per wp dir feedback: functions.php - c…
Browse files Browse the repository at this point in the history
…ustom_breadcrumb(), admin.php - disable_default_dashboard_widgets(), editor-styles.php - add_editor_styles(), enqueue-scripts.php - site_scripts()
  • Loading branch information
Amanda Regan authored and Amanda Regan committed Jul 15, 2016
1 parent e2fa223 commit dc157ca
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div id="inner-content" class="row">
<?php $breadcrumb_nav = Kirki::get_option( 'pftk_opts', 'breadcrumbs');
if ($breadcrumb_nav == true):
echo custom_breadcrumb();
echo pftk_custom_breadcrumb();
endif; ?>
<main id="main" class="large-8 medium-8 columns" role="main">

Expand Down
4 changes: 2 additions & 2 deletions assets/functions/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

/************* DASHBOARD WIDGETS *****************/
// Disable default dashboard widgets
function disable_default_dashboard_widgets() {
function pftk_disable_default_dashboard_widgets() {
// Remove_meta_box('dashboard_right_now', 'dashboard', 'core'); // Right Now Widget
remove_meta_box('dashboard_recent_comments', 'dashboard', 'core'); // Comments Widget
remove_meta_box('dashboard_incoming_links', 'dashboard', 'core'); // Incoming Links Widget
Expand Down Expand Up @@ -55,7 +55,7 @@ function pressforward_tk_theme_custom_dashboard_widgets() {
*/
}
// removing the dashboard widgets
add_action('admin_menu', 'disable_default_dashboard_widgets');
add_action('admin_menu', 'pftk_disable_default_dashboard_widgets');
// adding any custom widgets
add_action('wp_dashboard_setup', 'pressforward_tk_theme_custom_dashboard_widgets');

Expand Down
6 changes: 3 additions & 3 deletions assets/functions/editor-styles.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
// Adds your styles to the WordPress editor
add_action( 'init', 'add_editor_styles' );
function add_editor_styles() {
add_action( 'init', 'pftk_add_editor_styles' );
function pftk_add_editor_styles() {
add_editor_style( get_template_directory_uri() . '/assets/css/style.min.css' );
}
}
4 changes: 2 additions & 2 deletions assets/functions/enqueue-scripts.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
function site_scripts() {
function pftk_site_scripts() {
global $wp_styles; // Call global $wp_styles variable to add conditional wrapper around ie stylesheet the WordPress way

// Load What-Input files in footer
Expand All @@ -22,4 +22,4 @@ function site_scripts() {
wp_enqueue_script( 'comment-reply' );
}
}
add_action('wp_enqueue_scripts', 'site_scripts', 999);
add_action('wp_enqueue_scripts', 'pftk_site_scripts', 999);
2 changes: 1 addition & 1 deletion breadcrumb.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$breadcrumb_nav = Kirki::get_option( 'pftk_opts', 'breadcrumbs');
if ($breadcrumb_nav == true):
echo custom_breadcrumb();
echo pftk_custom_breadcrumb();
endif;
?>
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@



function custom_breadcrumb() {
function pftk_custom_breadcrumb() {
if(!is_home()) {
echo '<nav aria-label="You are here:" role="navigation">';
echo '<ul class="breadcrumbs">';
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div id="inner-content" class="row">
<?php $breadcrumb_nav = Kirki::get_option( 'pftk_opts', 'breadcrumbs');
if ($breadcrumb_nav == true):
echo custom_breadcrumb();
echo pftk_custom_breadcrumb();
endif; ?>
<main id="main" class="large-8 medium-8 columns" role="main">

Expand Down
2 changes: 1 addition & 1 deletion page.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div id="inner-content" class="row">
<?php $breadcrumb_nav = Kirki::get_option( 'pftk_opts', 'breadcrumbs');
if ($breadcrumb_nav == true):
echo custom_breadcrumb();
echo pftk_custom_breadcrumb();
endif; ?>

<main id="main" class="large-8 medium-8 columns" role="main">
Expand Down
2 changes: 1 addition & 1 deletion single.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div id="inner-content" class="row">
<?php $breadcrumb_nav = Kirki::get_option( 'pftk_opts', 'breadcrumbs');
if ($breadcrumb_nav == true):
echo custom_breadcrumb();
echo pftk_custom_breadcrumb();
endif; ?>

<main id="main" class="large-12 medium-12 columns" role="main">
Expand Down
2 changes: 1 addition & 1 deletion taxonomy-custom_cat.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div id="inner-content" class="row">
<?php $breadcrumb_nav = Kirki::get_option( 'pftk_opts', 'breadcrumbs');
if ($breadcrumb_nav == true):
echo custom_breadcrumb();
echo pftk_custom_breadcrumb();
endif; ?>
<main id="main" class="large-8 medium-8 columns first" role="main">

Expand Down
2 changes: 1 addition & 1 deletion template-full-width.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div id="inner-content" class="row">
<?php $breadcrumb_nav = Kirki::get_option( 'pftk_opts', 'breadcrumbs');
if ($breadcrumb_nav == true):
echo custom_breadcrumb();
echo pftk_custom_breadcrumb();
endif; ?>
<main id="main" class="large-12 medium-12 columns" role="main">

Expand Down
2 changes: 1 addition & 1 deletion template-postindex.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div id="inner-content" class="row">
<?php $breadcrumb_nav = Kirki::get_option( 'pftk_opts', 'breadcrumbs');
if ($breadcrumb_nav == true):
echo custom_breadcrumb();
echo pftk_custom_breadcrumb();
endif; ?>
<main id="main" class="large-12 medium-12 columns" role="main">

Expand Down

0 comments on commit dc157ca

Please sign in to comment.