diff options
author | Zach van Rijn <me@zv.io> | 2021-07-21 16:19:29 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2021-07-21 16:19:29 -0500 |
commit | 69c17f9c1942fd0d6a5ea941636e87723b8a6fe2 (patch) | |
tree | e1d0212147048204b0eede0aa6ff79849ed479da /inc/customizer/override-defaults.php | |
parent | 74a7109a2a5ab0d191f26c917ae69e46f0d83b32 (diff) | |
download | blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.tar.gz blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.tar.bz2 blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.tar.xz blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.zip |
dos2unix on all .php files, begin paring down admin page and site branding.
Diffstat (limited to 'inc/customizer/override-defaults.php')
-rw-r--r-- | inc/customizer/override-defaults.php | 140 |
1 files changed, 70 insertions, 70 deletions
diff --git a/inc/customizer/override-defaults.php b/inc/customizer/override-defaults.php index e23fa62..ab3700d 100644 --- a/inc/customizer/override-defaults.php +++ b/inc/customizer/override-defaults.php @@ -1,70 +1,70 @@ -<?php
-/**
- * Override default customizer panels, sections, settings or controls.
- *
- * @package Astra
- * @author Astra
- * @copyright Copyright (c) 2020, Astra
- * @link https://wpastra.com/
- * @since Astra 1.0.0
- */
-
-if ( ! defined( 'ABSPATH' ) ) {
- exit; // Exit if accessed directly.
-}
-
-/**
- * Override Sections
- */
-$wp_customize->get_section( 'title_tagline' )->priority = 5;
-$wp_customize->get_section( 'title_tagline' )->panel = 'panel-header-group';
-
-/**
- * Override Settings
- */
-$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
-$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
-$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
-$wp_customize->get_setting( 'custom_logo' )->transport = 'refresh';
-
-/**
- * Override Controls
- */
-$wp_customize->get_control( 'custom_logo' )->priority = 5;
-$wp_customize->get_control( 'blogname' )->priority = 8;
-$wp_customize->get_control( 'blogdescription' )->priority = 12;
-$wp_customize->get_control( 'header_textcolor' )->priority = 9;
-$wp_customize->get_control( 'site_icon' )->priority = 16;
-$wp_customize->get_control( 'site_icon' )->label = '';
-
-if ( isset( $wp_customize->selective_refresh ) ) {
- $wp_customize->selective_refresh->add_partial(
- 'blogname',
- array(
- 'selector' => '.main-header-bar .site-title a, .ast-small-footer-wrap .ast-footer-site-title',
- 'container_inclusive' => false,
- 'render_callback' => 'Astra_Customizer_Partials::render_partial_site_title',
- )
- );
-}
-
-if ( isset( $wp_customize->selective_refresh ) ) {
- $wp_customize->selective_refresh->add_partial(
- 'blogdescription',
- array(
- 'selector' => '.main-header-bar .site-description',
- 'container_inclusive' => false,
- 'render_callback' => 'Astra_Customizer_Partials::render_partial_site_tagline',
- )
- );
-}
-
-/*
- * Modify WooCommerce default section priorities
-*/
-if ( class_exists( 'WooCommerce' ) ) {
- $wp_customize->get_section( 'woocommerce_store_notice' )->priority = 9;
- $wp_customize->get_section( 'woocommerce_product_catalog' )->priority = 11;
- $wp_customize->get_section( 'woocommerce_checkout' )->priority = 21;
- $wp_customize->get_panel( 'woocommerce' )->priority = 70;
-}
+<?php +/** + * Override default customizer panels, sections, settings or controls. + * + * @package Astra + * @author Astra + * @copyright Copyright (c) 2020, Astra + * @link https://wpastra.com/ + * @since Astra 1.0.0 + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + +/** + * Override Sections + */ +$wp_customize->get_section( 'title_tagline' )->priority = 5; +$wp_customize->get_section( 'title_tagline' )->panel = 'panel-header-group'; + +/** + * Override Settings + */ +$wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; +$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; +$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; +$wp_customize->get_setting( 'custom_logo' )->transport = 'refresh'; + +/** + * Override Controls + */ +$wp_customize->get_control( 'custom_logo' )->priority = 5; +$wp_customize->get_control( 'blogname' )->priority = 8; +$wp_customize->get_control( 'blogdescription' )->priority = 12; +$wp_customize->get_control( 'header_textcolor' )->priority = 9; +$wp_customize->get_control( 'site_icon' )->priority = 16; +$wp_customize->get_control( 'site_icon' )->label = ''; + +if ( isset( $wp_customize->selective_refresh ) ) { + $wp_customize->selective_refresh->add_partial( + 'blogname', + array( + 'selector' => '.main-header-bar .site-title a, .ast-small-footer-wrap .ast-footer-site-title', + 'container_inclusive' => false, + 'render_callback' => 'Astra_Customizer_Partials::render_partial_site_title', + ) + ); +} + +if ( isset( $wp_customize->selective_refresh ) ) { + $wp_customize->selective_refresh->add_partial( + 'blogdescription', + array( + 'selector' => '.main-header-bar .site-description', + 'container_inclusive' => false, + 'render_callback' => 'Astra_Customizer_Partials::render_partial_site_tagline', + ) + ); +} + +/* + * Modify WooCommerce default section priorities +*/ +if ( class_exists( 'WooCommerce' ) ) { + $wp_customize->get_section( 'woocommerce_store_notice' )->priority = 9; + $wp_customize->get_section( 'woocommerce_product_catalog' )->priority = 11; + $wp_customize->get_section( 'woocommerce_checkout' )->priority = 21; + $wp_customize->get_panel( 'woocommerce' )->priority = 70; +} |