Skip to content

Commit 7e53eb5

Browse files
committed
replace div_ with df_ prefix
1 parent e8b62cd commit 7e53eb5

File tree

13 files changed

+333
-328
lines changed

13 files changed

+333
-328
lines changed

content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @hooked div_post_meta - 25
1818
* @hooked div_clear - 30
1919
*/
20-
do_action('div_post_content'); ?>
20+
do_action('df_post_content'); ?>
2121

2222
<?php do_action('before_post_close'); ?>
2323

footer.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
<?php
22
/**
3-
* div_begin_footer hook
3+
* df_begin_footer hook
44
*
5-
* @hooked div_begin_footer_container - 10
5+
* @hooked df_begin_footer_container - 10
66
*/
7-
do_action('div_begin_footer'); ?>
7+
do_action('df_begin_footer'); ?>
88

99
<?php # Insert footer content ?>
10+
11+
<?php $df_copyright ?>
1012

1113
<?php
1214
/**
13-
* div_end_footer hook
15+
* df_end_footer hook
1416
*
15-
* @hooked div_copyright() - 10
16-
* @hooked div_end_footer_container - 15
17+
* @hooked df_copyright() - 10
18+
* @hooked df_end_footer_container - 15
1719
*/
18-
do_action('div_end_footer'); ?>
20+
do_action('df_end_footer'); ?>
1921

2022
</div> <!-- end #container -->
2123

header.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* BEFORE YOU CHANGE ANYTHING:
77
* Please note that you shouldn't need to change anything in this file. To control how the page is built,
8-
* please consider using actions like add_action('div_head', 'new_function_name') to control
8+
* please consider using actions like add_action('df_head', 'new_function_name') to control
99
* elements loaded on the page.
1010
*/
1111
?>
@@ -20,17 +20,17 @@
2020
<head>
2121
<?php
2222
/**
23-
* div_head hook
23+
* df_head hook
2424
*
25-
* @hooked div_page_title - 10
26-
* @hooked div_charset - 15
27-
* @hooked div_google_frame - 20
28-
* @hooked div_mobile_meta - 25
29-
* @hooked div_favicon - 30
30-
* @hooked div_pingback - 35
31-
* @hooked div_html5_shiv - 40
25+
* @hooked df_page_title - 10
26+
* @hooked df_charset - 15
27+
* @hooked df_google_frame - 20
28+
* @hooked df_mobile_meta - 25
29+
* @hooked df_favicon - 30
30+
* @hooked df_pingback - 35
31+
* @hooked df_html5_shiv - 40
3232
*/
33-
do_action('div_head'); ?>
33+
do_action('df_head'); ?>
3434

3535
<!-- wordpress head functions -->
3636
<?php wp_head(); ?>
@@ -54,7 +54,7 @@
5454
<?php get_template_part('parts/header/part','titlespace'); ?>
5555

5656
<nav id="full" class="full" role="navigation">
57-
<?php div_main_nav(); ?>
57+
<?php df_main_nav(); ?>
5858
</nav>
5959

6060
</div> <!-- end #inner-header -->

inc/admin.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,31 @@
1212
/*=====// CUSTOM LOGIN/ADMIN PAGE //===================*/
1313

