PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.3
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.3
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 / configs / settings / class-sps-customcss.php

class-sps-customcss.php in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.3, at admin/views/configs/settings/class-sps-customcss.php

55 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The Custom CSS and JavaScript setting configurations.
4 *
5 * @package Smart_Post_Show
6 * @subpackage Smart_Post_Show/admin
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 die; } // Cannot access pages directly.
11
12 /**
13 * SPS_CustomCSS
14 */
15 class SPS_CustomCSS {
16
17 /**
18 * Custom CSS & JS settings.
19 *
20 * @param string $prefix The settings.
21 * @return void
22 */
23 public static function section( $prefix ) {
24 SP_PC::createSection(
25 $prefix,
26 array(
27 'title' => __( 'Additional CSS & JS', 'post-carousel' ),
28 'icon' => 'fa sps-icon-code',
29 'fields' => array(
30 array(
31 'id' => 'pcp_custom_css',
32 'type' => 'code_editor',
33 'title' => __( 'Custom CSS', 'post-carousel' ),
34 'settings' => array(
35 'icon' => 'fa fa-sliders',
36 'theme' => 'default',
37 'mode' => 'css',
38 ),
39 ),
40 array(
41 'id' => 'pcp_custom_js',
42 'type' => 'code_editor',
43 'title' => __( 'Custom JS', 'post-carousel' ),
44 'settings' => array(
45 'icon' => 'fa fa-sliders',
46 'theme' => 'default',
47 'mode' => 'javascript',
48 ),
49 ),
50 ),
51 )
52 );
53 }
54 }
55