PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 2.4.1
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v2.4.1
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.4.1, at admin/views/sp-framework/classes/abstract.class.php

64 lines 1.1 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 if ( ! class_exists( 'SP_PC_Abstract' ) ) {
5 /**
6 *
7 * Abstract Class
8 *
9 * @since 1.0.0
10 * @version 1.0.0
11 */
12 abstract class SP_PC_Abstract {
13
14 /**
15 * $abstract variable
16 *
17 * @var string
18 */
19 public $abstract = '';
20
21 /**
22 * $output_css variable
23 *
24 * @var string
25 */
26 public $output_css = '';
27
28 /**
29 * $typographies variable
30 *
31 * @var array
32 */
33 public $typographies = array();
34
35 /**
36 * Constructor of the class.
37 */
38 public function __construct() {
39
40 // Check for embed custom css styles.
41 if ( ! empty( $this->args['output_css'] ) ) {
42 add_action( 'wp_head', array( &$this, 'add_output_css' ), 100 );
43 }
44
45 }
46
47 /**
48 * Add output CSS.
49 *
50 * @return void
51 */
52 public function add_output_css() {
53
54 $this->output_css = apply_filters( "SP_PC_{$this->unique}_output_css", $this->output_css, $this );
55
56 if ( ! empty( $this->output_css ) ) {
57 echo '<style type="text/css">' . esc_html( $this->output_css ) . '</style>';
58 }
59
60 }
61
62 }
63 }
64