1414
# Calling your own login css so you can style it
15-
function div_login_styles() {
15+
function df_login_styles() {
1616
wp_enqueue_style( 'theme_login_styles', THEME_APPEARANCE_URL.'css/login.css', false );
1717
}
1818

19-
function div_admin_styles() {
19+
function df_admin_styles() {
2020
wp_enqueue_style( 'theme_admin_styles', THEME_APPEARANCE_URL.'css/admin.css', false );
2121
}
2222

2323
# Calling it only on the login page
24-
add_action( 'login_enqueue_scripts', 'div_login_styles', 10 );
24+
add_action( 'login_enqueue_scripts', 'df_login_styles', 10 );
2525

2626
# Calling it only admin
27-
add_action( 'admin_enqueue_scripts', 'div_admin_styles', 15 );
27+
add_action( 'admin_enqueue_scripts', 'df_admin_styles', 15 );
2828

2929
# Custom Backend Footer
30-
add_filter('admin_footer_text', 'div_custom_admin_footer');
31-
function div_custom_admin_footer() {
30+
add_filter('admin_footer_text', 'df_custom_admin_footer');
31+
function df_custom_admin_footer() {
3232
_e('<span id="footer-thankyou">Powered by <a href="http://www.divblend.com" target="_blank">The Div Framework</a></span>.', 'div-framework');
3333
}
3434

3535
/*=====// THEME SUPPORTS //===================*/
3636

3737
# TODO: Need to make these theme support options available on a developers options page
3838

39-
add_theme_support( 'post-formats', apply_filters( 'div_post_formats', array( 'gallery', 'image' ) ) );
39+
add_theme_support( 'post-formats', apply_filters( 'df_post_formats', array( 'gallery', 'image' ) ) );
4040
add_theme_support( 'widgets' );
4141
add_theme_support( 'menus' );
4242
add_theme_support( 'post-thumbnails' );
@@ -48,46 +48,46 @@ function div_custom_admin_footer() {
4848
# Enable the default menus
4949
register_nav_menus(
5050
array(
51-
'main-nav' => __( 'Main Navigation', 'div_framework' ), // main nav in header
52-
'mobile-nav' => __( 'Mobile Navigation', 'div_framework' ), // alternative main menu for mobile
51+
'main-nav' => __( 'Main Navigation', 'df_framework' ), // main nav in header
52+
'mobile-nav' => __( 'Mobile Navigation', 'df_framework' ), // alternative main menu for mobile
5353
)
5454
);
5555

56-
function div_main_nav($newOptions = array()) {
56+
function df_main_nav($newOptions = array()) {
5757
$options = array(
5858
'container' => false, // remove nav container
5959
'container_class' => 'menu clearfix', // class of container (should you choose to use it)
60-
'menu' => __( 'Main Navigation', 'div_framework' ), // nav name
60+
'menu' => __( 'Main Navigation', 'df_framework' ), // nav name
6161
'menu_class' => 'nav top-nav clearfix', // adding custom nav class
6262
'theme_location' => 'main-nav', // where it's located in the theme
6363
'before' => '', // before the menu
6464
'after' => '', // after the menu
6565
'link_before' => '', // before each link
6666
'link_after' => '', // after each link
6767
'depth' => 0, // limit the depth of the nav
68-
'fallback_cb' => 'div_framework_main_nav_cb', // Callback function if no menu found
68+
'fallback_cb' => 'df_framework_main_nav_cb', // Callback function if no menu found
6969
);
7070
wp_nav_menu(array_merge($options, $newOptions));
71-
} /* end div_framework main nav */
71+
} /* end df_framework main nav */
7272

73-
function div_mobile_nav($newOptions = array()) {
73+
function df_mobile_nav($newOptions = array()) {
7474
$options = array(
7575
'container' => false, // remove nav container
7676
'container_class' => 'menu clearfix', // class of container (should you choose to use it)
77-
'menu' => __( 'Mobile Navigation', 'div_framework' ), // nav name
77+
'menu' => __( 'Mobile Navigation', 'df_framework' ), // nav name
7878
'menu_class' => 'nav top-nav clearfix', // adding custom nav class
7979
'theme_location' => 'mobile-nav', // where it's located in the theme
8080
'before' => '', // before the menu
8181
'after' => '', // after the menu
8282
'link_before' => '', // before each link
8383
'link_after' => '', // after each link
8484
'depth' => 0, // limit the depth of the nav
85-
'fallback_cb' => 'div_framework_main_nav_cb'
85+
'fallback_cb' => 'df_framework_main_nav_cb'
8686
);
8787
wp_nav_menu(array_merge($options, $newOptions));
88-
} /* end div_framework mobile nav */
88+
} /* end df_framework mobile nav */
8989

90-
function div_framework_main_nav_cb(){
90+
function df_framework_main_nav_cb(){
9191
echo '<ul id="menu-main-menu-1" class="nav top-nav clearfix">';
9292
wp_list_pages('sort_column=menu_order&title_li=');
9393
echo '</ul>';

0 commit comments

Comments
 (0)