PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 2.2.10
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v2.2.10
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / admin / views / sp-framework / classes / abstract.class.php

abstract.class.php in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 2.2.10, at admin/views/sp-framework/classes/abstract.class.php

63 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) {
2 die; } // Cannot access directly.
3 /**
4 *
5 * Abstract Class
6 *
7 * @since 1.0.0
8 * @version 1.0.0
9 */
10 if ( ! class_exists( 'SP_PC_Abstract' ) ) {
11 abstract class SP_PC_Abstract {
12
13 /**
14 * $abstract variable
15 *
16 * @var string
17 */
18 public $abstract = '';
19
20 /**
21 * $output_css variable
22 *
23 * @var string
24 */
25 public $output_css = '';
26
27 /**
28 * $typographies variable
29 *
30 * @var array
31 */
32 public $typographies = array();
33
34 /**
35 * Constructor of the class.
36 */
37 public function __construct() {
38
39 // Check for embed custom css styles.
40 if ( ! empty( $this->args['output_css'] ) ) {
41 add_action( 'wp_head', array( &$this, 'add_output_css' ), 100 );
42 }
43
44 }
45
46 /**
47 * Add output CSS.
48 *
49 * @return void
50 */
51 public function add_output_css() {
52
53 $this->output_css = apply_filters( "SP_PC_{$this->unique}_output_css", $this->output_css, $this );
54
55 if ( ! empty( $this->output_css ) ) {
56 echo '<style type="text/css">' . $this->output_css . '</style>';
57 }
58
59 }
60
61 }
62 }
63