This commit is contained in:
@@ -2,11 +2,11 @@
|
|||||||
/**
|
/**
|
||||||
* Page Not Found
|
* Page Not Found
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
get_header();
|
get_header();
|
||||||
?>
|
?>
|
||||||
|
|||||||
+2
-2
@@ -2,11 +2,11 @@
|
|||||||
/**
|
/**
|
||||||
* Theme footer template
|
* Theme footer template
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
$footerLogo = getFieldValue( 'footer.footer_logo.url' ) ? getFieldValue( 'footer.footer_logo.url' ) : '';
|
$footerLogo = getFieldValue( 'footer.footer_logo.url' ) ? getFieldValue( 'footer.footer_logo.url' ) : '';
|
||||||
$footerDesc = getFieldValue( 'footer.footer_description' ) ? getFieldValue( 'footer.footer_description' ) : '';
|
$footerDesc = getFieldValue( 'footer.footer_description' ) ? getFieldValue( 'footer.footer_description' ) : '';
|
||||||
|
|||||||
+2
-2
@@ -2,10 +2,10 @@
|
|||||||
/**
|
/**
|
||||||
* Front Page Template
|
* Front Page Template
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
get_header();
|
get_header();
|
||||||
?>
|
?>
|
||||||
|
|||||||
+3
-3
@@ -1,15 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Functions file for the BasicWP theme.
|
* Functions file for the CWC theme.
|
||||||
*
|
*
|
||||||
* This file initializes the theme by including necessary dependencies
|
* This file initializes the theme by including necessary dependencies
|
||||||
* and loading additional function files.
|
* and loading additional function files.
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Load functions.
|
// Load functions.
|
||||||
foreach ( glob( __DIR__ . '/lib/*.php' ) as $filename ) {
|
foreach ( glob( __DIR__ . '/lib/*.php' ) as $filename ) {
|
||||||
|
|||||||
+2
-2
@@ -2,11 +2,11 @@
|
|||||||
/**
|
/**
|
||||||
* Theme header template
|
* Theme header template
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
global $views;
|
global $views;
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
/**
|
/**
|
||||||
* Blog posts list
|
* Blog posts list
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Determine classes based on sidebar presence
|
// Determine classes based on sidebar presence
|
||||||
if ( hasSidebar() ) {
|
if ( hasSidebar() ) {
|
||||||
|
|||||||
+2
-2
@@ -2,11 +2,11 @@
|
|||||||
/**
|
/**
|
||||||
* ACF (Advanced Custom Fields) support class & functions
|
* ACF (Advanced Custom Fields) support class & functions
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class ACF
|
* Class ACF
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Breadcrumbs
|
* Class Breadcrumbs
|
||||||
|
|||||||
+10
-10
@@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* BasicWP Theme Enqueue Class
|
* CWC Theme Enqueue Class
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Enqueue
|
* Class Enqueue
|
||||||
@@ -39,7 +39,7 @@ class Enqueue {
|
|||||||
$css_path = '/static/dist/theme.css';
|
$css_path = '/static/dist/theme.css';
|
||||||
if ( file_exists( $theme_dir . $css_path ) ) {
|
if ( file_exists( $theme_dir . $css_path ) ) {
|
||||||
$version = filemtime( $theme_dir . $css_path );
|
$version = filemtime( $theme_dir . $css_path );
|
||||||
wp_enqueue_style( 'basicwp-theme', $theme_uri . $css_path, array(), $version );
|
wp_enqueue_style( 'cwc-theme', $theme_uri . $css_path, array(), $version );
|
||||||
}
|
}
|
||||||
|
|
||||||
$font_ver = gmdate( 'U' );
|
$font_ver = gmdate( 'U' );
|
||||||
@@ -53,8 +53,8 @@ class Enqueue {
|
|||||||
if ( file_exists( $theme_dir . $js_path ) ) {
|
if ( file_exists( $theme_dir . $js_path ) ) {
|
||||||
$version = filemtime( $theme_dir . $js_path );
|
$version = filemtime( $theme_dir . $js_path );
|
||||||
wp_enqueue_script( 'jquery' ); // Needed by downstream scripts; modules can't depend on classic scripts.
|
wp_enqueue_script( 'jquery' ); // Needed by downstream scripts; modules can't depend on classic scripts.
|
||||||
wp_enqueue_script_module( 'basicwp-theme', $theme_uri . $js_path, array(), $version );
|
wp_enqueue_script_module( 'cwc-theme', $theme_uri . $js_path, array(), $version );
|
||||||
wp_enqueue_script_module( 'basicwp-button', $theme_uri . '/static/js/components/button.js', array( 'basicwp-theme' ), $version );
|
wp_enqueue_script_module( 'cwc-button', $theme_uri . '/static/js/components/button.js', array( 'cwc-theme' ), $version );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ class Enqueue {
|
|||||||
$admin_css_path = '/styles/backend/admin.css';
|
$admin_css_path = '/styles/backend/admin.css';
|
||||||
if ( file_exists( $theme_dir . $admin_css_path ) ) {
|
if ( file_exists( $theme_dir . $admin_css_path ) ) {
|
||||||
$version = filemtime( $theme_dir . $admin_css_path );
|
$version = filemtime( $theme_dir . $admin_css_path );
|
||||||
wp_enqueue_style( 'basicwp-admin', $theme_uri . $admin_css_path, array(), $version );
|
wp_enqueue_style( 'cwc-admin', $theme_uri . $admin_css_path, array(), $version );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -84,8 +84,8 @@ class Enqueue {
|
|||||||
if ( file_exists( $theme_dir . $admin_js_path ) ) {
|
if ( file_exists( $theme_dir . $admin_js_path ) ) {
|
||||||
$version = filemtime( $theme_dir . $admin_js_path );
|
$version = filemtime( $theme_dir . $admin_js_path );
|
||||||
wp_enqueue_script( 'jquery' ); // Needed by downstream scripts; modules can't depend on classic scripts.
|
wp_enqueue_script( 'jquery' ); // Needed by downstream scripts; modules can't depend on classic scripts.
|
||||||
wp_enqueue_script_module( 'basicwp-admin', $theme_uri . $admin_js_path, array(), $version );
|
wp_enqueue_script_module( 'cwc-admin', $theme_uri . $admin_js_path, array(), $version );
|
||||||
wp_enqueue_script_module( 'basicwp-button', $theme_uri . '/static/js/components/button.js', array( 'basicwp-admin' ), $version );
|
wp_enqueue_script_module( 'cwc-button', $theme_uri . '/static/js/components/button.js', array( 'cwc-admin' ), $version );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ class Enqueue {
|
|||||||
|
|
||||||
if ( file_exists( $theme_dir . $editor_css_path ) ) {
|
if ( file_exists( $theme_dir . $editor_css_path ) ) {
|
||||||
$version = filemtime( $theme_dir . $editor_css_path );
|
$version = filemtime( $theme_dir . $editor_css_path );
|
||||||
wp_enqueue_style( 'basicwp-editor', $theme_uri . $editor_css_path, array(), $version );
|
wp_enqueue_style( 'cwc-editor', $theme_uri . $editor_css_path, array(), $version );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* BasicWP MenuItems Class
|
* CWC MenuItems Class
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class MenuItems
|
* Class MenuItems
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
/**
|
/**
|
||||||
* Resources custom post type & taxonomies
|
* Resources custom post type & taxonomies
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Resources
|
* Class Resources
|
||||||
|
|||||||
+3
-3
@@ -2,11 +2,11 @@
|
|||||||
/**
|
/**
|
||||||
* Filters. etc
|
* Filters. etc
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
/** Get child pages of the current page, sorted by menu order.
|
/** Get child pages of the current page, sorted by menu order.
|
||||||
*
|
*
|
||||||
@@ -154,7 +154,7 @@ function getTheTitle() {
|
|||||||
} elseif ( is_search() ) {
|
} elseif ( is_search() ) {
|
||||||
$title = sprintf(
|
$title = sprintf(
|
||||||
/* translators: %s is replaced with the search query */
|
/* translators: %s is replaced with the search query */
|
||||||
__( 'Search Results for "%s"', 'basicwp' ),
|
__( 'Search Results for "%s"', 'cwc' ),
|
||||||
get_search_query()
|
get_search_query()
|
||||||
);
|
);
|
||||||
} elseif ( is_404() ) {
|
} elseif ( is_404() ) {
|
||||||
|
|||||||
+3
-3
@@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* BasicWP Theme Helpers
|
* CWC Theme Helpers
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Define global variables for theme and views folder paths.
|
// Define global variables for theme and views folder paths.
|
||||||
global $theme, $views;
|
global $theme, $views;
|
||||||
|
|||||||
+3
-3
@@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* BasicWP Theme Hooks
|
* CWC Theme Hooks
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add preconnect for Google fonts to head
|
* Add preconnect for Google fonts to head
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Search features for BasicWP theme.
|
* Search features for CWC theme.
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Modifies the WordPress query object for page search functionality.
|
* Modifies the WordPress query object for page search functionality.
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
/**
|
/**
|
||||||
* Add a comment to show which template is being used on the current page.
|
* Add a comment to show which template is being used on the current page.
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class ShowTemplate
|
* Class ShowTemplate
|
||||||
@@ -14,7 +14,7 @@ namespace BasicWP;
|
|||||||
* Displays the active WordPress template in the footer for debugging purposes.
|
* Displays the active WordPress template in the footer for debugging purposes.
|
||||||
* Determines which template WordPress has chosen to use and outputs it as an HTML comment.
|
* Determines which template WordPress has chosen to use and outputs it as an HTML comment.
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class ShowTemplate {
|
class ShowTemplate {
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
/**
|
/**
|
||||||
* Single Pages
|
* Single Pages
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
get_header();
|
get_header();
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -2,11 +2,11 @@
|
|||||||
/**
|
/**
|
||||||
* Blog search template
|
* Blog search template
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Determine classes based on sidebar presence
|
// Determine classes based on sidebar presence
|
||||||
if ( hasSidebar() ) {
|
if ( hasSidebar() ) {
|
||||||
|
|||||||
+3
-3
@@ -2,14 +2,14 @@
|
|||||||
/**
|
/**
|
||||||
* Page Sidebar
|
* Page Sidebar
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<aside class="sidebar sidebar-page">
|
<aside class="sidebar sidebar-page">
|
||||||
<h2><?php esc_html_e( 'Page Sidebar', 'basicwp' ); ?></h2>
|
<h2><?php esc_html_e( 'Page Sidebar', 'cwc' ); ?></h2>
|
||||||
<?php dynamic_sidebar( 'sidebar-page' ); ?>
|
<?php dynamic_sidebar( 'sidebar-page' ); ?>
|
||||||
</aside>
|
</aside>
|
||||||
|
|||||||
+2
-2
@@ -2,10 +2,10 @@
|
|||||||
/**
|
/**
|
||||||
* Sidebar
|
* Sidebar
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -2,11 +2,11 @@
|
|||||||
/**
|
/**
|
||||||
* Single Posts
|
* Single Posts
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
get_header();
|
get_header();
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* Theme Name: Community Works Collaborative
|
* Theme Name: Community Works Collaborative
|
||||||
* Description: Custom WordPress theme starter for VDI Projects
|
* Description: Custom WordPress theme for Community Works Collaborative
|
||||||
* Version: 5.0
|
* Version: 5.0
|
||||||
* Author: Vincent Design Inc.
|
* Author: Keith Solomon.
|
||||||
* Text Domain: basicwp
|
* Text Domain: cwc
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
*
|
*
|
||||||
* This is the template that renders the Accordion block.
|
* This is the template that renders the Accordion block.
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
$open = get_field( 'open' );
|
$open = get_field( 'open' );
|
||||||
$group = get_field( 'group_items' );
|
$group = get_field( 'group_items' );
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
*
|
*
|
||||||
* This is the template for building your own custom blocks.
|
* This is the template for building your own custom blocks.
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
$classes = 'boilerplate';
|
$classes = 'boilerplate';
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
/**
|
/**
|
||||||
* Button block
|
* Button block
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Retrieve ACF fields
|
// Retrieve ACF fields
|
||||||
$element = get_field( 'element' ) ? get_field( 'element' ) : 'a';
|
$element = get_field( 'element' ) ? get_field( 'element' ) : 'a';
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
*
|
*
|
||||||
* This is the template that renders the Buttons block.
|
* This is the template that renders the Buttons block.
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
$ibClasses = 'flex flex-wrap gap-4 w-full justify-center sm:justify-start';
|
$ibClasses = 'flex flex-wrap gap-4 w-full justify-center sm:justify-start';
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
*
|
*
|
||||||
* Display contact information from global fields with icons and optional form.
|
* Display contact information from global fields with icons and optional form.
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
$classes = 'contact-info';
|
$classes = 'contact-info';
|
||||||
$wrapper = blockWrapperAttributes( $classes, $is_preview );
|
$wrapper = blockWrapperAttributes( $classes, $is_preview );
|
||||||
@@ -19,13 +19,13 @@ $wrapper = blockWrapperAttributes( $classes, $is_preview );
|
|||||||
<h2 class="text-2xl font-bold mb-4">Contact Information</h2>
|
<h2 class="text-2xl font-bold mb-4">Contact Information</h2>
|
||||||
|
|
||||||
<div class="not-prose text-black my-4">
|
<div class="not-prose text-black my-4">
|
||||||
<h3 class="mb-0"><?php echo esc_html__( 'Mailing Address', 'basicwp' ); ?></h3>
|
<h3 class="mb-0"><?php echo esc_html__( 'Mailing Address', 'cwc' ); ?></h3>
|
||||||
<p class="my-0.5"><?php echo wp_kses_post( get_field( 'contact_info', 'option' )['address'] ); ?></p>
|
<p class="my-0.5"><?php echo wp_kses_post( get_field( 'contact_info', 'option' )['address'] ); ?></p>
|
||||||
|
|
||||||
<h3 class="mb-0"><?php echo esc_html__( 'Email', 'basicwp' ); ?></h3>
|
<h3 class="mb-0"><?php echo esc_html__( 'Email', 'cwc' ); ?></h3>
|
||||||
<p class="my-0.5"><a class="hover:opacity-80 transition-colors duration-100" href="mailto:<?php echo esc_html( get_field( 'contact_info', 'option' )['email'] ); ?>"><?php echo esc_html( get_field( 'contact_info', 'option' )['email'] ); ?></a></p>
|
<p class="my-0.5"><a class="hover:opacity-80 transition-colors duration-100" href="mailto:<?php echo esc_html( get_field( 'contact_info', 'option' )['email'] ); ?>"><?php echo esc_html( get_field( 'contact_info', 'option' )['email'] ); ?></a></p>
|
||||||
|
|
||||||
<h3 class="mb-0"><?php echo esc_html__( 'Phone', 'basicwp' ); ?></h3>
|
<h3 class="mb-0"><?php echo esc_html__( 'Phone', 'cwc' ); ?></h3>
|
||||||
<p class="my-0.5"><a class="hover:opacity-80 transition-colors duration-100" href="tel:<?php echo esc_html( get_field( 'contact_info', 'option' )['phone'] ); ?>"><?php echo esc_html( get_field( 'contact_info', 'option' )['phone'] ); ?></a></p>
|
<p class="my-0.5"><a class="hover:opacity-80 transition-colors duration-100" href="tel:<?php echo esc_html( get_field( 'contact_info', 'option' )['phone'] ); ?>"><?php echo esc_html( get_field( 'contact_info', 'option' )['phone'] ); ?></a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
*
|
*
|
||||||
* This is the template that displays the Grid Cell block.
|
* This is the template that displays the Grid Cell block.
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Initialize variables
|
// Initialize variables
|
||||||
$className = ! empty( $block['className'] ) ? $block['className'] : '';
|
$className = ! empty( $block['className'] ) ? $block['className'] : '';
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
*
|
*
|
||||||
* This is the template that displays the grid block.
|
* This is the template that displays the grid block.
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
$allowedBlocks = array( 'acf/grid-cell' );
|
$allowedBlocks = array( 'acf/grid-cell' );
|
||||||
$default_blocks = array(
|
$default_blocks = array(
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
/**
|
/**
|
||||||
* Block Name: Homepage Hero
|
* Block Name: Homepage Hero
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Retrieve ACF fields
|
// Retrieve ACF fields
|
||||||
$heading = get_field( 'heading' );
|
$heading = get_field( 'heading' );
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
*
|
*
|
||||||
* This is the template that displays the media text inner blocks.
|
* This is the template that displays the media text inner blocks.
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Retrieve ACF fields
|
// Retrieve ACF fields
|
||||||
$bgColor = get_field( 'background_color' ) ? get_field( 'background_color' ) : '#c5c5c5';
|
$bgColor = get_field( 'background_color' ) ? get_field( 'background_color' ) : '#c5c5c5';
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
*
|
*
|
||||||
* This is the template that displays the Media With Text block.
|
* This is the template that displays the Media With Text block.
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Retrieve ACF fields
|
// Retrieve ACF fields
|
||||||
$bgColor = get_field( 'background_color' ) ? get_field( 'background_color' ) : '#c5c5c5';
|
$bgColor = get_field( 'background_color' ) ? get_field( 'background_color' ) : '#c5c5c5';
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
/**
|
/**
|
||||||
* Page Children block
|
* Page Children block
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Retrieve the current page ID and its children
|
// Retrieve the current page ID and its children
|
||||||
$parentId = get_queried_object_id();
|
$parentId = get_queried_object_id();
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
*
|
*
|
||||||
* This is the template that displays the section block.
|
* This is the template that displays the section block.
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Retrieve ACF fields
|
// Retrieve ACF fields
|
||||||
$contentWidth = get_field( 'content_width' );
|
$contentWidth = get_field( 'content_width' );
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/navigation/
|
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/navigation/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Variables available:
|
// Variables available:
|
||||||
// $item from parent template
|
// $item from parent template
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/navigation/
|
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/navigation/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Variables available from MenuItems component:
|
// Variables available from MenuItems component:
|
||||||
// $topLevelNavItems, $hasChildren, $nestedNavItems, $currentPage, $location
|
// $topLevelNavItems, $hasChildren, $nestedNavItems, $currentPage, $location
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/navigation/
|
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/navigation/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Variables available:
|
// Variables available:
|
||||||
// $item from parent template
|
// $item from parent template
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/navigation-aux.html
|
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/navigation-aux.html
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Init Variables
|
// Init Variables
|
||||||
global $wp, $views;
|
global $wp, $views;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/navigation/
|
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/navigation/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
global $views;
|
global $views;
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/navigation/
|
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/navigation/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Init Variables
|
// Init Variables
|
||||||
$navIcon = isset( get_field( 'header', 'option' )['nav_icon'] ) ? get_field( 'header', 'option' )['nav_icon'] : '';
|
$navIcon = isset( get_field( 'header', 'option' )['nav_icon'] ) ? get_field( 'header', 'option' )['nav_icon'] : '';
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/search-global.html
|
* https://docs.vincentdevelopment.ca/docs/starter-v3-enhancements/search-global.html
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ namespace BasicWP;
|
|||||||
<form method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>" class="global-search-form relative flex justify-start max-w-full w-full">
|
<form method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>" class="global-search-form relative flex justify-start max-w-full w-full">
|
||||||
<label for="globalSearch">
|
<label for="globalSearch">
|
||||||
<svg role="img" aria-labelledby="globalSearchLabel" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="absolute w-4 top-2 left-2 fill-primary-700">
|
<svg role="img" aria-labelledby="globalSearchLabel" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="absolute w-4 top-2 left-2 fill-primary-700">
|
||||||
<title id="globalSearchLabel"><?php echo esc_attr_x( 'Search', 'search-label', 'basicwp' ); ?></title>
|
<title id="globalSearchLabel"><?php echo esc_attr_x( 'Search', 'search-label', 'cwc' ); ?></title>
|
||||||
|
|
||||||
<path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/>
|
<path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/>
|
||||||
</svg>
|
</svg>
|
||||||
@@ -23,7 +23,7 @@ namespace BasicWP;
|
|||||||
<input id="globalSearch" type="search" placeholder="" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" class="md:min-w-[25ch] w-full md:w-[18em] max-w-full text-sm p-1 pl-7 border-2 border-primary-700 rounded-l focus-visible:ring-2 ring-primary-700 !outline-default">
|
<input id="globalSearch" type="search" placeholder="" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" class="md:min-w-[25ch] w-full md:w-[18em] max-w-full text-sm p-1 pl-7 border-2 border-primary-700 rounded-l focus-visible:ring-2 ring-primary-700 !outline-default">
|
||||||
|
|
||||||
<button type="submit" class="bg-primary rounded-r py-0 px-3 height-full text-sm text-white focus-visible:ring-2 ring-primary-700 !outline-default cursor-default">
|
<button type="submit" class="bg-primary rounded-r py-0 px-3 height-full text-sm text-white focus-visible:ring-2 ring-primary-700 !outline-default cursor-default">
|
||||||
<?php echo esc_attr_x( 'Search', 'search-submit', 'basicwp' ); ?>
|
<?php echo esc_attr_x( 'Search', 'search-submit', 'cwc' ); ?>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</search>
|
</search>
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
/**
|
/**
|
||||||
* Page Hero Partial
|
* Page Hero Partial
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
// Set variables
|
// Set variables
|
||||||
$bgColor = get_field( 'background_color' );
|
$bgColor = get_field( 'background_color' );
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
/**
|
/**
|
||||||
* Social Media Links Partial
|
* Social Media Links Partial
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
$classes = $args['classes'] ?? '';
|
$classes = $args['classes'] ?? '';
|
||||||
$circle = $args['circle'] ?? '';
|
$circle = $args['circle'] ?? '';
|
||||||
|
|||||||
+2
-2
@@ -6,11 +6,11 @@
|
|||||||
* These are for use in the editor and do not appear in the theme codebase, so
|
* These are for use in the editor and do not appear in the theme codebase, so
|
||||||
* Tailwind does not know to include them without this list.
|
* Tailwind does not know to include them without this list.
|
||||||
*
|
*
|
||||||
* @package BasicWP
|
* @package CWC
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace BasicWP;
|
namespace CWC;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user