summaryrefslogtreecommitdiff
path: root/inc/modules/related-posts/class-astra-related-posts.php
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2021-07-21 14:54:07 -0500
committerZach van Rijn <me@zv.io>2021-07-21 14:54:07 -0500
commit9d4123cee1867ee7199b06bdc92d40611f547ecc (patch)
tree6d864e2725242863afed1f8ba12d9c7a9bc63a69 /inc/modules/related-posts/class-astra-related-posts.php
downloadblog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.tar.gz
blog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.tar.bz2
blog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.tar.xz
blog-ng-9d4123cee1867ee7199b06bdc92d40611f547ecc.zip
Initial unmodified import from Astra (Version: 3.6.5) @ /wp-content/themes/astra/.
Diffstat (limited to 'inc/modules/related-posts/class-astra-related-posts.php')
-rw-r--r--inc/modules/related-posts/class-astra-related-posts.php48
1 files changed, 48 insertions, 0 deletions
diff --git a/inc/modules/related-posts/class-astra-related-posts.php b/inc/modules/related-posts/class-astra-related-posts.php
new file mode 100644
index 0000000..3e8b7cd
--- /dev/null
+++ b/inc/modules/related-posts/class-astra-related-posts.php
@@ -0,0 +1,48 @@
+<?php
+/**
+ * Related Posts for Astra theme.
+ *
+ * @package Astra
+ * @author Brainstorm Force
+ * @copyright Copyright (c) 2021, Brainstorm Force
+ * @link https://www.brainstormforce.com
+ * @since Astra 3.5.0
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly.
+}
+
+define( 'ASTRA_RELATED_POSTS_DIR', ASTRA_THEME_DIR . 'inc/modules/related-posts/' );
+
+/**
+ * Related Posts Initial Setup
+ *
+ * @since 3.5.0
+ */
+class Astra_Related_Posts {
+
+ /**
+ * Constructor function that initializes required actions and hooks
+ *
+ * @since 3.5.0
+ */
+ public function __construct() {
+
+ // @codingStandardsIgnoreStart WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
+ require_once ASTRA_RELATED_POSTS_DIR . 'class-astra-related-posts-loader.php';
+ require_once ASTRA_RELATED_POSTS_DIR . 'class-astra-related-posts-markup.php';
+ // @codingStandardsIgnoreEnd WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
+
+ // Include front end files.
+ if ( ! is_admin() ) {
+ require_once ASTRA_RELATED_POSTS_DIR . 'css/static-css.php'; // phpcs:ignore: WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
+ require_once ASTRA_RELATED_POSTS_DIR . 'css/dynamic-css.php'; // phpcs:ignore: WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
+ }
+ }
+}
+
+/**
+ * Kicking this off by creating NEW instance.
+ */
+new Astra_Related_Posts();