refactor: rename namespace SoloFrameEvo to KsPortfolio
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
namespace SoloFrameEvo;
|
||||
namespace KsPortfolio;
|
||||
|
||||
$footerLogo = getFieldValue( 'footer.footer_logo.url' ) ? getFieldValue( 'footer.footer_logo.url' ) : '';
|
||||
$footerDesc = getFieldValue( 'footer.footer_description' ) ? getFieldValue( 'footer.footer_description' ) : '';
|
||||
|
||||
+7
-1
@@ -9,13 +9,19 @@
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
namespace SoloFrameEvo;
|
||||
namespace KsPortfolio;
|
||||
|
||||
// Load functions.
|
||||
foreach ( glob( __DIR__ . '/lib/*.php' ) as $filename ) {
|
||||
include_once $filename;
|
||||
}
|
||||
|
||||
// Project helper (thin wrapper around the projects-portfolio plugin).
|
||||
$projects_helper = __DIR__ . '/lib/class-projects.php';
|
||||
if ( file_exists( $projects_helper ) ) {
|
||||
require_once $projects_helper;
|
||||
}
|
||||
|
||||
/** Registers custom ACF (Advanced Custom Fields) blocks for use in the WordPress theme.
|
||||
*
|
||||
* This function is intended to define and register custom Gutenberg blocks
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
namespace SoloFrameEvo;
|
||||
namespace KsPortfolio;
|
||||
|
||||
global $views;
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
namespace SoloFrameEvo;
|
||||
namespace KsPortfolio;
|
||||
|
||||
/**
|
||||
* Class ACF
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
namespace SoloFrameEvo;
|
||||
namespace KsPortfolio;
|
||||
|
||||
/**
|
||||
* Class Breadcrumbs
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
namespace SoloFrameEvo;
|
||||
namespace KsPortfolio;
|
||||
|
||||
/**
|
||||
* Class Enqueue
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
namespace SoloFrameEvo;
|
||||
namespace KsPortfolio;
|
||||
|
||||
/**
|
||||
* Class MenuItems
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
namespace SoloFrameEvo;
|
||||
namespace KsPortfolio;
|
||||
|
||||
/**
|
||||
* Class Resources
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
namespace SoloFrameEvo;
|
||||
namespace KsPortfolio;
|
||||
|
||||
/** Get child pages of the current page, sorted by menu order.
|
||||
*
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
namespace SoloFrameEvo;
|
||||
namespace KsPortfolio;
|
||||
|
||||
// Define global variables for theme and views folder paths.
|
||||
global $theme, $views;
|
||||
|
||||
+4
-4
@@ -6,7 +6,7 @@
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
namespace SoloFrameEvo;
|
||||
namespace KsPortfolio;
|
||||
|
||||
/**
|
||||
* Add preconnect for Google fonts to head
|
||||
@@ -189,7 +189,7 @@ function init() {
|
||||
add_theme_support( 'customize-selective-refresh-widgets' );
|
||||
}
|
||||
|
||||
add_action( 'init', __NAMESPACE__ . '\\init', 1 );
|
||||
add_action( 'init', '\\KsPortfolio\\init', 1 );
|
||||
|
||||
/**
|
||||
* Allow SVG uploads
|
||||
@@ -268,5 +268,5 @@ function new_mail_from_name( $old ) {
|
||||
return get_option( 'blogname' );
|
||||
}
|
||||
|
||||
add_filter( 'wp_mail_from', __NAMESPACE__ . '\\new_mail_from' );
|
||||
add_filter( 'wp_mail_from_name', __NAMESPACE__ . '\\new_mail_from_name' );
|
||||
add_filter( 'wp_mail_from', '\\KsPortfolio\\new_mail_from' );
|
||||
add_filter( 'wp_mail_from_name', '\\KsPortfolio\\new_mail_from_name' );
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
namespace SoloFrameEvo;
|
||||
namespace KsPortfolio;
|
||||
|
||||
/**
|
||||
* Modifies the WordPress query object for page search functionality.
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
namespace SoloFrameEvo;
|
||||
namespace KsPortfolio;
|
||||
|
||||
/**
|
||||
* Class ShowTemplate
|
||||
|
||||
Reference in New Issue
Block a user