Skip to content

Commit

Permalink
functions.php code reformatting
Browse files Browse the repository at this point in the history
Just a little tidying for consistency, nothing too exciting... moving on!
  • Loading branch information
Jonnyauk committed Sep 11, 2014
1 parent a22b22a commit f2cb3d7
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions functions.php
Expand Up @@ -56,8 +56,10 @@
// Start your engine
load_template(get_template_directory() . '/wf-includes/wf-engine.php');


// 1 //////////// Add actions to hooks and create Wonderflux


// IMPORTANT - Use remove_action in your child theme to control any of this!

//// 1.1 // Early setup (before init)
Expand Down Expand Up @@ -96,7 +98,7 @@
//// 1.5 // Wonderflux core functionality

add_action('init', 'wfx_config_language');
add_action( 'wp_enqueue_scripts', 'wfx_core_comment_js', 2 );
add_action('wp_enqueue_scripts', 'wfx_core_comment_js', 2);
add_action('get_header', 'wfx_display_head_open', 1);
add_action('get_header', 'wfx_display_body_tag', 1);
add_action('get_header', 'wfx_layout_build', 1); // IMPORTANT - Inserts layout divs
Expand All @@ -121,6 +123,7 @@

//// 2 //////////// HELPER FUNCTIONS


/**
* @since 1.1
* @updated 1.1
Expand Down Expand Up @@ -205,7 +208,6 @@

} endif;


/**
* @since 0.93
* @updated 0.93
Expand All @@ -214,7 +216,6 @@
*/
if ( !function_exists( 'wfx__Y' ) ) : function wfx__Y() { global $wfx_helper; return $wfx_helper->__Y(); } endif;


/**
* @since 0.93
* @updated 0.93
Expand All @@ -223,31 +224,27 @@
*/
if ( !function_exists( 'wfx__N' ) ) : function wfx__N() { global $wfx_helper; return $wfx_helper->__N(); } endif;


/**
* @since 1.1
* @updated 1.1
* Displays input in a nicer way for debugging
*/
if ( !function_exists( 'wfx_debug' ) ) : function wfx_debug($input='',$admin_only=true,$role=false,$id=false) { global $wfx_helper; $wfx_helper->debug($input,$admin_only,$role,$id); } endif;


/**
* @since 1.1
* @updated 1.1
* Adds message to error reporting if WP_DEBUG is true.
*/
if ( !function_exists( 'wfx_debug_report' ) ) : function wfx_debug_report($function='', $message='', $version='') { global $wfx_helper; $wfx_helper->debug_report($function, $message, $version); } endif;


/**
* @since 2.0
* @updated 2.0
* Reveals the location of all relevant Wonderflux display hooks within your theme.
*/
if ( !function_exists( 'wfx_show_hooks' ) ) : function wfx_show_hooks() { global $wfx_helper; $wfx_helper->show_hooks(); } endif;


/**
* @since 1.1
* @updated 1.1
Expand All @@ -257,7 +254,6 @@
global $wfx_data_manage; return $wfx_data_manage->allowed_tags($args);
} endif;


/**
* @since 1.1
* @updated 1.1
Expand All @@ -278,16 +274,13 @@
*/
if ( !function_exists( 'wfx_core_feeds' ) ) : function wfx_core_feeds() { global $wfx_theme_support; $wfx_theme_support->core_feeds(); } endif;


/**
* @since 1.1
* @updated 1.1
* Core WordPress threaded comment reply Javascript
*/
if ( !function_exists( 'wfx_core_comment_js' ) ) : function wfx_core_comment_js() { global $wfx_theme; $wfx_theme->core_comment_js(); } endif;



// Only need functions if have child theme overrides
if (WF_THEME_FRAMEWORK_REPLACE == false) {
/**
Expand Down Expand Up @@ -337,7 +330,6 @@
*/
if ( !function_exists( 'wfx_display_head_open' ) ) : function wfx_display_head_open() { global $wfx; $wfx->head_open(); } endif;


/**
* @since 0.931
* @updated 0.931
Expand Down Expand Up @@ -579,7 +571,6 @@

} endif;


/**
* @since 1.0RC3
* @updated 1.1
Expand All @@ -597,7 +588,6 @@
}
} endif;


/**
* @since 1.1
* @updated 1.1
Expand All @@ -616,7 +606,6 @@

} endif;


/**
* @since 1.1
* @updated 1.1
Expand Down Expand Up @@ -647,31 +636,27 @@
*/
if ( !function_exists( 'wfx_social_google_plus_1' ) ) : function wfx_social_google_plus_1($args='') { global $wfx; $wfx->g_plus_1($args); } endif;


/**
* @since 0.931
* @updated 0.931
* Displays Facebook Like button
*/
if ( !function_exists( 'wfx_social_facebook_like' ) ) : function wfx_social_facebook_like($args='') { global $wfx; $wfx->fb_like($args); } endif;


/**
* @since 0.931
* @updated 0.931
* Displays Twitter share button
*/
if ( !function_exists( 'wfx_social_twitter_share' ) ) : function wfx_social_twitter_share($args='') { global $wfx; $wfx->twit_share($args); } endif;


/**
* @since 1.0rc2
* @updated 1.0rc2
* Displays LinkedIn share button
*/
if ( !function_exists( 'wfx_social_linkedin_share' ) ) : function wfx_social_linkedin_share($args='') { global $wfx; $wfx->linkedin_share($args); } endif;


/**
* @since 0.931
* @updated 0.931
Expand All @@ -690,15 +675,13 @@
*/
if ( !function_exists( 'wfx_widgets' ) ) : function wfx_widgets($args) { global $wfx_theme; $wfx_theme->widgets($args); } endif;


/**
* @since 0.92
* @updated 0.92
* IMPORTANT Sets up background divs
*/
if ( !function_exists( 'wfx_background_divs' ) ) : function wfx_background_divs($args) { global $wfx_theme; $wfx_theme->background_divs($args); } endif;


/**
* @since 0.913
* @updated 0.913
Expand All @@ -717,7 +700,6 @@
*/
if ( !function_exists( 'wfx_jquery' ) ) : function wfx_jquery($args='') { global $wfx_theme; $wfx_theme->jquery($args); } endif;


/**
* @since 0.92
* @updated 0.931
Expand All @@ -736,15 +718,13 @@
*/
if ( !function_exists( 'wfx_admin_menus' ) ) : function wfx_admin_menus() { global $wfx_admin; $wfx_admin->admin_menus(); } endif;


/**
* @since 0.93
* @updated 0.93
* Adds Wonderflux options to appearance menu (respects WF_ADMIN_ACCESS)
*/
if ( !function_exists( 'wfx_admin_bar_links' ) ) : function wfx_admin_bar_links() { global $wfx_wp_helper; $wfx_wp_helper->admin_bar_links(); } endif;


/**
* @since 2.0
* @updated 2.0
Expand All @@ -758,6 +738,7 @@

// For when Wonderflux gets activated directly


/**
* @since 0.902
* @updated 0.913
Expand Down

0 comments on commit f2cb3d7

Please sign in to comment.