diff --git a/footer.php b/footer.php index dedeed0..d5e466b 100644 --- a/footer.php +++ b/footer.php @@ -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' ) : ''; diff --git a/functions.php b/functions.php index a3d09f1..731cee4 100644 --- a/functions.php +++ b/functions.php @@ -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 diff --git a/header.php b/header.php index eddc5f9..15152ad 100644 --- a/header.php +++ b/header.php @@ -6,7 +6,7 @@ * @since 1.0.0 */ -namespace SoloFrameEvo; +namespace KsPortfolio; global $views; diff --git a/lib/class-acf.php b/lib/class-acf.php index c672cd7..ae9764b 100644 --- a/lib/class-acf.php +++ b/lib/class-acf.php @@ -6,7 +6,7 @@ * @since 1.0.0 */ -namespace SoloFrameEvo; +namespace KsPortfolio; /** * Class ACF diff --git a/lib/class-breadcrumbs.php b/lib/class-breadcrumbs.php index 605da1b..3101f28 100644 --- a/lib/class-breadcrumbs.php +++ b/lib/class-breadcrumbs.php @@ -1,5 +1,5 @@