PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 2.4.2
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v2.4.2
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-scriptsandstyles.php

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

70 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The Enqueue and Dequeue CSS and JS files 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 * The Layout building class.
14 */
15 class SPS_ScriptsAndStyles {
16
17 /**
18 * Advanced setting section.
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' => __( 'Scripts & Styles', 'smart-post-show' ),
28 'icon' => 'fa fa-file-code-o',
29 'fields' => array(
30 array(
31 'type' => 'subheading',
32 'content' => __( 'Enqueue or Dequeue JS', 'smart-post-show' ),
33 ),
34 array(
35 'id' => 'pcp_swiper_js',
36 'type' => 'switcher',
37 'title' => __( 'Swiper JS', 'smart-post-show' ),
38 'text_on' => __( 'Enqueued', 'smart-post-show' ),
39 'text_off' => __( 'Dequeued', 'smart-post-show' ),
40 'text_width' => 95,
41 'default' => true,
42 ),
43 array(
44 'type' => 'subheading',
45 'content' => __( 'Enqueue or Dequeue CSS', 'smart-post-show' ),
46 ),
47 array(
48 'id' => 'pcp_swiper_css',
49 'type' => 'switcher',
50 'title' => __( 'Swiper CSS', 'smart-post-show' ),
51 'text_on' => __( 'Enqueued', 'smart-post-show' ),
52 'text_off' => __( 'Dequeued', 'smart-post-show' ),
53 'text_width' => 95,
54 'default' => true,
55 ),
56 array(
57 'id' => 'pcp_fontawesome_css',
58 'type' => 'switcher',
59 'title' => __( 'Font Awesome CSS', 'smart-post-show' ),
60 'text_on' => __( 'Enqueued', 'smart-post-show' ),
61 'text_off' => __( 'Dequeued', 'smart-post-show' ),
62 'text_width' => 95,
63 'default' => true,
64 ),
65 ),
66 )
67 );
68 }
69 }
70