44 *
55 * @link https://developer.wordpress.org/themes/basics/theme-functions/
66 *
7- * @package ASP_Theme
7+ * @package a_starting_point
88 */
99
10- if ( ! function_exists ( 'asp_theme_setup ' ) ) :
10+ if ( ! function_exists ( 'a_starting_point_setup ' ) ) :
1111 /**
1212 * Sets up theme defaults and registers support for various WordPress features.
1313 *
1414 * Note that this function is hooked into the after_setup_theme hook, which
1515 * runs before the init hook. The init hook is too late for some features, such
1616 * as indicating support for post thumbnails.
1717 */
18- function asp_theme_setup () {
18+ function a_starting_point_setup () {
1919 /*
2020 * Make theme available for translation.
2121 * Translations can be filed in the /languages/ directory.
2222 * If you're building a theme based on ASP Theme, use a find and replace
23- * to change 'asp-theme ' to the name of your theme in all the template files.
23+ * to change 'a-starting-point ' to the name of your theme in all the template files.
2424 */
25- load_theme_textdomain ( 'asp-theme ' , get_template_directory () . '/languages ' );
25+ load_theme_textdomain ( 'a-starting-point ' , get_template_directory () . '/languages ' );
2626
2727 // Add default posts and comments RSS feed links to head.
2828 add_theme_support ( 'automatic-feed-links ' );
@@ -44,7 +44,7 @@ function asp_theme_setup() {
4444
4545 // This theme uses wp_nav_menu() in one location.
4646 register_nav_menus ( array (
47- 'menu-1 ' => esc_html__ ( 'Primary ' , 'asp-theme ' ),
47+ 'menu-1 ' => esc_html__ ( 'Primary ' , 'a-starting-point ' ),
4848 ) );
4949
5050 /*
@@ -60,7 +60,7 @@ function asp_theme_setup() {
6060 ) );
6161
6262 // Set up the WordPress core custom background feature.
63- add_theme_support ( 'custom-background ' , apply_filters ( 'asp_theme_custom_background_args ' , array (
63+ add_theme_support ( 'custom-background ' , apply_filters ( 'a_starting_point_custom_background_args ' , array (
6464 'default-color ' => '000000 ' ,
6565 'default-image ' => '' ,
6666 ) ) );
@@ -81,7 +81,7 @@ function asp_theme_setup() {
8181 ) );
8282 }
8383endif ;
84- add_action ( 'after_setup_theme ' , 'asp_theme_setup ' );
84+ add_action ( 'after_setup_theme ' , 'a_starting_point_setup ' );
8585
8686/**
8787 * Set the content width in pixels, based on the theme's design and stylesheet.
@@ -90,54 +90,54 @@ function asp_theme_setup() {
9090 *
9191 * @global int $content_width
9292 */
93- function asp_theme_content_width () {
93+ function a_starting_point_content_width () {
9494 // This variable is intended to be overruled from themes.
9595 // Open WPCS issue: {@link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1043}.
9696 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
97- $ GLOBALS ['content_width ' ] = apply_filters ( 'asp_theme_content_width ' , 640 );
97+ $ GLOBALS ['content_width ' ] = apply_filters ( 'a_starting_point_content_width ' , 640 );
9898}
99- add_action ( 'after_setup_theme ' , 'asp_theme_content_width ' , 0 );
99+ add_action ( 'after_setup_theme ' , 'a_starting_point_content_width ' , 0 );
100100
101101/**
102102 * Register widget area.
103103 *
104104 * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
105105 */
106- function asp_theme_widgets_init () {
106+ function a_starting_point_widgets_init () {
107107 register_sidebar ( array (
108- 'name ' => esc_html__ ( 'Header ' , 'asp-theme ' ),
108+ 'name ' => esc_html__ ( 'Header ' , 'a-starting-point ' ),
109109 'id ' => 'sidebar-header ' ,
110- 'description ' => esc_html__ ( 'Add header widgets here. ' , 'asp-theme ' ),
110+ 'description ' => esc_html__ ( 'Add header widgets here. ' , 'a-starting-point ' ),
111111 'before_widget ' => '<section id="%1$s" class="widget asp-theme-acf %2$s"> ' ,
112112 'after_widget ' => '</section> ' ,
113113 'before_title ' => '<h2 class="widget-title"> ' ,
114114 'after_title ' => '</h2> ' ,
115115 ) );
116116 register_sidebar ( array (
117- 'name ' => esc_html__ ( 'Footer ' , 'asp-theme ' ),
117+ 'name ' => esc_html__ ( 'Footer ' , 'a-starting-point ' ),
118118 'id ' => 'sidebar-footer ' ,
119- 'description ' => esc_html__ ( 'Add footer widgets here. ' , 'asp-theme ' ),
119+ 'description ' => esc_html__ ( 'Add footer widgets here. ' , 'a-starting-point ' ),
120120 'before_widget ' => '<section id="%1$s" class="widget asp-theme-acf %2$s"> ' ,
121121 'after_widget ' => '</section> ' ,
122122 'before_title ' => '<h2 class="widget-title"> ' ,
123123 'after_title ' => '</h2> ' ,
124124 ) );
125125 register_sidebar ( array (
126- 'name ' => esc_html__ ( 'Sidebar ' , 'asp-theme ' ),
126+ 'name ' => esc_html__ ( 'Sidebar ' , 'a-starting-point ' ),
127127 'id ' => 'sidebar-1 ' ,
128- 'description ' => esc_html__ ( 'Add widgets here. ' , 'asp-theme ' ),
128+ 'description ' => esc_html__ ( 'Add widgets here. ' , 'a-starting-point ' ),
129129 'before_widget ' => '<section id="%1$s" class="widget asp-theme-acf %2$s"> ' ,
130130 'after_widget ' => '</section> ' ,
131131 'before_title ' => '<h2 class="widget-title"> ' ,
132132 'after_title ' => '</h2> ' ,
133133 ) );
134134}
135- add_action ( 'widgets_init ' , 'asp_theme_widgets_init ' );
135+ add_action ( 'widgets_init ' , 'a_starting_point_widgets_init ' );
136136
137137/**
138138 * Enqueue scripts and styles.
139139 */
140- function asp_theme_scripts () {
140+ function a_starting_point_scripts () {
141141
142142 wp_enqueue_style ( 'style ' , get_stylesheet_uri () );
143143 wp_enqueue_script ( 'header_js ' , get_template_directory_uri () . '/js/header-bundle.js ' , null , 1.0 , false );
@@ -147,7 +147,7 @@ function asp_theme_scripts() {
147147 wp_enqueue_script ( 'comment-reply ' );
148148 }
149149}
150- add_action ( 'wp_enqueue_scripts ' , 'asp_theme_scripts ' );
150+ add_action ( 'wp_enqueue_scripts ' , 'a_starting_point_scripts ' );
151151
152152/**
153153 * Implement the Custom Header feature.
0 commit comments