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-scriptsandstyles.php

class-sps-scriptsandstyles.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-scriptsandstyles.php

71 lines 1.9 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' => __( 'Control Assets', 'post-carousel' ),
28 'icon' => 'fa fa-tasks',
29 'fields' => array(
30 array(
31 'id' => 'pcp_swiper_js',
32 'type' => 'switcher',
33 'title' => __( 'Swiper JS', 'post-carousel' ),
34 'text_on' => __( 'Enqueued', 'post-carousel' ),
35 'text_off' => __( 'Dequeued', 'post-carousel' ),
36 'text_width' => 110,
37 'default' => true,
38 ),
39 array(
40 'id' => 'pcp_swiper_css',
41 'type' => 'switcher',
42 'title' => __( 'Swiper CSS', 'post-carousel' ),
43 'text_on' => __( 'Enqueued', 'post-carousel' ),
44 'text_off' => __( 'Dequeued', 'post-carousel' ),
45 'text_width' => 110,
46 'default' => true,
47 ),
48 array(
49 'id' => 'pcp_fontawesome_css',
50 'type' => 'switcher',
51 'title' => __( 'Font Awesome CSS', 'post-carousel' ),
52 'text_on' => __( 'Enqueued', 'post-carousel' ),
53 'text_off' => __( 'Dequeued', 'post-carousel' ),
54 'text_width' => 110,
55 'default' => true,
56 ),
57
58 array(
59 'id' => 'pcp_delete_all_data',
60 'type' => 'checkbox',
61 'class' => 'pcp-delete-data',
62 'title' => __( 'Clean-up Data on Deletion', 'post-carousel' ),
63 'title_info' => __( 'Delete all Smart Post Show data from the database on plugin uninstalling and deletion.', 'post-carousel' ),
64 'default' => false,
65 ),
66 ),
67 )
68 );
69 }
70 }
71