PluginProbe ʕ •ᴥ•ʔ
GDPR Cookie Compliance – Cookie Banner, Cookie Consent, Cookie Notice for CCPA, EU Cookie Law / 4.4.8
GDPR Cookie Compliance – Cookie Banner, Cookie Consent, Cookie Notice for CCPA, EU Cookie Law v4.4.8
5.0.14 5.0.13 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.2.0 3.2.1 4.0.0 4.0.1 4.0.2 4.0.3 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.10.0 4.10.1 4.10.2 4.10.3 4.10.4 4.10.5 4.10.6 4.11.0 4.11.1 4.11.2 4.12.0 4.12.1 4.12.2 4.12.3 4.12.4 4.12.5 4.12.6 4.12.7 4.12.8 4.13.0 4.13.1 4.13.2 4.13.3 4.13.4 4.14.0 4.15.0 4.15.1 4.15.10 4.15.2 4.15.3 4.15.4 4.15.5 4.15.6 4.15.7 4.15.8 4.15.9 4.16.1 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6 4.3.7 4.3.8 4.3.9 4.4.0 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.5.0 4.5.1 4.5.10 4.5.11 4.5.12 4.5.13 4.5.2 4.5.3 4.5.4 4.5.5 4.5.6 4.5.7 4.5.8 4.5.9 4.6.0 4.6.1 4.6.2 4.6.3 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 4.7.7 4.8.0 4.8.1 4.8.10 4.8.11 4.8.12 4.8.13 4.8.2 4.8.3 4.8.4 4.8.5 4.8.6 4.8.7 4.8.8 4.8.9 4.9.1 4.9.2 4.9.3 4.9.4 4.9.5 4.9.6 4.9.7 5.0.0 5.0.1 5.0.10 5.0.11 5.0.12 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.0.9 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2
gdpr-cookie-compliance / class-gdpr-modules-view.php
gdpr-cookie-compliance Last commit date
controllers 5 years ago dist 5 years ago gdpr-modules 5 years ago languages 5 years ago views 5 years ago class-gdpr-modules-view.php 5 years ago class-gdpr-modules.php 5 years ago class-gdpr-view.php 5 years ago class-moove-gdpr-actions.php 5 years ago class-moove-gdpr-content.php 5 years ago class-moove-gdpr-options.php 5 years ago gdpr-functions.php 5 years ago moove-gdpr.php 5 years ago readme.txt 5 years ago
class-gdpr-modules-view.php
42 lines
1 <?php
2 /**
3 * GDPR_Modules_View File Doc Comment
4 *
5 * @category GDPR_Modules_View
6 * @package gdpr-cookie-compliance
7 * @author Gaspar Nemes
8 */
9
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit;
12 } // Exit if accessed directly
13
14 /**
15 * GDPR_Modules_View Class Doc Comment
16 *
17 * @category Class
18 * @package GDPR_Modules_View
19 * @author Gaspar Nemes
20 */
21 class GDPR_Modules_View {
22 /**
23 * Load and update view
24 *
25 * Parameters:
26 *
27 * @param string $view // the view to load, dot used as directory separator, no file extension given.
28 * @param mixed $content // The data to display in the view (could be anything, even an object).
29 */
30 public static function load( $view, $content ) {
31 $view_file_origin = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'gdpr-modules';
32 $view_name = str_replace( '.', DIRECTORY_SEPARATOR, $view ) . '.php';
33 $locate_template = locate_template( 'gdpr-modules' . DIRECTORY_SEPARATOR . $view_name );
34 $view_file_origin = $locate_template ? $locate_template : $view_file_origin . DIRECTORY_SEPARATOR . $view_name;
35 if ( file_exists( $view_file_origin ) ) :
36 ob_start();
37 include $view_file_origin;
38 return ob_get_clean();
39 endif;
40 }
41 }
42