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

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

79 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The Accessibility 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 accessibility setting class.
14 */
15 class SPS_Accessibility {
16
17 /**
18 * Accessibility 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' => __( 'Accessibility', 'post-carousel' ),
28 'icon' => 'fa fa-braille',
29 'fields' => array(
30 array(
31 'id' => 'accessibility',
32 'type' => 'switcher',
33 'title' => __( 'Carousel Accessibility', 'post-carousel' ),
34 'text_on' => __( 'Enabled', 'post-carousel' ),
35 'text_off' => __( 'Disabled', 'post-carousel' ),
36 'text_width' => 100,
37 'default' => true,
38 ),
39 array(
40 'id' => 'prev_slide_message',
41 'type' => 'text',
42 'title' => __( 'Previous Slide Message', 'post-carousel' ),
43 'default' => __( 'Previous slide', 'post-carousel' ),
44 'dependency' => array( 'accessibility', '==', 'true' ),
45 ),
46 array(
47 'id' => 'next_slide_message',
48 'type' => 'text',
49 'title' => __( 'Next Slide Message', 'post-carousel' ),
50 'default' => __( 'Next slide', 'post-carousel' ),
51 'dependency' => array( 'accessibility', '==', 'true' ),
52 ),
53 array(
54 'id' => 'first_slide_message',
55 'type' => 'text',
56 'title' => __( 'First Slide Message', 'post-carousel' ),
57 'default' => __( 'This is the first slide', 'post-carousel' ),
58 'dependency' => array( 'accessibility', '==', 'true' ),
59 ),
60 array(
61 'id' => 'last_slide_message',
62 'type' => 'text',
63 'title' => __( 'Last Slide Message', 'post-carousel' ),
64 'default' => __( 'This is the last slide', 'post-carousel' ),
65 'dependency' => array( 'accessibility', '==', 'true' ),
66 ),
67 array(
68 'id' => 'pagination_bullet_message',
69 'type' => 'text',
70 'title' => __( 'Pagination Bullet Message', 'post-carousel' ),
71 'default' => __( 'Go to slide {{index}}', 'post-carousel' ),
72 'dependency' => array( 'accessibility', '==', 'true' ),
73 ),
74 ),
75 )
76 );
77 }
78 }
79