| 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', 'smart-post-show' ), |
| 28 |
'icon' => 'fa fa-braille', |
| 29 |
'fields' => array( |
| 30 |
array( |
| 31 |
'id' => 'accessibility', |
| 32 |
'type' => 'switcher', |
| 33 |
'title' => __( 'Carousel Accessibility', 'smart-post-show' ), |
| 34 |
'text_on' => __( 'Enabled', 'smart-post-show' ), |
| 35 |
'text_off' => __( 'Disabled', 'smart-post-show' ), |
| 36 |
'text_width' => 100, |
| 37 |
'default' => true, |
| 38 |
), |
| 39 |
array( |
| 40 |
'id' => 'prev_slide_message', |
| 41 |
'type' => 'text', |
| 42 |
'title' => __( 'Previous Slide Message', 'smart-post-show' ), |
| 43 |
'default' => __( 'Previous slide', 'smart-post-show' ), |
| 44 |
'dependency' => array( 'accessibility', '==', 'true' ), |
| 45 |
), |
| 46 |
array( |
| 47 |
'id' => 'next_slide_message', |
| 48 |
'type' => 'text', |
| 49 |
'title' => __( 'Next Slide Message', 'smart-post-show' ), |
| 50 |
'default' => __( 'Next slide', 'smart-post-show' ), |
| 51 |
'dependency' => array( 'accessibility', '==', 'true' ), |
| 52 |
), |
| 53 |
array( |
| 54 |
'id' => 'first_slide_message', |
| 55 |
'type' => 'text', |
| 56 |
'title' => __( 'First Slide Message', 'smart-post-show' ), |
| 57 |
'default' => __( 'This is the first slide', 'smart-post-show' ), |
| 58 |
'dependency' => array( 'accessibility', '==', 'true' ), |
| 59 |
), |
| 60 |
array( |
| 61 |
'id' => 'last_slide_message', |
| 62 |
'type' => 'text', |
| 63 |
'title' => __( 'Last Slide Message', 'smart-post-show' ), |
| 64 |
'default' => __( 'This is the last slide', 'smart-post-show' ), |
| 65 |
'dependency' => array( 'accessibility', '==', 'true' ), |
| 66 |
), |
| 67 |
array( |
| 68 |
'id' => 'pagination_bullet_message', |
| 69 |
'type' => 'text', |
| 70 |
'title' => __( 'Pagination Bullet Message', 'smart-post-show' ), |
| 71 |
'default' => __( 'Go to slide {{index}}', 'smart-post-show' ), |
| 72 |
'dependency' => array( 'accessibility', '==', 'true' ), |
| 73 |
), |
| 74 |
), |
| 75 |
) |
| 76 |
); |
| 77 |
} |
| 78 |
} |
| 79 |
|