PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 2.4.0
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v2.4.0
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 2.4.0, at admin/views/configs/settings/class-sps-customcss.php

52 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 class SPS_CustomCSS {
13
14 /**
15 * Custom CSS & JS settings.
16 *
17 * @param string $prefix The settings.
18 * @return void
19 */
20 public static function section( $prefix ) {
21 SP_PC::createSection(
22 $prefix,
23 array(
24 'title' => __( 'Custom CSS & JS', 'smart-post-show' ),
25 'icon' => 'fa fa-css3',
26 'fields' => array(
27 array(
28 'id' => 'pcp_custom_css',
29 'type' => 'code_editor',
30 'title' => __( 'Custom CSS', 'smart-post-show' ),
31 'settings' => array(
32 'icon' => 'fa fa-sliders',
33 'theme' => 'mbo',
34 'mode' => 'css',
35 ),
36 ),
37 array(
38 'id' => 'pcp_custom_js',
39 'type' => 'code_editor',
40 'title' => __( 'Custom JS', 'smart-post-show' ),
41 'settings' => array(
42 'icon' => 'fa fa-sliders',
43 'theme' => 'monokai',
44 'mode' => 'javascript',
45 ),
46 ),
47 ),
48 )
49 );
50 }
51 }
52