diff options
Update strings from Starter to CarMag
1 files changed, 21 insertions, 21 deletions
| -rw-r--r-- | wp-content/themes/carmag/functions.php | 42 |
diff --git a/wp-content/themes/carmag/functions.php b/wp-content/themes/carmag/functions.php index caf25f0..5bb66d7 100644 --- a/wp-content/themes/carmag/functions.php +++ b/wp-content/themes/carmag/functions.php @@ -1,10 +1,10 @@ <?php /** - * DevriX Starter functions and definitions. + * CarMag functions and definitions. * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * - * @package DevriX_Starter + * @package CarMag */ // Dynamic grab master CSS mod time. @@ -42,7 +42,7 @@ require get_template_directory() . '/inc/jetpack.php'; require get_template_directory() . '/inc/images.php'; -if ( ! function_exists( 'dxstarter_setup' ) ) : +if ( ! function_exists( 'carmag_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * @@ -50,14 +50,14 @@ if ( ! function_exists( 'dxstarter_setup' ) ) : * runs before the init hook. The init hook is too late for some features, such * as indicating support for post thumbnails. */ -function dxstarter_setup() { +function carmag_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. - * If you're building a theme based on DevriX Starter, use a find and replace - * to change 'dxstarter' to the name of your theme in all the template files. + * If you're building a theme based on CarMag, use a find and replace + * to change 'carmag' to the name of your theme in all the template files. */ - load_theme_textdomain( 'dxstarter', get_template_directory() . '/languages' ); + load_theme_textdomain( 'carmag', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); @@ -80,7 +80,7 @@ function dxstarter_setup() { /** * Sample post thumbnail sizes. Change these to fit your theme * - * @since DX Starter 1.1.0 + * @since CarMag 1.1.0 */ add_image_size( 'featured', 960, 720 ); // Featured image add_image_size( 'thumb-l', 640, 480 ); // Thumbnail size large @@ -88,7 +88,7 @@ function dxstarter_setup() { // This theme uses wp_nav_menu() in one location. register_nav_menus( array( - 'primary' => esc_html__( 'Primary', 'dxstarter' ), + 'primary' => esc_html__( 'Primary', 'carmag' ), ) ); /* @@ -116,13 +116,13 @@ function dxstarter_setup() { ) ); // Set up the WordPress core custom background feature. - add_theme_support( 'custom-background', apply_filters( 'dxstarter_custom_background_args', array( + add_theme_support( 'custom-background', apply_filters( 'carmag_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); } endif; -add_action( 'after_setup_theme', 'dxstarter_setup' ); +add_action( 'after_setup_theme', 'carmag_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. @@ -131,19 +131,19 @@ add_action( 'after_setup_theme', 'dxstarter_setup' ); * * @global int $content_width */ -function dxstarter_content_width() { - $GLOBALS['content_width'] = apply_filters( 'dxstarter_content_width', 640 ); +function carmag_content_width() { + $GLOBALS['content_width'] = apply_filters( 'carmag_content_width', 640 ); } -add_action( 'after_setup_theme', 'dxstarter_content_width', 0 ); +add_action( 'after_setup_theme', 'carmag_content_width', 0 ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ -function dxstarter_widgets_init() { +function carmag_widgets_init() { register_sidebar( array( - 'name' => esc_html__( 'Sidebar', 'dxstarter' ), + 'name' => esc_html__( 'Sidebar', 'carmag' ), 'id' => 'sidebar-1', 'description' => '', 'before_widget' => '<section id="%1$s" class="widget %2$s">', @@ -152,12 +152,12 @@ function dxstarter_widgets_init() { 'after_title' => '</h2>', ) ); } -add_action( 'widgets_init', 'dxstarter_widgets_init' ); +add_action( 'widgets_init', 'carmag_widgets_init' ); /** * Enqueue scripts and styles. */ -function dxstarter_scripts() { +function carmag_scripts() { $suffix = '.min'; if ( defined('SCRIPT_DEBUG' ) ) { @@ -183,12 +183,12 @@ function dxstarter_scripts() { wp_enqueue_script( 'comment-reply' ); } } -add_action( 'wp_enqueue_scripts', 'dxstarter_scripts' ); +add_action( 'wp_enqueue_scripts', 'carmag_scripts' ); /** * Remove the margin-top styling added to the HTML tag by default from WordPress */ -function dxstarter_remove_html_margin() { +function carmag_remove_html_margin() { remove_action( 'wp_head', '_admin_bar_bump_cb' ); } -add_action( 'get_header', 'dxstarter_remove_html_margin' ); +add_action( 'get_header', 'carmag_remove_html_margin' ); |
