Version Description
- Changed: Main PHP file structure.
- Changed: GET variable in slider edit page.
- Fixed: Keyboard, Mouse swipe, Touch swipe navigation.
Download this release
Release Info
Developer | webdorado |
Plugin | Slider by WD – Responsive Slider |
Version | 1.2.6 |
Comparing to | |
See all releases |
Code changes from version 1.2.5 to 1.2.6
- admin/controllers/Sliders.php +1209 -0
- admin/controllers/WDSControllerGoptions_wds.php +4 -4
- admin/controllers/WDSControllerSliders_wds.php +0 -1409
- admin/controllers/WDSControllerUninstall_wds.php +6 -6
- admin/controllers/WDSControllerWDSExport.php +2 -2
- admin/controllers/WDSControllerWDSShortcode.php +2 -2
- admin/controllers/WDSControllerWidgetSlideshow.php +4 -4
- admin/controllers/embed.php +1 -1
- admin/controllers/posts.php +2 -2
- admin/models/Sliders.php +598 -0
- admin/models/WDSModelSliders_wds.php +0 -306
- admin/views/AdminView.php +335 -0
- admin/views/{WDSViewSliders_wds.php → Sliders.php} +977 -1014
- admin/views/WDSViewGoptions_wds.php +143 -143
- admin/views/WDSViewUninstall_wds.php +17 -17
- admin/views/WDSViewWDSExport.php +11 -11
- admin/views/WDSViewWDSShortcode.php +4 -4
- admin/views/WDSViewWidgetSlideshow.php +4 -4
- admin/views/embed.php +4 -4
- admin/views/posts.php +4 -4
- css/notices.css +1 -1
- css/wds_tables.css +11 -3
- demo_sliders/demo_sliders.php +70 -67
- demo_sliders/style.css +4 -0
- filemanager/UploadHandler.php +1 -1
- filemanager/controller.php +13 -14
- filemanager/model.php +3 -4
- filemanager/view.php +16 -16
- framework/WDW_S_Library.php +369 -228
- frontend/controllers/WDSControllerSlider.php +2 -2
- frontend/views/WDSViewSlider.php +20 -20
- js/wds.js +37 -4
- js/wds_frontend.js +4 -5
- licensing/licensing.php +30 -30
- readme.txt +50 -25
- slider-wd.php +1161 -978
- sliders-insert.php +16 -16
- sliders-update.php +11 -11
- wd/.gitignore +2 -0
admin/controllers/Sliders.php
ADDED
@@ -0,0 +1,1209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class SlidersController_wds
|
5 |
+
*/
|
6 |
+
class SlidersController_wds {
|
7 |
+
/**
|
8 |
+
* @var $model
|
9 |
+
*/
|
10 |
+
private $model;
|
11 |
+
/**
|
12 |
+
* @var $view
|
13 |
+
*/
|
14 |
+
private $view;
|
15 |
+
/**
|
16 |
+
* @var string $page
|
17 |
+
*/
|
18 |
+
private $page;
|
19 |
+
/**
|
20 |
+
* @var int $items_per_page
|
21 |
+
*/
|
22 |
+
private $items_per_page = 20;
|
23 |
+
/**
|
24 |
+
* @var array $actions
|
25 |
+
*/
|
26 |
+
private $actions = array();
|
27 |
+
|
28 |
+
/**
|
29 |
+
* SlidersController_wds constructor.
|
30 |
+
* @param array $args
|
31 |
+
*/
|
32 |
+
public function __construct( $args = array() ) {
|
33 |
+
$this->model = $args['model'];
|
34 |
+
$this->view = $args['view'];
|
35 |
+
$this->page = WDW_S_Library::get('page');
|
36 |
+
$this->actions = array(
|
37 |
+
'publish' => array(
|
38 |
+
'title' => __('Publish', WDS()->prefix),
|
39 |
+
'bulk_action' => __('published', WDS()->prefix),
|
40 |
+
),
|
41 |
+
'unpublish' => array(
|
42 |
+
'title' => __('Unpublish', WDS()->prefix),
|
43 |
+
'bulk_action' => __('unpublished', WDS()->prefix),
|
44 |
+
),
|
45 |
+
'delete' => array(
|
46 |
+
'title' => __('Delete', WDS()->prefix),
|
47 |
+
'bulk_action' => __('deleted', WDS()->prefix),
|
48 |
+
),
|
49 |
+
'duplicate' => array(
|
50 |
+
'title' => __('Duplicate', WDS()->prefix),
|
51 |
+
'bulk_action' => __('duplicated', WDS()->prefix),
|
52 |
+
),
|
53 |
+
'export' => array(
|
54 |
+
'title' => __('Export', WDS()->prefix),
|
55 |
+
'bulk_action' => __('export', WDS()->prefix),
|
56 |
+
),
|
57 |
+
'merge' => array(
|
58 |
+
'title' => __('Merge', WDS()->prefix),
|
59 |
+
'bulk_action' => __('merged', WDS()->prefix),
|
60 |
+
),
|
61 |
+
);
|
62 |
+
$user = get_current_user_id();
|
63 |
+
$screen = get_current_screen();
|
64 |
+
$option = $screen->get_option('per_page', 'option');
|
65 |
+
$this->items_per_page = get_user_meta($user, $option, TRUE);
|
66 |
+
|
67 |
+
if ( empty ($this->items_per_page) || $this->items_per_page < 1 ) {
|
68 |
+
$this->items_per_page = $screen->get_option('per_page', 'default');
|
69 |
+
}
|
70 |
+
}
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Execute.
|
74 |
+
*/
|
75 |
+
public function execute() {
|
76 |
+
$task = WDW_S_Library::get('task');
|
77 |
+
$action = WDW_S_Library::get('bulk_action', -1);
|
78 |
+
$id = (int) WDW_S_Library::get('current_id', 0);
|
79 |
+
if ( method_exists($this, $task) ) {
|
80 |
+
if ( $task != 'edit' && $task != 'display' ) {
|
81 |
+
check_admin_referer(WDS()->nonce, WDS()->nonce);
|
82 |
+
}
|
83 |
+
$action = WDW_S_Library::get('bulk_action', -1);
|
84 |
+
if ( $action != -1 ) {
|
85 |
+
$this->bulk_action( $action );
|
86 |
+
}
|
87 |
+
else {
|
88 |
+
$this->$task( $id );
|
89 |
+
}
|
90 |
+
}
|
91 |
+
else {
|
92 |
+
$this->display();
|
93 |
+
}
|
94 |
+
}
|
95 |
+
|
96 |
+
/**
|
97 |
+
* Bulk actions.
|
98 |
+
*
|
99 |
+
* @param $task
|
100 |
+
*/
|
101 |
+
public function bulk_action( $task = '' ) {
|
102 |
+
$message = 0;
|
103 |
+
$successfully_updated = 0;
|
104 |
+
$url_arg = array('page' => $this->page, 'task' => 'display');
|
105 |
+
$check = WDW_S_Library::get('check', '');
|
106 |
+
$all = WDW_S_Library::get('check_all_items', '');
|
107 |
+
$all = ($all == 'on' ? TRUE : FALSE);
|
108 |
+
|
109 |
+
if ( method_exists($this, $task) ) {
|
110 |
+
if ( $all ) {
|
111 |
+
$message = $this->$task(0, TRUE, TRUE);
|
112 |
+
$url_arg['message'] = $message;
|
113 |
+
}
|
114 |
+
else {
|
115 |
+
if ( $check ) {
|
116 |
+
foreach ( $check as $id => $item ) {
|
117 |
+
$message = $this->$task($id, TRUE);
|
118 |
+
if ( $message != 2 ) {
|
119 |
+
// Increase successfully updated items count, if action doesn't failed.
|
120 |
+
$successfully_updated++;
|
121 |
+
}
|
122 |
+
}
|
123 |
+
}
|
124 |
+
if ( $successfully_updated ) {
|
125 |
+
$message = sprintf(_n('%s item successfully %s.', '%s items successfully %s.', $successfully_updated, WDS()->prefix), $successfully_updated, $this->actions[$task]['bulk_action']);
|
126 |
+
}
|
127 |
+
$key = ($message === 2 ? 'message' : 'msg');
|
128 |
+
$url_arg[$key] = $message;
|
129 |
+
}
|
130 |
+
}
|
131 |
+
WDW_S_Library::redirect( add_query_arg($url_arg, admin_url('admin.php')) );
|
132 |
+
}
|
133 |
+
|
134 |
+
/**
|
135 |
+
* Display.
|
136 |
+
*/
|
137 |
+
public function display() {
|
138 |
+
// Set params for view.
|
139 |
+
$params = array();
|
140 |
+
$params['page'] = $this->page;
|
141 |
+
$params['page_title'] = __('Sliders', WDS()->prefix);
|
142 |
+
$params['actions'] = $this->actions;
|
143 |
+
$params['order'] = WDW_S_Library::get('order', 'asc');
|
144 |
+
$params['orderby'] = WDW_S_Library::get('orderby', 'name');
|
145 |
+
// To prevent SQL injections.
|
146 |
+
$params['order'] = ($params['order'] == 'desc') ? 'desc' : 'asc';
|
147 |
+
if ( !in_array($params['orderby'], array( 'name' )) ) {
|
148 |
+
$params['orderby'] = 'id';
|
149 |
+
}
|
150 |
+
$params['items_per_page'] = $this->items_per_page;
|
151 |
+
$page = (int) WDW_S_Library::get('paged', 1);
|
152 |
+
$page_num = $page ? ($page - 1) * $params['items_per_page'] : 0;
|
153 |
+
$params['page_num'] = $page_num;
|
154 |
+
$params['search'] = WDW_S_Library::get('s', '');
|
155 |
+
|
156 |
+
$params['preview_url'] = $this->model->get_slide_preview_post();
|
157 |
+
$data = $this->model->get_rows_data($params);
|
158 |
+
if ( !empty($data['rows']) ) {
|
159 |
+
$ids = array();
|
160 |
+
foreach( $data['rows'] as $row ) {
|
161 |
+
$ids[] = $row->id;
|
162 |
+
}
|
163 |
+
// Get slides more info.
|
164 |
+
$params['slides_info'] = $this->model->get_slides_info( array('ids' => $ids) );
|
165 |
+
}
|
166 |
+
$params['rows'] = $data['rows'];
|
167 |
+
$params['total'] = $data['total'];
|
168 |
+
|
169 |
+
$url_arg = array();
|
170 |
+
$page_url = add_query_arg( array(
|
171 |
+
'page' => $this->page,
|
172 |
+
WDS()->nonce => wp_create_nonce(WDS()->nonce),
|
173 |
+
), admin_url('admin.php') );
|
174 |
+
$params['page_url'] = add_query_arg($url_arg, $page_url);
|
175 |
+
|
176 |
+
$this->view->display( $params );
|
177 |
+
}
|
178 |
+
|
179 |
+
/**
|
180 |
+
* Edit.
|
181 |
+
*
|
182 |
+
* @param $id
|
183 |
+
* @param bool $bulk
|
184 |
+
* @param bool $all
|
185 |
+
*
|
186 |
+
* @return int
|
187 |
+
*/
|
188 |
+
public function edit( $id = 0, $reset = FALSE ) {
|
189 |
+
$row = $this->model->get_row_data($id, $reset);
|
190 |
+
if ( $id != 0 && empty($row->id) ) {
|
191 |
+
WDW_S_Library::redirect( add_query_arg( array('page' => $this->page, 'task' => 'display'), admin_url('admin.php') ) );
|
192 |
+
}
|
193 |
+
$slides_row = $this->model->get_slides_row_data($id);
|
194 |
+
$layers_row = array();
|
195 |
+
if ( !empty($slides_row) ) {
|
196 |
+
foreach ( $slides_row as $slide_row) {
|
197 |
+
$slide_ids[] = $slide_row->id;
|
198 |
+
}
|
199 |
+
$layers_row = $this->model->get_layers_row_data( $slide_ids );
|
200 |
+
}
|
201 |
+
$wds_global_options = get_option("wds_global_options", 0);
|
202 |
+
$options_values = WDW_S_Library::get_values();
|
203 |
+
$global_options = json_decode($wds_global_options);
|
204 |
+
$page_title = __('Create new slider', WDS()->prefix);
|
205 |
+
$save_btn_name = __('Publish', WDS()->prefix);
|
206 |
+
if ( $id ) {
|
207 |
+
$page_title = sprintf(__('Edit slider %s', WDS()->prefix), $row->name);
|
208 |
+
$save_btn_name = __('Update', WDS()->prefix);
|
209 |
+
}
|
210 |
+
|
211 |
+
// Set params for view.
|
212 |
+
$params = array();
|
213 |
+
$params['id'] = $id;
|
214 |
+
$params['row'] = $row;
|
215 |
+
$params['slides_row'] = $slides_row;
|
216 |
+
$params['layers_row'] = $layers_row;
|
217 |
+
$params['global_options'] = $global_options;
|
218 |
+
$params['options_values'] = $options_values;
|
219 |
+
$params['slider_preview_link'] = $this->model->get_slide_preview_post();
|
220 |
+
$params['sub_tab_type'] = WDW_S_Library::get('sub_tab', '');
|
221 |
+
$params['page_title'] = $page_title;
|
222 |
+
$params['save_btn_name'] = $save_btn_name;
|
223 |
+
|
224 |
+
$this->view->edit( $params );
|
225 |
+
}
|
226 |
+
|
227 |
+
/**
|
228 |
+
* Apply.
|
229 |
+
*
|
230 |
+
* @param int $id
|
231 |
+
*/
|
232 |
+
public function apply( $id = 0 ) {
|
233 |
+
$save = $this->save_slider_db();
|
234 |
+
$id = $save['id'];
|
235 |
+
$this->save_slide_db( $id );
|
236 |
+
// TODO. need works the other version.
|
237 |
+
// $this->create_frontend_js_file( $id );
|
238 |
+
$this->edit( $id );
|
239 |
+
}
|
240 |
+
|
241 |
+
/**
|
242 |
+
* Publish.
|
243 |
+
*
|
244 |
+
* @param $id
|
245 |
+
* @param bool $bulk
|
246 |
+
* @param bool $all
|
247 |
+
*
|
248 |
+
* @return int
|
249 |
+
*/
|
250 |
+
public function publish( $id = 0, $bulk = FALSE, $all = FALSE ) {
|
251 |
+
$message = $this->model->publish($id, $all);
|
252 |
+
if ( $bulk ) {
|
253 |
+
return $message;
|
254 |
+
}
|
255 |
+
|
256 |
+
WDW_S_Library::redirect( add_query_arg( array(
|
257 |
+
'page' => $this->page,
|
258 |
+
'task' => 'display',
|
259 |
+
'message' => $message,
|
260 |
+
), admin_url('admin.php')));
|
261 |
+
}
|
262 |
+
|
263 |
+
/**
|
264 |
+
* Unpublish.
|
265 |
+
*
|
266 |
+
* @param $id
|
267 |
+
* @param bool $bulk
|
268 |
+
* @param bool $all
|
269 |
+
*
|
270 |
+
* @return int
|
271 |
+
*/
|
272 |
+
public function unpublish( $id = 0, $bulk = FALSE, $all = FALSE ) {
|
273 |
+
$message = $this->model->unpublish( $id, $all );
|
274 |
+
if ( $bulk ) {
|
275 |
+
return $message;
|
276 |
+
}
|
277 |
+
|
278 |
+
WDW_S_Library::redirect( add_query_arg( array(
|
279 |
+
'page' => $this->page,
|
280 |
+
'task' => 'display',
|
281 |
+
'message' => $message,
|
282 |
+
), admin_url('admin.php')));
|
283 |
+
}
|
284 |
+
|
285 |
+
/**
|
286 |
+
* Delete.
|
287 |
+
*
|
288 |
+
* @param $id
|
289 |
+
* @param bool $bulk
|
290 |
+
* @param bool $all
|
291 |
+
*
|
292 |
+
* @return int
|
293 |
+
*/
|
294 |
+
public function delete( $id = 0, $bulk = FALSE, $all = FALSE ) {
|
295 |
+
$message = $this->model->delete($id, $all);
|
296 |
+
if ( $bulk ) {
|
297 |
+
return $message;
|
298 |
+
}
|
299 |
+
|
300 |
+
WDW_S_Library::redirect( add_query_arg( array(
|
301 |
+
'page' => $this->page,
|
302 |
+
'task' => 'display',
|
303 |
+
'message' => $message,
|
304 |
+
), admin_url('admin.php')));
|
305 |
+
}
|
306 |
+
|
307 |
+
/**
|
308 |
+
* Duplicate.
|
309 |
+
*
|
310 |
+
* @param $id
|
311 |
+
* @param bool $bulk
|
312 |
+
* @param bool $all
|
313 |
+
*
|
314 |
+
* @return int
|
315 |
+
*/
|
316 |
+
public function duplicate( $id = 0, $bulk = FALSE, $all = FALSE ) {
|
317 |
+
$message = $this->model->duplicate($id, $all);
|
318 |
+
if ( $bulk ) {
|
319 |
+
return $message;
|
320 |
+
}
|
321 |
+
|
322 |
+
WDW_S_Library::redirect( add_query_arg( array(
|
323 |
+
'page' => $this->page,
|
324 |
+
'task' => 'display',
|
325 |
+
'message' => $message,
|
326 |
+
), admin_url('admin.php')));
|
327 |
+
}
|
328 |
+
|
329 |
+
/**
|
330 |
+
* Reset.
|
331 |
+
*
|
332 |
+
* @param int $id
|
333 |
+
*/
|
334 |
+
public function reset( $id = 0 ) {
|
335 |
+
echo WDW_S_Library::message('Changes must be saved.', 'wd_error');
|
336 |
+
$this->edit( $id, TRUE);
|
337 |
+
}
|
338 |
+
|
339 |
+
/**
|
340 |
+
* Merge sliders.
|
341 |
+
*
|
342 |
+
* @param int $id
|
343 |
+
*/
|
344 |
+
public function merge( $id = 0 ) {
|
345 |
+
$id = WDW_S_Library::get('select_slider_merge');
|
346 |
+
$all = WDW_S_Library::get('check_all_items');
|
347 |
+
$message_id = $this->model->merge($id, $all);
|
348 |
+
echo WDW_S_Library::message_id($message_id);
|
349 |
+
$this->display();
|
350 |
+
}
|
351 |
+
|
352 |
+
/**
|
353 |
+
* Save slider DB.
|
354 |
+
*
|
355 |
+
* @param int $id
|
356 |
+
*
|
357 |
+
* @return array $data
|
358 |
+
*/
|
359 |
+
public function save_slider_db( $id = 0) {
|
360 |
+
global $wpdb;
|
361 |
+
$allow = TRUE;
|
362 |
+
if ( WDS()->is_free && get_option("wds_theme_version") ) {
|
363 |
+
$allow = FALSE;
|
364 |
+
}
|
365 |
+
$slider_id = (isset($_POST['current_id']) ? (int) $_POST['current_id'] : $id);
|
366 |
+
$slider_data = (isset($_POST['slider_data']) ? stripslashes($_POST['slider_data']) : '');
|
367 |
+
$params_array = json_decode($slider_data, TRUE);
|
368 |
+
$del_slide_ids_string = (isset($params_array['del_slide_ids_string']) ? substr(esc_html(stripslashes($params_array['del_slide_ids_string'])), 0, -1) : '');
|
369 |
+
if ($del_slide_ids_string) {
|
370 |
+
$wpdb->query('DELETE FROM ' . $wpdb->prefix . 'wdsslide WHERE slider_id=' . $slider_id . ' AND id IN (' . $del_slide_ids_string . ')');
|
371 |
+
}
|
372 |
+
$name = ((isset($params_array['name'])) ? esc_html(stripslashes($params_array['name'])) : '');
|
373 |
+
$published = ((isset($params_array['published'])) ? (int) esc_html(stripslashes($params_array['published'])) : 1);
|
374 |
+
$full_width = ((isset($params_array['full_width'])) ? (int) esc_html(stripslashes($params_array['full_width'])) : 0);
|
375 |
+
$auto_height = ((isset($params_array['auto_height'])) ? (int) esc_html(stripslashes($params_array['auto_height'])) : 0);
|
376 |
+
$width = ((isset($params_array['width'])) ? (int) esc_html(stripslashes($params_array['width'])) : 900);
|
377 |
+
$height = ((isset($params_array['height'])) ? (int) esc_html((stripslashes($params_array['height']))) : 400);
|
378 |
+
$align = ((isset($params_array['align'])) ? esc_html(stripslashes($params_array['align'])) : 'center');
|
379 |
+
$effect = ((isset($params_array['effect'])) ? esc_html(stripslashes($params_array['effect'])) : 'fade');
|
380 |
+
$time_intervval = ((isset($params_array['time_intervval'])) ? (int) esc_html(stripslashes($params_array['time_intervval'])) : 5);
|
381 |
+
$autoplay = ((isset($params_array['autoplay'])) ? (int) esc_html(stripslashes($params_array['autoplay'])) : 1);
|
382 |
+
$shuffle = ((isset($params_array['shuffle'])) ? (int) esc_html(stripslashes($params_array['shuffle'])) : 0);
|
383 |
+
$music = ((isset($params_array['music'])) ? (int) esc_html(stripslashes($params_array['music'])) : 0);
|
384 |
+
if ( isset($params_array['music_url']) && WDW_S_Library::validate_audio_file($params_array['music_url']) ) {
|
385 |
+
$music_url = esc_html(stripslashes($params_array['music_url']));
|
386 |
+
$music_url = str_replace(site_url(), '{site_url}', $music_url);
|
387 |
+
}
|
388 |
+
else {
|
389 |
+
$music_url = '';
|
390 |
+
}
|
391 |
+
$preload_images = ((isset($params_array['preload_images'])) ? (int) esc_html(stripslashes($params_array['preload_images'])) : 1);
|
392 |
+
$background_color = ((isset($params_array['background_color'])) ? esc_html(stripslashes($params_array['background_color'])) : '000000');
|
393 |
+
$background_transparent = ((isset($params_array['background_transparent'])) ? (int) esc_html(stripslashes($params_array['background_transparent'])) : 100);
|
394 |
+
$glb_border_width = ((isset($params_array['glb_border_width'])) ? (int) esc_html(stripslashes($params_array['glb_border_width'])) : 0);
|
395 |
+
$glb_border_style = ((isset($params_array['glb_border_style'])) ? esc_html(stripslashes($params_array['glb_border_style'])) : 'none');
|
396 |
+
$glb_border_color = ((isset($params_array['glb_border_color'])) ? esc_html(stripslashes($params_array['glb_border_color'])) : '000000');
|
397 |
+
$glb_border_radius = ((isset($params_array['glb_border_radius'])) ? esc_html(stripslashes($params_array['glb_border_radius'])) : '');
|
398 |
+
$glb_margin = ((isset($params_array['glb_margin'])) ? (int) esc_html(stripslashes($params_array['glb_margin'])) : 0);
|
399 |
+
$glb_box_shadow = ((isset($params_array['glb_box_shadow'])) ? esc_html(stripslashes($params_array['glb_box_shadow'])) : '');
|
400 |
+
$image_right_click = ((isset($params_array['image_right_click'])) ? (int) esc_html(stripslashes($params_array['image_right_click'])) : 0);
|
401 |
+
$layer_out_next = ((isset($params_array['layer_out_next'])) ? (int) esc_html(stripslashes($params_array['layer_out_next'])) : 0);
|
402 |
+
$prev_next_butt = ((isset($params_array['prev_next_butt'])) ? (int) esc_html(stripslashes($params_array['prev_next_butt'])) : 1);
|
403 |
+
$play_paus_butt = ((isset($params_array['play_paus_butt'])) ? (int) esc_html(stripslashes($params_array['play_paus_butt'])) : 0);
|
404 |
+
$navigation = ((isset($params_array['navigation'])) ? esc_html(stripslashes($params_array['navigation'])) : 'hover');
|
405 |
+
$rl_butt_style = ((isset($params_array['rl_butt_style'])) ? esc_html(stripslashes($params_array['rl_butt_style'])) : 'fa-angle');
|
406 |
+
$rl_butt_size = ((isset($params_array['rl_butt_size'])) ? (int) esc_html(stripslashes($params_array['rl_butt_size'])) : 40);
|
407 |
+
$pp_butt_size = ((isset($params_array['pp_butt_size'])) ? (int) esc_html(stripslashes($params_array['pp_butt_size'])) : 40);
|
408 |
+
$butts_color = ((isset($params_array['butts_color'])) ? esc_html(stripslashes($params_array['butts_color'])) : '000000');
|
409 |
+
$butts_transparent = ((isset($params_array['butts_transparent'])) ? (int) esc_html(stripslashes($params_array['butts_transparent'])) : 100);
|
410 |
+
$hover_color = ((isset($params_array['hover_color'])) ? esc_html(stripslashes($params_array['hover_color'])) : 'FFFFFF');
|
411 |
+
$nav_border_width = ((isset($params_array['nav_border_width'])) ? (int) esc_html(stripslashes($params_array['nav_border_width'])) : 0);
|
412 |
+
$nav_border_style = ((isset($params_array['nav_border_style'])) ? esc_html(stripslashes($params_array['nav_border_style'])) : 'none');
|
413 |
+
$nav_border_color = ((isset($params_array['nav_border_color'])) ? esc_html(stripslashes($params_array['nav_border_color'])) : 'FFFFFF');
|
414 |
+
$nav_border_radius = ((isset($params_array['nav_border_radius'])) ? esc_html(stripslashes($params_array['nav_border_radius'])) : '20px');
|
415 |
+
$nav_bg_color = ((isset($params_array['nav_bg_color'])) ? esc_html(stripslashes($params_array['nav_bg_color'])) : 'FFFFFF');
|
416 |
+
$bull_position = ((isset($params_array['bull_position'])) ? esc_html(stripslashes($params_array['bull_position'])) : 'bottom');
|
417 |
+
if (isset($params_array['enable_bullets']) && (esc_html(stripslashes($params_array['enable_bullets'])) == 0)) {
|
418 |
+
$bull_position = 'none';
|
419 |
+
}
|
420 |
+
$bull_style = ((isset($params_array['bull_style']) && $allow) ? esc_html(stripslashes($params_array['bull_style'])) : 'fa-square-o');
|
421 |
+
$bull_size = ((isset($params_array['bull_size']) && $allow) ? (int) esc_html(stripslashes($params_array['bull_size'])) : 20);
|
422 |
+
$bull_color = ((isset($params_array['bull_color']) && $allow) ? esc_html(stripslashes($params_array['bull_color'])) : 'FFFFFF');
|
423 |
+
$bull_act_color = ((isset($params_array['bull_act_color']) && $allow) ? esc_html(stripslashes($params_array['bull_act_color'])) : 'FFFFFF');
|
424 |
+
$bull_margin = ((isset($params_array['bull_margin']) && $allow) ? (int) esc_html(stripslashes($params_array['bull_margin'])) : 3);
|
425 |
+
$film_pos = ((isset($params_array['film_pos'])) ? esc_html(stripslashes($params_array['film_pos'])) : 'none');
|
426 |
+
if (isset($params_array['enable_filmstrip']) && (esc_html(stripslashes($params_array['enable_filmstrip'])) == 0)) {
|
427 |
+
$film_pos = 'none';
|
428 |
+
}
|
429 |
+
$film_thumb_width = ((isset($params_array['film_thumb_width'])) ? (int) esc_html(stripslashes($params_array['film_thumb_width'])) : 100);
|
430 |
+
$film_thumb_height = ((isset($params_array['film_thumb_height'])) ? (int) esc_html(stripslashes($params_array['film_thumb_height'])) : 50);
|
431 |
+
$film_bg_color = ((isset($params_array['film_bg_color'])) ? esc_html(stripslashes($params_array['film_bg_color'])) : '000000');
|
432 |
+
$film_tmb_margin = ((isset($params_array['film_tmb_margin'])) ? (int) esc_html(stripslashes($params_array['film_tmb_margin'])) : 0);
|
433 |
+
$film_act_border_width = ((isset($params_array['film_act_border_width'])) ? (int) esc_html(stripslashes($params_array['film_act_border_width'])) : 0);
|
434 |
+
$film_act_border_style = ((isset($params_array['film_act_border_style'])) ? esc_html(stripslashes($params_array['film_act_border_style'])) : 'none');
|
435 |
+
$film_act_border_color = ((isset($params_array['film_act_border_color'])) ? esc_html(stripslashes($params_array['film_act_border_color'])) : 'FFFFFF');
|
436 |
+
$film_dac_transparent = ((isset($params_array['film_dac_transparent'])) ? (int) esc_html(stripslashes($params_array['film_dac_transparent'])) : 50);
|
437 |
+
$built_in_watermark_type = (isset($params_array['built_in_watermark_type']) ? esc_html(stripslashes($params_array['built_in_watermark_type'])) : 'none');
|
438 |
+
$built_in_watermark_position = (isset($params_array['built_in_watermark_position']) ? esc_html(stripslashes($params_array['built_in_watermark_position'])) : 'middle-center');
|
439 |
+
$built_in_watermark_size = (isset($params_array['built_in_watermark_size']) ? (int) esc_html(stripslashes($params_array['built_in_watermark_size'])) : 15);
|
440 |
+
$built_in_watermark_url = (isset($params_array['built_in_watermark_url']) ? esc_html(stripslashes($params_array['built_in_watermark_url'])) : '');
|
441 |
+
$built_in_watermark_url = str_replace(site_url(), '{site_url}', $built_in_watermark_url);
|
442 |
+
$built_in_watermark_text = (isset($params_array['built_in_watermark_text']) ? esc_html(stripslashes($params_array['built_in_watermark_text'])) : 'web-dorado.com');
|
443 |
+
$built_in_watermark_opacity = (isset($params_array['built_in_watermark_opacity']) ? (int) esc_html(stripslashes($params_array['built_in_watermark_opacity'])) : 70);
|
444 |
+
$built_in_watermark_font_size = (isset($params_array['built_in_watermark_font_size']) ? (int) esc_html(stripslashes($params_array['built_in_watermark_font_size'])) : 20);
|
445 |
+
$built_in_watermark_font = (isset($params_array['built_in_watermark_font']) ? esc_html(stripslashes($params_array['built_in_watermark_font'])) : '');
|
446 |
+
$built_in_watermark_color = (isset($params_array['built_in_watermark_color']) ? esc_html(stripslashes($params_array['built_in_watermark_color'])) : 'FFFFFF');
|
447 |
+
$css = (isset($params_array['css']) ? htmlspecialchars_decode((stripslashes($params_array['css'])), ENT_QUOTES) : '');
|
448 |
+
$timer_bar_type = (isset($params_array['timer_bar_type']) ? esc_html(stripslashes($params_array['timer_bar_type'])) : 'top');
|
449 |
+
if (isset($params_array['enable_time_bar']) && (esc_html(stripslashes($params_array['enable_time_bar'])) == 0)) {
|
450 |
+
$timer_bar_type = 'none';
|
451 |
+
}
|
452 |
+
$timer_bar_size = (isset($params_array['timer_bar_size']) ? (int) esc_html(stripslashes($params_array['timer_bar_size'])) : 5);
|
453 |
+
$timer_bar_color = (isset($params_array['timer_bar_color']) ? esc_html(stripslashes($params_array['timer_bar_color'])) : 'BBBBBB');
|
454 |
+
$timer_bar_transparent = (isset($params_array['timer_bar_transparent']) ? (int) esc_html(stripslashes($params_array['timer_bar_transparent'])) : 50);
|
455 |
+
$stop_animation = ((isset($params_array['stop_animation'])) ? (int) esc_html(stripslashes($params_array['stop_animation'])) : 0);
|
456 |
+
$right_butt_url = (isset($params_array['right_butt_url']) ? esc_html(stripslashes($params_array['right_butt_url'])) : '');
|
457 |
+
$right_butt_url = str_replace(site_url(), '{site_url}', $right_butt_url);
|
458 |
+
$left_butt_url = (isset($params_array['left_butt_url']) ? esc_html(stripslashes($params_array['left_butt_url'])) : '');
|
459 |
+
$left_butt_url = str_replace(site_url(), '{site_url}', $left_butt_url);
|
460 |
+
$right_butt_hov_url = (isset($params_array['right_butt_hov_url']) ? esc_html(stripslashes($params_array['right_butt_hov_url'])) : '');
|
461 |
+
$right_butt_hov_url = str_replace(site_url(), '{site_url}', $right_butt_hov_url);
|
462 |
+
$left_butt_hov_url = (isset($params_array['left_butt_hov_url']) ? esc_html(stripslashes($params_array['left_butt_hov_url'])) : '');
|
463 |
+
$left_butt_hov_url = str_replace(site_url(), '{site_url}', $left_butt_hov_url);
|
464 |
+
$rl_butt_img_or_not = (isset($params_array['rl_butt_img_or_not']) ? esc_html(stripslashes($params_array['rl_butt_img_or_not'])) : 'style');
|
465 |
+
$bullets_img_main_url = (isset($params_array['bullets_img_main_url']) ? esc_html(stripslashes($params_array['bullets_img_main_url'])) : '');
|
466 |
+
$bullets_img_main_url = str_replace(site_url(), '{site_url}', $bullets_img_main_url);
|
467 |
+
$bullets_img_hov_url = (isset($params_array['bullets_img_hov_url']) ? esc_html(stripslashes($params_array['bullets_img_hov_url'])) : '');
|
468 |
+
$bullets_img_hov_url = str_replace(site_url(), '{site_url}', $bullets_img_hov_url);
|
469 |
+
$bull_butt_img_or_not = (isset($params_array['bull_butt_img_or_not']) ? esc_html(stripslashes($params_array['bull_butt_img_or_not'])) : 'style');
|
470 |
+
$play_paus_butt_img_or_not = (isset($params_array['play_paus_butt_img_or_not']) ? esc_html(stripslashes($params_array['play_paus_butt_img_or_not'])) : 'style');
|
471 |
+
$play_butt_url = (isset($params_array['play_butt_url']) ? esc_html(stripslashes($params_array['play_butt_url'])) : '');
|
472 |
+
$play_butt_url = str_replace(site_url(), '{site_url}', $play_butt_url);
|
473 |
+
$play_butt_hov_url = (isset($params_array['play_butt_hov_url']) ? esc_html(stripslashes($params_array['play_butt_hov_url'])) : '');
|
474 |
+
$play_butt_hov_url = str_replace(site_url(), '{site_url}', $play_butt_hov_url);
|
475 |
+
$paus_butt_url = (isset($params_array['paus_butt_url']) ? esc_html(stripslashes($params_array['paus_butt_url'])) : '');
|
476 |
+
$paus_butt_url = str_replace(site_url(), '{site_url}', $paus_butt_url);
|
477 |
+
$paus_butt_hov_url = (isset($params_array['paus_butt_hov_url']) ? esc_html(stripslashes($params_array['paus_butt_hov_url'])) : '');
|
478 |
+
$paus_butt_hov_url = str_replace(site_url(), '{site_url}', $paus_butt_hov_url);
|
479 |
+
$start_slide_num = ((isset($params_array['start_slide_num'])) ? (int) stripslashes($params_array['start_slide_num']) : 1);
|
480 |
+
$effect_duration = ((isset($params_array['effect_duration'])) ? (int) stripslashes($params_array['effect_duration']) : 800);
|
481 |
+
$carousel = ((isset($params_array['carousel']) && !WDS()->is_free) ? (int) esc_html(stripslashes($params_array['carousel'])) : 0);
|
482 |
+
$carousel_image_counts = ((isset($params_array['carousel_image_counts']) && !WDS()->is_free) ? (int) esc_html(stripslashes($params_array['carousel_image_counts'])) : 7);
|
483 |
+
$carousel_image_parameters = ((isset($params_array['carousel_image_parameters']) && !WDS()->is_free) ? esc_html(stripslashes($params_array['carousel_image_parameters'])) : 0.85);
|
484 |
+
$carousel_fit_containerWidth = ((isset($params_array['carousel_fit_containerWidth']) && !WDS()->is_free) ? (int) esc_html(stripslashes($params_array['carousel_fit_containerWidth'])) : 0);
|
485 |
+
$carousel_width = ((isset($params_array['carousel_width']) && !WDS()->is_free) ? (int) esc_html(stripslashes($params_array['carousel_width'])) : 1000);
|
486 |
+
$parallax_effect = ((isset($params_array['parallax_effect']) && !WDS()->is_free) ? (int) esc_html(stripslashes($params_array['parallax_effect'])) : 0);
|
487 |
+
$mouse_swipe_nav = ((isset($params_array['mouse_swipe_nav'])) ? (int) esc_html(stripslashes($params_array['mouse_swipe_nav'])) : 0);
|
488 |
+
$bull_hover = ((isset($params_array['bull_hover'])) ? (int) esc_html(stripslashes($params_array['bull_hover'])) : 1);
|
489 |
+
$touch_swipe_nav = ((isset($params_array['touch_swipe_nav'])) ? (int) esc_html(stripslashes($params_array['touch_swipe_nav'])) : 1);
|
490 |
+
$mouse_wheel_nav = ((isset($params_array['mouse_wheel_nav'])) ? (int) esc_html(stripslashes($params_array['mouse_wheel_nav'])) : 0);
|
491 |
+
$keyboard_nav = ((isset($params_array['keyboard_nav'])) ? (int) esc_html(stripslashes($params_array['keyboard_nav'])) : 0);
|
492 |
+
$show_thumbnail = ((isset($params_array['show_thumbnail'])) ? (int) esc_html(stripslashes($params_array['show_thumbnail'])) : 0);
|
493 |
+
$thumb_size = ((isset($params_array['thumb_size'])) ? esc_html(stripslashes($params_array['thumb_size'])) : '0.3');
|
494 |
+
$fixed_bg = ((isset($params_array['fixed_bg'])) ? (int) esc_html(stripslashes($params_array['fixed_bg'])) : 0);
|
495 |
+
$smart_crop = ((isset($params_array['smart_crop'])) ? (int) esc_html(stripslashes($params_array['smart_crop'])) : 0);
|
496 |
+
$crop_image_position = ((isset($params_array['crop_image_position'])) ? esc_html(stripslashes($params_array['crop_image_position'])) : 'middle-center');
|
497 |
+
$javascript = ((isset($params_array['javascript'])) ? $params_array['javascript'] : '');
|
498 |
+
$carousel_degree = ((isset($params_array['carousel_degree'])) ? (int) esc_html(stripslashes($params_array['carousel_degree'])) : 0);
|
499 |
+
$carousel_grayscale = ((isset($params_array['carousel_grayscale'])) ? (int) esc_html(stripslashes($params_array['carousel_grayscale'])) : 0);
|
500 |
+
$carousel_transparency = ((isset($params_array['carousel_transparency'])) ? (int) esc_html(stripslashes($params_array['carousel_transparency'])) : 0);
|
501 |
+
$bull_back_act_color = ((isset($params_array['bull_back_act_color'])) ? esc_html(stripslashes($params_array['bull_back_act_color'])) : '000000');
|
502 |
+
$bull_back_color = ((isset($params_array['bull_back_color'])) ? esc_html(stripslashes($params_array['bull_back_color'])) : 'CCCCCC');
|
503 |
+
$bull_radius = ((isset($params_array['bull_radius'])) ? esc_html(stripslashes($params_array['bull_radius'])) : '20px');
|
504 |
+
$slider_loop = ((isset($params_array['slider_loop'])) ? (int) esc_html(stripslashes($params_array['slider_loop'])) : 1);
|
505 |
+
$hide_on_mobile = ((isset($params_array['hide_on_mobile'])) ? (int) esc_html(stripslashes($params_array['hide_on_mobile'])) : 0);
|
506 |
+
$twoway_slideshow = ((isset($params_array['twoway_slideshow'])) ? (int) esc_html(stripslashes($params_array['twoway_slideshow'])) : 0);
|
507 |
+
$full_width_for_mobile = ((isset($params_array['full_width_for_mobile'])) ? (int) esc_html(stripslashes($params_array['full_width_for_mobile'])) : 0);
|
508 |
+
$order_dir = ((isset($params_array['order_dir'])) ? esc_html(stripslashes($params_array['order_dir'])) : 'asc');
|
509 |
+
$data = array(
|
510 |
+
'name' => $name,
|
511 |
+
'published' => $published,
|
512 |
+
'full_width' => $full_width,
|
513 |
+
'auto_height' => $auto_height,
|
514 |
+
'width' => $width,
|
515 |
+
'height' => $height,
|
516 |
+
'align' => $align,
|
517 |
+
'effect' => $effect,
|
518 |
+
'time_intervval' => $time_intervval,
|
519 |
+
'autoplay' => $autoplay,
|
520 |
+
'shuffle' => $shuffle,
|
521 |
+
'music' => $music,
|
522 |
+
'music_url' => $music_url,
|
523 |
+
'preload_images' => $preload_images,
|
524 |
+
'background_color' => $background_color,
|
525 |
+
'background_transparent' => $background_transparent,
|
526 |
+
'glb_border_width' => $glb_border_width,
|
527 |
+
'glb_border_style' => $glb_border_style,
|
528 |
+
'glb_border_color' => $glb_border_color,
|
529 |
+
'glb_border_radius' => $glb_border_radius,
|
530 |
+
'glb_margin' => $glb_margin,
|
531 |
+
'glb_box_shadow' => $glb_box_shadow,
|
532 |
+
'image_right_click' => $image_right_click,
|
533 |
+
'prev_next_butt' => $prev_next_butt,
|
534 |
+
'play_paus_butt' => $play_paus_butt,
|
535 |
+
'navigation' => $navigation,
|
536 |
+
'rl_butt_style' => $rl_butt_style,
|
537 |
+
'rl_butt_size' => $rl_butt_size,
|
538 |
+
'pp_butt_size' => $pp_butt_size,
|
539 |
+
'butts_color' => $butts_color,
|
540 |
+
'butts_transparent' => $butts_transparent,
|
541 |
+
'hover_color' => $hover_color,
|
542 |
+
'nav_border_width' => $nav_border_width,
|
543 |
+
'nav_border_style' => $nav_border_style,
|
544 |
+
'nav_border_color' => $nav_border_color,
|
545 |
+
'nav_border_radius' => $nav_border_radius,
|
546 |
+
'nav_bg_color' => $nav_bg_color,
|
547 |
+
'bull_position' => $bull_position,
|
548 |
+
'bull_style' => $bull_style,
|
549 |
+
'bull_size' => $bull_size,
|
550 |
+
'bull_color' => $bull_color,
|
551 |
+
'bull_act_color' => $bull_act_color,
|
552 |
+
'bull_margin' => $bull_margin,
|
553 |
+
'film_pos' => $film_pos,
|
554 |
+
'film_thumb_width' => $film_thumb_width,
|
555 |
+
'film_thumb_height' => $film_thumb_height,
|
556 |
+
'film_bg_color' => $film_bg_color,
|
557 |
+
'film_tmb_margin' => $film_tmb_margin,
|
558 |
+
'film_act_border_width' => $film_act_border_width,
|
559 |
+
'film_act_border_style' => $film_act_border_style,
|
560 |
+
'film_act_border_color' => $film_act_border_color,
|
561 |
+
'film_dac_transparent' => $film_dac_transparent,
|
562 |
+
'built_in_watermark_type' => $built_in_watermark_type,
|
563 |
+
'built_in_watermark_position' => $built_in_watermark_position,
|
564 |
+
'built_in_watermark_size' => $built_in_watermark_size,
|
565 |
+
'built_in_watermark_url' => $built_in_watermark_url,
|
566 |
+
'built_in_watermark_text' => $built_in_watermark_text,
|
567 |
+
'built_in_watermark_opacity' => $built_in_watermark_opacity,
|
568 |
+
'built_in_watermark_font_size' => $built_in_watermark_font_size,
|
569 |
+
'built_in_watermark_font' => $built_in_watermark_font,
|
570 |
+
'built_in_watermark_color' => $built_in_watermark_color,
|
571 |
+
'css' => $css,
|
572 |
+
'timer_bar_type' => $timer_bar_type,
|
573 |
+
'timer_bar_size' => $timer_bar_size,
|
574 |
+
'timer_bar_color' => $timer_bar_color,
|
575 |
+
'timer_bar_transparent' => $timer_bar_transparent,
|
576 |
+
'layer_out_next' => $layer_out_next,
|
577 |
+
'stop_animation' => $stop_animation,
|
578 |
+
'right_butt_url' => $right_butt_url,
|
579 |
+
'left_butt_url' => $left_butt_url,
|
580 |
+
'right_butt_hov_url' => $right_butt_hov_url,
|
581 |
+
'left_butt_hov_url' => $left_butt_hov_url,
|
582 |
+
'rl_butt_img_or_not' => $rl_butt_img_or_not,
|
583 |
+
'bullets_img_main_url' => $bullets_img_main_url,
|
584 |
+
'bullets_img_hov_url' => $bullets_img_hov_url,
|
585 |
+
'bull_butt_img_or_not' => $bull_butt_img_or_not,
|
586 |
+
'play_paus_butt_img_or_not' => $play_paus_butt_img_or_not,
|
587 |
+
'play_butt_url' => $play_butt_url,
|
588 |
+
'play_butt_hov_url' => $play_butt_hov_url,
|
589 |
+
'paus_butt_url' => $paus_butt_url,
|
590 |
+
'paus_butt_hov_url' => $paus_butt_hov_url,
|
591 |
+
'start_slide_num' => $start_slide_num,
|
592 |
+
'effect_duration' => $effect_duration,
|
593 |
+
'carousel' => $carousel,
|
594 |
+
'carousel_image_counts' => $carousel_image_counts,
|
595 |
+
'carousel_image_parameters' => $carousel_image_parameters,
|
596 |
+
'carousel_fit_containerWidth' => $carousel_fit_containerWidth,
|
597 |
+
'carousel_width' => $carousel_width,
|
598 |
+
'parallax_effect' => $parallax_effect,
|
599 |
+
'mouse_swipe_nav' => $mouse_swipe_nav,
|
600 |
+
'bull_hover' => $bull_hover,
|
601 |
+
'touch_swipe_nav' => $touch_swipe_nav,
|
602 |
+
'mouse_wheel_nav' => $mouse_wheel_nav,
|
603 |
+
'keyboard_nav' => $keyboard_nav,
|
604 |
+
'show_thumbnail' => $show_thumbnail,
|
605 |
+
'thumb_size' => $thumb_size,
|
606 |
+
'fixed_bg' => $fixed_bg,
|
607 |
+
'smart_crop' => $smart_crop,
|
608 |
+
'crop_image_position' => $crop_image_position,
|
609 |
+
'javascript' => $javascript,
|
610 |
+
'carousel_degree' => $carousel_degree,
|
611 |
+
'carousel_grayscale' => $carousel_grayscale,
|
612 |
+
'carousel_transparency' => $carousel_transparency,
|
613 |
+
'bull_back_act_color' => $bull_back_act_color,
|
614 |
+
'bull_back_color' => $bull_back_color,
|
615 |
+
'bull_radius' => $bull_radius,
|
616 |
+
'slider_loop' => $slider_loop,
|
617 |
+
'hide_on_mobile' => $hide_on_mobile,
|
618 |
+
'twoway_slideshow' => $twoway_slideshow,
|
619 |
+
'full_width_for_mobile' => $full_width_for_mobile,
|
620 |
+
'order_dir' => $order_dir,
|
621 |
+
);
|
622 |
+
|
623 |
+
if (!$slider_id) {
|
624 |
+
$save = $wpdb->insert($wpdb->prefix . 'wdsslider', $data);
|
625 |
+
$slider_id = (int) $wpdb->insert_id;
|
626 |
+
$_POST['current_id'] = $slider_id;
|
627 |
+
}
|
628 |
+
else {
|
629 |
+
$save = $wpdb->update($wpdb->prefix . 'wdsslider', $data, array('id' => $slider_id));
|
630 |
+
}
|
631 |
+
$status = 2;
|
632 |
+
if ($save !== FALSE) {
|
633 |
+
$status = 1;
|
634 |
+
}
|
635 |
+
$data = array();
|
636 |
+
$data['id'] = $slider_id;
|
637 |
+
$data['status'] = $status;
|
638 |
+
return $data;
|
639 |
+
}
|
640 |
+
|
641 |
+
/**
|
642 |
+
* Save slide DB.
|
643 |
+
*
|
644 |
+
* @param int $id
|
645 |
+
*/
|
646 |
+
public function save_slide_db( $id = 0 ) {
|
647 |
+
global $wpdb;
|
648 |
+
$allow = TRUE;
|
649 |
+
if ( WDS()->is_free && get_option("wds_theme_version") ) {
|
650 |
+
$allow = FALSE;
|
651 |
+
}
|
652 |
+
$slider_id = (isset($_POST['current_id']) ? (int) $_POST['current_id'] : $id);
|
653 |
+
$save_as_copy = (isset($_POST['save_as_copy']) ? (int) $_POST['save_as_copy'] : 0);
|
654 |
+
if (!$slider_id) {
|
655 |
+
$slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
|
656 |
+
}
|
657 |
+
$slides_data = (isset($_POST['slides']) ? $_POST['slides'] : array());
|
658 |
+
foreach ($slides_data as $slide_data) {
|
659 |
+
$params_array = json_decode(stripslashes($slide_data), TRUE);
|
660 |
+
$slide_id = (isset($params_array['id']) ? $params_array['id'] : 0);
|
661 |
+
if ($slide_id) {
|
662 |
+
$del_layer_ids_string = ((isset($params_array['slide' . $slide_id . '_del_layer_ids_string']) && !$save_as_copy) ? substr(esc_html(stripslashes($params_array['slide' . $slide_id . '_del_layer_ids_string'])), 0, -1) : '');
|
663 |
+
if ($del_layer_ids_string) {
|
664 |
+
$wpdb->query('DELETE FROM ' . $wpdb->prefix . 'wdslayer WHERE id IN (' . $del_layer_ids_string . ')');
|
665 |
+
}
|
666 |
+
$title = ((isset($params_array['title' . $slide_id])) ? esc_html(stripslashes($params_array['title' . $slide_id])) : '');
|
667 |
+
$type = ((isset($params_array['type' . $slide_id])) ? esc_html(stripslashes($params_array['type' . $slide_id])) : '');
|
668 |
+
$order = ((isset($params_array['order' . $slide_id])) ? esc_html(stripslashes($params_array['order' . $slide_id])) : '');
|
669 |
+
$published = ((isset($params_array['published' . $slide_id])) ? esc_html(stripslashes($params_array['published' . $slide_id])) : '');
|
670 |
+
$target_attr_slide = ((isset($params_array['target_attr_slide' . $slide_id])) ? (int) esc_html(stripslashes($params_array['target_attr_slide' . $slide_id])) : 0);
|
671 |
+
$link = ((isset($params_array['link' . $slide_id])) ? esc_html(stripslashes($params_array['link' . $slide_id])) : (($type == 'video') ? 0 : ''));
|
672 |
+
$image_url = ((isset($params_array['image_url' . $slide_id])) ? esc_html(stripslashes($params_array['image_url' . $slide_id])) : '');
|
673 |
+
$image_url = str_replace(site_url(), '{site_url}', $image_url);
|
674 |
+
$thumb_url = ((isset($params_array['thumb_url' . $slide_id])) ? esc_html(stripslashes($params_array['thumb_url' . $slide_id])) : '');
|
675 |
+
$thumb_url = str_replace(site_url(), '{site_url}', $thumb_url);
|
676 |
+
$att_width = ((isset($params_array['att_width' . $slide_id])) ? esc_html(stripslashes($params_array['att_width' . $slide_id])) : '');
|
677 |
+
$att_height = ((isset($params_array['att_height' . $slide_id])) ? esc_html(stripslashes($params_array['att_height' . $slide_id])) : '');
|
678 |
+
$video_duration = ((isset($params_array['video_duration' . $slide_id])) ? esc_html(stripslashes($params_array['video_duration' . $slide_id])) : '');
|
679 |
+
$youtube_rel_video = ((isset($params_array['youtube_rel_video' . $slide_id]) && !WDS()->is_free) ? (int) esc_html(stripslashes($params_array['youtube_rel_video' . $slide_id])) : 0);
|
680 |
+
$video_loop = ((isset($params_array['video_loop' . $slide_id]) && !WDS()->is_free) ? (int) esc_html(stripslashes($params_array['video_loop' . $slide_id])) : 0);
|
681 |
+
$fillmode = ((isset($params_array['fillmode' . $slide_id])) ? esc_html(stripslashes($params_array['fillmode' . $slide_id])) : '');
|
682 |
+
$title_dimension = array();
|
683 |
+
$title_dimension['title'] = $title;
|
684 |
+
$title_dimension['att_width'] = $att_width;
|
685 |
+
$title_dimension['att_height'] = $att_height;
|
686 |
+
$title_dimension['video_duration'] = $video_duration;
|
687 |
+
$title_dimension = json_encode($title_dimension);
|
688 |
+
$data = array(
|
689 |
+
'slider_id' => $slider_id,
|
690 |
+
'title' => $title_dimension,
|
691 |
+
'type' => $type,
|
692 |
+
'order' => $order,
|
693 |
+
'published' => $published,
|
694 |
+
'link' => $link,
|
695 |
+
'image_url' => $image_url,
|
696 |
+
'thumb_url' => $thumb_url,
|
697 |
+
'target_attr_slide' => $target_attr_slide,
|
698 |
+
'youtube_rel_video' => $youtube_rel_video,
|
699 |
+
'video_loop' => $video_loop,
|
700 |
+
'fillmode' => $fillmode
|
701 |
+
);
|
702 |
+
if (strpos($slide_id, 'pr') !== FALSE || $save_as_copy) {
|
703 |
+
$wpdb->insert($wpdb->prefix . 'wdsslide', $data);
|
704 |
+
$slide_id_pr = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslide');
|
705 |
+
}
|
706 |
+
else {
|
707 |
+
$wpdb->update($wpdb->prefix . 'wdsslide', $data, array('id' => $slide_id));
|
708 |
+
$slide_id_pr = $slide_id;
|
709 |
+
}
|
710 |
+
if ( !WDS()->is_free ) {
|
711 |
+
$this->save_layer_db($slide_id, $slide_id_pr, $params_array);
|
712 |
+
}
|
713 |
+
}
|
714 |
+
}
|
715 |
+
}
|
716 |
+
|
717 |
+
public function save_layer_db($slide_id, $slide_id_pr, $params_array) {
|
718 |
+
global $wpdb;
|
719 |
+
$save_as_copy = (isset($_POST['save_as_copy']) ? (int) $_POST['save_as_copy'] : 0);
|
720 |
+
$layer_ids_string = (isset($params_array['slide' . $slide_id . '_layer_ids_string']) ? esc_html(stripslashes($params_array['slide' . $slide_id . '_layer_ids_string'])) : '');
|
721 |
+
$layer_id_array = explode(',', $layer_ids_string);
|
722 |
+
foreach ($layer_id_array as $layer_id) {
|
723 |
+
if ($layer_id) {
|
724 |
+
$prefix = 'slide' . $slide_id . '_layer' . $layer_id;
|
725 |
+
$json_string = (isset($params_array[$prefix . '_json']) ? $params_array[$prefix . '_json'] : '');
|
726 |
+
$params_array_layer = json_decode($json_string, TRUE);
|
727 |
+
$title = ((isset($params_array_layer['title'])) ? esc_html(stripslashes($params_array_layer['title'])) : '');
|
728 |
+
$type = ((isset($params_array_layer['type'])) ? esc_html(stripslashes($params_array_layer['type'])) : '');
|
729 |
+
$depth = ((isset($params_array_layer['depth'])) ? esc_html(stripslashes($params_array_layer['depth'])) : '');
|
730 |
+
$text = ((isset($params_array_layer['text'])) ? stripcslashes($params_array_layer['text']) : '');
|
731 |
+
$link = ((isset($params_array_layer['link'])) ? esc_html(stripslashes($params_array_layer['link'])) : '');
|
732 |
+
$target_attr_layer = ((isset($params_array_layer['target_attr_layer'])) ? (int) esc_html(stripslashes($params_array_layer['target_attr_layer'])) : 0);
|
733 |
+
$left = ((isset($params_array_layer['left'])) ? esc_html(stripslashes($params_array_layer['left'])) : '');
|
734 |
+
$top = ((isset($params_array_layer['top'])) ? esc_html(stripslashes($params_array_layer['top'])) : '');
|
735 |
+
$start = ((isset($params_array_layer['start'])) ? esc_html(stripslashes($params_array_layer['start'])) : '');
|
736 |
+
$end = ((isset($params_array_layer['end'])) ? esc_html(stripslashes($params_array_layer['end'])) : '');
|
737 |
+
$published = ((isset($params_array_layer['published'])) ? esc_html(stripslashes($params_array_layer['published'])) : '');
|
738 |
+
$color = ((isset($params_array_layer['color'])) ? esc_html(stripslashes($params_array_layer['color'])) : '');
|
739 |
+
$size = ((isset($params_array_layer['size'])) ? esc_html(stripslashes($params_array_layer['size'])) : '');
|
740 |
+
$ffamily = ((isset($params_array_layer['ffamily'])) ? esc_html(stripslashes($params_array_layer['ffamily'])) : '');
|
741 |
+
$fweight = ((isset($params_array_layer['fweight'])) ? esc_html(stripslashes($params_array_layer['fweight'])) : '');
|
742 |
+
$padding = ((isset($params_array_layer['padding'])) ? esc_html(stripslashes($params_array_layer['padding'])) : '');
|
743 |
+
$fbgcolor = ((isset($params_array_layer['fbgcolor'])) ? esc_html(stripslashes($params_array_layer['fbgcolor'])) : '');
|
744 |
+
$transparent = ((isset($params_array_layer['transparent'])) ? esc_html(stripslashes($params_array_layer['transparent'])) : '');
|
745 |
+
$border_width = ((isset($params_array_layer['border_width'])) ? esc_html(stripslashes($params_array_layer['border_width'])) : '');
|
746 |
+
$border_style = ((isset($params_array_layer['border_style'])) ? esc_html(stripslashes($params_array_layer['border_style'])) : '');
|
747 |
+
$border_color = ((isset($params_array_layer['border_color'])) ? esc_html(stripslashes($params_array_layer['border_color'])) : '');
|
748 |
+
$border_radius = ((isset($params_array_layer['border_radius'])) ? esc_html(stripslashes($params_array_layer['border_radius'])) : '');
|
749 |
+
$shadow = ((isset($params_array_layer['shadow'])) ? esc_html(stripslashes($params_array_layer['shadow'])) : '');
|
750 |
+
$image_url = ((isset($params_array_layer['image_url'])) ? esc_html(stripslashes($params_array_layer['image_url'])) : '');
|
751 |
+
$image_url = str_replace(site_url(), '{site_url}', $image_url);
|
752 |
+
$image_width = ((isset($params_array_layer['image_width'])) ? esc_html(stripslashes($params_array_layer['image_width'])) : '');
|
753 |
+
$image_height = ((isset($params_array_layer['image_height'])) ? esc_html(stripslashes($params_array_layer['image_height'])) : '');
|
754 |
+
$image_scale = ((isset($params_array_layer['image_scale'])) ? esc_html(stripslashes($params_array_layer['image_scale'])) : '');
|
755 |
+
$alt = ((isset($params_array_layer['alt'])) ? esc_html(stripslashes($params_array_layer['alt'])) : '');
|
756 |
+
$imgtransparent = ((isset($params_array_layer['imgtransparent'])) ? esc_html(stripslashes($params_array_layer['imgtransparent'])) : '');
|
757 |
+
$social_button = ((isset($params_array_layer['social_button'])) ? esc_html(stripslashes($params_array_layer['social_button'])) : '');
|
758 |
+
$hover_color = ((isset($params_array_layer['hover_color'])) ? esc_html(stripslashes($params_array_layer['hover_color'])) : '');
|
759 |
+
$layer_effect_in = ((isset($params_array_layer['layer_effect_in'])) ? esc_html(stripslashes($params_array_layer['layer_effect_in'])) : '');
|
760 |
+
$layer_effect_out = ((isset($params_array_layer['layer_effect_out'])) ? esc_html(stripslashes($params_array_layer['layer_effect_out'])) : '');
|
761 |
+
$duration_eff_in = ((isset($params_array_layer['duration_eff_in'])) ? (int) esc_html(stripslashes($params_array_layer['duration_eff_in'])) : 3);
|
762 |
+
$duration_eff_out = ((isset($params_array_layer['duration_eff_out'])) ? (int) esc_html(stripslashes($params_array_layer['duration_eff_out'])) : 3);
|
763 |
+
|
764 |
+
$hotp_width = ((isset($params_array_layer['hotp_width'])) ? esc_html(stripslashes($params_array_layer['hotp_width'])) : '');
|
765 |
+
$hotp_fbgcolor = ((isset($params_array_layer['hotp_fbgcolor'])) ? esc_html(stripslashes($params_array_layer['hotp_fbgcolor'])) : '');
|
766 |
+
$hotp_border_width = ((isset($params_array_layer['hotp_border_width'])) ? esc_html(stripslashes($params_array_layer['hotp_border_width'])) : '');
|
767 |
+
$hotp_border_style = ((isset($params_array_layer['hotp_border_style'])) ? esc_html(stripslashes($params_array_layer['hotp_border_style'])) : '');
|
768 |
+
$hotp_border_color = ((isset($params_array_layer['hotp_border_color'])) ? esc_html(stripslashes($params_array_layer['hotp_border_color'])) : '');
|
769 |
+
$hotp_border_radius = ((isset($params_array_layer['hotp_border_radius'])) ? esc_html(stripslashes($params_array_layer['hotp_border_radius'])) : '');
|
770 |
+
$hotp_text_position = ((isset($params_array_layer['hotp_text_position'])) ? esc_html(stripslashes($params_array_layer['hotp_text_position'])) : '');
|
771 |
+
$google_fonts = ((isset($params_array_layer['google_fonts'])) ? (int) esc_html(stripslashes($params_array_layer['google_fonts'])) : 0);
|
772 |
+
$attr_width = ((isset($params_array_layer['attr_width'])) ? esc_html(stripslashes($params_array_layer['attr_width'])) : '');
|
773 |
+
$attr_height = ((isset($params_array_layer['attr_height'])) ? esc_html(stripslashes($params_array_layer['attr_height'])) : '');
|
774 |
+
$add_class = ((isset($params_array_layer['add_class'])) ? esc_html(stripslashes($params_array_layer['add_class'])) : '');
|
775 |
+
$layer_video_loop = ((isset($params_array_layer['layer_video_loop'])) ? (int) esc_html(stripslashes($params_array_layer['layer_video_loop'])) : 0);
|
776 |
+
$youtube_rel_layer_video = ((isset($params_array_layer['youtube_rel_layer_video'])) ? (int) esc_html(stripslashes($params_array_layer['youtube_rel_layer_video'])) : 0);
|
777 |
+
$hotspot_animation = ((isset($params_array_layer['hotspot_animation'])) ? (int) esc_html(stripslashes($params_array_layer['hotspot_animation'])) : 1);
|
778 |
+
$layer_callback_list = ((isset($params_array_layer['layer_callback_list'])) ? esc_html(stripslashes($params_array_layer['layer_callback_list'])) : '');
|
779 |
+
$hotspot_text_display = ((isset($params_array_layer['hotspot_text_display'])) ? esc_html(stripslashes($params_array_layer['hotspot_text_display'])) : 'hover');
|
780 |
+
$hover_color_text = ((isset($params_array_layer['hover_color_text'])) ? esc_html(stripslashes($params_array_layer['hover_color_text'])) : '');
|
781 |
+
$text_alignment = ((isset($params_array_layer['text_alignment'])) ? esc_html(stripslashes($params_array_layer['text_alignment'])) : 'center');
|
782 |
+
$link_to_slide = ((isset($params_array_layer['link_to_slide'])) ? (int) esc_html(stripslashes($params_array_layer['link_to_slide'])) : 0);
|
783 |
+
$align_layer = ((isset($params_array_layer['align_layer'])) ? (int) esc_html(stripslashes($params_array_layer['align_layer'])) : 0);
|
784 |
+
$static_layer = ((isset($params_array_layer['static_layer'])) ? (int) esc_html(stripslashes($params_array_layer['static_layer'])) : 0);
|
785 |
+
$infinite_in = ((isset($params_array_layer['infinite_in'])) ? (int) esc_html(stripslashes($params_array_layer['infinite_in'])) : 1);
|
786 |
+
$infinite_out = ((isset($params_array_layer['infinite_out'])) ? (int) esc_html(stripslashes($params_array_layer['infinite_out'])) : 1);
|
787 |
+
$min_size = ((isset($params_array_layer['min_size'])) ? (int) esc_html(stripslashes($params_array_layer['min_size'])) : 11);
|
788 |
+
$title_dimension = array();
|
789 |
+
$title_dimension['title'] = $title;
|
790 |
+
$title_dimension['attr_width'] = $attr_width;
|
791 |
+
$title_dimension['attr_height'] = $attr_height;
|
792 |
+
$title_dimension = json_encode($title_dimension);
|
793 |
+
if ($title) {
|
794 |
+
if (strpos($layer_id, 'pr_') !== FALSE || $save_as_copy) {
|
795 |
+
$save = $wpdb->insert($wpdb->prefix . 'wdslayer', array(
|
796 |
+
'slide_id' => $slide_id_pr,
|
797 |
+
'title' => $title_dimension,
|
798 |
+
'type' => $type,
|
799 |
+
'depth' => $depth,
|
800 |
+
'text' => $text,
|
801 |
+
'link' => $link,
|
802 |
+
'left' => $left,
|
803 |
+
'top' => $top,
|
804 |
+
'start' => $start,
|
805 |
+
'end' => $end,
|
806 |
+
'published' => $published,
|
807 |
+
'color' => $color,
|
808 |
+
'size' => $size,
|
809 |
+
'ffamily' => $ffamily,
|
810 |
+
'fweight' => $fweight,
|
811 |
+
'padding' => $padding,
|
812 |
+
'fbgcolor' => $fbgcolor,
|
813 |
+
'transparent' => $transparent,
|
814 |
+
'border_width' => $border_width,
|
815 |
+
'border_style' => $border_style,
|
816 |
+
'border_color' => $border_color,
|
817 |
+
'border_radius' => $border_radius,
|
818 |
+
'shadow' => $shadow,
|
819 |
+
'image_url' => $image_url,
|
820 |
+
'image_width' => $image_width,
|
821 |
+
'image_height' => $image_height,
|
822 |
+
'image_scale' => $image_scale,
|
823 |
+
'alt' => $alt,
|
824 |
+
'imgtransparent' => $imgtransparent,
|
825 |
+
'social_button' => $social_button,
|
826 |
+
'hover_color' => $hover_color,
|
827 |
+
'layer_effect_in' => $layer_effect_in,
|
828 |
+
'layer_effect_out' => $layer_effect_out,
|
829 |
+
'duration_eff_in' => $duration_eff_in,
|
830 |
+
'duration_eff_out' => $duration_eff_out,
|
831 |
+
'target_attr_layer' => $target_attr_layer,
|
832 |
+
'hotp_width' => $hotp_width,
|
833 |
+
'hotp_fbgcolor' => $hotp_fbgcolor,
|
834 |
+
'hotp_border_width' => $hotp_border_width,
|
835 |
+
'hotp_border_style' => $hotp_border_style,
|
836 |
+
'hotp_border_color' => $hotp_border_color,
|
837 |
+
'hotp_border_radius' => $hotp_border_radius,
|
838 |
+
'hotp_text_position' => $hotp_text_position,
|
839 |
+
'google_fonts' => $google_fonts,
|
840 |
+
'add_class' => $add_class,
|
841 |
+
'layer_video_loop' => $layer_video_loop,
|
842 |
+
'youtube_rel_layer_video' => $youtube_rel_layer_video,
|
843 |
+
'hotspot_animation' => $hotspot_animation,
|
844 |
+
'layer_callback_list' => $layer_callback_list,
|
845 |
+
'hotspot_text_display' => $hotspot_text_display,
|
846 |
+
'hover_color_text' => $hover_color_text,
|
847 |
+
'text_alignment' => $text_alignment,
|
848 |
+
'link_to_slide' => $link_to_slide,
|
849 |
+
'align_layer' => $align_layer,
|
850 |
+
'static_layer' => $static_layer,
|
851 |
+
'infinite_in' => $infinite_in,
|
852 |
+
'infinite_out' => $infinite_out,
|
853 |
+
'min_size' => $min_size,
|
854 |
+
));
|
855 |
+
}
|
856 |
+
else {
|
857 |
+
$save = $wpdb->update($wpdb->prefix . 'wdslayer', array(
|
858 |
+
'title' => $title_dimension,
|
859 |
+
'type' => $type,
|
860 |
+
'depth' => $depth,
|
861 |
+
'text' => $text,
|
862 |
+
'link' => $link,
|
863 |
+
'left' => $left,
|
864 |
+
'top' => $top,
|
865 |
+
'start' => $start,
|
866 |
+
'end' => $end,
|
867 |
+
'published' => $published,
|
868 |
+
'color' => $color,
|
869 |
+
'size' => $size,
|
870 |
+
'ffamily' => $ffamily,
|
871 |
+
'fweight' => $fweight,
|
872 |
+
'padding' => $padding,
|
873 |
+
'fbgcolor' => $fbgcolor,
|
874 |
+
'transparent' => $transparent,
|
875 |
+
'border_width' => $border_width,
|
876 |
+
'border_style' => $border_style,
|
877 |
+
'border_color' => $border_color,
|
878 |
+
'border_radius' => $border_radius,
|
879 |
+
'shadow' => $shadow,
|
880 |
+
'image_url' => $image_url,
|
881 |
+
'image_width' => $image_width,
|
882 |
+
'image_height' => $image_height,
|
883 |
+
'image_scale' => $image_scale,
|
884 |
+
'alt' => $alt,
|
885 |
+
'imgtransparent' => $imgtransparent,
|
886 |
+
'social_button' => $social_button,
|
887 |
+
'hover_color' => $hover_color,
|
888 |
+
'layer_effect_in' => $layer_effect_in,
|
889 |
+
'layer_effect_out' => $layer_effect_out,
|
890 |
+
'duration_eff_in' => $duration_eff_in,
|
891 |
+
'duration_eff_out' => $duration_eff_out,
|
892 |
+
'target_attr_layer' => $target_attr_layer,
|
893 |
+
'hotp_width' => $hotp_width,
|
894 |
+
'hotp_fbgcolor' => $hotp_fbgcolor,
|
895 |
+
'hotp_border_width' => $hotp_border_width,
|
896 |
+
'hotp_border_style' => $hotp_border_style,
|
897 |
+
'hotp_border_color' => $hotp_border_color,
|
898 |
+
'hotp_border_radius' => $hotp_border_radius,
|
899 |
+
'hotp_text_position' => $hotp_text_position,
|
900 |
+
'google_fonts' => $google_fonts,
|
901 |
+
'add_class' => $add_class,
|
902 |
+
'layer_video_loop' => $layer_video_loop,
|
903 |
+
'youtube_rel_layer_video' => $youtube_rel_layer_video,
|
904 |
+
'hotspot_animation' => $hotspot_animation,
|
905 |
+
'layer_callback_list' => $layer_callback_list,
|
906 |
+
'hotspot_text_display' => $hotspot_text_display,
|
907 |
+
'hover_color_text' => $hover_color_text,
|
908 |
+
'text_alignment' => $text_alignment,
|
909 |
+
'link_to_slide' => $link_to_slide,
|
910 |
+
'align_layer' => $align_layer,
|
911 |
+
'static_layer' => $static_layer,
|
912 |
+
'infinite_in' => $infinite_in,
|
913 |
+
'infinite_out' => $infinite_out,
|
914 |
+
'min_size' => $min_size,
|
915 |
+
), array('id' => $layer_id));
|
916 |
+
}
|
917 |
+
}
|
918 |
+
}
|
919 |
+
}
|
920 |
+
}
|
921 |
+
|
922 |
+
public function set_watermark() {
|
923 |
+
global $wpdb;
|
924 |
+
$slider_id = WDW_S_Library::get('current_id', 0);
|
925 |
+
if (!$slider_id) {
|
926 |
+
$slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
|
927 |
+
}
|
928 |
+
|
929 |
+
$slider_images = $wpdb->get_col($wpdb->prepare('SELECT image_url FROM ' . $wpdb->prefix . 'wdsslide WHERE `slider_id`="%d"', $slider_id));
|
930 |
+
$slider = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'wdsslider WHERE `id`="%d"', $slider_id));
|
931 |
+
|
932 |
+
switch ($slider->built_in_watermark_type) {
|
933 |
+
case 'text': {
|
934 |
+
foreach ($slider_images as $slider_image) {
|
935 |
+
if ($slider_image) {
|
936 |
+
$slider_image = str_replace('{site_url}', site_url(), $slider_image);
|
937 |
+
$slider_image_dir = str_replace(site_url() . '/', ABSPATH, $slider_image);
|
938 |
+
$last_slash_pos = strrpos($slider_image_dir, '/') + 1;
|
939 |
+
$dest_dir = substr($slider_image_dir, 0, $last_slash_pos);
|
940 |
+
$image_name = substr($slider_image_dir, $last_slash_pos);
|
941 |
+
$new_image = $dest_dir . '.original/' . $image_name;
|
942 |
+
if (!is_dir($dest_dir . '.original')) {
|
943 |
+
mkdir($dest_dir . '.original', 0777, TRUE);
|
944 |
+
}
|
945 |
+
if (!file_exists($new_image)) {
|
946 |
+
copy($slider_image_dir, $new_image);
|
947 |
+
}
|
948 |
+
$this->set_text_watermark($slider_image_dir, $slider_image_dir, $slider->built_in_watermark_text, $slider->built_in_watermark_font, $slider->built_in_watermark_font_size, '#' . $slider->built_in_watermark_color, $slider->built_in_watermark_opacity, $slider->built_in_watermark_position);
|
949 |
+
}
|
950 |
+
}
|
951 |
+
break;
|
952 |
+
}
|
953 |
+
case 'image': {
|
954 |
+
foreach ($slider_images as $slider_image) {
|
955 |
+
if ($slider_image) {
|
956 |
+
$slider_image = str_replace('{site_url}', site_url(), $slider_image);
|
957 |
+
$slider_image_dir = str_replace(site_url() . '/', ABSPATH, $slider_image);
|
958 |
+
$last_slash_pos = strrpos($slider_image_dir, '/') + 1;
|
959 |
+
$dest_dir = substr($slider_image_dir, 0, $last_slash_pos);
|
960 |
+
$image_name = substr($slider_image_dir, $last_slash_pos);
|
961 |
+
$new_image = $dest_dir . '.original/' . $image_name;
|
962 |
+
if (!is_dir($dest_dir . '.original')) {
|
963 |
+
mkdir($dest_dir . '.original', 0777, TRUE);
|
964 |
+
}
|
965 |
+
if (!file_exists($new_image)) {
|
966 |
+
copy($slider_image_dir, $new_image);
|
967 |
+
}
|
968 |
+
$slider->built_in_watermark_url = str_replace('{site_url}', site_url(), $slider->built_in_watermark_url);
|
969 |
+
$watermark_image_dir = str_replace(site_url() . '/', ABSPATH, $slider->built_in_watermark_url);
|
970 |
+
$this->set_image_watermark($slider_image_dir, $slider_image_dir, $watermark_image_dir, $slider->built_in_watermark_size, $slider->built_in_watermark_size, $slider->built_in_watermark_position);
|
971 |
+
}
|
972 |
+
}
|
973 |
+
break;
|
974 |
+
}
|
975 |
+
default: {
|
976 |
+
break;
|
977 |
+
}
|
978 |
+
}
|
979 |
+
}
|
980 |
+
|
981 |
+
public function reset_watermark() {
|
982 |
+
global $wpdb;
|
983 |
+
$slider_id = WDW_S_Library::get('current_id', 0);
|
984 |
+
if (!$slider_id) {
|
985 |
+
$slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
|
986 |
+
}
|
987 |
+
$slider_images = $wpdb->get_col($wpdb->prepare('SELECT image_url FROM ' . $wpdb->prefix . 'wdsslide WHERE `slider_id`="%d"', $slider_id));
|
988 |
+
foreach ($slider_images as $slider_image) {
|
989 |
+
if ($slider_image) {
|
990 |
+
$slider_image = str_replace('{site_url}', site_url(), $slider_image);
|
991 |
+
$slider_image_dir = str_replace(site_url() . '/', ABSPATH, $slider_image);
|
992 |
+
$last_slash_pos = strrpos($slider_image_dir, '/') + 1;
|
993 |
+
$dest_dir = substr($slider_image_dir, 0, $last_slash_pos);
|
994 |
+
$image_name = substr($slider_image_dir, $last_slash_pos);
|
995 |
+
$new_image = $dest_dir . '.original/' . $image_name;
|
996 |
+
if (file_exists($new_image)) {
|
997 |
+
copy($new_image, $slider_image_dir);
|
998 |
+
}
|
999 |
+
else {
|
1000 |
+
// For 1.0.1 version.
|
1001 |
+
$last_dot_pos = strrpos($slider_image_dir, '.');
|
1002 |
+
$base_name = substr($slider_image_dir, 0, $last_dot_pos);
|
1003 |
+
$ext = substr($slider_image_dir, strlen($base_name));
|
1004 |
+
$new_image = $base_name . '-original' . $ext;
|
1005 |
+
if (file_exists($new_image)) {
|
1006 |
+
copy($new_image, $slider_image_dir);
|
1007 |
+
}
|
1008 |
+
}
|
1009 |
+
}
|
1010 |
+
}
|
1011 |
+
}
|
1012 |
+
|
1013 |
+
function wds_hex2rgb($hex) {
|
1014 |
+
$hex = str_replace("#", "", $hex);
|
1015 |
+
if (strlen($hex) == 3) {
|
1016 |
+
$r = hexdec(substr($hex,0,1).substr($hex,0,1));
|
1017 |
+
$g = hexdec(substr($hex,1,1).substr($hex,1,1));
|
1018 |
+
$b = hexdec(substr($hex,2,1).substr($hex,2,1));
|
1019 |
+
}
|
1020 |
+
else {
|
1021 |
+
$r = hexdec(substr($hex,0,2));
|
1022 |
+
$g = hexdec(substr($hex,2,2));
|
1023 |
+
$b = hexdec(substr($hex,4,2));
|
1024 |
+
}
|
1025 |
+
$rgb = array($r, $g, $b);
|
1026 |
+
return $rgb;
|
1027 |
+
}
|
1028 |
+
|
1029 |
+
function wds_imagettfbboxdimensions($font_size, $font_angle, $font, $text) {
|
1030 |
+
$box = @ImageTTFBBox($font_size, $font_angle, $font, $text) or die;
|
1031 |
+
$max_x = max(array($box[0], $box[2], $box[4], $box[6]));
|
1032 |
+
$max_y = max(array($box[1], $box[3], $box[5], $box[7]));
|
1033 |
+
$min_x = min(array($box[0], $box[2], $box[4], $box[6]));
|
1034 |
+
$min_y = min(array($box[1], $box[3], $box[5], $box[7]));
|
1035 |
+
return array(
|
1036 |
+
"width" => ($max_x - $min_x),
|
1037 |
+
"height" => ($max_y - $min_y)
|
1038 |
+
);
|
1039 |
+
}
|
1040 |
+
|
1041 |
+
function set_text_watermark($original_filename, $dest_filename, $watermark_text, $watermark_font, $watermark_font_size, $watermark_color, $watermark_transparency, $watermark_position) {
|
1042 |
+
$original_filename = htmlspecialchars_decode($original_filename, ENT_COMPAT | ENT_QUOTES);
|
1043 |
+
$dest_filename = htmlspecialchars_decode($dest_filename, ENT_COMPAT | ENT_QUOTES);
|
1044 |
+
|
1045 |
+
$watermark_transparency = 127 - ((100 - $watermark_transparency) * 1.27);
|
1046 |
+
list($width, $height, $type) = getimagesize($original_filename);
|
1047 |
+
$watermark_image = imagecreatetruecolor($width, $height);
|
1048 |
+
|
1049 |
+
$watermark_color = $this->wds_hex2rgb($watermark_color);
|
1050 |
+
$watermark_color = imagecolorallocatealpha($watermark_image, $watermark_color[0], $watermark_color[1], $watermark_color[2], $watermark_transparency);
|
1051 |
+
$watermark_font = WDS()->plugin_dir . '/fonts/' . $watermark_font;
|
1052 |
+
$watermark_font_size = ($height * $watermark_font_size / 500);
|
1053 |
+
$watermark_position = explode('-', $watermark_position);
|
1054 |
+
$watermark_sizes = $this->wds_imagettfbboxdimensions($watermark_font_size, 0, $watermark_font, $watermark_text);
|
1055 |
+
|
1056 |
+
$top = $height - 5;
|
1057 |
+
$left = $width - $watermark_sizes['width'] - 5;
|
1058 |
+
switch ($watermark_position[0]) {
|
1059 |
+
case 'top':
|
1060 |
+
$top = $watermark_sizes['height'] + 5;
|
1061 |
+
break;
|
1062 |
+
case 'middle':
|
1063 |
+
$top = ($height + $watermark_sizes['height']) / 2;
|
1064 |
+
break;
|
1065 |
+
}
|
1066 |
+
switch ($watermark_position[1]) {
|
1067 |
+
case 'left':
|
1068 |
+
$left = 5;
|
1069 |
+
break;
|
1070 |
+
case 'center':
|
1071 |
+
$left = ($width - $watermark_sizes['width']) / 2;
|
1072 |
+
break;
|
1073 |
+
}
|
1074 |
+
@ini_set('memory_limit', '-1');
|
1075 |
+
if ($type == 2) {
|
1076 |
+
$image = imagecreatefromjpeg($original_filename);
|
1077 |
+
imagettftext($image, $watermark_font_size, 0, $left, $top, $watermark_color, $watermark_font, $watermark_text);
|
1078 |
+
imagejpeg ($image, $dest_filename, 100);
|
1079 |
+
imagedestroy($image);
|
1080 |
+
}
|
1081 |
+
elseif ($type == 3) {
|
1082 |
+
$image = imagecreatefrompng($original_filename);
|
1083 |
+
imagettftext($image, $watermark_font_size, 0, $left, $top, $watermark_color, $watermark_font, $watermark_text);
|
1084 |
+
imageColorAllocateAlpha($image, 0, 0, 0, 127);
|
1085 |
+
imagealphablending($image, FALSE);
|
1086 |
+
imagesavealpha($image, TRUE);
|
1087 |
+
imagepng($image, $dest_filename, 9);
|
1088 |
+
imagedestroy($image);
|
1089 |
+
}
|
1090 |
+
elseif ($type == 1) {
|
1091 |
+
$image = imagecreatefromgif($original_filename);
|
1092 |
+
imageColorAllocateAlpha($watermark_image, 0, 0, 0, 127);
|
1093 |
+
imagecopy($watermark_image, $image, 0, 0, 0, 0, $width, $height);
|
1094 |
+
imagettftext($watermark_image, $watermark_font_size, 0, $left, $top, $watermark_color, $watermark_font, $watermark_text);
|
1095 |
+
imagealphablending($watermark_image, FALSE);
|
1096 |
+
imagesavealpha($watermark_image, TRUE);
|
1097 |
+
imagegif($watermark_image, $dest_filename);
|
1098 |
+
imagedestroy($image);
|
1099 |
+
}
|
1100 |
+
imagedestroy($watermark_image);
|
1101 |
+
@ini_restore('memory_limit');
|
1102 |
+
}
|
1103 |
+
|
1104 |
+
function set_image_watermark($original_filename, $dest_filename, $watermark_url, $watermark_height, $watermark_width, $watermark_position) {
|
1105 |
+
$original_filename = htmlspecialchars_decode($original_filename, ENT_COMPAT | ENT_QUOTES);
|
1106 |
+
$dest_filename = htmlspecialchars_decode($dest_filename, ENT_COMPAT | ENT_QUOTES);
|
1107 |
+
$watermark_url = htmlspecialchars_decode($watermark_url, ENT_COMPAT | ENT_QUOTES);
|
1108 |
+
|
1109 |
+
list($width, $height, $type) = getimagesize($original_filename);
|
1110 |
+
list($width_watermark, $height_watermark, $type_watermark) = getimagesize($watermark_url);
|
1111 |
+
|
1112 |
+
$watermark_width = $width * $watermark_width / 100;
|
1113 |
+
$watermark_height = $height_watermark * $watermark_width / $width_watermark;
|
1114 |
+
|
1115 |
+
$watermark_position = explode('-', $watermark_position);
|
1116 |
+
$top = $height - $watermark_height - 5;
|
1117 |
+
$left = $width - $watermark_width - 5;
|
1118 |
+
switch ($watermark_position[0]) {
|
1119 |
+
case 'top':
|
1120 |
+
$top = 5;
|
1121 |
+
break;
|
1122 |
+
case 'middle':
|
1123 |
+
$top = ($height - $watermark_height) / 2;
|
1124 |
+
break;
|
1125 |
+
}
|
1126 |
+
switch ($watermark_position[1]) {
|
1127 |
+
case 'left':
|
1128 |
+
$left = 5;
|
1129 |
+
break;
|
1130 |
+
case 'center':
|
1131 |
+
$left = ($width - $watermark_width) / 2;
|
1132 |
+
break;
|
1133 |
+
}
|
1134 |
+
@ini_set('memory_limit', '-1');
|
1135 |
+
if ($type_watermark == 2) {
|
1136 |
+
$watermark_image = imagecreatefromjpeg($watermark_url);
|
1137 |
+
}
|
1138 |
+
elseif ($type_watermark == 3) {
|
1139 |
+
$watermark_image = imagecreatefrompng($watermark_url);
|
1140 |
+
}
|
1141 |
+
elseif ($type_watermark == 1) {
|
1142 |
+
$watermark_image = imagecreatefromgif($watermark_url);
|
1143 |
+
}
|
1144 |
+
else {
|
1145 |
+
return false;
|
1146 |
+
}
|
1147 |
+
|
1148 |
+
$watermark_image_resized = imagecreatetruecolor($watermark_width, $watermark_height);
|
1149 |
+
imagecolorallocatealpha($watermark_image_resized, 255, 255, 255, 127);
|
1150 |
+
imagealphablending($watermark_image_resized, FALSE);
|
1151 |
+
imagesavealpha($watermark_image_resized, TRUE);
|
1152 |
+
imagecopyresampled ($watermark_image_resized, $watermark_image, 0, 0, 0, 0, $watermark_width, $watermark_height, $width_watermark, $height_watermark);
|
1153 |
+
|
1154 |
+
if ($type == 2) {
|
1155 |
+
$image = imagecreatefromjpeg($original_filename);
|
1156 |
+
imagecopy($image, $watermark_image_resized, $left, $top, 0, 0, $watermark_width, $watermark_height);
|
1157 |
+
if ($dest_filename <> '') {
|
1158 |
+
imagejpeg ($image, $dest_filename, 100);
|
1159 |
+
} else {
|
1160 |
+
header('Content-Type: image/jpeg');
|
1161 |
+
imagejpeg($image, null, 100);
|
1162 |
+
};
|
1163 |
+
imagedestroy($image);
|
1164 |
+
}
|
1165 |
+
elseif ($type == 3) {
|
1166 |
+
$image = imagecreatefrompng($original_filename);
|
1167 |
+
imagecopy($image, $watermark_image_resized, $left, $top, 0, 0, $watermark_width, $watermark_height);
|
1168 |
+
imagealphablending($image, FALSE);
|
1169 |
+
imagesavealpha($image, TRUE);
|
1170 |
+
imagepng($image, $dest_filename, 9);
|
1171 |
+
imagedestroy($image);
|
1172 |
+
}
|
1173 |
+
elseif ($type == 1) {
|
1174 |
+
$image = imagecreatefromgif($original_filename);
|
1175 |
+
$tempimage = imagecreatetruecolor($width, $height);
|
1176 |
+
imagecopy($tempimage, $image, 0, 0, 0, 0, $width, $height);
|
1177 |
+
imagecopy($tempimage, $watermark_image_resized, $left, $top, 0, 0, $watermark_width, $watermark_height);
|
1178 |
+
imagegif($tempimage, $dest_filename);
|
1179 |
+
imagedestroy($image);
|
1180 |
+
imagedestroy($tempimage);
|
1181 |
+
}
|
1182 |
+
imagedestroy($watermark_image);
|
1183 |
+
@ini_restore('memory_limit');
|
1184 |
+
}
|
1185 |
+
|
1186 |
+
/**
|
1187 |
+
* create frontend js file.
|
1188 |
+
*
|
1189 |
+
* @param int $id
|
1190 |
+
* @retunr bool
|
1191 |
+
*/
|
1192 |
+
private function create_frontend_js_file( $id = 0 ) {
|
1193 |
+
require_once WDS()->plugin_dir . "/admin/models/WDSModelSliders_wds.php";
|
1194 |
+
$model = new WDSModelSliders_wds();
|
1195 |
+
return $model->create_frontend_js_file( $id = 0 );
|
1196 |
+
}
|
1197 |
+
|
1198 |
+
/**
|
1199 |
+
* Remove frontend js file.
|
1200 |
+
*
|
1201 |
+
* @param int $id
|
1202 |
+
*/
|
1203 |
+
private function remove_frontend_js_file( $id = 0 ) {
|
1204 |
+
$wp_upload_dir = wp_upload_dir();
|
1205 |
+
if ( is_file($wp_upload_dir['basedir'] . '/slider-wd-scripts/script-' . $id . '.js') ){
|
1206 |
+
unlink( $wp_upload_dir['basedir'] . '/slider-wd-scripts/script-' . $id . '.js' );
|
1207 |
+
}
|
1208 |
+
}
|
1209 |
+
}
|
admin/controllers/WDSControllerGoptions_wds.php
CHANGED
@@ -19,10 +19,10 @@ class WDSControllerGoptions_wds {
|
|
19 |
}
|
20 |
|
21 |
public function display() {
|
22 |
-
require_once
|
23 |
$model = new WDSModelGoptions_wds();
|
24 |
|
25 |
-
require_once
|
26 |
$view = new WDSViewGoptions_wds($model);
|
27 |
$view->display($this->get_sliders());
|
28 |
}
|
@@ -149,12 +149,12 @@ class WDSControllerGoptions_wds {
|
|
149 |
if ($sliders) {
|
150 |
$sliders[0] = new stdclass();
|
151 |
$sliders[0]->id = '';
|
152 |
-
$sliders[0]->name = __('All sliders',
|
153 |
}
|
154 |
else {
|
155 |
$sliders[0] = new stdclass();
|
156 |
$sliders[0]->id = 0;
|
157 |
-
$sliders[0]->name = __('-Select-',
|
158 |
}
|
159 |
|
160 |
ksort($sliders);
|
19 |
}
|
20 |
|
21 |
public function display() {
|
22 |
+
require_once WDS()->plugin_dir . "/admin/models/WDSModelGoptions_wds.php";
|
23 |
$model = new WDSModelGoptions_wds();
|
24 |
|
25 |
+
require_once WDS()->plugin_dir . "/admin/views/WDSViewGoptions_wds.php";
|
26 |
$view = new WDSViewGoptions_wds($model);
|
27 |
$view->display($this->get_sliders());
|
28 |
}
|
149 |
if ($sliders) {
|
150 |
$sliders[0] = new stdclass();
|
151 |
$sliders[0]->id = '';
|
152 |
+
$sliders[0]->name = __('All sliders', WDS()->prefix);
|
153 |
}
|
154 |
else {
|
155 |
$sliders[0] = new stdclass();
|
156 |
$sliders[0]->id = 0;
|
157 |
+
$sliders[0]->name = __('-Select-', WDS()->prefix);
|
158 |
}
|
159 |
|
160 |
ksort($sliders);
|
admin/controllers/WDSControllerSliders_wds.php
DELETED
@@ -1,1409 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class WDSControllerSliders_wds {
|
3 |
-
|
4 |
-
public function __construct() {
|
5 |
-
}
|
6 |
-
|
7 |
-
public function execute() {
|
8 |
-
$task = WDW_S_Library::get('task');
|
9 |
-
$id = WDW_S_Library::get('current_id', 0);
|
10 |
-
$message = WDW_S_Library::get('message');
|
11 |
-
echo WDW_S_Library::message_id($message);
|
12 |
-
if (method_exists($this, $task)) {
|
13 |
-
check_admin_referer('nonce_wd', 'nonce_wd');
|
14 |
-
$this->$task($id);
|
15 |
-
}
|
16 |
-
else {
|
17 |
-
$this->display();
|
18 |
-
}
|
19 |
-
}
|
20 |
-
|
21 |
-
public function display() {
|
22 |
-
require_once WD_S_DIR . "/admin/models/WDSModelSliders_wds.php";
|
23 |
-
$model = new WDSModelSliders_wds();
|
24 |
-
|
25 |
-
require_once WD_S_DIR . "/admin/views/WDSViewSliders_wds.php";
|
26 |
-
$view = new WDSViewSliders_wds($model);
|
27 |
-
$view->display();
|
28 |
-
}
|
29 |
-
|
30 |
-
public function add() {
|
31 |
-
require_once WD_S_DIR . "/admin/models/WDSModelSliders_wds.php";
|
32 |
-
$model = new WDSModelSliders_wds();
|
33 |
-
|
34 |
-
require_once WD_S_DIR . "/admin/views/WDSViewSliders_wds.php";
|
35 |
-
$view = new WDSViewSliders_wds($model);
|
36 |
-
$view->edit(0);
|
37 |
-
}
|
38 |
-
|
39 |
-
public function edit() {
|
40 |
-
require_once WD_S_DIR . "/admin/models/WDSModelSliders_wds.php";
|
41 |
-
$model = new WDSModelSliders_wds();
|
42 |
-
|
43 |
-
require_once WD_S_DIR . "/admin/views/WDSViewSliders_wds.php";
|
44 |
-
$view = new WDSViewSliders_wds($model);
|
45 |
-
$id = ((isset($_POST['current_id']) && esc_html(stripslashes($_POST['current_id'])) != '') ? esc_html(stripslashes($_POST['current_id'])) : 0);
|
46 |
-
$view->edit($id);
|
47 |
-
}
|
48 |
-
|
49 |
-
public function save() {
|
50 |
-
$page = WDW_S_Library::get('page');
|
51 |
-
WDW_S_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => 1), admin_url('admin.php')));
|
52 |
-
}
|
53 |
-
|
54 |
-
public function apply() {
|
55 |
-
$this->save_slider_db();
|
56 |
-
$this->save_slide_db();
|
57 |
-
// TODO. need works the other version.
|
58 |
-
// $this->create_frontend_js_file( $id );
|
59 |
-
$this->edit();
|
60 |
-
}
|
61 |
-
|
62 |
-
public function save_slider_db() {
|
63 |
-
global $wpdb;
|
64 |
-
if ( WD_S_FREE && get_option("wds_theme_version") ) {
|
65 |
-
$allow = FALSE;
|
66 |
-
}
|
67 |
-
else {
|
68 |
-
$allow = TRUE;
|
69 |
-
}
|
70 |
-
$slider_id = (isset($_POST['current_id']) ? (int) $_POST['current_id'] : 0);
|
71 |
-
$slider_data = (isset($_POST['slider_data']) ? stripslashes($_POST['slider_data']) : '');
|
72 |
-
$params_array = json_decode($slider_data, TRUE);
|
73 |
-
$del_slide_ids_string = (isset($params_array['del_slide_ids_string']) ? substr(esc_html(stripslashes($params_array['del_slide_ids_string'])), 0, -1) : '');
|
74 |
-
if ($del_slide_ids_string) {
|
75 |
-
$wpdb->query('DELETE FROM ' . $wpdb->prefix . 'wdsslide WHERE slider_id=' . $slider_id . ' AND id IN (' . $del_slide_ids_string . ')');
|
76 |
-
}
|
77 |
-
$name = ((isset($params_array['name'])) ? esc_html(stripslashes($params_array['name'])) : '');
|
78 |
-
$published = ((isset($params_array['published'])) ? (int) esc_html(stripslashes($params_array['published'])) : 1);
|
79 |
-
$full_width = ((isset($params_array['full_width'])) ? (int) esc_html(stripslashes($params_array['full_width'])) : 0);
|
80 |
-
$auto_height = ((isset($params_array['auto_height'])) ? (int) esc_html(stripslashes($params_array['auto_height'])) : 0);
|
81 |
-
$width = ((isset($params_array['width'])) ? (int) esc_html(stripslashes($params_array['width'])) : 900);
|
82 |
-
$height = ((isset($params_array['height'])) ? (int) esc_html((stripslashes($params_array['height']))) : 400);
|
83 |
-
$align = ((isset($params_array['align'])) ? esc_html(stripslashes($params_array['align'])) : 'center');
|
84 |
-
$effect = ((isset($params_array['effect'])) ? esc_html(stripslashes($params_array['effect'])) : 'fade');
|
85 |
-
$time_intervval = ((isset($params_array['time_intervval'])) ? (int) esc_html(stripslashes($params_array['time_intervval'])) : 5);
|
86 |
-
$autoplay = ((isset($params_array['autoplay'])) ? (int) esc_html(stripslashes($params_array['autoplay'])) : 1);
|
87 |
-
$shuffle = ((isset($params_array['shuffle'])) ? (int) esc_html(stripslashes($params_array['shuffle'])) : 0);
|
88 |
-
$music = ((isset($params_array['music'])) ? (int) esc_html(stripslashes($params_array['music'])) : 0);
|
89 |
-
if ( isset($params_array['music_url']) && WDW_S_Library::validate_audio_file($params_array['music_url']) ) {
|
90 |
-
$music_url = esc_html(stripslashes($params_array['music_url']));
|
91 |
-
$music_url = str_replace(site_url(), '{site_url}', $music_url);
|
92 |
-
}
|
93 |
-
else {
|
94 |
-
$music_url = '';
|
95 |
-
}
|
96 |
-
$preload_images = ((isset($params_array['preload_images'])) ? (int) esc_html(stripslashes($params_array['preload_images'])) : 1);
|
97 |
-
$background_color = ((isset($params_array['background_color'])) ? esc_html(stripslashes($params_array['background_color'])) : '000000');
|
98 |
-
$background_transparent = ((isset($params_array['background_transparent'])) ? (int) esc_html(stripslashes($params_array['background_transparent'])) : 100);
|
99 |
-
$glb_border_width = ((isset($params_array['glb_border_width'])) ? (int) esc_html(stripslashes($params_array['glb_border_width'])) : 0);
|
100 |
-
$glb_border_style = ((isset($params_array['glb_border_style'])) ? esc_html(stripslashes($params_array['glb_border_style'])) : 'none');
|
101 |
-
$glb_border_color = ((isset($params_array['glb_border_color'])) ? esc_html(stripslashes($params_array['glb_border_color'])) : '000000');
|
102 |
-
$glb_border_radius = ((isset($params_array['glb_border_radius'])) ? esc_html(stripslashes($params_array['glb_border_radius'])) : '');
|
103 |
-
$glb_margin = ((isset($params_array['glb_margin'])) ? (int) esc_html(stripslashes($params_array['glb_margin'])) : 0);
|
104 |
-
$glb_box_shadow = ((isset($params_array['glb_box_shadow'])) ? esc_html(stripslashes($params_array['glb_box_shadow'])) : '');
|
105 |
-
$image_right_click = ((isset($params_array['image_right_click'])) ? (int) esc_html(stripslashes($params_array['image_right_click'])) : 0);
|
106 |
-
$layer_out_next = ((isset($params_array['layer_out_next'])) ? (int) esc_html(stripslashes($params_array['layer_out_next'])) : 0);
|
107 |
-
$prev_next_butt = ((isset($params_array['prev_next_butt'])) ? (int) esc_html(stripslashes($params_array['prev_next_butt'])) : 1);
|
108 |
-
$play_paus_butt = ((isset($params_array['play_paus_butt'])) ? (int) esc_html(stripslashes($params_array['play_paus_butt'])) : 0);
|
109 |
-
$navigation = ((isset($params_array['navigation'])) ? esc_html(stripslashes($params_array['navigation'])) : 'hover');
|
110 |
-
$rl_butt_style = ((isset($params_array['rl_butt_style'])) ? esc_html(stripslashes($params_array['rl_butt_style'])) : 'fa-angle');
|
111 |
-
$rl_butt_size = ((isset($params_array['rl_butt_size'])) ? (int) esc_html(stripslashes($params_array['rl_butt_size'])) : 40);
|
112 |
-
$pp_butt_size = ((isset($params_array['pp_butt_size'])) ? (int) esc_html(stripslashes($params_array['pp_butt_size'])) : 40);
|
113 |
-
$butts_color = ((isset($params_array['butts_color'])) ? esc_html(stripslashes($params_array['butts_color'])) : '000000');
|
114 |
-
$butts_transparent = ((isset($params_array['butts_transparent'])) ? (int) esc_html(stripslashes($params_array['butts_transparent'])) : 100);
|
115 |
-
$hover_color = ((isset($params_array['hover_color'])) ? esc_html(stripslashes($params_array['hover_color'])) : 'FFFFFF');
|
116 |
-
$nav_border_width = ((isset($params_array['nav_border_width'])) ? (int) esc_html(stripslashes($params_array['nav_border_width'])) : 0);
|
117 |
-
$nav_border_style = ((isset($params_array['nav_border_style'])) ? esc_html(stripslashes($params_array['nav_border_style'])) : 'none');
|
118 |
-
$nav_border_color = ((isset($params_array['nav_border_color'])) ? esc_html(stripslashes($params_array['nav_border_color'])) : 'FFFFFF');
|
119 |
-
$nav_border_radius = ((isset($params_array['nav_border_radius'])) ? esc_html(stripslashes($params_array['nav_border_radius'])) : '20px');
|
120 |
-
$nav_bg_color = ((isset($params_array['nav_bg_color'])) ? esc_html(stripslashes($params_array['nav_bg_color'])) : 'FFFFFF');
|
121 |
-
$bull_position = ((isset($params_array['bull_position'])) ? esc_html(stripslashes($params_array['bull_position'])) : 'bottom');
|
122 |
-
if (isset($params_array['enable_bullets']) && (esc_html(stripslashes($params_array['enable_bullets'])) == 0)) {
|
123 |
-
$bull_position = 'none';
|
124 |
-
}
|
125 |
-
$bull_style = ((isset($params_array['bull_style']) && $allow) ? esc_html(stripslashes($params_array['bull_style'])) : 'fa-square-o');
|
126 |
-
$bull_size = ((isset($params_array['bull_size']) && $allow) ? (int) esc_html(stripslashes($params_array['bull_size'])) : 20);
|
127 |
-
$bull_color = ((isset($params_array['bull_color']) && $allow) ? esc_html(stripslashes($params_array['bull_color'])) : 'FFFFFF');
|
128 |
-
$bull_act_color = ((isset($params_array['bull_act_color']) && $allow) ? esc_html(stripslashes($params_array['bull_act_color'])) : 'FFFFFF');
|
129 |
-
$bull_margin = ((isset($params_array['bull_margin']) && $allow) ? (int) esc_html(stripslashes($params_array['bull_margin'])) : 3);
|
130 |
-
$film_pos = ((isset($params_array['film_pos'])) ? esc_html(stripslashes($params_array['film_pos'])) : 'none');
|
131 |
-
if (isset($params_array['enable_filmstrip']) && (esc_html(stripslashes($params_array['enable_filmstrip'])) == 0)) {
|
132 |
-
$film_pos = 'none';
|
133 |
-
}
|
134 |
-
$film_thumb_width = ((isset($params_array['film_thumb_width'])) ? (int) esc_html(stripslashes($params_array['film_thumb_width'])) : 100);
|
135 |
-
$film_thumb_height = ((isset($params_array['film_thumb_height'])) ? (int) esc_html(stripslashes($params_array['film_thumb_height'])) : 50);
|
136 |
-
$film_bg_color = ((isset($params_array['film_bg_color'])) ? esc_html(stripslashes($params_array['film_bg_color'])) : '000000');
|
137 |
-
$film_tmb_margin = ((isset($params_array['film_tmb_margin'])) ? (int) esc_html(stripslashes($params_array['film_tmb_margin'])) : 0);
|
138 |
-
$film_act_border_width = ((isset($params_array['film_act_border_width'])) ? (int) esc_html(stripslashes($params_array['film_act_border_width'])) : 0);
|
139 |
-
$film_act_border_style = ((isset($params_array['film_act_border_style'])) ? esc_html(stripslashes($params_array['film_act_border_style'])) : 'none');
|
140 |
-
$film_act_border_color = ((isset($params_array['film_act_border_color'])) ? esc_html(stripslashes($params_array['film_act_border_color'])) : 'FFFFFF');
|
141 |
-
$film_dac_transparent = ((isset($params_array['film_dac_transparent'])) ? (int) esc_html(stripslashes($params_array['film_dac_transparent'])) : 50);
|
142 |
-
$built_in_watermark_type = (isset($params_array['built_in_watermark_type']) ? esc_html(stripslashes($params_array['built_in_watermark_type'])) : 'none');
|
143 |
-
$built_in_watermark_position = (isset($params_array['built_in_watermark_position']) ? esc_html(stripslashes($params_array['built_in_watermark_position'])) : 'middle-center');
|
144 |
-
$built_in_watermark_size = (isset($params_array['built_in_watermark_size']) ? (int) esc_html(stripslashes($params_array['built_in_watermark_size'])) : 15);
|
145 |
-
$built_in_watermark_url = (isset($params_array['built_in_watermark_url']) ? esc_html(stripslashes($params_array['built_in_watermark_url'])) : '');
|
146 |
-
$built_in_watermark_url = str_replace(site_url(), '{site_url}', $built_in_watermark_url);
|
147 |
-
$built_in_watermark_text = (isset($params_array['built_in_watermark_text']) ? esc_html(stripslashes($params_array['built_in_watermark_text'])) : 'web-dorado.com');
|
148 |
-
$built_in_watermark_opacity = (isset($params_array['built_in_watermark_opacity']) ? (int) esc_html(stripslashes($params_array['built_in_watermark_opacity'])) : 70);
|
149 |
-
$built_in_watermark_font_size = (isset($params_array['built_in_watermark_font_size']) ? (int) esc_html(stripslashes($params_array['built_in_watermark_font_size'])) : 20);
|
150 |
-
$built_in_watermark_font = (isset($params_array['built_in_watermark_font']) ? esc_html(stripslashes($params_array['built_in_watermark_font'])) : '');
|
151 |
-
$built_in_watermark_color = (isset($params_array['built_in_watermark_color']) ? esc_html(stripslashes($params_array['built_in_watermark_color'])) : 'FFFFFF');
|
152 |
-
$css = (isset($params_array['css']) ? htmlspecialchars_decode((stripslashes($params_array['css'])), ENT_QUOTES) : '');
|
153 |
-
$timer_bar_type = (isset($params_array['timer_bar_type']) ? esc_html(stripslashes($params_array['timer_bar_type'])) : 'top');
|
154 |
-
if (isset($params_array['enable_time_bar']) && (esc_html(stripslashes($params_array['enable_time_bar'])) == 0)) {
|
155 |
-
$timer_bar_type = 'none';
|
156 |
-
}
|
157 |
-
$timer_bar_size = (isset($params_array['timer_bar_size']) ? (int) esc_html(stripslashes($params_array['timer_bar_size'])) : 5);
|
158 |
-
$timer_bar_color = (isset($params_array['timer_bar_color']) ? esc_html(stripslashes($params_array['timer_bar_color'])) : 'BBBBBB');
|
159 |
-
$timer_bar_transparent = (isset($params_array['timer_bar_transparent']) ? (int) esc_html(stripslashes($params_array['timer_bar_transparent'])) : 50);
|
160 |
-
$stop_animation = ((isset($params_array['stop_animation'])) ? (int) esc_html(stripslashes($params_array['stop_animation'])) : 0);
|
161 |
-
$right_butt_url = (isset($params_array['right_butt_url']) ? esc_html(stripslashes($params_array['right_butt_url'])) : '');
|
162 |
-
$right_butt_url = str_replace(site_url(), '{site_url}', $right_butt_url);
|
163 |
-
$left_butt_url = (isset($params_array['left_butt_url']) ? esc_html(stripslashes($params_array['left_butt_url'])) : '');
|
164 |
-
$left_butt_url = str_replace(site_url(), '{site_url}', $left_butt_url);
|
165 |
-
$right_butt_hov_url = (isset($params_array['right_butt_hov_url']) ? esc_html(stripslashes($params_array['right_butt_hov_url'])) : '');
|
166 |
-
$right_butt_hov_url = str_replace(site_url(), '{site_url}', $right_butt_hov_url);
|
167 |
-
$left_butt_hov_url = (isset($params_array['left_butt_hov_url']) ? esc_html(stripslashes($params_array['left_butt_hov_url'])) : '');
|
168 |
-
$left_butt_hov_url = str_replace(site_url(), '{site_url}', $left_butt_hov_url);
|
169 |
-
$rl_butt_img_or_not = (isset($params_array['rl_butt_img_or_not']) ? esc_html(stripslashes($params_array['rl_butt_img_or_not'])) : 'style');
|
170 |
-
$bullets_img_main_url = (isset($params_array['bullets_img_main_url']) ? esc_html(stripslashes($params_array['bullets_img_main_url'])) : '');
|
171 |
-
$bullets_img_main_url = str_replace(site_url(), '{site_url}', $bullets_img_main_url);
|
172 |
-
$bullets_img_hov_url = (isset($params_array['bullets_img_hov_url']) ? esc_html(stripslashes($params_array['bullets_img_hov_url'])) : '');
|
173 |
-
$bullets_img_hov_url = str_replace(site_url(), '{site_url}', $bullets_img_hov_url);
|
174 |
-
$bull_butt_img_or_not = (isset($params_array['bull_butt_img_or_not']) ? esc_html(stripslashes($params_array['bull_butt_img_or_not'])) : 'style');
|
175 |
-
$play_paus_butt_img_or_not = (isset($params_array['play_paus_butt_img_or_not']) ? esc_html(stripslashes($params_array['play_paus_butt_img_or_not'])) : 'style');
|
176 |
-
$play_butt_url = (isset($params_array['play_butt_url']) ? esc_html(stripslashes($params_array['play_butt_url'])) : '');
|
177 |
-
$play_butt_url = str_replace(site_url(), '{site_url}', $play_butt_url);
|
178 |
-
$play_butt_hov_url = (isset($params_array['play_butt_hov_url']) ? esc_html(stripslashes($params_array['play_butt_hov_url'])) : '');
|
179 |
-
$play_butt_hov_url = str_replace(site_url(), '{site_url}', $play_butt_hov_url);
|
180 |
-
$paus_butt_url = (isset($params_array['paus_butt_url']) ? esc_html(stripslashes($params_array['paus_butt_url'])) : '');
|
181 |
-
$paus_butt_url = str_replace(site_url(), '{site_url}', $paus_butt_url);
|
182 |
-
$paus_butt_hov_url = (isset($params_array['paus_butt_hov_url']) ? esc_html(stripslashes($params_array['paus_butt_hov_url'])) : '');
|
183 |
-
$paus_butt_hov_url = str_replace(site_url(), '{site_url}', $paus_butt_hov_url);
|
184 |
-
$start_slide_num = ((isset($params_array['start_slide_num'])) ? (int) stripslashes($params_array['start_slide_num']) : 1);
|
185 |
-
$effect_duration = ((isset($params_array['effect_duration'])) ? (int) stripslashes($params_array['effect_duration']) : 800);
|
186 |
-
$carousel = ((isset($params_array['carousel']) && !WD_S_FREE) ? (int) esc_html(stripslashes($params_array['carousel'])) : 0);
|
187 |
-
$carousel_image_counts = ((isset($params_array['carousel_image_counts']) && !WD_S_FREE) ? (int) esc_html(stripslashes($params_array['carousel_image_counts'])) : 7);
|
188 |
-
$carousel_image_parameters = ((isset($params_array['carousel_image_parameters']) && !WD_S_FREE) ? esc_html(stripslashes($params_array['carousel_image_parameters'])) : 0.85);
|
189 |
-
$carousel_fit_containerWidth = ((isset($params_array['carousel_fit_containerWidth']) && !WD_S_FREE) ? (int) esc_html(stripslashes($params_array['carousel_fit_containerWidth'])) : 0);
|
190 |
-
$carousel_width = ((isset($params_array['carousel_width']) && !WD_S_FREE) ? (int) esc_html(stripslashes($params_array['carousel_width'])) : 1000);
|
191 |
-
$parallax_effect = ((isset($params_array['parallax_effect']) && !WD_S_FREE) ? (int) esc_html(stripslashes($params_array['parallax_effect'])) : 0);
|
192 |
-
$mouse_swipe_nav = ((isset($params_array['mouse_swipe_nav'])) ? (int) esc_html(stripslashes($params_array['mouse_swipe_nav'])) : 0);
|
193 |
-
$bull_hover = ((isset($params_array['bull_hover'])) ? (int) esc_html(stripslashes($params_array['bull_hover'])) : 1);
|
194 |
-
$touch_swipe_nav = ((isset($params_array['touch_swipe_nav'])) ? (int) esc_html(stripslashes($params_array['touch_swipe_nav'])) : 1);
|
195 |
-
$mouse_wheel_nav = ((isset($params_array['mouse_wheel_nav'])) ? (int) esc_html(stripslashes($params_array['mouse_wheel_nav'])) : 0);
|
196 |
-
$keyboard_nav = ((isset($params_array['keyboard_nav'])) ? (int) esc_html(stripslashes($params_array['keyboard_nav'])) : 0);
|
197 |
-
$show_thumbnail = ((isset($params_array['show_thumbnail'])) ? (int) esc_html(stripslashes($params_array['show_thumbnail'])) : 0);
|
198 |
-
$thumb_size = ((isset($params_array['thumb_size'])) ? esc_html(stripslashes($params_array['thumb_size'])) : '0.3');
|
199 |
-
$fixed_bg = ((isset($params_array['fixed_bg'])) ? (int) esc_html(stripslashes($params_array['fixed_bg'])) : 0);
|
200 |
-
$smart_crop = ((isset($params_array['smart_crop'])) ? (int) esc_html(stripslashes($params_array['smart_crop'])) : 0);
|
201 |
-
$crop_image_position = ((isset($params_array['crop_image_position'])) ? esc_html(stripslashes($params_array['crop_image_position'])) : 'middle-center');
|
202 |
-
$javascript = ((isset($params_array['javascript'])) ? $params_array['javascript'] : '');
|
203 |
-
$carousel_degree = ((isset($params_array['carousel_degree'])) ? (int) esc_html(stripslashes($params_array['carousel_degree'])) : 0);
|
204 |
-
$carousel_grayscale = ((isset($params_array['carousel_grayscale'])) ? (int) esc_html(stripslashes($params_array['carousel_grayscale'])) : 0);
|
205 |
-
$carousel_transparency = ((isset($params_array['carousel_transparency'])) ? (int) esc_html(stripslashes($params_array['carousel_transparency'])) : 0);
|
206 |
-
$bull_back_act_color = ((isset($params_array['bull_back_act_color'])) ? esc_html(stripslashes($params_array['bull_back_act_color'])) : '000000');
|
207 |
-
$bull_back_color = ((isset($params_array['bull_back_color'])) ? esc_html(stripslashes($params_array['bull_back_color'])) : 'CCCCCC');
|
208 |
-
$bull_radius = ((isset($params_array['bull_radius'])) ? esc_html(stripslashes($params_array['bull_radius'])) : '20px');
|
209 |
-
$slider_loop = ((isset($params_array['slider_loop'])) ? (int) esc_html(stripslashes($params_array['slider_loop'])) : 1);
|
210 |
-
$hide_on_mobile = ((isset($params_array['hide_on_mobile'])) ? (int) esc_html(stripslashes($params_array['hide_on_mobile'])) : 0);
|
211 |
-
$twoway_slideshow = ((isset($params_array['twoway_slideshow'])) ? (int) esc_html(stripslashes($params_array['twoway_slideshow'])) : 0);
|
212 |
-
$full_width_for_mobile = ((isset($params_array['full_width_for_mobile'])) ? (int) esc_html(stripslashes($params_array['full_width_for_mobile'])) : 0);
|
213 |
-
$order_dir = ((isset($params_array['order_dir'])) ? esc_html(stripslashes($params_array['order_dir'])) : 'asc');
|
214 |
-
$data = array(
|
215 |
-
'name' => $name,
|
216 |
-
'published' => $published,
|
217 |
-
'full_width' => $full_width,
|
218 |
-
'auto_height' => $auto_height,
|
219 |
-
'width' => $width,
|
220 |
-
'height' => $height,
|
221 |
-
'align' => $align,
|
222 |
-
'effect' => $effect,
|
223 |
-
'time_intervval' => $time_intervval,
|
224 |
-
'autoplay' => $autoplay,
|
225 |
-
'shuffle' => $shuffle,
|
226 |
-
'music' => $music,
|
227 |
-
'music_url' => $music_url,
|
228 |
-
'preload_images' => $preload_images,
|
229 |
-
'background_color' => $background_color,
|
230 |
-
'background_transparent' => $background_transparent,
|
231 |
-
'glb_border_width' => $glb_border_width,
|
232 |
-
'glb_border_style' => $glb_border_style,
|
233 |
-
'glb_border_color' => $glb_border_color,
|
234 |
-
'glb_border_radius' => $glb_border_radius,
|
235 |
-
'glb_margin' => $glb_margin,
|
236 |
-
'glb_box_shadow' => $glb_box_shadow,
|
237 |
-
'image_right_click' => $image_right_click,
|
238 |
-
'prev_next_butt' => $prev_next_butt,
|
239 |
-
'play_paus_butt' => $play_paus_butt,
|
240 |
-
'navigation' => $navigation,
|
241 |
-
'rl_butt_style' => $rl_butt_style,
|
242 |
-
'rl_butt_size' => $rl_butt_size,
|
243 |
-
'pp_butt_size' => $pp_butt_size,
|
244 |
-
'butts_color' => $butts_color,
|
245 |
-
'butts_transparent' => $butts_transparent,
|
246 |
-
'hover_color' => $hover_color,
|
247 |
-
'nav_border_width' => $nav_border_width,
|
248 |
-
'nav_border_style' => $nav_border_style,
|
249 |
-
'nav_border_color' => $nav_border_color,
|
250 |
-
'nav_border_radius' => $nav_border_radius,
|
251 |
-
'nav_bg_color' => $nav_bg_color,
|
252 |
-
'bull_position' => $bull_position,
|
253 |
-
'bull_style' => $bull_style,
|
254 |
-
'bull_size' => $bull_size,
|
255 |
-
'bull_color' => $bull_color,
|
256 |
-
'bull_act_color' => $bull_act_color,
|
257 |
-
'bull_margin' => $bull_margin,
|
258 |
-
'film_pos' => $film_pos,
|
259 |
-
'film_thumb_width' => $film_thumb_width,
|
260 |
-
'film_thumb_height' => $film_thumb_height,
|
261 |
-
'film_bg_color' => $film_bg_color,
|
262 |
-
'film_tmb_margin' => $film_tmb_margin,
|
263 |
-
'film_act_border_width' => $film_act_border_width,
|
264 |
-
'film_act_border_style' => $film_act_border_style,
|
265 |
-
'film_act_border_color' => $film_act_border_color,
|
266 |
-
'film_dac_transparent' => $film_dac_transparent,
|
267 |
-
'built_in_watermark_type' => $built_in_watermark_type,
|
268 |
-
'built_in_watermark_position' => $built_in_watermark_position,
|
269 |
-
'built_in_watermark_size' => $built_in_watermark_size,
|
270 |
-
'built_in_watermark_url' => $built_in_watermark_url,
|
271 |
-
'built_in_watermark_text' => $built_in_watermark_text,
|
272 |
-
'built_in_watermark_opacity' => $built_in_watermark_opacity,
|
273 |
-
'built_in_watermark_font_size' => $built_in_watermark_font_size,
|
274 |
-
'built_in_watermark_font' => $built_in_watermark_font,
|
275 |
-
'built_in_watermark_color' => $built_in_watermark_color,
|
276 |
-
'css' => $css,
|
277 |
-
'timer_bar_type' => $timer_bar_type,
|
278 |
-
'timer_bar_size' => $timer_bar_size,
|
279 |
-
'timer_bar_color' => $timer_bar_color,
|
280 |
-
'timer_bar_transparent' => $timer_bar_transparent,
|
281 |
-
'layer_out_next' => $layer_out_next,
|
282 |
-
'stop_animation' => $stop_animation,
|
283 |
-
'right_butt_url' => $right_butt_url,
|
284 |
-
'left_butt_url' => $left_butt_url,
|
285 |
-
'right_butt_hov_url' => $right_butt_hov_url,
|
286 |
-
'left_butt_hov_url' => $left_butt_hov_url,
|
287 |
-
'rl_butt_img_or_not' => $rl_butt_img_or_not,
|
288 |
-
'bullets_img_main_url' => $bullets_img_main_url,
|
289 |
-
'bullets_img_hov_url' => $bullets_img_hov_url,
|
290 |
-
'bull_butt_img_or_not' => $bull_butt_img_or_not,
|
291 |
-
'play_paus_butt_img_or_not' => $play_paus_butt_img_or_not,
|
292 |
-
'play_butt_url' => $play_butt_url,
|
293 |
-
'play_butt_hov_url' => $play_butt_hov_url,
|
294 |
-
'paus_butt_url' => $paus_butt_url,
|
295 |
-
'paus_butt_hov_url' => $paus_butt_hov_url,
|
296 |
-
'start_slide_num' => $start_slide_num,
|
297 |
-
'effect_duration' => $effect_duration,
|
298 |
-
'carousel' => $carousel,
|
299 |
-
'carousel_image_counts' => $carousel_image_counts,
|
300 |
-
'carousel_image_parameters' => $carousel_image_parameters,
|
301 |
-
'carousel_fit_containerWidth' => $carousel_fit_containerWidth,
|
302 |
-
'carousel_width' => $carousel_width,
|
303 |
-
'parallax_effect' => $parallax_effect,
|
304 |
-
'mouse_swipe_nav' => $mouse_swipe_nav,
|
305 |
-
'bull_hover' => $bull_hover,
|
306 |
-
'touch_swipe_nav' => $touch_swipe_nav,
|
307 |
-
'mouse_wheel_nav' => $mouse_wheel_nav,
|
308 |
-
'keyboard_nav' => $keyboard_nav,
|
309 |
-
'show_thumbnail' => $show_thumbnail,
|
310 |
-
'thumb_size' => $thumb_size,
|
311 |
-
'fixed_bg' => $fixed_bg,
|
312 |
-
'smart_crop' => $smart_crop,
|
313 |
-
'crop_image_position' => $crop_image_position,
|
314 |
-
'javascript' => $javascript,
|
315 |
-
'carousel_degree' => $carousel_degree,
|
316 |
-
'carousel_grayscale' => $carousel_grayscale,
|
317 |
-
'carousel_transparency' => $carousel_transparency,
|
318 |
-
'bull_back_act_color' => $bull_back_act_color,
|
319 |
-
'bull_back_color' => $bull_back_color,
|
320 |
-
'bull_radius' => $bull_radius,
|
321 |
-
'slider_loop' => $slider_loop,
|
322 |
-
'hide_on_mobile' => $hide_on_mobile,
|
323 |
-
'twoway_slideshow' => $twoway_slideshow,
|
324 |
-
'full_width_for_mobile' => $full_width_for_mobile,
|
325 |
-
'order_dir' => $order_dir,
|
326 |
-
);
|
327 |
-
|
328 |
-
if (!$slider_id) {
|
329 |
-
$save = $wpdb->insert($wpdb->prefix . 'wdsslider', $data);
|
330 |
-
$_POST['current_id'] = (int) $wpdb->insert_id;
|
331 |
-
}
|
332 |
-
else {
|
333 |
-
$save = $wpdb->update($wpdb->prefix . 'wdsslider', $data, array('id' => $slider_id));
|
334 |
-
}
|
335 |
-
if ($save !== FALSE) {
|
336 |
-
return 1;
|
337 |
-
}
|
338 |
-
else {
|
339 |
-
return 2;
|
340 |
-
}
|
341 |
-
}
|
342 |
-
|
343 |
-
public function save_slide_db() {
|
344 |
-
global $wpdb;
|
345 |
-
if ( WD_S_FREE && get_option("wds_theme_version") ) {
|
346 |
-
$allow = FALSE;
|
347 |
-
}
|
348 |
-
else {
|
349 |
-
$allow = TRUE;
|
350 |
-
}
|
351 |
-
$slider_id = (isset($_POST['current_id']) ? (int) $_POST['current_id'] : 0);
|
352 |
-
$save_as_copy = (isset($_POST['save_as_copy']) ? (int) $_POST['save_as_copy'] : 0);
|
353 |
-
if (!$slider_id) {
|
354 |
-
$slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
|
355 |
-
}
|
356 |
-
$slides_data = (isset($_POST['slides']) ? $_POST['slides'] : array());
|
357 |
-
foreach ($slides_data as $slide_data) {
|
358 |
-
$params_array = json_decode(stripslashes($slide_data), TRUE);
|
359 |
-
$slide_id = (isset($params_array['id']) ? $params_array['id'] : 0);
|
360 |
-
if ($slide_id) {
|
361 |
-
$del_layer_ids_string = ((isset($params_array['slide' . $slide_id . '_del_layer_ids_string']) && !$save_as_copy) ? substr(esc_html(stripslashes($params_array['slide' . $slide_id . '_del_layer_ids_string'])), 0, -1) : '');
|
362 |
-
if ($del_layer_ids_string) {
|
363 |
-
$wpdb->query('DELETE FROM ' . $wpdb->prefix . 'wdslayer WHERE id IN (' . $del_layer_ids_string . ')');
|
364 |
-
}
|
365 |
-
$title = ((isset($params_array['title' . $slide_id])) ? esc_html(stripslashes($params_array['title' . $slide_id])) : '');
|
366 |
-
$type = ((isset($params_array['type' . $slide_id])) ? esc_html(stripslashes($params_array['type' . $slide_id])) : '');
|
367 |
-
$order = ((isset($params_array['order' . $slide_id])) ? esc_html(stripslashes($params_array['order' . $slide_id])) : '');
|
368 |
-
$published = ((isset($params_array['published' . $slide_id])) ? esc_html(stripslashes($params_array['published' . $slide_id])) : '');
|
369 |
-
$target_attr_slide = ((isset($params_array['target_attr_slide' . $slide_id])) ? (int) esc_html(stripslashes($params_array['target_attr_slide' . $slide_id])) : 0);
|
370 |
-
$link = ((isset($params_array['link' . $slide_id])) ? esc_html(stripslashes($params_array['link' . $slide_id])) : (($type == 'video') ? 0 : ''));
|
371 |
-
$image_url = ((isset($params_array['image_url' . $slide_id])) ? esc_html(stripslashes($params_array['image_url' . $slide_id])) : '');
|
372 |
-
$image_url = str_replace(site_url(), '{site_url}', $image_url);
|
373 |
-
$thumb_url = ((isset($params_array['thumb_url' . $slide_id])) ? esc_html(stripslashes($params_array['thumb_url' . $slide_id])) : '');
|
374 |
-
$thumb_url = str_replace(site_url(), '{site_url}', $thumb_url);
|
375 |
-
$att_width = ((isset($params_array['att_width' . $slide_id])) ? esc_html(stripslashes($params_array['att_width' . $slide_id])) : '');
|
376 |
-
$att_height = ((isset($params_array['att_height' . $slide_id])) ? esc_html(stripslashes($params_array['att_height' . $slide_id])) : '');
|
377 |
-
$video_duration = ((isset($params_array['video_duration' . $slide_id])) ? esc_html(stripslashes($params_array['video_duration' . $slide_id])) : '');
|
378 |
-
$youtube_rel_video = ((isset($params_array['youtube_rel_video' . $slide_id]) && !WD_S_FREE) ? (int) esc_html(stripslashes($params_array['youtube_rel_video' . $slide_id])) : 0);
|
379 |
-
$video_loop = ((isset($params_array['video_loop' . $slide_id]) && !WD_S_FREE) ? (int) esc_html(stripslashes($params_array['video_loop' . $slide_id])) : 0);
|
380 |
-
$fillmode = ((isset($params_array['fillmode' . $slide_id])) ? esc_html(stripslashes($params_array['fillmode' . $slide_id])) : '');
|
381 |
-
$title_dimension = array();
|
382 |
-
$title_dimension['title'] = $title;
|
383 |
-
$title_dimension['att_width'] = $att_width;
|
384 |
-
$title_dimension['att_height'] = $att_height;
|
385 |
-
$title_dimension['video_duration'] = $video_duration;
|
386 |
-
$title_dimension = json_encode($title_dimension);
|
387 |
-
$data = array(
|
388 |
-
'slider_id' => $slider_id,
|
389 |
-
'title' => $title_dimension,
|
390 |
-
'type' => $type,
|
391 |
-
'order' => $order,
|
392 |
-
'published' => $published,
|
393 |
-
'link' => $link,
|
394 |
-
'image_url' => $image_url,
|
395 |
-
'thumb_url' => $thumb_url,
|
396 |
-
'target_attr_slide' => $target_attr_slide,
|
397 |
-
'youtube_rel_video' => $youtube_rel_video,
|
398 |
-
'video_loop' => $video_loop,
|
399 |
-
'fillmode' => $fillmode
|
400 |
-
);
|
401 |
-
if (strpos($slide_id, 'pr') !== FALSE || $save_as_copy) {
|
402 |
-
$wpdb->insert($wpdb->prefix . 'wdsslide', $data);
|
403 |
-
$slide_id_pr = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslide');
|
404 |
-
}
|
405 |
-
else {
|
406 |
-
$wpdb->update($wpdb->prefix . 'wdsslide', $data, array('id' => $slide_id));
|
407 |
-
$slide_id_pr = $slide_id;
|
408 |
-
}
|
409 |
-
if ( !WD_S_FREE ) {
|
410 |
-
$this->save_layer_db($slide_id, $slide_id_pr, $params_array);
|
411 |
-
}
|
412 |
-
}
|
413 |
-
}
|
414 |
-
}
|
415 |
-
|
416 |
-
public function save_layer_db($slide_id, $slide_id_pr, $params_array) {
|
417 |
-
global $wpdb;
|
418 |
-
$save_as_copy = (isset($_POST['save_as_copy']) ? (int) $_POST['save_as_copy'] : 0);
|
419 |
-
$layer_ids_string = (isset($params_array['slide' . $slide_id . '_layer_ids_string']) ? esc_html(stripslashes($params_array['slide' . $slide_id . '_layer_ids_string'])) : '');
|
420 |
-
$layer_id_array = explode(',', $layer_ids_string);
|
421 |
-
foreach ($layer_id_array as $layer_id) {
|
422 |
-
if ($layer_id) {
|
423 |
-
$prefix = 'slide' . $slide_id . '_layer' . $layer_id;
|
424 |
-
$json_string = (isset($params_array[$prefix . '_json']) ? $params_array[$prefix . '_json'] : '');
|
425 |
-
$params_array_layer = json_decode($json_string, TRUE);
|
426 |
-
$title = ((isset($params_array_layer['title'])) ? esc_html(stripslashes($params_array_layer['title'])) : '');
|
427 |
-
$type = ((isset($params_array_layer['type'])) ? esc_html(stripslashes($params_array_layer['type'])) : '');
|
428 |
-
$depth = ((isset($params_array_layer['depth'])) ? esc_html(stripslashes($params_array_layer['depth'])) : '');
|
429 |
-
$text = ((isset($params_array_layer['text'])) ? stripcslashes($params_array_layer['text']) : '');
|
430 |
-
$link = ((isset($params_array_layer['link'])) ? esc_html(stripslashes($params_array_layer['link'])) : '');
|
431 |
-
$target_attr_layer = ((isset($params_array_layer['target_attr_layer'])) ? (int) esc_html(stripslashes($params_array_layer['target_attr_layer'])) : 0);
|
432 |
-
$left = ((isset($params_array_layer['left'])) ? esc_html(stripslashes($params_array_layer['left'])) : '');
|
433 |
-
$top = ((isset($params_array_layer['top'])) ? esc_html(stripslashes($params_array_layer['top'])) : '');
|
434 |
-
$start = ((isset($params_array_layer['start'])) ? esc_html(stripslashes($params_array_layer['start'])) : '');
|
435 |
-
$end = ((isset($params_array_layer['end'])) ? esc_html(stripslashes($params_array_layer['end'])) : '');
|
436 |
-
$published = ((isset($params_array_layer['published'])) ? esc_html(stripslashes($params_array_layer['published'])) : '');
|
437 |
-
$color = ((isset($params_array_layer['color'])) ? esc_html(stripslashes($params_array_layer['color'])) : '');
|
438 |
-
$size = ((isset($params_array_layer['size'])) ? esc_html(stripslashes($params_array_layer['size'])) : '');
|
439 |
-
$ffamily = ((isset($params_array_layer['ffamily'])) ? esc_html(stripslashes($params_array_layer['ffamily'])) : '');
|
440 |
-
$fweight = ((isset($params_array_layer['fweight'])) ? esc_html(stripslashes($params_array_layer['fweight'])) : '');
|
441 |
-
$padding = ((isset($params_array_layer['padding'])) ? esc_html(stripslashes($params_array_layer['padding'])) : '');
|
442 |
-
$fbgcolor = ((isset($params_array_layer['fbgcolor'])) ? esc_html(stripslashes($params_array_layer['fbgcolor'])) : '');
|
443 |
-
$transparent = ((isset($params_array_layer['transparent'])) ? esc_html(stripslashes($params_array_layer['transparent'])) : '');
|
444 |
-
$border_width = ((isset($params_array_layer['border_width'])) ? esc_html(stripslashes($params_array_layer['border_width'])) : '');
|
445 |
-
$border_style = ((isset($params_array_layer['border_style'])) ? esc_html(stripslashes($params_array_layer['border_style'])) : '');
|
446 |
-
$border_color = ((isset($params_array_layer['border_color'])) ? esc_html(stripslashes($params_array_layer['border_color'])) : '');
|
447 |
-
$border_radius = ((isset($params_array_layer['border_radius'])) ? esc_html(stripslashes($params_array_layer['border_radius'])) : '');
|
448 |
-
$shadow = ((isset($params_array_layer['shadow'])) ? esc_html(stripslashes($params_array_layer['shadow'])) : '');
|
449 |
-
$image_url = ((isset($params_array_layer['image_url'])) ? esc_html(stripslashes($params_array_layer['image_url'])) : '');
|
450 |
-
$image_url = str_replace(site_url(), '{site_url}', $image_url);
|
451 |
-
$image_width = ((isset($params_array_layer['image_width'])) ? esc_html(stripslashes($params_array_layer['image_width'])) : '');
|
452 |
-
$image_height = ((isset($params_array_layer['image_height'])) ? esc_html(stripslashes($params_array_layer['image_height'])) : '');
|
453 |
-
$image_scale = ((isset($params_array_layer['image_scale'])) ? esc_html(stripslashes($params_array_layer['image_scale'])) : '');
|
454 |
-
$alt = ((isset($params_array_layer['alt'])) ? esc_html(stripslashes($params_array_layer['alt'])) : '');
|
455 |
-
$imgtransparent = ((isset($params_array_layer['imgtransparent'])) ? esc_html(stripslashes($params_array_layer['imgtransparent'])) : '');
|
456 |
-
$social_button = ((isset($params_array_layer['social_button'])) ? esc_html(stripslashes($params_array_layer['social_button'])) : '');
|
457 |
-
$hover_color = ((isset($params_array_layer['hover_color'])) ? esc_html(stripslashes($params_array_layer['hover_color'])) : '');
|
458 |
-
$layer_effect_in = ((isset($params_array_layer['layer_effect_in'])) ? esc_html(stripslashes($params_array_layer['layer_effect_in'])) : '');
|
459 |
-
$layer_effect_out = ((isset($params_array_layer['layer_effect_out'])) ? esc_html(stripslashes($params_array_layer['layer_effect_out'])) : '');
|
460 |
-
$duration_eff_in = ((isset($params_array_layer['duration_eff_in'])) ? (int) esc_html(stripslashes($params_array_layer['duration_eff_in'])) : 3);
|
461 |
-
$duration_eff_out = ((isset($params_array_layer['duration_eff_out'])) ? (int) esc_html(stripslashes($params_array_layer['duration_eff_out'])) : 3);
|
462 |
-
|
463 |
-
$hotp_width = ((isset($params_array_layer['hotp_width'])) ? esc_html(stripslashes($params_array_layer['hotp_width'])) : '');
|
464 |
-
$hotp_fbgcolor = ((isset($params_array_layer['hotp_fbgcolor'])) ? esc_html(stripslashes($params_array_layer['hotp_fbgcolor'])) : '');
|
465 |
-
$hotp_border_width = ((isset($params_array_layer['hotp_border_width'])) ? esc_html(stripslashes($params_array_layer['hotp_border_width'])) : '');
|
466 |
-
$hotp_border_style = ((isset($params_array_layer['hotp_border_style'])) ? esc_html(stripslashes($params_array_layer['hotp_border_style'])) : '');
|
467 |
-
$hotp_border_color = ((isset($params_array_layer['hotp_border_color'])) ? esc_html(stripslashes($params_array_layer['hotp_border_color'])) : '');
|
468 |
-
$hotp_border_radius = ((isset($params_array_layer['hotp_border_radius'])) ? esc_html(stripslashes($params_array_layer['hotp_border_radius'])) : '');
|
469 |
-
$hotp_text_position = ((isset($params_array_layer['hotp_text_position'])) ? esc_html(stripslashes($params_array_layer['hotp_text_position'])) : '');
|
470 |
-
$google_fonts = ((isset($params_array_layer['google_fonts'])) ? (int) esc_html(stripslashes($params_array_layer['google_fonts'])) : 0);
|
471 |
-
$attr_width = ((isset($params_array_layer['attr_width'])) ? esc_html(stripslashes($params_array_layer['attr_width'])) : '');
|
472 |
-
$attr_height = ((isset($params_array_layer['attr_height'])) ? esc_html(stripslashes($params_array_layer['attr_height'])) : '');
|
473 |
-
$add_class = ((isset($params_array_layer['add_class'])) ? esc_html(stripslashes($params_array_layer['add_class'])) : '');
|
474 |
-
$layer_video_loop = ((isset($params_array_layer['layer_video_loop'])) ? (int) esc_html(stripslashes($params_array_layer['layer_video_loop'])) : 0);
|
475 |
-
$youtube_rel_layer_video = ((isset($params_array_layer['youtube_rel_layer_video'])) ? (int) esc_html(stripslashes($params_array_layer['youtube_rel_layer_video'])) : 0);
|
476 |
-
$hotspot_animation = ((isset($params_array_layer['hotspot_animation'])) ? (int) esc_html(stripslashes($params_array_layer['hotspot_animation'])) : 1);
|
477 |
-
$layer_callback_list = ((isset($params_array_layer['layer_callback_list'])) ? esc_html(stripslashes($params_array_layer['layer_callback_list'])) : '');
|
478 |
-
$hotspot_text_display = ((isset($params_array_layer['hotspot_text_display'])) ? esc_html(stripslashes($params_array_layer['hotspot_text_display'])) : 'hover');
|
479 |
-
$hover_color_text = ((isset($params_array_layer['hover_color_text'])) ? esc_html(stripslashes($params_array_layer['hover_color_text'])) : '');
|
480 |
-
$text_alignment = ((isset($params_array_layer['text_alignment'])) ? esc_html(stripslashes($params_array_layer['text_alignment'])) : 'center');
|
481 |
-
$link_to_slide = ((isset($params_array_layer['link_to_slide'])) ? (int) esc_html(stripslashes($params_array_layer['link_to_slide'])) : 0);
|
482 |
-
$align_layer = ((isset($params_array_layer['align_layer'])) ? (int) esc_html(stripslashes($params_array_layer['align_layer'])) : 0);
|
483 |
-
$static_layer = ((isset($params_array_layer['static_layer'])) ? (int) esc_html(stripslashes($params_array_layer['static_layer'])) : 0);
|
484 |
-
$infinite_in = ((isset($params_array_layer['infinite_in'])) ? (int) esc_html(stripslashes($params_array_layer['infinite_in'])) : 1);
|
485 |
-
$infinite_out = ((isset($params_array_layer['infinite_out'])) ? (int) esc_html(stripslashes($params_array_layer['infinite_out'])) : 1);
|
486 |
-
$min_size = ((isset($params_array_layer['min_size'])) ? (int) esc_html(stripslashes($params_array_layer['min_size'])) : 11);
|
487 |
-
$title_dimension = array();
|
488 |
-
$title_dimension['title'] = $title;
|
489 |
-
$title_dimension['attr_width'] = $attr_width;
|
490 |
-
$title_dimension['attr_height'] = $attr_height;
|
491 |
-
$title_dimension = json_encode($title_dimension);
|
492 |
-
if ($title) {
|
493 |
-
if (strpos($layer_id, 'pr_') !== FALSE || $save_as_copy) {
|
494 |
-
$save = $wpdb->insert($wpdb->prefix . 'wdslayer', array(
|
495 |
-
'slide_id' => $slide_id_pr,
|
496 |
-
'title' => $title_dimension,
|
497 |
-
'type' => $type,
|
498 |
-
'depth' => $depth,
|
499 |
-
'text' => $text,
|
500 |
-
'link' => $link,
|
501 |
-
'left' => $left,
|
502 |
-
'top' => $top,
|
503 |
-
'start' => $start,
|
504 |
-
'end' => $end,
|
505 |
-
'published' => $published,
|
506 |
-
'color' => $color,
|
507 |
-
'size' => $size,
|
508 |
-
'ffamily' => $ffamily,
|
509 |
-
'fweight' => $fweight,
|
510 |
-
'padding' => $padding,
|
511 |
-
'fbgcolor' => $fbgcolor,
|
512 |
-
'transparent' => $transparent,
|
513 |
-
'border_width' => $border_width,
|
514 |
-
'border_style' => $border_style,
|
515 |
-
'border_color' => $border_color,
|
516 |
-
'border_radius' => $border_radius,
|
517 |
-
'shadow' => $shadow,
|
518 |
-
'image_url' => $image_url,
|
519 |
-
'image_width' => $image_width,
|
520 |
-
'image_height' => $image_height,
|
521 |
-
'image_scale' => $image_scale,
|
522 |
-
'alt' => $alt,
|
523 |
-
'imgtransparent' => $imgtransparent,
|
524 |
-
'social_button' => $social_button,
|
525 |
-
'hover_color' => $hover_color,
|
526 |
-
'layer_effect_in' => $layer_effect_in,
|
527 |
-
'layer_effect_out' => $layer_effect_out,
|
528 |
-
'duration_eff_in' => $duration_eff_in,
|
529 |
-
'duration_eff_out' => $duration_eff_out,
|
530 |
-
'target_attr_layer' => $target_attr_layer,
|
531 |
-
'hotp_width' => $hotp_width,
|
532 |
-
'hotp_fbgcolor' => $hotp_fbgcolor,
|
533 |
-
'hotp_border_width' => $hotp_border_width,
|
534 |
-
'hotp_border_style' => $hotp_border_style,
|
535 |
-
'hotp_border_color' => $hotp_border_color,
|
536 |
-
'hotp_border_radius' => $hotp_border_radius,
|
537 |
-
'hotp_text_position' => $hotp_text_position,
|
538 |
-
'google_fonts' => $google_fonts,
|
539 |
-
'add_class' => $add_class,
|
540 |
-
'layer_video_loop' => $layer_video_loop,
|
541 |
-
'youtube_rel_layer_video' => $youtube_rel_layer_video,
|
542 |
-
'hotspot_animation' => $hotspot_animation,
|
543 |
-
'layer_callback_list' => $layer_callback_list,
|
544 |
-
'hotspot_text_display' => $hotspot_text_display,
|
545 |
-
'hover_color_text' => $hover_color_text,
|
546 |
-
'text_alignment' => $text_alignment,
|
547 |
-
'link_to_slide' => $link_to_slide,
|
548 |
-
'align_layer' => $align_layer,
|
549 |
-
'static_layer' => $static_layer,
|
550 |
-
'infinite_in' => $infinite_in,
|
551 |
-
'infinite_out' => $infinite_out,
|
552 |
-
'min_size' => $min_size,
|
553 |
-
));
|
554 |
-
}
|
555 |
-
else {
|
556 |
-
$save = $wpdb->update($wpdb->prefix . 'wdslayer', array(
|
557 |
-
'title' => $title_dimension,
|
558 |
-
'type' => $type,
|
559 |
-
'depth' => $depth,
|
560 |
-
'text' => $text,
|
561 |
-
'link' => $link,
|
562 |
-
'left' => $left,
|
563 |
-
'top' => $top,
|
564 |
-
'start' => $start,
|
565 |
-
'end' => $end,
|
566 |
-
'published' => $published,
|
567 |
-
'color' => $color,
|
568 |
-
'size' => $size,
|
569 |
-
'ffamily' => $ffamily,
|
570 |
-
'fweight' => $fweight,
|
571 |
-
'padding' => $padding,
|
572 |
-
'fbgcolor' => $fbgcolor,
|
573 |
-
'transparent' => $transparent,
|
574 |
-
'border_width' => $border_width,
|
575 |
-
'border_style' => $border_style,
|
576 |
-
'border_color' => $border_color,
|
577 |
-
'border_radius' => $border_radius,
|
578 |
-
'shadow' => $shadow,
|
579 |
-
'image_url' => $image_url,
|
580 |
-
'image_width' => $image_width,
|
581 |
-
'image_height' => $image_height,
|
582 |
-
'image_scale' => $image_scale,
|
583 |
-
'alt' => $alt,
|
584 |
-
'imgtransparent' => $imgtransparent,
|
585 |
-
'social_button' => $social_button,
|
586 |
-
'hover_color' => $hover_color,
|
587 |
-
'layer_effect_in' => $layer_effect_in,
|
588 |
-
'layer_effect_out' => $layer_effect_out,
|
589 |
-
'duration_eff_in' => $duration_eff_in,
|
590 |
-
'duration_eff_out' => $duration_eff_out,
|
591 |
-
'target_attr_layer' => $target_attr_layer,
|
592 |
-
'hotp_width' => $hotp_width,
|
593 |
-
'hotp_fbgcolor' => $hotp_fbgcolor,
|
594 |
-
'hotp_border_width' => $hotp_border_width,
|
595 |
-
'hotp_border_style' => $hotp_border_style,
|
596 |
-
'hotp_border_color' => $hotp_border_color,
|
597 |
-
'hotp_border_radius' => $hotp_border_radius,
|
598 |
-
'hotp_text_position' => $hotp_text_position,
|
599 |
-
'google_fonts' => $google_fonts,
|
600 |
-
'add_class' => $add_class,
|
601 |
-
'layer_video_loop' => $layer_video_loop,
|
602 |
-
'youtube_rel_layer_video' => $youtube_rel_layer_video,
|
603 |
-
'hotspot_animation' => $hotspot_animation,
|
604 |
-
'layer_callback_list' => $layer_callback_list,
|
605 |
-
'hotspot_text_display' => $hotspot_text_display,
|
606 |
-
'hover_color_text' => $hover_color_text,
|
607 |
-
'text_alignment' => $text_alignment,
|
608 |
-
'link_to_slide' => $link_to_slide,
|
609 |
-
'align_layer' => $align_layer,
|
610 |
-
'static_layer' => $static_layer,
|
611 |
-
'infinite_in' => $infinite_in,
|
612 |
-
'infinite_out' => $infinite_out,
|
613 |
-
'min_size' => $min_size,
|
614 |
-
), array('id' => $layer_id));
|
615 |
-
}
|
616 |
-
}
|
617 |
-
}
|
618 |
-
}
|
619 |
-
}
|
620 |
-
|
621 |
-
public function set_watermark() {
|
622 |
-
global $wpdb;
|
623 |
-
$slider_id = WDW_S_Library::get('current_id', 0);
|
624 |
-
if (!$slider_id) {
|
625 |
-
$slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
|
626 |
-
}
|
627 |
-
|
628 |
-
$slider_images = $wpdb->get_col($wpdb->prepare('SELECT image_url FROM ' . $wpdb->prefix . 'wdsslide WHERE `slider_id`="%d"', $slider_id));
|
629 |
-
$slider = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'wdsslider WHERE `id`="%d"', $slider_id));
|
630 |
-
|
631 |
-
switch ($slider->built_in_watermark_type) {
|
632 |
-
case 'text': {
|
633 |
-
foreach ($slider_images as $slider_image) {
|
634 |
-
if ($slider_image) {
|
635 |
-
$slider_image = str_replace('{site_url}', site_url(), $slider_image);
|
636 |
-
$slider_image_dir = str_replace(site_url() . '/', ABSPATH, $slider_image);
|
637 |
-
$last_slash_pos = strrpos($slider_image_dir, '/') + 1;
|
638 |
-
$dest_dir = substr($slider_image_dir, 0, $last_slash_pos);
|
639 |
-
$image_name = substr($slider_image_dir, $last_slash_pos);
|
640 |
-
$new_image = $dest_dir . '.original/' . $image_name;
|
641 |
-
if (!is_dir($dest_dir . '.original')) {
|
642 |
-
mkdir($dest_dir . '.original', 0777, TRUE);
|
643 |
-
}
|
644 |
-
if (!file_exists($new_image)) {
|
645 |
-
copy($slider_image_dir, $new_image);
|
646 |
-
}
|
647 |
-
$this->set_text_watermark($slider_image_dir, $slider_image_dir, $slider->built_in_watermark_text, $slider->built_in_watermark_font, $slider->built_in_watermark_font_size, '#' . $slider->built_in_watermark_color, $slider->built_in_watermark_opacity, $slider->built_in_watermark_position);
|
648 |
-
}
|
649 |
-
}
|
650 |
-
break;
|
651 |
-
}
|
652 |
-
case 'image': {
|
653 |
-
foreach ($slider_images as $slider_image) {
|
654 |
-
if ($slider_image) {
|
655 |
-
$slider_image = str_replace('{site_url}', site_url(), $slider_image);
|
656 |
-
$slider_image_dir = str_replace(site_url() . '/', ABSPATH, $slider_image);
|
657 |
-
$last_slash_pos = strrpos($slider_image_dir, '/') + 1;
|
658 |
-
$dest_dir = substr($slider_image_dir, 0, $last_slash_pos);
|
659 |
-
$image_name = substr($slider_image_dir, $last_slash_pos);
|
660 |
-
$new_image = $dest_dir . '.original/' . $image_name;
|
661 |
-
if (!is_dir($dest_dir . '.original')) {
|
662 |
-
mkdir($dest_dir . '.original', 0777, TRUE);
|
663 |
-
}
|
664 |
-
if (!file_exists($new_image)) {
|
665 |
-
copy($slider_image_dir, $new_image);
|
666 |
-
}
|
667 |
-
$slider->built_in_watermark_url = str_replace('{site_url}', site_url(), $slider->built_in_watermark_url);
|
668 |
-
$watermark_image_dir = str_replace(site_url() . '/', ABSPATH, $slider->built_in_watermark_url);
|
669 |
-
$this->set_image_watermark($slider_image_dir, $slider_image_dir, $watermark_image_dir, $slider->built_in_watermark_size, $slider->built_in_watermark_size, $slider->built_in_watermark_position);
|
670 |
-
}
|
671 |
-
}
|
672 |
-
break;
|
673 |
-
}
|
674 |
-
default: {
|
675 |
-
break;
|
676 |
-
}
|
677 |
-
}
|
678 |
-
}
|
679 |
-
|
680 |
-
public function reset_watermark() {
|
681 |
-
global $wpdb;
|
682 |
-
$slider_id = WDW_S_Library::get('current_id', 0);
|
683 |
-
if (!$slider_id) {
|
684 |
-
$slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
|
685 |
-
}
|
686 |
-
$slider_images = $wpdb->get_col($wpdb->prepare('SELECT image_url FROM ' . $wpdb->prefix . 'wdsslide WHERE `slider_id`="%d"', $slider_id));
|
687 |
-
foreach ($slider_images as $slider_image) {
|
688 |
-
if ($slider_image) {
|
689 |
-
$slider_image = str_replace('{site_url}', site_url(), $slider_image);
|
690 |
-
$slider_image_dir = str_replace(site_url() . '/', ABSPATH, $slider_image);
|
691 |
-
$last_slash_pos = strrpos($slider_image_dir, '/') + 1;
|
692 |
-
$dest_dir = substr($slider_image_dir, 0, $last_slash_pos);
|
693 |
-
$image_name = substr($slider_image_dir, $last_slash_pos);
|
694 |
-
$new_image = $dest_dir . '.original/' . $image_name;
|
695 |
-
if (file_exists($new_image)) {
|
696 |
-
copy($new_image, $slider_image_dir);
|
697 |
-
}
|
698 |
-
else {
|
699 |
-
// For 1.0.1 version.
|
700 |
-
$last_dot_pos = strrpos($slider_image_dir, '.');
|
701 |
-
$base_name = substr($slider_image_dir, 0, $last_dot_pos);
|
702 |
-
$ext = substr($slider_image_dir, strlen($base_name));
|
703 |
-
$new_image = $base_name . '-original' . $ext;
|
704 |
-
if (file_exists($new_image)) {
|
705 |
-
copy($new_image, $slider_image_dir);
|
706 |
-
}
|
707 |
-
}
|
708 |
-
}
|
709 |
-
}
|
710 |
-
}
|
711 |
-
|
712 |
-
public function reset() {
|
713 |
-
global $wpdb;
|
714 |
-
$slider_id = WDW_S_Library::get('current_id', 0);
|
715 |
-
if (!$slider_id) {
|
716 |
-
$slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
|
717 |
-
}
|
718 |
-
|
719 |
-
require_once WD_S_DIR . "/admin/models/WDSModelSliders_wds.php";
|
720 |
-
$model = new WDSModelSliders_wds();
|
721 |
-
|
722 |
-
require_once WD_S_DIR . "/admin/views/WDSViewSliders_wds.php";
|
723 |
-
$view = new WDSViewSliders_wds($model);
|
724 |
-
echo WDW_S_Library::message('Changes must be saved.', 'wd_error');
|
725 |
-
$view->edit($slider_id, TRUE);
|
726 |
-
}
|
727 |
-
|
728 |
-
public function duplicate($id) {
|
729 |
-
$duplicated = $this->duplicate_tables($id);
|
730 |
-
if ($duplicated) {
|
731 |
-
echo WDW_S_Library::message('Items Succesfully Duplicated.', 'wd_updated');
|
732 |
-
}
|
733 |
-
else {
|
734 |
-
echo WDW_S_Library::message('Failed.', 'wd_error');
|
735 |
-
}
|
736 |
-
$this->display();
|
737 |
-
}
|
738 |
-
|
739 |
-
public function duplicate_all() {
|
740 |
-
global $wpdb;
|
741 |
-
$flag = FALSE;
|
742 |
-
$sliders_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'wdsslider');
|
743 |
-
foreach ($sliders_ids_col as $slider_id) {
|
744 |
-
if (isset($_POST['check_' . $slider_id])) {
|
745 |
-
$flag = TRUE;
|
746 |
-
$this->duplicate_tables($slider_id);
|
747 |
-
}
|
748 |
-
}
|
749 |
-
if ($flag) {
|
750 |
-
echo WDW_S_Library::message('Items Succesfully Duplicated.', 'wd_updated');
|
751 |
-
}
|
752 |
-
else {
|
753 |
-
echo WDW_S_Library::message('You must select at least one item.', 'wd_error');
|
754 |
-
}
|
755 |
-
$this->display();
|
756 |
-
}
|
757 |
-
|
758 |
-
public function duplicate_tables($slider_id, $new_slider_name = "") {
|
759 |
-
global $wpdb;
|
760 |
-
if ($slider_id) {
|
761 |
-
$slider_row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'wdsslider where id="%d"', $slider_id));
|
762 |
-
}
|
763 |
-
if ($slider_row) {
|
764 |
-
$name = $new_slider_name ? $new_slider_name : $slider_row->name;
|
765 |
-
$save = $wpdb->insert($wpdb->prefix . 'wdsslider', array(
|
766 |
-
'name' => $name,
|
767 |
-
'published' => $slider_row->published,
|
768 |
-
'full_width' => $slider_row->full_width,
|
769 |
-
'auto_height' => $slider_row->auto_height,
|
770 |
-
'width' => $slider_row->width,
|
771 |
-
'height' => $slider_row->height,
|
772 |
-
'align' => $slider_row->align,
|
773 |
-
'effect' => $slider_row->effect,
|
774 |
-
'time_intervval' => $slider_row->time_intervval,
|
775 |
-
'autoplay' => $slider_row->autoplay,
|
776 |
-
'shuffle' => $slider_row->shuffle,
|
777 |
-
'music' => $slider_row->music,
|
778 |
-
'music_url' => $slider_row->music_url,
|
779 |
-
'preload_images' => $slider_row->preload_images,
|
780 |
-
'background_color' => $slider_row->background_color,
|
781 |
-
'background_transparent' =>$slider_row-> background_transparent,
|
782 |
-
'glb_border_width' => $slider_row->glb_border_width,
|
783 |
-
'glb_border_style' => $slider_row->glb_border_style,
|
784 |
-
'glb_border_color' => $slider_row->glb_border_color,
|
785 |
-
'glb_border_radius' => $slider_row->glb_border_radius,
|
786 |
-
'glb_margin' => $slider_row->glb_margin,
|
787 |
-
'glb_box_shadow' => $slider_row->glb_box_shadow,
|
788 |
-
'image_right_click' => $slider_row->image_right_click,
|
789 |
-
'prev_next_butt' => $slider_row->prev_next_butt,
|
790 |
-
'play_paus_butt' => $slider_row->play_paus_butt,
|
791 |
-
'navigation' => $slider_row->navigation,
|
792 |
-
'rl_butt_style' => $slider_row->rl_butt_style,
|
793 |
-
'rl_butt_size' => $slider_row->rl_butt_size,
|
794 |
-
'pp_butt_size' => $slider_row->pp_butt_size,
|
795 |
-
'butts_color' => $slider_row->butts_color,
|
796 |
-
'butts_transparent' => $slider_row->butts_transparent,
|
797 |
-
'hover_color' => $slider_row->hover_color,
|
798 |
-
'nav_border_width' => $slider_row->nav_border_width,
|
799 |
-
'nav_border_style' => $slider_row->nav_border_style,
|
800 |
-
'nav_border_color' => $slider_row->nav_border_color,
|
801 |
-
'nav_border_radius' => $slider_row->nav_border_radius,
|
802 |
-
'nav_bg_color' => $slider_row->nav_bg_color,
|
803 |
-
'bull_position' => $slider_row->bull_position,
|
804 |
-
'bull_style' => $slider_row->bull_style,
|
805 |
-
'bull_size' => $slider_row->bull_size,
|
806 |
-
'bull_color' => $slider_row->bull_color,
|
807 |
-
'bull_act_color' => $slider_row->bull_act_color,
|
808 |
-
'bull_margin' => $slider_row->bull_margin,
|
809 |
-
'film_pos' => $slider_row->film_pos,
|
810 |
-
'film_thumb_width' => $slider_row->film_thumb_width,
|
811 |
-
'film_thumb_height' => $slider_row->film_thumb_height,
|
812 |
-
'film_bg_color' => $slider_row->film_bg_color,
|
813 |
-
'film_tmb_margin' => $slider_row->film_tmb_margin,
|
814 |
-
'film_act_border_width' => $slider_row->film_act_border_width,
|
815 |
-
'film_act_border_style' => $slider_row->film_act_border_style,
|
816 |
-
'film_act_border_color' => $slider_row->film_act_border_color,
|
817 |
-
'film_dac_transparent' => $slider_row->film_dac_transparent,
|
818 |
-
'built_in_watermark_type' => $slider_row->built_in_watermark_type,
|
819 |
-
'built_in_watermark_position' => $slider_row->built_in_watermark_position,
|
820 |
-
'built_in_watermark_size' => $slider_row->built_in_watermark_size,
|
821 |
-
'built_in_watermark_url' => $slider_row->built_in_watermark_url,
|
822 |
-
'built_in_watermark_text' => $slider_row->built_in_watermark_text,
|
823 |
-
'built_in_watermark_opacity' => $slider_row->built_in_watermark_opacity,
|
824 |
-
'built_in_watermark_font_size' => $slider_row->built_in_watermark_font_size,
|
825 |
-
'built_in_watermark_font' => $slider_row->built_in_watermark_font,
|
826 |
-
'built_in_watermark_color' => $slider_row->built_in_watermark_color,
|
827 |
-
'css' => $slider_row->css,
|
828 |
-
'timer_bar_type' => $slider_row->timer_bar_type,
|
829 |
-
'timer_bar_size' => $slider_row->timer_bar_size,
|
830 |
-
'timer_bar_color' => $slider_row->timer_bar_color,
|
831 |
-
'timer_bar_transparent' => $slider_row->timer_bar_transparent,
|
832 |
-
'layer_out_next' => $slider_row->layer_out_next,
|
833 |
-
'stop_animation' => $slider_row->stop_animation,
|
834 |
-
'right_butt_url' => $slider_row->right_butt_url,
|
835 |
-
'left_butt_url' => $slider_row->left_butt_url,
|
836 |
-
'right_butt_hov_url' => $slider_row->right_butt_hov_url,
|
837 |
-
'left_butt_hov_url' => $slider_row->left_butt_hov_url,
|
838 |
-
'rl_butt_img_or_not' => $slider_row->rl_butt_img_or_not,
|
839 |
-
'bullets_img_main_url' => $slider_row->bullets_img_main_url,
|
840 |
-
'bullets_img_hov_url' => $slider_row->bullets_img_hov_url,
|
841 |
-
'bull_butt_img_or_not' => $slider_row->bull_butt_img_or_not,
|
842 |
-
'play_paus_butt_img_or_not' => $slider_row->play_paus_butt_img_or_not,
|
843 |
-
'play_butt_url' => $slider_row->play_butt_url,
|
844 |
-
'play_butt_hov_url' => $slider_row->play_butt_hov_url,
|
845 |
-
'paus_butt_url' => $slider_row->paus_butt_url,
|
846 |
-
'paus_butt_hov_url' => $slider_row->paus_butt_hov_url,
|
847 |
-
'start_slide_num' => $slider_row->start_slide_num,
|
848 |
-
'effect_duration' => $slider_row->effect_duration,
|
849 |
-
'carousel' => $slider_row->carousel,
|
850 |
-
'carousel_image_counts' => $slider_row->carousel_image_counts,
|
851 |
-
'carousel_image_parameters' => $slider_row->carousel_image_parameters,
|
852 |
-
'carousel_fit_containerWidth' => $slider_row->carousel_fit_containerWidth,
|
853 |
-
'carousel_width' => $slider_row->carousel_width,
|
854 |
-
'parallax_effect' => $slider_row->parallax_effect,
|
855 |
-
'carousel_degree' => $slider_row->carousel_degree,
|
856 |
-
'carousel_grayscale' => $slider_row->carousel_grayscale,
|
857 |
-
'carousel_transparency' => $slider_row->carousel_transparency,
|
858 |
-
'bull_back_act_color' => $slider_row->bull_back_act_color,
|
859 |
-
'bull_back_color' => $slider_row->bull_back_color,
|
860 |
-
'bull_radius' => $slider_row->bull_radius,
|
861 |
-
'smart_crop' => $slider_row->smart_crop,
|
862 |
-
'crop_image_position' => $slider_row->crop_image_position,
|
863 |
-
'slider_loop' => $slider_row->slider_loop,
|
864 |
-
'bull_hover' => $slider_row->bull_hover,
|
865 |
-
'show_thumbnail' => $slider_row->show_thumbnail,
|
866 |
-
'thumb_size' => $slider_row->thumb_size,
|
867 |
-
'hide_on_mobile' => $slider_row->hide_on_mobile,
|
868 |
-
'twoway_slideshow' => $slider_row->twoway_slideshow,
|
869 |
-
'mouse_swipe_nav' => $slider_row->mouse_swipe_nav,
|
870 |
-
'touch_swipe_nav' => $slider_row->touch_swipe_nav,
|
871 |
-
'mouse_wheel_nav' => $slider_row->mouse_wheel_nav,
|
872 |
-
'keyboard_nav' => $slider_row->keyboard_nav,
|
873 |
-
'fixed_bg' => $slider_row->fixed_bg,
|
874 |
-
'full_width_for_mobile' => $slider_row->full_width_for_mobile,
|
875 |
-
'order_dir' => $slider_row->order_dir,
|
876 |
-
));
|
877 |
-
$new_slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
|
878 |
-
|
879 |
-
$slider_slides = $wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'wdsslide where slider_id="%d"', $slider_id));
|
880 |
-
if ($slider_slides) {
|
881 |
-
foreach ($slider_slides as $single_slide) {
|
882 |
-
$save = $wpdb->insert($wpdb->prefix . 'wdsslide', array(
|
883 |
-
'slider_id' => $new_slider_id,
|
884 |
-
'title' => $single_slide->title,
|
885 |
-
'type' => $single_slide->type,
|
886 |
-
'order' => $single_slide->order,
|
887 |
-
'published' => $single_slide->published,
|
888 |
-
'link' => $single_slide->link,
|
889 |
-
'image_url' => $single_slide->image_url,
|
890 |
-
'thumb_url' => $single_slide->thumb_url,
|
891 |
-
'target_attr_slide' => $single_slide->target_attr_slide,
|
892 |
-
'youtube_rel_video' => $single_slide->youtube_rel_video,
|
893 |
-
'video_loop' => $single_slide->video_loop,
|
894 |
-
));
|
895 |
-
$new_slide_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslide');
|
896 |
-
$slider_layer = $wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'wdslayer where slide_id="%d"', $single_slide->id));
|
897 |
-
if ($slider_layer) {
|
898 |
-
foreach ($slider_layer as $layer_id) {
|
899 |
-
if ($layer_id) {
|
900 |
-
$save = $wpdb->insert($wpdb->prefix . 'wdslayer', array(
|
901 |
-
'slide_id' => $new_slide_id,
|
902 |
-
'title' => $layer_id->title,
|
903 |
-
'type' => $layer_id->type,
|
904 |
-
'depth' => $layer_id->depth,
|
905 |
-
'text' => $layer_id->text,
|
906 |
-
'link' => $layer_id->link,
|
907 |
-
'left' => $layer_id->left,
|
908 |
-
'top' => $layer_id->top,
|
909 |
-
'start' => $layer_id->start,
|
910 |
-
'end' => $layer_id->end,
|
911 |
-
'published' => $layer_id->published,
|
912 |
-
'color' => $layer_id->color,
|
913 |
-
'size' => $layer_id->size,
|
914 |
-
'ffamily' => $layer_id->ffamily,
|
915 |
-
'fweight' => $layer_id->fweight,
|
916 |
-
'padding' => $layer_id->padding,
|
917 |
-
'fbgcolor' => $layer_id->fbgcolor,
|
918 |
-
'transparent' => $layer_id->transparent,
|
919 |
-
'border_width' => $layer_id->border_width,
|
920 |
-
'border_style' => $layer_id->border_style,
|
921 |
-
'border_color' => $layer_id->border_color,
|
922 |
-
'border_radius' => $layer_id->border_radius,
|
923 |
-
'shadow' => $layer_id->shadow,
|
924 |
-
'image_url' => $layer_id->image_url,
|
925 |
-
'image_width' => $layer_id->image_width,
|
926 |
-
'image_height' => $layer_id->image_height,
|
927 |
-
'image_scale' => $layer_id->image_scale,
|
928 |
-
'alt' => $layer_id->alt,
|
929 |
-
'imgtransparent' => $layer_id->imgtransparent,
|
930 |
-
'social_button' => $layer_id->social_button,
|
931 |
-
'hover_color' => $layer_id->hover_color,
|
932 |
-
'layer_effect_in' => $layer_id->layer_effect_in,
|
933 |
-
'layer_effect_out' => $layer_id->layer_effect_out,
|
934 |
-
'duration_eff_in' => $layer_id->duration_eff_in,
|
935 |
-
'duration_eff_out' => $layer_id->duration_eff_out,
|
936 |
-
'target_attr_layer' => $layer_id->target_attr_layer,
|
937 |
-
'hotp_width' => $layer_id->hotp_width,
|
938 |
-
'hotp_fbgcolor' => $layer_id->hotp_fbgcolor,
|
939 |
-
'hotp_border_width' => $layer_id->hotp_border_width,
|
940 |
-
'hotp_border_style' => $layer_id->hotp_border_style,
|
941 |
-
'hotp_border_color' => $layer_id->hotp_border_color,
|
942 |
-
'hotp_border_radius' => $layer_id->hotp_border_radius,
|
943 |
-
'hotp_text_position' => $layer_id->hotp_text_position,
|
944 |
-
'google_fonts' => $layer_id->google_fonts,
|
945 |
-
'add_class' => $layer_id->add_class,
|
946 |
-
'layer_video_loop' => $layer_id->layer_video_loop,
|
947 |
-
'youtube_rel_layer_video' => $layer_id->youtube_rel_layer_video,
|
948 |
-
'hotspot_animation' => $layer_id->hotspot_animation,
|
949 |
-
'layer_callback_list' => $layer_id->layer_callback_list,
|
950 |
-
'hotspot_text_display' => $layer_id->hotspot_text_display,
|
951 |
-
'hover_color_text' => $layer_id->hover_color_text,
|
952 |
-
'text_alignment' => $layer_id->text_alignment,
|
953 |
-
'link_to_slide' => $layer_id->link_to_slide,
|
954 |
-
'align_layer' => $layer_id->align_layer,
|
955 |
-
'static_layer' => $layer_id->static_layer,
|
956 |
-
'infinite_in' => $layer_id->infinite_in,
|
957 |
-
'infinite_out' => $layer_id->infinite_out,
|
958 |
-
'min_size' => $layer_id->min_size,
|
959 |
-
));
|
960 |
-
}
|
961 |
-
}
|
962 |
-
}
|
963 |
-
}
|
964 |
-
}
|
965 |
-
}
|
966 |
-
// TODO. need works the other version.
|
967 |
-
// $this->create_frontend_js_file( $new_slider_id );
|
968 |
-
return $new_slider_id;
|
969 |
-
}
|
970 |
-
|
971 |
-
function wds_hex2rgb($hex) {
|
972 |
-
$hex = str_replace("#", "", $hex);
|
973 |
-
if (strlen($hex) == 3) {
|
974 |
-
$r = hexdec(substr($hex,0,1).substr($hex,0,1));
|
975 |
-
$g = hexdec(substr($hex,1,1).substr($hex,1,1));
|
976 |
-
$b = hexdec(substr($hex,2,1).substr($hex,2,1));
|
977 |
-
}
|
978 |
-
else {
|
979 |
-
$r = hexdec(substr($hex,0,2));
|
980 |
-
$g = hexdec(substr($hex,2,2));
|
981 |
-
$b = hexdec(substr($hex,4,2));
|
982 |
-
}
|
983 |
-
$rgb = array($r, $g, $b);
|
984 |
-
return $rgb;
|
985 |
-
}
|
986 |
-
|
987 |
-
function wds_imagettfbboxdimensions($font_size, $font_angle, $font, $text) {
|
988 |
-
$box = @ImageTTFBBox($font_size, $font_angle, $font, $text) or die;
|
989 |
-
$max_x = max(array($box[0], $box[2], $box[4], $box[6]));
|
990 |
-
$max_y = max(array($box[1], $box[3], $box[5], $box[7]));
|
991 |
-
$min_x = min(array($box[0], $box[2], $box[4], $box[6]));
|
992 |
-
$min_y = min(array($box[1], $box[3], $box[5], $box[7]));
|
993 |
-
return array(
|
994 |
-
"width" => ($max_x - $min_x),
|
995 |
-
"height" => ($max_y - $min_y)
|
996 |
-
);
|
997 |
-
}
|
998 |
-
|
999 |
-
function set_text_watermark($original_filename, $dest_filename, $watermark_text, $watermark_font, $watermark_font_size, $watermark_color, $watermark_transparency, $watermark_position) {
|
1000 |
-
$original_filename = htmlspecialchars_decode($original_filename, ENT_COMPAT | ENT_QUOTES);
|
1001 |
-
$dest_filename = htmlspecialchars_decode($dest_filename, ENT_COMPAT | ENT_QUOTES);
|
1002 |
-
|
1003 |
-
$watermark_transparency = 127 - ((100 - $watermark_transparency) * 1.27);
|
1004 |
-
list($width, $height, $type) = getimagesize($original_filename);
|
1005 |
-
$watermark_image = imagecreatetruecolor($width, $height);
|
1006 |
-
|
1007 |
-
$watermark_color = $this->wds_hex2rgb($watermark_color);
|
1008 |
-
$watermark_color = imagecolorallocatealpha($watermark_image, $watermark_color[0], $watermark_color[1], $watermark_color[2], $watermark_transparency);
|
1009 |
-
$watermark_font = WD_S_DIR . '/fonts/' . $watermark_font;
|
1010 |
-
$watermark_font_size = ($height * $watermark_font_size / 500);
|
1011 |
-
$watermark_position = explode('-', $watermark_position);
|
1012 |
-
$watermark_sizes = $this->wds_imagettfbboxdimensions($watermark_font_size, 0, $watermark_font, $watermark_text);
|
1013 |
-
|
1014 |
-
$top = $height - 5;
|
1015 |
-
$left = $width - $watermark_sizes['width'] - 5;
|
1016 |
-
switch ($watermark_position[0]) {
|
1017 |
-
case 'top':
|
1018 |
-
$top = $watermark_sizes['height'] + 5;
|
1019 |
-
break;
|
1020 |
-
case 'middle':
|
1021 |
-
$top = ($height + $watermark_sizes['height']) / 2;
|
1022 |
-
break;
|
1023 |
-
}
|
1024 |
-
switch ($watermark_position[1]) {
|
1025 |
-
case 'left':
|
1026 |
-
$left = 5;
|
1027 |
-
break;
|
1028 |
-
case 'center':
|
1029 |
-
$left = ($width - $watermark_sizes['width']) / 2;
|
1030 |
-
break;
|
1031 |
-
}
|
1032 |
-
@ini_set('memory_limit', '-1');
|
1033 |
-
if ($type == 2) {
|
1034 |
-
$image = imagecreatefromjpeg($original_filename);
|
1035 |
-
imagettftext($image, $watermark_font_size, 0, $left, $top, $watermark_color, $watermark_font, $watermark_text);
|
1036 |
-
imagejpeg ($image, $dest_filename, 100);
|
1037 |
-
imagedestroy($image);
|
1038 |
-
}
|
1039 |
-
elseif ($type == 3) {
|
1040 |
-
$image = imagecreatefrompng($original_filename);
|
1041 |
-
imagettftext($image, $watermark_font_size, 0, $left, $top, $watermark_color, $watermark_font, $watermark_text);
|
1042 |
-
imageColorAllocateAlpha($image, 0, 0, 0, 127);
|
1043 |
-
imagealphablending($image, FALSE);
|
1044 |
-
imagesavealpha($image, TRUE);
|
1045 |
-
imagepng($image, $dest_filename, 9);
|
1046 |
-
imagedestroy($image);
|
1047 |
-
}
|
1048 |
-
elseif ($type == 1) {
|
1049 |
-
$image = imagecreatefromgif($original_filename);
|
1050 |
-
imageColorAllocateAlpha($watermark_image, 0, 0, 0, 127);
|
1051 |
-
imagecopy($watermark_image, $image, 0, 0, 0, 0, $width, $height);
|
1052 |
-
imagettftext($watermark_image, $watermark_font_size, 0, $left, $top, $watermark_color, $watermark_font, $watermark_text);
|
1053 |
-
imagealphablending($watermark_image, FALSE);
|
1054 |
-
imagesavealpha($watermark_image, TRUE);
|
1055 |
-
imagegif($watermark_image, $dest_filename);
|
1056 |
-
imagedestroy($image);
|
1057 |
-
}
|
1058 |
-
imagedestroy($watermark_image);
|
1059 |
-
@ini_restore('memory_limit');
|
1060 |
-
}
|
1061 |
-
|
1062 |
-
function set_image_watermark($original_filename, $dest_filename, $watermark_url, $watermark_height, $watermark_width, $watermark_position) {
|
1063 |
-
$original_filename = htmlspecialchars_decode($original_filename, ENT_COMPAT | ENT_QUOTES);
|
1064 |
-
$dest_filename = htmlspecialchars_decode($dest_filename, ENT_COMPAT | ENT_QUOTES);
|
1065 |
-
$watermark_url = htmlspecialchars_decode($watermark_url, ENT_COMPAT | ENT_QUOTES);
|
1066 |
-
|
1067 |
-
list($width, $height, $type) = getimagesize($original_filename);
|
1068 |
-
list($width_watermark, $height_watermark, $type_watermark) = getimagesize($watermark_url);
|
1069 |
-
|
1070 |
-
$watermark_width = $width * $watermark_width / 100;
|
1071 |
-
$watermark_height = $height_watermark * $watermark_width / $width_watermark;
|
1072 |
-
|
1073 |
-
$watermark_position = explode('-', $watermark_position);
|
1074 |
-
$top = $height - $watermark_height - 5;
|
1075 |
-
$left = $width - $watermark_width - 5;
|
1076 |
-
switch ($watermark_position[0]) {
|
1077 |
-
case 'top':
|
1078 |
-
$top = 5;
|
1079 |
-
break;
|
1080 |
-
case 'middle':
|
1081 |
-
$top = ($height - $watermark_height) / 2;
|
1082 |
-
break;
|
1083 |
-
}
|
1084 |
-
switch ($watermark_position[1]) {
|
1085 |
-
case 'left':
|
1086 |
-
$left = 5;
|
1087 |
-
break;
|
1088 |
-
case 'center':
|
1089 |
-
$left = ($width - $watermark_width) / 2;
|
1090 |
-
break;
|
1091 |
-
}
|
1092 |
-
@ini_set('memory_limit', '-1');
|
1093 |
-
if ($type_watermark == 2) {
|
1094 |
-
$watermark_image = imagecreatefromjpeg($watermark_url);
|
1095 |
-
}
|
1096 |
-
elseif ($type_watermark == 3) {
|
1097 |
-
$watermark_image = imagecreatefrompng($watermark_url);
|
1098 |
-
}
|
1099 |
-
elseif ($type_watermark == 1) {
|
1100 |
-
$watermark_image = imagecreatefromgif($watermark_url);
|
1101 |
-
}
|
1102 |
-
else {
|
1103 |
-
return false;
|
1104 |
-
}
|
1105 |
-
|
1106 |
-
$watermark_image_resized = imagecreatetruecolor($watermark_width, $watermark_height);
|
1107 |
-
imagecolorallocatealpha($watermark_image_resized, 255, 255, 255, 127);
|
1108 |
-
imagealphablending($watermark_image_resized, FALSE);
|
1109 |
-
imagesavealpha($watermark_image_resized, TRUE);
|
1110 |
-
imagecopyresampled ($watermark_image_resized, $watermark_image, 0, 0, 0, 0, $watermark_width, $watermark_height, $width_watermark, $height_watermark);
|
1111 |
-
|
1112 |
-
if ($type == 2) {
|
1113 |
-
$image = imagecreatefromjpeg($original_filename);
|
1114 |
-
imagecopy($image, $watermark_image_resized, $left, $top, 0, 0, $watermark_width, $watermark_height);
|
1115 |
-
if ($dest_filename <> '') {
|
1116 |
-
imagejpeg ($image, $dest_filename, 100);
|
1117 |
-
} else {
|
1118 |
-
header('Content-Type: image/jpeg');
|
1119 |
-
imagejpeg($image, null, 100);
|
1120 |
-
};
|
1121 |
-
imagedestroy($image);
|
1122 |
-
}
|
1123 |
-
elseif ($type == 3) {
|
1124 |
-
$image = imagecreatefrompng($original_filename);
|
1125 |
-
imagecopy($image, $watermark_image_resized, $left, $top, 0, 0, $watermark_width, $watermark_height);
|
1126 |
-
imagealphablending($image, FALSE);
|
1127 |
-
imagesavealpha($image, TRUE);
|
1128 |
-
imagepng($image, $dest_filename, 9);
|
1129 |
-
imagedestroy($image);
|
1130 |
-
}
|
1131 |
-
elseif ($type == 1) {
|
1132 |
-
$image = imagecreatefromgif($original_filename);
|
1133 |
-
$tempimage = imagecreatetruecolor($width, $height);
|
1134 |
-
imagecopy($tempimage, $image, 0, 0, 0, 0, $width, $height);
|
1135 |
-
imagecopy($tempimage, $watermark_image_resized, $left, $top, 0, 0, $watermark_width, $watermark_height);
|
1136 |
-
imagegif($tempimage, $dest_filename);
|
1137 |
-
imagedestroy($image);
|
1138 |
-
imagedestroy($tempimage);
|
1139 |
-
}
|
1140 |
-
imagedestroy($watermark_image);
|
1141 |
-
@ini_restore('memory_limit');
|
1142 |
-
}
|
1143 |
-
|
1144 |
-
public function delete($id) {
|
1145 |
-
global $wpdb;
|
1146 |
-
$query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'wdsslider WHERE id="%d"', $id);
|
1147 |
-
if ($wpdb->query($query)) {
|
1148 |
-
$query_image = $wpdb->prepare('DELETE t1.*, t2.* FROM ' . $wpdb->prefix . 'wdsslide as t1 LEFT JOIN ' . $wpdb->prefix . 'wdslayer as t2 ON t1.id=t2.slide_id WHERE t1.slider_id="%d"', $id);
|
1149 |
-
$wpdb->query($query_image);
|
1150 |
-
// TODO. need works the other version.
|
1151 |
-
// $this->remove_frontend_js_file( $id );
|
1152 |
-
echo WDW_S_Library::message('Item Succesfully Deleted.', 'wd_updated');
|
1153 |
-
}
|
1154 |
-
else {
|
1155 |
-
echo WDW_S_Library::message('Error. Please install plugin again.', 'wd_error');
|
1156 |
-
}
|
1157 |
-
$this->display();
|
1158 |
-
}
|
1159 |
-
|
1160 |
-
public function delete_all() {
|
1161 |
-
global $wpdb;
|
1162 |
-
$flag = FALSE;
|
1163 |
-
$sliders_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'wdsslider');
|
1164 |
-
foreach ($sliders_ids_col as $slider_id) {
|
1165 |
-
if (isset($_POST['check_' . $slider_id]) || isset($_POST['check_all_items'])) {
|
1166 |
-
$flag = TRUE;
|
1167 |
-
$query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'wdsslider WHERE id="%d"', $slider_id);
|
1168 |
-
$wpdb->query($query);
|
1169 |
-
// TODO. need works the other version.
|
1170 |
-
// $this->remove_frontend_js_file( $slider_id );
|
1171 |
-
$query_image = $wpdb->prepare('DELETE t1.*, t2.* FROM ' . $wpdb->prefix . 'wdsslide as t1 LEFT JOIN ' . $wpdb->prefix . 'wdslayer as t2 ON t1.id=t2.slide_id WHERE t1.slider_id="%d"', $slider_id);
|
1172 |
-
$wpdb->query($query_image);
|
1173 |
-
}
|
1174 |
-
}
|
1175 |
-
if ($flag) {
|
1176 |
-
echo WDW_S_Library::message('Items Succesfully Deleted.', 'wd_updated');
|
1177 |
-
}
|
1178 |
-
else {
|
1179 |
-
echo WDW_S_Library::message('You must select at least one item.', 'wd_error');
|
1180 |
-
}
|
1181 |
-
$this->display();
|
1182 |
-
}
|
1183 |
-
|
1184 |
-
public function publish($id) {
|
1185 |
-
global $wpdb;
|
1186 |
-
$save = $wpdb->update($wpdb->prefix . 'wdsslider', array('published' => 1), array('id' => $id));
|
1187 |
-
if ($save !== FALSE) {
|
1188 |
-
echo WDW_S_Library::message('Item Succesfully Published.', 'wd_updated');
|
1189 |
-
}
|
1190 |
-
else {
|
1191 |
-
echo WDW_S_Library::message('Error. Please install plugin again.', 'wd_error');
|
1192 |
-
}
|
1193 |
-
$this->display();
|
1194 |
-
}
|
1195 |
-
|
1196 |
-
public function publish_all() {
|
1197 |
-
global $wpdb;
|
1198 |
-
$flag = FALSE;
|
1199 |
-
if (isset($_POST['check_all_items'])) {
|
1200 |
-
$wpdb->query('UPDATE ' . $wpdb->prefix . 'wdsslider SET published=1');
|
1201 |
-
$flag = TRUE;
|
1202 |
-
}
|
1203 |
-
else {
|
1204 |
-
$sliders_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'wdsslider');
|
1205 |
-
foreach ($sliders_ids_col as $slider_id) {
|
1206 |
-
if (isset($_POST['check_' . $slider_id])) {
|
1207 |
-
$flag = TRUE;
|
1208 |
-
$wpdb->update($wpdb->prefix . 'wdsslider', array('published' => 1), array('id' => $slider_id));
|
1209 |
-
}
|
1210 |
-
}
|
1211 |
-
}
|
1212 |
-
if ($flag) {
|
1213 |
-
echo WDW_S_Library::message('Items Succesfully Published.', 'wd_updated');
|
1214 |
-
}
|
1215 |
-
else {
|
1216 |
-
echo WDW_S_Library::message('You must select at least one item.', 'wd_error');
|
1217 |
-
}
|
1218 |
-
$this->display();
|
1219 |
-
}
|
1220 |
-
|
1221 |
-
public function unpublish($id) {
|
1222 |
-
global $wpdb;
|
1223 |
-
$save = $wpdb->update($wpdb->prefix . 'wdsslider', array('published' => 0), array('id' => $id));
|
1224 |
-
if ($save !== FALSE) {
|
1225 |
-
echo WDW_S_Library::message('Item Succesfully Unpublished.', 'wd_updated');
|
1226 |
-
}
|
1227 |
-
else {
|
1228 |
-
echo WDW_S_Library::message('Error. Please install plugin again.', 'wd_error');
|
1229 |
-
}
|
1230 |
-
$this->display();
|
1231 |
-
}
|
1232 |
-
|
1233 |
-
public function unpublish_all() {
|
1234 |
-
global $wpdb;
|
1235 |
-
$flag = FALSE;
|
1236 |
-
if (isset($_POST['check_all_items'])) {
|
1237 |
-
$wpdb->query('UPDATE ' . $wpdb->prefix . 'wdsslider SET published=0');
|
1238 |
-
$flag = TRUE;
|
1239 |
-
}
|
1240 |
-
else {
|
1241 |
-
$sliders_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'wdsslider');
|
1242 |
-
foreach ($sliders_ids_col as $slider_id) {
|
1243 |
-
if (isset($_POST['check_' . $slider_id])) {
|
1244 |
-
$flag = TRUE;
|
1245 |
-
$wpdb->update($wpdb->prefix . 'wdsslider', array('published' => 0), array('id' => $slider_id));
|
1246 |
-
}
|
1247 |
-
}
|
1248 |
-
}
|
1249 |
-
if ($flag) {
|
1250 |
-
echo WDW_S_Library::message('Items Succesfully Unpublished.', 'wd_updated');
|
1251 |
-
}
|
1252 |
-
else {
|
1253 |
-
echo WDW_S_Library::message('You must select at least one item.', 'wd_error');
|
1254 |
-
}
|
1255 |
-
$this->display();
|
1256 |
-
}
|
1257 |
-
|
1258 |
-
public function merge_sliders() {
|
1259 |
-
$flag = FALSE;
|
1260 |
-
$check_sliders = array();
|
1261 |
-
$sliders_names = array();
|
1262 |
-
global $wpdb;
|
1263 |
-
$sliders_ids_col = $wpdb->get_results('SELECT id, name FROM ' . $wpdb->prefix . 'wdsslider ORDER BY id');
|
1264 |
-
$name = "Merged sliders of ";
|
1265 |
-
foreach ($sliders_ids_col as $slider_id) {
|
1266 |
-
if (isset($_POST['check_' . $slider_id->id])) {
|
1267 |
-
$check_sliders[] = $slider_id->id;
|
1268 |
-
$sliders_names[] = $slider_id->name;
|
1269 |
-
}
|
1270 |
-
}
|
1271 |
-
if (count($check_sliders) > 1) {
|
1272 |
-
$name .= implode(",", $sliders_names);
|
1273 |
-
if (isset($_POST["select_slider_merge"])) {
|
1274 |
-
$select_slider_merge = (int) $_POST["select_slider_merge"];
|
1275 |
-
$new_slider_id = $this->duplicate_tables($select_slider_merge, $name);
|
1276 |
-
$max_order = $wpdb->get_var($wpdb->prepare('SELECT MAX(`order`) FROM ' . $wpdb->prefix . 'wdsslide WHERE slider_id="%d"', $new_slider_id));
|
1277 |
-
$key = array_search($select_slider_merge, $check_sliders);
|
1278 |
-
if (isset($check_sliders[$key])) {
|
1279 |
-
unset($check_sliders[$key]);
|
1280 |
-
}
|
1281 |
-
}
|
1282 |
-
$this->insert_slides($new_slider_id, $check_sliders, $max_order);
|
1283 |
-
$flag = TRUE;
|
1284 |
-
echo WDW_S_Library::message('The selected items are merged as a new slider.', 'wd_updated');
|
1285 |
-
}
|
1286 |
-
else {
|
1287 |
-
echo WDW_S_Library::message('You should select at least 2 sliders to merge them.', 'wd_error');
|
1288 |
-
}
|
1289 |
-
$this->display();
|
1290 |
-
}
|
1291 |
-
|
1292 |
-
public function insert_slides($slider_id, $check_sliders, $max_order) {
|
1293 |
-
global $wpdb;
|
1294 |
-
if ($slider_id) {
|
1295 |
-
$slides = $wpdb->get_results('SELECT * FROM ' . $wpdb->prefix . 'wdsslide WHERE slider_id In ('.implode(",", $check_sliders).')');
|
1296 |
-
}
|
1297 |
-
if ($slides) {
|
1298 |
-
foreach ($slides as $single_slide) {
|
1299 |
-
$max_order++;
|
1300 |
-
$save = $wpdb->insert($wpdb->prefix . 'wdsslide', array(
|
1301 |
-
'slider_id' => $slider_id,
|
1302 |
-
'title' => $single_slide->title,
|
1303 |
-
'type' => $single_slide->type,
|
1304 |
-
'order' => $max_order,
|
1305 |
-
'published' => $single_slide->published,
|
1306 |
-
'link' => $single_slide->link,
|
1307 |
-
'image_url' => $single_slide->image_url,
|
1308 |
-
'thumb_url' => $single_slide->thumb_url,
|
1309 |
-
'target_attr_slide' => $single_slide->target_attr_slide,
|
1310 |
-
'youtube_rel_video' => $single_slide->youtube_rel_video,
|
1311 |
-
'video_loop' => $single_slide->video_loop,
|
1312 |
-
));
|
1313 |
-
$new_slide_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslide');
|
1314 |
-
$slider_layer = $wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'wdslayer where slide_id="%d"', $single_slide->id));
|
1315 |
-
if ($slider_layer) {
|
1316 |
-
foreach ($slider_layer as $layer_id) {
|
1317 |
-
if ($layer_id) {
|
1318 |
-
$save = $wpdb->insert($wpdb->prefix . 'wdslayer', array(
|
1319 |
-
'slide_id' => $new_slide_id,
|
1320 |
-
'title' => $layer_id->title,
|
1321 |
-
'type' => $layer_id->type,
|
1322 |
-
'depth' => $layer_id->depth,
|
1323 |
-
'text' => $layer_id->text,
|
1324 |
-
'link' => $layer_id->link,
|
1325 |
-
'left' => $layer_id->left,
|
1326 |
-
'top' => $layer_id->top,
|
1327 |
-
'start' => $layer_id->start,
|
1328 |
-
'end' => $layer_id->end,
|
1329 |
-
'published' => $layer_id->published,
|
1330 |
-
'color' => $layer_id->color,
|
1331 |
-
'size' => $layer_id->size,
|
1332 |
-
'ffamily' => $layer_id->ffamily,
|
1333 |
-
'fweight' => $layer_id->fweight,
|
1334 |
-
'padding' => $layer_id->padding,
|
1335 |
-
'fbgcolor' => $layer_id->fbgcolor,
|
1336 |
-
'transparent' => $layer_id->transparent,
|
1337 |
-
'border_width' => $layer_id->border_width,
|
1338 |
-
'border_style' => $layer_id->border_style,
|
1339 |
-
'border_color' => $layer_id->border_color,
|
1340 |
-
'border_radius' => $layer_id->border_radius,
|
1341 |
-
'shadow' => $layer_id->shadow,
|
1342 |
-
'image_url' => $layer_id->image_url,
|
1343 |
-
'image_width' => $layer_id->image_width,
|
1344 |
-
'image_height' => $layer_id->image_height,
|
1345 |
-
'image_scale' => $layer_id->image_scale,
|
1346 |
-
'alt' => $layer_id->alt,
|
1347 |
-
'imgtransparent' => $layer_id->imgtransparent,
|
1348 |
-
'social_button' => $layer_id->social_button,
|
1349 |
-
'hover_color' => $layer_id->hover_color,
|
1350 |
-
'layer_effect_in' => $layer_id->layer_effect_in,
|
1351 |
-
'layer_effect_out' => $layer_id->layer_effect_out,
|
1352 |
-
'duration_eff_in' => $layer_id->duration_eff_in,
|
1353 |
-
'duration_eff_out' => $layer_id->duration_eff_out,
|
1354 |
-
'target_attr_layer' => $layer_id->target_attr_layer,
|
1355 |
-
'hotp_width' => $layer_id->hotp_width,
|
1356 |
-
'hotp_fbgcolor' => $layer_id->hotp_fbgcolor,
|
1357 |
-
'hotp_border_width' => $layer_id->hotp_border_width,
|
1358 |
-
'hotp_border_style' => $layer_id->hotp_border_style,
|
1359 |
-
'hotp_border_color' => $layer_id->hotp_border_color,
|
1360 |
-
'hotp_border_radius' => $layer_id->hotp_border_radius,
|
1361 |
-
'hotp_text_position' => $layer_id->hotp_text_position,
|
1362 |
-
'google_fonts' => $layer_id->google_fonts,
|
1363 |
-
'add_class' => $layer_id->add_class,
|
1364 |
-
'layer_video_loop' => $layer_id->layer_video_loop,
|
1365 |
-
'youtube_rel_layer_video' => $layer_id->youtube_rel_layer_video,
|
1366 |
-
'hotspot_animation' => $layer_id->hotspot_animation,
|
1367 |
-
'layer_callback_list' => $layer_id->layer_callback_list,
|
1368 |
-
'hotspot_text_display' => $layer_id->hotspot_text_display,
|
1369 |
-
'hover_color_text' => $layer_id->hover_color_text,
|
1370 |
-
'text_alignment' => $layer_id->text_alignment,
|
1371 |
-
'link_to_slide' => $layer_id->link_to_slide,
|
1372 |
-
'align_layer' => $layer_id->align_layer,
|
1373 |
-
'static_layer' => $layer_id->static_layer,
|
1374 |
-
'infinite_in' => $layer_id->infinite_in,
|
1375 |
-
'infinite_out' => $layer_id->infinite_out,
|
1376 |
-
'min_size' => $layer_id->min_size,
|
1377 |
-
));
|
1378 |
-
}
|
1379 |
-
}
|
1380 |
-
}
|
1381 |
-
}
|
1382 |
-
}
|
1383 |
-
return $slider_id;
|
1384 |
-
}
|
1385 |
-
|
1386 |
-
/**
|
1387 |
-
* create frontend js file.
|
1388 |
-
*
|
1389 |
-
* @param int $id
|
1390 |
-
* @retunr bool
|
1391 |
-
*/
|
1392 |
-
private function create_frontend_js_file( $id ) {
|
1393 |
-
require_once WD_S_DIR . "/admin/models/WDSModelSliders_wds.php";
|
1394 |
-
$model = new WDSModelSliders_wds();
|
1395 |
-
return $model->create_frontend_js_file( $id );
|
1396 |
-
}
|
1397 |
-
|
1398 |
-
/**
|
1399 |
-
* Remove frontend js file.
|
1400 |
-
*
|
1401 |
-
* @param int $id
|
1402 |
-
*/
|
1403 |
-
private function remove_frontend_js_file( $id ) {
|
1404 |
-
$wp_upload_dir = wp_upload_dir();
|
1405 |
-
if ( is_file($wp_upload_dir['basedir'] . '/slider-wd-scripts/script-' . $id . '.js') ){
|
1406 |
-
unlink( $wp_upload_dir['basedir'] . '/slider-wd-scripts/script-' . $id . '.js' );
|
1407 |
-
}
|
1408 |
-
}
|
1409 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/controllers/WDSControllerUninstall_wds.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
|
3 |
class WDSControllerUninstall_wds {
|
4 |
public function __construct() {
|
5 |
-
if (
|
6 |
global $wds_options;
|
7 |
if ( !class_exists("DoradoWebConfig") ) {
|
8 |
-
include_once(
|
9 |
}
|
10 |
$config = new DoradoWebConfig();
|
11 |
$config->set_options($wds_options);
|
@@ -26,19 +26,19 @@ class WDSControllerUninstall_wds {
|
|
26 |
}
|
27 |
|
28 |
public function display() {
|
29 |
-
require_once
|
30 |
$model = new WDSModelUninstall_wds();
|
31 |
|
32 |
-
require_once
|
33 |
$view = new WDSViewUninstall_wds($model);
|
34 |
$view->display();
|
35 |
}
|
36 |
|
37 |
public function uninstall() {
|
38 |
-
require_once
|
39 |
$model = new WDSModelUninstall_wds();
|
40 |
|
41 |
-
require_once
|
42 |
$view = new WDSViewUninstall_wds($model);
|
43 |
$view->uninstall();
|
44 |
}
|
2 |
|
3 |
class WDSControllerUninstall_wds {
|
4 |
public function __construct() {
|
5 |
+
if ( WDS()->is_free ) {
|
6 |
global $wds_options;
|
7 |
if ( !class_exists("DoradoWebConfig") ) {
|
8 |
+
include_once(WDS()->plugin_dir . "/wd/config.php");
|
9 |
}
|
10 |
$config = new DoradoWebConfig();
|
11 |
$config->set_options($wds_options);
|
26 |
}
|
27 |
|
28 |
public function display() {
|
29 |
+
require_once WDS()->plugin_dir . "/admin/models/WDSModelUninstall_wds.php";
|
30 |
$model = new WDSModelUninstall_wds();
|
31 |
|
32 |
+
require_once WDS()->plugin_dir . "/admin/views/WDSViewUninstall_wds.php";
|
33 |
$view = new WDSViewUninstall_wds($model);
|
34 |
$view->display();
|
35 |
}
|
36 |
|
37 |
public function uninstall() {
|
38 |
+
require_once WDS()->plugin_dir . "/admin/models/WDSModelUninstall_wds.php";
|
39 |
$model = new WDSModelUninstall_wds();
|
40 |
|
41 |
+
require_once WDS()->plugin_dir . "/admin/views/WDSViewUninstall_wds.php";
|
42 |
$view = new WDSViewUninstall_wds($model);
|
43 |
$view->uninstall();
|
44 |
}
|
admin/controllers/WDSControllerWDSExport.php
CHANGED
@@ -25,10 +25,10 @@ class WDSControllerWDSExport {
|
|
25 |
}
|
26 |
|
27 |
public function display() {
|
28 |
-
require_once
|
29 |
$model = new WDSModelWDSExport();
|
30 |
|
31 |
-
require_once
|
32 |
$view = new WDSViewWDSExport($model);
|
33 |
$slider_id = WDW_S_Library::get('current_id');
|
34 |
$view->display($slider_id);
|
25 |
}
|
26 |
|
27 |
public function display() {
|
28 |
+
require_once WDS()->plugin_dir . "/admin/models/WDSModelWDSExport.php";
|
29 |
$model = new WDSModelWDSExport();
|
30 |
|
31 |
+
require_once WDS()->plugin_dir . "/admin/views/WDSViewWDSExport.php";
|
32 |
$view = new WDSViewWDSExport($model);
|
33 |
$slider_id = WDW_S_Library::get('current_id');
|
34 |
$view->display($slider_id);
|
admin/controllers/WDSControllerWDSShortcode.php
CHANGED
@@ -23,10 +23,10 @@ class WDSControllerWDSShortcode {
|
|
23 |
}
|
24 |
|
25 |
public function display() {
|
26 |
-
require_once
|
27 |
$model = new WDSModelWDSShortcode();
|
28 |
|
29 |
-
require_once
|
30 |
$view = new WDSViewWDSShortcode($model);
|
31 |
$view->display();
|
32 |
}
|
23 |
}
|
24 |
|
25 |
public function display() {
|
26 |
+
require_once WDS()->plugin_dir . "/admin/models/WDSModelWDSShortcode.php";
|
27 |
$model = new WDSModelWDSShortcode();
|
28 |
|
29 |
+
require_once WDS()->plugin_dir . "/admin/views/WDSViewWDSShortcode.php";
|
30 |
$view = new WDSViewWDSShortcode($model);
|
31 |
$view->display();
|
32 |
}
|
admin/controllers/WDSControllerWidgetSlideshow.php
CHANGED
@@ -18,16 +18,16 @@ class WDSControllerWidgetSlideshow extends WP_Widget {
|
|
18 |
public function __construct() {
|
19 |
$widget_ops = array(
|
20 |
'classname' => 'wdslider',
|
21 |
-
'description' => __('Add Slider to Your widget area.',
|
22 |
);
|
23 |
// Widget Control Settings.
|
24 |
$control_ops = array('id_base' => 'wdslider');
|
25 |
// Create the widget.
|
26 |
-
parent::__construct('wdslider', __('Slider WD',
|
27 |
-
require_once
|
28 |
$this->model = new WDSModelWidgetSlideshow();
|
29 |
|
30 |
-
require_once
|
31 |
$this->view = new WDSViewWidgetSlideshow($this->model);
|
32 |
}
|
33 |
////////////////////////////////////////////////////////////////////////////////////////
|
18 |
public function __construct() {
|
19 |
$widget_ops = array(
|
20 |
'classname' => 'wdslider',
|
21 |
+
'description' => __('Add Slider to Your widget area.', WDS()->prefix),
|
22 |
);
|
23 |
// Widget Control Settings.
|
24 |
$control_ops = array('id_base' => 'wdslider');
|
25 |
// Create the widget.
|
26 |
+
parent::__construct('wdslider', __('Slider WD', WDS()->prefix), $widget_ops, $control_ops);
|
27 |
+
require_once WDS()->plugin_dir . "/admin/models/WDSModelWidgetSlideshow.php";
|
28 |
$this->model = new WDSModelWidgetSlideshow();
|
29 |
|
30 |
+
require_once WDS()->plugin_dir . "/admin/views/WDSViewWidgetSlideshow.php";
|
31 |
$this->view = new WDSViewWidgetSlideshow($this->model);
|
32 |
}
|
33 |
////////////////////////////////////////////////////////////////////////////////////////
|
admin/controllers/embed.php
CHANGED
@@ -12,7 +12,7 @@ class WDSControllerembed {
|
|
12 |
* Display.
|
13 |
*/
|
14 |
public function display() {
|
15 |
-
require_once
|
16 |
$view = new WDSViewembed();
|
17 |
$view->display();
|
18 |
}
|
12 |
* Display.
|
13 |
*/
|
14 |
public function display() {
|
15 |
+
require_once WDS()->plugin_dir . "/admin/views/embed.php";
|
16 |
$view = new WDSViewembed();
|
17 |
$view->display();
|
18 |
}
|
admin/controllers/posts.php
CHANGED
@@ -12,10 +12,10 @@ class WDSControllerposts {
|
|
12 |
* Display.
|
13 |
*/
|
14 |
public function display() {
|
15 |
-
require_once
|
16 |
$model = new WDSModelposts();
|
17 |
|
18 |
-
require_once
|
19 |
$view = new WDSViewposts($model);
|
20 |
$view->display();
|
21 |
}
|
12 |
* Display.
|
13 |
*/
|
14 |
public function display() {
|
15 |
+
require_once WDS()->plugin_dir . "/admin/models/posts.php";
|
16 |
$model = new WDSModelposts();
|
17 |
|
18 |
+
require_once WDS()->plugin_dir . "/admin/views/posts.php";
|
19 |
$view = new WDSViewposts($model);
|
20 |
$view->display();
|
21 |
}
|
admin/models/Sliders.php
ADDED
@@ -0,0 +1,598 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class SlidersModel_wds
|
5 |
+
*/
|
6 |
+
class SlidersModel_wds {
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Get slides row data.
|
10 |
+
*
|
11 |
+
* @param $slider_id
|
12 |
+
* @return array
|
13 |
+
*/
|
14 |
+
public function get_slides_row_data($slider_id) {
|
15 |
+
global $wpdb;
|
16 |
+
$rows = $wpdb->get_results($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "wdsslide WHERE slider_id='%d' ORDER BY `order` ASC", $slider_id));
|
17 |
+
if (!$rows) {
|
18 |
+
$rows = array();
|
19 |
+
}
|
20 |
+
else {
|
21 |
+
foreach ($rows as $row) {
|
22 |
+
$row->image_url = $row->image_url ? str_replace('{site_url}', site_url(), $row->image_url) : WDS()->plugin_url . '/images/no-image.png';
|
23 |
+
$row->thumb_url = $row->thumb_url ? str_replace('{site_url}', site_url(), $row->thumb_url) : WDS()->plugin_url . '/images/no-image.png';
|
24 |
+
$title_dimension = json_decode($row->title);
|
25 |
+
if ($title_dimension) {
|
26 |
+
$row->att_width = isset($title_dimension->att_width) ? $title_dimension->att_width : 0;
|
27 |
+
$row->att_height = isset($title_dimension->att_height) ? $title_dimension->att_height : 0;
|
28 |
+
$row->video_duration = isset($title_dimension->video_duration) ? $title_dimension->video_duration : 0;
|
29 |
+
$row->title = isset($title_dimension->title) ? $title_dimension->title : '';
|
30 |
+
}
|
31 |
+
else {
|
32 |
+
$row->att_width = 0;
|
33 |
+
$row->att_height = 0;
|
34 |
+
$row->video_duration = 0;
|
35 |
+
}
|
36 |
+
}
|
37 |
+
}
|
38 |
+
return $rows;
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Get layers row data.
|
43 |
+
*
|
44 |
+
* @param array $slide_ids
|
45 |
+
* @return mixed
|
46 |
+
*/
|
47 |
+
public function get_layers_row_data( $slide_ids = array() ) {
|
48 |
+
global $wpdb;
|
49 |
+
$rows = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdslayer` WHERE `slide_id` IN (' . implode($slide_ids, ',') . ') ORDER BY `depth` ASC');
|
50 |
+
$data = array();
|
51 |
+
if ( !empty($rows) ) {
|
52 |
+
foreach ( $rows as $row ) {
|
53 |
+
$row->image_url = $row->image_url ? str_replace('{site_url}', site_url(), $row->image_url) : WDS()->plugin_url . '/images/no-image.png';
|
54 |
+
$title_dimension = json_decode($row->title);
|
55 |
+
if ($title_dimension) {
|
56 |
+
$row->attr_width = $title_dimension->attr_width;
|
57 |
+
$row->attr_height = $title_dimension->attr_height;
|
58 |
+
$row->title = $title_dimension->title;
|
59 |
+
}
|
60 |
+
else {
|
61 |
+
$row->attr_width = 0;
|
62 |
+
$row->attr_height = 0;
|
63 |
+
}
|
64 |
+
$data[$row->slide_id][] = $row;
|
65 |
+
}
|
66 |
+
}
|
67 |
+
return $data;
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Get rows data.
|
72 |
+
*
|
73 |
+
* @param array $params
|
74 |
+
* @return array
|
75 |
+
*/
|
76 |
+
public function get_rows_data( $params= array() ) {
|
77 |
+
$order = $params['order'];
|
78 |
+
$orderby = $params['orderby'];
|
79 |
+
$page_per = $params['items_per_page'];
|
80 |
+
$page_num = $params['page_num'];
|
81 |
+
$search = $params['search'];
|
82 |
+
|
83 |
+
global $wpdb;
|
84 |
+
$where = !empty($search) ? ' WHERE `name` LIKE "%' . $search . '%"' : '';
|
85 |
+
|
86 |
+
$query = 'SELECT * FROM ' . $wpdb->prefix . 'wdsslider' . $where;
|
87 |
+
$query .= ' ORDER BY `' . $orderby . '` ' . $order;
|
88 |
+
$query .= ' LIMIT ' . $page_num . ',' . $page_per;
|
89 |
+
$rows = $wpdb->get_results($query);
|
90 |
+
$query1 = 'SELECT COUNT(*) FROM ' . $wpdb->prefix . 'wdsslider' . $where;
|
91 |
+
$total = $wpdb->get_var($query1);
|
92 |
+
$data = array();
|
93 |
+
$data['rows'] = $rows;
|
94 |
+
$data['total'] = $total;
|
95 |
+
return $data;
|
96 |
+
}
|
97 |
+
|
98 |
+
/**
|
99 |
+
* Get row data.
|
100 |
+
*
|
101 |
+
* @param $id
|
102 |
+
* @param $reset
|
103 |
+
* @return stdClass
|
104 |
+
*/
|
105 |
+
public function get_row_data( $id, $reset) {
|
106 |
+
global $wpdb;
|
107 |
+
if ($id != 0 && !$reset) {
|
108 |
+
$row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'wdsslider WHERE id="%d"', $id));
|
109 |
+
if ($row) {
|
110 |
+
$row->enable_bullets = $row->bull_position == 'none' ? 0 : 1;
|
111 |
+
$row->enable_filmstrip = $row->film_pos == 'none' ? 0 : 1;
|
112 |
+
$row->enable_time_bar = $row->timer_bar_type == 'none' ? 0 : 1;
|
113 |
+
$row->music_url = str_replace('{site_url}', site_url(), $row->music_url);
|
114 |
+
$row->built_in_watermark_url = str_replace('{site_url}', site_url(), $row->built_in_watermark_url);
|
115 |
+
$row->right_butt_url = str_replace('{site_url}', site_url(), $row->right_butt_url);
|
116 |
+
$row->left_butt_url = str_replace('{site_url}', site_url(), $row->left_butt_url);
|
117 |
+
$row->right_butt_hov_url = str_replace('{site_url}', site_url(), $row->right_butt_hov_url);
|
118 |
+
$row->left_butt_hov_url = str_replace('{site_url}', site_url(), $row->left_butt_hov_url);
|
119 |
+
$row->bullets_img_main_url = str_replace('{site_url}', site_url(), $row->bullets_img_main_url);
|
120 |
+
$row->bullets_img_hov_url = str_replace('{site_url}', site_url(), $row->bullets_img_hov_url);
|
121 |
+
$row->play_butt_url = str_replace('{site_url}', site_url(), $row->play_butt_url);
|
122 |
+
$row->play_butt_hov_url = str_replace('{site_url}', site_url(), $row->play_butt_hov_url);
|
123 |
+
$row->paus_butt_url = str_replace('{site_url}', site_url(), $row->paus_butt_url);
|
124 |
+
$row->paus_butt_hov_url = str_replace('{site_url}', site_url(), $row->paus_butt_hov_url);
|
125 |
+
}
|
126 |
+
}
|
127 |
+
else {
|
128 |
+
$row = new stdClass();
|
129 |
+
if ($reset && $id) {
|
130 |
+
$row = $wpdb->get_row($wpdb->prepare('SELECT name FROM ' . $wpdb->prefix . 'wdsslider WHERE id="%d"', $id));
|
131 |
+
}
|
132 |
+
else {
|
133 |
+
$row->name = '';
|
134 |
+
}
|
135 |
+
$row->id = $id;
|
136 |
+
$row->width = 900;
|
137 |
+
$row->height = 400;
|
138 |
+
$row->full_width = 2;
|
139 |
+
$row->auto_height = 0;
|
140 |
+
$row->align = 'center';
|
141 |
+
$row->effect = 'fade';
|
142 |
+
$row->published = 1;
|
143 |
+
$row->time_intervval = 5;
|
144 |
+
$row->autoplay = 1;
|
145 |
+
$row->shuffle = 0;
|
146 |
+
$row->music = 0;
|
147 |
+
$row->music_url = '';
|
148 |
+
$row->preload_images = 1;
|
149 |
+
$row->background_color = '000000';
|
150 |
+
$row->background_transparent = 100;
|
151 |
+
$row->glb_border_width = 0;
|
152 |
+
$row->glb_border_style = 'none';
|
153 |
+
$row->glb_border_color = '000000';
|
154 |
+
$row->glb_border_radius = '';
|
155 |
+
$row->glb_margin = 0;
|
156 |
+
$row->glb_box_shadow = '';
|
157 |
+
$row->image_right_click = 0;
|
158 |
+
$row->layer_out_next = 0;
|
159 |
+
$row->prev_next_butt = 1;
|
160 |
+
$row->play_paus_butt = 0;
|
161 |
+
$row->navigation = 'hover';
|
162 |
+
$row->rl_butt_style = 'fa-angle';
|
163 |
+
$row->rl_butt_size = 40;
|
164 |
+
$row->pp_butt_size = 40;
|
165 |
+
$row->butts_color = '000000';
|
166 |
+
$row->hover_color = '000000';
|
167 |
+
$row->nav_border_width = 0;
|
168 |
+
$row->nav_border_style = 'none';
|
169 |
+
$row->nav_border_color = 'FFFFFF';
|
170 |
+
$row->nav_border_radius = '20px';
|
171 |
+
$row->nav_bg_color = 'FFFFFF';
|
172 |
+
$row->butts_transparent = 100;
|
173 |
+
$row->enable_bullets = 1;
|
174 |
+
$row->bull_position = 'bottom';
|
175 |
+
$row->bull_style = 'fa-square-o';
|
176 |
+
$row->bull_size = 20;
|
177 |
+
$row->bull_color = 'FFFFFF';
|
178 |
+
$row->bull_act_color = 'FFFFFF';
|
179 |
+
$row->bull_margin = 3;
|
180 |
+
$row->enable_filmstrip = 0;
|
181 |
+
$row->film_pos = 'none';
|
182 |
+
$row->film_thumb_width = 100;
|
183 |
+
$row->film_thumb_height = 50;
|
184 |
+
$row->film_bg_color = '000000';
|
185 |
+
$row->film_tmb_margin = 0;
|
186 |
+
$row->film_act_border_width = 0;
|
187 |
+
$row->film_act_border_style = 'none';
|
188 |
+
$row->film_act_border_color = 'FFFFFF';
|
189 |
+
$row->film_dac_transparent = 50;
|
190 |
+
$row->enable_time_bar = 1;
|
191 |
+
$row->timer_bar_type = 'top';
|
192 |
+
$row->timer_bar_size = 5;
|
193 |
+
$row->timer_bar_color = 'BBBBBB';
|
194 |
+
$row->timer_bar_transparent = 50;
|
195 |
+
$row->built_in_watermark_type = 'none';
|
196 |
+
$row->built_in_watermark_position = 'middle-center';
|
197 |
+
$row->built_in_watermark_size = 15;
|
198 |
+
$row->built_in_watermark_url = WDS()->plugin_url . '/images/watermark.png';
|
199 |
+
$row->built_in_watermark_text = 'web-dorado.com';
|
200 |
+
$row->built_in_watermark_font_size = 20;
|
201 |
+
$row->built_in_watermark_font = '';
|
202 |
+
$row->built_in_watermark_color = 'FFFFFF';
|
203 |
+
$row->built_in_watermark_opacity = 70;
|
204 |
+
$row->stop_animation = 0;
|
205 |
+
$row->css = '';
|
206 |
+
$row->right_butt_url = WDS()->plugin_url . '/images/arrow/arrow11/1/2.png';
|
207 |
+
$row->left_butt_url = WDS()->plugin_url . '/images/arrow/arrow11/1/1.png';
|
208 |
+
$row->right_butt_hov_url = WDS()->plugin_url . '/images/arrow/arrow11/1/4.png';
|
209 |
+
$row->left_butt_hov_url = WDS()->plugin_url . '/images/arrow/arrow11/1/3.png';
|
210 |
+
$row->rl_butt_img_or_not = 'style';
|
211 |
+
$row->bullets_img_main_url = WDS()->plugin_url . '/images/bullet/bullet1/1/1.png';
|
212 |
+
$row->bullets_img_hov_url = WDS()->plugin_url . '/images/bullet/bullet1/1/2.png';
|
213 |
+
$row->bull_butt_img_or_not = 'style';
|
214 |
+
$row->play_paus_butt_img_or_not = 'style';
|
215 |
+
$row->play_butt_url = WDS()->plugin_url . '/images/button/button4/1/1.png';
|
216 |
+
$row->play_butt_hov_url = WDS()->plugin_url . '/images/button/button4/1/2.png';
|
217 |
+
$row->paus_butt_url = WDS()->plugin_url . '/images/button/button4/1/3.png';
|
218 |
+
$row->paus_butt_hov_url = WDS()->plugin_url . '/images/button/button4/1/4.png';
|
219 |
+
$row->start_slide_num = 1;
|
220 |
+
$row->effect_duration = 800;
|
221 |
+
$row->carousel = 0;
|
222 |
+
$row->carousel_image_counts = 7;
|
223 |
+
$row->carousel_image_parameters = 0.85;
|
224 |
+
$row->carousel_fit_containerWidth = 0;
|
225 |
+
$row->carousel_width = 1000;
|
226 |
+
$row->parallax_effect = 0;
|
227 |
+
$row->mouse_swipe_nav = 0;
|
228 |
+
$row->bull_hover = 1;
|
229 |
+
$row->touch_swipe_nav = 1;
|
230 |
+
$row->mouse_wheel_nav = 0;
|
231 |
+
$row->keyboard_nav = 0;
|
232 |
+
$row->possib_add_ffamily = '';
|
233 |
+
$row->show_thumbnail = 0;
|
234 |
+
$row->thumb_size = '0.3';
|
235 |
+
$row->fixed_bg = 0;
|
236 |
+
$row->smart_crop = 0;
|
237 |
+
$row->crop_image_position = 'center center';
|
238 |
+
$row->javascript = '';
|
239 |
+
$row->carousel_degree = 0;
|
240 |
+
$row->carousel_grayscale = 0;
|
241 |
+
$row->carousel_transparency = 0;
|
242 |
+
$row->bull_back_act_color = '000000';
|
243 |
+
$row->bull_back_color = 'CCCCCC';
|
244 |
+
$row->bull_radius = '20px';
|
245 |
+
$row->possib_add_google_fonts = 0;
|
246 |
+
$row->possib_add_ffamily_google = '';
|
247 |
+
$row->slider_loop = 1;
|
248 |
+
$row->hide_on_mobile = 0;
|
249 |
+
$row->twoway_slideshow = 0;
|
250 |
+
$row->full_width_for_mobile = 0;
|
251 |
+
$row->order_dir = 'asc';
|
252 |
+
}
|
253 |
+
return $row;
|
254 |
+
}
|
255 |
+
|
256 |
+
/**
|
257 |
+
* Create Preview Slider post.
|
258 |
+
*
|
259 |
+
* @return string $guid
|
260 |
+
*/
|
261 |
+
public function get_slide_preview_post() {
|
262 |
+
$post_type = 'wds-slider';
|
263 |
+
$row = get_posts(array( 'post_type' => $post_type ));
|
264 |
+
if ( !empty($row[0]) ) {
|
265 |
+
return get_post_permalink($row[0]->ID);
|
266 |
+
}
|
267 |
+
else {
|
268 |
+
$post_params = array(
|
269 |
+
'post_author' => 1,
|
270 |
+
'post_status' => 'publish',
|
271 |
+
'post_content' => '[SliderPreview]',
|
272 |
+
'post_title' => 'Preview',
|
273 |
+
'post_type' => 'wds-slider',
|
274 |
+
'comment_status' => 'closed',
|
275 |
+
'ping_status' => 'closed',
|
276 |
+
'post_parent' => 0,
|
277 |
+
'menu_order' => 0,
|
278 |
+
'import_id' => 0,
|
279 |
+
);
|
280 |
+
// Create new post by type.
|
281 |
+
$insert_id = wp_insert_post($post_params);
|
282 |
+
if ( !is_wp_error($insert_id) ) {
|
283 |
+
flush_rewrite_rules();
|
284 |
+
return get_post_permalink($insert_id);
|
285 |
+
}
|
286 |
+
else {
|
287 |
+
return "";
|
288 |
+
}
|
289 |
+
}
|
290 |
+
}
|
291 |
+
|
292 |
+
/**
|
293 |
+
* Publish.
|
294 |
+
*
|
295 |
+
* @param $id
|
296 |
+
* @param bool $all
|
297 |
+
*
|
298 |
+
* @return int
|
299 |
+
*/
|
300 |
+
public function publish( $id, $all = FALSE ) {
|
301 |
+
global $wpdb;
|
302 |
+
$where = ($all ? '' : ' WHERE id=' . $id);
|
303 |
+
$updated = $wpdb->query('UPDATE `' . $wpdb->prefix . 'wdsslider` SET `published` = 1' . $where);
|
304 |
+
|
305 |
+
$message_id = 2;
|
306 |
+
if ( $updated !== FALSE ) {
|
307 |
+
$message_id = 9;
|
308 |
+
}
|
309 |
+
return $message_id;
|
310 |
+
}
|
311 |
+
|
312 |
+
/**
|
313 |
+
* Unpublish.
|
314 |
+
*
|
315 |
+
* @param $id
|
316 |
+
* @param bool $all
|
317 |
+
*
|
318 |
+
* @return int
|
319 |
+
*/
|
320 |
+
public function unpublish( $id, $all = FALSE ) {
|
321 |
+
global $wpdb;
|
322 |
+
$where = ($all ? '' : ' WHERE id=' . $id);
|
323 |
+
$updated = $wpdb->query('UPDATE `' . $wpdb->prefix . 'wdsslider` SET `published` = 0' . $where);
|
324 |
+
|
325 |
+
$message_id = 2;
|
326 |
+
if ( $updated !== FALSE ) {
|
327 |
+
$message_id = 11;
|
328 |
+
}
|
329 |
+
return $message_id;
|
330 |
+
}
|
331 |
+
|
332 |
+
/**
|
333 |
+
* Delete.
|
334 |
+
*
|
335 |
+
* @param $id
|
336 |
+
* @param bool $all
|
337 |
+
*
|
338 |
+
* @return int
|
339 |
+
*/
|
340 |
+
public function delete( $id, $all = FALSE ) {
|
341 |
+
global $wpdb;
|
342 |
+
$where = ($all ? '' : ' WHERE `id` = ' . $id);
|
343 |
+
$slide_where = ($all ? '' : ' WHERE `t1`.`slider_id` = ' . $id);
|
344 |
+
|
345 |
+
$delete = $wpdb->query('DELETE FROM ' . $wpdb->prefix . 'wdsslider ' . $where);
|
346 |
+
if ($delete) {
|
347 |
+
$wpdb->query('DELETE t1.*, t2.* FROM `' . $wpdb->prefix . 'wdsslide` AS `t1` LEFT JOIN ' . $wpdb->prefix . 'wdslayer AS `t2` ON `t1`.`id` = `t2`.`slide_id` ' . $slide_where);
|
348 |
+
// TODO. need works the other version.
|
349 |
+
// $this->remove_frontend_js_file( $id );
|
350 |
+
}
|
351 |
+
$message_id = 2;
|
352 |
+
if ( $delete ) {
|
353 |
+
$message_id = 3;
|
354 |
+
if ( $all ) {
|
355 |
+
$message_id = 5;
|
356 |
+
}
|
357 |
+
}
|
358 |
+
return $message_id;
|
359 |
+
}
|
360 |
+
|
361 |
+
/**
|
362 |
+
* Duplicate.
|
363 |
+
*
|
364 |
+
* @param $id
|
365 |
+
* @param bool $all
|
366 |
+
*
|
367 |
+
* @return int
|
368 |
+
*/
|
369 |
+
public function duplicate( $id, $all = FALSE ) {
|
370 |
+
global $wpdb;
|
371 |
+
$where = ($all ? '' : ' WHERE `id` = ' . $id);
|
372 |
+
|
373 |
+
$sliders = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdsslider`' . $where);
|
374 |
+
if ( !empty($sliders) ) {
|
375 |
+
foreach ( $sliders as $slider ) {
|
376 |
+
$slider_ids[] = $slider->id;
|
377 |
+
unset($slider->id);
|
378 |
+
$sliders_data[$id] = $slider;
|
379 |
+
}
|
380 |
+
// Get slides by slider ids.
|
381 |
+
$slides = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdsslide` WHERE `slider_id` IN(' . implode($slider_ids, ',') . ')');
|
382 |
+
if ( !empty($slides)) {
|
383 |
+
$slides_data = array();
|
384 |
+
foreach ( $slides as $slide ) {
|
385 |
+
$id = $slide->id;
|
386 |
+
$slider_id = $slide->slider_id;
|
387 |
+
$slide_ids[] = $slide->id;
|
388 |
+
unset($slide->id);
|
389 |
+
unset($slide->slider_id);
|
390 |
+
$slides_data[$slider_id][$id] = $slide;
|
391 |
+
}
|
392 |
+
// Get layers by slide ids.
|
393 |
+
$layers = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdslayer` WHERE `slide_id` IN (' . implode($slide_ids,',') . ')');
|
394 |
+
$layers_data = array();
|
395 |
+
if ( !empty($layers) ) {
|
396 |
+
foreach ( $layers as $layer ) {
|
397 |
+
$slide_id = $layer->slide_id;
|
398 |
+
unset($layer->id);
|
399 |
+
unset($layer->slide_id);
|
400 |
+
$layers_data[$slide_id][] = $layer;
|
401 |
+
}
|
402 |
+
}
|
403 |
+
}
|
404 |
+
// Insert slider data.
|
405 |
+
$slider_save = $this->insert_slides( array('sliders_data' => $sliders_data, 'slides_data' => $slides_data, 'layers_data' => $layers_data) );
|
406 |
+
}
|
407 |
+
|
408 |
+
$message_id = 2;
|
409 |
+
if ( $slider_save ) {
|
410 |
+
$message_id = 26;
|
411 |
+
}
|
412 |
+
return $message_id;
|
413 |
+
}
|
414 |
+
|
415 |
+
/**
|
416 |
+
* Merge.
|
417 |
+
*
|
418 |
+
* @param $id
|
419 |
+
* @param bool $all
|
420 |
+
*
|
421 |
+
* @return int
|
422 |
+
*/
|
423 |
+
public function merge( $id, $all = FALSE ) {
|
424 |
+
global $wpdb;
|
425 |
+
$checkds = WDW_S_Library::get('check');
|
426 |
+
if ( !empty($checkds) ) {
|
427 |
+
if ( isset($checkds[$id]) ) {
|
428 |
+
unset($checkds[$id]);
|
429 |
+
}
|
430 |
+
$ids[] = $id;
|
431 |
+
foreach ( $checkds as $k => $v ){
|
432 |
+
$ids[] = $k;
|
433 |
+
}
|
434 |
+
}
|
435 |
+
$str_ids = implode( $ids, ',');
|
436 |
+
$where = ($all ? '' : ' WHERE `id` IN (' . $str_ids . ')');
|
437 |
+
$sliders = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdsslider` '. $where .' ORDER BY FIELD(`id`,' . $str_ids . ');');
|
438 |
+
if ( !empty($sliders) ) {
|
439 |
+
$name = "Merged sliders of ";
|
440 |
+
foreach ( $sliders as $slider ) {
|
441 |
+
$name .= $slider->name .', ';
|
442 |
+
$slider_ids[$slider->id] = $slider;
|
443 |
+
}
|
444 |
+
|
445 |
+
if ( !empty($slider_ids[$id]) ) {
|
446 |
+
$slider_data = $slider_ids[$id];
|
447 |
+
unset($slider_data->id);
|
448 |
+
$slider_data->name = rtrim($name, ', ');
|
449 |
+
$sliders_data[$id] = $slider_data;
|
450 |
+
$str_slider_ids = implode( array_keys($slider_ids), ',' );
|
451 |
+
$slides = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdsslide` WHERE `slider_id` IN ('. $str_slider_ids . ') ORDER BY FIELD(`slider_id`,' . $str_slider_ids . ')');
|
452 |
+
|
453 |
+
$order_slide = 1;
|
454 |
+
$slides_data = array();
|
455 |
+
foreach ( $slides as $slide ) {
|
456 |
+
$slide_id = $slide->id;
|
457 |
+
$slide_ids[] = $slide_id;
|
458 |
+
unset($slide->id);
|
459 |
+
unset($slide->slider_id);
|
460 |
+
$slide->order = $order_slide;
|
461 |
+
$slides_data[$id][$slide_id] = $slide;
|
462 |
+
$order_slide++;
|
463 |
+
}
|
464 |
+
// Get layers by slide ids.
|
465 |
+
$layers = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdslayer` WHERE `slide_id` IN (' . implode($slide_ids,',') . ') ORDER BY `slide_id` ASC');
|
466 |
+
$layers_data = array();
|
467 |
+
if ( !empty($layers) ) {
|
468 |
+
foreach ( $layers as $layer ) {
|
469 |
+
$slide_id = $layer->slide_id;
|
470 |
+
unset($layer->id);
|
471 |
+
unset($layer->slide_id);
|
472 |
+
$layers_data[$slide_id][] = $layer;
|
473 |
+
}
|
474 |
+
}
|
475 |
+
// Insert slider data.
|
476 |
+
$slider_save = $this->insert_slides( array('sliders_data' => $sliders_data, 'slides_data' => $slides_data, 'layers_data' => $layers_data) );
|
477 |
+
}
|
478 |
+
|
479 |
+
}
|
480 |
+
$message_id = 27;
|
481 |
+
if ( $slider_save ) {
|
482 |
+
$message_id = 28;
|
483 |
+
}
|
484 |
+
return $message_id;
|
485 |
+
}
|
486 |
+
|
487 |
+
/**
|
488 |
+
* Insert slides.
|
489 |
+
*
|
490 |
+
* @param array $params
|
491 |
+
* @return mixed
|
492 |
+
*/
|
493 |
+
public function insert_slides( $params = array() ) {
|
494 |
+
global $wpdb;
|
495 |
+
$sliders_data = $params['sliders_data'];
|
496 |
+
$slides_data = $params['slides_data'];
|
497 |
+
$layers_data = $params['layers_data'];
|
498 |
+
|
499 |
+
if ( !empty($sliders_data) ) {
|
500 |
+
foreach ( $sliders_data as $slider_id => $slider ) {
|
501 |
+
$slider_save = $wpdb->insert($wpdb->prefix . 'wdsslider', (array) $slider);
|
502 |
+
$new_slider_id = $wpdb->insert_id;
|
503 |
+
|
504 |
+
if ( !empty($slides_data[$slider_id]) ) {
|
505 |
+
foreach ( $slides_data[$slider_id] as $slid_id => $slide) {
|
506 |
+
|
507 |
+
$slide->slider_id = $new_slider_id;
|
508 |
+
$slid_save = $wpdb->insert($wpdb->prefix . 'wdsslide', (array) $slide);
|
509 |
+
$new_slide_id = $wpdb->insert_id;
|
510 |
+
|
511 |
+
if ( !empty($layers_data[$slid_id]) ) {
|
512 |
+
foreach ( $layers_data[$slid_id] as $layer ) {
|
513 |
+
$layer->slide_id = $new_slide_id;
|
514 |
+
$layer_save = $wpdb->insert($wpdb->prefix . 'wdslayer', (array) $layer);
|
515 |
+
}
|
516 |
+
}
|
517 |
+
}
|
518 |
+
}
|
519 |
+
}
|
520 |
+
return $new_slider_id;
|
521 |
+
}
|
522 |
+
return FALSE;
|
523 |
+
}
|
524 |
+
|
525 |
+
/**
|
526 |
+
* Get slides info.
|
527 |
+
*
|
528 |
+
* @param array $params
|
529 |
+
* @return array
|
530 |
+
*/
|
531 |
+
public function get_slides_info( $params = array() ) {
|
532 |
+
global $wpdb;
|
533 |
+
$ids = $params['ids'];
|
534 |
+
$rows = $wpdb->get_results('
|
535 |
+
SELECT
|
536 |
+
`slider_id`,
|
537 |
+
COUNT(*) AS `count`
|
538 |
+
FROM
|
539 |
+
' . $wpdb->prefix . 'wdsslide
|
540 |
+
WHERE
|
541 |
+
`slider_id` IN (' . implode(',', $ids) . ')
|
542 |
+
AND `image_url` <> ""
|
543 |
+
AND `image_url` NOT LIKE "%images/no-image.png%"
|
544 |
+
GROUP BY `slider_id`
|
545 |
+
');
|
546 |
+
$images_count = array();
|
547 |
+
if ( !empty($rows) ) {
|
548 |
+
foreach ( $rows as $row ) {
|
549 |
+
$images_count[$row->slider_id] = $row->count;
|
550 |
+
}
|
551 |
+
}
|
552 |
+
|
553 |
+
$rows = $wpdb->get_results('
|
554 |
+
SELECT
|
555 |
+
`slider_id`,
|
556 |
+
`thumb_url`,
|
557 |
+
`type`
|
558 |
+
FROM
|
559 |
+
' . $wpdb->prefix . 'wdsslide
|
560 |
+
WHERE
|
561 |
+
`slider_id` IN ('. implode(',', $ids) .')
|
562 |
+
ORDER BY `order` ASC
|
563 |
+
');
|
564 |
+
|
565 |
+
$preview_thumb_url = WDS()->plugin_url . '/images/no-image.png';
|
566 |
+
if ( $rows ) {
|
567 |
+
foreach ( $rows as $row ) {
|
568 |
+
$preview_thumb_url = ( $row->type == 'video' && ctype_digit($row->thumb_url) ) ? ( wp_get_attachment_url(get_post_thumbnail_id($row->thumb_url)) ? wp_get_attachment_url(get_post_thumbnail_id($row->thumb_url)) : WDS()->plugin_url . '/images/no-video.png') : $row->thumb_url;
|
569 |
+
if ($preview_thumb_url) {
|
570 |
+
$preview_thumb_url = str_replace('{site_url}', site_url(), $preview_thumb_url);
|
571 |
+
}
|
572 |
+
$thumbs[$row->slider_id] = $preview_thumb_url;
|
573 |
+
}
|
574 |
+
}
|
575 |
+
|
576 |
+
$data = array();
|
577 |
+
foreach ( $ids as $id ) {
|
578 |
+
$data[$id] = array (
|
579 |
+
'count' => !empty($images_count[$id]) ? $images_count[$id] : 0,
|
580 |
+
'preview_thumb' => !empty($thumbs[$id]) ? $thumbs[$id] : $preview_thumb_url
|
581 |
+
);
|
582 |
+
}
|
583 |
+
return $data;
|
584 |
+
}
|
585 |
+
|
586 |
+
/*
|
587 |
+
* Create frontend js file.
|
588 |
+
*
|
589 |
+
* @param int int
|
590 |
+
* @return bool
|
591 |
+
*/
|
592 |
+
public function create_frontend_js_file( $id ) {
|
593 |
+
$create_js = WDW_S_Library::create_frontend_js_file( $id );
|
594 |
+
global $wpdb;
|
595 |
+
$update = $wpdb->update( $wpdb->prefix . 'wdsslider', array('jsversion' => rand()), array('id' => $id) );
|
596 |
+
return $update;
|
597 |
+
}
|
598 |
+
}
|
admin/models/WDSModelSliders_wds.php
DELETED
@@ -1,306 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class WDSModelSliders_wds {
|
3 |
-
|
4 |
-
public function __construct() {
|
5 |
-
}
|
6 |
-
|
7 |
-
public function get_slides_count($slider_id) {
|
8 |
-
global $wpdb;
|
9 |
-
$count = $wpdb->get_var("SELECT COUNT(id) FROM " . $wpdb->prefix . "wdsslide WHERE slider_id='". $slider_id ."' AND image_url<>'' AND image_url NOT LIKE '%images/no-image.png%'");
|
10 |
-
return $count;
|
11 |
-
}
|
12 |
-
|
13 |
-
public function get_slides_row_data($slider_id) {
|
14 |
-
global $wpdb;
|
15 |
-
$rows = $wpdb->get_results($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "wdsslide WHERE slider_id='%d' ORDER BY `order` ASC", $slider_id));
|
16 |
-
if (!$rows) {
|
17 |
-
$rows = array();
|
18 |
-
}
|
19 |
-
else {
|
20 |
-
foreach ($rows as $row) {
|
21 |
-
$row->image_url = $row->image_url ? str_replace('{site_url}', site_url(), $row->image_url) : WD_S_URL . '/images/no-image.png';
|
22 |
-
$row->thumb_url = $row->thumb_url ? str_replace('{site_url}', site_url(), $row->thumb_url) : WD_S_URL . '/images/no-image.png';
|
23 |
-
$title_dimension = json_decode($row->title);
|
24 |
-
if ($title_dimension) {
|
25 |
-
$row->att_width = isset($title_dimension->att_width) ? $title_dimension->att_width : 0;
|
26 |
-
$row->att_height = isset($title_dimension->att_height) ? $title_dimension->att_height : 0;
|
27 |
-
$row->video_duration = isset($title_dimension->video_duration) ? $title_dimension->video_duration : 0;
|
28 |
-
$row->title = isset($title_dimension->title) ? $title_dimension->title : '';
|
29 |
-
}
|
30 |
-
else {
|
31 |
-
$row->att_width = 0;
|
32 |
-
$row->att_height = 0;
|
33 |
-
$row->video_duration = 0;
|
34 |
-
}
|
35 |
-
}
|
36 |
-
}
|
37 |
-
return $rows;
|
38 |
-
}
|
39 |
-
|
40 |
-
public function get_layers_row_data($slide_id) {
|
41 |
-
global $wpdb;
|
42 |
-
$rows = $wpdb->get_results($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "wdslayer WHERE slide_id='%d' ORDER BY `depth` ASC", $slide_id));
|
43 |
-
foreach ($rows as $row) {
|
44 |
-
$row->image_url = $row->image_url ? str_replace('{site_url}', site_url(), $row->image_url) : WD_S_URL . '/images/no-image.png';
|
45 |
-
$title_dimension = json_decode($row->title);
|
46 |
-
if ($title_dimension) {
|
47 |
-
$row->attr_width = $title_dimension->attr_width;
|
48 |
-
$row->attr_height = $title_dimension->attr_height;
|
49 |
-
$row->title = $title_dimension->title;
|
50 |
-
}
|
51 |
-
else {
|
52 |
-
$row->attr_width = 0;
|
53 |
-
$row->attr_height = 0;
|
54 |
-
}
|
55 |
-
}
|
56 |
-
return $rows;
|
57 |
-
}
|
58 |
-
|
59 |
-
public function get_slider_prev_img($slider_id) {
|
60 |
-
global $wpdb;
|
61 |
-
$slider = $wpdb->get_row($wpdb->prepare("SELECT `thumb_url`, `type` FROM " . $wpdb->prefix . "wdsslide WHERE slider_id='%d' ORDER BY `order` ASC", $slider_id));
|
62 |
-
$preview_img_url = WD_S_URL . '/images/no-image.png';
|
63 |
-
if ($slider) {
|
64 |
-
$img_url = $slider->type == 'video' && ctype_digit($slider->thumb_url) ? (wp_get_attachment_url(get_post_thumbnail_id($slider->thumb_url)) ? wp_get_attachment_url(get_post_thumbnail_id($slider->thumb_url)) : WD_S_URL . '/images/no-video.png') : $slider->thumb_url;
|
65 |
-
if ($img_url) {
|
66 |
-
$preview_img_url = $img_url;
|
67 |
-
$preview_img_url = str_replace('{site_url}', site_url(), $preview_img_url);
|
68 |
-
}
|
69 |
-
}
|
70 |
-
return $preview_img_url;
|
71 |
-
}
|
72 |
-
|
73 |
-
public function get_rows_data() {
|
74 |
-
global $wpdb;
|
75 |
-
$where = ((isset($_POST['search_value'])) ? 'WHERE name LIKE "%' . esc_html(stripslashes($_POST['search_value'])) . '%"' : '');
|
76 |
-
$asc_or_desc = ((isset($_POST['asc_or_desc']) && esc_html($_POST['asc_or_desc']) == 'desc') ? 'desc' : 'asc');
|
77 |
-
$order_by_arr = array('id', 'name', 'published');
|
78 |
-
$order_by = ((isset($_POST['order_by']) && in_array(esc_html($_POST['order_by']), $order_by_arr)) ? esc_html($_POST['order_by']) : 'id');
|
79 |
-
$order_by = ' ORDER BY `' . $order_by . '` ' . $asc_or_desc;
|
80 |
-
if (isset($_POST['page_number']) && $_POST['page_number']) {
|
81 |
-
$limit = ((int) $_POST['page_number'] - 1) * 20;
|
82 |
-
}
|
83 |
-
else {
|
84 |
-
$limit = 0;
|
85 |
-
}
|
86 |
-
$query = "SELECT * FROM " . $wpdb->prefix . "wdsslider " . $where . $order_by . " LIMIT " . $limit . ",20";
|
87 |
-
$rows = $wpdb->get_results($query);
|
88 |
-
return $rows;
|
89 |
-
}
|
90 |
-
|
91 |
-
public function get_row_data($id, $reset) {
|
92 |
-
global $wpdb;
|
93 |
-
if ($id != 0 && !$reset) {
|
94 |
-
$row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'wdsslider WHERE id="%d"', $id));
|
95 |
-
if ($row) {
|
96 |
-
$row->enable_bullets = $row->bull_position == 'none' ? 0 : 1;
|
97 |
-
$row->enable_filmstrip = $row->film_pos == 'none' ? 0 : 1;
|
98 |
-
$row->enable_time_bar = $row->timer_bar_type == 'none' ? 0 : 1;
|
99 |
-
$row->music_url = str_replace('{site_url}', site_url(), $row->music_url);
|
100 |
-
$row->built_in_watermark_url = str_replace('{site_url}', site_url(), $row->built_in_watermark_url);
|
101 |
-
$row->right_butt_url = str_replace('{site_url}', site_url(), $row->right_butt_url);
|
102 |
-
$row->left_butt_url = str_replace('{site_url}', site_url(), $row->left_butt_url);
|
103 |
-
$row->right_butt_hov_url = str_replace('{site_url}', site_url(), $row->right_butt_hov_url);
|
104 |
-
$row->left_butt_hov_url = str_replace('{site_url}', site_url(), $row->left_butt_hov_url);
|
105 |
-
$row->bullets_img_main_url = str_replace('{site_url}', site_url(), $row->bullets_img_main_url);
|
106 |
-
$row->bullets_img_hov_url = str_replace('{site_url}', site_url(), $row->bullets_img_hov_url);
|
107 |
-
$row->play_butt_url = str_replace('{site_url}', site_url(), $row->play_butt_url);
|
108 |
-
$row->play_butt_hov_url = str_replace('{site_url}', site_url(), $row->play_butt_hov_url);
|
109 |
-
$row->paus_butt_url = str_replace('{site_url}', site_url(), $row->paus_butt_url);
|
110 |
-
$row->paus_butt_hov_url = str_replace('{site_url}', site_url(), $row->paus_butt_hov_url);
|
111 |
-
}
|
112 |
-
}
|
113 |
-
else {
|
114 |
-
$row = new stdClass();
|
115 |
-
if ($reset && $id) {
|
116 |
-
$row = $wpdb->get_row($wpdb->prepare('SELECT name FROM ' . $wpdb->prefix . 'wdsslider WHERE id="%d"', $id));
|
117 |
-
}
|
118 |
-
else {
|
119 |
-
$row->name = '';
|
120 |
-
}
|
121 |
-
$row->id = $id;
|
122 |
-
$row->width = 900;
|
123 |
-
$row->height = 400;
|
124 |
-
$row->full_width = 2;
|
125 |
-
$row->auto_height = 0;
|
126 |
-
$row->align = 'center';
|
127 |
-
$row->effect = 'fade';
|
128 |
-
$row->published = 1;
|
129 |
-
$row->time_intervval = 5;
|
130 |
-
$row->autoplay = 1;
|
131 |
-
$row->shuffle = 0;
|
132 |
-
$row->music = 0;
|
133 |
-
$row->music_url = '';
|
134 |
-
$row->preload_images = 1;
|
135 |
-
$row->background_color = '000000';
|
136 |
-
$row->background_transparent = 100;
|
137 |
-
$row->glb_border_width = 0;
|
138 |
-
$row->glb_border_style = 'none';
|
139 |
-
$row->glb_border_color = '000000';
|
140 |
-
$row->glb_border_radius = '';
|
141 |
-
$row->glb_margin = 0;
|
142 |
-
$row->glb_box_shadow = '';
|
143 |
-
$row->image_right_click = 0;
|
144 |
-
$row->layer_out_next = 0;
|
145 |
-
$row->prev_next_butt = 1;
|
146 |
-
$row->play_paus_butt = 0;
|
147 |
-
$row->navigation = 'hover';
|
148 |
-
$row->rl_butt_style = 'fa-angle';
|
149 |
-
$row->rl_butt_size = 40;
|
150 |
-
$row->pp_butt_size = 40;
|
151 |
-
$row->butts_color = '000000';
|
152 |
-
$row->hover_color = '000000';
|
153 |
-
$row->nav_border_width = 0;
|
154 |
-
$row->nav_border_style = 'none';
|
155 |
-
$row->nav_border_color = 'FFFFFF';
|
156 |
-
$row->nav_border_radius = '20px';
|
157 |
-
$row->nav_bg_color = 'FFFFFF';
|
158 |
-
$row->butts_transparent = 100;
|
159 |
-
$row->enable_bullets = 1;
|
160 |
-
$row->bull_position = 'bottom';
|
161 |
-
$row->bull_style = 'fa-square-o';
|
162 |
-
$row->bull_size = 20;
|
163 |
-
$row->bull_color = 'FFFFFF';
|
164 |
-
$row->bull_act_color = 'FFFFFF';
|
165 |
-
$row->bull_margin = 3;
|
166 |
-
$row->enable_filmstrip = 0;
|
167 |
-
$row->film_pos = 'none';
|
168 |
-
$row->film_thumb_width = 100;
|
169 |
-
$row->film_thumb_height = 50;
|
170 |
-
$row->film_bg_color = '000000';
|
171 |
-
$row->film_tmb_margin = 0;
|
172 |
-
$row->film_act_border_width = 0;
|
173 |
-
$row->film_act_border_style = 'none';
|
174 |
-
$row->film_act_border_color = 'FFFFFF';
|
175 |
-
$row->film_dac_transparent = 50;
|
176 |
-
$row->enable_time_bar = 1;
|
177 |
-
$row->timer_bar_type = 'top';
|
178 |
-
$row->timer_bar_size = 5;
|
179 |
-
$row->timer_bar_color = 'BBBBBB';
|
180 |
-
$row->timer_bar_transparent = 50;
|
181 |
-
$row->built_in_watermark_type = 'none';
|
182 |
-
$row->built_in_watermark_position = 'middle-center';
|
183 |
-
$row->built_in_watermark_size = 15;
|
184 |
-
$row->built_in_watermark_url = WD_S_URL . '/images/watermark.png';
|
185 |
-
$row->built_in_watermark_text = 'web-dorado.com';
|
186 |
-
$row->built_in_watermark_font_size = 20;
|
187 |
-
$row->built_in_watermark_font = '';
|
188 |
-
$row->built_in_watermark_color = 'FFFFFF';
|
189 |
-
$row->built_in_watermark_opacity = 70;
|
190 |
-
$row->stop_animation = 0;
|
191 |
-
$row->css = '';
|
192 |
-
$row->right_butt_url = WD_S_URL . '/images/arrow/arrow11/1/2.png';
|
193 |
-
$row->left_butt_url = WD_S_URL . '/images/arrow/arrow11/1/1.png';
|
194 |
-
$row->right_butt_hov_url = WD_S_URL . '/images/arrow/arrow11/1/4.png';
|
195 |
-
$row->left_butt_hov_url = WD_S_URL . '/images/arrow/arrow11/1/3.png';
|
196 |
-
$row->rl_butt_img_or_not = 'style';
|
197 |
-
$row->bullets_img_main_url = WD_S_URL . '/images/bullet/bullet1/1/1.png';
|
198 |
-
$row->bullets_img_hov_url = WD_S_URL . '/images/bullet/bullet1/1/2.png';
|
199 |
-
$row->bull_butt_img_or_not = 'style';
|
200 |
-
$row->play_paus_butt_img_or_not = 'style';
|
201 |
-
$row->play_butt_url = WD_S_URL . '/images/button/button4/1/1.png';
|
202 |
-
$row->play_butt_hov_url = WD_S_URL . '/images/button/button4/1/2.png';
|
203 |
-
$row->paus_butt_url = WD_S_URL . '/images/button/button4/1/3.png';
|
204 |
-
$row->paus_butt_hov_url = WD_S_URL . '/images/button/button4/1/4.png';
|
205 |
-
$row->start_slide_num = 1;
|
206 |
-
$row->effect_duration = 800;
|
207 |
-
$row->carousel = 0;
|
208 |
-
$row->carousel_image_counts = 7;
|
209 |
-
$row->carousel_image_parameters = 0.85;
|
210 |
-
$row->carousel_fit_containerWidth = 0;
|
211 |
-
$row->carousel_width = 1000;
|
212 |
-
$row->parallax_effect = 0;
|
213 |
-
$row->mouse_swipe_nav = 0;
|
214 |
-
$row->bull_hover = 1;
|
215 |
-
$row->touch_swipe_nav = 1;
|
216 |
-
$row->mouse_wheel_nav = 0;
|
217 |
-
$row->keyboard_nav = 0;
|
218 |
-
$row->possib_add_ffamily = '';
|
219 |
-
$row->show_thumbnail = 0;
|
220 |
-
$row->thumb_size = '0.3';
|
221 |
-
$row->fixed_bg = 0;
|
222 |
-
$row->smart_crop = 0;
|
223 |
-
$row->crop_image_position = 'center center';
|
224 |
-
$row->javascript = '';
|
225 |
-
$row->carousel_degree = 0;
|
226 |
-
$row->carousel_grayscale = 0;
|
227 |
-
$row->carousel_transparency = 0;
|
228 |
-
$row->bull_back_act_color = '000000';
|
229 |
-
$row->bull_back_color = 'CCCCCC';
|
230 |
-
$row->bull_radius = '20px';
|
231 |
-
$row->possib_add_google_fonts = 0;
|
232 |
-
$row->possib_add_ffamily_google = '';
|
233 |
-
$row->slider_loop = 1;
|
234 |
-
$row->hide_on_mobile = 0;
|
235 |
-
$row->twoway_slideshow = 0;
|
236 |
-
$row->full_width_for_mobile = 0;
|
237 |
-
$row->order_dir = 'asc';
|
238 |
-
}
|
239 |
-
return $row;
|
240 |
-
}
|
241 |
-
|
242 |
-
public function page_nav() {
|
243 |
-
global $wpdb;
|
244 |
-
$where = ((isset($_POST['search_value']) && (esc_html(stripslashes($_POST['search_value'])) != '')) ? 'WHERE name LIKE "%' . esc_html(stripslashes($_POST['search_value'])) . '%"' : '');
|
245 |
-
$total = $wpdb->get_var("SELECT COUNT(*) FROM " . $wpdb->prefix . "wdsslider " . $where);
|
246 |
-
$page_nav['total'] = $total;
|
247 |
-
if (isset($_POST['page_number']) && $_POST['page_number']) {
|
248 |
-
$limit = ((int) $_POST['page_number'] - 1) * 20;
|
249 |
-
}
|
250 |
-
else {
|
251 |
-
$limit = 0;
|
252 |
-
}
|
253 |
-
$page_nav['limit'] = (int) ($limit / 20 + 1);
|
254 |
-
return $page_nav;
|
255 |
-
}
|
256 |
-
|
257 |
-
/**
|
258 |
-
* Create Preview Slider post.
|
259 |
-
*
|
260 |
-
* @return string $guid
|
261 |
-
*/
|
262 |
-
public function get_slide_preview_post() {
|
263 |
-
$post_type = 'wds-slider';
|
264 |
-
$row = get_posts(array( 'post_type' => $post_type ));
|
265 |
-
if ( !empty($row[0]) ) {
|
266 |
-
return get_post_permalink($row[0]->ID);
|
267 |
-
}
|
268 |
-
else {
|
269 |
-
$post_params = array(
|
270 |
-
'post_author' => 1,
|
271 |
-
'post_status' => 'publish',
|
272 |
-
'post_content' => '[SliderPreview]',
|
273 |
-
'post_title' => 'Preview',
|
274 |
-
'post_type' => 'wds-slider',
|
275 |
-
'comment_status' => 'closed',
|
276 |
-
'ping_status' => 'closed',
|
277 |
-
'post_parent' => 0,
|
278 |
-
'menu_order' => 0,
|
279 |
-
'import_id' => 0,
|
280 |
-
);
|
281 |
-
// Create new post by type.
|
282 |
-
$insert_id = wp_insert_post($post_params);
|
283 |
-
if ( !is_wp_error($insert_id) ) {
|
284 |
-
flush_rewrite_rules();
|
285 |
-
|
286 |
-
return get_post_permalink($insert_id);
|
287 |
-
}
|
288 |
-
else {
|
289 |
-
return "";
|
290 |
-
}
|
291 |
-
}
|
292 |
-
}
|
293 |
-
|
294 |
-
/*
|
295 |
-
* Create frontend js file.
|
296 |
-
*
|
297 |
-
* @param int int
|
298 |
-
* @return bool
|
299 |
-
*/
|
300 |
-
public function create_frontend_js_file( $id ) {
|
301 |
-
$create_js = WDW_S_Library::create_frontend_js_file( $id );
|
302 |
-
global $wpdb;
|
303 |
-
$update = $wpdb->update( $wpdb->prefix . 'wdsslider', array('jsversion' => rand()), array('id' => $id) );
|
304 |
-
return $update;
|
305 |
-
}
|
306 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/views/AdminView.php
ADDED
@@ -0,0 +1,335 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
defined('ABSPATH') || die('Access Denied');
|
3 |
+
|
4 |
+
/**
|
5 |
+
* Admin view class.
|
6 |
+
*/
|
7 |
+
class AdminView_bwg {
|
8 |
+
|
9 |
+
public function __construct() {
|
10 |
+
wp_enqueue_style(WDS()->prefix . '_tables');
|
11 |
+
wp_enqueue_script(WDS()->prefix . '_admin');
|
12 |
+
}
|
13 |
+
/**
|
14 |
+
* Generate form.
|
15 |
+
*
|
16 |
+
* @param string $content
|
17 |
+
* @param array $attr
|
18 |
+
*
|
19 |
+
* @return string Form html.
|
20 |
+
*/
|
21 |
+
protected function form($content = '', $attr = array()) {
|
22 |
+
ob_start();
|
23 |
+
// Form.
|
24 |
+
$action = isset($attr['action']) ? esc_attr($attr['action']) : '';
|
25 |
+
$method = isset($attr['method']) ? esc_attr($attr['method']) : 'post';
|
26 |
+
$name = isset($attr['name']) ? esc_attr($attr['name']) : WDS()->prefix . '_form';
|
27 |
+
$id = isset($attr['id']) ? esc_attr($attr['id']) : '';
|
28 |
+
$class = isset($attr['class']) ? esc_attr($attr['class']) : WDS()->prefix . '_form';
|
29 |
+
$style = isset($attr['style']) ? esc_attr($attr['style']) : '';
|
30 |
+
$current_id = isset($attr['current_id']) ? esc_attr($attr['current_id']) : '';
|
31 |
+
$task = isset($attr['task']) ? esc_attr($attr['task']) : '';
|
32 |
+
?><div class="wrap<?php echo (isset($_GET['action']) ? ' wd-wrap-ajax' : ''); ?>">
|
33 |
+
<?php
|
34 |
+
// Generate message container by message id or directly by message.
|
35 |
+
$message_id = WDW_S_Library::get('message', 0);
|
36 |
+
$message = WDW_S_Library::get('msg', '');
|
37 |
+
echo WDW_S_Library::message_id($message_id, $message);
|
38 |
+
?>
|
39 |
+
<form
|
40 |
+
<?php echo $action ? 'action="' . $action . '"' : ''; ?>
|
41 |
+
<?php echo $method ? 'method="' . $method . '"' : ''; ?>
|
42 |
+
<?php echo $name ? ' name="' . $name . '"' : ''; ?>
|
43 |
+
<?php echo $id ? ' id="' . $id . '"' : ''; ?>
|
44 |
+
<?php echo $class ? ' class="' . $class . '"' : ''; ?>
|
45 |
+
<?php echo $style ? ' style="' . $style . '"' : ''; ?>
|
46 |
+
><h1 class="hidden"></h1><?php
|
47 |
+
echo $content;
|
48 |
+
// Add nonce to form.
|
49 |
+
wp_nonce_field(WDS()->nonce, WDS()->nonce);
|
50 |
+
?>
|
51 |
+
<input id="task" name="task" type="hidden" value="<?php echo $task; ?>"/>
|
52 |
+
<input id="current_id" name="current_id" type="hidden" value="<?php echo $current_id; ?>"/>
|
53 |
+
</form>
|
54 |
+
</div><?php
|
55 |
+
return ob_get_clean();
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Generate title.
|
60 |
+
*
|
61 |
+
* @param array $params
|
62 |
+
*
|
63 |
+
* @return string Title html.
|
64 |
+
*/
|
65 |
+
protected function title($params) {
|
66 |
+
$title = !empty($params['title']) ? $params['title'] : '';
|
67 |
+
$title_class = !empty($params['title_class']) ? $params['title_class'] : '';
|
68 |
+
$title_name = !empty($params['title_name']) ? $params['title_name'] : '';
|
69 |
+
$title_id = !empty($params['title_id']) ? $params['title_id'] : '';
|
70 |
+
$title_value = !empty($params['title_value']) ? $params['title_value'] : '';
|
71 |
+
$add_new_button = !empty($params['add_new_button']) ? $params['add_new_button'] : '';
|
72 |
+
|
73 |
+
$attributes = '';
|
74 |
+
if ( !empty($add_new_button) && is_array($add_new_button) ) {
|
75 |
+
foreach ( $add_new_button as $key => $val ) {
|
76 |
+
$attributes .= $key . '="' . $val . '"';
|
77 |
+
}
|
78 |
+
}
|
79 |
+
|
80 |
+
ob_start();
|
81 |
+
?><div class="wd-page-title <?php echo $title_class; ?>">
|
82 |
+
<h1 class="wp-heading-inline"><?php echo $title; ?>
|
83 |
+
<?php
|
84 |
+
if ( $title_name || $title_id || $title_value ) {
|
85 |
+
?>
|
86 |
+
<span id="fm-title-edit">
|
87 |
+
<input type="text" id="<?php echo $title_id; ?>" name="<?php echo $title_name; ?>" value="<?php echo $title_value; ?>" />
|
88 |
+
</span>
|
89 |
+
<?php
|
90 |
+
}
|
91 |
+
if ( $add_new_button ) {
|
92 |
+
?>
|
93 |
+
<a class="page-title-action" <?php echo $attributes; ?>>
|
94 |
+
<?php _e('Add New', WDS()->prefix); ?>
|
95 |
+
</a>
|
96 |
+
<?php
|
97 |
+
}
|
98 |
+
?>
|
99 |
+
</h1>
|
100 |
+
</div><?php
|
101 |
+
return ob_get_clean();
|
102 |
+
}
|
103 |
+
|
104 |
+
/**
|
105 |
+
* Generate buttons.
|
106 |
+
*
|
107 |
+
* @param array $buttons
|
108 |
+
* @param bool $single
|
109 |
+
* @param array $parent
|
110 |
+
*
|
111 |
+
* @return array Buttons html.
|
112 |
+
*/
|
113 |
+
protected function buttons($buttons = array(), $single = FALSE, $parent = array()) {
|
114 |
+
ob_start();
|
115 |
+
if ( !$single ) {
|
116 |
+
$parent_id = isset($parent['id']) ? esc_attr($parent['id']) : '';
|
117 |
+
$parent_class = isset($parent['class']) ? esc_attr($parent['class']) : 'wd-buttons';
|
118 |
+
$parent_style = isset($parent['style']) ? esc_attr($parent['style']) : '';
|
119 |
+
?>
|
120 |
+
<div
|
121 |
+
<?php echo $parent_id ? 'id="' . $parent_id . '"' : ''; ?>
|
122 |
+
<?php echo $parent_class ? ' class="' . $parent_class . '"' : ''; ?>
|
123 |
+
<?php echo $parent_style ? ' style="' . $parent_style . '"' : ''; ?>
|
124 |
+
>
|
125 |
+
<?php
|
126 |
+
}
|
127 |
+
foreach ($buttons as $button) {
|
128 |
+
$title = isset($button['title']) ? esc_attr($button['title']) : '';
|
129 |
+
$value = isset($button['value']) ? esc_attr($button['value']) : '';
|
130 |
+
$name = isset($button['name']) ? esc_attr($button['name']) : '';
|
131 |
+
$id = isset($button['id']) ? esc_attr($button['id']) : '';
|
132 |
+
$class = isset($button['class']) ? esc_attr($button['class']) : '';
|
133 |
+
$style = isset($button['style']) ? esc_attr($button['style']) : '';
|
134 |
+
$onclick = isset($button['onclick']) ? esc_attr($button['onclick']) : '';
|
135 |
+
?><button type="submit"
|
136 |
+
<?php echo $value ? ' value="' . $value . '"' : ''; ?>
|
137 |
+
<?php echo $name ? ' name="' . $name . '"' : ''; ?>
|
138 |
+
<?php echo $id ? ' id="' . $id . '"' : ''; ?>
|
139 |
+
class="wd-button <?php echo $class; ?>"
|
140 |
+
<?php echo $style ? ' style="' . $style . '"' : ''; ?>
|
141 |
+
<?php echo $onclick ? ' onclick="' . $onclick . '"' : ''; ?>
|
142 |
+
><?php echo $title; ?></button><?php
|
143 |
+
}
|
144 |
+
if ( !$single ) {
|
145 |
+
?>
|
146 |
+
</div>
|
147 |
+
<?php
|
148 |
+
}
|
149 |
+
return ob_get_clean();
|
150 |
+
}
|
151 |
+
|
152 |
+
/**
|
153 |
+
* Search.
|
154 |
+
*
|
155 |
+
* @param array $params
|
156 |
+
* @return string
|
157 |
+
*/
|
158 |
+
protected function search( $params = array() ) {
|
159 |
+
$search = WDW_S_Library::get('s', '');
|
160 |
+
ob_start();
|
161 |
+
?>
|
162 |
+
<p class="search-box">
|
163 |
+
<input name="s" value="<?php echo $search; ?>" type="search" onkeypress="return input_search(event, this)" />
|
164 |
+
<input class="button" value="<?php echo __('Search', WDS()->prefix) . ' ' . ( !empty( $params['search_item_name'] ) ? $params['search_item_name'] : '' ); ?>" type="button" onclick="search(this)" />
|
165 |
+
</p>
|
166 |
+
<?php
|
167 |
+
return ob_get_clean();
|
168 |
+
}
|
169 |
+
|
170 |
+
/**
|
171 |
+
* Pagination.
|
172 |
+
*
|
173 |
+
* @param $page_url
|
174 |
+
* @param $total
|
175 |
+
* @param int $items_per_page
|
176 |
+
*
|
177 |
+
* @return string
|
178 |
+
*/
|
179 |
+
protected function pagination($page_url, $total, $items_per_page = 20) {
|
180 |
+
$page_number = WDW_S_Library::get('paged', 1);
|
181 |
+
$search = WDW_S_Library::get('s', '');
|
182 |
+
$orderby = WDW_S_Library::get('orderby', '');
|
183 |
+
$order = WDW_S_Library::get('order', '');
|
184 |
+
$url_arg = array();
|
185 |
+
if( !empty($search) ) {
|
186 |
+
$url_arg['s'] = $search;
|
187 |
+
}
|
188 |
+
if( !empty($orderby) ) {
|
189 |
+
$url_arg['orderby'] = $orderby;
|
190 |
+
}
|
191 |
+
if( !empty($order) ) {
|
192 |
+
$url_arg['order'] = $order;
|
193 |
+
}
|
194 |
+
$page_url = add_query_arg($url_arg, $page_url);
|
195 |
+
|
196 |
+
if ( $total ) {
|
197 |
+
if ( $total % $items_per_page ) {
|
198 |
+
$pages_count = ($total - $total % $items_per_page) / $items_per_page + 1;
|
199 |
+
}
|
200 |
+
else {
|
201 |
+
$pages_count = ($total - $total % $items_per_page) / $items_per_page;
|
202 |
+
}
|
203 |
+
}
|
204 |
+
else {
|
205 |
+
$pages_count = 1;
|
206 |
+
}
|
207 |
+
ob_start();
|
208 |
+
?>
|
209 |
+
<div class="tablenav-pages">
|
210 |
+
<span class="displaying-num">
|
211 |
+
<?php printf(_n('%s item', '%s items', $total, WDS()->prefix), $total); ?>
|
212 |
+
</span>
|
213 |
+
<?php
|
214 |
+
if ( $total > $items_per_page ) {
|
215 |
+
?>
|
216 |
+
<span class="pagination-links" data-pages-count="<?php echo $pages_count; ?>">
|
217 |
+
<?php
|
218 |
+
if ( $page_number == 1 ) {
|
219 |
+
?>
|
220 |
+
<span class="tablenav-pages-navspan" aria-hidden="true">«</span>
|
221 |
+
<span class="tablenav-pages-navspan" aria-hidden="true">‹</span>
|
222 |
+
<?php
|
223 |
+
}
|
224 |
+
else {
|
225 |
+
?>
|
226 |
+
<a data-paged="<?php echo 1; ?>" href="<?php echo add_query_arg(array('paged' => 1), $page_url); ?>" class="wd-page first-page"><span class="screen-reader-text"><?php _e('First page', WDS()->prefix); ?></span><span aria-hidden="true">«</span></a>
|
227 |
+
<a data-paged="<?php echo ($page_number == 1 ? 1 : ($page_number - 1)); ?>" href="<?php echo add_query_arg(array('paged' => ($page_number == 1 ? 1 : ($page_number - 1))), $page_url); ?>" class="wd-page previous-page"><span class="screen-reader-text"><?php _e('Previous page', WDS()->prefix); ?></span><span aria-hidden="true">‹</span></a>
|
228 |
+
<?php
|
229 |
+
}
|
230 |
+
?>
|
231 |
+
<span class="paging-input">
|
232 |
+
<label for="current-page-selector" class="screen-reader-text"><?php _e('Current Page', WDS()->prefix); ?></label>
|
233 |
+
<input type="text" class="current-page" name="current_page" value="<?php echo $page_number; ?>" onkeypress="return input_pagination(event, this)" size="1" />
|
234 |
+
<span class="tablenav-paging-text">
|
235 |
+
<?php _e('of', WDS()->prefix); ?>
|
236 |
+
<span class="total-pages"><?php echo $pages_count; ?></span>
|
237 |
+
</span>
|
238 |
+
</span>
|
239 |
+
<?php
|
240 |
+
if ( $page_number >= $pages_count ) {
|
241 |
+
?>
|
242 |
+
<span class="tablenav-pages-navspan" aria-hidden="true">›</span>
|
243 |
+
<span class="tablenav-pages-navspan" aria-hidden="true">»</span>
|
244 |
+
<?php
|
245 |
+
}
|
246 |
+
else {
|
247 |
+
?>
|
248 |
+
<a data-paged="<?php echo ($page_number >= $pages_count ? $pages_count : ($page_number + 1)); ?>" href="<?php echo add_query_arg(array('paged' => ($page_number >= $pages_count ? $pages_count : ($page_number + 1))), $page_url); ?>" class="wd-page next-page"><span class="screen-reader-text"><?php _e('Next page', WDS()->prefix); ?></span><span aria-hidden="true">›</span></a>
|
249 |
+
<a data-paged="<?php echo $pages_count; ?>" href="<?php echo add_query_arg(array('paged' => $pages_count), $page_url); ?>" class="wd-page last-page"><span class="screen-reader-text"><?php _e('Last page', WDS()->prefix); ?></span><span aria-hidden="true">»</span></a>
|
250 |
+
<?php
|
251 |
+
}
|
252 |
+
?>
|
253 |
+
</span>
|
254 |
+
<?php
|
255 |
+
}
|
256 |
+
?>
|
257 |
+
</div>
|
258 |
+
<?php
|
259 |
+
|
260 |
+
return ob_get_clean();
|
261 |
+
}
|
262 |
+
|
263 |
+
/**
|
264 |
+
* Bulk actions list.
|
265 |
+
*
|
266 |
+
* @param $actions
|
267 |
+
* @param bool $select_all
|
268 |
+
* @param string $name
|
269 |
+
*
|
270 |
+
* @return string
|
271 |
+
*/
|
272 |
+
protected function bulk_actions($actions, $select_all = FALSE, $name = "bulk_action") {
|
273 |
+
ob_start();
|
274 |
+
?>
|
275 |
+
<div class="alignleft actions bulkactions">
|
276 |
+
<?php if ( $select_all ) { ?>
|
277 |
+
<span class="button wd-check-all" onclick="spider_check_all_items(event)">
|
278 |
+
<input type="checkbox" id="check_all_items" name="check_all_items" onclick="spider_check_all_items_checkbox(event)" />
|
279 |
+
<span><?php _e('Select All', WDS()->prefix); ?></span>
|
280 |
+
</span>
|
281 |
+
<?php } ?>
|
282 |
+
<label for="bulk-action-selector-top" class="screen-reader-text"><?php _e('Select bulk action', WDS()->prefix); ?></label>
|
283 |
+
<select name="<?php echo $name; ?>" id="bulk-action-selector-top">
|
284 |
+
<option value="-1"><?php _e('Bulk Actions', WDS()->prefix); ?></option>
|
285 |
+
<?php
|
286 |
+
foreach ( $actions as $key => $action ) {
|
287 |
+
?>
|
288 |
+
<option value="<?php echo $key; ?>"><?php echo $action['title']; ?></option>
|
289 |
+
<?php
|
290 |
+
}
|
291 |
+
?>
|
292 |
+
</select>
|
293 |
+
<input type="button" id="doaction" class="button action" onclick="wd_bulk_action('#bulk-action-selector-top')" value="<?php _e('Apply', WDS()->prefix); ?>" />
|
294 |
+
</div>
|
295 |
+
<?php
|
296 |
+
return ob_get_clean();
|
297 |
+
}
|
298 |
+
|
299 |
+
/**
|
300 |
+
* Filters.
|
301 |
+
*
|
302 |
+
* @param array $params
|
303 |
+
* @return string
|
304 |
+
*/
|
305 |
+
protected function filters( $params = array() ) {
|
306 |
+
ob_start();
|
307 |
+
if ( !empty($params['filters']) ) {
|
308 |
+
$filters = $params['filters'];
|
309 |
+
?>
|
310 |
+
<div class="alignleft actions">
|
311 |
+
<?php
|
312 |
+
foreach ( $filters as $filter_key => $filter_values ) {
|
313 |
+
$filter_by_key = 'filter-by-' . $filter_key;
|
314 |
+
?>
|
315 |
+
<label for="filter-by-<?php echo $filter_key ?>" class="screen-reader-text"><?php echo $filter_values['label']; ?></label>
|
316 |
+
<select class="wd-filter" name="filter[filter-by-<?php echo $filter_key ?>]" id="filter-by-<?php echo $filter_key ?>">
|
317 |
+
<?php
|
318 |
+
foreach ( $filter_values['items'] as $item_key => $item_value ) {
|
319 |
+
$selected = !empty(WDW_S_Library::get($filter_by_key, '') == $item_key) ? 'selected' : '';
|
320 |
+
?>
|
321 |
+
<option <?php echo $selected; ?> value="<?php echo $item_key ?>"><?php echo $item_value ?></option>
|
322 |
+
<?php
|
323 |
+
}
|
324 |
+
?>
|
325 |
+
</select>
|
326 |
+
<?php
|
327 |
+
}
|
328 |
+
?>
|
329 |
+
</div>
|
330 |
+
<?php
|
331 |
+
}
|
332 |
+
|
333 |
+
return ob_get_clean();
|
334 |
+
}
|
335 |
+
}
|
admin/views/{WDSViewSliders_wds.php → Sliders.php}
RENAMED
@@ -1,242 +1,202 @@
|
|
1 |
<?php
|
2 |
-
class WDSViewSliders_wds {
|
3 |
-
private $model;
|
4 |
-
public function __construct($model) {
|
5 |
-
$this->model = $model;
|
6 |
-
}
|
7 |
-
public function display() {
|
8 |
-
$rows_data = $this->model->get_rows_data();
|
9 |
-
$page_nav = $this->model->page_nav();
|
10 |
-
$search_value = ((isset($_POST['search_value'])) ? esc_html(stripslashes($_POST['search_value'])) : '');
|
11 |
-
$asc_or_desc = ((isset($_POST['asc_or_desc'])) ? esc_html(stripslashes($_POST['asc_or_desc'])) : 'asc');
|
12 |
-
$order_by = (isset($_POST['order_by']) ? esc_html(stripslashes($_POST['order_by'])) : 'id');
|
13 |
-
$order_class = 'manage-column column-title sorted ' . $asc_or_desc;
|
14 |
-
$ids_string = '';
|
15 |
-
$header_title = __('Sliders', WD_S_PREFIX);
|
16 |
-
$slider_button_array = array(
|
17 |
-
'publish_all' => __('Publish', WD_S_PREFIX),
|
18 |
-
'unpublish_all' => __('Unpublish', WD_S_PREFIX),
|
19 |
-
'delete_all' => __('Delete', WD_S_PREFIX),
|
20 |
-
'duplicate_all' => __('Duplicate', WD_S_PREFIX),
|
21 |
-
'export' => __('Export', WD_S_PREFIX),
|
22 |
-
'merge_sliders' => __('Merge', WD_S_PREFIX)
|
23 |
-
);
|
24 |
-
$slider_preview_link = $this->model->get_slide_preview_post();
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
#wpwrap {
|
31 |
-
background-color: #F1F1F1;
|
32 |
-
}
|
33 |
-
@media screen and (max-width: 640px) {
|
34 |
-
.buttons_div input {
|
35 |
-
width: 31%;
|
36 |
-
font-size: 10px;
|
37 |
-
}
|
38 |
-
.tablenav{
|
39 |
-
height:auto
|
40 |
-
}
|
41 |
-
#wpcontent {
|
42 |
-
margin-left: 40px !important
|
43 |
-
}
|
44 |
-
.alignleft {
|
45 |
-
display:none;
|
46 |
-
}
|
47 |
-
}
|
48 |
-
</style>
|
49 |
-
<?php
|
50 |
-
}
|
51 |
-
?>
|
52 |
-
<form class="wrap wds_form" id="sliders_form" method="post" action="admin.php?page=sliders_wds" style="width: 98%;" enctype="multipart/form-data">
|
53 |
-
<h1 class="hidden"></h1>
|
54 |
-
<?php wp_nonce_field('nonce_wd', 'nonce_wd'); ?>
|
55 |
-
<div class="wds_opacity_export" onclick="jQuery('.wds_opacity_export').hide();jQuery('.wds_exports').hide();"></div>
|
56 |
-
<div class="wds_exports">
|
57 |
-
<input type="checkbox" name="imagesexport" id="imagesexport" checked="checked" />
|
58 |
-
<label for="imagesexport"><?php _e('Check the box to export the images included within sliders', 'wds'); ?></label>
|
59 |
-
<a class="button-secondary wds_export" type="button" href="<?php echo add_query_arg(array('action' => 'WDSExport'), admin_url('admin-ajax.php')); ?>" onclick="wds_get_checked()"><?php _e('Export', 'wds'); ?></a>
|
60 |
-
<input type="button" class="button-secondary" onclick="jQuery('.wds_exports').hide();jQuery('.wds_opacity_export').hide(); return false;" value="<?php _e('Cancel', 'wds'); ?>" />
|
61 |
-
</div>
|
62 |
-
<div class="wds_opacity_merge" onclick="jQuery('.wds_opacity_merge').hide();jQuery('.wds_merge').hide();"></div>
|
63 |
-
<div class="wds_merge">
|
64 |
-
<select class="select_icon select_icon_320" style="width:200px" name="select_slider_merge" id="select_slider_merge" style="margin-bottom: 6px;">
|
65 |
-
<?php
|
66 |
-
foreach ( $rows_data as $row_data ) {
|
67 |
-
?>
|
68 |
-
<option value="<?php echo $row_data->id; ?>"><?php echo $row_data->name; ?></option>
|
69 |
-
<?php
|
70 |
-
}
|
71 |
-
?>
|
72 |
-
</select>
|
73 |
-
<input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'merge_sliders');" value="<?php _e('Merge', 'wds'); ?>" />
|
74 |
-
<input type="button" class="button-secondary" onclick="jQuery('.wds_merge').hide();jQuery('.wds_opacity_merge').hide(); return false;" value="<?php _e('Cancel', 'wds'); ?>" />
|
75 |
-
<p class="description"><?php _e('Select slider to use settings from.', 'wds'); ?></p>
|
76 |
-
</div>
|
77 |
-
<div>
|
78 |
-
<span class="slider-icon"></span>
|
79 |
-
<h2 class="wds_default">
|
80 |
-
<?php echo $header_title; ?>
|
81 |
-
<a href="" class="add-new-h2" onclick="spider_set_input_value('task', 'add'); spider_form_submit(event, 'sliders_form')"><?php _e('Add new', 'wds'); ?></a>
|
82 |
-
</h2>
|
83 |
-
</div>
|
84 |
-
<?php WDW_S_Library::search( __('Name', 'wds'), $search_value, 'sliders_form'); ?>
|
85 |
-
<div class="tablenav bottom buttons_div_left">
|
86 |
-
<span class="button non_selectable wds_check_all" onclick="spider_check_all_items()">
|
87 |
-
<input type="checkbox" id="check_all_items" name="check_all_items" onclick="spider_check_all_items_checkbox()" style="margin: 0; vertical-align: middle;" />
|
88 |
-
<span><?php _e('Select All', 'wds'); ?></span>
|
89 |
-
</span>
|
90 |
-
<select class="bulk_action">
|
91 |
-
<option value=""><?php _e('Bulk Actions', 'wds'); ?></option>
|
92 |
-
<?php
|
93 |
-
foreach ($slider_button_array as $key => $value) {
|
94 |
-
?>
|
95 |
-
<option value="<?php echo $key; ?>"><?php echo $value; ?></option>
|
96 |
-
<?php
|
97 |
-
}
|
98 |
-
?>
|
99 |
-
</select>
|
100 |
-
<input class="button action" type="button" title="<?php _e('Apply', 'wds'); ?>" onclick="if (!wds_bulk_actions('.bulk_action')) {return false}" value="<?php _e('Apply', 'wds'); ?>" />
|
101 |
-
<?php WDW_S_Library::html_page_nav($page_nav['total'], $page_nav['limit'], 'sliders_form'); ?>
|
102 |
-
</div>
|
103 |
-
<table class="wp-list-table widefat fixed pages media">
|
104 |
-
<thead>
|
105 |
-
<td class="manage-column column-cb check-column">
|
106 |
-
<input id="check_all" type="checkbox" onclick="spider_check_all(this)" />
|
107 |
-
</td>
|
108 |
-
<th class="column-primary sortable <?php if ($order_by == 'name') {echo $order_class;} ?>">
|
109 |
-
<a onclick="spider_set_input_value('task', '');
|
110 |
-
spider_set_input_value('order_by', 'name');
|
111 |
-
spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'name') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
|
112 |
-
spider_form_submit(event, 'sliders_form')" href="">
|
113 |
-
<span><?php _e('Slider', 'wds'); ?></span><span class="sorting-indicator"></span>
|
114 |
-
</a>
|
115 |
-
</th>
|
116 |
-
<th class="wd-center col-slides-count"><?php _e('Slides count', 'wds'); ?></th>
|
117 |
-
<th class="wd-center col-shortcode"><?php _e('Shortcode', 'wds'); ?></th>
|
118 |
-
<th class="wd-center col-function"><?php _e('PHP function', 'wds'); ?></th>
|
119 |
-
</thead>
|
120 |
-
<tbody id="tbody_arr">
|
121 |
-
<?php
|
122 |
-
if ($rows_data) {
|
123 |
-
foreach ($rows_data as $row_data) {
|
124 |
-
$alternate = (!isset($alternate) || $alternate == '') ? 'class="alternate"' : '';
|
125 |
-
$published = (($row_data->published) ? 'unpublish' : 'publish');
|
126 |
-
$prev_img_url = $this->model->get_slider_prev_img($row_data->id);
|
127 |
-
$slides_count = $this->model->get_slides_count($row_data->id);
|
128 |
-
?>
|
129 |
-
<tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
|
130 |
-
<th class="check-column"><input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" onclick="spider_check_all(this)" type="checkbox" /></th>
|
131 |
-
<td class="column-primary column-title" data-colname="<?php _e('Slider', WD_S_PREFIX); ?>">
|
132 |
-
<strong class="has-media-icon">
|
133 |
-
<a onclick="spider_set_input_value('task', 'edit');
|
134 |
-
spider_set_input_value('page_number', '1');
|
135 |
-
spider_set_input_value('search_value', '');
|
136 |
-
spider_set_input_value('search_or_not', '');
|
137 |
-
spider_set_input_value('asc_or_desc', 'asc');
|
138 |
-
spider_set_input_value('order_by', 'order');
|
139 |
-
spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
|
140 |
-
spider_form_submit(event, 'sliders_form')" href="" title="<?php _e('Edit', WD_S_PREFIX); ?>">
|
141 |
-
<span class="media-icon image-icon">
|
142 |
-
<img class="preview-image" title="<?php echo $row_data->name; ?>" src="<?php echo add_query_arg('date', date('Y-m-y H:i:s'), $prev_img_url); ?>" width="60" height="60" />
|
143 |
-
</span>
|
144 |
-
<?php echo $row_data->name; ?>
|
145 |
-
</a>
|
146 |
-
<?php
|
147 |
-
if ( !$row_data->published ) {
|
148 |
-
?>
|
149 |
-
—
|
150 |
-
<span class="post-state"><?php _e('Unpublished', WD_S_PREFIX); ?></span>
|
151 |
-
<?php
|
152 |
-
}
|
153 |
-
?>
|
154 |
-
</strong>
|
155 |
-
<div class="row-actions">
|
156 |
-
<span>
|
157 |
-
<a onclick="spider_set_input_value('task', 'edit');
|
158 |
-
spider_set_input_value('page_number', '1');
|
159 |
-
spider_set_input_value('search_value', '');
|
160 |
-
spider_set_input_value('search_or_not', '');
|
161 |
-
spider_set_input_value('asc_or_desc', 'asc');
|
162 |
-
spider_set_input_value('order_by', 'order');
|
163 |
-
spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
|
164 |
-
spider_form_submit(event, 'sliders_form')" href="" title="<?php _e('Edit', WD_S_PREFIX); ?>"><?php _e('Edit', WD_S_PREFIX); ?>
|
165 |
-
</a>
|
166 |
-
|
|
167 |
-
</span>
|
168 |
-
<span>
|
169 |
-
<a onclick="spider_set_input_value('task', 'duplicate'); spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');spider_form_submit(event, 'sliders_form');" href=""><?php _e('Duplicate', WD_S_PREFIX); ?></a>
|
170 |
-
|
|
171 |
-
</span>
|
172 |
-
<span>
|
173 |
-
<a onclick="spider_set_input_value('task', '<?php echo $published; ?>');spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');spider_form_submit(event, 'sliders_form')" href=""><?php echo ($row_data->published ? __('Unpublish', WD_S_PREFIX) : __('Publish', WD_S_PREFIX)); ?></a>
|
174 |
-
|
|
175 |
-
</span>
|
176 |
-
<span class="trash">
|
177 |
-
<a onclick="if (confirm('<?php echo addslashes(__('Do you want to delete selected item?', WD_S_PREFIX)); ?>')) {spider_set_input_value('task', 'delete'); spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');spider_form_submit(event, 'sliders_form')} else {return false;}" href=""><?php _e('Delete', WD_S_PREFIX); ?></a>
|
178 |
-
|
|
179 |
-
</span>
|
180 |
-
<span>
|
181 |
-
<a href="<?php echo add_query_arg( array('slider_id' => $row_data->id), $slider_preview_link ); ?>" target="_blank"><?php _e('Preview', WD_S_PREFIX); ?></a>
|
182 |
-
</span>
|
183 |
-
</div>
|
184 |
-
<button class="toggle-row" type="button">
|
185 |
-
<span class="screen-reader-text"><?php _e('Show more details', WD_S_PREFIX); ?></span>
|
186 |
-
</button>
|
187 |
-
</td>
|
188 |
-
<td data-colname="<?php _e('Slides count', WD_S_PREFIX); ?>"><?php echo $slides_count; ?></td>
|
189 |
-
<td data-colname="<?php _e('Shortcode', WD_S_PREFIX); ?>">
|
190 |
-
<input type="text" value='[wds id="<?php echo $row_data->id; ?>"]' onclick="spider_select_value(this)" size="11" readonly="readonly" />
|
191 |
-
</td>
|
192 |
-
<td data-colname="<?php _e('PHP function', WD_S_PREFIX); ?>">
|
193 |
-
<input type="text" value="<?php wd_slider(<?php echo $row_data->id; ?>); ?>" onclick="spider_select_value(this)" size="17" readonly="readonly" />
|
194 |
-
</td>
|
195 |
-
</tr>
|
196 |
-
<?php
|
197 |
-
$ids_string .= $row_data->id . ',';
|
198 |
-
}
|
199 |
-
}
|
200 |
-
else {
|
201 |
-
echo WDW_S_Library::no_items($header_title);
|
202 |
-
}
|
203 |
-
?>
|
204 |
-
</tbody>
|
205 |
-
</table>
|
206 |
-
<input id="task" name="task" type="hidden" value="" />
|
207 |
-
<input id="current_id" name="current_id" type="hidden" value="" />
|
208 |
-
<input id="ids_string" name="ids_string" type="hidden" value="<?php echo $ids_string; ?>" />
|
209 |
-
<input id="asc_or_desc" name="asc_or_desc" type="hidden" value="asc" />
|
210 |
-
<input id="order_by" name="order_by" type="hidden" value="<?php echo $order_by; ?>" />
|
211 |
-
</form>
|
212 |
-
<?php
|
213 |
-
}
|
214 |
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
// Get options values.
|
239 |
-
$options_values = WDW_S_Library::get_values();
|
240 |
$aligns = $options_values['aligns'];
|
241 |
$border_styles = $options_values['border_styles'];
|
242 |
$button_styles = $options_values['button_styles'];
|
@@ -253,46 +213,50 @@ class WDSViewSliders_wds {
|
|
253 |
$layer_callbacks = $options_values['layer_callbacks'];
|
254 |
$text_alignments = $options_values['text_alignments'];
|
255 |
$built_in_watermark_fonts = $options_values['built_in_watermark_fonts'];
|
256 |
-
|
257 |
$free_effects = array('none', 'fade', 'sliceH', 'fan', 'scaleIn');
|
258 |
-
$fv = (
|
|
|
|
|
|
|
|
|
259 |
?>
|
260 |
<div class="spider_message_cont"></div>
|
261 |
<div class="spider_load">
|
262 |
<div class="spider_load_cont"></div>
|
263 |
-
<div class="spider_load_icon"><img class="spider_ajax_loading" src="<?php echo
|
264 |
</div>
|
265 |
<form class="wrap wds_form wds-check-change_form js" method="post" id="sliders_form" action="admin.php?page=sliders_wds">
|
266 |
<h1 class="hidden"></h1>
|
267 |
-
<?php wp_nonce_field(
|
268 |
<span class="slider-icon"></span>
|
269 |
<h2 class="wds_default"><?php echo $page_title; ?></h2>
|
270 |
<div class="buttons_conteiner">
|
271 |
-
<h1 class="wp-heading-inline"><?php _e('Slider Title',
|
272 |
-
<input type="text" id="name" name="name" value="<?php echo $row->name; ?>" size="20" class="wds_requried" data-name="<?php _e('Slider title',
|
273 |
<div class="wds_buttons">
|
274 |
<button class="button button-primary button-large" onclick="spider_set_input_value('task', 'apply'); if(!wds_spider_ajax_save('sliders_form', event)) return false;">
|
275 |
<?php echo $save_btn_name; ?>
|
276 |
</button>
|
277 |
-
<button class="button button-large" <?php echo ($id == 0) ? 'disabled="disabled"' : 'onclick="window.open(\''. add_query_arg( array('slider_id' => $id), $slider_preview_link ) .'\', \'_blank\'); return false;"'; ?>><?php _e('Preview',
|
278 |
-
<button class="button button-secondary button-large wd-hidden reset-all-settings" onclick="wds_reset(event); return false;"><?php _e('Reset all settings',
|
279 |
</div>
|
280 |
</div>
|
281 |
<div>
|
282 |
<div class="tab_conteiner">
|
283 |
<div class="tab_button_wrap slides_tab_button_wrap" onclick="wds_change_tab(this, 'wds_slides_box')" >
|
284 |
<a class="wds_button-secondary wds_slides" href="#">
|
285 |
-
<span tab_type="slides" class="wds_tab_label"><span class="dashicons dashicons-format-gallery"></span><?php _e('Slides',
|
286 |
</a>
|
287 |
</div>
|
288 |
<div class="tab_button_wrap settings_tab_button_wrap" onclick="wds_change_tab(this, 'wds_settings_box')">
|
289 |
<a class="wds_button-secondary wds_settings" href="#">
|
290 |
-
<span tab_type="settings" class="wds_tab_label"><span class="dashicons dashicons-admin-generic"></span><?php _e('Settings',
|
291 |
</a>
|
292 |
</div>
|
293 |
<div class="tab_button_wrap howto_tab_button_wrap <?php echo (!$row->id) ? 'hide' : ''; ?>" onclick="wds_change_tab(this, 'wds_howto_box')">
|
294 |
<a class="wds_button-secondary wds_howto" href="#">
|
295 |
-
<span tab_type="howto" class="wds_tab_label"><span class="dashicons dashicons-editor-help"></span><?php _e('How to use',
|
296 |
</a>
|
297 |
</div>
|
298 |
</div>
|
@@ -303,31 +267,31 @@ class WDSViewSliders_wds {
|
|
303 |
<div class="wds_menu_icon" onclick="jQuery('.wds_nav_tabs ul').slideToggle(500);"></div>
|
304 |
<ul>
|
305 |
<li tab_type="global" onclick="wds_change_nav(this, 'wds_nav_global_box')">
|
306 |
-
<a href="#"><?php _e('Global',
|
307 |
</li>
|
308 |
<li tab_type="carousel" onclick="wds_change_nav(this, 'wds_nav_carousel_box')">
|
309 |
-
<a href="#"><?php _e('Carousel',
|
310 |
</li>
|
311 |
<li tab_type="navigation" onclick="wds_change_nav(this, 'wds_nav_navigation_box')" >
|
312 |
-
<a href="#"><?php _e('Navigation',
|
313 |
</li>
|
314 |
<li tab_type="bullets" onclick="wds_change_nav(this, 'wds_nav_bullets_box')" >
|
315 |
-
<a href="#"><?php _e('Bullets',
|
316 |
</li>
|
317 |
<li tab_type="filmstrip" onclick="wds_change_nav(this, 'wds_nav_filmstrip_box')" >
|
318 |
-
<a href="#"><?php _e('Filmstrip',
|
319 |
</li>
|
320 |
<li tab_type="timer_bar" onclick="wds_change_nav(this, 'wds_nav_timer_bar_box')" >
|
321 |
-
<a href="#"><?php _e('Timer bar',
|
322 |
</li>
|
323 |
<li tab_type="watermark" onclick="wds_change_nav(this, 'wds_nav_watermark_box')" >
|
324 |
-
<a href="#"><?php _e('Watermark',
|
325 |
</li>
|
326 |
<li tab_type="css" onclick="wds_change_nav(this, 'wds_nav_css_box')" >
|
327 |
-
<a href="#"><?php _e('CSS',
|
328 |
</li>
|
329 |
<li tab_type="callbacks" onclick="wds_change_nav(this, 'wds_nav_callbacks_box')" >
|
330 |
-
<a href="#"><?php _e('Slider Callbacks',
|
331 |
</li>
|
332 |
</ul>
|
333 |
</div>
|
@@ -339,68 +303,68 @@ class WDSViewSliders_wds {
|
|
339 |
<div class="wd-box-content">
|
340 |
<span class="wd-group">
|
341 |
<input type="radio" onclick="hide_dimmension_ratio()" id="full_width2" name="full_width" <?php echo (($row->full_width == '2' || $row->full_width == '') ? 'checked="checked"' : ''); ?> value="2" />
|
342 |
-
<label <?php echo (($row->full_width == 2) ? 'class="selected_color"' : ''); ?> for="full_width2"><?php _e('Boxed layout',
|
343 |
<input type="radio" onclick="hide_dimmension_ratio()" id="full_width1" name="full_width" <?php echo (($row->full_width == '1') ? 'checked="checked"' : ''); ?> value="1" />
|
344 |
-
<label <?php echo ($row->full_width == 1) ? 'class="selected_color"' : ''; ?> for="full_width1"><?php _e('Full width',
|
345 |
<input type="radio" onclick="hide_dimmension_ratio()" id="full_width0" name="full_width" <?php echo (($row->full_width == '0') ? 'checked="checked"' : ''); ?> value="0" />
|
346 |
-
<label <?php echo ($row->full_width == 0) ? 'class="selected_color"' : ''; ?> for="full_width0"><?php _e('Custom',
|
347 |
-
<p class="description full_width_desc" id="full_width2_desc"><?php _e('With Boxed layout, the slideshow will take the 100% width of its parent container.',
|
348 |
-
<p class="description full_width_desc" id="full_width1_desc"><?php _e('The slider will take the full width of the page. Height will be applied based on the ratio of dimensions or auto height option.',
|
349 |
-
<p class="description full_width_desc" id="full_width0_desc"><?php _e('This option lets you specify custom dimensions for your slider.',
|
350 |
</span>
|
351 |
<span class="wd-group" id="auto_height">
|
352 |
-
<label class="wd-label"><?php _e('Auto height',
|
353 |
<input type="radio" onclick="hide_dimmension_ratio()" id="auto_height1" name="auto_height" <?php echo (($row->auto_height) ? 'checked="checked"' : ''); ?> value="1" />
|
354 |
-
<label <?php echo (($row->auto_height) ? 'class="selected_color"' : ''); ?> for="auto_height1"><?php _e('Yes',
|
355 |
<input type="radio" onclick="hide_dimmension_ratio()" id="auto_height0" name="auto_height" <?php echo (($row->auto_height) ? '' : 'checked="checked"'); ?> value="0" />
|
356 |
-
<label <?php echo ($row->auto_height) ? '' : 'class="selected_color"'; ?> for="auto_height0"><?php _e('No',
|
357 |
-
<p class="description"><?php _e('The slider will take the full height of the screen.',
|
358 |
</span>
|
359 |
<span class="wd-group" id="dimensions">
|
360 |
-
<label class="wd-label"><?php _e('Dimensions',
|
361 |
<input type="text" name="width" id="width" value="<?php echo $row->width; ?>" class="spider_int_input" onchange="wds_whr('width')" onkeypress="return spider_check_isnum(event)" /> x
|
362 |
<input type="text" name="height" id="height" value="<?php echo $row->height; ?>" class="spider_int_input" onchange="wds_whr('height')" onkeypress="return spider_check_isnum(event)" /> px
|
363 |
-
<input type="text" name="ratio" id="ratio" value="" class="spider_int_input" onchange="wds_whr('ratio')" onkeypress="return spider_check_isnum(event)" title = "<?php _e('The slider height will be applied based on the ratio of dimensions.',
|
364 |
-
<p class="description"><?php _e('Maximum width and height for slider.',
|
365 |
</span>
|
366 |
<span class="wd-group">
|
367 |
-
<label class="wd-label" for="effect"><?php _e('Effect',
|
368 |
<select class="select_icon select_icon_320" name="effect" id="effect">
|
369 |
<?php
|
370 |
foreach ($effects as $key => $effect) {
|
371 |
?>
|
372 |
-
<option value="<?php echo $key; ?>" <?php echo (
|
373 |
<?php
|
374 |
}
|
375 |
?>
|
376 |
</select>
|
377 |
-
<p class="description"><?php _e('Select the effect which will be applied when navigating through slides.',
|
378 |
</span>
|
379 |
<span class="wd-group">
|
380 |
-
<label class="wd-label" for="effect_duration"><?php _e('Еffect duration',
|
381 |
<input type="text" id="effect_duration" name="effect_duration" value="<?php echo $row->effect_duration; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> ms
|
382 |
-
<p class="description"><?php _e('Set the duration for the effect.',
|
383 |
</span>
|
384 |
<span class="wd-group">
|
385 |
-
<label class="wd-label" for="hide_on_mobile"><?php _e('Hide on small screens',
|
386 |
<input type="text" id="hide_on_mobile" name="hide_on_mobile" value="<?php echo $row->hide_on_mobile; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> px
|
387 |
-
<p class="description"><?php _e('Hide slider when screen size is smaller than this value.',
|
388 |
</span>
|
389 |
<span class="wd-group">
|
390 |
-
<label class="wd-label" for="full_width_for_mobile"><?php _e('Full width on small screens',
|
391 |
<input type="text" id="full_width_for_mobile" name="full_width_for_mobile" value="<?php echo $row->full_width_for_mobile; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> px
|
392 |
-
<p class="description"><?php _e('The slider will have full width when screen size is smaller than this value.',
|
393 |
</span>
|
394 |
<span class="wd-group" id="tr_smart_crop">
|
395 |
-
<label class="wd-label"><?php _e('Smart Crop',
|
396 |
<input onClick="wds_enable_disable('', 'tr_crop_pos', 'smart_crop1')" type="radio" id="smart_crop1" name="smart_crop" <?php echo (($row->smart_crop) ? 'checked="checked"' : ''); ?> value="1" />
|
397 |
-
<label <?php echo (($row->smart_crop) ? 'class="selected_color"' : ''); ?> for="smart_crop1"><?php _e('Yes',
|
398 |
<input onClick="wds_enable_disable('none', 'tr_crop_pos', 'smart_crop0')" type="radio" id="smart_crop0" name="smart_crop" <?php echo (($row->smart_crop) ? '' : 'checked="checked"'); ?> value="0" />
|
399 |
-
<label <?php echo ((!$row->smart_crop) ? 'class="selected_color"' : ''); ?> for="smart_crop0"><?php _e('No',
|
400 |
<p class="description"></p>
|
401 |
</span>
|
402 |
<span class="wd-group" id="tr_crop_pos">
|
403 |
-
<label class="wd-label" for="smart_crop"><?php _e('Crop Image Position',
|
404 |
<table class="wds_position_table">
|
405 |
<tbody>
|
406 |
<tr>
|
@@ -422,59 +386,59 @@ class WDSViewSliders_wds {
|
|
422 |
</table>
|
423 |
</span>
|
424 |
<span class="wd-group">
|
425 |
-
<label class="wd-label"><?php _e('Fixed background:',
|
426 |
<input type="radio" id="fixed_bg1" name="fixed_bg" <?php echo (($row->fixed_bg) ? 'checked="checked"' : ''); ?> value="1" />
|
427 |
-
<label <?php echo (($row->fixed_bg) ? 'class="selected_color"' : ''); ?> for="fixed_bg1"><?php _e('Yes',
|
428 |
<input type="radio" id="fixed_bg0" name="fixed_bg" <?php echo (($row->fixed_bg) ? '' : 'checked="checked"'); ?> value="0" />
|
429 |
-
<label <?php echo ((!$row->fixed_bg) ? 'class="selected_color"' : ''); ?> for="fixed_bg0"><?php _e('No',
|
430 |
<p class="description"></p>
|
431 |
</span>
|
432 |
<span class="wd-group">
|
433 |
-
<label class="wd-label"><?php _e('Slides order direction:',
|
434 |
<input type="radio" id="order_dir1" name="order_dir" <?php echo checked('asc', $row->order_dir); ?> value="asc" />
|
435 |
-
<label <?php echo (($row->order_dir == 'asc') ? 'class="selected_color"' : ''); ?> for="order_dir1"><?php _e('Ascending',
|
436 |
<input type="radio" id="order_dir0" name="order_dir" <?php checked('desc', $row->order_dir); ?> value="desc" />
|
437 |
-
<label <?php echo (($row->order_dir == 'desc') ? 'class="selected_color"' : ''); ?> for="order_dir0"><?php _e('Descending',
|
438 |
<p class="description"></p>
|
439 |
</span>
|
440 |
-
<span class="wd-group<?php echo (
|
441 |
-
<label class="wd-label"><?php _e('Parallax Effect',
|
442 |
-
<input <?php echo (
|
443 |
-
<label <?php echo (($row->parallax_effect) ? 'class="selected_color"' : ''); ?> for="parallax_effect1"><?php _e('Yes',
|
444 |
-
<input <?php echo (
|
445 |
-
<label <?php echo (($row->parallax_effect) ? '' : 'class="selected_color"'); ?> for="parallax_effect0"><?php _e('No',
|
446 |
-
<p class="description"><?php _e('The direction of the movement, as well as the layer moving pace depend on the z-index value.',
|
447 |
</span>
|
448 |
<span class="wd-group">
|
449 |
-
<label class="wd-label"><?php _e('Smart Load',
|
450 |
<input type="radio" id="preload_images1" name="preload_images" <?php echo (($row->preload_images) ? 'checked="checked"' : ''); ?> value="1" />
|
451 |
-
<label <?php echo (($row->preload_images) ? 'class="selected_color"' : ''); ?> for="preload_images1"><?php _e('Yes',
|
452 |
<input type="radio" id="preload_images0" name="preload_images" <?php echo (($row->preload_images) ? '' : 'checked="checked"'); ?> value="0" />
|
453 |
-
<label <?php echo (($row->preload_images) ? '' : 'class="selected_color"'); ?> for="preload_images0"><?php _e('No',
|
454 |
-
<p class="description"><?php _e('Turn this option on to have faster loading for the first few images and process the rest meanwhile.',
|
455 |
</span>
|
456 |
<span class="wd-group">
|
457 |
-
<label class="wd-label"><?php _e('Right click protection',
|
458 |
<input type="radio" name="image_right_click" id="image_right_click_1" value="1" <?php if ($row->image_right_click) echo 'checked="checked"'; ?> />
|
459 |
-
<label <?php echo $row->image_right_click ? 'class="selected_color"' : ''; ?> for="image_right_click_1"><?php _e('Yes',
|
460 |
<input type="radio" name="image_right_click" id="image_right_click_0" value="0" <?php if (!$row->image_right_click) echo 'checked="checked"'; ?> />
|
461 |
-
<label <?php echo $row->image_right_click ? '' : 'class="selected_color"'; ?> for="image_right_click_0"><?php _e('No',
|
462 |
-
<p class="description"><?php _e('Disable right-click on slider images.',
|
463 |
</span>
|
464 |
-
<span class="wd-group<?php echo (
|
465 |
-
<label class="wd-label"><?php _e('Layer out on next',
|
466 |
-
<input <?php echo (
|
467 |
-
<label <?php echo $row->layer_out_next ? 'class="selected_color"' : ''; ?> for="layer_out_next_1"><?php _e('Yes',
|
468 |
-
<input <?php echo (
|
469 |
-
<label <?php echo $row->layer_out_next ? '' : 'class="selected_color"'; ?> for="layer_out_next_0"><?php _e('No',
|
470 |
-
<p class="description"><?php _e('Enable this option to have the layer effect out regardless of the timing between the hit to the next slider.',
|
471 |
</span>
|
472 |
<span class="wd-group">
|
473 |
-
<label class="wd-label"><?php _e('Published',
|
474 |
<input type="radio" id="published1" name="published" <?php echo (($row->published) ? 'checked="checked"' : ''); ?> value="1" />
|
475 |
-
<label <?php echo (($row->published) ? 'class="selected_color"' : ''); ?> for="published1"><?php _e('Yes',
|
476 |
<input type="radio" id="published0" name="published" <?php echo (($row->published) ? '' : 'checked="checked"'); ?> value="0" />
|
477 |
-
<label <?php echo (($row->published) ? '' : 'class="selected_color"'); ?> for="published0"><?php _e('No',
|
478 |
<p class="description"></p>
|
479 |
</span>
|
480 |
</div>
|
@@ -484,71 +448,71 @@ class WDSViewSliders_wds {
|
|
484 |
<div class="wd-box-section">
|
485 |
<div class="wd-box-content">
|
486 |
<span class="wd-group">
|
487 |
-
<label class="wd-label"><?php _e('Autoplay',
|
488 |
<input type="radio" id="autoplay1" name="autoplay" <?php echo (($row->autoplay) ? 'checked="checked"' : ''); ?> value="1" />
|
489 |
-
<label <?php echo (($row->autoplay) ? 'class="selected_color"' : ''); ?> for="autoplay1"><?php _e('Yes',
|
490 |
<input type="radio" id="autoplay0" name="autoplay" <?php echo (($row->autoplay) ? '' : 'checked="checked"'); ?> value="0" />
|
491 |
-
<label <?php echo (($row->autoplay) ? '' : 'class="selected_color"'); ?> for="autoplay0"><?php _e('No',
|
492 |
-
<p class="description"><?php _e('Enable this option to autoplay the slider.',
|
493 |
</span>
|
494 |
<span class="wd-group">
|
495 |
-
<label class="wd-label" for="time_intervval"><?php _e('Time Interval',
|
496 |
<input type="text" id="time_intervval" name="time_intervval" value="<?php echo $row->time_intervval; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> sec.
|
497 |
-
<p class="description"><?php _e('Set the time interval between the slides when autoplay is on.',
|
498 |
</span>
|
499 |
<span class="wd-group">
|
500 |
-
<label class="wd-label"><?php _e('Enable loop',
|
501 |
<input type="radio" id="slider_loop1" name="slider_loop" <?php echo (($row->slider_loop) ? 'checked="checked"' : ''); ?> value="1" />
|
502 |
-
<label <?php echo (($row->slider_loop) ? 'class="selected_color"' : ''); ?> for="slider_loop1"><?php _e('Yes',
|
503 |
<input type="radio" id="slider_loop0" name="slider_loop" <?php echo (($row->slider_loop) ? '' : 'checked="checked"'); ?> value="0" />
|
504 |
-
<label <?php echo (($row->slider_loop) ? '' : 'class="selected_color"'); ?> for="slider_loop0"><?php _e('No',
|
505 |
<p class="description"></p>
|
506 |
</span>
|
507 |
<span class="wd-group">
|
508 |
-
<label class="wd-label"><?php _e('Shuffle',
|
509 |
<input type="radio" id="shuffle1" name="shuffle" <?php echo (($row->shuffle) ? 'checked="checked"' : ''); ?> value="1" />
|
510 |
-
<label <?php echo (($row->shuffle) ? 'class="selected_color"' : ''); ?> for="shuffle1"><?php _e('Yes',
|
511 |
<input type="radio" id="shuffle0" name="shuffle" <?php echo (($row->shuffle) ? '' : 'checked="checked"'); ?> value="0" />
|
512 |
-
<label <?php echo (($row->shuffle) ? '' : 'class="selected_color"'); ?> for="shuffle0"><?php _e('No',
|
513 |
-
<p class="description"><?php _e('Enable this setting to have the slides change in random order during autoplay.',
|
514 |
</span>
|
515 |
<span class="wd-group">
|
516 |
-
<label class="wd-label"><?php _e('Two way slideshow',
|
517 |
<input type="radio" id="twoway_slideshow1" name="twoway_slideshow" <?php echo (($row->twoway_slideshow) ? 'checked="checked"' : ''); ?> value="1" />
|
518 |
-
<label <?php echo (($row->twoway_slideshow) ? 'class="selected_color"' : ''); ?> for="twoway_slideshow1"><?php _e('Yes',
|
519 |
<input type="radio" id="twoway_slideshow0" name="twoway_slideshow" <?php echo (($row->twoway_slideshow) ? '' : 'checked="checked"'); ?> value="0" />
|
520 |
-
<label <?php echo (($row->twoway_slideshow) ? '' : 'class="selected_color"'); ?> for="twoway_slideshow0"><?php _e('No',
|
521 |
-
<p class="description"><?php _e('If the user switches to previous slide, the slideshow starts to go backwards during autoplay.',
|
522 |
</span>
|
523 |
<span class="wd-group">
|
524 |
-
<label class="wd-label"><?php _e('Stop on hover',
|
525 |
<input type="radio" id="stop_animation1" name="stop_animation" <?php echo (($row->stop_animation) ? 'checked="checked"' : ''); ?> value="1" />
|
526 |
-
<label <?php echo (($row->stop_animation) ? 'class="selected_color"' : ''); ?> for="stop_animation1"><?php _e('Yes',
|
527 |
<input type="radio" id="stop_animation0" name="stop_animation" <?php echo (($row->stop_animation) ? '' : 'checked="checked"'); ?> value="0" />
|
528 |
-
<label <?php echo (($row->stop_animation) ? '' : 'class="selected_color"'); ?> for="stop_animation0"><?php _e('No',
|
529 |
-
<p class="description"><?php _e('The option works when autoplay is on.',
|
530 |
</span>
|
531 |
<span class="wd-group">
|
532 |
-
<label class="wd-label" for="start_slide_num"><?php _e('Start with slide',
|
533 |
<input type="text" name="start_slide_num" id="start_slide_num" value="<?php echo $row->start_slide_num; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" />
|
534 |
-
<p class="description"><?php _e('The slider will start from the specified slide. Set the value to 0 for random.',
|
535 |
</span>
|
536 |
<span class="wd-group">
|
537 |
-
<label class="wd-label"><?php _e('Music',
|
538 |
<input type="radio" id="music1" name="music" <?php echo (($row->music) ? 'checked="checked"' : ''); ?> value="1" onClick="wds_enable_disable('', 'tr_music_url', 'music1')" />
|
539 |
-
<label <?php echo (($row->music) ? 'class="selected_color"' : ''); ?> for="music1"><?php _e('Yes',
|
540 |
<input type="radio" id="music0" name="music" <?php echo (($row->music) ? '' : 'checked="checked"'); ?> value="0" onClick="wds_enable_disable('none', 'tr_music_url', 'music0')" />
|
541 |
-
<label <?php echo (($row->music) ? '' : 'class="selected_color"'); ?> for="music0"><?php _e('No',
|
542 |
-
<p class="description"><?php _e('You can have music/audio track playback with the slider.',
|
543 |
</span>
|
544 |
<span class="wd-group" id="tr_music_url">
|
545 |
-
<label class="wd-label" for="music_url"><?php _e('Music url',
|
546 |
<input type="text" id="music_url" name="music_url" size="39" value="<?php echo $row->music_url; ?>" style="display:inline-block;" />
|
547 |
-
<input id="add_music_url" class="button button-secondary" type="button" onclick="wds_media_uploader('music', event, false); return false;" value="<?php _e('Add music',
|
548 |
-
<p class="description"><?php _e('Only .aac,.m4a,.f4a,.mp3,.ogg,.oga formats are supported.',
|
549 |
</span>
|
550 |
<span class="wd-group">
|
551 |
-
<label class="wd-label" for="align"><?php _e('Slider alignment',
|
552 |
<select class="select_icon select_icon_320" name="align" id="align">
|
553 |
<?php
|
554 |
foreach ($aligns as $key => $align) {
|
@@ -558,16 +522,16 @@ class WDSViewSliders_wds {
|
|
558 |
}
|
559 |
?>
|
560 |
</select>
|
561 |
-
<p class="description"><?php _e('Set the alignment of the slider.',
|
562 |
</span>
|
563 |
<span class="wd-group">
|
564 |
-
<label class="wd-label" for="background_color"><?php _e('Background color',
|
565 |
<input type="text" name="background_color" id="background_color" value="<?php echo $row->background_color; ?>" class="color" onchange="jQuery('div[id^=\'wds_preview_image\']').css({backgroundColor: wds_hex_rgba(jQuery(this).val(), 100 - jQuery('#background_transparent').val())})" />
|
566 |
<input id="background_transparent" name="background_transparent" class="spider_int_input" type="text" onchange="jQuery('div[id^=\'wds_preview_image\']').css({backgroundColor: wds_hex_rgba(jQuery('#background_color').val(), 100 - jQuery(this).val())})" onkeypress="return spider_check_isnum(event)" value="<?php echo $row->background_transparent; ?>" /> %
|
567 |
-
<p class="description"><?php _e('Transparency Value must be between 0 and 100.',
|
568 |
</span>
|
569 |
<span class="wd-group">
|
570 |
-
<label class="wd-label" for="glb_border_width"><?php _e('Border',
|
571 |
<input type="text" name="glb_border_width" id="glb_border_width" value="<?php echo $row->glb_border_width; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> px
|
572 |
<select class="select_icon select_icon_320" name="glb_border_style" id="glb_border_style">
|
573 |
<?php
|
@@ -579,62 +543,62 @@ class WDSViewSliders_wds {
|
|
579 |
?>
|
580 |
</select>
|
581 |
<input type="text" name="glb_border_color" id="glb_border_color" value="<?php echo $row->glb_border_color; ?>" class="color" />
|
582 |
-
<p class="description"><?php _e('Set the border width, type and the color.',
|
583 |
</span>
|
584 |
<span class="wd-group">
|
585 |
-
<label class="wd-label" for="glb_border_radius"><?php _e('Border radius',
|
586 |
<input type="text" name="glb_border_radius" id="glb_border_radius" value="<?php echo $row->glb_border_radius; ?>" class="spider_char_input" />
|
587 |
-
<p class="description"><?php _e('Use CSS type values (e.g. 4px).',
|
588 |
</span>
|
589 |
<span class="wd-group">
|
590 |
-
<label class="wd-label" for="glb_margin"><?php _e('Margin',
|
591 |
<input type="text" name="glb_margin" id="glb_margin" value="<?php echo $row->glb_margin; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> px
|
592 |
-
<p class="description"><?php _e('Set a margin for the slider.',
|
593 |
</span>
|
594 |
<span class="wd-group">
|
595 |
-
<label class="wd-label" for="glb_box_shadow"><?php _e('Shadow',
|
596 |
<input type="text" name="glb_box_shadow" id="glb_box_shadow" value="<?php echo $row->glb_box_shadow; ?>" class="spider_box_input" />
|
597 |
-
<p class="description"><?php _e('Use CSS type values (e.g. 10px 10px 5px #888888).',
|
598 |
</span>
|
599 |
</div>
|
600 |
</div>
|
601 |
</div>
|
602 |
</div>
|
603 |
</div>
|
604 |
-
<div class="wds_nav_box wds_nav_carousel_box<?php echo (
|
605 |
<div class="wd-table">
|
606 |
<div class="wd-table-col wd-table-col-50 wd-table-col-left">
|
607 |
<div class="wd-box-section">
|
608 |
<div class="wd-box-content">
|
609 |
<?php
|
610 |
-
if (
|
611 |
-
echo WDW_S_Library::message_id(0, __('Carousel is disabled in free version.',
|
612 |
}
|
613 |
?>
|
614 |
<span class="wd-group">
|
615 |
-
<label class="wd-label"><?php _e('Carousel:',
|
616 |
-
<input <?php echo (
|
617 |
-
<label <?php echo (($row->carousel) ? 'class="selected_color"' : ''); ?> for="carousel1"><?php _e('Yes',
|
618 |
-
<input <?php echo (
|
619 |
-
<label <?php echo (($row->carousel) ? '' : 'class="selected_color"'); ?> for="carousel0"><?php _e('No',
|
620 |
-
<p class="description"><?php _e('Use this option to activate Carousel feature. Note, that the effects you have selected in Global settings for your slider will not apply.',
|
621 |
</span>
|
622 |
<span class="wd-group">
|
623 |
-
<label class="wd-label" for="carousel_image_counts"><?php _e('Number of images for carousel:',
|
624 |
-
<input <?php echo (
|
625 |
<p class="description"></p>
|
626 |
</span>
|
627 |
<span class="wd-group">
|
628 |
-
<label class="wd-label" for="carousel_image_parameters"><?php _e('Carousel image ratio:',
|
629 |
-
<input <?php echo (
|
630 |
-
<p class="description"><?php _e('The value must be between 0 and 1.',
|
631 |
</span>
|
632 |
<span class="wd-group">
|
633 |
-
<label class="wd-label"><?php _e('Container fit:',
|
634 |
-
<input <?php echo (
|
635 |
-
<label <?php echo (($row->carousel_fit_containerWidth) ? 'class="selected_color"' : ''); ?> for="carousel_fit_containerWidth1"><?php _e('Yes',
|
636 |
-
<input <?php echo (
|
637 |
-
<label <?php echo (($row->carousel_fit_containerWidth) ? '' : 'class="selected_color"'); ?> for="carousel_fit_containerWidth0"><?php _e('No',
|
638 |
<p class="description"></p>
|
639 |
</span>
|
640 |
</div>
|
@@ -644,24 +608,24 @@ class WDSViewSliders_wds {
|
|
644 |
<div class="wd-box-section">
|
645 |
<div class="wd-box-content">
|
646 |
<span class="wd-group">
|
647 |
-
<label class="wd-label" for="carousel_width"><?php _e('Fixed width:',
|
648 |
-
<input <?php echo (
|
649 |
<p class="description"></p>
|
650 |
</span>
|
651 |
<span class="wd-group">
|
652 |
-
<label class="wd-label" for="carousel_degree"><?php _e('Background image angle:',
|
653 |
-
<input <?php echo (
|
654 |
<p class="description"></p>
|
655 |
</span>
|
656 |
<span class="wd-group">
|
657 |
-
<label class="wd-label" for="carousel_grayscale"><?php _e('Background image grayscale:',
|
658 |
-
<input <?php echo (
|
659 |
-
<p class="description"><?php _e('You can change the color scheme for background images to grayscale. Values must be between 0 to 100',
|
660 |
</span>
|
661 |
<span class="wd-group">
|
662 |
-
<label class="wd-label" for="carousel_transparency"><?php _e('Background image transparency:',
|
663 |
-
<input <?php echo (
|
664 |
-
<p class="description"><?php _e('You can set transparency level for background images. Values should be between 0 to 100',
|
665 |
</span>
|
666 |
</div>
|
667 |
</div>
|
@@ -674,69 +638,69 @@ class WDSViewSliders_wds {
|
|
674 |
<div class="wd-box-section">
|
675 |
<div class="wd-box-content">
|
676 |
<span class="wd-group">
|
677 |
-
<label class="wd-label"><?php _e('Next / Previous buttons:',
|
678 |
<input type="radio" name="prev_next_butt" id="prev_next_butt_1" value="1" <?php if ($row->prev_next_butt) echo 'checked="checked"'; ?> />
|
679 |
-
<label <?php echo $row->prev_next_butt ? 'class="selected_color"' : ''; ?> for="prev_next_butt_1"><?php _e('Yes',
|
680 |
<input type="radio" name="prev_next_butt" id="prev_next_butt_0" value="0" <?php if (!$row->prev_next_butt) echo 'checked="checked"'; ?> />
|
681 |
-
<label <?php echo $row->prev_next_butt ? '' : 'class="selected_color"'; ?> for="prev_next_butt_0"><?php _e('No',
|
682 |
-
<p class="description"><?php _e('Enable this option to display Previous and Next buttons.',
|
683 |
</span>
|
684 |
<span class="wd-group">
|
685 |
-
<label class="wd-label"><?php _e('Mouse swipe navigation:',
|
686 |
<input type="radio" name="mouse_swipe_nav" id="mouse_swipe_nav_1" value="1" <?php if ($row->mouse_swipe_nav) echo 'checked="checked"'; ?> />
|
687 |
-
<label <?php echo $row->mouse_swipe_nav ? 'class="selected_color"' : ''; ?> for="mouse_swipe_nav_1"><?php _e('Yes',
|
688 |
<input type="radio" name="mouse_swipe_nav" id="mouse_swipe_nav_0" value="0" <?php if (!$row->mouse_swipe_nav) echo 'checked="checked"'; ?> />
|
689 |
-
<label <?php echo $row->mouse_swipe_nav ? '' : 'class="selected_color"'; ?> for="mouse_swipe_nav_0"><?php _e('No',
|
690 |
<p class="description"></p>
|
691 |
</span>
|
692 |
<span class="wd-group">
|
693 |
-
<label class="wd-label"><?php _e('Touch swipe navigation:',
|
694 |
<input type="radio" name="touch_swipe_nav" id="touch_swipe_nav_1" value="1" <?php if ($row->touch_swipe_nav) echo 'checked="checked"'; ?> />
|
695 |
-
<label <?php echo $row->touch_swipe_nav ? 'class="selected_color"' : ''; ?> for="touch_swipe_nav_1"><?php _e('Yes',
|
696 |
<input type="radio" name="touch_swipe_nav" id="touch_swipe_nav_0" value="0" <?php if (!$row->touch_swipe_nav) echo 'checked="checked"'; ?> />
|
697 |
-
<label <?php echo $row->touch_swipe_nav ? '' : 'class="selected_color"'; ?> for="touch_swipe_nav_0"><?php _e('No',
|
698 |
<p class="description"></p>
|
699 |
</span>
|
700 |
<span class="wd-group">
|
701 |
-
<label class="wd-label"><?php _e('Mouse wheel navigation:',
|
702 |
<input type="radio" name="mouse_wheel_nav" id="mouse_wheel_nav_1" value="1" <?php if ($row->mouse_wheel_nav) echo 'checked="checked"'; ?> />
|
703 |
-
<label <?php echo $row->mouse_wheel_nav ? 'class="selected_color"' : ''; ?> for="mouse_wheel_nav_1"><?php _e('Yes',
|
704 |
<input type="radio" name="mouse_wheel_nav" id="mouse_wheel_nav_0" value="0" <?php if (!$row->mouse_wheel_nav) echo 'checked="checked"'; ?> />
|
705 |
-
<label <?php echo $row->mouse_wheel_nav ? '' : 'class="selected_color"'; ?> for="mouse_wheel_nav_0"><?php _e('No',
|
706 |
<p class="description"></p>
|
707 |
</span>
|
708 |
<span class="wd-group">
|
709 |
-
<label class="wd-label"><?php _e('Keyboard navigation:',
|
710 |
<input type="radio" name="keyboard_nav" id="keyboard_nav_1" value="1" <?php if ($row->keyboard_nav) echo 'checked="checked"'; ?> />
|
711 |
-
<label <?php echo $row->keyboard_nav ? 'class="selected_color"' : ''; ?> for="keyboard_nav_1"><?php _e('Yes',
|
712 |
<input type="radio" name="keyboard_nav" id="keyboard_nav_0" value="0" <?php if (!$row->keyboard_nav) echo 'checked="checked"'; ?> />
|
713 |
-
<label <?php echo $row->keyboard_nav ? '' : 'class="selected_color"'; ?> for="keyboard_nav_0"><?php _e('No',
|
714 |
<p class="description"></p>
|
715 |
</span>
|
716 |
<span class="wd-group">
|
717 |
-
<label class="wd-label"><?php _e('Show Navigation buttons:',
|
718 |
<input type="radio" name="navigation" id="navigation_1" value="hover" <?php if ($row->navigation == 'hover') echo 'checked="checked"'; ?> />
|
719 |
-
<label <?php echo $row->navigation == 'hover' ? 'class="selected_color"' : ''; ?> for="navigation_1"><?php _e('On hover',
|
720 |
<input type="radio" name="navigation" id="navigation_0" value="always" <?php if ($row->navigation == 'always' ) echo 'checked="checked"'; ?> />
|
721 |
-
<label <?php echo $row->navigation == 'always' ? 'class="selected_color"' : ''; ?> for="navigation_0"><?php _e('Always',
|
722 |
<p class="description"></p>
|
723 |
</span>
|
724 |
<span class="wd-group">
|
725 |
-
<label class="wd-label"><?php _e('Image for Next / Previous buttons:',
|
726 |
<input type="radio" name="rl_butt_img_or_not" id="rl_butt_img_or_not_our" value="our" <?php if ($row->rl_butt_img_or_not == 'our') echo 'checked="checked"'; ?> onClick="image_for_next_prev_butt('our')" />
|
727 |
-
<label <?php if ($row->rl_butt_img_or_not == 'our') echo 'class="selected_color"'; ?> for="rl_butt_img_or_not_our"><?php _e('Default',
|
728 |
<input type="radio" name="rl_butt_img_or_not" id="rl_butt_img_or_not_cust" value="custom" <?php if ($row->rl_butt_img_or_not == 'custom') echo 'checked="checked"'; ?> onClick="image_for_next_prev_butt('custom')" />
|
729 |
-
<label <?php if ($row->rl_butt_img_or_not == 'custom') echo 'class="selected_color"'; ?> for="rl_butt_img_or_not_cust"><?php _e('Custom',
|
730 |
<input type="radio" name="rl_butt_img_or_not" id="rl_butt_img_or_not_style" value="style" <?php if ($row->rl_butt_img_or_not == 'style') echo 'checked="checked"'; ?> onClick="image_for_next_prev_butt('style')" />
|
731 |
-
<label <?php if ($row->rl_butt_img_or_not == 'style') echo 'class="selected_color"'; ?> for="rl_butt_img_or_not_style"><?php _e('Styled',
|
732 |
<input type="hidden" id="right_butt_url" name="right_butt_url" value="<?php echo $row->right_butt_url; ?>" />
|
733 |
<input type="hidden" id="right_butt_hov_url" name="right_butt_hov_url" value="<?php echo $row->right_butt_hov_url; ?>" />
|
734 |
<input type="hidden" id="left_butt_url" name="left_butt_url" value="<?php echo $row->left_butt_url; ?>" />
|
735 |
<input type="hidden" id="left_butt_hov_url" name="left_butt_hov_url" value="<?php echo $row->left_butt_hov_url; ?>" />
|
736 |
-
<p class="description"><?php _e('You can select to use default navigation buttons or to upload custom icons.',
|
737 |
</span>
|
738 |
<span class="wd-group" id="right_left_butt_style">
|
739 |
-
<label class="wd-label" for="rl_butt_style"><?php _e('Next / Previous buttons style:',
|
740 |
<div style="display: table;">
|
741 |
<div style="display: table-cell; vertical-align: middle;">
|
742 |
<select class="select_icon select_icon_320" name="rl_butt_style" id="rl_butt_style" onchange="change_rl_butt_style(jQuery(this).val())">
|
@@ -754,22 +718,22 @@ class WDSViewSliders_wds {
|
|
754 |
<i id="wds_right_style" class="fa <?php echo $row->rl_butt_style; ?>-right" style="color: #<?php echo $row->butts_color; ?>; display: inline-block; font-size: 40px; width: 40px; height: 40px;"></i>
|
755 |
</div>
|
756 |
</div>
|
757 |
-
<p class="description"><?php _e('Choose the style of the button you prefer to have as navigation buttons.',
|
758 |
</span>
|
759 |
<span class="wd-group" id="right_butt_upl">
|
760 |
-
<label class="wd-label"><?php _e('Upload buttons images:',
|
761 |
<div style="display: table;">
|
762 |
<div style="display: table-cell; vertical-align: middle;" class="display_block">
|
763 |
<?php
|
764 |
if (!$spider_uploader) {
|
765 |
?>
|
766 |
-
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('nav_left_but', event, false); return false;" value="<?php _e('Previous Button',
|
767 |
<?php
|
768 |
}
|
769 |
else {
|
770 |
?>
|
771 |
-
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'nav_left_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Previous Button',
|
772 |
-
<?php _e('Previous Button',
|
773 |
</a>
|
774 |
<?php
|
775 |
}
|
@@ -777,13 +741,13 @@ class WDSViewSliders_wds {
|
|
777 |
<?php
|
778 |
if (!$spider_uploader) {
|
779 |
?>
|
780 |
-
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('nav_left_hov_but', event, false); return false;" value="<?php _e('Previous Button Hover',
|
781 |
<?php
|
782 |
}
|
783 |
else {
|
784 |
?>
|
785 |
-
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'nav_left_hov_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Previous Button Hover',
|
786 |
-
<?php _e('Previous Button Hover',
|
787 |
</a>
|
788 |
<?php
|
789 |
}
|
@@ -793,13 +757,13 @@ class WDSViewSliders_wds {
|
|
793 |
<?php
|
794 |
if (!$spider_uploader) {
|
795 |
?>
|
796 |
-
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('nav_right_but', event, false); return false;" value="<?php _e('Next Button',
|
797 |
<?php
|
798 |
}
|
799 |
else {
|
800 |
?>
|
801 |
-
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'nav_right_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Next Button',
|
802 |
-
<?php _e('Next Button',
|
803 |
</a>
|
804 |
<?php
|
805 |
}
|
@@ -807,13 +771,13 @@ class WDSViewSliders_wds {
|
|
807 |
<?php
|
808 |
if (!$spider_uploader) {
|
809 |
?>
|
810 |
-
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('nav_right_hov_but', event, false); return false;" value="<?php _e('Next Button Hover',
|
811 |
<?php
|
812 |
}
|
813 |
else {
|
814 |
?>
|
815 |
-
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'nav_right_hov_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Next Button Hover',
|
816 |
-
<?php _e('Next Button Hover',
|
817 |
</a>
|
818 |
<?php
|
819 |
}
|
@@ -826,15 +790,15 @@ class WDSViewSliders_wds {
|
|
826 |
<img id="right_butt_hov_img" src="<?php echo $row->right_butt_hov_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
|
827 |
</div>
|
828 |
<div style="display: table-cell; text-align: center; vertical-align: middle;" class="display_block wds_reverse_cont">
|
829 |
-
<input type="button" class="button button-small wds_reverse" onclick="wds_change_custom_src()" value="<?php _e('Reverse',
|
830 |
</div>
|
831 |
</div>
|
832 |
<script>
|
833 |
var wds_rl_butt_type = [];
|
834 |
-
var rl_butt_dir = '<?php echo
|
835 |
var type_cur_fold = '1';
|
836 |
<?php
|
837 |
-
$folder_names = scandir(
|
838 |
$cur_fold_name = '';
|
839 |
$cur_type_key = '';
|
840 |
$cur_color_key = '';
|
@@ -842,7 +806,7 @@ class WDSViewSliders_wds {
|
|
842 |
array_splice($folder_names, 0, 2);
|
843 |
$flag = FALSE;
|
844 |
foreach ($folder_names as $type_key => $folder_name) {
|
845 |
-
if (is_dir(
|
846 |
?>
|
847 |
wds_rl_butt_type["<?php echo $type_key; ?>"] = [];
|
848 |
wds_rl_butt_type["<?php echo $type_key; ?>"]["type_name"] = "<?php echo $folder_name; ?>";
|
@@ -854,17 +818,17 @@ class WDSViewSliders_wds {
|
|
854 |
$flag = TRUE;
|
855 |
$cur_fold_name = $folder_name;
|
856 |
$cur_type_key = $type_key;
|
857 |
-
$cur_sub_fold_names = scandir(
|
858 |
array_splice($cur_sub_fold_names, 0, 2);
|
859 |
?>
|
860 |
-
|
861 |
<?php
|
862 |
}
|
863 |
}
|
864 |
-
$sub_folder_names = scandir(
|
865 |
array_splice($sub_folder_names, 0, 2);
|
866 |
foreach ($sub_folder_names as $color_key => $sub_folder_name) {
|
867 |
-
if (is_dir(
|
868 |
if ($cur_fold_name == $folder_name) {
|
869 |
/* Getting current button's color key.*/
|
870 |
if (in_array($sub_folder_name, $check_cur_fold)) {
|
@@ -887,12 +851,12 @@ class WDSViewSliders_wds {
|
|
887 |
</script>
|
888 |
</span>
|
889 |
<span class="wd-group" id="right_left_butt_select">
|
890 |
-
<label class="wd-label" for="right_butt_url"><?php _e('Choose buttons:',
|
891 |
<div style="display: table; margin-bottom: 14px;">
|
892 |
<div style="display: table-cell; vertical-align: middle;" class="display_block">
|
893 |
<div style="display: block; width: 122px;" class="default_buttons">
|
894 |
<div class="spider_choose_option" onclick="wds_choose_option(this)">
|
895 |
-
<div class="spider_option_main_title"><?php _e('Choose group',
|
896 |
<div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color: #1E8CBE"></i></div>
|
897 |
</div>
|
898 |
<div class="spider_options_cont">
|
@@ -901,7 +865,7 @@ class WDSViewSliders_wds {
|
|
901 |
?>
|
902 |
<div class="spider_option_cont wds_rl_butt_groups" value="<?php echo $type_key; ?>" <?php echo (($cur_type_key == $type_key) ? 'selected="selected" style="background-color: #3399FF;"' : ''); ?> onclick="change_rl_butt_type(this)">
|
903 |
<div class="spider_option_cont_title">
|
904 |
-
<?php _e('Group',
|
905 |
</div>
|
906 |
<div class="spider_option_cont_img">
|
907 |
<img class="src_top_left" style="display: inline-block; width: 14px; height: 14px;" />
|
@@ -915,7 +879,7 @@ class WDSViewSliders_wds {
|
|
915 |
if (!$flag) {
|
916 |
/* Folder doesn't exist.*/
|
917 |
?>
|
918 |
-
<div class="spider_option_cont" value="0" selected="selected" disabled="disabled"><?php _e('Custom',
|
919 |
<?php
|
920 |
}
|
921 |
?>
|
@@ -924,8 +888,8 @@ class WDSViewSliders_wds {
|
|
924 |
</div>
|
925 |
<div style="display:table-cell;vertical-align: middle;" class="display_block">
|
926 |
<div style="display: block; width: 122px; margin-left: 12px;" class="default_buttons">
|
927 |
-
<div class="spider_choose_option" onclick="<?php echo (
|
928 |
-
<div class="spider_option_main_title"><?php _e('Choose color',
|
929 |
<div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color:#1E8CBE"></i></div>
|
930 |
</div>
|
931 |
<div class="spider_options_color_cont">
|
@@ -934,7 +898,7 @@ class WDSViewSliders_wds {
|
|
934 |
?>
|
935 |
<div class="spider_option_cont wds_rl_butt_col_groups" value="<?php echo $color_key; ?>" <?php echo (($cur_color_key == $color_key) ? 'selected="selected" style="background-color: #3399FF;"' : ''); ?> onclick="change_rl_butt_color(this,<?php echo $cur_type_key; ?>)">
|
936 |
<div class="spider_option_cont_title" >
|
937 |
-
<?php _e('Color',
|
938 |
</div>
|
939 |
<div class="spider_option_cont_img">
|
940 |
<img class="src_col_top_left" style="display:inline-block; width: 14px; height: 14px;" />
|
@@ -948,7 +912,7 @@ class WDSViewSliders_wds {
|
|
948 |
if (!$flag) {
|
949 |
/* Folder doesn't exist.*/
|
950 |
?>
|
951 |
-
<div class="spider_option_cont" value="0" selected="selected" disabled="disabled"><?php _e('Custom',
|
952 |
<?php
|
953 |
}
|
954 |
?>
|
@@ -964,15 +928,15 @@ class WDSViewSliders_wds {
|
|
964 |
</div>
|
965 |
</div>
|
966 |
<div style="display: table-cell; text-align: center; vertical-align: middle;">
|
967 |
-
<input type="button" class="button button-small wds_reverse" onclick="change_src()" value="<?php _e('Reverse',
|
968 |
</div>
|
969 |
</div>
|
970 |
-
<p class="description"><?php _e('Choose the type and color of navigation buttons.',
|
971 |
</span>
|
972 |
-
<span class="wd-group<?php echo (
|
973 |
-
<label class="wd-label" for="rl_butt_size"><?php _e('Next / Previous buttons size:',
|
974 |
-
<input <?php echo (
|
975 |
-
<p class="description"><?php _e('Set the size of Next and Previous buttons.',
|
976 |
</span>
|
977 |
</div>
|
978 |
</div>
|
@@ -981,48 +945,48 @@ class WDSViewSliders_wds {
|
|
981 |
<div class="wd-box-section">
|
982 |
<div class="wd-box-content">
|
983 |
<span class="wd-group">
|
984 |
-
<label class="wd-label"><?php _e('Play / Pause button:',
|
985 |
<input type="radio" name="play_paus_butt" id="play_paus_butt_1" value="1" <?php if ($row->play_paus_butt) echo 'checked="checked"'; ?> />
|
986 |
-
<label <?php if ($row->play_paus_butt) echo 'class="selected_color"'; ?> for="play_paus_butt_1"><?php _e('Yes',
|
987 |
<input type="radio" name="play_paus_butt" id="play_paus_butt_0" value="0" <?php if (!$row->play_paus_butt) echo 'checked="checked"'; ?> />
|
988 |
-
<label <?php if (!$row->play_paus_butt) echo 'class="selected_color"'; ?> for="play_paus_butt_0"><?php _e('No',
|
989 |
-
<p class="description"><?php _e('Select this option to display Play and Pause buttons.',
|
990 |
</span>
|
991 |
<span class="wd-group">
|
992 |
-
<label class="wd-label"><?php _e('Image for Play / Pause buttons:',
|
993 |
<input type="radio" name="play_paus_butt_img_or_not" id="play_pause_butt_img_or_not_our" value="our" <?php if ($row->play_paus_butt_img_or_not == 'our') echo 'checked="checked"'; ?> onClick="image_for_play_pause_butt('our')" />
|
994 |
-
<label <?php if ($row->play_paus_butt_img_or_not == 'our') echo 'class="selected_color"'; ?> for="play_pause_butt_img_or_not_our"><?php _e('Default',
|
995 |
<input type="radio" name="play_paus_butt_img_or_not" id="play_pause_butt_img_or_not_cust" value="custom" <?php if ($row->play_paus_butt_img_or_not == 'custom') echo 'checked="checked"'; ?> onClick="image_for_play_pause_butt('custom')" />
|
996 |
-
<label <?php if ($row->play_paus_butt_img_or_not == 'custom') echo 'class="selected_color"'; ?> for="play_pause_butt_img_or_not_cust"><?php _e('Custom',
|
997 |
<input type="radio" name="play_paus_butt_img_or_not" id="play_pause_butt_img_or_not_select" value="style" <?php if ($row->play_paus_butt_img_or_not == 'style') echo 'checked="checked"'; ?> onClick="image_for_play_pause_butt('style')" />
|
998 |
-
<label <?php if ($row->play_paus_butt_img_or_not == 'style') echo 'class="selected_color"'; ?> for="play_pause_butt_img_or_not_select"><?php _e('Styled',
|
999 |
<input type="hidden" id="play_butt_url" name="play_butt_url" value="<?php echo $row->play_butt_url; ?>" />
|
1000 |
<input type="hidden" id="play_butt_hov_url" name="play_butt_hov_url" value="<?php echo $row->play_butt_hov_url; ?>" />
|
1001 |
<input type="hidden" id="paus_butt_url" name="paus_butt_url" value="<?php echo $row->paus_butt_url; ?>" />
|
1002 |
<input type="hidden" id="paus_butt_hov_url" name="paus_butt_hov_url" value="<?php echo $row->paus_butt_hov_url; ?>" />
|
1003 |
-
<p class="description"><?php _e('You can use default Play and Pause buttons or to upload custom icons.',
|
1004 |
</span>
|
1005 |
<span class="wd-group" id="play_pause_butt_style">
|
1006 |
-
<label class="wd-label" for="pp_butt_style"><?php _e('Play / Pause buttons style:',
|
1007 |
<div style="display: table-cell; vertical-align: middle; background-color: rgba(229, 229, 229, 0.62); text-align: center;">
|
1008 |
<i id="wds_play_style" class="fa fa-play" style="color: #<?php echo $row->butts_color; ?>; display: inline-block; font-size: 40px; width: 40px; height: 40px;"></i>
|
1009 |
<i id="wds_paus_style" class="fa fa-pause" style="color: #<?php echo $row->butts_color; ?>; display: inline-block; font-size: 40px; width: 40px; height: 40px;"></i>
|
1010 |
</div>
|
1011 |
</span>
|
1012 |
<span class="wd-group" id="play_pause_butt_cust">
|
1013 |
-
<label class="wd-label"><?php _e('Upload buttons images:',
|
1014 |
<div style="display: table;">
|
1015 |
<div style="display: table-cell; vertical-align: middle;" class="display_block">
|
1016 |
<?php
|
1017 |
if (!$spider_uploader) {
|
1018 |
?>
|
1019 |
-
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('play_but', event, false); return false;" value="<?php _e('Play Button',
|
1020 |
<?php
|
1021 |
}
|
1022 |
else {
|
1023 |
?>
|
1024 |
-
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'play_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Play Button',
|
1025 |
-
<?php _e('Play Button',
|
1026 |
</a>
|
1027 |
<?php
|
1028 |
}
|
@@ -1030,13 +994,13 @@ class WDSViewSliders_wds {
|
|
1030 |
<?php
|
1031 |
if (!$spider_uploader) {
|
1032 |
?>
|
1033 |
-
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('play_hov_but', event, false); return false;" value="<?php _e('Play Button Hover',
|
1034 |
<?php
|
1035 |
}
|
1036 |
else {
|
1037 |
?>
|
1038 |
-
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'play_hov_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Play Button Hover',
|
1039 |
-
<?php _e('Play Button Hover',
|
1040 |
</a>
|
1041 |
<?php
|
1042 |
}
|
@@ -1046,13 +1010,13 @@ class WDSViewSliders_wds {
|
|
1046 |
<?php
|
1047 |
if (!$spider_uploader) {
|
1048 |
?>
|
1049 |
-
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('paus_but', event, false); return false;" value="<?php _e('Pause Button',
|
1050 |
<?php
|
1051 |
}
|
1052 |
else {
|
1053 |
?>
|
1054 |
-
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'paus_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Pause Button',
|
1055 |
-
<?php _e('Pause Button',
|
1056 |
</a>
|
1057 |
<?php
|
1058 |
}
|
@@ -1060,13 +1024,13 @@ class WDSViewSliders_wds {
|
|
1060 |
<?php
|
1061 |
if (!$spider_uploader) {
|
1062 |
?>
|
1063 |
-
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('paus_hov_but', event, false); return false;" value="<?php _e('Pause Button Hover',
|
1064 |
<?php
|
1065 |
}
|
1066 |
else {
|
1067 |
?>
|
1068 |
-
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'paus_hov_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Pause Button Hover',
|
1069 |
-
<?php _e('Pause Button Hover',
|
1070 |
</a>
|
1071 |
<?php
|
1072 |
}
|
@@ -1079,15 +1043,15 @@ class WDSViewSliders_wds {
|
|
1079 |
<img id="paus_butt_hov_img" src="<?php echo $row->paus_butt_hov_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
|
1080 |
</div>
|
1081 |
<div style="display: table-cell; text-align: center; vertical-align: middle;" class="display_block wds_reverse_cont">
|
1082 |
-
<input type="button" class="button button-small wds_reverse" onclick="wds_change_play_paus_custom_src()" value="<?php _e('Reverse',
|
1083 |
</div>
|
1084 |
</div>
|
1085 |
<script>
|
1086 |
var wds_pp_butt_type = [];
|
1087 |
-
var pp_butt_dir = '<?php echo
|
1088 |
var pp_type_cur_fold = '1';
|
1089 |
<?php
|
1090 |
-
$folder_names = scandir(
|
1091 |
$butt_cur_fold_name = '';
|
1092 |
$butt_cur_type_key = '';
|
1093 |
$butt_cur_color_key = '';
|
@@ -1095,7 +1059,7 @@ class WDSViewSliders_wds {
|
|
1095 |
array_splice($folder_names, 0, 2);
|
1096 |
$flag = FALSE;
|
1097 |
foreach ($folder_names as $type_key => $folder_name) {
|
1098 |
-
if (is_dir(
|
1099 |
?>
|
1100 |
wds_pp_butt_type["<?php echo $type_key; ?>"] = [];
|
1101 |
wds_pp_butt_type["<?php echo $type_key; ?>"]["type_name"] = "<?php echo $folder_name; ?>";
|
@@ -1107,17 +1071,17 @@ class WDSViewSliders_wds {
|
|
1107 |
$flag = TRUE;
|
1108 |
$butt_cur_fold_name = $folder_name;
|
1109 |
$butt_cur_type_key = $type_key;
|
1110 |
-
$butt_cur_sub_fold_names = scandir(
|
1111 |
array_splice($butt_cur_sub_fold_names, 0, 2);
|
1112 |
?>
|
1113 |
pp_type_cur_fold = '<?php echo $butt_cur_type_key;?>';
|
1114 |
<?php
|
1115 |
}
|
1116 |
}
|
1117 |
-
$sub_folder_names = scandir(
|
1118 |
array_splice($sub_folder_names, 0, 2);
|
1119 |
foreach ($sub_folder_names as $color_key => $sub_folder_name) {
|
1120 |
-
if (is_dir(
|
1121 |
if ($butt_cur_fold_name == $folder_name) {
|
1122 |
/* Getting current button's color key.*/
|
1123 |
if (in_array($sub_folder_name, $check_butt_cur_fold)) {
|
@@ -1140,12 +1104,12 @@ class WDSViewSliders_wds {
|
|
1140 |
</script>
|
1141 |
</span>
|
1142 |
<span class="wd-group" id="play_pause_butt_select">
|
1143 |
-
<label class="wd-label" for="right_butt_url"><?php _e('Choose buttons:',
|
1144 |
<div style="display: table; margin-bottom: 14px;">
|
1145 |
<div style="display: table-cell; vertical-align: middle;" class="display_block" >
|
1146 |
<div style="display: block; width: 122px;" class="default_buttons">
|
1147 |
<div class="spider_choose_option" onclick="wds_choose_pp_option(this)">
|
1148 |
-
<div class="spider_option_main_title"><?php _e('Choose group',
|
1149 |
<div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color: #1E8CBE"></i></div>
|
1150 |
</div>
|
1151 |
<div class="spider_pp_options_cont">
|
@@ -1154,7 +1118,7 @@ class WDSViewSliders_wds {
|
|
1154 |
?>
|
1155 |
<div class="spider_option_cont wds_pp_butt_groups" value="<?php echo $type_key; ?>" <?php echo (($butt_cur_type_key == $type_key) ? 'selected="selected" style="background-color: #3399FF;"' : ''); ?> onclick="change_play_paus_butt_type(this)">
|
1156 |
<div class="spider_option_cont_title">
|
1157 |
-
<?php _e('Group',
|
1158 |
</div>
|
1159 |
<div class="spider_option_cont_img">
|
1160 |
<img class="pp_src_top_left" style="display: inline-block; width: 14px; height: 14px;" />
|
@@ -1168,7 +1132,7 @@ class WDSViewSliders_wds {
|
|
1168 |
if (!$flag) {
|
1169 |
/* Folder doesn't exist.*/
|
1170 |
?>
|
1171 |
-
<div class="spider_option_cont" value="0" selected="selected" disabled="disabled"><?php _e('Custom',
|
1172 |
<?php
|
1173 |
}
|
1174 |
?>
|
@@ -1177,8 +1141,8 @@ class WDSViewSliders_wds {
|
|
1177 |
</div>
|
1178 |
<div style="display:table-cell;vertical-align: middle;" class="display_block">
|
1179 |
<div style="display: block; width: 122px; margin-left: 12px;" class="default_buttons">
|
1180 |
-
<div class="spider_choose_option" onclick="<?php echo (
|
1181 |
-
<div class="spider_option_main_title"><?php _e('Choose color',
|
1182 |
<div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color:#1E8CBE"></i></div>
|
1183 |
</div>
|
1184 |
<div class="spider_pp_options_color_cont">
|
@@ -1187,7 +1151,7 @@ class WDSViewSliders_wds {
|
|
1187 |
?>
|
1188 |
<div class="spider_option_cont wds_pp_butt_col_groups" value="<?php echo $color_key; ?>" <?php echo (($butt_cur_color_key == $color_key) ? 'selected="selected" style="background-color: #3399FF;"' : ''); ?> onclick="change_play_paus_butt_color(this, <?php echo $cur_type_key; ?>)">
|
1189 |
<div class="spider_option_cont_title" >
|
1190 |
-
<?php _e('Color',
|
1191 |
</div>
|
1192 |
<div class="spider_option_cont_img">
|
1193 |
<img class="pp_src_col_top_left" style="display:inline-block; width: 14px; height: 14px;" />
|
@@ -1201,7 +1165,7 @@ class WDSViewSliders_wds {
|
|
1201 |
if (!$flag) {
|
1202 |
/* Folder doesn't exist.*/
|
1203 |
?>
|
1204 |
-
<div class="spider_option_cont" value="0" selected="selected" disabled="disabled"><?php _e('Custom',
|
1205 |
<?php
|
1206 |
}
|
1207 |
?>
|
@@ -1217,30 +1181,30 @@ class WDSViewSliders_wds {
|
|
1217 |
</div>
|
1218 |
</div>
|
1219 |
<div style="display: table-cell; text-align: center; vertical-align: middle;">
|
1220 |
-
<input type="button" class="button button-small wds_reverse" onclick="change_play_paus_src()" value="<?php _e('Reverse',
|
1221 |
</div>
|
1222 |
</div>
|
1223 |
-
<p class="description"><?php _e('Choose the type and color of navigation buttons.',
|
1224 |
</span>
|
1225 |
-
<span class="wd-group<?php echo (
|
1226 |
-
<label class="wd-label" for="pp_butt_size"><?php _e('Play / Pause button size:',
|
1227 |
-
<input <?php echo (
|
1228 |
-
<p class="description"><?php _e('Set the size of Play and Pause buttons.',
|
1229 |
</span>
|
1230 |
-
<span class="wd-group<?php echo (
|
1231 |
-
<label class="wd-label" for="butts_color"><?php _e('Buttons color:',
|
1232 |
-
<input <?php echo (
|
1233 |
-
<p class="description"><?php _e('Select a color for the navigation buttons.',
|
1234 |
</span>
|
1235 |
-
<span class="wd-group<?php echo (
|
1236 |
-
<label class="wd-label" for="hover_color"><?php _e('Hover color:',
|
1237 |
-
<input <?php echo (
|
1238 |
-
<p class="description"><?php _e('Select a hover color for the navigation buttons.',
|
1239 |
</span>
|
1240 |
-
<span class="wd-group<?php echo (
|
1241 |
-
<label class="wd-label" for="nav_border_width"><?php _e('Border:',
|
1242 |
-
<input <?php echo (
|
1243 |
-
<select <?php echo (
|
1244 |
<?php
|
1245 |
foreach ($border_styles as $key => $border_style) {
|
1246 |
?>
|
@@ -1249,19 +1213,19 @@ class WDSViewSliders_wds {
|
|
1249 |
}
|
1250 |
?>
|
1251 |
</select>
|
1252 |
-
<input <?php echo (
|
1253 |
-
<p class="description"><?php _e('Select the type, size and the color of border for the navigation buttons.',
|
1254 |
</span>
|
1255 |
-
<span class="wd-group<?php echo (
|
1256 |
-
<label class="wd-label" for="nav_border_radius"><?php _e('Border radius:',
|
1257 |
-
<input <?php echo (
|
1258 |
-
<p class="description"><?php _e('Use CSS type values (e.g. 4px).',
|
1259 |
</span>
|
1260 |
-
<span class="wd-group<?php echo (
|
1261 |
-
<label class="wd-label" for="nav_bg_color"><?php _e('Background color:',
|
1262 |
-
<input <?php echo (
|
1263 |
-
<input <?php echo (
|
1264 |
-
<p class="description"><?php _e('Transparency Value must be between 0 and 100.',
|
1265 |
</span>
|
1266 |
</div>
|
1267 |
</div>
|
@@ -1274,58 +1238,58 @@ class WDSViewSliders_wds {
|
|
1274 |
<div class="wd-box-section">
|
1275 |
<div class="wd-box-content">
|
1276 |
<span class="wd-group">
|
1277 |
-
<label class="wd-label"><?php _e('Enable bullets:',
|
1278 |
<input type="radio" id="enable_bullets1" name="enable_bullets" <?php echo (($row->enable_bullets) ? 'checked="checked"' : ''); ?> value="1" />
|
1279 |
-
<label <?php echo (($row->enable_bullets) ? 'class="selected_color"' : ''); ?> for="enable_bullets1"><?php _e('Yes',
|
1280 |
<input type="radio" id="enable_bullets0" name="enable_bullets" <?php echo (($row->enable_bullets) ? '' : 'checked="checked"'); ?> value="0" />
|
1281 |
-
<label <?php echo (($row->enable_bullets) ? '' : 'class="selected_color"'); ?> for="enable_bullets0"><?php _e('No',
|
1282 |
-
<p class="description"><?php _e('Enable navigation bullets with this option.',
|
1283 |
</span>
|
1284 |
<span class="wd-group">
|
1285 |
-
<label class="wd-label"><?php _e('Show bullets:',
|
1286 |
<input type="radio" name="bull_hover" id="bull_hover_0" value="0" <?php if ($row->bull_hover == 0) echo 'checked="checked"'; ?> />
|
1287 |
-
<label <?php if ($row->bull_hover == 0) echo 'class="selected_color"'; ?> for="bull_hover_0"><?php _e('On hover',
|
1288 |
<input type="radio" name="bull_hover" id="bull_hover_1" value="1" <?php if ($row->bull_hover == 1) echo 'checked="checked"'; ?> />
|
1289 |
-
<label <?php if ($row->bull_hover == 1) echo 'class="selected_color"'; ?> for="bull_hover_1"><?php _e('Always',
|
1290 |
-
<p class="description"><?php _e('You can display navigation bullets always or only when hovered.',
|
1291 |
</span>
|
1292 |
<span class="wd-group">
|
1293 |
-
<label class="wd-label"><?php _e('Show thumbnail on bullet hover:',
|
1294 |
<input onClick="wds_enable_disable('', 'tr_thumb_size', 'show_thumbnail1')" type="radio" id="show_thumbnail1" name="show_thumbnail" <?php echo (($row->show_thumbnail) ? 'checked="checked"' : ''); ?> value="1" />
|
1295 |
-
<label <?php echo (($row->show_thumbnail) ? 'class="selected_color"' : ''); ?> for="show_thumbnail1"><?php _e('Yes',
|
1296 |
<input onClick="wds_enable_disable('none', 'tr_thumb_size', 'show_thumbnail0')" type="radio" id="show_thumbnail0" name="show_thumbnail" <?php echo (($row->show_thumbnail) ? '' : 'checked="checked"'); ?> value="0" />
|
1297 |
-
<label for="show_thumbnail0"><?php _e('No',
|
1298 |
<p class="description"></p>
|
1299 |
</span>
|
1300 |
<span class="wd-group" id="tr_thumb_size">
|
1301 |
-
<label class="wd-label" for="wds_thumb_size"><?php _e('Thumbnail Size:',
|
1302 |
<input onblur="wds_check_number()" type="text" id="wds_thumb_size" name="wds_thumb_size" size="15" value="<?php echo $row->thumb_size; ?>" style="display:inline-block;" />
|
1303 |
-
<p class="description"><?php _e('Value must be between 0 to 1.',
|
1304 |
</span>
|
1305 |
<span class="wd-group">
|
1306 |
-
<label class="wd-label"><?php _e('Position:',
|
1307 |
<select class="select_icon select_icon_320" name="bull_position" id="bull_position">
|
1308 |
-
<option value="top" <?php echo (($row->bull_position == "top") ? 'selected="selected"' : ''); ?>><?php _e('Top',
|
1309 |
-
<option value="bottom" <?php echo (($row->bull_position == "bottom") ? 'selected="selected"' : ''); ?>><?php _e('Bottom',
|
1310 |
</select>
|
1311 |
-
<p class="description"><?php _e('Select the position for navigation bullets.',
|
1312 |
</span>
|
1313 |
<span class="wd-group">
|
1314 |
-
<label class="wd-label"><?php _e('Bullets type:',
|
1315 |
<input type="radio" name="bull_butt_img_or_not" id="bull_butt_img_or_not_our" value="our" <?php if ($row->bull_butt_img_or_not == 'our') echo 'checked="checked"'; ?> onClick="image_for_bull_butt('our')" />
|
1316 |
-
<label <?php if ($row->bull_butt_img_or_not == 'our') echo 'class="selected_color"'; ?> for="bull_butt_img_or_not_our"><?php _e('Default',
|
1317 |
<input type="radio" name="bull_butt_img_or_not" id="bull_butt_img_or_not_cust" value="custom" <?php if ($row->bull_butt_img_or_not == 'custom') echo 'checked="checked"'; ?> onClick="image_for_bull_butt('custom')" />
|
1318 |
-
<label <?php if ($row->bull_butt_img_or_not == 'custom') echo 'class="selected_color"'; ?> for="bull_butt_img_or_not_cust"><?php _e('Custom',
|
1319 |
<input type="radio" name="bull_butt_img_or_not" id="bull_butt_img_or_not_stl" value="style" <?php if ($row->bull_butt_img_or_not == 'style') echo 'checked="checked"'; ?> onClick="image_for_bull_butt('style')" />
|
1320 |
-
<label <?php if ($row->bull_butt_img_or_not == 'style') echo 'class="selected_color"'; ?> for="bull_butt_img_or_not_stl"><?php _e('Styled',
|
1321 |
<input type="radio" name="bull_butt_img_or_not" id="bull_butt_img_or_not_txt" value="text" <?php if ($row->bull_butt_img_or_not == 'text') echo 'checked="checked"'; ?> onClick="image_for_bull_butt('text')" />
|
1322 |
-
<label <?php if ($row->bull_butt_img_or_not == 'text') echo 'class="selected_color"'; ?> for="bull_butt_img_or_not_txt"><?php _e('Text',
|
1323 |
<input type="hidden" id="bullets_img_main_url" name="bullets_img_main_url" value="<?php echo $row->bullets_img_main_url; ?>" />
|
1324 |
<input type="hidden" id="bullets_img_hov_url" name="bullets_img_hov_url" value="<?php echo $row->bullets_img_hov_url; ?>" />
|
1325 |
<p class="description"></p>
|
1326 |
</span>
|
1327 |
<span class="wd-group" id="bullets_style">
|
1328 |
-
<label class="wd-label" for="bull_style"><?php _e('Bullet style:',
|
1329 |
<div style="display: table;">
|
1330 |
<div style="display: table-cell; vertical-align: middle;">
|
1331 |
<select class="select_icon select_icon_320" name="bull_style" id="bull_style" onchange="change_bull_style(jQuery(this).val())">
|
@@ -1343,13 +1307,13 @@ class WDSViewSliders_wds {
|
|
1343 |
<i id="wds_deact_bull_style" class="fa <?php echo $row->bull_style; ?>" style="color: #<?php echo $row->bull_color; ?>; display: inline-block; font-size: 40px; width: 40px; height: 40px;"></i>
|
1344 |
</div>
|
1345 |
</div>
|
1346 |
-
<p class="description"><?php _e('Choose the style for the bullets.',
|
1347 |
<script>
|
1348 |
var wds_blt_img_type = [];
|
1349 |
-
var blt_img_dir = '<?php echo
|
1350 |
var bull_type_cur_fold = '1';
|
1351 |
<?php
|
1352 |
-
$folder_names = scandir(
|
1353 |
$bull_cur_fold_name = '';
|
1354 |
$bull_cur_type_key = '';
|
1355 |
$bull_cur_color_key = '';
|
@@ -1357,7 +1321,7 @@ class WDSViewSliders_wds {
|
|
1357 |
array_splice($folder_names, 0, 2);
|
1358 |
$flag = FALSE;
|
1359 |
foreach ($folder_names as $type_key => $folder_name) {
|
1360 |
-
if (is_dir(
|
1361 |
?>
|
1362 |
wds_blt_img_type["<?php echo $type_key; ?>"] = [];
|
1363 |
wds_blt_img_type["<?php echo $type_key; ?>"]["type_name"] = "<?php echo $folder_name; ?>";
|
@@ -1369,17 +1333,17 @@ class WDSViewSliders_wds {
|
|
1369 |
$flag = TRUE;
|
1370 |
$bull_cur_fold_name = $folder_name;
|
1371 |
$bull_cur_type_key = $type_key;
|
1372 |
-
$bull_cur_sub_fold_names = scandir(
|
1373 |
array_splice($bull_cur_sub_fold_names, 0, 2);
|
1374 |
?>
|
1375 |
bull_type_cur_fold = '<?php echo $bull_cur_type_key;?>';
|
1376 |
<?php
|
1377 |
}
|
1378 |
}
|
1379 |
-
$sub_folder_names = scandir(
|
1380 |
array_splice($sub_folder_names, 0, 2);
|
1381 |
foreach ($sub_folder_names as $color_key => $sub_folder_name) {
|
1382 |
-
if (is_dir(
|
1383 |
if ($bull_cur_fold_name == $folder_name) {
|
1384 |
/* Getting current button's color key.*/
|
1385 |
if (in_array($sub_folder_name, $check_bull_cur_fold)) {
|
@@ -1402,19 +1366,19 @@ class WDSViewSliders_wds {
|
|
1402 |
</script>
|
1403 |
</span>
|
1404 |
<span class="wd-group" id="bullets_images_cust">
|
1405 |
-
<label class="wd-label"><?php _e('Upload buttons images:',
|
1406 |
<div style="display: table;">
|
1407 |
<div style="display: table-cell; vertical-align: middle;">
|
1408 |
<?php
|
1409 |
if (!$spider_uploader) {
|
1410 |
?>
|
1411 |
-
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('bullets_main_but', event, false); return false;" value="<?php _e('Active Button',
|
1412 |
<?php
|
1413 |
}
|
1414 |
else {
|
1415 |
?>
|
1416 |
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'bullets_main_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="Add Image" onclick="return false;">
|
1417 |
-
<?php _e('Active Button',
|
1418 |
</a>
|
1419 |
<?php
|
1420 |
}
|
@@ -1424,13 +1388,13 @@ class WDSViewSliders_wds {
|
|
1424 |
<?php
|
1425 |
if (!$spider_uploader) {
|
1426 |
?>
|
1427 |
-
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('bullets_hov_but', event, false); return false;" value="<?php _e('Inactive Button',
|
1428 |
<?php
|
1429 |
}
|
1430 |
else {
|
1431 |
?>
|
1432 |
-
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'bullets_hov_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Inactive Button',
|
1433 |
-
<?php _e('Inactive Button',
|
1434 |
</a>
|
1435 |
<?php
|
1436 |
}
|
@@ -1441,17 +1405,17 @@ class WDSViewSliders_wds {
|
|
1441 |
<img id="bull_img_hov" src="<?php echo $row->bullets_img_hov_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
|
1442 |
</div>
|
1443 |
<div style="display: table-cell; text-align: center; vertical-align: middle;">
|
1444 |
-
<input type="button" class="button button-small wds_reverse" onclick="wds_change_bullets_custom_src()" value="<?php _e('Reverse',
|
1445 |
</div>
|
1446 |
</div>
|
1447 |
</span>
|
1448 |
<span class="wd-group" id="bullets_images_select">
|
1449 |
-
<label class="wd-label" for="bullets_images_url"><?php _e('Choose buttons:',
|
1450 |
<div style="display: table; margin-bottom: 14px;">
|
1451 |
<div style="display: table-cell; vertical-align: middle;" class="display_block">
|
1452 |
<div style="display: block; width: 122px;" class="default_buttons">
|
1453 |
<div class="spider_choose_option" onclick="wds_choose_bull_option(this)">
|
1454 |
-
<div class="spider_option_main_title"><?php _e('Choose group',
|
1455 |
<div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color: #1E8CBE;"></i></div>
|
1456 |
</div>
|
1457 |
<div class="spider_bull_options_cont">
|
@@ -1460,7 +1424,7 @@ class WDSViewSliders_wds {
|
|
1460 |
?>
|
1461 |
<div class="spider_option_cont wds_bull_butt_groups" value="<?php echo $type_key; ?>" <?php echo (($bull_cur_type_key == $type_key) ? 'selected="selected" style="background-color: #3399FF;"' : ''); ?> onclick="change_bullets_images_type(this)">
|
1462 |
<div class="spider_option_cont_title" style="width: 64%;">
|
1463 |
-
<?php _e('Group',
|
1464 |
</div>
|
1465 |
<div class="spider_option_cont_img">
|
1466 |
<img class="bull_src_left" style="display: inline-block; width: 14px; height: 14px;" />
|
@@ -1472,7 +1436,7 @@ class WDSViewSliders_wds {
|
|
1472 |
if (!$flag) {
|
1473 |
/* Folder doesn't exist.*/
|
1474 |
?>
|
1475 |
-
<div class="spider_option_cont" value="0" selected="selected" disabled="disabled"><?php _e('Custom',
|
1476 |
<?php
|
1477 |
}
|
1478 |
?>
|
@@ -1481,8 +1445,8 @@ class WDSViewSliders_wds {
|
|
1481 |
</div>
|
1482 |
<div style="display: table-cell; vertical-align: middle;" class="display_block">
|
1483 |
<div style="display: block; width: 122px; margin-left: 12px;">
|
1484 |
-
<div class="spider_choose_option" onclick="<?php echo (
|
1485 |
-
<div class="spider_option_main_title"><?php _e('Choose color',
|
1486 |
<div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color: #1E8CBE;"></i></div>
|
1487 |
</div>
|
1488 |
<div class="spider_bull_options_color_cont">
|
@@ -1491,7 +1455,7 @@ class WDSViewSliders_wds {
|
|
1491 |
?>
|
1492 |
<div class="spider_option_cont wds_bull_butt_col_groups" value="<?php echo $color_key; ?>" <?php echo (($bull_cur_color_key == $color_key) ? 'selected="selected" style="background-color: #3399FF;"' : ''); ?> onclick="change_bullets_images_color(this, <?php echo $bull_cur_type_key; ?>)">
|
1493 |
<div class="spider_option_cont_title" style="width: 64%;">
|
1494 |
-
<?php echo _e('Color',
|
1495 |
</div>
|
1496 |
<div class="spider_option_cont_img" style="width: 22%;">
|
1497 |
<img class="bull_col_src_left" style="display: inline-block; width: 14px; height: 14px;" />
|
@@ -1503,7 +1467,7 @@ class WDSViewSliders_wds {
|
|
1503 |
if (!$flag) {
|
1504 |
/* Folder doesn't exist.*/
|
1505 |
?>
|
1506 |
-
<div class="spider_option_cont" value="0" selected="selected" disabled="disabled"><?php _e('Custom',
|
1507 |
<?php
|
1508 |
}
|
1509 |
?>
|
@@ -1517,10 +1481,10 @@ class WDSViewSliders_wds {
|
|
1517 |
</div>
|
1518 |
</div>
|
1519 |
<div style="display: table-cell; text-align: center; vertical-align: middle;">
|
1520 |
-
<input type="button" class="button button-small wds_reverse" onclick="change_bullets_src()" value="<?php _e('Reverse',
|
1521 |
</div>
|
1522 |
</div>
|
1523 |
-
<p class="description"><?php _e('Choose the type and color for the bullets.',
|
1524 |
</span>
|
1525 |
</div>
|
1526 |
</div>
|
@@ -1528,84 +1492,84 @@ class WDSViewSliders_wds {
|
|
1528 |
<div class="wd-table-col wd-table-col-50 wd-table-col-right">
|
1529 |
<div class="wd-box-section">
|
1530 |
<div class="wd-box-content">
|
1531 |
-
<span class="wd-group<?php echo (
|
1532 |
-
<label class="wd-label" for="bull_size"><?php _e('Size:',
|
1533 |
-
<input <?php echo (
|
1534 |
-
<p class="description"><?php _e('Set the size of navigation bullets.',
|
1535 |
</span>
|
1536 |
-
<span class="wd-group<?php echo (
|
1537 |
-
<label class="wd-label" for="bull_color"><?php _e('Color:',
|
1538 |
-
<input <?php echo (
|
1539 |
-
<p class="description"><?php _e('Select the color for navigation bullets.',
|
1540 |
</span>
|
1541 |
-
<span class="wd-group<?php echo (
|
1542 |
-
<label class="wd-label" for="bull_act_color"><?php _e('Active color:',
|
1543 |
-
<input <?php echo (
|
1544 |
-
<p class="description"><?php _e('Select the color for the bullet, which is currently displaying a corresponding image.',
|
1545 |
</span>
|
1546 |
-
<span class="wd-group<?php echo (
|
1547 |
-
<label class="wd-label" for="bull_back_act_color"><?php _e('Active Background color:',
|
1548 |
-
<input <?php echo (
|
1549 |
-
<p class="description"><?php _e('Select the background color for the bullet, which is currently displaying a corresponding image.',
|
1550 |
</span>
|
1551 |
-
<span class="wd-group<?php echo (
|
1552 |
-
<label class="wd-label" for="bull_back_color"><?php _e('Background color:',
|
1553 |
-
<input <?php echo (
|
1554 |
-
<p class="description"><?php _e('Select the background color for the bullet...',
|
1555 |
</span>
|
1556 |
-
<span class="wd-group<?php echo (
|
1557 |
-
<label class="wd-label" for="bull_radius"><?php _e('Border radius:',
|
1558 |
-
<input <?php echo (
|
1559 |
-
<p class="description"><?php _e('Use CSS type values (e.g. 4px).',
|
1560 |
</span>
|
1561 |
-
<span class="wd-group<?php echo (
|
1562 |
-
<label class="wd-label" for="bull_margin"><?php _e('Margin:',
|
1563 |
-
<input <?php echo (
|
1564 |
-
<p class="description"><?php _e('Set the margin for navigation bullets.',
|
1565 |
</span>
|
1566 |
</div>
|
1567 |
</div>
|
1568 |
</div>
|
1569 |
</div>
|
1570 |
</div>
|
1571 |
-
<div class="wds_nav_box wds_nav_filmstrip_box<?php echo (
|
1572 |
<div class="wd-table">
|
1573 |
<div class="wd-table-col wd-table-col-50 wd-table-col-left">
|
1574 |
<div class="wd-box-section">
|
1575 |
<div class="wd-box-content">
|
1576 |
<?php
|
1577 |
-
if (
|
1578 |
-
echo WDW_S_Library::message_id(0, __('This functionality is disabled in free version.',
|
1579 |
}
|
1580 |
?>
|
1581 |
<span class="wd-group">
|
1582 |
-
<label class="wd-label"><?php _e('Enable filmstrip:',
|
1583 |
-
<input <?php echo (
|
1584 |
-
<label <?php echo (($row->enable_filmstrip) ? 'class="selected_color"' : ''); ?> for="enable_filmstrip1"><?php _e('Yes',
|
1585 |
-
<input <?php echo (
|
1586 |
-
<label <?php echo (($row->enable_filmstrip) ? '' : 'class="selected_color"'); ?> for="enable_filmstrip0"><?php _e('No',
|
1587 |
-
<p class="description"><?php _e('Enable this option to display thumbnails of the slides in a filmstrip.',
|
1588 |
</span>
|
1589 |
<span class="wd-group" id="filmstrip_position">
|
1590 |
-
<label class="wd-label"><?php _e('Position:',
|
1591 |
-
<select <?php echo (
|
1592 |
-
<option value="top" <?php echo (($row->film_pos == "top") ? 'selected="selected"' : ''); ?>><?php _e('Top',
|
1593 |
-
<option value="right" <?php echo (($row->film_pos == "right") ? 'selected="selected"' : ''); ?>><?php _e('Right',
|
1594 |
-
<option value="bottom" <?php echo (($row->film_pos == "bottom") ? 'selected="selected"' : ''); ?>><?php _e('Bottom',
|
1595 |
-
<option value="left" <?php echo (($row->film_pos == "left") ? 'selected="selected"' : ''); ?>><?php _e('Left',
|
1596 |
</select>
|
1597 |
-
<p class="description"><?php _e('Set the position of the filmstrip.',
|
1598 |
</span>
|
1599 |
<span class="wd-group" id="filmstrip_size">
|
1600 |
-
<label class="wd-label" for="film_thumb_width"><?php _e('Thumbnail dimensions:',
|
1601 |
-
<input <?php echo (
|
1602 |
-
<input <?php echo (
|
1603 |
-
<p class="description"><?php _e('Define the maximum width and heigth of the filmstrip thumbnails.',
|
1604 |
</span>
|
1605 |
<span class="wd-group">
|
1606 |
-
<label class="wd-label" for="film_bg_color"><?php _e('Background color:',
|
1607 |
-
<input <?php echo (
|
1608 |
-
<p class="description"><?php _e('Select the background color for the filmstrip.',
|
1609 |
</span>
|
1610 |
</div>
|
1611 |
</div>
|
@@ -1614,14 +1578,14 @@ class WDSViewSliders_wds {
|
|
1614 |
<div class="wd-box-section">
|
1615 |
<div class="wd-box-content">
|
1616 |
<span class="wd-group" id="filmstrip_thumb_margin">
|
1617 |
-
<label class="wd-label" for="film_tmb_margin"><?php _e('Thumbnail separator:',
|
1618 |
-
<input <?php echo (
|
1619 |
-
<p class="description"><?php _e('Set the size of the separator for thumbnails.',
|
1620 |
</span>
|
1621 |
<span class="wd-group">
|
1622 |
-
<label class="wd-label" for="film_act_border_width"><?php _e('Active border:',
|
1623 |
-
<input <?php echo (
|
1624 |
-
<select <?php echo (
|
1625 |
<?php
|
1626 |
foreach ($border_styles as $key => $border_style) {
|
1627 |
?>
|
@@ -1630,13 +1594,13 @@ class WDSViewSliders_wds {
|
|
1630 |
}
|
1631 |
?>
|
1632 |
</select>
|
1633 |
-
<input <?php echo (
|
1634 |
-
<p class="description"><?php _e('The thumbnail for the currently displayed image will have a border. You can set its size, type and color.',
|
1635 |
</span>
|
1636 |
<span class="wd-group">
|
1637 |
-
<label class="wd-label" for="film_dac_transparent"><?php _e('Inactive transparency:',
|
1638 |
-
<input <?php echo (
|
1639 |
-
<p class="description"><?php _e('You can set a transparency level for the inactive filmstrip items which must be between 0 to 100..',
|
1640 |
</span>
|
1641 |
</div>
|
1642 |
</div>
|
@@ -1649,24 +1613,24 @@ class WDSViewSliders_wds {
|
|
1649 |
<div class="wd-box-section">
|
1650 |
<div class="wd-box-content">
|
1651 |
<span class="wd-group">
|
1652 |
-
<label class="wd-label"><?php _e('Enable timer bar:',
|
1653 |
<input type="radio" id="enable_time_bar1" name="enable_time_bar" <?php echo (($row->enable_time_bar) ? 'checked="checked"' : ''); ?> value="1" />
|
1654 |
-
<label <?php echo (($row->enable_time_bar) ? 'class="selected_color"' : ''); ?> for="enable_time_bar1"><?php _e('Yes',
|
1655 |
<input type="radio" id="enable_time_bar0" name="enable_time_bar" <?php echo (($row->enable_time_bar) ? '' : 'checked="checked"'); ?> value="0" />
|
1656 |
-
<label <?php echo (($row->enable_time_bar) ? '' : 'class="selected_color"'); ?> for="enable_time_bar0"><?php _e('No',
|
1657 |
-
<p class="description"><?php _e('You can add a bar, which displays the time left untill the slider switches to the next slide on autoplay.',
|
1658 |
</span>
|
1659 |
<span class="wd-group">
|
1660 |
-
<label class="wd-label" for="timer_bar_type"><?php _e('Type:',
|
1661 |
<select class="select_icon select_icon_320" name="timer_bar_type" id="timer_bar_type">
|
1662 |
-
<option value="top" <?php echo (($row->timer_bar_type == "top") ? 'selected="selected"' : ''); ?>><?php _e('Line top',
|
1663 |
-
<option value="bottom" <?php echo (($row->timer_bar_type == "bottom") ? 'selected="selected"' : ''); ?>><?php _e('Line Bottom',
|
1664 |
-
<option value="circle_top_left" <?php echo (($row->timer_bar_type == "circle_top_left") ? 'selected="selected"' : ''); ?>><?php _e('Circle top left',
|
1665 |
-
<option value="circle_top_right" <?php echo (($row->timer_bar_type == "circle_top_right") ? 'selected="selected"' : ''); ?>><?php _e('Circle top right',
|
1666 |
-
<option value="circle_bot_left" <?php echo (($row->timer_bar_type == "circle_bot_left") ? 'selected="selected"' : ''); ?>><?php _e('Circle bottom left',
|
1667 |
-
<option value="circle_bot_right" <?php echo (($row->timer_bar_type == "circle_bot_right") ? 'selected="selected"' : ''); ?>><?php _e('Circle bottom right',
|
1668 |
</select>
|
1669 |
-
<p class="description"><?php _e('Choose the type of the timer bar to be used within the slider.',
|
1670 |
</span>
|
1671 |
</div>
|
1672 |
</div>
|
@@ -1675,15 +1639,15 @@ class WDSViewSliders_wds {
|
|
1675 |
<div class="wd-box-section">
|
1676 |
<div class="wd-box-content">
|
1677 |
<span class="wd-group">
|
1678 |
-
<label class="wd-label" for="timer_bar_size"><?php _e('Size:',
|
1679 |
<input type="text" name="timer_bar_size" id="timer_bar_size" value="<?php echo $row->timer_bar_size; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> px
|
1680 |
-
<p class="description"><?php _e('Define the height of the timer bar.',
|
1681 |
</span>
|
1682 |
<span class="wd-group">
|
1683 |
-
<label class="wd-label" for="timer_bar_color"><?php _e('Color:',
|
1684 |
<input type="text" name="timer_bar_color" id="timer_bar_color" value="<?php echo $row->timer_bar_color; ?>" class="color" />
|
1685 |
<input type="text" name="timer_bar_transparent" id="timer_bar_transparent" value="<?php echo $row->timer_bar_transparent; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> %
|
1686 |
-
<p class="description"><?php _e('Transparency Value must be between 0 and 100.',
|
1687 |
</span>
|
1688 |
</div>
|
1689 |
</div>
|
@@ -1693,7 +1657,7 @@ class WDSViewSliders_wds {
|
|
1693 |
<div class="wds_nav_box wds_nav_watermark_box">
|
1694 |
<div class="wd_updated">
|
1695 |
<p><?php _e('Please note that the <b>Fill</b> and <b>Contain</b> options will work fine with <b>Watermark</b> option regardless of the image dimensions, whereas for the <b>Cover</b> option you should have the image identical to the size set in the <b>Dimensions</b> settings.
|
1696 |
-
If you have uploaded the image with another dimension, you will need to resize the image and upload it again.',
|
1697 |
</p>
|
1698 |
</div>
|
1699 |
<div class="wd-table">
|
@@ -1701,51 +1665,51 @@ class WDSViewSliders_wds {
|
|
1701 |
<div class="wd-box-section">
|
1702 |
<div class="wd-box-content">
|
1703 |
<span class="wd-group" id="tr_built_in_watermark_type">
|
1704 |
-
<label class="wd-label"><?php _e('Watermark type:',
|
1705 |
<input type="radio" name="built_in_watermark_type" id="built_in_watermark_type_none" value="none" <?php if ($row->built_in_watermark_type == 'none') echo 'checked="checked"'; ?> onClick="wds_built_in_watermark('watermark_type_none')" />
|
1706 |
-
<label <?php if ($row->built_in_watermark_type == 'none') echo 'class="selected_color"'; ?> for="built_in_watermark_type_none"><?php _e('None',
|
1707 |
<input type="radio" name="built_in_watermark_type" id="built_in_watermark_type_text" value="text" <?php if ($row->built_in_watermark_type == 'text') echo 'checked="checked"'; ?> onClick="wds_built_in_watermark('watermark_type_text')" onchange="preview_built_in_watermark()" />
|
1708 |
-
<label <?php if ($row->built_in_watermark_type == 'text') echo 'class="selected_color"'; ?> for="built_in_watermark_type_text"><?php _e('Text',
|
1709 |
<input type="radio" name="built_in_watermark_type" id="built_in_watermark_type_image" value="image" <?php if ($row->built_in_watermark_type == 'image') echo 'checked="checked"'; ?> onClick="wds_built_in_watermark('watermark_type_image')" onchange="preview_built_in_watermark()" />
|
1710 |
-
<label <?php if ($row->built_in_watermark_type == 'image') echo 'class="selected_color"'; ?> for="built_in_watermark_type_image"><?php _e('Image',
|
1711 |
-
<p class="description"><?php _e('Choose the kind of watermark you would like to use.',
|
1712 |
</span>
|
1713 |
<span class="wd-group" id="tr_built_in_watermark_url">
|
1714 |
-
<label class="wd-label" for="built_in_watermark_url"><?php _e('Watermark url:',
|
1715 |
<input type="text" id="built_in_watermark_url" name="built_in_watermark_url" style="width: 68%;" value="<?php echo $row->built_in_watermark_url; ?>" style="display:inline-block;" onchange="preview_built_in_watermark()" />
|
1716 |
<?php
|
1717 |
if (!$spider_uploader) {
|
1718 |
?>
|
1719 |
-
<input id="wat_img_add_butt" class="button button-secondary" type="button" onclick="wds_media_uploader('watermark', event, false); return false;" value="<?php _e('Add Image',
|
1720 |
<?php
|
1721 |
}
|
1722 |
else {
|
1723 |
?>
|
1724 |
-
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'watermark', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview" title="<?php _e('Add Image',
|
1725 |
-
<?php _e('Add Image',
|
1726 |
</a>
|
1727 |
<?php
|
1728 |
}
|
1729 |
?>
|
1730 |
-
<p class="description"><?php _e('Only .png format is supported.',
|
1731 |
</span>
|
1732 |
<span class="wd-group" id="tr_built_in_watermark_text">
|
1733 |
-
<label class="wd-label" for="built_in_watermark_text"><?php _e('Watermark text:',
|
1734 |
<input type="text" name="built_in_watermark_text" id="built_in_watermark_text" style="width: 100%;" value="<?php echo $row->built_in_watermark_text; ?>" onchange="preview_built_in_watermark()" onkeypress="preview_built_in_watermark()" />
|
1735 |
-
<p class="description"><?php _e('Write the text of the watermark. It will be displayed on the slides.',
|
1736 |
</span>
|
1737 |
<span class="wd-group" id="tr_built_in_watermark_size">
|
1738 |
-
<label class="wd-label" for="built_in_watermark_size"><?php _e('Watermark size:',
|
1739 |
<input type="text" name="built_in_watermark_size" id="built_in_watermark_size" value="<?php echo $row->built_in_watermark_size; ?>" class="spider_int_input" onchange="preview_built_in_watermark()" /> %
|
1740 |
-
<p class="description"><?php _e('Enter size of watermark in percents according to image.',
|
1741 |
</span>
|
1742 |
<span class="wd-group" id="tr_built_in_watermark_font_size">
|
1743 |
-
<label class="wd-label" for="built_in_watermark_font_size"><?php _e('Watermark font size:',
|
1744 |
<input type="text" name="built_in_watermark_font_size" id="built_in_watermark_font_size" value="<?php echo $row->built_in_watermark_font_size; ?>" class="spider_int_input" onchange="preview_built_in_watermark()" onkeypress="return spider_check_isnum(event)" /> px
|
1745 |
-
<p class="description"><?php _e('Specify the font size of the watermark.',
|
1746 |
</span>
|
1747 |
<span class="wd-group" id="tr_built_in_watermark_font">
|
1748 |
-
<label class="wd-label" for="built_in_watermark_font"><?php _e('Watermark font style:',
|
1749 |
<select class="select_icon select_icon_320" name="built_in_watermark_font" id="built_in_watermark_font" style="width:150px;" onchange="preview_built_in_watermark()">
|
1750 |
<?php
|
1751 |
foreach ($built_in_watermark_fonts as $watermark_font) {
|
@@ -1761,22 +1725,22 @@ class WDSViewSliders_wds {
|
|
1761 |
<style>
|
1762 |
@font-face {
|
1763 |
font-family: <?php echo 'wds_' . str_replace('.ttf', '', $watermark_font); ?>;
|
1764 |
-
src: url("<?php echo
|
1765 |
}
|
1766 |
</style>
|
1767 |
<?php
|
1768 |
}
|
1769 |
?>
|
1770 |
-
<p class="description"><?php _e('Specify the font family for the watermark text.',
|
1771 |
</span>
|
1772 |
<span class="wd-group" id="tr_built_in_watermark_color">
|
1773 |
-
<label class="wd-label" for="built_in_watermark_color"><?php _e('Watermark color:',
|
1774 |
<input type="text" name="built_in_watermark_color" id="built_in_watermark_color" value="<?php echo $row->built_in_watermark_color; ?>" class="color" onchange="preview_built_in_watermark()" />
|
1775 |
<input type="text" name="built_in_watermark_opacity" id="built_in_watermark_opacity" value="<?php echo $row->built_in_watermark_opacity; ?>" class="spider_int_input" onchange="preview_built_in_watermark()" /> %
|
1776 |
-
<p class="description"><?php _e('Transparency Value must be between 0 and 100.',
|
1777 |
</span>
|
1778 |
<span class="wd-group" id="tr_built_in_watermark_position">
|
1779 |
-
<label class="wd-label"><?php _e('Watermark position:',
|
1780 |
<table class="wds_position_table">
|
1781 |
<tbody>
|
1782 |
<tr>
|
@@ -1796,7 +1760,7 @@ class WDSViewSliders_wds {
|
|
1796 |
</tr>
|
1797 |
</tbody>
|
1798 |
</table>
|
1799 |
-
<p class="description"><?php _e('Select the position of the watermark.',
|
1800 |
</span>
|
1801 |
</div>
|
1802 |
</div>
|
@@ -1805,11 +1769,11 @@ class WDSViewSliders_wds {
|
|
1805 |
<div class="wd-box-section">
|
1806 |
<div class="wd-box-content">
|
1807 |
<span class="wd-group">
|
1808 |
-
<input class="button button-secondary" type="button" onclick="spider_set_input_value('task', 'set_watermark'); wds_spider_ajax_save('sliders_form', event);" value="<?php _e('Set Watermark',
|
1809 |
-
<input class="button button-secondary" type="button" onclick="spider_set_input_value('task', 'reset_watermark'); wds_spider_ajax_save('sliders_form', event);" value="<?php _e('Reset Watermark',
|
1810 |
</span>
|
1811 |
<span class="wd-group">
|
1812 |
-
<span id="preview_built_in_watermark" style='display:table-cell; background-image:url("<?php echo
|
1813 |
</span>
|
1814 |
</span>
|
1815 |
</div>
|
@@ -1823,8 +1787,8 @@ class WDSViewSliders_wds {
|
|
1823 |
<div class="wd-box-section">
|
1824 |
<div class="wd-box-content">
|
1825 |
<span class="wd-group">
|
1826 |
-
<label class="wd-label" for="css"><?php _e('Css:',
|
1827 |
-
<p class="description"><?php _e('Write additional CSS code to apply custom styles to the slider.',
|
1828 |
<textarea id="css" name="css" rows="15" style="width: 50%;"><?php echo htmlspecialchars($row->css); ?></textarea>
|
1829 |
</span>
|
1830 |
</div>
|
@@ -1838,7 +1802,7 @@ class WDSViewSliders_wds {
|
|
1838 |
<div class="wd-box-section">
|
1839 |
<div class="wd-box-content">
|
1840 |
<span class="wd-group callback_label_options">
|
1841 |
-
<label class="wd-label" for="css"><?php _e('Add new callback:',
|
1842 |
<div style="vertical-align: middle;">
|
1843 |
<select class="select_icon select_icon_320" name="callback_list" id="callback_list">
|
1844 |
<?php
|
@@ -1862,7 +1826,7 @@ class WDSViewSliders_wds {
|
|
1862 |
<div class="callbeck-item">
|
1863 |
<span class="wd-label"><?php echo $slider_callbacks[$key]; ?></span>
|
1864 |
<textarea class="callbeck-textarea" name="<?php echo $key; ?>"><?php echo $callback_item; ?></textarea>
|
1865 |
-
<button type="button" id="remove_callback" class="action_buttons remove_callback" onclick="remove_callback_item(this);"><?php _e('Remove',
|
1866 |
</div>
|
1867 |
<?php
|
1868 |
}
|
@@ -1880,7 +1844,7 @@ class WDSViewSliders_wds {
|
|
1880 |
<div class="wds_box wds_slides_box meta-box-sortables">
|
1881 |
<div class="clear"></div>
|
1882 |
<div class="bgcolor wds_tabs wbs_subtab aui-sortable">
|
1883 |
-
<h2 class="titles wd-slides-title"><?php _e('Slides',
|
1884 |
<?php
|
1885 |
$slides_name = array();
|
1886 |
foreach ( $slides_row as $key => $slide_row ) {
|
@@ -1888,10 +1852,10 @@ class WDSViewSliders_wds {
|
|
1888 |
?>
|
1889 |
<div id="wds_subtab_wrap<?php echo $slide_row->id; ?>" class="wds_subtab_wrap connectedSortable">
|
1890 |
<div id="wbs_subtab<?php echo $slide_row->id; ?>" class="tab_link <?php echo (((($id == 0 || !$sub_tab_type) || (strpos($sub_tab_type, 'pr') !== FALSE)) && $key == 0) || ('slide' . $slide_row->id == $sub_tab_type)) ? 'wds_sub_active' : ''; ?>">
|
1891 |
-
<div style='background-image:url("<?php echo $slide_row->type != 'image' ? ($slide_row->type == 'video' && ctype_digit($slide_row->thumb_url) ? (wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) ? wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) :
|
1892 |
<div class="tab_buttons">
|
1893 |
<div class="handle_wrap">
|
1894 |
-
<div class="handle" title="<?php _e('Drag to re-order',
|
1895 |
</div>
|
1896 |
<div class="wds_tab_title_wrap">
|
1897 |
<input type="text" id="title<?php echo $slide_row->id; ?>" name="title<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->title; ?>" class="wds_tab_title" tab_type="slide<?php echo $slide_row->id; ?>" data-id="<?php echo $slide_row->id; ?>" onchange="wds_set_slide_title('<?php echo $slide_row->id; ?>');" />
|
@@ -1900,9 +1864,9 @@ class WDSViewSliders_wds {
|
|
1900 |
</div>
|
1901 |
<div class="overlay" >
|
1902 |
<div id="hover_buttons">
|
1903 |
-
<span class="wds_change_thumbnail" onclick="wds_media_uploader_add_slide(event, '<?php echo $slide_row->id; ?>', false); return false;" title="<?php _e('Edit Image',
|
1904 |
-
<span class="wds_slide_dublicate" title="<?php _e('Duplicate Slide',
|
1905 |
-
<span class="wds_tab_remove" title="<?php _e('Remove Slide',
|
1906 |
<input type="hidden" name="order<?php echo $slide_row->id; ?>" id="order<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->order; ?>" />
|
1907 |
<span class="wds_clear"></span>
|
1908 |
</div>
|
@@ -1914,7 +1878,7 @@ class WDSViewSliders_wds {
|
|
1914 |
}
|
1915 |
?>
|
1916 |
<div class="wds_subtab_wrap new_tab_image">
|
1917 |
-
<div class="new_tab_link" onclick="wds_media_uploader_add_slide(event)" title="<?php _e('Add Slide(s)',
|
1918 |
</div>
|
1919 |
<div class="wds_clear"></div>
|
1920 |
</div>
|
@@ -1947,7 +1911,7 @@ class WDSViewSliders_wds {
|
|
1947 |
}
|
1948 |
}
|
1949 |
$slide_row->fillmode = empty($slide_row->fillmode) ? $fillmode : $slide_row->fillmode;
|
1950 |
-
|
1951 |
<div class="wds_box <?php echo (((($id == 0 || !$sub_tab_type) || (strpos($sub_tab_type, 'pr') !== FALSE)) && $key == 0) || ('slide' . $slide_row->id == $sub_tab_type)) ? 'wds_sub_active' : ''; ?> wds_slide<?php echo $slide_row->id; ?>">
|
1952 |
<input type="hidden" name="type<?php echo $slide_row->id; ?>" id="type<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->type; ?>" />
|
1953 |
<input type="hidden" name="wds_video_type<?php echo $slide_row->id; ?>" id="wds_video_type<?php echo $slide_row->id; ?>" />
|
@@ -1957,11 +1921,11 @@ class WDSViewSliders_wds {
|
|
1957 |
<td>
|
1958 |
<div class="postbox closed">
|
1959 |
<button class="button-link handlediv" type="button" aria-expanded="true">
|
1960 |
-
<span class="screen-reader-text"><?php _e('Toggle panel:',
|
1961 |
<span class="toggle-indicator" aria-hidden="true"></span>
|
1962 |
</button>
|
1963 |
<h2 class="hndle">
|
1964 |
-
<span><?php _e('Slide options',
|
1965 |
</h2>
|
1966 |
<div class="inside">
|
1967 |
<div class="wd-table">
|
@@ -1969,11 +1933,11 @@ class WDSViewSliders_wds {
|
|
1969 |
<div class="wd-box-section">
|
1970 |
<div class="wd-box-content">
|
1971 |
<div class="wd-group">
|
1972 |
-
<label class="wd-label" for="fillmode<?php echo $slide_row->id; ?>"><?php _e('Fillmode',
|
1973 |
<div id="wds_fillmode_option-<?php echo $slide_row->id; ?>" class="wds_fillmode_option">
|
1974 |
<div style="width: 210px; position: relative;">
|
1975 |
<div class="spider_choose_option" onclick="wds_choose_option(this)">
|
1976 |
-
<div class="spider_option_main_title"><?php echo !empty($slide_row->fillmode) ? $slide_row->fillmode : __('Fill',
|
1977 |
<div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg"></i></div>
|
1978 |
</div>
|
1979 |
<div class="spider_options_cont <?php echo ($type_video) ? 'type_video' :'';?>">
|
@@ -1981,7 +1945,7 @@ class WDSViewSliders_wds {
|
|
1981 |
<div class="spider_option_cont <?php echo ((!empty($slide_row->fillmode) && $slide_row->fillmode == $key_option) ? 'selected' : ''); ?>" value="<?php echo $key_option;?>" onclick="wds_change_fillmode_type(this,<?php echo $slide_row->id; ?>)">
|
1982 |
<div id="wds_fillmode_option_title-<?php echo $slide_row->id; ?>"class="spider_option_cont_title" data-title="<?php echo $key_option; ?>"><?php echo $option; ?></div>
|
1983 |
<div id="wds_fillmode_option_img-<?php echo $slide_row->id; ?>" class="spider_option_cont_img">
|
1984 |
-
<img src="<?php echo
|
1985 |
</div>
|
1986 |
</div>
|
1987 |
<?php } ?>
|
@@ -1989,18 +1953,18 @@ class WDSViewSliders_wds {
|
|
1989 |
</div>
|
1990 |
</div>
|
1991 |
<div id="wds_fillmode_preview-<?php echo $slide_row->id; ?>" class="wds_fillmode_preview <?php echo ( empty($slide_row->fillmode) ? 'hide' :'' );?>">
|
1992 |
-
<img src="<?php echo
|
1993 |
<input type="hidden" name="fillmode<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->fillmode; ?>">
|
1994 |
</div>
|
1995 |
<div class="clear"></div>
|
1996 |
-
|
1997 |
-
|
1998 |
<div class="wd-group">
|
1999 |
-
<label class="wd-label"><?php _e('Published',
|
2000 |
<input type="radio" id="published<?php echo $slide_row->id; ?>1" name="published<?php echo $slide_row->id; ?>" <?php echo (($slide_row->published) ? 'checked="checked"' : ''); ?> value="1" />
|
2001 |
-
<label <?php echo (($slide_row->published) ? 'class="selected_color"' : ''); ?> for="published<?php echo $slide_row->id; ?>1"><?php _e('Yes',
|
2002 |
<input type="radio" id="published<?php echo $slide_row->id; ?>0" name="published<?php echo $slide_row->id; ?>" <?php echo (($slide_row->published) ? '' : 'checked="checked"'); ?> value="0" />
|
2003 |
-
<label <?php echo (($slide_row->published) ? '' : 'class="selected_color"'); ?> for="published<?php echo $slide_row->id; ?>0"><?php _e('No',
|
2004 |
<p class="description"></p>
|
2005 |
</div>
|
2006 |
</div>
|
@@ -2010,59 +1974,59 @@ class WDSViewSliders_wds {
|
|
2010 |
<div class="wd-box-section">
|
2011 |
<div class="wd-box-content">
|
2012 |
<div class="wd-group" id="controls<?php echo $slide_row->id; ?>" <?php echo $slide_row->type == 'video' ? '' : 'style="display: none;"'; ?>>
|
2013 |
-
<label class="wd-label"><?php _e('Controls',
|
2014 |
<input type="radio" onClick="wds_enable_disable('', 'autoplay<?php echo $slide_row->id; ?>', 'controls<?php echo $slide_row->id; ?>1')" id="controls<?php echo $slide_row->id; ?>1" name="controls<?php echo $slide_row->id; ?>" <?php echo (($slide_row->link == '1' || empty($slide_row->link) ) ? 'checked="checked"' : ''); ?> value="1" />
|
2015 |
-
<label <?php echo ($slide_row->link == '1' || empty($slide_row->link) ) ? 'class="selected_color"' : ''; ?> for="controls<?php echo $slide_row->id; ?>1"><?php _e('Yes',
|
2016 |
<input type="radio" onClick="wds_enable_disable('none', 'autoplay<?php echo $slide_row->id; ?>', 'controls<?php echo $slide_row->id; ?>0')" id="controls<?php echo $slide_row->id; ?>0" name="controls<?php echo $slide_row->id; ?>" <?php echo (($slide_row->link == "0") ? 'checked="checked"' : '' ); ?> value="0" />
|
2017 |
-
<label <?php echo (($slide_row->link == "0") ? 'class="selected_color"' : '' ); ?> for="controls<?php echo $slide_row->id; ?>0"><?php _e('No',
|
2018 |
<p class="description"></p>
|
2019 |
</div>
|
2020 |
<div class="wd-group" id="autoplay<?php echo $slide_row->id; ?>" <?php echo (($slide_row->type == 'video' && $slide_row->link == '1') || $slide_row->type == 'EMBED_OEMBED_YOUTUBE_VIDEO'|| $slide_row->type == 'EMBED_OEMBED_VIMEO_VIDEO') ? '' : 'style="display: none;"'; ?>>
|
2021 |
-
<label class="wd-label"><?php _e('Autoplay',
|
2022 |
<input type="radio" id="autoplay<?php echo $slide_row->id; ?>1" name="wds_slide_autoplay<?php echo $slide_row->id; ?>" <?php echo (($slide_row->target_attr_slide) ? 'checked="checked"' : ''); ?> value="1" />
|
2023 |
-
<label <?php echo (($slide_row->target_attr_slide) ? 'class="selected_color"' : ''); ?> for="autoplay<?php echo $slide_row->id; ?>1"><?php _e('Yes',
|
2024 |
<input type="radio" id="autoplay<?php echo $slide_row->id; ?>0" name="wds_slide_autoplay<?php echo $slide_row->id; ?>" <?php echo (($slide_row->target_attr_slide) ? '' : 'checked="checked"'); ?> value="0" />
|
2025 |
-
<label <?php echo (($slide_row->target_attr_slide) ? '' : 'class="selected_color"'); ?> for="autoplay<?php echo $slide_row->id; ?>0"><?php _e('No',
|
2026 |
<p class="description"></p>
|
2027 |
</div>
|
2028 |
<div class="wd-group" id="youtube_rel_video<?php echo $slide_row->id; ?>" <?php echo $slide_row->type == 'EMBED_OEMBED_YOUTUBE_VIDEO' ? '' : 'style="display: none;"'; ?>>
|
2029 |
-
<label class="wd-label"><?php _e('Youtube related video',
|
2030 |
<input type="radio" id="youtube_rel_video<?php echo $slide_row->id; ?>1" name="youtube_rel_video<?php echo $slide_row->id; ?>" <?php echo (($slide_row->youtube_rel_video) ? 'checked="checked"' : ''); ?> value="1" />
|
2031 |
-
<label <?php echo (($slide_row->youtube_rel_video) ? 'class="selected_color"' : ''); ?> for="youtube_rel_video<?php echo $slide_row->id; ?>1"><?php _e('Yes',
|
2032 |
<input type="radio" id="youtube_rel_video<?php echo $slide_row->id; ?>0" name="youtube_rel_video<?php echo $slide_row->id; ?>" <?php echo (($slide_row->youtube_rel_video) ? '' : 'checked="checked"'); ?> value="0" />
|
2033 |
-
<label <?php echo (($slide_row->youtube_rel_video) ? '' : 'class="selected_color"'); ?> for="youtube_rel_video<?php echo $slide_row->id; ?>0"><?php _e('No',
|
2034 |
<p class="description"></p>
|
2035 |
</div>
|
2036 |
<div class="wd-group" id="video_loop<?php echo $slide_row->id; ?>" <?php echo ($slide_row->type == 'video' || $slide_row->type == 'EMBED_OEMBED_VIMEO_VIDEO') ? '' : 'style="display: none;"'; ?>>
|
2037 |
-
<label class="wd-label"><?php _e('Video Loop',
|
2038 |
<input type="radio" id="video_loop<?php echo $slide_row->id; ?>1" name="video_loop<?php echo $slide_row->id; ?>" <?php echo (($slide_row->video_loop) ? 'checked="checked"' : ''); ?> value="1" />
|
2039 |
-
<label <?php echo (($slide_row->video_loop) ? 'class="selected_color"' : ''); ?> for="video_loop<?php echo $slide_row->id; ?>1"><?php _e('Yes',
|
2040 |
<input type="radio" id="video_loop<?php echo $slide_row->id; ?>0" name="video_loop<?php echo $slide_row->id; ?>" <?php echo (($slide_row->video_loop) ? '' : 'checked="checked"'); ?> value="0" />
|
2041 |
-
<label <?php echo (($slide_row->video_loop) ? '' : 'class="selected_color"'); ?> for="video_loop<?php echo $slide_row->id; ?>0"><?php _e('No',
|
2042 |
<p class="description"></p>
|
2043 |
</div>
|
2044 |
<div class="wd-group" id="trlink<?php echo $slide_row->id; ?>" <?php echo $slide_row->type == 'image' ? '' : 'style="display: none;"'; ?>>
|
2045 |
-
<label class="wd-label" for="link<?php echo $slide_row->id; ?>"><?php _e('Link the slide to',
|
2046 |
<input class="wds_external_link" id="link<?php echo $slide_row->id; ?>" type="text" value="<?php echo $slide_row->link; ?>" name="link<?php echo $slide_row->id; ?>" />
|
2047 |
-
<input id="target_attr_slide<?php echo $slide_row->id; ?>" type="checkbox" name="target_attr_slide<?php echo $slide_row->id; ?>" <?php echo (($slide_row->target_attr_slide) ? 'checked="checked"' : ''); ?> value="1" /><label for="target_attr_slide<?php echo $slide_row->id; ?>"><?php _e('Open in a new window',
|
2048 |
-
<p class="description"><?php _e('You can add a URL, to which the users will be redirected upon clicking on the slide. Use http:// and https:// for external links.',
|
2049 |
</div>
|
2050 |
<div class="wd-group">
|
2051 |
<?php
|
2052 |
if ( !$spider_uploader ) {
|
2053 |
?>
|
2054 |
-
<input type="button" class="button button-secondary" id="button_image_url<?php echo $slide_row->id; ?>" onclick="wds_media_uploader('<?php echo 'add_update_thumbnail__' . $slide_row->id; ?>', event, false); return false;" value="<?php _e('Edit thumbnail',
|
2055 |
<?php
|
2056 |
}
|
2057 |
else {
|
2058 |
?>
|
2059 |
-
<a class="button button-secondary thickbox thickbox-preview" href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'add_update_thumbnail', 'slide_id' => $slide_row->id, 'TB_iframe' => '1'), $query_url); ?>" title="<?php _e('Edit thumbnail',
|
2060 |
-
<?php _e('Edit thumbnail',
|
2061 |
</a>
|
2062 |
<?php
|
2063 |
}
|
2064 |
?>
|
2065 |
-
<p class="description"><?php _e('Note, that thumbnail will be used in the filmstrip only.',
|
2066 |
</div>
|
2067 |
</div>
|
2068 |
</div>
|
@@ -2083,7 +2047,7 @@ class WDSViewSliders_wds {
|
|
2083 |
width: inherit;
|
2084 |
height: inherit;
|
2085 |
background-color: <?php echo WDW_S_Library::spider_hex2rgba($row->background_color, (100 - $row->background_transparent) / 100); ?>;
|
2086 |
-
background-image: url("<?php echo $slide_row->type != 'image' ? ($slide_row->type == 'video' && ctype_digit($slide_row->thumb_url) ? (wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) ? wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) :
|
2087 |
<?php if( !empty($slide_row->fillmode) && $slide_row->fillmode == 'fill') { ?>
|
2088 |
background-size: cover;
|
2089 |
background-position: center center;
|
@@ -2110,9 +2074,8 @@ class WDSViewSliders_wds {
|
|
2110 |
background-repeat: repeat;
|
2111 |
<?php } ?>'>
|
2112 |
<?php
|
2113 |
-
|
2114 |
-
|
2115 |
-
foreach ($layers_row as $key => $layer) {
|
2116 |
$prefix = 'slide' . $slide_row->id . '_layer' . $layer->id;
|
2117 |
$fonts = (isset($layer->google_fonts) && $layer->google_fonts) ? $google_fonts : $font_families;
|
2118 |
$hotspot_text_display = (isset($layer->hotspot_text_display) && $layer->hotspot_text_display == 'click') ? 'click' : 'hover';
|
@@ -2134,7 +2097,7 @@ class WDSViewSliders_wds {
|
|
2134 |
case 'video':
|
2135 |
case 'upvideo': {
|
2136 |
?>
|
2137 |
-
<img id="<?php echo $prefix; ?>" class="wds_draggable_<?php echo $slide_row->id; ?> wds_draggable ui-draggable" onclick="wds_showhide_layer('<?php echo $prefix; ?>_tbody', 1)" src="<?php echo $layer->type == 'upvideo' ? (wp_get_attachment_url(get_post_thumbnail_id($layer->image_url)) ? wp_get_attachment_url(get_post_thumbnail_id($layer->image_url)) :
|
2138 |
style="max-width: <?php echo $layer->image_width; ?>px; width: <?php echo $layer->image_width; ?>px; max-height: <?php echo $layer->image_height; ?>px; height: <?php echo $layer->image_height; ?>px; position: absolute; left: <?php echo $layer->left; ?>px; top: <?php echo $layer->top; ?>px; z-index: <?php echo $layer->depth; ?>; border: <?php echo $layer->border_width; ?>px <?php echo $layer->border_style; ?> #<?php echo $layer->border_color; ?>; border-radius: <?php echo $layer->border_radius; ?>; box-shadow: <?php echo $layer->shadow; ?>;" />
|
2139 |
<?php
|
2140 |
break;
|
@@ -2238,40 +2201,40 @@ class WDSViewSliders_wds {
|
|
2238 |
</tr>
|
2239 |
<tr class="bgcolor">
|
2240 |
<td colspan="4">
|
2241 |
-
<h2 class="titles"><?php _e('Layers',
|
2242 |
<div id="layer_add_buttons">
|
2243 |
<div class="layer_add_buttons_wrap">
|
2244 |
-
<button class="action_buttons add_text_layer button-small<?php echo !$fv ? "" : " wds_free_button"; ?>" onclick="<?php echo $fv ? "alert('". addslashes(__('This functionality is disabled in free version.',
|
2245 |
</div>
|
2246 |
<?php
|
2247 |
if (!$spider_uploader) {
|
2248 |
?>
|
2249 |
<div class="layer_add_buttons_wrap">
|
2250 |
-
<button class="action_buttons add_image_layer button-small<?php echo !
|
2251 |
</div>
|
2252 |
<?php
|
2253 |
}
|
2254 |
else {
|
2255 |
?>
|
2256 |
<div class="layer_add_buttons_wrap">
|
2257 |
-
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'add_layer', 'slide_id' => $slide_row->id, 'TB_iframe' => '1'), $query_url); ?>" class="action_buttons add_image_layer button-small thickbox thickbox-preview<?php echo !$fv ? "" : " wds_free_button"; ?>" title="<?php _e('Add Image layer',
|
2258 |
-
<?php _e('Add Image layer',
|
2259 |
</a>
|
2260 |
</div>
|
2261 |
<?php
|
2262 |
}
|
2263 |
?>
|
2264 |
<div class="layer_add_buttons_wrap">
|
2265 |
-
<input type="button" class="action_buttons add_video_layer button-small<?php echo !
|
2266 |
</div>
|
2267 |
<div class="layer_add_buttons_wrap">
|
2268 |
-
<input type="button" class="action_buttons add_embed_layer button-small<?php echo !
|
2269 |
</div>
|
2270 |
<div class="layer_add_buttons_wrap">
|
2271 |
-
<button class="action_buttons add_social_layer button-small<?php echo !
|
2272 |
</div>
|
2273 |
<div class="layer_add_buttons_wrap">
|
2274 |
-
<button class="action_buttons add_hotspot_layer button-small<?php echo !
|
2275 |
</div>
|
2276 |
<div class="clear"></div>
|
2277 |
</div>
|
@@ -2280,8 +2243,8 @@ class WDSViewSliders_wds {
|
|
2280 |
</tbody>
|
2281 |
<?php
|
2282 |
$layer_ids_string = '';
|
2283 |
-
|
2284 |
-
foreach ($layers_row as $key => $layer) {
|
2285 |
$prefix = 'slide' . $slide_row->id . '_layer' . $layer->id;
|
2286 |
?>
|
2287 |
<tbody class="layer_table_count" id="<?php echo $prefix; ?>_tbody">
|
@@ -2289,11 +2252,11 @@ class WDSViewSliders_wds {
|
|
2289 |
<td class="wds_layer_head" colspan="4">
|
2290 |
<div class="wds_layer_left">
|
2291 |
<div class="layer_handle handle connectedSortable" title="Drag to re-order"></div>
|
2292 |
-
<span class="wds_layer_label" onclick="wds_showhide_layer('<?php echo $prefix; ?>_tbody', 0)"><input id="<?php echo $prefix; ?>_title" name="<?php echo $prefix; ?>_title" type="text" class="wds_layer_title" value="<?php echo $layer->title; ?>" title="<?php _e('Layer title',
|
2293 |
</div>
|
2294 |
<div class="wds_layer_right">
|
2295 |
<span class="wds_layer_remove" onclick="wds_delete_layer('<?php echo $slide_row->id; ?>', '<?php echo $layer->id; ?>'); " title="Delete layer"></span>
|
2296 |
-
<span class="wds_layer_dublicate" onclick="wds_add_layer('<?php echo $layer->type; ?>', '<?php echo $slide_row->id; ?>', '', 1, 0); wds_duplicate_layer('<?php echo $layer->type; ?>', '<?php echo $slide_row->id; ?>', '<?php echo $layer->id; ?>'); " title="<?php _e('Duplicate layer',
|
2297 |
<input id="<?php echo $prefix; ?>_depth" class="wds_layer_depth spider_int_input" type="text" onchange="change_zindex(this,'<?php echo $prefix; ?>'); " onkeypress="return spider_check_isnum(event); " value="<?php echo $layer->depth; ?>" prefix="<?php echo $prefix; ?>" name="<?php echo $prefix; ?>_depth" title="z-index" />
|
2298 |
</div>
|
2299 |
<div class="wds_clear"></div>
|
@@ -2354,8 +2317,8 @@ class WDSViewSliders_wds {
|
|
2354 |
wds_drag_layer('<?php echo $slide_row->id; ?>');
|
2355 |
wds_layer_weights('<?php echo $slide_row->id; ?>');
|
2356 |
<?php
|
2357 |
-
|
2358 |
-
foreach ($layers_row as $key => $layer) {
|
2359 |
if ($layer->type == 'image') {
|
2360 |
$prefix = 'slide' . $slide_row->id . '_layer' . $layer->id;
|
2361 |
?>
|
@@ -2414,21 +2377,21 @@ class WDSViewSliders_wds {
|
|
2414 |
<div class="wds_box wds_howto_box meta-box-sortables">
|
2415 |
<div class="clear"></div>
|
2416 |
<div class="bgcolor wds_tabs aui-sortable">
|
2417 |
-
<h2 class="titles wd-slides-title"><?php _e('How to use',
|
2418 |
<div class="wds_howto_container">
|
2419 |
<div class="wds_howto_content">
|
2420 |
-
<h2><?php _e('Shortcode',
|
2421 |
-
<h4><?php _e('Copy and paste this shortcode into your posts or pages:',
|
2422 |
<input type="text" class="wds_howto_shortcode" value='[wds id="<?php echo $row->id; ?>"]' onclick="spider_select_value(this)" size="11" readonly="readonly" />
|
2423 |
</div>
|
2424 |
<div class="wds_howto_content">
|
2425 |
-
<h2><?php _e('Page or Post editor',
|
2426 |
-
<h4><?php _e('Insert it into an existing post with the button:',
|
2427 |
-
<img src="<?php echo
|
2428 |
</div>
|
2429 |
<div class="wds_howto_content">
|
2430 |
-
<h2><?php _e('PHP code',
|
2431 |
-
<h4><?php _e('Copy and paste the PHP code into your template file:',
|
2432 |
<input type="text" class="wds_howto_phpcode" value="<?php wd_slider(<?php echo $row->id; ?>); ?>" onclick="spider_select_value(this)" size="17" readonly="readonly" />
|
2433 |
</div>
|
2434 |
</div>
|
@@ -2436,6 +2399,7 @@ class WDSViewSliders_wds {
|
|
2436 |
</div>
|
2437 |
</div>
|
2438 |
<div class="wds_task_cont">
|
|
|
2439 |
<input id="current_id" name="current_id" type="hidden" value="<?php echo $row->id; ?>" />
|
2440 |
<input id="save_as_copy" name="save_as_copy" type="hidden" value="" />
|
2441 |
<input id="slide_ids_string" name="slide_ids_string" type="hidden" value="<?php echo $slide_ids_string; ?>" />
|
@@ -2447,12 +2411,11 @@ class WDSViewSliders_wds {
|
|
2447 |
var spider_uploader_ = <?php echo $spider_uploader; ?>;
|
2448 |
</script>
|
2449 |
</div>
|
2450 |
-
<input id="task" name="task" type="hidden" value="" />
|
2451 |
<script>
|
2452 |
var fv = '<?php echo $fv; ?>';
|
2453 |
var ajax_url = "<?php echo wp_nonce_url(admin_url('admin-ajax.php'), '', 'nonce_wd'); ?>";
|
2454 |
var uploader_href = '<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'add_update_slide', 'slide_id' => 'slideID', 'layer_id' => 'layerID', 'TB_iframe' => '1'), $query_url); ?>';
|
2455 |
-
var WD_S_URL = '<?php echo
|
2456 |
jQuery(document).ready(function() {
|
2457 |
wds_onload();
|
2458 |
});
|
@@ -2466,7 +2429,7 @@ class WDSViewSliders_wds {
|
|
2466 |
jQuery(".wds_tab_title_wrap").removeClass("wds_sub_active");
|
2467 |
}
|
2468 |
});
|
2469 |
-
var plugin_dir = '<?php echo
|
2470 |
</script>
|
2471 |
<div class="opacity_add_video wds_opacity_video wds_opacity_export opacity_wp_editor"
|
2472 |
onclick="jQuery('.opacity_add_video').hide();
|
@@ -2475,30 +2438,30 @@ class WDSViewSliders_wds {
|
|
2475 |
jQuery('.wds_editor').hide();">
|
2476 |
</div>
|
2477 |
<div class="wds_exports">
|
2478 |
-
<input type="checkbox" name="imagesexport" id="imagesexport" value="<?php _e('Images export',
|
2479 |
-
<label for="imagesexport"><?php _e('Check the box to export the images included within sliders',
|
2480 |
-
<input class="button-secondary" type="button" id="wds_export_btn" data-href="<?php echo add_query_arg(array('action' => 'WDSExport'), admin_url('admin-ajax.php')); ?>" onclick="spider_set_input_value('task', 'export_on'); wds_spider_ajax_save('sliders_form', event); jQuery('.wds_exports').hide(); jQuery('.wds_opacity_export').hide();" value="<?php _e('Export',
|
2481 |
-
<input type="button" class="button-secondary" onclick="jQuery('.wds_exports').hide(); jQuery('.wds_opacity_export').hide(); return false;" value="<?php _e('Cancel',
|
2482 |
</div>
|
2483 |
<div id="add_embed" class="opacity_add_video wds_add_video">
|
2484 |
<input type="text" id="embed_url" name="embed_url" value="" />
|
2485 |
-
<input class="button button-primary" type="button" onclick="if (wds_get_embed_info(jQuery('#embed_url').val())) {jQuery('.opacity_add_video').hide();} jQuery('#embed_url').val(''); return false;" value="<?php _e('Add',
|
2486 |
-
<input class="button" type="button" onclick="jQuery('.opacity_add_video').hide(); jQuery('#embed_url').val(''); return false;" value="<?php _e('Cancel',
|
2487 |
<div class="spider_description">
|
2488 |
-
<?php _e('Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here.',
|
2489 |
</div>
|
2490 |
<div class="spider_description">
|
2491 |
-
<p><?php _e('<b>Youtube</b> URL example:',
|
2492 |
-
<p><?php _e('<b>Vimeo</b> URL example:',
|
2493 |
-
<p><?php _e('<b>Instagram</b> URL example:',
|
2494 |
-
<p><?php _e('<b>Flickr</b> URL example:',
|
2495 |
-
<p><?php _e('<b>Dailymotion</b> URL example:',
|
2496 |
</div>
|
2497 |
</div>
|
2498 |
<div class="wds_editor">
|
2499 |
<div class="wds_editor_insert_btn">
|
2500 |
-
<input type="button" class="button button-primary" onclick="wds_insert_html()" value="<?php _e('Insert',
|
2501 |
-
<input type="button" class="button button-secondary" onclick="jQuery('.opacity_wp_editor').hide();jQuery('.wds_editor').hide(); return false;" value="<?php _e('Cancel',
|
2502 |
</div>
|
2503 |
<?php
|
2504 |
wp_editor('', 'template_text', array('teeny' => TRUE, 'textarea_name' => 'template_text', 'media_buttons' => FALSE, 'textarea_rows' => 5,'quicktags' => FALSE));
|
@@ -2590,63 +2553,63 @@ class WDSViewSliders_wds {
|
|
2590 |
<div class="wd-box-section">
|
2591 |
<div class="wd-box-content">
|
2592 |
<span class="wd-group">
|
2593 |
-
<label class="wd-label"><?php _e('Published:',
|
2594 |
<input id="<?php echo $prefix; ?>_published1" type="radio" name="<?php echo $prefix; ?>_published" value="1" <?php echo (($new_layer['published']) ? 'checked="checked"' : ''); ?> />
|
2595 |
-
<label <?php echo (($new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published1"><?php _e('Yes',
|
2596 |
<input id="<?php echo $prefix; ?>_published0" type="radio" name="<?php echo $prefix; ?>_published" value="0" <?php echo (($new_layer['published']) ? '' : 'checked="checked"'); ?>/>
|
2597 |
-
<label <?php echo ((!$new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published0"><?php _e('No',
|
2598 |
<p class="description"></p>
|
2599 |
</span>
|
2600 |
<span class="wd-group">
|
2601 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_static_layer"><?php _e('Static layer:',
|
2602 |
<input id="<?php echo $prefix; ?>_static_layer" type="checkbox" name="<?php echo $prefix; ?>_static_layer" <?php echo checked(1, $new_layer['static_layer']); ?> value="1" />
|
2603 |
-
<p class="description"><?php _e('The layer will be visible on all slides.',
|
2604 |
</span>
|
2605 |
<span class="wd-group">
|
2606 |
-
<label class="wd-label" title=""><?php _e('Dimensions:',
|
2607 |
<input type="hidden" name="<?php echo $prefix; ?>_image_url" id="<?php echo $prefix; ?>_image_url" value="<?php echo $new_layer['image_url']; ?>" />
|
2608 |
<input id="<?php echo $prefix; ?>_image_width" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_width']; ?>" name="<?php echo $prefix; ?>_image_width" /> x
|
2609 |
<input id="<?php echo $prefix; ?>_image_height" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_height']; ?>" name="<?php echo $prefix; ?>_image_height" /> px
|
2610 |
-
<input id="<?php echo $prefix; ?>_image_scale" type="checkbox" onchange="wds_scale(this, '<?php echo $prefix; ?>')" name="<?php echo $prefix; ?>_image_scale" <?php echo (($new_layer['image_scale']) ? 'checked="checked"' : ''); ?> /><label for="<?php echo $prefix; ?>_image_scale"><?php _e('Scale',
|
2611 |
<?php
|
2612 |
if ( !$spider_uploader ) {
|
2613 |
?>
|
2614 |
-
<input type="button" class="button button-secondary" id="button_image_url<?php echo $id; ?>" onclick="wds_add_layer('image', '<?php echo $id; ?>', '<?php echo $new_layer['id']; ?>', '', '', 1); return false;" value="<?php _e('Edit Image',
|
2615 |
<?php
|
2616 |
} else {
|
2617 |
?>
|
2618 |
-
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'add_update_layer', 'slide_id' => $id, 'layer_id' => $new_layer['id'], 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview" title="<?php _e('Edit Image',
|
2619 |
-
<?php _e('Edit Image',
|
2620 |
</a>
|
2621 |
<?php
|
2622 |
}
|
2623 |
?>
|
2624 |
-
<p class="description"><?php _e('Set width and height of the image.',
|
2625 |
</span>
|
2626 |
<span class="wd-group">
|
2627 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_alt" title=""><?php _e('Alt:',
|
2628 |
<input id="<?php echo $prefix; ?>_alt" type="text" class="wds_link" value="<?php echo $new_layer['alt']; ?>" name="<?php echo $prefix; ?>_alt" />
|
2629 |
-
<p class="description"><?php _e('Set the value of alt HTML attribute for this image layer.',
|
2630 |
</span>
|
2631 |
<span class="wd-group">
|
2632 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_link" title=""><?php _e('Link:',
|
2633 |
<input id="<?php echo $prefix; ?>_link" class="wds_link" type="text" value="<?php echo $new_layer['link']; ?>" name="<?php echo $prefix; ?>_link" />
|
2634 |
-
<input id="<?php echo $prefix; ?>_target_attr_layer" type="checkbox" name="<?php echo $prefix; ?>_target_attr_layer" <?php echo (($new_layer['target_attr_layer']) ? 'checked="checked"' : ''); ?> value="1" /><label for="<?php echo $prefix; ?>_target_attr_layer"><?php _e('Open in a new window',
|
2635 |
-
<p class="description"><?php _e('Use http:// and https:// for external links.',
|
2636 |
</span>
|
2637 |
<span class="wd-group">
|
2638 |
-
<label class="wd-label" title=""><?php _e('Position:',
|
2639 |
X <input id="<?php echo $prefix; ?>_left" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({left: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['left']; ?>" name="<?php echo $prefix; ?>_left" />
|
2640 |
Y <input id="<?php echo $prefix; ?>_top" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({top: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['top']; ?>" name="<?php echo $prefix; ?>_top" />
|
2641 |
-
<p class="description"><?php _e('In addition, you can drag the layer and drop it to the desired position.',
|
2642 |
</span>
|
2643 |
<span class="wd-group">
|
2644 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_imgtransparent" title=""><?php _e('Transparency:',
|
2645 |
<input id="<?php echo $prefix; ?>_imgtransparent" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({opacity: (100 - jQuery(this).val()) / 100, filter: 'Alpha(opacity=' + 100 - jQuery(this).val() + ')'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['imgtransparent']; ?>" name="<?php echo $prefix; ?>_imgtransparent"> %
|
2646 |
-
<p class="description"><?php _e('Value must be between 0 and 100.',
|
2647 |
</span>
|
2648 |
<span class="wd-group">
|
2649 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_layer_callback_list"><?php _e('Add click action:',
|
2650 |
<select class="select_icon select_icon_320" style="width: 120px;" id="<?php echo $prefix; ?>_layer_callback_list" name="<?php echo $prefix; ?>_layer_callback_list" onchange="wds_show_slides_name('<?php echo $prefix; ?>', jQuery(this).val());">
|
2651 |
<?php
|
2652 |
foreach ($layer_callbacks as $key => $layer_callback_list) {
|
@@ -2659,7 +2622,7 @@ class WDSViewSliders_wds {
|
|
2659 |
<p class="description"></p>
|
2660 |
</span>
|
2661 |
<span class="wd-group">
|
2662 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_link_to_slide" class="link_to_slide" style="<?php if ($new_layer['layer_callback_list'] != 'SlideLink') echo 'display:none;'; ?>"><?php _e('Slides Name:',
|
2663 |
<select class="select_icon select_icon_320" style="width: 120px; <?php if ($new_layer['layer_callback_list'] != 'SlideLink') echo 'display:none;'; ?>" id="<?php echo $prefix; ?>_link_to_slide" name="<?php echo $prefix; ?>_link_to_slide">
|
2664 |
<?php
|
2665 |
foreach ($slides_name as $key => $slide_name) {
|
@@ -2678,61 +2641,61 @@ class WDSViewSliders_wds {
|
|
2678 |
<div class="wd-box-section">
|
2679 |
<div class="wd-box-content">
|
2680 |
<span class="wd-group">
|
2681 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_in"><?php _e('Effect In:',
|
2682 |
<span style="display: inline-block;">
|
2683 |
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $new_layer['start']; ?>" name="<?php echo $prefix; ?>_start" /> ms
|
2684 |
-
<p class="description"><?php _e('Start',
|
2685 |
</span>
|
2686 |
<span style="display: inline-block;">
|
2687 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_in" id="<?php echo $prefix; ?>_layer_effect_in" style="width:150px;" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
2688 |
<?php
|
2689 |
foreach ($layer_effects_in as $key => $layer_effect_in) {
|
2690 |
?>
|
2691 |
-
<option <?php echo (
|
2692 |
<?php
|
2693 |
}
|
2694 |
?>
|
2695 |
</select>
|
2696 |
-
<p class="description"><?php _e('Effect',
|
2697 |
</span>
|
2698 |
<span style="display: inline-block;">
|
2699 |
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $new_layer['duration_eff_in']; ?>" name="<?php echo $prefix; ?>_duration_eff_in" /> ms
|
2700 |
-
<p class="description"><?php _e('Duration',
|
2701 |
</span>
|
2702 |
<span style="display: inline-block;">
|
2703 |
-
<input id="<?php echo $prefix; ?>_infinite_in" type="text" name="<?php echo $prefix; ?>_infinite_in" value="<?php echo $new_layer['infinite_in']; ?>" class="spider_int_input" title="<?php _e('0 for play infinte times',
|
2704 |
-
<p class="description"><?php _e('Iteration',
|
2705 |
</span>
|
2706 |
</span>
|
2707 |
<span class="wd-group">
|
2708 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_out"><?php _e('Effect Out:',
|
2709 |
<span style="display: inline-block;">
|
2710 |
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $new_layer['end']; ?>" name="<?php echo $prefix; ?>_end"> ms
|
2711 |
-
<p class="description"><?php _e('Start',
|
2712 |
</span>
|
2713 |
<span style="display: inline-block;">
|
2714 |
<select class="select_icon select_icon_320 wds_link" name="<?php echo $prefix; ?>_layer_effect_out" id="<?php echo $prefix; ?>_layer_effect_out" style="width:150px;" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
2715 |
<?php
|
2716 |
foreach ($layer_effects_out as $key => $layer_effect_out) {
|
2717 |
?>
|
2718 |
-
<option <?php echo (
|
2719 |
<?php
|
2720 |
}
|
2721 |
?>
|
2722 |
</select>
|
2723 |
-
<p class="description"><?php _e('Effect',
|
2724 |
</span>
|
2725 |
<span style="display: inline-block;">
|
2726 |
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $new_layer['duration_eff_out']; ?>" name="<?php echo $prefix; ?>_duration_eff_out"> ms
|
2727 |
-
<p class="description"><?php _e('Duration',
|
2728 |
</span>
|
2729 |
<span style="display: inline-block;">
|
2730 |
<input id="<?php echo $prefix; ?>_infinite_out" type="text" name="<?php echo $prefix; ?>_infinite_out" value="<?php echo $new_layer['infinite_out']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_out'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
2731 |
-
<p class="description"><?php _e('Iteration',
|
2732 |
</span>
|
2733 |
</span>
|
2734 |
<span class="wd-group">
|
2735 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_border_width"><?php _e('Border:',
|
2736 |
<input id="<?php echo $prefix; ?>_border_width" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderWidth: jQuery(this).val()})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['border_width']; ?>" name="<?php echo $prefix; ?>_border_width"> px
|
2737 |
<select class="select_icon" id="<?php echo $prefix; ?>_border_style" onchange="jQuery('#<?php echo $prefix; ?>').css({borderStyle: jQuery(this).val()})" style="width: 80px !important;" name="<?php echo $prefix; ?>_border_style">
|
2738 |
<?php
|
@@ -2747,19 +2710,19 @@ class WDSViewSliders_wds {
|
|
2747 |
<p class="description"></p>
|
2748 |
</span>
|
2749 |
<span class="wd-group">
|
2750 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_border_radius" title=""><?php _e('Radius:',
|
2751 |
<input placeholder="4px" id="<?php echo $prefix; ?>_border_radius" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderRadius: jQuery(this).val()})" value="<?php echo $new_layer['border_radius']; ?>" name="<?php echo $prefix; ?>_border_radius">
|
2752 |
-
<p class="description"><?php _e('Use CSS type values.',
|
2753 |
</span>
|
2754 |
<span class="wd-group">
|
2755 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_shadow"><?php _e('Shadow:',
|
2756 |
<input placeholder="10px 10px 5px #888888" id="<?php echo $prefix; ?>_shadow" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({boxShadow: jQuery(this).val()})" value="<?php echo $new_layer['shadow']; ?>" name="<?php echo $prefix; ?>_shadow" />
|
2757 |
-
<p class="description"><?php _e('Use CSS type values.',
|
2758 |
</span>
|
2759 |
<span class="wd-group">
|
2760 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_add_class"><?php _e('Add class:',
|
2761 |
<input id="<?php echo $prefix; ?>_add_class" class="spider_char_input" type="text" value="<?php echo $new_layer['add_class']; ?>" name="<?php echo $prefix; ?>_add_class" />
|
2762 |
-
<p class="description"><?php _e('Use this option to add a unique class to this layer.',
|
2763 |
</span>
|
2764 |
</div>
|
2765 |
</div>
|
@@ -2876,79 +2839,79 @@ class WDSViewSliders_wds {
|
|
2876 |
<div class="wd-box-section">
|
2877 |
<div class="wd-box-content">
|
2878 |
<span class="wd-group">
|
2879 |
-
<label class="wd-label"><?php _e('Published:',
|
2880 |
<input id="<?php echo $prefix; ?>_published1" type="radio" name="<?php echo $prefix; ?>_published" value="1" <?php echo (($new_layer['published']) ? 'checked="checked"' : ''); ?> />
|
2881 |
-
<label <?php echo (($new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published1"><?php _e('Yes',
|
2882 |
<input id="<?php echo $prefix; ?>_published0" type="radio" name="<?php echo $prefix; ?>_published" value="0" <?php echo (($new_layer['published']) ? '' : 'checked="checked"'); ?> />
|
2883 |
-
<label <?php echo (($new_layer['published']) ? '' : 'class="selected_color"'); ?> for="<?php echo $prefix; ?>_published0"><?php _e('No',
|
2884 |
<p class="description"></p>
|
2885 |
</span>
|
2886 |
|
2887 |
<span class="wd-group">
|
2888 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_text"><?php _e('Text:',
|
2889 |
<textarea id="<?php echo $prefix; ?>_text" class='wds_textarea' name="<?php echo $prefix; ?>_text" onkeyup="wds_new_line('<?php echo $prefix; ?>');"><?php echo $new_layer['text']; ?></textarea>
|
2890 |
-
<input type="button" class="wds_editor_btn button button-secondary" onclick="wds_show_wp_editor('<?php echo $prefix; ?>')" value="<?php _e('Editor',
|
2891 |
<p class="description"></p>
|
2892 |
</span>
|
2893 |
<?php
|
2894 |
/*
|
2895 |
-
|
2896 |
-
|
2897 |
-
|
2898 |
-
|
2899 |
-
|
2900 |
-
|
2901 |
-
|
2902 |
-
|
2903 |
-
|
2904 |
-
|
2905 |
*/
|
2906 |
?>
|
2907 |
<span class="wd-group">
|
2908 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_static_layer"><?php _e('Static layer:',
|
2909 |
<input id="<?php echo $prefix; ?>_static_layer" type="checkbox" name="<?php echo $prefix; ?>_static_layer" <?php echo checked(1, $new_layer['static_layer']); ?> value="1" />
|
2910 |
-
<p class="description"><?php _e('The layer will be visible on all slides.',
|
2911 |
</span>
|
2912 |
<span class="wd-group">
|
2913 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_image_width"><?php _e('Dimensions:',
|
2914 |
<input id="<?php echo $prefix; ?>_image_width" class="spider_int_input" type="text" onchange="wds_text_width(this, '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_width']; ?>" name="<?php echo $prefix; ?>_image_width" /> x
|
2915 |
<input id="<?php echo $prefix; ?>_image_height" class="spider_int_input" type="text" onchange="wds_text_height(this, '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_height']; ?>" name="<?php echo $prefix; ?>_image_height" /> %
|
2916 |
-
<input id="<?php echo $prefix; ?>_image_scale" type="checkbox" onchange="wds_break_word(this, '<?php echo $prefix; ?>')" name="<?php echo $prefix; ?>_image_scale" <?php echo (($new_layer['image_scale']) ? 'checked="checked"' : ''); ?> /><label for="<?php echo $prefix; ?>_image_scale"><?php _e('Break-word',
|
2917 |
-
<p class="description"><?php _e('Leave blank to keep the initial width and height. ',
|
2918 |
</span>
|
2919 |
<span class="wd-group">
|
2920 |
-
<label class="wd-label"><?php _e('Position:',
|
2921 |
X <input id="<?php echo $prefix; ?>_left" class="spider_int_input" type="text" <?php echo ($new_layer['align']) ? 'disabled="disabled"' : ''; ?> onchange="jQuery('#<?php echo $prefix; ?>').css({left: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['left']; ?>" name="<?php echo $prefix; ?>_left" />
|
2922 |
Y <input id="<?php echo $prefix; ?>_top" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({top: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['top']; ?>" name="<?php echo $prefix; ?>_top" />
|
2923 |
-
<input id="<?php echo $prefix; ?>_align_layer" type="checkbox" name="<?php echo $prefix; ?>_align_layer" <?php echo checked(1, $new_layer['align'] ); ?> value="1" onchange="wds_position_left_disabled('<?php echo $prefix; ?>')" /><label for="<?php echo $prefix; ?>_align_layer"><?php _e('Fixed step (left, center, right)',
|
2924 |
-
<p class="description"><?php _e('In addition, you can drag the layer and drop it to the desired position. ',
|
2925 |
</span>
|
2926 |
<span class="wd-group">
|
2927 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_size"><?php _e('Size:',
|
2928 |
<span style="display: inline-block">
|
2929 |
<input id="<?php echo $prefix; ?>_size" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({fontSize: jQuery(this).val() + 'px', lineHeight: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['size']; ?>" name="<?php echo $prefix; ?>_size" /> px
|
2930 |
</span>
|
2931 |
-
<p class="description"><?php _e('Sets the font size of the text.',
|
2932 |
</span>
|
2933 |
<span class="wd-group">
|
2934 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_size"><?php _e('Minimum font size:',
|
2935 |
<span style="display: inline-block;">
|
2936 |
<input id="<?php echo $prefix; ?>_min_size" class="spider_int_input" type="text" onchange="wds_min_size_validation('<?php echo $prefix; ?>')" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['min_size']; ?>" name="<?php echo $prefix; ?>_min_size" /> px
|
2937 |
</span>
|
2938 |
-
<p class="description"><?php _e('Text layer font size shrinks on small screens. Choose the minimum font size, which the text should have.',
|
2939 |
</span>
|
2940 |
<span class="wd-group">
|
2941 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_color"><?php _e('Color:',
|
2942 |
<input id="<?php echo $prefix; ?>_color" class="color" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({color: '#' + jQuery(this).val()})" value="<?php echo $new_layer['color']; ?>" name="<?php echo $prefix; ?>_color" />
|
2943 |
<p class="description"></p>
|
2944 |
</span>
|
2945 |
<span class="wd-group">
|
2946 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_hover_color_text"><?php _e('Hover Color:',
|
2947 |
<input id="<?php echo $prefix; ?>_hover_color_text" class="color" type="text" value="<?php echo $new_layer['hover_color_text']; ?>" name="<?php echo $prefix; ?>_hover_color_text" />
|
2948 |
<p class="description"></p>
|
2949 |
</span>
|
2950 |
<span class="wd-group">
|
2951 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_ffamily"><?php _e('Font family:',
|
2952 |
<select class="select_icon select_icon_320" style="width: 200px;" id="<?php echo $prefix; ?>_ffamily" onchange="wds_change_fonts('<?php echo $prefix; ?>', 1)" name="<?php echo $prefix; ?>_ffamily">
|
2953 |
<?php
|
2954 |
$fonts = (isset($new_layer['google_fonts']) && $new_layer['google_fonts']) ? $google_fonts : $font_families;
|
@@ -2960,13 +2923,13 @@ class WDSViewSliders_wds {
|
|
2960 |
?>
|
2961 |
</select>
|
2962 |
<input id="<?php echo $prefix; ?>_google_fonts1" type="radio" name="<?php echo $prefix; ?>_google_fonts" value="1" <?php echo (($new_layer['google_fonts']) ? 'checked="checked"' : ''); ?> onchange="wds_change_fonts('<?php echo $prefix; ?>')" />
|
2963 |
-
<label for="<?php echo $prefix; ?>_google_fonts1"><?php _e('Google fonts',
|
2964 |
<input id="<?php echo $prefix; ?>_google_fonts0" type="radio" name="<?php echo $prefix;?>_google_fonts" value="0" <?php echo (($new_layer['google_fonts']) ? '' : 'checked="checked"'); ?> onchange="wds_change_fonts('<?php echo $prefix; ?>')" />
|
2965 |
-
<label for="<?php echo $prefix; ?>_google_fonts0"><?php _e('Default',
|
2966 |
<p class="description"></p>
|
2967 |
</span>
|
2968 |
<span class="wd-group">
|
2969 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_fweight"><?php _e('Font weight:',
|
2970 |
<select class="select_icon select_icon_320" style="width:70px" id="<?php echo $prefix; ?>_fweight" onchange="jQuery('#<?php echo $prefix; ?>').css({fontWeight: jQuery(this).val()})" name="<?php echo $prefix; ?>_fweight">
|
2971 |
<?php
|
2972 |
foreach ($font_weights as $key => $fweight) {
|
@@ -2979,13 +2942,13 @@ class WDSViewSliders_wds {
|
|
2979 |
<p class="description"></p>
|
2980 |
</span>
|
2981 |
<span class="wd-group">
|
2982 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_link" title=""><?php _e('Link:',
|
2983 |
<input class="wds_link" id="<?php echo $prefix; ?>_link" type="text" style="width: 200px;" value="<?php echo $new_layer['link']; ?>" name="<?php echo $prefix; ?>_link" />
|
2984 |
-
<input id="<?php echo $prefix; ?>_target_attr_layer" type="checkbox" name="<?php echo $prefix; ?>_target_attr_layer" <?php echo (($new_layer["target_attr_layer"]) ? 'checked="checked"' : ''); ?> value="1" /><label for="<?php echo $prefix; ?>_target_attr_layer"><?php _e('Open in a new window',
|
2985 |
-
<p class="description"><?php _e('Use http:// and https:// for external links.',
|
2986 |
</span>
|
2987 |
<span class="wd-group">
|
2988 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_layer_callback_list"><?php _e('Add click action:',
|
2989 |
<select class="select_icon select_icon_320" style="width: 120px;" id="<?php echo $prefix; ?>_layer_callback_list" name="<?php echo $prefix; ?>_layer_callback_list" onchange="wds_show_slides_name('<?php echo $prefix; ?>', jQuery(this).val())">
|
2990 |
<?php
|
2991 |
foreach ($layer_callbacks as $key => $layer_callback_list) {
|
@@ -2998,7 +2961,7 @@ class WDSViewSliders_wds {
|
|
2998 |
<p class="description"></p>
|
2999 |
</span>
|
3000 |
<span class="wd-group">
|
3001 |
-
<label class="wd-label link_to_slide" for="<?php echo $prefix; ?>_link_to_slide" style="<?php if ($new_layer['layer_callback_list'] != 'SlideLink') echo 'display:none;'; ?>"><?php _e('Slides Name:',
|
3002 |
<select class="select_icon select_icon_320" style="width: 120px; <?php if ($new_layer['layer_callback_list'] != 'SlideLink') echo 'display:none;'; ?>" id="<?php echo $prefix; ?>_link_to_slide" name="<?php echo $prefix; ?>_link_to_slide">
|
3003 |
<?php
|
3004 |
foreach ($slides_name as $key => $slide_name) {
|
@@ -3017,76 +2980,76 @@ class WDSViewSliders_wds {
|
|
3017 |
<div class="wd-box-section">
|
3018 |
<div class="wd-box-content">
|
3019 |
<span class="wd-group">
|
3020 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_in"><?php _e('Effect In:',
|
3021 |
<span style="display: inline-block;">
|
3022 |
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $new_layer['start']; ?>" name="<?php echo $prefix; ?>_start" /> ms
|
3023 |
-
<p class="description"><?php _e('Start',
|
3024 |
</span>
|
3025 |
<span style="display: inline-block;">
|
3026 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_in" id="<?php echo $prefix; ?>_layer_effect_in" style="width:150px;" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
3027 |
<?php
|
3028 |
foreach ($layer_effects_in as $key => $layer_effect_in) {
|
3029 |
?>
|
3030 |
-
<option <?php echo (
|
3031 |
<?php
|
3032 |
}
|
3033 |
?>
|
3034 |
</select>
|
3035 |
-
<p class="description"><?php _e('Effect',
|
3036 |
</span>
|
3037 |
<span style="display: inline-block;">
|
3038 |
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $new_layer['duration_eff_in']; ?>" name="<?php echo $prefix; ?>_duration_eff_in" /> ms
|
3039 |
-
<p class="description"><?php _e('Duration',
|
3040 |
</span>
|
3041 |
<span style="display: inline-block;">
|
3042 |
<input id="<?php echo $prefix; ?>_infinite_in" type="text" name="<?php echo $prefix; ?>_infinite_in" value="<?php echo $new_layer['infinite_in']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_in'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3043 |
-
<p class="description"><?php _e('Iteration',
|
3044 |
</span>
|
3045 |
</span>
|
3046 |
<span class="wd-group">
|
3047 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_out"><?php _e('Effect Out:',
|
3048 |
<span style="display: inline-block;">
|
3049 |
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $new_layer['end']; ?>" name="<?php echo $prefix; ?>_end"> ms
|
3050 |
-
<p class="description"><?php _e('Start',
|
3051 |
</span>
|
3052 |
<span style="display: inline-block;">
|
3053 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_out" id="<?php echo $prefix; ?>_layer_effect_out" style="width:150px;" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
3054 |
<?php
|
3055 |
foreach ($layer_effects_out as $key => $layer_effect_out) {
|
3056 |
?>
|
3057 |
-
<option <?php echo (
|
3058 |
<?php
|
3059 |
}
|
3060 |
?>
|
3061 |
</select>
|
3062 |
-
<p class="description"><?php _e('Effect',
|
3063 |
</span>
|
3064 |
<span style="display: inline-block;">
|
3065 |
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $new_layer['duration_eff_out']; ?>" name="<?php echo $prefix; ?>_duration_eff_out">ms
|
3066 |
-
<p class="description"><?php _e('Duration',
|
3067 |
</span>
|
3068 |
<span style="display: inline-block;">
|
3069 |
<input id="<?php echo $prefix; ?>_infinite_out" type="text" name="<?php echo $prefix; ?>_infinite_out" value="<?php echo $new_layer['infinite_out']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_out'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3070 |
-
<p class="description"><?php _e('Iteration',
|
3071 |
</span>
|
3072 |
</span>
|
3073 |
<span class="wd-group">
|
3074 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_padding" title=""><?php _e('Padding:',
|
3075 |
<input placeholder="5px 10px 10px" id="<?php echo $prefix; ?>_padding" class="spider_char_input" type="text" onchange="document.getElementById('<?php echo $prefix; ?>').style.padding=jQuery(this).val();" value="<?php echo $new_layer['padding']; ?>" name="<?php echo $prefix; ?>_padding">
|
3076 |
-
<p class="description"><?php _e('Use CSS type values.',
|
3077 |
</span>
|
3078 |
<span class="wd-group">
|
3079 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_fbgcolor"><?php _e('Background Color:',
|
3080 |
<input id="<?php echo $prefix; ?>_fbgcolor" class="color" type="text" onchange="wde_change_text_bg_color('<?php echo $prefix; ?>')" value="<?php echo $new_layer['fbgcolor']; ?>" name="<?php echo $prefix; ?>_fbgcolor" />
|
3081 |
<p class="description"></p>
|
3082 |
</span>
|
3083 |
<span class="wd-group">
|
3084 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_transparent" title=""><?php _e('Transparency:',
|
3085 |
<input id="<?php echo $prefix; ?>_transparent" class="spider_int_input" type="text" onchange="wde_change_text_bg_color('<?php echo $prefix; ?>')" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['transparent']; ?>" name="<?php echo $prefix; ?>_transparent"> %
|
3086 |
-
<p class="description"><?php _e('Value must be between 0 and 100.',
|
3087 |
</span>
|
3088 |
<span class="wd-group">
|
3089 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_border_width"><?php _e('Border:',
|
3090 |
<input id="<?php echo $prefix; ?>_border_width" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderWidth: jQuery(this).val()})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['border_width']; ?>" name="<?php echo $prefix; ?>_border_width"> px
|
3091 |
<select class="select_icon select_icon_320" id="<?php echo $prefix; ?>_border_style" onchange="jQuery('#<?php echo $prefix; ?>').css({borderStyle: jQuery(this).val()})" style="width: 80px !important;" name="<?php echo $prefix; ?>_border_style">
|
3092 |
<?php
|
@@ -3100,22 +3063,22 @@ class WDSViewSliders_wds {
|
|
3100 |
<input id="<?php echo $prefix; ?>_border_color" class="color" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderColor: '#' + jQuery(this).val()})" value="<?php echo $new_layer['border_color']; ?>" name="<?php echo $prefix; ?>_border_color">
|
3101 |
</span>
|
3102 |
<span class="wd-group">
|
3103 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_border_radius" title=""><?php _e('Radius:',
|
3104 |
<input placeholder="4px" id="<?php echo $prefix; ?>_border_radius" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderRadius: jQuery(this).val()})" value="<?php echo $new_layer['border_radius']; ?>" name="<?php echo $prefix; ?>_border_radius">
|
3105 |
-
<p class="description"><?php _e('Use CSS type values.',
|
3106 |
</span>
|
3107 |
<span class="wd-group">
|
3108 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_shadow" title=""><?php _e('Shadow:',
|
3109 |
<input placeholder="10px 10px 5px #888888" id="<?php echo $prefix; ?>_shadow" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({boxShadow: jQuery(this).val()})" value="<?php echo $new_layer['shadow']; ?>" name="<?php echo $prefix; ?>_shadow" />
|
3110 |
-
<p class="description"><?php _e('Use CSS type values.',
|
3111 |
</span>
|
3112 |
<span class="wd-group">
|
3113 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_add_class" title=""><?php _e('Add class:',
|
3114 |
<input id="<?php echo $prefix; ?>_add_class" class="spider_char_input" type="text" value="<?php echo $new_layer['add_class']; ?>" name="<?php echo $prefix; ?>_add_class" />
|
3115 |
-
<p class="description"><?php _e('Use this option to add a unique class to this layer.',
|
3116 |
</span>
|
3117 |
<span class="wd-group">
|
3118 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_text_alignment"><?php _e('Text alignment:',
|
3119 |
<select class="select_icon select_icon_320" style="width:70px" id="<?php echo $prefix; ?>_text_alignment" onchange="jQuery('#<?php echo $prefix; ?>').css({textAlign: jQuery(this).val()})" name="<?php echo $prefix; ?>_text_alignment">
|
3120 |
<?php
|
3121 |
foreach ($text_alignments as $key => $text_alignment) {
|
@@ -3229,20 +3192,20 @@ class WDSViewSliders_wds {
|
|
3229 |
<div class="wd-box-section">
|
3230 |
<div class="wd-box-content">
|
3231 |
<span class="wd-group">
|
3232 |
-
<label class="wd-label"><?php _e('Published:',
|
3233 |
<input id="<?php echo $prefix; ?>_published1" type="radio" name="<?php echo $prefix; ?>_published" value="1" <?php echo (($new_layer['published']) ? 'checked="checked"' : ''); ?> />
|
3234 |
-
<label <?php echo (($new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published1"><?php _e('Yes',
|
3235 |
<input id="<?php echo $prefix; ?>_published0" type="radio" name="<?php echo $prefix; ?>_published" value="0" <?php echo (($new_layer['published']) ? '' : 'checked="checked"'); ?> />
|
3236 |
-
<label <?php echo ((!$new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published0"><?php _e('No',
|
3237 |
<p class="description"></p>
|
3238 |
</span>
|
3239 |
<span class="wd-group">
|
3240 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_static_layer"><?php _e('Static layer:',
|
3241 |
<input id="<?php echo $prefix; ?>_static_layer" type="checkbox" name="<?php echo $prefix; ?>_static_layer" <?php echo checked(1, $new_layer['static_layer']); ?> value="1" />
|
3242 |
-
<p class="description"><?php _e('The layer will be visible on all slides.',
|
3243 |
</span>
|
3244 |
<span class="wd-group">
|
3245 |
-
<label class="wd-label" title=""><?php _e('Dimensions:',
|
3246 |
<input type="hidden" id="<?php echo $prefix; ?>_attr_width" name="<?php echo $prefix; ?>_attr_width" value="<?php echo $new_layer['attr_width']; ?>"/>
|
3247 |
<input type="hidden" id="<?php echo $prefix; ?>_attr_height" name="<?php echo $prefix; ?>_attr_height" value="<?php echo $new_layer['attr_height']; ?>"/>
|
3248 |
<input type="hidden" id="<?php echo $prefix; ?>_layer_post_id" name="<?php echo $prefix; ?>_layer_post_id" value="<?php echo $new_layer['image_url']; ?>" />
|
@@ -3251,16 +3214,16 @@ class WDSViewSliders_wds {
|
|
3251 |
<input type="hidden" name="<?php echo $prefix; ?>_image_url" id="<?php echo $prefix; ?>_image_url" value="<?php echo $new_layer['image_url']; ?>" />
|
3252 |
<input id="<?php echo $prefix; ?>_image_width" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_width']; ?>" name="<?php echo $prefix; ?>_image_width" /> x
|
3253 |
<input id="<?php echo $prefix; ?>_image_height" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_height']; ?>" name="<?php echo $prefix; ?>_image_height" /> px
|
3254 |
-
<p class="description"><?php _e('Set width and height of the video.',
|
3255 |
</span>
|
3256 |
<span class="wd-group">
|
3257 |
-
<label class="wd-label" title=""><?php _e('Position:',
|
3258 |
X <input id="<?php echo $prefix; ?>_left" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({left: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['left']; ?>" name="<?php echo $prefix; ?>_left" />
|
3259 |
Y <input id="<?php echo $prefix; ?>_top" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({top: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['top']; ?>" name="<?php echo $prefix; ?>_top" />
|
3260 |
-
<p class="description"><?php _e('In addition, you can drag the layer and drop it to the desired position.',
|
3261 |
</span>
|
3262 |
<span class="wd-group">
|
3263 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_border_width"><?php _e('Border:',
|
3264 |
<input id="<?php echo $prefix; ?>_border_width" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderWidth: jQuery(this).val()})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['border_width']; ?>" name="<?php echo $prefix; ?>_border_width"> px
|
3265 |
<select class="select_icon" id="<?php echo $prefix; ?>_border_style" onchange="jQuery('#<?php echo $prefix; ?>').css({borderStyle: jQuery(this).val()})" style="width: 80px !important;" name="<?php echo $prefix; ?>_border_style">
|
3266 |
<?php
|
@@ -3275,19 +3238,19 @@ class WDSViewSliders_wds {
|
|
3275 |
<p class="description"></p>
|
3276 |
</span>
|
3277 |
<span class="wd-group <?php echo $prefix; ?>_autoplay_td" <?php echo ($new_layer['target_attr_layer'] == "0" && $new_layer['videoType'] == 'upvideo') ? 'style="visibility:hidden"' : ''; ?>>
|
3278 |
-
<label class="wd-label"><?php _e('Autoplay:',
|
3279 |
<input id="<?php echo $prefix; ?>_image_scale1" type="radio" name="<?php echo $prefix; ?>_image_scale" value="on" <?php echo (($new_layer['image_scale'] == "on") ? 'checked="checked"' : ''); ?> />
|
3280 |
-
<label <?php echo (($new_layer['image_scale'] == "on") ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_image_scale1"><?php _e('Yes',
|
3281 |
<input id="<?php echo $prefix; ?>_image_scale0" type="radio" name="<?php echo $prefix; ?>_image_scale" value="off" <?php echo (($new_layer['image_scale'] == "on") ? '' : 'checked="checked"'); ?> />
|
3282 |
-
<label <?php echo (($new_layer['image_scale'] == "on") ? '' : 'class="selected_color"'); ?> for="<?php echo $prefix; ?>_image_scale0"><?php _e('No',
|
3283 |
<p class="description"></p>
|
3284 |
</span>
|
3285 |
<span class="wd-group" <?php echo ($new_layer['alt'] != 'EMBED_OEMBED_YOUTUBE_VIDEO') ? 'style="visibility:hidden"' : ''; ?>>
|
3286 |
-
<label class="wd-label"><?php _e('Disable youtube related video:',
|
3287 |
<input id="<?php echo $prefix; ?>_youtube_rel_layer_video1" type="radio" name="<?php echo $prefix; ?>_youtube_rel_layer_video" value="0" <?php echo ((!$new_layer['youtube_rel_layer_video']) ? 'checked="checked"' : ''); ?> />
|
3288 |
-
<label <?php echo ((!$new_layer['youtube_rel_layer_video']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_youtube_rel_layer_video1"><?php _e('Yes',
|
3289 |
<input id="<?php echo $prefix; ?>_youtube_rel_layer_video0" type="radio" name="<?php echo $prefix; ?>_youtube_rel_layer_video" value="1" <?php echo ((!$new_layer['youtube_rel_layer_video']) ? '' : 'checked="checked"'); ?> />
|
3290 |
-
<label <?php echo (($new_layer['youtube_rel_layer_video']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_youtube_rel_layer_video0"><?php _e('No',
|
3291 |
<p class="description"></p>
|
3292 |
</span>
|
3293 |
</div>
|
@@ -3297,73 +3260,73 @@ class WDSViewSliders_wds {
|
|
3297 |
<div class="wd-box-section">
|
3298 |
<div class="wd-box-content">
|
3299 |
<span class="wd-group">
|
3300 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_in"><?php _e('Effect In:',
|
3301 |
<span style="display: inline-block;">
|
3302 |
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $new_layer['start']; ?>" name="<?php echo $prefix; ?>_start" /> ms
|
3303 |
-
<p class="description"><?php _e('Start',
|
3304 |
</span>
|
3305 |
<span style="display: inline-block;">
|
3306 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_in" id="<?php echo $prefix; ?>_layer_effect_in" style="width:150px;" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
3307 |
<?php
|
3308 |
foreach ($layer_effects_in as $key => $layer_effect_in) {
|
3309 |
?>
|
3310 |
-
<option <?php echo (
|
3311 |
<?php
|
3312 |
}
|
3313 |
?>
|
3314 |
</select>
|
3315 |
-
<p class="description"><?php _e('Effect',
|
3316 |
</span>
|
3317 |
<span style="display: inline-block;">
|
3318 |
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $new_layer['duration_eff_in']; ?>" name="<?php echo $prefix; ?>_duration_eff_in" /> ms
|
3319 |
-
<p class="description"><?php _e('Duration',
|
3320 |
</span>
|
3321 |
<span style="display: inline-block;">
|
3322 |
<input id="<?php echo $prefix; ?>_infinite_in" type="text" name="<?php echo $prefix; ?>_infinite_in" value="<?php echo $new_layer['infinite_in']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_in'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3323 |
-
<p class="description"><?php _e('Iteration',
|
3324 |
</span>
|
3325 |
</span>
|
3326 |
<span class="wd-group">
|
3327 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_out"><?php _e('Effect Out:',
|
3328 |
<span style="display: inline-block;">
|
3329 |
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $new_layer['end']; ?>" name="<?php echo $prefix; ?>_end"> ms
|
3330 |
-
<p class="description"><?php _e('Start',
|
3331 |
</span>
|
3332 |
<span style="display: inline-block;">
|
3333 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_out" id="<?php echo $prefix; ?>_layer_effect_out" style="width:150px;" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
3334 |
<?php
|
3335 |
foreach ($layer_effects_out as $key => $layer_effect_out) {
|
3336 |
?>
|
3337 |
-
<option <?php echo (
|
3338 |
<?php
|
3339 |
}
|
3340 |
?>
|
3341 |
</select>
|
3342 |
-
<p class="description"><?php _e('Effect',
|
3343 |
</span>
|
3344 |
<span style="display: inline-block;">
|
3345 |
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $new_layer['duration_eff_out']; ?>" name="<?php echo $prefix; ?>_duration_eff_out"> ms
|
3346 |
-
<p class="description"><?php _e('Duration',
|
3347 |
</span>
|
3348 |
<span style="display: inline-block;">
|
3349 |
<input id="<?php echo $prefix; ?>_infinite_out" type="text" name="<?php echo $prefix; ?>_infinite_out" value="<?php echo $new_layer['infinite_out']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_out'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3350 |
-
<p class="description"><?php _e('Iteration',
|
3351 |
</span>
|
3352 |
</span>
|
3353 |
<span class="wd-group">
|
3354 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_border_radius" title=""><?php _e('Radius:',
|
3355 |
<input placeholder="4px" id="<?php echo $prefix; ?>_border_radius" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderRadius: jQuery(this).val()})" value="<?php echo $new_layer['border_radius']; ?>" name="<?php echo $prefix; ?>_border_radius">
|
3356 |
-
<p class="description"><?php _e('Use CSS type values.',
|
3357 |
</span>
|
3358 |
<span class="wd-group">
|
3359 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_shadow" title=""><?php _e('Shadow:',
|
3360 |
<input placeholder="10px 10px 5px #888888" id="<?php echo $prefix; ?>_shadow" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({boxShadow: jQuery(this).val()})" value="<?php echo $new_layer['shadow']; ?>" name="<?php echo $prefix; ?>_shadow" />
|
3361 |
-
<p class="description"><?php _e('Use CSS type values.',
|
3362 |
</span>
|
3363 |
<span class="wd-group">
|
3364 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_add_class"><?php _e('Add class:',
|
3365 |
<input id="<?php echo $prefix; ?>_add_class" class="spider_char_input" type="text" value="<?php echo $new_layer['add_class']; ?>" name="<?php echo $prefix; ?>_add_class" />
|
3366 |
-
<p class="description"><?php _e('Use this option to add a unique class to this layer.',
|
3367 |
</span>
|
3368 |
</div>
|
3369 |
</div>
|
@@ -3467,20 +3430,20 @@ class WDSViewSliders_wds {
|
|
3467 |
<div class="wd-box-section">
|
3468 |
<div class="wd-box-content">
|
3469 |
<span class="wd-group">
|
3470 |
-
<label class="wd-label"><?php _e('Published:',
|
3471 |
<input id="<?php echo $prefix; ?>_published1" type="radio" name="<?php echo $prefix; ?>_published" value="1" <?php echo (($new_layer['published']) ? 'checked="checked"' : ''); ?> />
|
3472 |
-
<label <?php echo (($new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published1"><?php _e('Yes',
|
3473 |
<input id="<?php echo $prefix; ?>_published0" type="radio" name="<?php echo $prefix; ?>_published" value="0" <?php echo (($new_layer['published']) ? '' : 'checked="checked"'); ?> />
|
3474 |
-
<label <?php echo ((!$new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published0"><?php _e('No',
|
3475 |
<p class="description"></p>
|
3476 |
</span>
|
3477 |
<span class="wd-group">
|
3478 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_static_layer"><?php _e('Static layer:',
|
3479 |
<input id="<?php echo $prefix; ?>_static_layer" type="checkbox" name="<?php echo $prefix; ?>_static_layer" <?php echo checked(1, $new_layer['static_layer']); ?> value="1" />
|
3480 |
-
<p class="description"><?php _e('The layer will be visible on all slides.',
|
3481 |
</span>
|
3482 |
<span class="wd-group">
|
3483 |
-
<label class="wd-label" title=""><?php _e('Dimensions:',
|
3484 |
<input type="hidden" id="<?php echo $prefix; ?>_attr_width" name="<?php echo $prefix; ?>_attr_width" value="<?php echo $new_layer['attr_width']; ?>"/>
|
3485 |
<input type="hidden" id="<?php echo $prefix; ?>_attr_height" name="<?php echo $prefix; ?>_attr_height" value="<?php echo $new_layer['attr_height']; ?>"/>
|
3486 |
<input type="hidden" id="<?php echo $prefix; ?>_layer_post_id" name="<?php echo $prefix; ?>_layer_post_id" value="<?php echo $new_layer['image_url']; ?>" />
|
@@ -3489,16 +3452,16 @@ class WDSViewSliders_wds {
|
|
3489 |
<input type="hidden" name="<?php echo $prefix; ?>_image_url" id="<?php echo $prefix; ?>_image_url" value="<?php echo $new_layer['image_url']; ?>" />
|
3490 |
<input id="<?php echo $prefix; ?>_image_width" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_width']; ?>" name="<?php echo $prefix; ?>_image_width" /> x
|
3491 |
<input id="<?php echo $prefix; ?>_image_height" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_height']; ?>" name="<?php echo $prefix; ?>_image_height" /> px
|
3492 |
-
<p class="description"><?php _e('Set width and height of the video.',
|
3493 |
</span>
|
3494 |
<span class="wd-group">
|
3495 |
-
<label class="wd-label" title=""><?php _e('Position:',
|
3496 |
X <input id="<?php echo $prefix; ?>_left" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({left: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['left']; ?>" name="<?php echo $prefix; ?>_left" />
|
3497 |
Y <input id="<?php echo $prefix; ?>_top" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({top: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['top']; ?>" name="<?php echo $prefix; ?>_top" />
|
3498 |
-
<p class="description"><?php _e('In addition, you can drag the layer and drop it to the desired position.',
|
3499 |
</span>
|
3500 |
<span class="wd-group">
|
3501 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_border_width"><?php _e('Border:',
|
3502 |
<input id="<?php echo $prefix; ?>_border_width" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderWidth: jQuery(this).val()})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['border_width']; ?>" name="<?php echo $prefix; ?>_border_width"> px
|
3503 |
<select class="select_icon" id="<?php echo $prefix; ?>_border_style" onchange="jQuery('#<?php echo $prefix; ?>').css({borderStyle: jQuery(this).val()})" style="width: 80px !important;" name="<?php echo $prefix; ?>_border_style">
|
3504 |
<?php
|
@@ -3513,27 +3476,27 @@ class WDSViewSliders_wds {
|
|
3513 |
<p class="description"></p>
|
3514 |
</span>
|
3515 |
<span class="wd-group">
|
3516 |
-
<label class="wd-label"><?php _e('Video Loop:',
|
3517 |
<input id="<?php echo $prefix; ?>_layer_video_loop1" type="radio" name="<?php echo $prefix; ?>_layer_video_loop" value="1" <?php echo (($new_layer['layer_video_loop']) ? 'checked="checked"' : ''); ?> />
|
3518 |
-
<label <?php echo (($new_layer['layer_video_loop']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_layer_video_loop1"><?php _e('Yes',
|
3519 |
<input id="<?php echo $prefix; ?>_layer_video_loop0" type="radio" name="<?php echo $prefix; ?>_layer_video_loop" value="0" <?php echo (($new_layer['layer_video_loop']) ? '' : 'checked="checked"'); ?> />
|
3520 |
-
<label <?php echo ((!$new_layer['layer_video_loop']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_layer_video_loop0"><?php _e('No',
|
3521 |
<p class="description"></p>
|
3522 |
</span>
|
3523 |
<span class="wd-group">
|
3524 |
-
<label class="wd-label"><?php _e('Controls:',
|
3525 |
<input id="<?php echo $prefix; ?>_target_attr_layer1" type="radio" onClick="wds_enable_disable_autoplay('visible', '<?php echo $prefix; ?>_autoplay_td', '<?php echo $prefix; ?>_target_attr_layer1')" name="<?php echo $prefix; ?>_controls" value="1" <?php echo (($new_layer['target_attr_layer'] == "1") ? 'checked="checked"' : ''); ?> />
|
3526 |
-
<label <?php echo (($new_layer['target_attr_layer'] == "1") ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_target_attr_layer1"><?php _e('Yes',
|
3527 |
<input id="<?php echo $prefix; ?>_target_attr_layer0" type="radio" onClick="wds_enable_disable_autoplay('hidden', '<?php echo $prefix; ?>_autoplay_td', '<?php echo $prefix; ?>_target_attr_layer0')" name="<?php echo $prefix; ?>_controls" value="0" <?php echo (($new_layer['target_attr_layer'] == "1") ? '' : 'checked="checked"'); ?> />
|
3528 |
-
<label <?php echo (($new_layer['target_attr_layer'] == "1") ? '' : 'class="selected_color"'); ?> for="<?php echo $prefix; ?>_target_attr_layer0"><?php _e('No',
|
3529 |
<p class="description"></p>
|
3530 |
</span>
|
3531 |
<span class="wd-group <?php echo $prefix; ?>_autoplay_td" <?php echo ($new_layer['target_attr_layer'] == "0" && $new_layer['videoType'] == 'upvideo') ? 'style="visibility:hidden"' : ''; ?>>
|
3532 |
-
<label class="wd-label"><?php _e('Autoplay:',
|
3533 |
<input id="<?php echo $prefix; ?>_image_scale1" type="radio" name="<?php echo $prefix; ?>_image_scale" value="on" <?php echo (($new_layer['image_scale'] == "on") ? 'checked="checked"' : ''); ?> />
|
3534 |
-
<label <?php echo (($new_layer['image_scale'] == "on") ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_image_scale1"><?php _e('Yes',
|
3535 |
<input id="<?php echo $prefix; ?>_image_scale0" type="radio" name="<?php echo $prefix; ?>_image_scale" value="off" <?php echo (($new_layer['image_scale'] == "on") ? '' : 'checked="checked"'); ?> />
|
3536 |
-
<label <?php echo (($new_layer['image_scale'] == "on") ? '' : 'class="selected_color"'); ?> for="<?php echo $prefix; ?>_image_scale0"><?php _e('No',
|
3537 |
<p class="description"></p>
|
3538 |
</span>
|
3539 |
</div>
|
@@ -3543,73 +3506,73 @@ class WDSViewSliders_wds {
|
|
3543 |
<div class="wd-box-section">
|
3544 |
<div class="wd-box-content">
|
3545 |
<span class="wd-group">
|
3546 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_in"><?php _e('Effect In:',
|
3547 |
<span style="display: inline-block;">
|
3548 |
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $new_layer['start']; ?>" name="<?php echo $prefix; ?>_start" /> ms
|
3549 |
-
<p class="description"><?php _e('Start',
|
3550 |
</span>
|
3551 |
<span style="display: inline-block;">
|
3552 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_in" id="<?php echo $prefix; ?>_layer_effect_in" style="width:150px;" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
3553 |
<?php
|
3554 |
foreach ($layer_effects_in as $key => $layer_effect_in) {
|
3555 |
?>
|
3556 |
-
<option <?php echo (
|
3557 |
<?php
|
3558 |
}
|
3559 |
?>
|
3560 |
</select>
|
3561 |
-
<p class="description"><?php _e('Effect',
|
3562 |
</span>
|
3563 |
<span style="display: inline-block;">
|
3564 |
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $new_layer['duration_eff_in']; ?>" name="<?php echo $prefix; ?>_duration_eff_in" /> ms
|
3565 |
-
<p class="description"><?php _e('Duration',
|
3566 |
</span>
|
3567 |
<span style="display: inline-block;">
|
3568 |
<input id="<?php echo $prefix; ?>_infinite_in" type="text" name="<?php echo $prefix; ?>_infinite_in" value="<?php echo $new_layer['infinite_in']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_in'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3569 |
-
<p class="description"><?php _e('Iteration',
|
3570 |
</span>
|
3571 |
</span>
|
3572 |
<span class="wd-group">
|
3573 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_out"><?php _e('Effect Out:',
|
3574 |
<span style="display: inline-block;">
|
3575 |
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $new_layer['end']; ?>" name="<?php echo $prefix; ?>_end"> ms
|
3576 |
-
<p class="description"><?php _e('Start',
|
3577 |
</span>
|
3578 |
<span style="display: inline-block;">
|
3579 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_out" id="<?php echo $prefix; ?>_layer_effect_out" style="width:150px;" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
3580 |
<?php
|
3581 |
foreach ($layer_effects_out as $key => $layer_effect_out) {
|
3582 |
?>
|
3583 |
-
<option <?php echo (
|
3584 |
<?php
|
3585 |
}
|
3586 |
?>
|
3587 |
</select>
|
3588 |
-
<p class="description"><?php _e('Effect',
|
3589 |
</span>
|
3590 |
<span style="display: inline-block;">
|
3591 |
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $new_layer['duration_eff_out']; ?>" name="<?php echo $prefix; ?>_duration_eff_out"> ms
|
3592 |
-
<p class="description"><?php _e('Duration',
|
3593 |
</span>
|
3594 |
<span style="display: inline-block;">
|
3595 |
<input id="<?php echo $prefix; ?>_infinite_out" type="text" name="<?php echo $prefix; ?>_infinite_out" value="<?php echo $new_layer['infinite_out']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_out'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3596 |
-
<p class="description"><?php _e('Iteration',
|
3597 |
</span>
|
3598 |
</span>
|
3599 |
<span class="wd-group">
|
3600 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_border_radius" title=""><?php _e('Radius:',
|
3601 |
<input placeholder="4px" id="<?php echo $prefix; ?>_border_radius" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderRadius: jQuery(this).val()})" value="<?php echo $new_layer['border_radius']; ?>" name="<?php echo $prefix; ?>_border_radius">
|
3602 |
-
<p class="description"><?php _e('Use CSS type values.',
|
3603 |
</span>
|
3604 |
<span class="wd-group">
|
3605 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_shadow" title=""><?php _e('Shadow:',
|
3606 |
<input placeholder="10px 10px 5px #888888" id="<?php echo $prefix; ?>_shadow" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({boxShadow: jQuery(this).val()})" value="<?php echo $new_layer['shadow']; ?>" name="<?php echo $prefix; ?>_shadow" />
|
3607 |
-
<p class="description"><?php _e('Use CSS type values.',
|
3608 |
</span>
|
3609 |
<span class="wd-group">
|
3610 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_add_class" title=""><?php _e('Add class:',
|
3611 |
<input id="<?php echo $prefix; ?>_add_class" class="spider_char_input" type="text" value="<?php echo $new_layer['add_class']; ?>" name="<?php echo $prefix; ?>_add_class" />
|
3612 |
-
<p class="description"><?php _e('Use this option to add a unique class to this layer.',
|
3613 |
</span>
|
3614 |
</div>
|
3615 |
</div>
|
@@ -3735,44 +3698,44 @@ class WDSViewSliders_wds {
|
|
3735 |
<div class="wd-box-section">
|
3736 |
<div class="wd-box-content">
|
3737 |
<span class="wd-group">
|
3738 |
-
<label class="wd-label"><?php _e('Published:',
|
3739 |
<input id="<?php echo $prefix; ?>_published1" type="radio" name="<?php echo $prefix; ?>_published" value="1" <?php echo (($new_layer['published']) ? 'checked="checked"' : ''); ?> />
|
3740 |
-
<label <?php echo (($new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published1"><?php _e('Yes',
|
3741 |
<input id="<?php echo $prefix; ?>_published0" type="radio" name="<?php echo $prefix; ?>_published" value="0" <?php echo (($new_layer['published']) ? '' : 'checked="checked"'); ?> />
|
3742 |
-
<label <?php echo (($new_layer['published']) ? '' : 'class="selected_color"'); ?> for="<?php echo $prefix; ?>_published0"><?php _e('No',
|
3743 |
<p class="description"></p>
|
3744 |
</span>
|
3745 |
<span class="wd-group">
|
3746 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_text"><?php _e('Text:',
|
3747 |
<textarea id="<?php echo $prefix; ?>_text" class="wds_textarea" name="<?php echo $prefix; ?>_text" onkeyup="wds_new_line('<?php echo $prefix; ?>');"><?php echo $new_layer['text']; ?></textarea>
|
3748 |
<p class="description"></p>
|
3749 |
</span>
|
3750 |
<span class="wd-group">
|
3751 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_static_layer"><?php _e('Static layer:',
|
3752 |
<input id="<?php echo $prefix; ?>_static_layer" type="checkbox" name="<?php echo $prefix; ?>_static_layer" <?php echo checked(1, $new_layer['static_layer']); ?> value="1" />
|
3753 |
-
<p class="description"><?php _e('The layer will be visible on all slides.',
|
3754 |
</span>
|
3755 |
<span class="wd-group">
|
3756 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_image_width" title=""><?php _e('Dimensions:',
|
3757 |
<input id="<?php echo $prefix; ?>_image_width" class="spider_int_input" type="text" onchange="wds_hotspot_text_width('<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_width']; ?>" name="<?php echo $prefix; ?>_image_width" /> x
|
3758 |
<input id="<?php echo $prefix; ?>_image_height" class="spider_int_input" type="text" onchange="wds_hotspot_text_width('<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_height']; ?>" name="<?php echo $prefix; ?>_image_height" /> px
|
3759 |
-
<input id="<?php echo $prefix; ?>_image_scale" type="checkbox" onchange="wds_break_word(this, '<?php echo $prefix; ?>')" name="<?php echo $prefix; ?>_image_scale" <?php echo (($new_layer['image_scale']) ? 'checked="checked"' : ''); ?> /><label for="<?php echo $prefix; ?>_image_scale"><?php _e('Break-word',
|
3760 |
-
<p class="description"><?php _e('Leave blank to keep the initial width and height. ',
|
3761 |
</span>
|
3762 |
<span class="wd-group">
|
3763 |
-
<label class="wd-label" title=""><?php _e('Position:',
|
3764 |
X <input id="<?php echo $prefix; ?>_div_left" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>_div').css({left: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['left']; ?>" name="<?php echo $prefix; ?>_left" />
|
3765 |
Y <input id="<?php echo $prefix; ?>_div_top" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>_div').css({top: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['top']; ?>" name="<?php echo $prefix; ?>_top" />
|
3766 |
-
<p class="description"><?php _e('In addition, you can drag the layer and drop it to the desired position.',
|
3767 |
</span>
|
3768 |
<span class="wd-group">
|
3769 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_link" title=""><?php _e('Link:',
|
3770 |
<input id="<?php echo $prefix; ?>_link" type="text" size="39" class="wds_link" value="<?php echo $new_layer['link']; ?>" name="<?php echo $prefix; ?>_link" />
|
3771 |
-
<input id="<?php echo $prefix; ?>_target_attr_layer" type="checkbox" name="<?php echo $prefix; ?>_target_attr_layer" <?php echo (($new_layer['target_attr_layer']) ? 'checked="checked"' : ''); ?> value="1" /><label for="<?php echo $prefix; ?>_target_attr_layer"><?php _e('Open in a new window',
|
3772 |
-
<p class="description"><?php _e('Use http:// and https:// for external links.',
|
3773 |
</span>
|
3774 |
<span class="wd-group">
|
3775 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_htextposition"><?php _e('Hotspot text position:',
|
3776 |
<select class="select_icon select_icon_320" id="<?php echo $prefix; ?>_htextposition" name="<?php echo $prefix; ?>_htextposition" onchange="jQuery('#<?php echo $prefix; ?>_div').attr('data-text-position', jQuery(this).val()); wds_hotspot_position('<?php echo $prefix; ?>')">
|
3777 |
<?php
|
3778 |
foreach ($hotp_text_positions as $key => $hotp_text_position) {
|
@@ -3785,22 +3748,22 @@ class WDSViewSliders_wds {
|
|
3785 |
<p class="description"></p>
|
3786 |
</span>
|
3787 |
<span class="wd-group">
|
3788 |
-
<label class="wd-label" title=""><?php _e('Show Hotspot text:',
|
3789 |
-
<input type="radio" name="<?php echo $prefix; ?>_hotspot_text_display" id="<?php echo $prefix; ?>_hotspot_text_display_1" value="hover" <?php if ($new_layer['hotspot_text_display'] == 'hover') echo 'checked="checked"'; ?> /><label <?php echo $new_layer['hotspot_text_display'] == 'hover' ? 'class="selected_color"' : ''; ?> for="<?php echo $prefix; ?>_hotspot_text_display_1"><?php _e('On hover',
|
3790 |
-
<input type="radio" name="<?php echo $prefix; ?>_hotspot_text_display" id="<?php echo $prefix; ?>_hotspot_text_display_0" value="click" <?php if ($new_layer['hotspot_text_display'] == 'click' ) echo 'checked="checked"'; ?> /><label <?php echo $new_layer['hotspot_text_display'] == 'click' ? 'class="selected_color"' : ''; ?> for="<?php echo $prefix; ?>_hotspot_text_display_0"><?php _e('On click',
|
3791 |
-
<p class="description"><?php _e('Select between the option of always displaying the navigation buttons or only when hovered.',
|
3792 |
</span>
|
3793 |
<span class="wd-group">
|
3794 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_link"><?php _e('Hotspot Width:',
|
3795 |
<input id="<?php echo $prefix; ?>_hotp_width" class="spider_int_input" type="text" onchange="wds_hotspot_width('<?php echo $prefix; ?>')" value="<?php echo $new_layer['hotp_width']; ?>" name="<?php echo $prefix; ?>_hotp_width" /> px
|
3796 |
</span>
|
3797 |
<span class="wd-group">
|
3798 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_hotp_fbgcolor"><?php _e('Hotspot Background Color:',
|
3799 |
<input id="<?php echo $prefix; ?>_hotp_fbgcolor" class="color" type="text" onchange="jQuery('#<?php echo $prefix; ?>_round').css({backgroundColor: '#' + jQuery(this).val()})" value="<?php echo $new_layer['hotp_fbgcolor']; ?>" name="<?php echo $prefix; ?>_hotp_fbgcolor" />
|
3800 |
<p class="description"></p>
|
3801 |
</span>
|
3802 |
<span class="wd-group">
|
3803 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_hotp_border_width"><?php _e('Hotspot Border:',
|
3804 |
<input id="<?php echo $prefix; ?>_round_hotp_border_width" class="spider_int_input" type="text" onchange="wds_hotpborder_width('<?php echo $prefix; ?>')" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['hotp_border_width']; ?>" name="<?php echo $prefix; ?>_hotp_border_width"> px
|
3805 |
<select class="select_icon select_icon_320" id="<?php echo $prefix; ?>_round_hotp_border_style" onchange="wds_hotpborder_width('<?php echo $prefix; ?>')" style="width: 80px;" name="<?php echo $prefix; ?>_hotp_border_style">
|
3806 |
<?php
|
@@ -3815,20 +3778,20 @@ class WDSViewSliders_wds {
|
|
3815 |
<p class="description"></p>
|
3816 |
</span>
|
3817 |
<span class="wd-group">
|
3818 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_hotp_border_radius" title=""><?php _e('Hotspot Radius:',
|
3819 |
<input placeholder="4px" id="<?php echo $prefix; ?>_hotp_border_radius" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>_round').css({borderRadius: jQuery(this).val()});jQuery('#<?php echo $prefix; ?>_round_effect').css({borderRadius: jQuery(this).val()})" value="<?php echo $new_layer['hotp_border_radius']; ?>" name="<?php echo $prefix; ?>_hotp_border_radius">
|
3820 |
-
<p class="description"><?php _e('Use CSS type values.',
|
3821 |
</span>
|
3822 |
<span class="wd-group">
|
3823 |
-
<label class="wd-label"><?php _e('Hotspot Animation:',
|
3824 |
<input id="<?php echo $prefix; ?>_hotspot_animation1" type="radio" name="<?php echo $prefix; ?>_hotspot_animation" value="1" <?php echo (($new_layer['hotspot_animation']) ? 'checked="checked"' : ''); ?> />
|
3825 |
-
<label <?php echo (($new_layer['hotspot_animation']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_hotspot_animation1"><?php _e('Yes',
|
3826 |
<input id="<?php echo $prefix; ?>_hotspot_animation0" type="radio" name="<?php echo $prefix; ?>_hotspot_animation" value="0" <?php echo (($new_layer['hotspot_animation']) ? '' : 'checked="checked"'); ?> />
|
3827 |
-
<label <?php echo (($new_layer['hotspot_animation']) ? '' : 'class="selected_color"'); ?> for="<?php echo $prefix; ?>_hotspot_animation0"><?php _e('No',
|
3828 |
<p class="description"></p>
|
3829 |
</span>
|
3830 |
<span class="wd-group">
|
3831 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_layer_callback_list"><?php _e('Add click action:',
|
3832 |
<select class="select_icon select_icon_320" style="width: 120px;" id="<?php echo $prefix; ?>_layer_callback_list" name="<?php echo $prefix; ?>_layer_callback_list" onchange="wds_show_slides_name('<?php echo $prefix; ?>', jQuery(this).val())">
|
3833 |
<?php
|
3834 |
foreach ($layer_callbacks as $key => $layer_callback_list) {
|
@@ -3841,7 +3804,7 @@ class WDSViewSliders_wds {
|
|
3841 |
<p class="description"></p>
|
3842 |
</span>
|
3843 |
<span class="wd-group">
|
3844 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_link_to_slide" class="link_to_slide" style="<?php if ($new_layer['layer_callback_list'] != 'SlideLink') echo 'display:none;'; ?>"><?php _e('Slides Name:',
|
3845 |
<select class="select_icon select_icon_320" style="width: 120px; <?php if ($new_layer['layer_callback_list'] != 'SlideLink') echo 'display:none;'; ?>" id="<?php echo $prefix; ?>_link_to_slide" name="<?php echo $prefix; ?>_link_to_slide">
|
3846 |
<?php
|
3847 |
foreach ($slides_name as $key => $slide_name) {
|
@@ -3860,86 +3823,86 @@ class WDSViewSliders_wds {
|
|
3860 |
<div class="wd-box-section">
|
3861 |
<div class="wd-box-content">
|
3862 |
<span class="wd-group">
|
3863 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_in"><?php _e('Effect In:',
|
3864 |
<span style="display: inline-block;">
|
3865 |
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $new_layer['start']; ?>" name="<?php echo $prefix; ?>_start" /> ms
|
3866 |
-
<p class="description"><?php _e('Start',
|
3867 |
</span>
|
3868 |
<span style="display: inline-block;">
|
3869 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_in" id="<?php echo $prefix; ?>_layer_effect_in" style="width:150px;" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
3870 |
<?php
|
3871 |
foreach ($layer_effects_in as $key => $layer_effect_in) {
|
3872 |
?>
|
3873 |
-
<option <?php echo (
|
3874 |
<?php
|
3875 |
}
|
3876 |
?>
|
3877 |
</select>
|
3878 |
-
<p class="description"><?php _e('Effect',
|
3879 |
</span>
|
3880 |
<span style="display: inline-block;">
|
3881 |
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $new_layer['duration_eff_in']; ?>" name="<?php echo $prefix; ?>_duration_eff_in" />ms
|
3882 |
-
<p class="description"><?php _e('Duration',
|
3883 |
</span>
|
3884 |
<span style="display: inline-block;">
|
3885 |
<input id="<?php echo $prefix; ?>_infinite_in" type="text" name="<?php echo $prefix; ?>_infinite_in" value="<?php echo $new_layer['infinite_in']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_in'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3886 |
-
<p class="description"><?php _e('Iteration',
|
3887 |
</span>
|
3888 |
</span>
|
3889 |
<span class="wd-group">
|
3890 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_out"><?php _e('Effect Out:',
|
3891 |
<span style="display: inline-block;">
|
3892 |
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $new_layer['end']; ?>" name="<?php echo $prefix; ?>_end"> ms
|
3893 |
-
<p class="description"><?php _e('Start',
|
3894 |
</span>
|
3895 |
<span style="display: inline-block;">
|
3896 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_out" id="<?php echo $prefix; ?>_layer_effect_out" style="width:150px;" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
3897 |
<?php
|
3898 |
foreach ($layer_effects_out as $key => $layer_effect_out) {
|
3899 |
?>
|
3900 |
-
<option <?php echo (
|
3901 |
<?php
|
3902 |
}
|
3903 |
?>
|
3904 |
</select>
|
3905 |
-
<p class="description"><?php _e('Effect',
|
3906 |
</span>
|
3907 |
<span style="display: inline-block;">
|
3908 |
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $new_layer['duration_eff_out']; ?>" name="<?php echo $prefix; ?>_duration_eff_out"> ms
|
3909 |
-
<p class="description"><?php _e('Duration',
|
3910 |
</span>
|
3911 |
<span style="display: inline-block;">
|
3912 |
<input id="<?php echo $prefix; ?>_infinite_out" type="text" name="<?php echo $prefix; ?>_infinite_out" value="<?php echo $new_layer['infinite_out']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_out'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3913 |
-
<p class="description"><?php _e('Iteration',
|
3914 |
</span>
|
3915 |
</span>
|
3916 |
<span class="wd-group">
|
3917 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_padding" title=""><?php _e('Padding:',
|
3918 |
<input placeholder="5px 10px 10px" id="<?php echo $prefix; ?>_padding" class="spider_char_input" type="text" onchange="document.getElementById('<?php echo $prefix; ?>').style.padding=jQuery(this).val();" value="<?php echo $new_layer['padding']; ?>" name="<?php echo $prefix; ?>_padding">
|
3919 |
-
<p class="description"><?php _e('Use CSS type values.',
|
3920 |
</span>
|
3921 |
<span class="wd-group">
|
3922 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_size"><?php _e('Size:',
|
3923 |
<span style="display: inline-block">
|
3924 |
<input id="<?php echo $prefix; ?>_size" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({fontSize: jQuery(this).val() + 'px', lineHeight: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['size']; ?>" name="<?php echo $prefix; ?>_size" /> px
|
3925 |
</span>
|
3926 |
-
<p class="description"><?php _e('Sets the font size of the text.',
|
3927 |
</span>
|
3928 |
<span class="wd-group">
|
3929 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_size"><?php _e('Minimum font size:',
|
3930 |
<span style="display: inline-block;">
|
3931 |
<input id="<?php echo $prefix; ?>_min_size" class="spider_int_input" type="text" onchange="wds_min_size_validation('<?php echo $prefix; ?>')" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['min_size']; ?>" name="<?php echo $prefix; ?>_min_size" /> px
|
3932 |
</span>
|
3933 |
-
<p class="description"><?php _e('Text layer font size shrinks on small screens. Choose the minimum font size, which the text should have.',
|
3934 |
</span>
|
3935 |
|
3936 |
<span class="wd-group">
|
3937 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_color"><?php _e('Color:',
|
3938 |
<input id="<?php echo $prefix; ?>_color" class="color" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({color: '#' + jQuery(this).val()})" value="<?php echo $new_layer['color']; ?>" name="<?php echo $prefix; ?>_color" />
|
3939 |
<p class="description"></p>
|
3940 |
</span>
|
3941 |
<span class="wd-group">
|
3942 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_ffamily"><?php _e('Font family:',
|
3943 |
<select class="select_icon select_icon_320" style="width: 180px;" id="<?php echo $prefix; ?>_ffamily" onchange="wds_change_fonts('<?php echo $prefix; ?>', 1)" name="<?php echo $prefix; ?>_ffamily">
|
3944 |
<?php
|
3945 |
$fonts = (isset($new_layer['google_fonts']) && $new_layer['google_fonts']) ? $google_fonts : $font_families;
|
@@ -3953,11 +3916,11 @@ class WDSViewSliders_wds {
|
|
3953 |
<input id="<?php echo $prefix; ?>_google_fonts1" type="radio" name="<?php echo $prefix; ?>_google_fonts" value="1" <?php echo (($new_layer['google_fonts']) ? 'checked="checked"' : ''); ?> onchange="wds_change_fonts('<?php echo $prefix; ?>')" />
|
3954 |
<label for="<?php echo $prefix; ?>_google_fonts1">Google fonts</label>
|
3955 |
<input id="<?php echo $prefix; ?>_google_fonts0" type="radio" name="<?php echo $prefix; ?>_google_fonts" value="0" <?php echo (($new_layer['google_fonts']) ? '' : 'checked="checked"'); ?> onchange="wds_change_fonts('<?php echo $prefix; ?>')" />
|
3956 |
-
<label for="<?php echo $prefix; ?>_google_fonts0"><?php _e('Default',
|
3957 |
<p class="description"></p>
|
3958 |
</span>
|
3959 |
<span class="wd-group">
|
3960 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_fweight"><?php _e('Font weight:',
|
3961 |
<select class="select_icon select_icon_320" id="<?php echo $prefix; ?>_fweight" onchange="jQuery('#<?php echo $prefix; ?>').css({fontWeight: jQuery(this).val()})" name="<?php echo $prefix; ?>_fweight">
|
3962 |
<?php
|
3963 |
foreach ($font_weights as $key => $fweight) {
|
@@ -3970,17 +3933,17 @@ class WDSViewSliders_wds {
|
|
3970 |
<p class="description"></p>
|
3971 |
</span>
|
3972 |
<span class="wd-group">
|
3973 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_fbgcolor"><?php _e('Background Color:',
|
3974 |
<input id="<?php echo $prefix; ?>_fbgcolor" class="color" type="text" onchange="wde_change_text_bg_color('<?php echo $prefix; ?>')" value="<?php echo $new_layer['fbgcolor']; ?>" name="<?php echo $prefix; ?>_fbgcolor" />
|
3975 |
<p class="description"></p>
|
3976 |
</span>
|
3977 |
<span class="wd-group">
|
3978 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_transparent" title=""><?php _e('Transparency:',
|
3979 |
<input id="<?php echo $prefix; ?>_transparent" class="spider_int_input" type="text" onchange="wde_change_text_bg_color('<?php echo $prefix; ?>')" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['transparent']; ?>" name="<?php echo $prefix; ?>_transparent"> %
|
3980 |
-
<p class="description"><?php _e('Value must be between 0 and 100.',
|
3981 |
</span>
|
3982 |
<span class="wd-group">
|
3983 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_border_width"><?php _e('Border:',
|
3984 |
<input id="<?php echo $prefix; ?>_border_width" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderWidth: jQuery(this).val()})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['border_width']; ?>" name="<?php echo $prefix; ?>_border_width"> px
|
3985 |
<select class="select_icon select_icon_320" id="<?php echo $prefix; ?>_border_style" onchange="jQuery('#<?php echo $prefix; ?>').css({borderStyle: jQuery(this).val()})" style="width: 80px;" name="<?php echo $prefix; ?>_border_style">
|
3986 |
<?php
|
@@ -3995,22 +3958,22 @@ class WDSViewSliders_wds {
|
|
3995 |
<p class="description"></p>
|
3996 |
</span>
|
3997 |
<span class="wd-group">
|
3998 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_border_radius"><?php _e('Radius:',
|
3999 |
<input placeholder="4px" id="<?php echo $prefix; ?>_border_radius" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderRadius: jQuery(this).val()})" value="<?php echo $new_layer['border_radius']; ?>" name="<?php echo $prefix; ?>_border_radius">
|
4000 |
-
<p class="description"><?php _e('Use CSS type values.',
|
4001 |
</span>
|
4002 |
<span class="wd-group">
|
4003 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_shadow" title=""><?php _e('Shadow:',
|
4004 |
<input placeholder="10px 10px 5px #888888" id="<?php echo $prefix; ?>_shadow" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({boxShadow: jQuery(this).val()})" value="<?php echo $new_layer['shadow']; ?>" name="<?php echo $prefix; ?>_shadow" />
|
4005 |
-
<p class="description"><?php _e('Use CSS type values.',
|
4006 |
</span>
|
4007 |
<span class="wd-group">
|
4008 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_add_class"><?php _e('Add class:',
|
4009 |
<input id="<?php echo $prefix; ?>_add_class" class="spider_char_input" type="text" value="<?php echo $new_layer['add_class']; ?>" name="<?php echo $prefix; ?>_add_class" />
|
4010 |
-
<p class="description"><?php _e('Use this option to add a unique class to this layer.',
|
4011 |
</span>
|
4012 |
<span class="wd-group">
|
4013 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_text_alignment"><?php _e('Text alignment:',
|
4014 |
<select class="select_icon select_icon_320" style="width:70px" id="<?php echo $prefix; ?>_text_alignment" onchange="jQuery('#<?php echo $prefix; ?>').css({textAlign: jQuery(this).val()})" name="<?php echo $prefix; ?>_text_alignment">
|
4015 |
<?php
|
4016 |
foreach ($text_alignments as $key => $text_alignment) {
|
@@ -4093,26 +4056,26 @@ class WDSViewSliders_wds {
|
|
4093 |
<div class="wd-box-section">
|
4094 |
<div class="wd-box-content">
|
4095 |
<span class="wd-group">
|
4096 |
-
<label class="wd-label"><?php _e('Published:',
|
4097 |
<input id="<?php echo $prefix; ?>_published1" type="radio" name="<?php echo $prefix; ?>_published" value="1" <?php echo (($new_layer['published']) ? 'checked="checked"' : ''); ?> />
|
4098 |
-
<label <?php echo (($new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published1"><?php _e('Yes',
|
4099 |
<input id="<?php echo $prefix; ?>_published0" type="radio" name="<?php echo $prefix; ?>_published" value="0" <?php echo (($new_layer['published']) ? '' : 'checked="checked"'); ?>/>
|
4100 |
-
<label <?php echo (($new_layer['published']) ? '' : 'class="selected_color"'); ?> for="<?php echo $prefix; ?>_published0"><?php _e('No',
|
4101 |
<p class="description"></p>
|
4102 |
</span>
|
4103 |
<span class="wd-group">
|
4104 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_static_layer"><?php _e('Static layer:',
|
4105 |
<input id="<?php echo $prefix; ?>_static_layer" type="checkbox" name="<?php echo $prefix; ?>_static_layer" <?php echo checked(1, $new_layer['static_layer']); ?> value="1" />
|
4106 |
-
<p class="description"><?php _e('The layer will be visible on all slides.',
|
4107 |
</span>
|
4108 |
<span class="wd-group">
|
4109 |
-
<label class="wd-label" title=""><?php _e('Position:',
|
4110 |
X <input id="<?php echo $prefix; ?>_left" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({left: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['left']; ?>" name="<?php echo $prefix; ?>_left" />
|
4111 |
Y <input id="<?php echo $prefix; ?>_top" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({top: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['top']; ?>" name="<?php echo $prefix; ?>_top" />
|
4112 |
-
<p class="description"><?php _e('In addition, you can drag the layer and drop it to the desired position.',
|
4113 |
</span>
|
4114 |
<span class="wd-group">
|
4115 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_social_button"><?php _e('Social button:',
|
4116 |
<select class="select_icon select_icon_320" id="<?php echo $prefix; ?>_social_button" onchange="jQuery('#<?php echo $prefix; ?>').attr('class', 'wds_draggable_<?php echo $id; ?> wds_draggable fa fa-' + jQuery(this).val())" name="<?php echo $prefix; ?>_social_button" style="width:150px;">
|
4117 |
<?php
|
4118 |
foreach ($social_buttons as $key => $social_button) {
|
@@ -4125,14 +4088,14 @@ class WDSViewSliders_wds {
|
|
4125 |
<p class="description"></p>
|
4126 |
</span>
|
4127 |
<span class="wd-group">
|
4128 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_size"><?php _e('Size:',
|
4129 |
<input id="<?php echo $prefix; ?>_size" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({fontSize: jQuery(this).val() + 'px', lineHeight: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['size']; ?>" name="<?php echo $prefix; ?>_size" /> px
|
4130 |
<p class="description"></p>
|
4131 |
</span>
|
4132 |
<span class="wd-group">
|
4133 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_transparent" title=""><?php _e('Transparency:',
|
4134 |
<input id="<?php echo $prefix; ?>_transparent" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({opacity: (100 - jQuery(this).val()) / 100, filter: 'Alpha(opacity=' + 100 - jQuery(this).val() + ')'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['transparent']; ?>" name="<?php echo $prefix; ?>_transparent" /> %
|
4135 |
-
<p class="description"><?php _e('Value must be between 0 and 100.',
|
4136 |
</span>
|
4137 |
</div>
|
4138 |
</div>
|
@@ -4141,73 +4104,73 @@ class WDSViewSliders_wds {
|
|
4141 |
<div class="wd-box-section">
|
4142 |
<div class="wd-box-content">
|
4143 |
<span class="wd-group">
|
4144 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_in"><?php _e('Effect In:',
|
4145 |
<span style="display: inline-block;">
|
4146 |
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $new_layer['start']; ?>" name="<?php echo $prefix; ?>_start" /> ms
|
4147 |
-
<p class="description"><?php _e('Start',
|
4148 |
</span>
|
4149 |
<span style="display: inline-block;">
|
4150 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_in" id="<?php echo $prefix; ?>_layer_effect_in" style="width:150px;" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
4151 |
<?php
|
4152 |
foreach ($layer_effects_in as $key => $layer_effect_in) {
|
4153 |
?>
|
4154 |
-
<option <?php echo (
|
4155 |
<?php
|
4156 |
}
|
4157 |
?>
|
4158 |
</select>
|
4159 |
-
<p class="description"><?php _e('Effect',
|
4160 |
</span>
|
4161 |
<span style="display: inline-block;">
|
4162 |
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $new_layer['duration_eff_in']; ?>" name="<?php echo $prefix; ?>_duration_eff_in" /> ms
|
4163 |
-
<p class="description"><?php _e('Duration',
|
4164 |
</span>
|
4165 |
<span style="display: inline-block;">
|
4166 |
<input id="<?php echo $prefix; ?>_infinite_in" type="text" name="<?php echo $prefix; ?>_infinite_in" value="<?php echo $new_layer['infinite_in']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_in'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
4167 |
-
<p class="description"><?php _e('Iteration',
|
4168 |
</span>
|
4169 |
</span>
|
4170 |
<span class="wd-group">
|
4171 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_out"><?php _e('Effect Out:',
|
4172 |
<span style="display: inline-block;">
|
4173 |
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $new_layer['end']; ?>" name="<?php echo $prefix; ?>_end"> ms
|
4174 |
-
<p class="description"><?php _e('Start',
|
4175 |
</span>
|
4176 |
<span style="display: inline-block;">
|
4177 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_out" id="<?php echo $prefix; ?>_layer_effect_out" style="width:150px;" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
4178 |
<?php
|
4179 |
foreach ($layer_effects_out as $key => $layer_effect_out) {
|
4180 |
?>
|
4181 |
-
<option <?php echo (
|
4182 |
<?php
|
4183 |
}
|
4184 |
?>
|
4185 |
</select>
|
4186 |
-
<p class="description"><?php _e('Effect',
|
4187 |
</span>
|
4188 |
<span style="display: inline-block;">
|
4189 |
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $new_layer['duration_eff_out']; ?>" name="<?php echo $prefix; ?>_duration_eff_out">ms
|
4190 |
-
<p class="description"><?php _e('Duration',
|
4191 |
</span>
|
4192 |
<span style="display: inline-block;">
|
4193 |
<input id="<?php echo $prefix; ?>_infinite_out" type="text" name="<?php echo $prefix; ?>_infinite_out" value="<?php echo $new_layer['infinite_out']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_out'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
4194 |
-
<p class="description"><?php _e('Iteration',
|
4195 |
</span>
|
4196 |
</span>
|
4197 |
<span class="wd-group">
|
4198 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_color"><?php _e('Color:',
|
4199 |
<input id="<?php echo $prefix; ?>_color" class="color" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({color: '#' + jQuery(this).val()})" value="<?php echo $new_layer['color']; ?>" name="<?php echo $prefix; ?>_color" />
|
4200 |
<p class="description"></p>
|
4201 |
</span>
|
4202 |
<span class="wd-group">
|
4203 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_hover_color"><?php _e('Hover Color:',
|
4204 |
<input id="<?php echo $prefix; ?>_hover_color" class="color" type="text" value="<?php echo $new_layer['hover_color']; ?>" name="<?php echo $prefix; ?>_hover_color" />
|
4205 |
<p class="description"></p>
|
4206 |
</span>
|
4207 |
<span class="wd-group">
|
4208 |
-
<label class="wd-label" for="<?php echo $prefix; ?>_add_class" title=""><?php _e('Add class:',
|
4209 |
<input id="<?php echo $prefix; ?>_add_class" class="spider_char_input" type="text" value="<?php echo $new_layer['add_class']; ?>" name="<?php echo $prefix; ?>_add_class" />
|
4210 |
-
<p class="description"><?php _e('Use this option to add a unique class to this layer.',
|
4211 |
</span>
|
4212 |
</div>
|
4213 |
</div>
|
@@ -4219,4 +4182,4 @@ class WDSViewSliders_wds {
|
|
4219 |
<?php
|
4220 |
return ob_get_clean();
|
4221 |
}
|
4222 |
-
}
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
+
/**
|
4 |
+
* Class SlidersView_wds
|
5 |
+
*/
|
6 |
+
class SlidersView_wds extends AdminView_bwg {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
+
/**
|
9 |
+
* Display.
|
10 |
+
*
|
11 |
+
* @param array $params
|
12 |
+
*/
|
13 |
+
public function display( $params = array() ) {
|
14 |
+
ob_start();
|
15 |
+
echo $this->body($params);
|
16 |
+
$form_attr = array(
|
17 |
+
'id' => WDS()->prefix . '_sliders_form',
|
18 |
+
'name' => WDS()->prefix . '_sliders',
|
19 |
+
'class' => WDS()->prefix . '_sliders wd-form',
|
20 |
+
'action' => add_query_arg(array( 'page' => 'sliders_' . WDS()->prefix ), 'admin.php'),
|
21 |
+
);
|
22 |
+
echo $this->form(ob_get_clean(), $form_attr);
|
23 |
+
}
|
24 |
|
25 |
+
/**
|
26 |
+
* Body.
|
27 |
+
*
|
28 |
+
* @param array $params
|
29 |
+
*/
|
30 |
+
public function body( $params = array() ) {
|
31 |
+
echo $this->title(array(
|
32 |
+
'title' => $params['page_title'],
|
33 |
+
'title_class' => 'wd-header',
|
34 |
+
'add_new_button' => array(
|
35 |
+
'href' => add_query_arg( array(
|
36 |
+
'page' => $params['page'],
|
37 |
+
'task' => 'edit',
|
38 |
+
), admin_url('admin.php')),
|
39 |
+
),
|
40 |
+
));
|
41 |
+
echo $this->search();
|
42 |
+
?>
|
43 |
+
<div class="tablenav top">
|
44 |
+
<?php
|
45 |
+
echo $this->bulk_actions($params['actions'], TRUE);
|
46 |
+
echo $this->pagination($params['page_url'], $params['total'], $params['items_per_page']);
|
47 |
+
?>
|
48 |
+
</div>
|
49 |
+
<table class="adminlist table table-striped wp-list-table widefat fixed pages media">
|
50 |
+
<thead>
|
51 |
+
<td id="cb" class="column-cb check-column">
|
52 |
+
<label class="screen-reader-text" for="cb-select-all-1"><?php _e('Title', WDS()->prefix); ?></label>
|
53 |
+
<input id="check_all" type="checkbox">
|
54 |
+
</td>
|
55 |
+
<?php echo WDW_S_Library::ordering('name', $params['orderby'], $params['order'], __('Title', WDS()->prefix), $params['page_url'], 'column-primary'); ?>
|
56 |
+
<th class="col-slides-count"><?php _e('Slides count', WDS()->prefix); ?></th>
|
57 |
+
<th class="col-shortcode"><?php _e('Shortcode', WDS()->prefix); ?></th>
|
58 |
+
<th class="col-function"><?php _e('PHP function', WDS()->prefix); ?></th>
|
59 |
+
</thead>
|
60 |
+
<tbody>
|
61 |
+
<?php
|
62 |
+
if ( $params['rows'] ) {
|
63 |
+
foreach ( $params['rows'] as $row ) {
|
64 |
+
$alternate = (!isset($alternate) || $alternate == '') ? 'class="alternate"' : '';
|
65 |
+
$edit_url = add_query_arg(array(
|
66 |
+
'page' => $params['page'],
|
67 |
+
'task' => 'edit',
|
68 |
+
'current_id' => $row->id,
|
69 |
+
), admin_url('admin.php'));
|
70 |
+
$publish_url = add_query_arg(array(
|
71 |
+
'task' => ($row->published ? 'unpublish' : 'publish'),
|
72 |
+
'current_id' => $row->id,
|
73 |
+
), $params['page_url']);
|
74 |
+
$delete_url = add_query_arg( array(
|
75 |
+
'task' => 'delete',
|
76 |
+
'current_id' => $row->id
|
77 |
+
), $params['page_url']
|
78 |
+
);
|
79 |
+
|
80 |
+
$preview_url = add_query_arg( array(
|
81 |
+
'slider_id' => $row->id
|
82 |
+
), $params['preview_url']
|
83 |
+
);
|
84 |
+
$images_count = !empty($params['slides_info'][$row->id]['count']) ? $params['slides_info'][$row->id]['count'] : 0;
|
85 |
+
$preview_image = !empty($params['slides_info'][$row->id]['preview_thumb']) ? $params['slides_info'][$row->id]['preview_thumb'] : WDS()->plugin_url . '/images/no-image.png';
|
86 |
+
?>
|
87 |
+
<tr id="tr_<?php echo $row->id; ?>" <?php echo $alternate; ?>>
|
88 |
+
<th class="check-column">
|
89 |
+
<input type="checkbox" id="check_<?php echo $row->id; ?>" name="check[<?php echo $row->id; ?>]" onclick="spider_check_all(this)" />
|
90 |
+
</th>
|
91 |
+
<td class="column-primary column-title" data-colname="<?php _e('Title', WDS()->prefix); ?>">
|
92 |
+
<strong class="has-media-icon">
|
93 |
+
<a href="<?php echo $edit_url; ?>">
|
94 |
+
<span class="media-icon image-icon">
|
95 |
+
<img class="preview-image" title="<?php echo $row->name; ?>" src="<?php echo $preview_image; ?>" width="60" height="60" />
|
96 |
+
</span>
|
97 |
+
<?php echo $row->name; ?>
|
98 |
+
</a>
|
99 |
+
<?php if ( !$row->published ) { ?>
|
100 |
+
— <span class="post-state"><?php _e('Unpublished', WDS()->prefix); ?></span>
|
101 |
+
<?php } ?>
|
102 |
+
</strong>
|
103 |
+
<div class="row-actions">
|
104 |
+
<span><a href="<?php echo $edit_url; ?>"><?php _e('Edit', WDS()->prefix); ?></a> |</span>
|
105 |
+
<span><a href="<?php echo $publish_url; ?>"><?php echo($row->published ? __('Unpublish', WDS()->prefix) : __('Publish', WDS()->prefix)); ?></a> |</span>
|
106 |
+
<span class="trash"><a onclick="if (!confirm('<?php echo addslashes(__('Do you want to delete selected item?', WDS()->prefix)); ?>')) {return false;}" href="<?php echo $delete_url; ?>"><?php _e('Delete', WDS()->prefix); ?></a> |</span>
|
107 |
+
<span><a href="<?php echo $preview_url; ?>" target="_blank"><?php _e('Preview', WDS()->prefix); ?></a></span>
|
108 |
+
</div>
|
109 |
+
<button class="toggle-row" type="button">
|
110 |
+
<span class="screen-reader-text"><?php _e('Show more details', WDS()->prefix); ?></span>
|
111 |
+
</button>
|
112 |
+
</td>
|
113 |
+
<td data-colname="<?php _e('Slides count', WDS()->prefix); ?>"><?php echo $images_count; ?></td>
|
114 |
+
<td data-colname="<?php _e('Shortcode', WDS()->prefix); ?>">
|
115 |
+
<input type="text" value='[wds id="<?php echo $row->id; ?>"]' onclick="spider_select_value(this)" size="11" readonly="readonly" />
|
116 |
+
</td>
|
117 |
+
<td data-colname="<?php _e('PHP function', WDS()->prefix); ?>">
|
118 |
+
<input type="text" value="<?php wd_slider(<?php echo $row->id; ?>); ?>" onclick="spider_select_value(this)" size="17" readonly="readonly" />
|
119 |
+
</td>
|
120 |
+
</tr>
|
121 |
+
<?php
|
122 |
+
}
|
123 |
+
}
|
124 |
+
else {
|
125 |
+
echo WDW_S_Library::no_items('sliders', 5);
|
126 |
+
}
|
127 |
+
?>
|
128 |
+
</tbody>
|
129 |
+
</table>
|
130 |
+
<div class="tablenav bottom">
|
131 |
+
<?php echo $this->pagination($params['page_url'], $params['total'], $params['items_per_page']); ?>
|
132 |
+
</div>
|
133 |
+
<?php if ( !empty($params['rows']) ) { ?>
|
134 |
+
<div class="wds_opacity_merge" onclick="jQuery('.wds_opacity_merge').hide();jQuery('.wds_merge').hide();"></div>
|
135 |
+
<div class="wds_merge">
|
136 |
+
<select class="select_icon select_icon_320" style="width:200px" name="select_slider_merge" id="select_slider_merge" style="margin-bottom: 6px;">
|
137 |
+
<option><?php _e('-select-', WDS()->prefix); ?></option>
|
138 |
+
<?php foreach ( $params['rows'] as $row ) { ?>
|
139 |
+
<option value="<?php echo $row->id; ?>"><?php echo $row->name; ?></option>
|
140 |
+
<?php } ?>
|
141 |
+
</select>
|
142 |
+
<input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'merge');" value="<?php _e('Merge', WDS()->prefix); ?>" />
|
143 |
+
<input type="button" class="button-secondary" onclick="jQuery('.wds_merge').hide();jQuery('.wds_opacity_merge').hide(); return false;" value="<?php _e('Cancel', WDS()->prefix); ?>" />
|
144 |
+
<p class="description"><?php _e('Select slider to use settings from.', WDS()->prefix); ?></p>
|
145 |
+
</div>
|
146 |
+
<?php } ?>
|
147 |
+
<div class="wds_opacity_export" onclick="jQuery('.wds_opacity_export').hide();jQuery('.wds_exports').hide();"></div>
|
148 |
+
<div class="wds_exports">
|
149 |
+
<input type="checkbox" name="imagesexport" id="imagesexport" checked="checked" />
|
150 |
+
<label for="imagesexport"><?php _e('Check the box to export the images included within sliders', WDS()->prefix); ?></label>
|
151 |
+
<a class="button-secondary wds_export" type="button" href="<?php echo add_query_arg(array('action' => 'WDSExport'), admin_url('admin-ajax.php')); ?>" onclick="wds_get_checked()"><?php _e('Export', WDS()->prefix); ?></a>
|
152 |
+
<input type="button" class="button-secondary" onclick="jQuery('.wds_exports').hide();jQuery('.wds_opacity_export').hide(); return false;" value="<?php _e('Cancel', WDS()->prefix); ?>" />
|
153 |
+
</div>
|
154 |
+
<?php
|
155 |
+
global $wp_version;
|
156 |
+
if (version_compare($wp_version, '4','<')) {
|
157 |
+
?>
|
158 |
+
<style>
|
159 |
+
#wpwrap {
|
160 |
+
background-color: #F1F1F1;
|
161 |
+
}
|
162 |
+
@media screen and (max-width: 640px) {
|
163 |
+
.buttons_div input {
|
164 |
+
width: 31%;
|
165 |
+
font-size: 10px;
|
166 |
+
}
|
167 |
+
.tablenav{
|
168 |
+
height:auto
|
169 |
+
}
|
170 |
+
#wpcontent {
|
171 |
+
margin-left: 40px !important
|
172 |
+
}
|
173 |
+
.alignleft {
|
174 |
+
display:none;
|
175 |
+
}
|
176 |
+
}
|
177 |
+
</style>
|
178 |
+
<?php
|
179 |
+
}
|
180 |
+
}
|
181 |
|
182 |
+
/**
|
183 |
+
* Edit.
|
184 |
+
*
|
185 |
+
* @param array $params
|
186 |
+
*/
|
187 |
+
public function edit( $params = array() ) {
|
188 |
+
$id = $params['id'];
|
189 |
+
$row = $params['row'];
|
190 |
+
$slides_row = $params['slides_row'];
|
191 |
+
$layers_row = $params['layers_row'];
|
192 |
+
$global_options = $params['global_options'];
|
193 |
+
$options_values = $params['options_values'];
|
194 |
+
$slider_preview_link = $params['slider_preview_link'];
|
195 |
+
$spider_uploader = isset($global_options->spider_uploader) ? $global_options->spider_uploader : 0;
|
196 |
+
$page_title = $params['page_title'];
|
197 |
+
$save_btn_name = $params['save_btn_name'];
|
198 |
+
$sub_tab_type = $params['sub_tab_type'];
|
199 |
// Get options values.
|
|
|
200 |
$aligns = $options_values['aligns'];
|
201 |
$border_styles = $options_values['border_styles'];
|
202 |
$button_styles = $options_values['button_styles'];
|
213 |
$layer_callbacks = $options_values['layer_callbacks'];
|
214 |
$text_alignments = $options_values['text_alignments'];
|
215 |
$built_in_watermark_fonts = $options_values['built_in_watermark_fonts'];
|
216 |
+
$slider_fillmode_option = $options_values['slider_fillmode_option'];
|
217 |
$free_effects = array('none', 'fade', 'sliceH', 'fan', 'scaleIn');
|
218 |
+
$fv = (WDS()->is_free && get_option("wds_theme_version") ? TRUE : FALSE);
|
219 |
+
|
220 |
+
$query_url = add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif'), admin_url('admin-ajax.php'));
|
221 |
+
$query_url = wp_nonce_url($query_url, 'addImage', WDS()->nonce);
|
222 |
+
$slide_ids_string = '';
|
223 |
?>
|
224 |
<div class="spider_message_cont"></div>
|
225 |
<div class="spider_load">
|
226 |
<div class="spider_load_cont"></div>
|
227 |
+
<div class="spider_load_icon"><img class="spider_ajax_loading" src="<?php echo WDS()->plugin_url . '/images/ajax_loader_back.gif'; ?>"></div>
|
228 |
</div>
|
229 |
<form class="wrap wds_form wds-check-change_form js" method="post" id="sliders_form" action="admin.php?page=sliders_wds">
|
230 |
<h1 class="hidden"></h1>
|
231 |
+
<?php wp_nonce_field(WDS()->nonce, WDS()->nonce); ?>
|
232 |
<span class="slider-icon"></span>
|
233 |
<h2 class="wds_default"><?php echo $page_title; ?></h2>
|
234 |
<div class="buttons_conteiner">
|
235 |
+
<h1 class="wp-heading-inline"><?php _e('Slider Title', WDS()->prefix); ?></h1>
|
236 |
+
<input type="text" id="name" name="name" value="<?php echo $row->name; ?>" size="20" class="wds_requried" data-name="<?php _e('Slider title', WDS()->prefix); ?>" />
|
237 |
<div class="wds_buttons">
|
238 |
<button class="button button-primary button-large" onclick="spider_set_input_value('task', 'apply'); if(!wds_spider_ajax_save('sliders_form', event)) return false;">
|
239 |
<?php echo $save_btn_name; ?>
|
240 |
</button>
|
241 |
+
<button class="button button-large" <?php echo ($id == 0) ? 'disabled="disabled"' : 'onclick="window.open(\''. add_query_arg( array('slider_id' => $id), $slider_preview_link ) .'\', \'_blank\'); return false;"'; ?>><?php _e('Preview', WDS()->prefix); ?></button>
|
242 |
+
<button class="button button-secondary button-large wd-hidden reset-all-settings" onclick="wds_reset(event); return false;"><?php _e('Reset all settings', WDS()->prefix); ?></button>
|
243 |
</div>
|
244 |
</div>
|
245 |
<div>
|
246 |
<div class="tab_conteiner">
|
247 |
<div class="tab_button_wrap slides_tab_button_wrap" onclick="wds_change_tab(this, 'wds_slides_box')" >
|
248 |
<a class="wds_button-secondary wds_slides" href="#">
|
249 |
+
<span tab_type="slides" class="wds_tab_label"><span class="dashicons dashicons-format-gallery"></span><?php _e('Slides', WDS()->prefix); ?></span>
|
250 |
</a>
|
251 |
</div>
|
252 |
<div class="tab_button_wrap settings_tab_button_wrap" onclick="wds_change_tab(this, 'wds_settings_box')">
|
253 |
<a class="wds_button-secondary wds_settings" href="#">
|
254 |
+
<span tab_type="settings" class="wds_tab_label"><span class="dashicons dashicons-admin-generic"></span><?php _e('Settings', WDS()->prefix); ?></span>
|
255 |
</a>
|
256 |
</div>
|
257 |
<div class="tab_button_wrap howto_tab_button_wrap <?php echo (!$row->id) ? 'hide' : ''; ?>" onclick="wds_change_tab(this, 'wds_howto_box')">
|
258 |
<a class="wds_button-secondary wds_howto" href="#">
|
259 |
+
<span tab_type="howto" class="wds_tab_label"><span class="dashicons dashicons-editor-help"></span><?php _e('How to use', WDS()->prefix); ?></span>
|
260 |
</a>
|
261 |
</div>
|
262 |
</div>
|
267 |
<div class="wds_menu_icon" onclick="jQuery('.wds_nav_tabs ul').slideToggle(500);"></div>
|
268 |
<ul>
|
269 |
<li tab_type="global" onclick="wds_change_nav(this, 'wds_nav_global_box')">
|
270 |
+
<a href="#"><?php _e('Global', WDS()->prefix); ?></a>
|
271 |
</li>
|
272 |
<li tab_type="carousel" onclick="wds_change_nav(this, 'wds_nav_carousel_box')">
|
273 |
+
<a href="#"><?php _e('Carousel', WDS()->prefix); ?></a>
|
274 |
</li>
|
275 |
<li tab_type="navigation" onclick="wds_change_nav(this, 'wds_nav_navigation_box')" >
|
276 |
+
<a href="#"><?php _e('Navigation', WDS()->prefix); ?></a>
|
277 |
</li>
|
278 |
<li tab_type="bullets" onclick="wds_change_nav(this, 'wds_nav_bullets_box')" >
|
279 |
+
<a href="#"><?php _e('Bullets', WDS()->prefix); ?></a>
|
280 |
</li>
|
281 |
<li tab_type="filmstrip" onclick="wds_change_nav(this, 'wds_nav_filmstrip_box')" >
|
282 |
+
<a href="#"><?php _e('Filmstrip', WDS()->prefix); ?></a>
|
283 |
</li>
|
284 |
<li tab_type="timer_bar" onclick="wds_change_nav(this, 'wds_nav_timer_bar_box')" >
|
285 |
+
<a href="#"><?php _e('Timer bar', WDS()->prefix); ?></a>
|
286 |
</li>
|
287 |
<li tab_type="watermark" onclick="wds_change_nav(this, 'wds_nav_watermark_box')" >
|
288 |
+
<a href="#"><?php _e('Watermark', WDS()->prefix); ?></a>
|
289 |
</li>
|
290 |
<li tab_type="css" onclick="wds_change_nav(this, 'wds_nav_css_box')" >
|
291 |
+
<a href="#"><?php _e('CSS', WDS()->prefix); ?></a>
|
292 |
</li>
|
293 |
<li tab_type="callbacks" onclick="wds_change_nav(this, 'wds_nav_callbacks_box')" >
|
294 |
+
<a href="#"><?php _e('Slider Callbacks', WDS()->prefix); ?></a>
|
295 |
</li>
|
296 |
</ul>
|
297 |
</div>
|
303 |
<div class="wd-box-content">
|
304 |
<span class="wd-group">
|
305 |
<input type="radio" onclick="hide_dimmension_ratio()" id="full_width2" name="full_width" <?php echo (($row->full_width == '2' || $row->full_width == '') ? 'checked="checked"' : ''); ?> value="2" />
|
306 |
+
<label <?php echo (($row->full_width == 2) ? 'class="selected_color"' : ''); ?> for="full_width2"><?php _e('Boxed layout', WDS()->prefix); ?></label>
|
307 |
<input type="radio" onclick="hide_dimmension_ratio()" id="full_width1" name="full_width" <?php echo (($row->full_width == '1') ? 'checked="checked"' : ''); ?> value="1" />
|
308 |
+
<label <?php echo ($row->full_width == 1) ? 'class="selected_color"' : ''; ?> for="full_width1"><?php _e('Full width', WDS()->prefix); ?></label>
|
309 |
<input type="radio" onclick="hide_dimmension_ratio()" id="full_width0" name="full_width" <?php echo (($row->full_width == '0') ? 'checked="checked"' : ''); ?> value="0" />
|
310 |
+
<label <?php echo ($row->full_width == 0) ? 'class="selected_color"' : ''; ?> for="full_width0"><?php _e('Custom', WDS()->prefix); ?></label>
|
311 |
+
<p class="description full_width_desc" id="full_width2_desc"><?php _e('With Boxed layout, the slideshow will take the 100% width of its parent container.', WDS()->prefix); ?></p>
|
312 |
+
<p class="description full_width_desc" id="full_width1_desc"><?php _e('The slider will take the full width of the page. Height will be applied based on the ratio of dimensions or auto height option.', WDS()->prefix); ?></p>
|
313 |
+
<p class="description full_width_desc" id="full_width0_desc"><?php _e('This option lets you specify custom dimensions for your slider.', WDS()->prefix); ?></p>
|
314 |
</span>
|
315 |
<span class="wd-group" id="auto_height">
|
316 |
+
<label class="wd-label"><?php _e('Auto height', WDS()->prefix); ?></label>
|
317 |
<input type="radio" onclick="hide_dimmension_ratio()" id="auto_height1" name="auto_height" <?php echo (($row->auto_height) ? 'checked="checked"' : ''); ?> value="1" />
|
318 |
+
<label <?php echo (($row->auto_height) ? 'class="selected_color"' : ''); ?> for="auto_height1"><?php _e('Yes', WDS()->prefix); ?></label>
|
319 |
<input type="radio" onclick="hide_dimmension_ratio()" id="auto_height0" name="auto_height" <?php echo (($row->auto_height) ? '' : 'checked="checked"'); ?> value="0" />
|
320 |
+
<label <?php echo ($row->auto_height) ? '' : 'class="selected_color"'; ?> for="auto_height0"><?php _e('No', WDS()->prefix); ?></label>
|
321 |
+
<p class="description"><?php _e('The slider will take the full height of the screen.', WDS()->prefix); ?></p>
|
322 |
</span>
|
323 |
<span class="wd-group" id="dimensions">
|
324 |
+
<label class="wd-label"><?php _e('Dimensions', WDS()->prefix); ?></label>
|
325 |
<input type="text" name="width" id="width" value="<?php echo $row->width; ?>" class="spider_int_input" onchange="wds_whr('width')" onkeypress="return spider_check_isnum(event)" /> x
|
326 |
<input type="text" name="height" id="height" value="<?php echo $row->height; ?>" class="spider_int_input" onchange="wds_whr('height')" onkeypress="return spider_check_isnum(event)" /> px
|
327 |
+
<input type="text" name="ratio" id="ratio" value="" class="spider_int_input" onchange="wds_whr('ratio')" onkeypress="return spider_check_isnum(event)" title = "<?php _e('The slider height will be applied based on the ratio of dimensions.', WDS()->prefix); ?>"/><?php _e(' ratio', WDS()->prefix); ?>
|
328 |
+
<p class="description"><?php _e('Maximum width and height for slider.', WDS()->prefix); ?></p>
|
329 |
</span>
|
330 |
<span class="wd-group">
|
331 |
+
<label class="wd-label" for="effect"><?php _e('Effect', WDS()->prefix); ?></label>
|
332 |
<select class="select_icon select_icon_320" name="effect" id="effect">
|
333 |
<?php
|
334 |
foreach ($effects as $key => $effect) {
|
335 |
?>
|
336 |
+
<option value="<?php echo $key; ?>" <?php echo (WDS()->is_free && !in_array($key, $free_effects)) ? 'disabled="disabled" title="' . __('This effect is disabled in free version.', WDS()->prefix) . '"' : ''; ?> <?php if ($row->effect == $key) echo 'selected="selected"'; ?>><?php echo $effect; ?></option>
|
337 |
<?php
|
338 |
}
|
339 |
?>
|
340 |
</select>
|
341 |
+
<p class="description"><?php _e('Select the effect which will be applied when navigating through slides.', WDS()->prefix); ?></p>
|
342 |
</span>
|
343 |
<span class="wd-group">
|
344 |
+
<label class="wd-label" for="effect_duration"><?php _e('Еffect duration', WDS()->prefix); ?></label>
|
345 |
<input type="text" id="effect_duration" name="effect_duration" value="<?php echo $row->effect_duration; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> ms
|
346 |
+
<p class="description"><?php _e('Set the duration for the effect.', WDS()->prefix); ?></p>
|
347 |
</span>
|
348 |
<span class="wd-group">
|
349 |
+
<label class="wd-label" for="hide_on_mobile"><?php _e('Hide on small screens', WDS()->prefix); ?></label>
|
350 |
<input type="text" id="hide_on_mobile" name="hide_on_mobile" value="<?php echo $row->hide_on_mobile; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> px
|
351 |
+
<p class="description"><?php _e('Hide slider when screen size is smaller than this value.', WDS()->prefix); ?></p>
|
352 |
</span>
|
353 |
<span class="wd-group">
|
354 |
+
<label class="wd-label" for="full_width_for_mobile"><?php _e('Full width on small screens', WDS()->prefix); ?></label>
|
355 |
<input type="text" id="full_width_for_mobile" name="full_width_for_mobile" value="<?php echo $row->full_width_for_mobile; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> px
|
356 |
+
<p class="description"><?php _e('The slider will have full width when screen size is smaller than this value.', WDS()->prefix); ?></p>
|
357 |
</span>
|
358 |
<span class="wd-group" id="tr_smart_crop">
|
359 |
+
<label class="wd-label"><?php _e('Smart Crop', WDS()->prefix); ?></label>
|
360 |
<input onClick="wds_enable_disable('', 'tr_crop_pos', 'smart_crop1')" type="radio" id="smart_crop1" name="smart_crop" <?php echo (($row->smart_crop) ? 'checked="checked"' : ''); ?> value="1" />
|
361 |
+
<label <?php echo (($row->smart_crop) ? 'class="selected_color"' : ''); ?> for="smart_crop1"><?php _e('Yes', WDS()->prefix); ?></label>
|
362 |
<input onClick="wds_enable_disable('none', 'tr_crop_pos', 'smart_crop0')" type="radio" id="smart_crop0" name="smart_crop" <?php echo (($row->smart_crop) ? '' : 'checked="checked"'); ?> value="0" />
|
363 |
+
<label <?php echo ((!$row->smart_crop) ? 'class="selected_color"' : ''); ?> for="smart_crop0"><?php _e('No', WDS()->prefix); ?></label>
|
364 |
<p class="description"></p>
|
365 |
</span>
|
366 |
<span class="wd-group" id="tr_crop_pos">
|
367 |
+
<label class="wd-label" for="smart_crop"><?php _e('Crop Image Position', WDS()->prefix); ?></label>
|
368 |
<table class="wds_position_table">
|
369 |
<tbody>
|
370 |
<tr>
|
386 |
</table>
|
387 |
</span>
|
388 |
<span class="wd-group">
|
389 |
+
<label class="wd-label"><?php _e('Fixed background:', WDS()->prefix); ?></label>
|
390 |
<input type="radio" id="fixed_bg1" name="fixed_bg" <?php echo (($row->fixed_bg) ? 'checked="checked"' : ''); ?> value="1" />
|
391 |
+
<label <?php echo (($row->fixed_bg) ? 'class="selected_color"' : ''); ?> for="fixed_bg1"><?php _e('Yes', WDS()->prefix); ?></label>
|
392 |
<input type="radio" id="fixed_bg0" name="fixed_bg" <?php echo (($row->fixed_bg) ? '' : 'checked="checked"'); ?> value="0" />
|
393 |
+
<label <?php echo ((!$row->fixed_bg) ? 'class="selected_color"' : ''); ?> for="fixed_bg0"><?php _e('No', WDS()->prefix); ?></label>
|
394 |
<p class="description"></p>
|
395 |
</span>
|
396 |
<span class="wd-group">
|
397 |
+
<label class="wd-label"><?php _e('Slides order direction:', WDS()->prefix); ?></label>
|
398 |
<input type="radio" id="order_dir1" name="order_dir" <?php echo checked('asc', $row->order_dir); ?> value="asc" />
|
399 |
+
<label <?php echo (($row->order_dir == 'asc') ? 'class="selected_color"' : ''); ?> for="order_dir1"><?php _e('Ascending', WDS()->prefix); ?></label>
|
400 |
<input type="radio" id="order_dir0" name="order_dir" <?php checked('desc', $row->order_dir); ?> value="desc" />
|
401 |
+
<label <?php echo (($row->order_dir == 'desc') ? 'class="selected_color"' : ''); ?> for="order_dir0"><?php _e('Descending', WDS()->prefix); ?></label>
|
402 |
<p class="description"></p>
|
403 |
</span>
|
404 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>">
|
405 |
+
<label class="wd-label"><?php _e('Parallax Effect', WDS()->prefix); ?></label>
|
406 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="radio" id="parallax_effect1" name="parallax_effect" <?php echo (($row->parallax_effect) ? 'checked="checked"' : ''); ?> value="1" />
|
407 |
+
<label <?php echo (($row->parallax_effect) ? 'class="selected_color"' : ''); ?> for="parallax_effect1"><?php _e('Yes', WDS()->prefix); ?></label>
|
408 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="radio" id="parallax_effect0" name="parallax_effect" <?php echo (($row->parallax_effect) ? '' : 'checked="checked"'); ?> value="0" />
|
409 |
+
<label <?php echo (($row->parallax_effect) ? '' : 'class="selected_color"'); ?> for="parallax_effect0"><?php _e('No', WDS()->prefix); ?></label>
|
410 |
+
<p class="description"><?php _e('The direction of the movement, as well as the layer moving pace depend on the z-index value.', WDS()->prefix); ?></p>
|
411 |
</span>
|
412 |
<span class="wd-group">
|
413 |
+
<label class="wd-label"><?php _e('Smart Load', WDS()->prefix); ?></label>
|
414 |
<input type="radio" id="preload_images1" name="preload_images" <?php echo (($row->preload_images) ? 'checked="checked"' : ''); ?> value="1" />
|
415 |
+
<label <?php echo (($row->preload_images) ? 'class="selected_color"' : ''); ?> for="preload_images1"><?php _e('Yes', WDS()->prefix); ?></label>
|
416 |
<input type="radio" id="preload_images0" name="preload_images" <?php echo (($row->preload_images) ? '' : 'checked="checked"'); ?> value="0" />
|
417 |
+
<label <?php echo (($row->preload_images) ? '' : 'class="selected_color"'); ?> for="preload_images0"><?php _e('No', WDS()->prefix); ?></label>
|
418 |
+
<p class="description"><?php _e('Turn this option on to have faster loading for the first few images and process the rest meanwhile.', WDS()->prefix); ?></p>
|
419 |
</span>
|
420 |
<span class="wd-group">
|
421 |
+
<label class="wd-label"><?php _e('Right click protection', WDS()->prefix); ?></label>
|
422 |
<input type="radio" name="image_right_click" id="image_right_click_1" value="1" <?php if ($row->image_right_click) echo 'checked="checked"'; ?> />
|
423 |
+
<label <?php echo $row->image_right_click ? 'class="selected_color"' : ''; ?> for="image_right_click_1"><?php _e('Yes', WDS()->prefix); ?></label>
|
424 |
<input type="radio" name="image_right_click" id="image_right_click_0" value="0" <?php if (!$row->image_right_click) echo 'checked="checked"'; ?> />
|
425 |
+
<label <?php echo $row->image_right_click ? '' : 'class="selected_color"'; ?> for="image_right_click_0"><?php _e('No', WDS()->prefix); ?></label>
|
426 |
+
<p class="description"><?php _e('Disable right-click on slider images.', WDS()->prefix); ?></p>
|
427 |
</span>
|
428 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>">
|
429 |
+
<label class="wd-label"><?php _e('Layer out on next', WDS()->prefix); ?></label>
|
430 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="radio" name="layer_out_next" id="layer_out_next_1" value="1" <?php if ($row->layer_out_next) echo 'checked="checked"'; ?> />
|
431 |
+
<label <?php echo $row->layer_out_next ? 'class="selected_color"' : ''; ?> for="layer_out_next_1"><?php _e('Yes', WDS()->prefix); ?></label>
|
432 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="radio" name="layer_out_next" id="layer_out_next_0" value="0" <?php if (!$row->layer_out_next) echo 'checked="checked"'; ?> />
|
433 |
+
<label <?php echo $row->layer_out_next ? '' : 'class="selected_color"'; ?> for="layer_out_next_0"><?php _e('No', WDS()->prefix); ?></label>
|
434 |
+
<p class="description"><?php _e('Enable this option to have the layer effect out regardless of the timing between the hit to the next slider.', WDS()->prefix); ?></p>
|
435 |
</span>
|
436 |
<span class="wd-group">
|
437 |
+
<label class="wd-label"><?php _e('Published', WDS()->prefix); ?></label>
|
438 |
<input type="radio" id="published1" name="published" <?php echo (($row->published) ? 'checked="checked"' : ''); ?> value="1" />
|
439 |
+
<label <?php echo (($row->published) ? 'class="selected_color"' : ''); ?> for="published1"><?php _e('Yes', WDS()->prefix); ?></label>
|
440 |
<input type="radio" id="published0" name="published" <?php echo (($row->published) ? '' : 'checked="checked"'); ?> value="0" />
|
441 |
+
<label <?php echo (($row->published) ? '' : 'class="selected_color"'); ?> for="published0"><?php _e('No', WDS()->prefix); ?></label>
|
442 |
<p class="description"></p>
|
443 |
</span>
|
444 |
</div>
|
448 |
<div class="wd-box-section">
|
449 |
<div class="wd-box-content">
|
450 |
<span class="wd-group">
|
451 |
+
<label class="wd-label"><?php _e('Autoplay', WDS()->prefix); ?></label>
|
452 |
<input type="radio" id="autoplay1" name="autoplay" <?php echo (($row->autoplay) ? 'checked="checked"' : ''); ?> value="1" />
|
453 |
+
<label <?php echo (($row->autoplay) ? 'class="selected_color"' : ''); ?> for="autoplay1"><?php _e('Yes', WDS()->prefix); ?></label>
|
454 |
<input type="radio" id="autoplay0" name="autoplay" <?php echo (($row->autoplay) ? '' : 'checked="checked"'); ?> value="0" />
|
455 |
+
<label <?php echo (($row->autoplay) ? '' : 'class="selected_color"'); ?> for="autoplay0"><?php _e('No', WDS()->prefix); ?></label>
|
456 |
+
<p class="description"><?php _e('Enable this option to autoplay the slider.', WDS()->prefix); ?></p>
|
457 |
</span>
|
458 |
<span class="wd-group">
|
459 |
+
<label class="wd-label" for="time_intervval"><?php _e('Time Interval', WDS()->prefix); ?></label>
|
460 |
<input type="text" id="time_intervval" name="time_intervval" value="<?php echo $row->time_intervval; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> sec.
|
461 |
+
<p class="description"><?php _e('Set the time interval between the slides when autoplay is on.', WDS()->prefix); ?></p>
|
462 |
</span>
|
463 |
<span class="wd-group">
|
464 |
+
<label class="wd-label"><?php _e('Enable loop', WDS()->prefix); ?></label>
|
465 |
<input type="radio" id="slider_loop1" name="slider_loop" <?php echo (($row->slider_loop) ? 'checked="checked"' : ''); ?> value="1" />
|
466 |
+
<label <?php echo (($row->slider_loop) ? 'class="selected_color"' : ''); ?> for="slider_loop1"><?php _e('Yes', WDS()->prefix); ?></label>
|
467 |
<input type="radio" id="slider_loop0" name="slider_loop" <?php echo (($row->slider_loop) ? '' : 'checked="checked"'); ?> value="0" />
|
468 |
+
<label <?php echo (($row->slider_loop) ? '' : 'class="selected_color"'); ?> for="slider_loop0"><?php _e('No', WDS()->prefix); ?></label>
|
469 |
<p class="description"></p>
|
470 |
</span>
|
471 |
<span class="wd-group">
|
472 |
+
<label class="wd-label"><?php _e('Shuffle', WDS()->prefix); ?></label>
|
473 |
<input type="radio" id="shuffle1" name="shuffle" <?php echo (($row->shuffle) ? 'checked="checked"' : ''); ?> value="1" />
|
474 |
+
<label <?php echo (($row->shuffle) ? 'class="selected_color"' : ''); ?> for="shuffle1"><?php _e('Yes', WDS()->prefix); ?></label>
|
475 |
<input type="radio" id="shuffle0" name="shuffle" <?php echo (($row->shuffle) ? '' : 'checked="checked"'); ?> value="0" />
|
476 |
+
<label <?php echo (($row->shuffle) ? '' : 'class="selected_color"'); ?> for="shuffle0"><?php _e('No', WDS()->prefix); ?></label>
|
477 |
+
<p class="description"><?php _e('Enable this setting to have the slides change in random order during autoplay.', WDS()->prefix); ?></p>
|
478 |
</span>
|
479 |
<span class="wd-group">
|
480 |
+
<label class="wd-label"><?php _e('Two way slideshow', WDS()->prefix); ?></label>
|
481 |
<input type="radio" id="twoway_slideshow1" name="twoway_slideshow" <?php echo (($row->twoway_slideshow) ? 'checked="checked"' : ''); ?> value="1" />
|
482 |
+
<label <?php echo (($row->twoway_slideshow) ? 'class="selected_color"' : ''); ?> for="twoway_slideshow1"><?php _e('Yes', WDS()->prefix); ?></label>
|
483 |
<input type="radio" id="twoway_slideshow0" name="twoway_slideshow" <?php echo (($row->twoway_slideshow) ? '' : 'checked="checked"'); ?> value="0" />
|
484 |
+
<label <?php echo (($row->twoway_slideshow) ? '' : 'class="selected_color"'); ?> for="twoway_slideshow0"><?php _e('No', WDS()->prefix); ?></label>
|
485 |
+
<p class="description"><?php _e('If the user switches to previous slide, the slideshow starts to go backwards during autoplay.', WDS()->prefix); ?></p>
|
486 |
</span>
|
487 |
<span class="wd-group">
|
488 |
+
<label class="wd-label"><?php _e('Stop on hover', WDS()->prefix); ?></label>
|
489 |
<input type="radio" id="stop_animation1" name="stop_animation" <?php echo (($row->stop_animation) ? 'checked="checked"' : ''); ?> value="1" />
|
490 |
+
<label <?php echo (($row->stop_animation) ? 'class="selected_color"' : ''); ?> for="stop_animation1"><?php _e('Yes', WDS()->prefix); ?></label>
|
491 |
<input type="radio" id="stop_animation0" name="stop_animation" <?php echo (($row->stop_animation) ? '' : 'checked="checked"'); ?> value="0" />
|
492 |
+
<label <?php echo (($row->stop_animation) ? '' : 'class="selected_color"'); ?> for="stop_animation0"><?php _e('No', WDS()->prefix); ?></label>
|
493 |
+
<p class="description"><?php _e('The option works when autoplay is on.', WDS()->prefix); ?></p>
|
494 |
</span>
|
495 |
<span class="wd-group">
|
496 |
+
<label class="wd-label" for="start_slide_num"><?php _e('Start with slide', WDS()->prefix); ?></label>
|
497 |
<input type="text" name="start_slide_num" id="start_slide_num" value="<?php echo $row->start_slide_num; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" />
|
498 |
+
<p class="description"><?php _e('The slider will start from the specified slide. Set the value to 0 for random.', WDS()->prefix); ?></p>
|
499 |
</span>
|
500 |
<span class="wd-group">
|
501 |
+
<label class="wd-label"><?php _e('Music', WDS()->prefix); ?></label>
|
502 |
<input type="radio" id="music1" name="music" <?php echo (($row->music) ? 'checked="checked"' : ''); ?> value="1" onClick="wds_enable_disable('', 'tr_music_url', 'music1')" />
|
503 |
+
<label <?php echo (($row->music) ? 'class="selected_color"' : ''); ?> for="music1"><?php _e('Yes', WDS()->prefix); ?></label>
|
504 |
<input type="radio" id="music0" name="music" <?php echo (($row->music) ? '' : 'checked="checked"'); ?> value="0" onClick="wds_enable_disable('none', 'tr_music_url', 'music0')" />
|
505 |
+
<label <?php echo (($row->music) ? '' : 'class="selected_color"'); ?> for="music0"><?php _e('No', WDS()->prefix); ?></label>
|
506 |
+
<p class="description"><?php _e('You can have music/audio track playback with the slider.', WDS()->prefix); ?></p>
|
507 |
</span>
|
508 |
<span class="wd-group" id="tr_music_url">
|
509 |
+
<label class="wd-label" for="music_url"><?php _e('Music url', WDS()->prefix); ?></label>
|
510 |
<input type="text" id="music_url" name="music_url" size="39" value="<?php echo $row->music_url; ?>" style="display:inline-block;" />
|
511 |
+
<input id="add_music_url" class="button button-secondary" type="button" onclick="wds_media_uploader('music', event, false); return false;" value="<?php _e('Add music', WDS()->prefix); ?>" />
|
512 |
+
<p class="description"><?php _e('Only .aac,.m4a,.f4a,.mp3,.ogg,.oga formats are supported.', WDS()->prefix); ?></p>
|
513 |
</span>
|
514 |
<span class="wd-group">
|
515 |
+
<label class="wd-label" for="align"><?php _e('Slider alignment', WDS()->prefix); ?></label>
|
516 |
<select class="select_icon select_icon_320" name="align" id="align">
|
517 |
<?php
|
518 |
foreach ($aligns as $key => $align) {
|
522 |
}
|
523 |
?>
|
524 |
</select>
|
525 |
+
<p class="description"><?php _e('Set the alignment of the slider.', WDS()->prefix); ?></p>
|
526 |
</span>
|
527 |
<span class="wd-group">
|
528 |
+
<label class="wd-label" for="background_color"><?php _e('Background color', WDS()->prefix); ?></label>
|
529 |
<input type="text" name="background_color" id="background_color" value="<?php echo $row->background_color; ?>" class="color" onchange="jQuery('div[id^=\'wds_preview_image\']').css({backgroundColor: wds_hex_rgba(jQuery(this).val(), 100 - jQuery('#background_transparent').val())})" />
|
530 |
<input id="background_transparent" name="background_transparent" class="spider_int_input" type="text" onchange="jQuery('div[id^=\'wds_preview_image\']').css({backgroundColor: wds_hex_rgba(jQuery('#background_color').val(), 100 - jQuery(this).val())})" onkeypress="return spider_check_isnum(event)" value="<?php echo $row->background_transparent; ?>" /> %
|
531 |
+
<p class="description"><?php _e('Transparency Value must be between 0 and 100.', WDS()->prefix); ?></p>
|
532 |
</span>
|
533 |
<span class="wd-group">
|
534 |
+
<label class="wd-label" for="glb_border_width"><?php _e('Border', WDS()->prefix); ?></label>
|
535 |
<input type="text" name="glb_border_width" id="glb_border_width" value="<?php echo $row->glb_border_width; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> px
|
536 |
<select class="select_icon select_icon_320" name="glb_border_style" id="glb_border_style">
|
537 |
<?php
|
543 |
?>
|
544 |
</select>
|
545 |
<input type="text" name="glb_border_color" id="glb_border_color" value="<?php echo $row->glb_border_color; ?>" class="color" />
|
546 |
+
<p class="description"><?php _e('Set the border width, type and the color.', WDS()->prefix); ?></p>
|
547 |
</span>
|
548 |
<span class="wd-group">
|
549 |
+
<label class="wd-label" for="glb_border_radius"><?php _e('Border radius', WDS()->prefix); ?></label>
|
550 |
<input type="text" name="glb_border_radius" id="glb_border_radius" value="<?php echo $row->glb_border_radius; ?>" class="spider_char_input" />
|
551 |
+
<p class="description"><?php _e('Use CSS type values (e.g. 4px).', WDS()->prefix); ?></p>
|
552 |
</span>
|
553 |
<span class="wd-group">
|
554 |
+
<label class="wd-label" for="glb_margin"><?php _e('Margin', WDS()->prefix); ?></label>
|
555 |
<input type="text" name="glb_margin" id="glb_margin" value="<?php echo $row->glb_margin; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> px
|
556 |
+
<p class="description"><?php _e('Set a margin for the slider.', WDS()->prefix); ?></p>
|
557 |
</span>
|
558 |
<span class="wd-group">
|
559 |
+
<label class="wd-label" for="glb_box_shadow"><?php _e('Shadow', WDS()->prefix); ?></label>
|
560 |
<input type="text" name="glb_box_shadow" id="glb_box_shadow" value="<?php echo $row->glb_box_shadow; ?>" class="spider_box_input" />
|
561 |
+
<p class="description"><?php _e('Use CSS type values (e.g. 10px 10px 5px #888888).', WDS()->prefix); ?></p>
|
562 |
</span>
|
563 |
</div>
|
564 |
</div>
|
565 |
</div>
|
566 |
</div>
|
567 |
</div>
|
568 |
+
<div class="wds_nav_box wds_nav_carousel_box<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>">
|
569 |
<div class="wd-table">
|
570 |
<div class="wd-table-col wd-table-col-50 wd-table-col-left">
|
571 |
<div class="wd-box-section">
|
572 |
<div class="wd-box-content">
|
573 |
<?php
|
574 |
+
if ( WDS()->is_free ) {
|
575 |
+
echo WDW_S_Library::message_id(0, __('Carousel is disabled in free version.', WDS()->prefix), 'error');
|
576 |
}
|
577 |
?>
|
578 |
<span class="wd-group">
|
579 |
+
<label class="wd-label"><?php _e('Carousel:', WDS()->prefix); ?></label>
|
580 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="radio" id="carousel1" name="carousel" <?php echo (($row->carousel) ? 'checked="checked"' : ''); ?> value="1" onClick="showhide_for_carousel_fildes(1)"/>
|
581 |
+
<label <?php echo (($row->carousel) ? 'class="selected_color"' : ''); ?> for="carousel1"><?php _e('Yes', WDS()->prefix); ?></label>
|
582 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="radio" id="carousel0" name="carousel" <?php echo (($row->carousel) ? '' : 'checked="checked"'); ?> value="0" onClick="showhide_for_carousel_fildes(0)"/>
|
583 |
+
<label <?php echo (($row->carousel) ? '' : 'class="selected_color"'); ?> for="carousel0"><?php _e('No', WDS()->prefix); ?></label>
|
584 |
+
<p class="description"><?php _e('Use this option to activate Carousel feature. Note, that the effects you have selected in Global settings for your slider will not apply.', WDS()->prefix); ?></p>
|
585 |
</span>
|
586 |
<span class="wd-group">
|
587 |
+
<label class="wd-label" for="carousel_image_counts"><?php _e('Number of images for carousel:', WDS()->prefix); ?></label>
|
588 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" id="carousel_image_counts" name="carousel_image_counts" value="<?php echo $row->carousel_image_counts; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" />
|
589 |
<p class="description"></p>
|
590 |
</span>
|
591 |
<span class="wd-group">
|
592 |
+
<label class="wd-label" for="carousel_image_parameters"><?php _e('Carousel image ratio:', WDS()->prefix); ?></label>
|
593 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" id="carousel_image_parameters" name="carousel_image_parameters" value="<?php echo $row->carousel_image_parameters; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" />
|
594 |
+
<p class="description"><?php _e('The value must be between 0 and 1.', WDS()->prefix); ?></p>
|
595 |
</span>
|
596 |
<span class="wd-group">
|
597 |
+
<label class="wd-label"><?php _e('Container fit:', WDS()->prefix); ?></label>
|
598 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="radio" id="carousel_fit_containerWidth1" name="carousel_fit_containerWidth" <?php echo (($row->carousel_fit_containerWidth) ? 'checked="checked"' : ''); ?> value="1" />
|
599 |
+
<label <?php echo (($row->carousel_fit_containerWidth) ? 'class="selected_color"' : ''); ?> for="carousel_fit_containerWidth1"><?php _e('Yes', WDS()->prefix); ?></label>
|
600 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="radio" id="carousel_fit_containerWidth0" name="carousel_fit_containerWidth" <?php echo (($row->carousel_fit_containerWidth) ? '' : 'checked="checked"'); ?> value="0" />
|
601 |
+
<label <?php echo (($row->carousel_fit_containerWidth) ? '' : 'class="selected_color"'); ?> for="carousel_fit_containerWidth0"><?php _e('No', WDS()->prefix); ?></label>
|
602 |
<p class="description"></p>
|
603 |
</span>
|
604 |
</div>
|
608 |
<div class="wd-box-section">
|
609 |
<div class="wd-box-content">
|
610 |
<span class="wd-group">
|
611 |
+
<label class="wd-label" for="carousel_width"><?php _e('Fixed width:', WDS()->prefix); ?></label>
|
612 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" id="carousel_width" name="carousel_width" value="<?php echo $row->carousel_width; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> px
|
613 |
<p class="description"></p>
|
614 |
</span>
|
615 |
<span class="wd-group">
|
616 |
+
<label class="wd-label" for="carousel_degree"><?php _e('Background image angle:', WDS()->prefix); ?></label>
|
617 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" id="carousel_degree" name="carousel_degree" value="<?php echo $row->carousel_degree; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> deg
|
618 |
<p class="description"></p>
|
619 |
</span>
|
620 |
<span class="wd-group">
|
621 |
+
<label class="wd-label" for="carousel_grayscale"><?php _e('Background image grayscale:', WDS()->prefix); ?></label>
|
622 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="carousel_grayscale" id="carousel_grayscale" value="<?php echo $row->carousel_grayscale; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/>%
|
623 |
+
<p class="description"><?php _e('You can change the color scheme for background images to grayscale. Values must be between 0 to 100', WDS()->prefix); ?></p>
|
624 |
</span>
|
625 |
<span class="wd-group">
|
626 |
+
<label class="wd-label" for="carousel_transparency"><?php _e('Background image transparency:', WDS()->prefix); ?></label>
|
627 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="carousel_transparency" id="carousel_transparency" value="<?php echo $row->carousel_transparency; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/>%
|
628 |
+
<p class="description"><?php _e('You can set transparency level for background images. Values should be between 0 to 100', WDS()->prefix); ?></p>
|
629 |
</span>
|
630 |
</div>
|
631 |
</div>
|
638 |
<div class="wd-box-section">
|
639 |
<div class="wd-box-content">
|
640 |
<span class="wd-group">
|
641 |
+
<label class="wd-label"><?php _e('Next / Previous buttons:', WDS()->prefix); ?></label>
|
642 |
<input type="radio" name="prev_next_butt" id="prev_next_butt_1" value="1" <?php if ($row->prev_next_butt) echo 'checked="checked"'; ?> />
|
643 |
+
<label <?php echo $row->prev_next_butt ? 'class="selected_color"' : ''; ?> for="prev_next_butt_1"><?php _e('Yes', WDS()->prefix); ?></label>
|
644 |
<input type="radio" name="prev_next_butt" id="prev_next_butt_0" value="0" <?php if (!$row->prev_next_butt) echo 'checked="checked"'; ?> />
|
645 |
+
<label <?php echo $row->prev_next_butt ? '' : 'class="selected_color"'; ?> for="prev_next_butt_0"><?php _e('No', WDS()->prefix); ?></label>
|
646 |
+
<p class="description"><?php _e('Enable this option to display Previous and Next buttons.', WDS()->prefix); ?></p>
|
647 |
</span>
|
648 |
<span class="wd-group">
|
649 |
+
<label class="wd-label"><?php _e('Mouse swipe navigation:', WDS()->prefix); ?></label>
|
650 |
<input type="radio" name="mouse_swipe_nav" id="mouse_swipe_nav_1" value="1" <?php if ($row->mouse_swipe_nav) echo 'checked="checked"'; ?> />
|
651 |
+
<label <?php echo $row->mouse_swipe_nav ? 'class="selected_color"' : ''; ?> for="mouse_swipe_nav_1"><?php _e('Yes', WDS()->prefix); ?></label>
|
652 |
<input type="radio" name="mouse_swipe_nav" id="mouse_swipe_nav_0" value="0" <?php if (!$row->mouse_swipe_nav) echo 'checked="checked"'; ?> />
|
653 |
+
<label <?php echo $row->mouse_swipe_nav ? '' : 'class="selected_color"'; ?> for="mouse_swipe_nav_0"><?php _e('No', WDS()->prefix); ?></label>
|
654 |
<p class="description"></p>
|
655 |
</span>
|
656 |
<span class="wd-group">
|
657 |
+
<label class="wd-label"><?php _e('Touch swipe navigation:', WDS()->prefix); ?></label>
|
658 |
<input type="radio" name="touch_swipe_nav" id="touch_swipe_nav_1" value="1" <?php if ($row->touch_swipe_nav) echo 'checked="checked"'; ?> />
|
659 |
+
<label <?php echo $row->touch_swipe_nav ? 'class="selected_color"' : ''; ?> for="touch_swipe_nav_1"><?php _e('Yes', WDS()->prefix); ?></label>
|
660 |
<input type="radio" name="touch_swipe_nav" id="touch_swipe_nav_0" value="0" <?php if (!$row->touch_swipe_nav) echo 'checked="checked"'; ?> />
|
661 |
+
<label <?php echo $row->touch_swipe_nav ? '' : 'class="selected_color"'; ?> for="touch_swipe_nav_0"><?php _e('No', WDS()->prefix); ?></label>
|
662 |
<p class="description"></p>
|
663 |
</span>
|
664 |
<span class="wd-group">
|
665 |
+
<label class="wd-label"><?php _e('Mouse wheel navigation:', WDS()->prefix); ?></label>
|
666 |
<input type="radio" name="mouse_wheel_nav" id="mouse_wheel_nav_1" value="1" <?php if ($row->mouse_wheel_nav) echo 'checked="checked"'; ?> />
|
667 |
+
<label <?php echo $row->mouse_wheel_nav ? 'class="selected_color"' : ''; ?> for="mouse_wheel_nav_1"><?php _e('Yes', WDS()->prefix); ?></label>
|
668 |
<input type="radio" name="mouse_wheel_nav" id="mouse_wheel_nav_0" value="0" <?php if (!$row->mouse_wheel_nav) echo 'checked="checked"'; ?> />
|
669 |
+
<label <?php echo $row->mouse_wheel_nav ? '' : 'class="selected_color"'; ?> for="mouse_wheel_nav_0"><?php _e('No', WDS()->prefix); ?></label>
|
670 |
<p class="description"></p>
|
671 |
</span>
|
672 |
<span class="wd-group">
|
673 |
+
<label class="wd-label"><?php _e('Keyboard navigation:', WDS()->prefix); ?></label>
|
674 |
<input type="radio" name="keyboard_nav" id="keyboard_nav_1" value="1" <?php if ($row->keyboard_nav) echo 'checked="checked"'; ?> />
|
675 |
+
<label <?php echo $row->keyboard_nav ? 'class="selected_color"' : ''; ?> for="keyboard_nav_1"><?php _e('Yes', WDS()->prefix); ?></label>
|
676 |
<input type="radio" name="keyboard_nav" id="keyboard_nav_0" value="0" <?php if (!$row->keyboard_nav) echo 'checked="checked"'; ?> />
|
677 |
+
<label <?php echo $row->keyboard_nav ? '' : 'class="selected_color"'; ?> for="keyboard_nav_0"><?php _e('No', WDS()->prefix); ?></label>
|
678 |
<p class="description"></p>
|
679 |
</span>
|
680 |
<span class="wd-group">
|
681 |
+
<label class="wd-label"><?php _e('Show Navigation buttons:', WDS()->prefix); ?></label>
|
682 |
<input type="radio" name="navigation" id="navigation_1" value="hover" <?php if ($row->navigation == 'hover') echo 'checked="checked"'; ?> />
|
683 |
+
<label <?php echo $row->navigation == 'hover' ? 'class="selected_color"' : ''; ?> for="navigation_1"><?php _e('On hover', WDS()->prefix); ?></label>
|
684 |
<input type="radio" name="navigation" id="navigation_0" value="always" <?php if ($row->navigation == 'always' ) echo 'checked="checked"'; ?> />
|
685 |
+
<label <?php echo $row->navigation == 'always' ? 'class="selected_color"' : ''; ?> for="navigation_0"><?php _e('Always', WDS()->prefix); ?></label>
|
686 |
<p class="description"></p>
|
687 |
</span>
|
688 |
<span class="wd-group">
|
689 |
+
<label class="wd-label"><?php _e('Image for Next / Previous buttons:', WDS()->prefix); ?></label>
|
690 |
<input type="radio" name="rl_butt_img_or_not" id="rl_butt_img_or_not_our" value="our" <?php if ($row->rl_butt_img_or_not == 'our') echo 'checked="checked"'; ?> onClick="image_for_next_prev_butt('our')" />
|
691 |
+
<label <?php if ($row->rl_butt_img_or_not == 'our') echo 'class="selected_color"'; ?> for="rl_butt_img_or_not_our"><?php _e('Default', WDS()->prefix); ?></label>
|
692 |
<input type="radio" name="rl_butt_img_or_not" id="rl_butt_img_or_not_cust" value="custom" <?php if ($row->rl_butt_img_or_not == 'custom') echo 'checked="checked"'; ?> onClick="image_for_next_prev_butt('custom')" />
|
693 |
+
<label <?php if ($row->rl_butt_img_or_not == 'custom') echo 'class="selected_color"'; ?> for="rl_butt_img_or_not_cust"><?php _e('Custom', WDS()->prefix); ?></label>
|
694 |
<input type="radio" name="rl_butt_img_or_not" id="rl_butt_img_or_not_style" value="style" <?php if ($row->rl_butt_img_or_not == 'style') echo 'checked="checked"'; ?> onClick="image_for_next_prev_butt('style')" />
|
695 |
+
<label <?php if ($row->rl_butt_img_or_not == 'style') echo 'class="selected_color"'; ?> for="rl_butt_img_or_not_style"><?php _e('Styled', WDS()->prefix); ?></label>
|
696 |
<input type="hidden" id="right_butt_url" name="right_butt_url" value="<?php echo $row->right_butt_url; ?>" />
|
697 |
<input type="hidden" id="right_butt_hov_url" name="right_butt_hov_url" value="<?php echo $row->right_butt_hov_url; ?>" />
|
698 |
<input type="hidden" id="left_butt_url" name="left_butt_url" value="<?php echo $row->left_butt_url; ?>" />
|
699 |
<input type="hidden" id="left_butt_hov_url" name="left_butt_hov_url" value="<?php echo $row->left_butt_hov_url; ?>" />
|
700 |
+
<p class="description"><?php _e('You can select to use default navigation buttons or to upload custom icons.', WDS()->prefix); ?></p>
|
701 |
</span>
|
702 |
<span class="wd-group" id="right_left_butt_style">
|
703 |
+
<label class="wd-label" for="rl_butt_style"><?php _e('Next / Previous buttons style:', WDS()->prefix); ?></label>
|
704 |
<div style="display: table;">
|
705 |
<div style="display: table-cell; vertical-align: middle;">
|
706 |
<select class="select_icon select_icon_320" name="rl_butt_style" id="rl_butt_style" onchange="change_rl_butt_style(jQuery(this).val())">
|
718 |
<i id="wds_right_style" class="fa <?php echo $row->rl_butt_style; ?>-right" style="color: #<?php echo $row->butts_color; ?>; display: inline-block; font-size: 40px; width: 40px; height: 40px;"></i>
|
719 |
</div>
|
720 |
</div>
|
721 |
+
<p class="description"><?php _e('Choose the style of the button you prefer to have as navigation buttons.', WDS()->prefix); ?></p>
|
722 |
</span>
|
723 |
<span class="wd-group" id="right_butt_upl">
|
724 |
+
<label class="wd-label"><?php _e('Upload buttons images:', WDS()->prefix); ?></label>
|
725 |
<div style="display: table;">
|
726 |
<div style="display: table-cell; vertical-align: middle;" class="display_block">
|
727 |
<?php
|
728 |
if (!$spider_uploader) {
|
729 |
?>
|
730 |
+
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('nav_left_but', event, false); return false;" value="<?php _e('Previous Button', WDS()->prefix); ?>" />
|
731 |
<?php
|
732 |
}
|
733 |
else {
|
734 |
?>
|
735 |
+
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'nav_left_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Previous Button', WDS()->prefix); ?>" onclick="return false;">
|
736 |
+
<?php _e('Previous Button', WDS()->prefix); ?>
|
737 |
</a>
|
738 |
<?php
|
739 |
}
|
741 |
<?php
|
742 |
if (!$spider_uploader) {
|
743 |
?>
|
744 |
+
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('nav_left_hov_but', event, false); return false;" value="<?php _e('Previous Button Hover', WDS()->prefix); ?>" />
|
745 |
<?php
|
746 |
}
|
747 |
else {
|
748 |
?>
|
749 |
+
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'nav_left_hov_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Previous Button Hover', WDS()->prefix); ?>" onclick="return false;">
|
750 |
+
<?php _e('Previous Button Hover', WDS()->prefix); ?>
|
751 |
</a>
|
752 |
<?php
|
753 |
}
|
757 |
<?php
|
758 |
if (!$spider_uploader) {
|
759 |
?>
|
760 |
+
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('nav_right_but', event, false); return false;" value="<?php _e('Next Button', WDS()->prefix); ?>" />
|
761 |
<?php
|
762 |
}
|
763 |
else {
|
764 |
?>
|
765 |
+
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'nav_right_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Next Button', WDS()->prefix); ?>" onclick="return false;">
|
766 |
+
<?php _e('Next Button', WDS()->prefix); ?>
|
767 |
</a>
|
768 |
<?php
|
769 |
}
|
771 |
<?php
|
772 |
if (!$spider_uploader) {
|
773 |
?>
|
774 |
+
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('nav_right_hov_but', event, false); return false;" value="<?php _e('Next Button Hover', WDS()->prefix); ?>" />
|
775 |
<?php
|
776 |
}
|
777 |
else {
|
778 |
?>
|
779 |
+
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'nav_right_hov_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Next Button Hover', WDS()->prefix); ?>" onclick="return false;">
|
780 |
+
<?php _e('Next Button Hover', WDS()->prefix); ?>
|
781 |
</a>
|
782 |
<?php
|
783 |
}
|
790 |
<img id="right_butt_hov_img" src="<?php echo $row->right_butt_hov_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
|
791 |
</div>
|
792 |
<div style="display: table-cell; text-align: center; vertical-align: middle;" class="display_block wds_reverse_cont">
|
793 |
+
<input type="button" class="button button-small wds_reverse" onclick="wds_change_custom_src()" value="<?php _e('Reverse', WDS()->prefix); ?>" />
|
794 |
</div>
|
795 |
</div>
|
796 |
<script>
|
797 |
var wds_rl_butt_type = [];
|
798 |
+
var rl_butt_dir = '<?php echo WDS()->plugin_url . '/images/arrow/'; ?>';
|
799 |
var type_cur_fold = '1';
|
800 |
<?php
|
801 |
+
$folder_names = scandir(WDS()->plugin_dir . '/images/arrow');
|
802 |
$cur_fold_name = '';
|
803 |
$cur_type_key = '';
|
804 |
$cur_color_key = '';
|
806 |
array_splice($folder_names, 0, 2);
|
807 |
$flag = FALSE;
|
808 |
foreach ($folder_names as $type_key => $folder_name) {
|
809 |
+
if (is_dir(WDS()->plugin_dir . '/images/arrow/' . $folder_name)) {
|
810 |
?>
|
811 |
wds_rl_butt_type["<?php echo $type_key; ?>"] = [];
|
812 |
wds_rl_butt_type["<?php echo $type_key; ?>"]["type_name"] = "<?php echo $folder_name; ?>";
|
818 |
$flag = TRUE;
|
819 |
$cur_fold_name = $folder_name;
|
820 |
$cur_type_key = $type_key;
|
821 |
+
$cur_sub_fold_names = scandir(WDS()->plugin_dir . '/images/arrow/' . $cur_fold_name);
|
822 |
array_splice($cur_sub_fold_names, 0, 2);
|
823 |
?>
|
824 |
+
type_cur_fold = '<?php echo $cur_type_key;?>';
|
825 |
<?php
|
826 |
}
|
827 |
}
|
828 |
+
$sub_folder_names = scandir( WDS()->plugin_dir . '/images/arrow/' . $folder_name);
|
829 |
array_splice($sub_folder_names, 0, 2);
|
830 |
foreach ($sub_folder_names as $color_key => $sub_folder_name) {
|
831 |
+
if (is_dir(WDS()->plugin_dir . '/images/arrow/' . $folder_name . '/' . $sub_folder_name)) {
|
832 |
if ($cur_fold_name == $folder_name) {
|
833 |
/* Getting current button's color key.*/
|
834 |
if (in_array($sub_folder_name, $check_cur_fold)) {
|
851 |
</script>
|
852 |
</span>
|
853 |
<span class="wd-group" id="right_left_butt_select">
|
854 |
+
<label class="wd-label" for="right_butt_url"><?php _e('Choose buttons:', WDS()->prefix); ?></label>
|
855 |
<div style="display: table; margin-bottom: 14px;">
|
856 |
<div style="display: table-cell; vertical-align: middle;" class="display_block">
|
857 |
<div style="display: block; width: 122px;" class="default_buttons">
|
858 |
<div class="spider_choose_option" onclick="wds_choose_option(this)">
|
859 |
+
<div class="spider_option_main_title"><?php _e('Choose group', WDS()->prefix); ?></div>
|
860 |
<div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color: #1E8CBE"></i></div>
|
861 |
</div>
|
862 |
<div class="spider_options_cont">
|
865 |
?>
|
866 |
<div class="spider_option_cont wds_rl_butt_groups" value="<?php echo $type_key; ?>" <?php echo (($cur_type_key == $type_key) ? 'selected="selected" style="background-color: #3399FF;"' : ''); ?> onclick="change_rl_butt_type(this)">
|
867 |
<div class="spider_option_cont_title">
|
868 |
+
<?php _e('Group', WDS()->prefix); echo '-' . ++$type_key; ?>
|
869 |
</div>
|
870 |
<div class="spider_option_cont_img">
|
871 |
<img class="src_top_left" style="display: inline-block; width: 14px; height: 14px;" />
|
879 |
if (!$flag) {
|
880 |
/* Folder doesn't exist.*/
|
881 |
?>
|
882 |
+
<div class="spider_option_cont" value="0" selected="selected" disabled="disabled"><?php _e('Custom', WDS()->prefix); ?></div>
|
883 |
<?php
|
884 |
}
|
885 |
?>
|
888 |
</div>
|
889 |
<div style="display:table-cell;vertical-align: middle;" class="display_block">
|
890 |
<div style="display: block; width: 122px; margin-left: 12px;" class="default_buttons">
|
891 |
+
<div class="spider_choose_option" onclick="<?php echo (WDS()->is_free ? 'alert(\'' . addslashes(__('This functionality is disabled in free version.', WDS()->prefix)) . '\')' : 'wds_choose_option_color(this)'); ?>">
|
892 |
+
<div class="spider_option_main_title"><?php _e('Choose color', WDS()->prefix); ?></div>
|
893 |
<div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color:#1E8CBE"></i></div>
|
894 |
</div>
|
895 |
<div class="spider_options_color_cont">
|
898 |
?>
|
899 |
<div class="spider_option_cont wds_rl_butt_col_groups" value="<?php echo $color_key; ?>" <?php echo (($cur_color_key == $color_key) ? 'selected="selected" style="background-color: #3399FF;"' : ''); ?> onclick="change_rl_butt_color(this,<?php echo $cur_type_key; ?>)">
|
900 |
<div class="spider_option_cont_title" >
|
901 |
+
<?php _e('Color', WDS()->prefix); echo '-' . ++$color_key; ?>
|
902 |
</div>
|
903 |
<div class="spider_option_cont_img">
|
904 |
<img class="src_col_top_left" style="display:inline-block; width: 14px; height: 14px;" />
|
912 |
if (!$flag) {
|
913 |
/* Folder doesn't exist.*/
|
914 |
?>
|
915 |
+
<div class="spider_option_cont" value="0" selected="selected" disabled="disabled"><?php _e('Custom', WDS()->prefix); ?></div>
|
916 |
<?php
|
917 |
}
|
918 |
?>
|
928 |
</div>
|
929 |
</div>
|
930 |
<div style="display: table-cell; text-align: center; vertical-align: middle;">
|
931 |
+
<input type="button" class="button button-small wds_reverse" onclick="change_src()" value="<?php _e('Reverse', WDS()->prefix); ?>" />
|
932 |
</div>
|
933 |
</div>
|
934 |
+
<p class="description"><?php _e('Choose the type and color of navigation buttons.', WDS()->prefix); ?></p>
|
935 |
</span>
|
936 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>" id="right_left_butt_size">
|
937 |
+
<label class="wd-label" for="rl_butt_size"><?php _e('Next / Previous buttons size:', WDS()->prefix); ?></label>
|
938 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="rl_butt_size" id="rl_butt_size" value="<?php echo $row->rl_butt_size; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
|
939 |
+
<p class="description"><?php _e('Set the size of Next and Previous buttons.', WDS()->prefix); ?></p>
|
940 |
</span>
|
941 |
</div>
|
942 |
</div>
|
945 |
<div class="wd-box-section">
|
946 |
<div class="wd-box-content">
|
947 |
<span class="wd-group">
|
948 |
+
<label class="wd-label"><?php _e('Play / Pause button:', WDS()->prefix); ?></label>
|
949 |
<input type="radio" name="play_paus_butt" id="play_paus_butt_1" value="1" <?php if ($row->play_paus_butt) echo 'checked="checked"'; ?> />
|
950 |
+
<label <?php if ($row->play_paus_butt) echo 'class="selected_color"'; ?> for="play_paus_butt_1"><?php _e('Yes', WDS()->prefix); ?></label>
|
951 |
<input type="radio" name="play_paus_butt" id="play_paus_butt_0" value="0" <?php if (!$row->play_paus_butt) echo 'checked="checked"'; ?> />
|
952 |
+
<label <?php if (!$row->play_paus_butt) echo 'class="selected_color"'; ?> for="play_paus_butt_0"><?php _e('No', WDS()->prefix); ?></label>
|
953 |
+
<p class="description"><?php _e('Select this option to display Play and Pause buttons.', WDS()->prefix); ?></p>
|
954 |
</span>
|
955 |
<span class="wd-group">
|
956 |
+
<label class="wd-label"><?php _e('Image for Play / Pause buttons:', WDS()->prefix); ?></label>
|
957 |
<input type="radio" name="play_paus_butt_img_or_not" id="play_pause_butt_img_or_not_our" value="our" <?php if ($row->play_paus_butt_img_or_not == 'our') echo 'checked="checked"'; ?> onClick="image_for_play_pause_butt('our')" />
|
958 |
+
<label <?php if ($row->play_paus_butt_img_or_not == 'our') echo 'class="selected_color"'; ?> for="play_pause_butt_img_or_not_our"><?php _e('Default', WDS()->prefix); ?></label>
|
959 |
<input type="radio" name="play_paus_butt_img_or_not" id="play_pause_butt_img_or_not_cust" value="custom" <?php if ($row->play_paus_butt_img_or_not == 'custom') echo 'checked="checked"'; ?> onClick="image_for_play_pause_butt('custom')" />
|
960 |
+
<label <?php if ($row->play_paus_butt_img_or_not == 'custom') echo 'class="selected_color"'; ?> for="play_pause_butt_img_or_not_cust"><?php _e('Custom', WDS()->prefix); ?></label>
|
961 |
<input type="radio" name="play_paus_butt_img_or_not" id="play_pause_butt_img_or_not_select" value="style" <?php if ($row->play_paus_butt_img_or_not == 'style') echo 'checked="checked"'; ?> onClick="image_for_play_pause_butt('style')" />
|
962 |
+
<label <?php if ($row->play_paus_butt_img_or_not == 'style') echo 'class="selected_color"'; ?> for="play_pause_butt_img_or_not_select"><?php _e('Styled', WDS()->prefix); ?></label>
|
963 |
<input type="hidden" id="play_butt_url" name="play_butt_url" value="<?php echo $row->play_butt_url; ?>" />
|
964 |
<input type="hidden" id="play_butt_hov_url" name="play_butt_hov_url" value="<?php echo $row->play_butt_hov_url; ?>" />
|
965 |
<input type="hidden" id="paus_butt_url" name="paus_butt_url" value="<?php echo $row->paus_butt_url; ?>" />
|
966 |
<input type="hidden" id="paus_butt_hov_url" name="paus_butt_hov_url" value="<?php echo $row->paus_butt_hov_url; ?>" />
|
967 |
+
<p class="description"><?php _e('You can use default Play and Pause buttons or to upload custom icons.', WDS()->prefix); ?></p>
|
968 |
</span>
|
969 |
<span class="wd-group" id="play_pause_butt_style">
|
970 |
+
<label class="wd-label" for="pp_butt_style"><?php _e('Play / Pause buttons style:', WDS()->prefix); ?></label>
|
971 |
<div style="display: table-cell; vertical-align: middle; background-color: rgba(229, 229, 229, 0.62); text-align: center;">
|
972 |
<i id="wds_play_style" class="fa fa-play" style="color: #<?php echo $row->butts_color; ?>; display: inline-block; font-size: 40px; width: 40px; height: 40px;"></i>
|
973 |
<i id="wds_paus_style" class="fa fa-pause" style="color: #<?php echo $row->butts_color; ?>; display: inline-block; font-size: 40px; width: 40px; height: 40px;"></i>
|
974 |
</div>
|
975 |
</span>
|
976 |
<span class="wd-group" id="play_pause_butt_cust">
|
977 |
+
<label class="wd-label"><?php _e('Upload buttons images:', WDS()->prefix); ?></label>
|
978 |
<div style="display: table;">
|
979 |
<div style="display: table-cell; vertical-align: middle;" class="display_block">
|
980 |
<?php
|
981 |
if (!$spider_uploader) {
|
982 |
?>
|
983 |
+
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('play_but', event, false); return false;" value="<?php _e('Play Button', WDS()->prefix); ?>" />
|
984 |
<?php
|
985 |
}
|
986 |
else {
|
987 |
?>
|
988 |
+
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'play_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Play Button', WDS()->prefix); ?>" onclick="return false;">
|
989 |
+
<?php _e('Play Button', WDS()->prefix); ?>
|
990 |
</a>
|
991 |
<?php
|
992 |
}
|
994 |
<?php
|
995 |
if (!$spider_uploader) {
|
996 |
?>
|
997 |
+
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('play_hov_but', event, false); return false;" value="<?php _e('Play Button Hover', WDS()->prefix); ?>" />
|
998 |
<?php
|
999 |
}
|
1000 |
else {
|
1001 |
?>
|
1002 |
+
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'play_hov_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Play Button Hover', WDS()->prefix); ?>" onclick="return false;">
|
1003 |
+
<?php _e('Play Button Hover', WDS()->prefix); ?>
|
1004 |
</a>
|
1005 |
<?php
|
1006 |
}
|
1010 |
<?php
|
1011 |
if (!$spider_uploader) {
|
1012 |
?>
|
1013 |
+
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('paus_but', event, false); return false;" value="<?php _e('Pause Button', WDS()->prefix); ?>" />
|
1014 |
<?php
|
1015 |
}
|
1016 |
else {
|
1017 |
?>
|
1018 |
+
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'paus_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Pause Button', WDS()->prefix); ?>" onclick="return false;">
|
1019 |
+
<?php _e('Pause Button', WDS()->prefix); ?>
|
1020 |
</a>
|
1021 |
<?php
|
1022 |
}
|
1024 |
<?php
|
1025 |
if (!$spider_uploader) {
|
1026 |
?>
|
1027 |
+
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('paus_hov_but', event, false); return false;" value="<?php _e('Pause Button Hover', WDS()->prefix); ?>" />
|
1028 |
<?php
|
1029 |
}
|
1030 |
else {
|
1031 |
?>
|
1032 |
+
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'paus_hov_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Pause Button Hover', WDS()->prefix); ?>" onclick="return false;">
|
1033 |
+
<?php _e('Pause Button Hover', WDS()->prefix); ?>
|
1034 |
</a>
|
1035 |
<?php
|
1036 |
}
|
1043 |
<img id="paus_butt_hov_img" src="<?php echo $row->paus_butt_hov_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
|
1044 |
</div>
|
1045 |
<div style="display: table-cell; text-align: center; vertical-align: middle;" class="display_block wds_reverse_cont">
|
1046 |
+
<input type="button" class="button button-small wds_reverse" onclick="wds_change_play_paus_custom_src()" value="<?php _e('Reverse', WDS()->prefix); ?>" />
|
1047 |
</div>
|
1048 |
</div>
|
1049 |
<script>
|
1050 |
var wds_pp_butt_type = [];
|
1051 |
+
var pp_butt_dir = '<?php echo WDS()->plugin_url . '/images/button/'; ?>';
|
1052 |
var pp_type_cur_fold = '1';
|
1053 |
<?php
|
1054 |
+
$folder_names = scandir(WDS()->plugin_dir . '/images/button');
|
1055 |
$butt_cur_fold_name = '';
|
1056 |
$butt_cur_type_key = '';
|
1057 |
$butt_cur_color_key = '';
|
1059 |
array_splice($folder_names, 0, 2);
|
1060 |
$flag = FALSE;
|
1061 |
foreach ($folder_names as $type_key => $folder_name) {
|
1062 |
+
if (is_dir(WDS()->plugin_dir . '/images/button/' . $folder_name)) {
|
1063 |
?>
|
1064 |
wds_pp_butt_type["<?php echo $type_key; ?>"] = [];
|
1065 |
wds_pp_butt_type["<?php echo $type_key; ?>"]["type_name"] = "<?php echo $folder_name; ?>";
|
1071 |
$flag = TRUE;
|
1072 |
$butt_cur_fold_name = $folder_name;
|
1073 |
$butt_cur_type_key = $type_key;
|
1074 |
+
$butt_cur_sub_fold_names = scandir(WDS()->plugin_dir . '/images/button/' . $butt_cur_fold_name);
|
1075 |
array_splice($butt_cur_sub_fold_names, 0, 2);
|
1076 |
?>
|
1077 |
pp_type_cur_fold = '<?php echo $butt_cur_type_key;?>';
|
1078 |
<?php
|
1079 |
}
|
1080 |
}
|
1081 |
+
$sub_folder_names = scandir( WDS()->plugin_dir . '/images/button/' . $folder_name);
|
1082 |
array_splice($sub_folder_names, 0, 2);
|
1083 |
foreach ($sub_folder_names as $color_key => $sub_folder_name) {
|
1084 |
+
if (is_dir(WDS()->plugin_dir . '/images/button/' . $folder_name . '/' . $sub_folder_name)) {
|
1085 |
if ($butt_cur_fold_name == $folder_name) {
|
1086 |
/* Getting current button's color key.*/
|
1087 |
if (in_array($sub_folder_name, $check_butt_cur_fold)) {
|
1104 |
</script>
|
1105 |
</span>
|
1106 |
<span class="wd-group" id="play_pause_butt_select">
|
1107 |
+
<label class="wd-label" for="right_butt_url"><?php _e('Choose buttons:', WDS()->prefix); ?></label>
|
1108 |
<div style="display: table; margin-bottom: 14px;">
|
1109 |
<div style="display: table-cell; vertical-align: middle;" class="display_block" >
|
1110 |
<div style="display: block; width: 122px;" class="default_buttons">
|
1111 |
<div class="spider_choose_option" onclick="wds_choose_pp_option(this)">
|
1112 |
+
<div class="spider_option_main_title"><?php _e('Choose group', WDS()->prefix); ?></div>
|
1113 |
<div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color: #1E8CBE"></i></div>
|
1114 |
</div>
|
1115 |
<div class="spider_pp_options_cont">
|
1118 |
?>
|
1119 |
<div class="spider_option_cont wds_pp_butt_groups" value="<?php echo $type_key; ?>" <?php echo (($butt_cur_type_key == $type_key) ? 'selected="selected" style="background-color: #3399FF;"' : ''); ?> onclick="change_play_paus_butt_type(this)">
|
1120 |
<div class="spider_option_cont_title">
|
1121 |
+
<?php _e('Group', WDS()->prefix); echo '-' . ++$type_key; ?>
|
1122 |
</div>
|
1123 |
<div class="spider_option_cont_img">
|
1124 |
<img class="pp_src_top_left" style="display: inline-block; width: 14px; height: 14px;" />
|
1132 |
if (!$flag) {
|
1133 |
/* Folder doesn't exist.*/
|
1134 |
?>
|
1135 |
+
<div class="spider_option_cont" value="0" selected="selected" disabled="disabled"><?php _e('Custom', WDS()->prefix); ?></div>
|
1136 |
<?php
|
1137 |
}
|
1138 |
?>
|
1141 |
</div>
|
1142 |
<div style="display:table-cell;vertical-align: middle;" class="display_block">
|
1143 |
<div style="display: block; width: 122px; margin-left: 12px;" class="default_buttons">
|
1144 |
+
<div class="spider_choose_option" onclick="<?php echo (WDS()->is_free ? 'alert(\'' . addslashes(__('This functionality is disabled in free version.', WDS()->prefix)) . '\')' : 'wds_choose_pp_option_color(this)'); ?>">
|
1145 |
+
<div class="spider_option_main_title"><?php _e('Choose color', WDS()->prefix); ?></div>
|
1146 |
<div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color:#1E8CBE"></i></div>
|
1147 |
</div>
|
1148 |
<div class="spider_pp_options_color_cont">
|
1151 |
?>
|
1152 |
<div class="spider_option_cont wds_pp_butt_col_groups" value="<?php echo $color_key; ?>" <?php echo (($butt_cur_color_key == $color_key) ? 'selected="selected" style="background-color: #3399FF;"' : ''); ?> onclick="change_play_paus_butt_color(this, <?php echo $cur_type_key; ?>)">
|
1153 |
<div class="spider_option_cont_title" >
|
1154 |
+
<?php _e('Color', WDS()->prefix); echo '-' . ++$color_key; ?>
|
1155 |
</div>
|
1156 |
<div class="spider_option_cont_img">
|
1157 |
<img class="pp_src_col_top_left" style="display:inline-block; width: 14px; height: 14px;" />
|
1165 |
if (!$flag) {
|
1166 |
/* Folder doesn't exist.*/
|
1167 |
?>
|
1168 |
+
<div class="spider_option_cont" value="0" selected="selected" disabled="disabled"><?php _e('Custom', WDS()->prefix); ?></div>
|
1169 |
<?php
|
1170 |
}
|
1171 |
?>
|
1181 |
</div>
|
1182 |
</div>
|
1183 |
<div style="display: table-cell; text-align: center; vertical-align: middle;">
|
1184 |
+
<input type="button" class="button button-small wds_reverse" onclick="change_play_paus_src()" value="<?php _e('Reverse', WDS()->prefix); ?>" />
|
1185 |
</div>
|
1186 |
</div>
|
1187 |
+
<p class="description"><?php _e('Choose the type and color of navigation buttons.', WDS()->prefix); ?></p>
|
1188 |
</span>
|
1189 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>" id="play_pause_butt_size">
|
1190 |
+
<label class="wd-label" for="pp_butt_size"><?php _e('Play / Pause button size:', WDS()->prefix); ?></label>
|
1191 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="pp_butt_size" id="pp_butt_size" value="<?php echo $row->pp_butt_size; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
|
1192 |
+
<p class="description"><?php _e('Set the size of Play and Pause buttons.', WDS()->prefix); ?></p>
|
1193 |
</span>
|
1194 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>" id="tr_butts_color">
|
1195 |
+
<label class="wd-label" for="butts_color"><?php _e('Buttons color:', WDS()->prefix); ?></label>
|
1196 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="butts_color" id="butts_color" value="<?php echo $row->butts_color; ?>" class="color" onchange="jQuery('#wds_left_style,#wds_right_style,#wds_play_style,#wds_paus_style').css({color: '#' + jQuery(this).val()})" />
|
1197 |
+
<p class="description"><?php _e('Select a color for the navigation buttons.', WDS()->prefix); ?></p>
|
1198 |
</span>
|
1199 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>" id="tr_hover_color">
|
1200 |
+
<label class="wd-label" for="hover_color"><?php _e('Hover color:', WDS()->prefix); ?></label>
|
1201 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="hover_color" id="hover_color" value="<?php echo $row->hover_color; ?>" class="color" />
|
1202 |
+
<p class="description"><?php _e('Select a hover color for the navigation buttons.', WDS()->prefix); ?></p>
|
1203 |
</span>
|
1204 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>">
|
1205 |
+
<label class="wd-label" for="nav_border_width"><?php _e('Border:', WDS()->prefix); ?></label>
|
1206 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="nav_border_width" id="nav_border_width" value="<?php echo $row->nav_border_width; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
|
1207 |
+
<select <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> class="select_icon select_icon_320" name="nav_border_style" id="nav_border_style">
|
1208 |
<?php
|
1209 |
foreach ($border_styles as $key => $border_style) {
|
1210 |
?>
|
1213 |
}
|
1214 |
?>
|
1215 |
</select>
|
1216 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="nav_border_color" id="nav_border_color" value="<?php echo $row->nav_border_color; ?>" class="color" />
|
1217 |
+
<p class="description"><?php _e('Select the type, size and the color of border for the navigation buttons.', WDS()->prefix); ?></p>
|
1218 |
</span>
|
1219 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>">
|
1220 |
+
<label class="wd-label" for="nav_border_radius"><?php _e('Border radius:', WDS()->prefix); ?></label>
|
1221 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="nav_border_radius" id="nav_border_radius" value="<?php echo $row->nav_border_radius; ?>" class="spider_char_input" />
|
1222 |
+
<p class="description"><?php _e('Use CSS type values (e.g. 4px).', WDS()->prefix); ?></p>
|
1223 |
</span>
|
1224 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>">
|
1225 |
+
<label class="wd-label" for="nav_bg_color"><?php _e('Background color:', WDS()->prefix); ?></label>
|
1226 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="nav_bg_color" id="nav_bg_color" value="<?php echo $row->nav_bg_color; ?>" class="color" />
|
1227 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="butts_transparent" id="butts_transparent" value="<?php echo $row->butts_transparent; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> %
|
1228 |
+
<p class="description"><?php _e('Transparency Value must be between 0 and 100.', WDS()->prefix); ?></p>
|
1229 |
</span>
|
1230 |
</div>
|
1231 |
</div>
|
1238 |
<div class="wd-box-section">
|
1239 |
<div class="wd-box-content">
|
1240 |
<span class="wd-group">
|
1241 |
+
<label class="wd-label"><?php _e('Enable bullets:', WDS()->prefix); ?></label>
|
1242 |
<input type="radio" id="enable_bullets1" name="enable_bullets" <?php echo (($row->enable_bullets) ? 'checked="checked"' : ''); ?> value="1" />
|
1243 |
+
<label <?php echo (($row->enable_bullets) ? 'class="selected_color"' : ''); ?> for="enable_bullets1"><?php _e('Yes', WDS()->prefix); ?></label>
|
1244 |
<input type="radio" id="enable_bullets0" name="enable_bullets" <?php echo (($row->enable_bullets) ? '' : 'checked="checked"'); ?> value="0" />
|
1245 |
+
<label <?php echo (($row->enable_bullets) ? '' : 'class="selected_color"'); ?> for="enable_bullets0"><?php _e('No', WDS()->prefix); ?></label>
|
1246 |
+
<p class="description"><?php _e('Enable navigation bullets with this option.', WDS()->prefix); ?></p>
|
1247 |
</span>
|
1248 |
<span class="wd-group">
|
1249 |
+
<label class="wd-label"><?php _e('Show bullets:', WDS()->prefix); ?></label>
|
1250 |
<input type="radio" name="bull_hover" id="bull_hover_0" value="0" <?php if ($row->bull_hover == 0) echo 'checked="checked"'; ?> />
|
1251 |
+
<label <?php if ($row->bull_hover == 0) echo 'class="selected_color"'; ?> for="bull_hover_0"><?php _e('On hover', WDS()->prefix); ?></label>
|
1252 |
<input type="radio" name="bull_hover" id="bull_hover_1" value="1" <?php if ($row->bull_hover == 1) echo 'checked="checked"'; ?> />
|
1253 |
+
<label <?php if ($row->bull_hover == 1) echo 'class="selected_color"'; ?> for="bull_hover_1"><?php _e('Always', WDS()->prefix); ?></label>
|
1254 |
+
<p class="description"><?php _e('You can display navigation bullets always or only when hovered.', WDS()->prefix); ?></p>
|
1255 |
</span>
|
1256 |
<span class="wd-group">
|
1257 |
+
<label class="wd-label"><?php _e('Show thumbnail on bullet hover:', WDS()->prefix); ?></label>
|
1258 |
<input onClick="wds_enable_disable('', 'tr_thumb_size', 'show_thumbnail1')" type="radio" id="show_thumbnail1" name="show_thumbnail" <?php echo (($row->show_thumbnail) ? 'checked="checked"' : ''); ?> value="1" />
|
1259 |
+
<label <?php echo (($row->show_thumbnail) ? 'class="selected_color"' : ''); ?> for="show_thumbnail1"><?php _e('Yes', WDS()->prefix); ?></label>
|
1260 |
<input onClick="wds_enable_disable('none', 'tr_thumb_size', 'show_thumbnail0')" type="radio" id="show_thumbnail0" name="show_thumbnail" <?php echo (($row->show_thumbnail) ? '' : 'checked="checked"'); ?> value="0" />
|
1261 |
+
<label for="show_thumbnail0"><?php _e('No', WDS()->prefix); ?></label>
|
1262 |
<p class="description"></p>
|
1263 |
</span>
|
1264 |
<span class="wd-group" id="tr_thumb_size">
|
1265 |
+
<label class="wd-label" for="wds_thumb_size"><?php _e('Thumbnail Size:', WDS()->prefix); ?></label>
|
1266 |
<input onblur="wds_check_number()" type="text" id="wds_thumb_size" name="wds_thumb_size" size="15" value="<?php echo $row->thumb_size; ?>" style="display:inline-block;" />
|
1267 |
+
<p class="description"><?php _e('Value must be between 0 to 1.', WDS()->prefix); ?></p>
|
1268 |
</span>
|
1269 |
<span class="wd-group">
|
1270 |
+
<label class="wd-label"><?php _e('Position:', WDS()->prefix); ?></label>
|
1271 |
<select class="select_icon select_icon_320" name="bull_position" id="bull_position">
|
1272 |
+
<option value="top" <?php echo (($row->bull_position == "top") ? 'selected="selected"' : ''); ?>><?php _e('Top', WDS()->prefix); ?></option>
|
1273 |
+
<option value="bottom" <?php echo (($row->bull_position == "bottom") ? 'selected="selected"' : ''); ?>><?php _e('Bottom', WDS()->prefix); ?></option>
|
1274 |
</select>
|
1275 |
+
<p class="description"><?php _e('Select the position for navigation bullets.', WDS()->prefix); ?></p>
|
1276 |
</span>
|
1277 |
<span class="wd-group">
|
1278 |
+
<label class="wd-label"><?php _e('Bullets type:', WDS()->prefix); ?></label>
|
1279 |
<input type="radio" name="bull_butt_img_or_not" id="bull_butt_img_or_not_our" value="our" <?php if ($row->bull_butt_img_or_not == 'our') echo 'checked="checked"'; ?> onClick="image_for_bull_butt('our')" />
|
1280 |
+
<label <?php if ($row->bull_butt_img_or_not == 'our') echo 'class="selected_color"'; ?> for="bull_butt_img_or_not_our"><?php _e('Default', WDS()->prefix); ?></label>
|
1281 |
<input type="radio" name="bull_butt_img_or_not" id="bull_butt_img_or_not_cust" value="custom" <?php if ($row->bull_butt_img_or_not == 'custom') echo 'checked="checked"'; ?> onClick="image_for_bull_butt('custom')" />
|
1282 |
+
<label <?php if ($row->bull_butt_img_or_not == 'custom') echo 'class="selected_color"'; ?> for="bull_butt_img_or_not_cust"><?php _e('Custom', WDS()->prefix); ?></label>
|
1283 |
<input type="radio" name="bull_butt_img_or_not" id="bull_butt_img_or_not_stl" value="style" <?php if ($row->bull_butt_img_or_not == 'style') echo 'checked="checked"'; ?> onClick="image_for_bull_butt('style')" />
|
1284 |
+
<label <?php if ($row->bull_butt_img_or_not == 'style') echo 'class="selected_color"'; ?> for="bull_butt_img_or_not_stl"><?php _e('Styled', WDS()->prefix); ?></label>
|
1285 |
<input type="radio" name="bull_butt_img_or_not" id="bull_butt_img_or_not_txt" value="text" <?php if ($row->bull_butt_img_or_not == 'text') echo 'checked="checked"'; ?> onClick="image_for_bull_butt('text')" />
|
1286 |
+
<label <?php if ($row->bull_butt_img_or_not == 'text') echo 'class="selected_color"'; ?> for="bull_butt_img_or_not_txt"><?php _e('Text', WDS()->prefix); ?></label>
|
1287 |
<input type="hidden" id="bullets_img_main_url" name="bullets_img_main_url" value="<?php echo $row->bullets_img_main_url; ?>" />
|
1288 |
<input type="hidden" id="bullets_img_hov_url" name="bullets_img_hov_url" value="<?php echo $row->bullets_img_hov_url; ?>" />
|
1289 |
<p class="description"></p>
|
1290 |
</span>
|
1291 |
<span class="wd-group" id="bullets_style">
|
1292 |
+
<label class="wd-label" for="bull_style"><?php _e('Bullet style:', WDS()->prefix); ?></label>
|
1293 |
<div style="display: table;">
|
1294 |
<div style="display: table-cell; vertical-align: middle;">
|
1295 |
<select class="select_icon select_icon_320" name="bull_style" id="bull_style" onchange="change_bull_style(jQuery(this).val())">
|
1307 |
<i id="wds_deact_bull_style" class="fa <?php echo $row->bull_style; ?>" style="color: #<?php echo $row->bull_color; ?>; display: inline-block; font-size: 40px; width: 40px; height: 40px;"></i>
|
1308 |
</div>
|
1309 |
</div>
|
1310 |
+
<p class="description"><?php _e('Choose the style for the bullets.', WDS()->prefix); ?></p>
|
1311 |
<script>
|
1312 |
var wds_blt_img_type = [];
|
1313 |
+
var blt_img_dir = '<?php echo WDS()->plugin_url . '/images/bullet/'; ?>';
|
1314 |
var bull_type_cur_fold = '1';
|
1315 |
<?php
|
1316 |
+
$folder_names = scandir(WDS()->plugin_dir . '/images/bullet');
|
1317 |
$bull_cur_fold_name = '';
|
1318 |
$bull_cur_type_key = '';
|
1319 |
$bull_cur_color_key = '';
|
1321 |
array_splice($folder_names, 0, 2);
|
1322 |
$flag = FALSE;
|
1323 |
foreach ($folder_names as $type_key => $folder_name) {
|
1324 |
+
if (is_dir(WDS()->plugin_dir . '/images/bullet/' . $folder_name)) {
|
1325 |
?>
|
1326 |
wds_blt_img_type["<?php echo $type_key; ?>"] = [];
|
1327 |
wds_blt_img_type["<?php echo $type_key; ?>"]["type_name"] = "<?php echo $folder_name; ?>";
|
1333 |
$flag = TRUE;
|
1334 |
$bull_cur_fold_name = $folder_name;
|
1335 |
$bull_cur_type_key = $type_key;
|
1336 |
+
$bull_cur_sub_fold_names = scandir(WDS()->plugin_dir . '/images/bullet/' . $bull_cur_fold_name);
|
1337 |
array_splice($bull_cur_sub_fold_names, 0, 2);
|
1338 |
?>
|
1339 |
bull_type_cur_fold = '<?php echo $bull_cur_type_key;?>';
|
1340 |
<?php
|
1341 |
}
|
1342 |
}
|
1343 |
+
$sub_folder_names = scandir(WDS()->plugin_dir . '/images/bullet/' . $folder_name);
|
1344 |
array_splice($sub_folder_names, 0, 2);
|
1345 |
foreach ($sub_folder_names as $color_key => $sub_folder_name) {
|
1346 |
+
if (is_dir(WDS()->plugin_dir . '/images/bullet/' . $folder_name . '/' . $sub_folder_name)) {
|
1347 |
if ($bull_cur_fold_name == $folder_name) {
|
1348 |
/* Getting current button's color key.*/
|
1349 |
if (in_array($sub_folder_name, $check_bull_cur_fold)) {
|
1366 |
</script>
|
1367 |
</span>
|
1368 |
<span class="wd-group" id="bullets_images_cust">
|
1369 |
+
<label class="wd-label"><?php _e('Upload buttons images:', WDS()->prefix); ?></label>
|
1370 |
<div style="display: table;">
|
1371 |
<div style="display: table-cell; vertical-align: middle;">
|
1372 |
<?php
|
1373 |
if (!$spider_uploader) {
|
1374 |
?>
|
1375 |
+
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('bullets_main_but', event, false); return false;" value="<?php _e('Active Button', WDS()->prefix); ?>" />
|
1376 |
<?php
|
1377 |
}
|
1378 |
else {
|
1379 |
?>
|
1380 |
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'bullets_main_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="Add Image" onclick="return false;">
|
1381 |
+
<?php _e('Active Button', WDS()->prefix); ?>
|
1382 |
</a>
|
1383 |
<?php
|
1384 |
}
|
1388 |
<?php
|
1389 |
if (!$spider_uploader) {
|
1390 |
?>
|
1391 |
+
<input class="button button-secondary wds_ctrl_btn_upload" type="button" onclick="wds_media_uploader('bullets_hov_but', event, false); return false;" value="<?php _e('Inactive Button', WDS()->prefix); ?>" />
|
1392 |
<?php
|
1393 |
}
|
1394 |
else {
|
1395 |
?>
|
1396 |
+
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'bullets_hov_but', 'dir' => '/arrows', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview wds_ctrl_btn_upload" title="<?php _e('Inactive Button', WDS()->prefix); ?>" onclick="return false;">
|
1397 |
+
<?php _e('Inactive Button', WDS()->prefix); ?>
|
1398 |
</a>
|
1399 |
<?php
|
1400 |
}
|
1405 |
<img id="bull_img_hov" src="<?php echo $row->bullets_img_hov_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
|
1406 |
</div>
|
1407 |
<div style="display: table-cell; text-align: center; vertical-align: middle;">
|
1408 |
+
<input type="button" class="button button-small wds_reverse" onclick="wds_change_bullets_custom_src()" value="<?php _e('Reverse', WDS()->prefix); ?>" />
|
1409 |
</div>
|
1410 |
</div>
|
1411 |
</span>
|
1412 |
<span class="wd-group" id="bullets_images_select">
|
1413 |
+
<label class="wd-label" for="bullets_images_url"><?php _e('Choose buttons:', WDS()->prefix); ?></label>
|
1414 |
<div style="display: table; margin-bottom: 14px;">
|
1415 |
<div style="display: table-cell; vertical-align: middle;" class="display_block">
|
1416 |
<div style="display: block; width: 122px;" class="default_buttons">
|
1417 |
<div class="spider_choose_option" onclick="wds_choose_bull_option(this)">
|
1418 |
+
<div class="spider_option_main_title"><?php _e('Choose group', WDS()->prefix); ?></div>
|
1419 |
<div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color: #1E8CBE;"></i></div>
|
1420 |
</div>
|
1421 |
<div class="spider_bull_options_cont">
|
1424 |
?>
|
1425 |
<div class="spider_option_cont wds_bull_butt_groups" value="<?php echo $type_key; ?>" <?php echo (($bull_cur_type_key == $type_key) ? 'selected="selected" style="background-color: #3399FF;"' : ''); ?> onclick="change_bullets_images_type(this)">
|
1426 |
<div class="spider_option_cont_title" style="width: 64%;">
|
1427 |
+
<?php _e('Group', WDS()->prefix); echo '-' . ++$type_key; ?>
|
1428 |
</div>
|
1429 |
<div class="spider_option_cont_img">
|
1430 |
<img class="bull_src_left" style="display: inline-block; width: 14px; height: 14px;" />
|
1436 |
if (!$flag) {
|
1437 |
/* Folder doesn't exist.*/
|
1438 |
?>
|
1439 |
+
<div class="spider_option_cont" value="0" selected="selected" disabled="disabled"><?php _e('Custom', WDS()->prefix); ?></div>
|
1440 |
<?php
|
1441 |
}
|
1442 |
?>
|
1445 |
</div>
|
1446 |
<div style="display: table-cell; vertical-align: middle;" class="display_block">
|
1447 |
<div style="display: block; width: 122px; margin-left: 12px;">
|
1448 |
+
<div class="spider_choose_option" onclick="<?php echo (WDS()->is_free ? 'alert(\'' . addslashes(__('This functionality is disabled in free version.', WDS()->prefix)) . '\')' : 'wds_choose_bull_option_color(this)'); ?>">
|
1449 |
+
<div class="spider_option_main_title"><?php _e('Choose color', WDS()->prefix); ?></div>
|
1450 |
<div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color: #1E8CBE;"></i></div>
|
1451 |
</div>
|
1452 |
<div class="spider_bull_options_color_cont">
|
1455 |
?>
|
1456 |
<div class="spider_option_cont wds_bull_butt_col_groups" value="<?php echo $color_key; ?>" <?php echo (($bull_cur_color_key == $color_key) ? 'selected="selected" style="background-color: #3399FF;"' : ''); ?> onclick="change_bullets_images_color(this, <?php echo $bull_cur_type_key; ?>)">
|
1457 |
<div class="spider_option_cont_title" style="width: 64%;">
|
1458 |
+
<?php echo _e('Color', WDS()->prefix); '-' . ++$color_key; ?>
|
1459 |
</div>
|
1460 |
<div class="spider_option_cont_img" style="width: 22%;">
|
1461 |
<img class="bull_col_src_left" style="display: inline-block; width: 14px; height: 14px;" />
|
1467 |
if (!$flag) {
|
1468 |
/* Folder doesn't exist.*/
|
1469 |
?>
|
1470 |
+
<div class="spider_option_cont" value="0" selected="selected" disabled="disabled"><?php _e('Custom', WDS()->prefix); ?></div>
|
1471 |
<?php
|
1472 |
}
|
1473 |
?>
|
1481 |
</div>
|
1482 |
</div>
|
1483 |
<div style="display: table-cell; text-align: center; vertical-align: middle;">
|
1484 |
+
<input type="button" class="button button-small wds_reverse" onclick="change_bullets_src()" value="<?php _e('Reverse', WDS()->prefix); ?>" />
|
1485 |
</div>
|
1486 |
</div>
|
1487 |
+
<p class="description"><?php _e('Choose the type and color for the bullets.', WDS()->prefix); ?></p>
|
1488 |
</span>
|
1489 |
</div>
|
1490 |
</div>
|
1492 |
<div class="wd-table-col wd-table-col-50 wd-table-col-right">
|
1493 |
<div class="wd-box-section">
|
1494 |
<div class="wd-box-content">
|
1495 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>" id="bullet_size">
|
1496 |
+
<label class="wd-label" for="bull_size"><?php _e('Size:', WDS()->prefix); ?></label>
|
1497 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="bull_size" id="bull_size" value="<?php echo $row->bull_size; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
|
1498 |
+
<p class="description"><?php _e('Set the size of navigation bullets.', WDS()->prefix); ?></p>
|
1499 |
</span>
|
1500 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>">
|
1501 |
+
<label class="wd-label" for="bull_color"><?php _e('Color:', WDS()->prefix); ?></label>
|
1502 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="bull_color" id="bull_color" value="<?php echo $row->bull_color; ?>" class="color" onchange="jQuery('#wds_deact_bull_style').css({color: '#' + jQuery(this).val()})" />
|
1503 |
+
<p class="description"><?php _e('Select the color for navigation bullets.', WDS()->prefix); ?></p>
|
1504 |
</span>
|
1505 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>" id="bullets_act_color">
|
1506 |
+
<label class="wd-label" for="bull_act_color"><?php _e('Active color:', WDS()->prefix); ?></label>
|
1507 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="bull_act_color" id="bull_act_color" value="<?php echo $row->bull_act_color; ?>" class="color" onchange="jQuery('#wds_act_bull_style').css({color: '#' + jQuery(this).val()})" />
|
1508 |
+
<p class="description"><?php _e('Select the color for the bullet, which is currently displaying a corresponding image.', WDS()->prefix); ?></p>
|
1509 |
</span>
|
1510 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>" id="bullets_back_act_color">
|
1511 |
+
<label class="wd-label" for="bull_back_act_color"><?php _e('Active Background color:', WDS()->prefix); ?></label>
|
1512 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="bull_back_act_color" id="bull_back_act_color" value="<?php echo $row->bull_back_act_color; ?>" class="color" onchange="jQuery('#wds_back_act_bull_text').css({color: '#' + jQuery(this).val()})" />
|
1513 |
+
<p class="description"><?php _e('Select the background color for the bullet, which is currently displaying a corresponding image.', WDS()->prefix); ?></p>
|
1514 |
</span>
|
1515 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>" id="bullets_back_color">
|
1516 |
+
<label class="wd-label" for="bull_back_color"><?php _e('Background color:', WDS()->prefix); ?></label>
|
1517 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="bull_back_color" id="bull_back_color" value="<?php echo $row->bull_back_color; ?>" class="color" onchange="jQuery('#wds_back_bull_text').css({color: '#' + jQuery(this).val()})" />
|
1518 |
+
<p class="description"><?php _e('Select the background color for the bullet...', WDS()->prefix); ?></p>
|
1519 |
</span>
|
1520 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>" id="bullets_radius">
|
1521 |
+
<label class="wd-label" for="bull_radius"><?php _e('Border radius:', WDS()->prefix); ?></label>
|
1522 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="bull_radius" id="bull_radius" value="<?php echo $row->bull_radius; ?>" class="spider_char_input" />
|
1523 |
+
<p class="description"><?php _e('Use CSS type values (e.g. 4px).', WDS()->prefix); ?></p>
|
1524 |
</span>
|
1525 |
+
<span class="wd-group<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>" id="bullet_margin">
|
1526 |
+
<label class="wd-label" for="bull_margin"><?php _e('Margin:', WDS()->prefix); ?></label>
|
1527 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="bull_margin" id="bull_margin" value="<?php echo $row->bull_margin; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
|
1528 |
+
<p class="description"><?php _e('Set the margin for navigation bullets.', WDS()->prefix); ?></p>
|
1529 |
</span>
|
1530 |
</div>
|
1531 |
</div>
|
1532 |
</div>
|
1533 |
</div>
|
1534 |
</div>
|
1535 |
+
<div class="wds_nav_box wds_nav_filmstrip_box<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>">
|
1536 |
<div class="wd-table">
|
1537 |
<div class="wd-table-col wd-table-col-50 wd-table-col-left">
|
1538 |
<div class="wd-box-section">
|
1539 |
<div class="wd-box-content">
|
1540 |
<?php
|
1541 |
+
if ( WDS()->is_free ) {
|
1542 |
+
echo WDW_S_Library::message_id(0, __('This functionality is disabled in free version.', WDS()->prefix), 'error');
|
1543 |
}
|
1544 |
?>
|
1545 |
<span class="wd-group">
|
1546 |
+
<label class="wd-label"><?php _e('Enable filmstrip:', WDS()->prefix); ?></label>
|
1547 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="radio" id="enable_filmstrip1" name="enable_filmstrip" <?php echo (($row->enable_filmstrip) ? 'checked="checked"' : ''); ?> value="1" />
|
1548 |
+
<label <?php echo (($row->enable_filmstrip) ? 'class="selected_color"' : ''); ?> for="enable_filmstrip1"><?php _e('Yes', WDS()->prefix); ?></label>
|
1549 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="radio" id="enable_filmstrip0" name="enable_filmstrip" <?php echo (($row->enable_filmstrip) ? '' : 'checked="checked"'); ?> value="0" />
|
1550 |
+
<label <?php echo (($row->enable_filmstrip) ? '' : 'class="selected_color"'); ?> for="enable_filmstrip0"><?php _e('No', WDS()->prefix); ?></label>
|
1551 |
+
<p class="description"><?php _e('Enable this option to display thumbnails of the slides in a filmstrip.', WDS()->prefix); ?></p>
|
1552 |
</span>
|
1553 |
<span class="wd-group" id="filmstrip_position">
|
1554 |
+
<label class="wd-label"><?php _e('Position:', WDS()->prefix); ?></label>
|
1555 |
+
<select <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> class="select_icon select_icon_320" name="film_pos" id="film_pos">
|
1556 |
+
<option value="top" <?php echo (($row->film_pos == "top") ? 'selected="selected"' : ''); ?>><?php _e('Top', WDS()->prefix); ?></option>
|
1557 |
+
<option value="right" <?php echo (($row->film_pos == "right") ? 'selected="selected"' : ''); ?>><?php _e('Right', WDS()->prefix); ?></option>
|
1558 |
+
<option value="bottom" <?php echo (($row->film_pos == "bottom") ? 'selected="selected"' : ''); ?>><?php _e('Bottom', WDS()->prefix); ?></option>
|
1559 |
+
<option value="left" <?php echo (($row->film_pos == "left") ? 'selected="selected"' : ''); ?>><?php _e('Left', WDS()->prefix); ?></option>
|
1560 |
</select>
|
1561 |
+
<p class="description"><?php _e('Set the position of the filmstrip.', WDS()->prefix); ?></p>
|
1562 |
</span>
|
1563 |
<span class="wd-group" id="filmstrip_size">
|
1564 |
+
<label class="wd-label" for="film_thumb_width"><?php _e('Thumbnail dimensions:', WDS()->prefix); ?></label>
|
1565 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="film_thumb_width" id="film_thumb_width" value="<?php echo $row->film_thumb_width; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> x
|
1566 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="film_thumb_height" id="film_thumb_height" value="<?php echo $row->film_thumb_height; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> px
|
1567 |
+
<p class="description"><?php _e('Define the maximum width and heigth of the filmstrip thumbnails.', WDS()->prefix); ?></p>
|
1568 |
</span>
|
1569 |
<span class="wd-group">
|
1570 |
+
<label class="wd-label" for="film_bg_color"><?php _e('Background color:', WDS()->prefix); ?></label>
|
1571 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="film_bg_color" id="film_bg_color" value="<?php echo $row->film_bg_color; ?>" class="color" />
|
1572 |
+
<p class="description"><?php _e('Select the background color for the filmstrip.', WDS()->prefix); ?></p>
|
1573 |
</span>
|
1574 |
</div>
|
1575 |
</div>
|
1578 |
<div class="wd-box-section">
|
1579 |
<div class="wd-box-content">
|
1580 |
<span class="wd-group" id="filmstrip_thumb_margin">
|
1581 |
+
<label class="wd-label" for="film_tmb_margin"><?php _e('Thumbnail separator:', WDS()->prefix); ?></label>
|
1582 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="film_tmb_margin" id="film_tmb_margin" value="<?php echo $row->film_tmb_margin; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
|
1583 |
+
<p class="description"><?php _e('Set the size of the separator for thumbnails.', WDS()->prefix); ?></p>
|
1584 |
</span>
|
1585 |
<span class="wd-group">
|
1586 |
+
<label class="wd-label" for="film_act_border_width"><?php _e('Active border:', WDS()->prefix); ?></label>
|
1587 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="film_act_border_width" id="film_act_border_width" value="<?php echo $row->film_act_border_width; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
|
1588 |
+
<select <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> class="select_icon select_icon_320" name="film_act_border_style" id="film_act_border_style">
|
1589 |
<?php
|
1590 |
foreach ($border_styles as $key => $border_style) {
|
1591 |
?>
|
1594 |
}
|
1595 |
?>
|
1596 |
</select>
|
1597 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="film_act_border_color" id="film_act_border_color" value="<?php echo $row->film_act_border_color; ?>" class="color"/>
|
1598 |
+
<p class="description"><?php _e('The thumbnail for the currently displayed image will have a border. You can set its size, type and color.', WDS()->prefix); ?></p>
|
1599 |
</span>
|
1600 |
<span class="wd-group">
|
1601 |
+
<label class="wd-label" for="film_dac_transparent"><?php _e('Inactive transparency:', WDS()->prefix); ?></label>
|
1602 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="film_dac_transparent" id="film_dac_transparent" value="<?php echo $row->film_dac_transparent; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> %
|
1603 |
+
<p class="description"><?php _e('You can set a transparency level for the inactive filmstrip items which must be between 0 to 100..', WDS()->prefix); ?></p>
|
1604 |
</span>
|
1605 |
</div>
|
1606 |
</div>
|
1613 |
<div class="wd-box-section">
|
1614 |
<div class="wd-box-content">
|
1615 |
<span class="wd-group">
|
1616 |
+
<label class="wd-label"><?php _e('Enable timer bar:', WDS()->prefix); ?></label>
|
1617 |
<input type="radio" id="enable_time_bar1" name="enable_time_bar" <?php echo (($row->enable_time_bar) ? 'checked="checked"' : ''); ?> value="1" />
|
1618 |
+
<label <?php echo (($row->enable_time_bar) ? 'class="selected_color"' : ''); ?> for="enable_time_bar1"><?php _e('Yes', WDS()->prefix); ?></label>
|
1619 |
<input type="radio" id="enable_time_bar0" name="enable_time_bar" <?php echo (($row->enable_time_bar) ? '' : 'checked="checked"'); ?> value="0" />
|
1620 |
+
<label <?php echo (($row->enable_time_bar) ? '' : 'class="selected_color"'); ?> for="enable_time_bar0"><?php _e('No', WDS()->prefix); ?></label>
|
1621 |
+
<p class="description"><?php _e('You can add a bar, which displays the time left untill the slider switches to the next slide on autoplay.', WDS()->prefix); ?></p>
|
1622 |
</span>
|
1623 |
<span class="wd-group">
|
1624 |
+
<label class="wd-label" for="timer_bar_type"><?php _e('Type:', WDS()->prefix); ?></label>
|
1625 |
<select class="select_icon select_icon_320" name="timer_bar_type" id="timer_bar_type">
|
1626 |
+
<option value="top" <?php echo (($row->timer_bar_type == "top") ? 'selected="selected"' : ''); ?>><?php _e('Line top', WDS()->prefix); ?></option>
|
1627 |
+
<option value="bottom" <?php echo (($row->timer_bar_type == "bottom") ? 'selected="selected"' : ''); ?>><?php _e('Line Bottom', WDS()->prefix); ?></option>
|
1628 |
+
<option value="circle_top_left" <?php echo (($row->timer_bar_type == "circle_top_left") ? 'selected="selected"' : ''); ?>><?php _e('Circle top left', WDS()->prefix); ?></option>
|
1629 |
+
<option value="circle_top_right" <?php echo (($row->timer_bar_type == "circle_top_right") ? 'selected="selected"' : ''); ?>><?php _e('Circle top right', WDS()->prefix); ?></option>
|
1630 |
+
<option value="circle_bot_left" <?php echo (($row->timer_bar_type == "circle_bot_left") ? 'selected="selected"' : ''); ?>><?php _e('Circle bottom left', WDS()->prefix); ?></option>
|
1631 |
+
<option value="circle_bot_right" <?php echo (($row->timer_bar_type == "circle_bot_right") ? 'selected="selected"' : ''); ?>><?php _e('Circle bottom right', WDS()->prefix); ?></option>
|
1632 |
</select>
|
1633 |
+
<p class="description"><?php _e('Choose the type of the timer bar to be used within the slider.', WDS()->prefix); ?></p>
|
1634 |
</span>
|
1635 |
</div>
|
1636 |
</div>
|
1639 |
<div class="wd-box-section">
|
1640 |
<div class="wd-box-content">
|
1641 |
<span class="wd-group">
|
1642 |
+
<label class="wd-label" for="timer_bar_size"><?php _e('Size:', WDS()->prefix); ?></label>
|
1643 |
<input type="text" name="timer_bar_size" id="timer_bar_size" value="<?php echo $row->timer_bar_size; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> px
|
1644 |
+
<p class="description"><?php _e('Define the height of the timer bar.', WDS()->prefix); ?></p>
|
1645 |
</span>
|
1646 |
<span class="wd-group">
|
1647 |
+
<label class="wd-label" for="timer_bar_color"><?php _e('Color:', WDS()->prefix); ?></label>
|
1648 |
<input type="text" name="timer_bar_color" id="timer_bar_color" value="<?php echo $row->timer_bar_color; ?>" class="color" />
|
1649 |
<input type="text" name="timer_bar_transparent" id="timer_bar_transparent" value="<?php echo $row->timer_bar_transparent; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> %
|
1650 |
+
<p class="description"><?php _e('Transparency Value must be between 0 and 100.', WDS()->prefix); ?></p>
|
1651 |
</span>
|
1652 |
</div>
|
1653 |
</div>
|
1657 |
<div class="wds_nav_box wds_nav_watermark_box">
|
1658 |
<div class="wd_updated">
|
1659 |
<p><?php _e('Please note that the <b>Fill</b> and <b>Contain</b> options will work fine with <b>Watermark</b> option regardless of the image dimensions, whereas for the <b>Cover</b> option you should have the image identical to the size set in the <b>Dimensions</b> settings.
|
1660 |
+
If you have uploaded the image with another dimension, you will need to resize the image and upload it again.', WDS()->prefix); ?>
|
1661 |
</p>
|
1662 |
</div>
|
1663 |
<div class="wd-table">
|
1665 |
<div class="wd-box-section">
|
1666 |
<div class="wd-box-content">
|
1667 |
<span class="wd-group" id="tr_built_in_watermark_type">
|
1668 |
+
<label class="wd-label"><?php _e('Watermark type:', WDS()->prefix); ?></label>
|
1669 |
<input type="radio" name="built_in_watermark_type" id="built_in_watermark_type_none" value="none" <?php if ($row->built_in_watermark_type == 'none') echo 'checked="checked"'; ?> onClick="wds_built_in_watermark('watermark_type_none')" />
|
1670 |
+
<label <?php if ($row->built_in_watermark_type == 'none') echo 'class="selected_color"'; ?> for="built_in_watermark_type_none"><?php _e('None', WDS()->prefix); ?></label>
|
1671 |
<input type="radio" name="built_in_watermark_type" id="built_in_watermark_type_text" value="text" <?php if ($row->built_in_watermark_type == 'text') echo 'checked="checked"'; ?> onClick="wds_built_in_watermark('watermark_type_text')" onchange="preview_built_in_watermark()" />
|
1672 |
+
<label <?php if ($row->built_in_watermark_type == 'text') echo 'class="selected_color"'; ?> for="built_in_watermark_type_text"><?php _e('Text', WDS()->prefix); ?></label>
|
1673 |
<input type="radio" name="built_in_watermark_type" id="built_in_watermark_type_image" value="image" <?php if ($row->built_in_watermark_type == 'image') echo 'checked="checked"'; ?> onClick="wds_built_in_watermark('watermark_type_image')" onchange="preview_built_in_watermark()" />
|
1674 |
+
<label <?php if ($row->built_in_watermark_type == 'image') echo 'class="selected_color"'; ?> for="built_in_watermark_type_image"><?php _e('Image', WDS()->prefix); ?></label>
|
1675 |
+
<p class="description"><?php _e('Choose the kind of watermark you would like to use.', WDS()->prefix); ?></p>
|
1676 |
</span>
|
1677 |
<span class="wd-group" id="tr_built_in_watermark_url">
|
1678 |
+
<label class="wd-label" for="built_in_watermark_url"><?php _e('Watermark url:', WDS()->prefix); ?></label>
|
1679 |
<input type="text" id="built_in_watermark_url" name="built_in_watermark_url" style="width: 68%;" value="<?php echo $row->built_in_watermark_url; ?>" style="display:inline-block;" onchange="preview_built_in_watermark()" />
|
1680 |
<?php
|
1681 |
if (!$spider_uploader) {
|
1682 |
?>
|
1683 |
+
<input id="wat_img_add_butt" class="button button-secondary" type="button" onclick="wds_media_uploader('watermark', event, false); return false;" value="<?php _e('Add Image', WDS()->prefix); ?>" />
|
1684 |
<?php
|
1685 |
}
|
1686 |
else {
|
1687 |
?>
|
1688 |
+
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'watermark', 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview" title="<?php _e('Add Image', WDS()->prefix); ?>" onclick="return false;">
|
1689 |
+
<?php _e('Add Image', WDS()->prefix); ?>
|
1690 |
</a>
|
1691 |
<?php
|
1692 |
}
|
1693 |
?>
|
1694 |
+
<p class="description"><?php _e('Only .png format is supported.', WDS()->prefix); ?></p>
|
1695 |
</span>
|
1696 |
<span class="wd-group" id="tr_built_in_watermark_text">
|
1697 |
+
<label class="wd-label" for="built_in_watermark_text"><?php _e('Watermark text:', WDS()->prefix); ?></label>
|
1698 |
<input type="text" name="built_in_watermark_text" id="built_in_watermark_text" style="width: 100%;" value="<?php echo $row->built_in_watermark_text; ?>" onchange="preview_built_in_watermark()" onkeypress="preview_built_in_watermark()" />
|
1699 |
+
<p class="description"><?php _e('Write the text of the watermark. It will be displayed on the slides.', WDS()->prefix); ?></p>
|
1700 |
</span>
|
1701 |
<span class="wd-group" id="tr_built_in_watermark_size">
|
1702 |
+
<label class="wd-label" for="built_in_watermark_size"><?php _e('Watermark size:', WDS()->prefix); ?></label>
|
1703 |
<input type="text" name="built_in_watermark_size" id="built_in_watermark_size" value="<?php echo $row->built_in_watermark_size; ?>" class="spider_int_input" onchange="preview_built_in_watermark()" /> %
|
1704 |
+
<p class="description"><?php _e('Enter size of watermark in percents according to image.', WDS()->prefix); ?></p>
|
1705 |
</span>
|
1706 |
<span class="wd-group" id="tr_built_in_watermark_font_size">
|
1707 |
+
<label class="wd-label" for="built_in_watermark_font_size"><?php _e('Watermark font size:', WDS()->prefix); ?></label>
|
1708 |
<input type="text" name="built_in_watermark_font_size" id="built_in_watermark_font_size" value="<?php echo $row->built_in_watermark_font_size; ?>" class="spider_int_input" onchange="preview_built_in_watermark()" onkeypress="return spider_check_isnum(event)" /> px
|
1709 |
+
<p class="description"><?php _e('Specify the font size of the watermark.', WDS()->prefix); ?></p>
|
1710 |
</span>
|
1711 |
<span class="wd-group" id="tr_built_in_watermark_font">
|
1712 |
+
<label class="wd-label" for="built_in_watermark_font"><?php _e('Watermark font style:', WDS()->prefix); ?></label>
|
1713 |
<select class="select_icon select_icon_320" name="built_in_watermark_font" id="built_in_watermark_font" style="width:150px;" onchange="preview_built_in_watermark()">
|
1714 |
<?php
|
1715 |
foreach ($built_in_watermark_fonts as $watermark_font) {
|
1725 |
<style>
|
1726 |
@font-face {
|
1727 |
font-family: <?php echo 'wds_' . str_replace('.ttf', '', $watermark_font); ?>;
|
1728 |
+
src: url("<?php echo WDS()->plugin_url . '/fonts/' . $watermark_font; ?>");
|
1729 |
}
|
1730 |
</style>
|
1731 |
<?php
|
1732 |
}
|
1733 |
?>
|
1734 |
+
<p class="description"><?php _e('Specify the font family for the watermark text.', WDS()->prefix); ?></p>
|
1735 |
</span>
|
1736 |
<span class="wd-group" id="tr_built_in_watermark_color">
|
1737 |
+
<label class="wd-label" for="built_in_watermark_color"><?php _e('Watermark color:', WDS()->prefix); ?></label>
|
1738 |
<input type="text" name="built_in_watermark_color" id="built_in_watermark_color" value="<?php echo $row->built_in_watermark_color; ?>" class="color" onchange="preview_built_in_watermark()" />
|
1739 |
<input type="text" name="built_in_watermark_opacity" id="built_in_watermark_opacity" value="<?php echo $row->built_in_watermark_opacity; ?>" class="spider_int_input" onchange="preview_built_in_watermark()" /> %
|
1740 |
+
<p class="description"><?php _e('Transparency Value must be between 0 and 100.', WDS()->prefix); ?></p>
|
1741 |
</span>
|
1742 |
<span class="wd-group" id="tr_built_in_watermark_position">
|
1743 |
+
<label class="wd-label"><?php _e('Watermark position:', WDS()->prefix); ?></label>
|
1744 |
<table class="wds_position_table">
|
1745 |
<tbody>
|
1746 |
<tr>
|
1760 |
</tr>
|
1761 |
</tbody>
|
1762 |
</table>
|
1763 |
+
<p class="description"><?php _e('Select the position of the watermark.', WDS()->prefix); ?></p>
|
1764 |
</span>
|
1765 |
</div>
|
1766 |
</div>
|
1769 |
<div class="wd-box-section">
|
1770 |
<div class="wd-box-content">
|
1771 |
<span class="wd-group">
|
1772 |
+
<input class="button button-secondary" type="button" onclick="spider_set_input_value('task', 'set_watermark'); wds_spider_ajax_save('sliders_form', event);" value="<?php _e('Set Watermark', WDS()->prefix); ?>" />
|
1773 |
+
<input class="button button-secondary" type="button" onclick="spider_set_input_value('task', 'reset_watermark'); wds_spider_ajax_save('sliders_form', event);" value="<?php _e('Reset Watermark', WDS()->prefix); ?>" />
|
1774 |
</span>
|
1775 |
<span class="wd-group">
|
1776 |
+
<span id="preview_built_in_watermark" style='display:table-cell; background-image:url("<?php echo WDS()->plugin_url . '/images/watermark_preview.jpg'?>"); background-size:100% 100%;width:400px;height:400px;padding-top: 4px; position:relative;'></span>
|
1777 |
</span>
|
1778 |
</span>
|
1779 |
</div>
|
1787 |
<div class="wd-box-section">
|
1788 |
<div class="wd-box-content">
|
1789 |
<span class="wd-group">
|
1790 |
+
<label class="wd-label" for="css"><?php _e('Css:', WDS()->prefix); ?></label>
|
1791 |
+
<p class="description"><?php _e('Write additional CSS code to apply custom styles to the slider.', WDS()->prefix); ?></p>
|
1792 |
<textarea id="css" name="css" rows="15" style="width: 50%;"><?php echo htmlspecialchars($row->css); ?></textarea>
|
1793 |
</span>
|
1794 |
</div>
|
1802 |
<div class="wd-box-section">
|
1803 |
<div class="wd-box-content">
|
1804 |
<span class="wd-group callback_label_options">
|
1805 |
+
<label class="wd-label" for="css"><?php _e('Add new callback:', WDS()->prefix); ?></label>
|
1806 |
<div style="vertical-align: middle;">
|
1807 |
<select class="select_icon select_icon_320" name="callback_list" id="callback_list">
|
1808 |
<?php
|
1826 |
<div class="callbeck-item">
|
1827 |
<span class="wd-label"><?php echo $slider_callbacks[$key]; ?></span>
|
1828 |
<textarea class="callbeck-textarea" name="<?php echo $key; ?>"><?php echo $callback_item; ?></textarea>
|
1829 |
+
<button type="button" id="remove_callback" class="action_buttons remove_callback" onclick="remove_callback_item(this);"><?php _e('Remove', WDS()->prefix); ?></button>
|
1830 |
</div>
|
1831 |
<?php
|
1832 |
}
|
1844 |
<div class="wds_box wds_slides_box meta-box-sortables">
|
1845 |
<div class="clear"></div>
|
1846 |
<div class="bgcolor wds_tabs wbs_subtab aui-sortable">
|
1847 |
+
<h2 class="titles wd-slides-title"><?php _e('Slides', WDS()->prefix); ?></h2>
|
1848 |
<?php
|
1849 |
$slides_name = array();
|
1850 |
foreach ( $slides_row as $key => $slide_row ) {
|
1852 |
?>
|
1853 |
<div id="wds_subtab_wrap<?php echo $slide_row->id; ?>" class="wds_subtab_wrap connectedSortable">
|
1854 |
<div id="wbs_subtab<?php echo $slide_row->id; ?>" class="tab_link <?php echo (((($id == 0 || !$sub_tab_type) || (strpos($sub_tab_type, 'pr') !== FALSE)) && $key == 0) || ('slide' . $slide_row->id == $sub_tab_type)) ? 'wds_sub_active' : ''; ?>">
|
1855 |
+
<div style='background-image:url("<?php echo $slide_row->type != 'image' ? ($slide_row->type == 'video' && ctype_digit($slide_row->thumb_url) ? (wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) ? wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) : WDS()->plugin_url . '/images/no-video.png') : $slide_row->thumb_url) : $slide_row->thumb_url ?>");background-position: center' class="tab_image" id="wds_tab_image<?php echo $slide_row->id; ?>" data-id="<?php echo $slide_row->id; ?>">
|
1856 |
<div class="tab_buttons">
|
1857 |
<div class="handle_wrap">
|
1858 |
+
<div class="handle" title="<?php _e('Drag to re-order', WDS()->prefix); ?>"></div>
|
1859 |
</div>
|
1860 |
<div class="wds_tab_title_wrap">
|
1861 |
<input type="text" id="title<?php echo $slide_row->id; ?>" name="title<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->title; ?>" class="wds_tab_title" tab_type="slide<?php echo $slide_row->id; ?>" data-id="<?php echo $slide_row->id; ?>" onchange="wds_set_slide_title('<?php echo $slide_row->id; ?>');" />
|
1864 |
</div>
|
1865 |
<div class="overlay" >
|
1866 |
<div id="hover_buttons">
|
1867 |
+
<span class="wds_change_thumbnail" onclick="wds_media_uploader_add_slide(event, '<?php echo $slide_row->id; ?>', false); return false;" title="<?php _e('Edit Image', WDS()->prefix); ?>" value="<?php _e('Edit Image', WDS()->prefix); ?>"></span>
|
1868 |
+
<span class="wds_slide_dublicate" title="<?php _e('Duplicate Slide', WDS()->prefix); ?>" onclick="wds_duplicate_slide('<?php echo $slide_row->id; ?>');"></span>
|
1869 |
+
<span class="wds_tab_remove" title="<?php _e('Remove Slide', WDS()->prefix); ?>" onclick="wds_remove_slide('<?php echo $slide_row->id; ?>')"></span>
|
1870 |
<input type="hidden" name="order<?php echo $slide_row->id; ?>" id="order<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->order; ?>" />
|
1871 |
<span class="wds_clear"></span>
|
1872 |
</div>
|
1878 |
}
|
1879 |
?>
|
1880 |
<div class="wds_subtab_wrap new_tab_image">
|
1881 |
+
<div class="new_tab_link" onclick="wds_media_uploader_add_slide(event)" title="<?php _e('Add Slide(s)', WDS()->prefix); ?>"><p id="add_slide_text"><?php _e('Add Slide(s)', WDS()->prefix); ?></p></div>
|
1882 |
</div>
|
1883 |
<div class="wds_clear"></div>
|
1884 |
</div>
|
1911 |
}
|
1912 |
}
|
1913 |
$slide_row->fillmode = empty($slide_row->fillmode) ? $fillmode : $slide_row->fillmode;
|
1914 |
+
?>
|
1915 |
<div class="wds_box <?php echo (((($id == 0 || !$sub_tab_type) || (strpos($sub_tab_type, 'pr') !== FALSE)) && $key == 0) || ('slide' . $slide_row->id == $sub_tab_type)) ? 'wds_sub_active' : ''; ?> wds_slide<?php echo $slide_row->id; ?>">
|
1916 |
<input type="hidden" name="type<?php echo $slide_row->id; ?>" id="type<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->type; ?>" />
|
1917 |
<input type="hidden" name="wds_video_type<?php echo $slide_row->id; ?>" id="wds_video_type<?php echo $slide_row->id; ?>" />
|
1921 |
<td>
|
1922 |
<div class="postbox closed">
|
1923 |
<button class="button-link handlediv" type="button" aria-expanded="true">
|
1924 |
+
<span class="screen-reader-text"><?php _e('Toggle panel:', WDS()->prefix); ?></span>
|
1925 |
<span class="toggle-indicator" aria-hidden="true"></span>
|
1926 |
</button>
|
1927 |
<h2 class="hndle">
|
1928 |
+
<span><?php _e('Slide options', WDS()->prefix); ?></span>
|
1929 |
</h2>
|
1930 |
<div class="inside">
|
1931 |
<div class="wd-table">
|
1933 |
<div class="wd-box-section">
|
1934 |
<div class="wd-box-content">
|
1935 |
<div class="wd-group">
|
1936 |
+
<label class="wd-label" for="fillmode<?php echo $slide_row->id; ?>"><?php _e('Fillmode', WDS()->prefix); ?></label>
|
1937 |
<div id="wds_fillmode_option-<?php echo $slide_row->id; ?>" class="wds_fillmode_option">
|
1938 |
<div style="width: 210px; position: relative;">
|
1939 |
<div class="spider_choose_option" onclick="wds_choose_option(this)">
|
1940 |
+
<div class="spider_option_main_title"><?php echo !empty($slide_row->fillmode) ? $slide_row->fillmode : __('Fill', WDS()->prefix); ?></div>
|
1941 |
<div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg"></i></div>
|
1942 |
</div>
|
1943 |
<div class="spider_options_cont <?php echo ($type_video) ? 'type_video' :'';?>">
|
1945 |
<div class="spider_option_cont <?php echo ((!empty($slide_row->fillmode) && $slide_row->fillmode == $key_option) ? 'selected' : ''); ?>" value="<?php echo $key_option;?>" onclick="wds_change_fillmode_type(this,<?php echo $slide_row->id; ?>)">
|
1946 |
<div id="wds_fillmode_option_title-<?php echo $slide_row->id; ?>"class="spider_option_cont_title" data-title="<?php echo $key_option; ?>"><?php echo $option; ?></div>
|
1947 |
<div id="wds_fillmode_option_img-<?php echo $slide_row->id; ?>" class="spider_option_cont_img">
|
1948 |
+
<img src="<?php echo WDS()->plugin_url . '/images/fillmode/' . $key_option . '.png'; ?>" />
|
1949 |
</div>
|
1950 |
</div>
|
1951 |
<?php } ?>
|
1953 |
</div>
|
1954 |
</div>
|
1955 |
<div id="wds_fillmode_preview-<?php echo $slide_row->id; ?>" class="wds_fillmode_preview <?php echo ( empty($slide_row->fillmode) ? 'hide' :'' );?>">
|
1956 |
+
<img src="<?php echo WDS()->plugin_url . '/images/fillmode/' . $slide_row->fillmode. '.png'; ?>">
|
1957 |
<input type="hidden" name="fillmode<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->fillmode; ?>">
|
1958 |
</div>
|
1959 |
<div class="clear"></div>
|
1960 |
+
<p class="description"><?php _e('Change the appearance of the slide background.', WDS()->prefix); ?></p>
|
1961 |
+
</div>
|
1962 |
<div class="wd-group">
|
1963 |
+
<label class="wd-label"><?php _e('Published', WDS()->prefix); ?></label>
|
1964 |
<input type="radio" id="published<?php echo $slide_row->id; ?>1" name="published<?php echo $slide_row->id; ?>" <?php echo (($slide_row->published) ? 'checked="checked"' : ''); ?> value="1" />
|
1965 |
+
<label <?php echo (($slide_row->published) ? 'class="selected_color"' : ''); ?> for="published<?php echo $slide_row->id; ?>1"><?php _e('Yes', WDS()->prefix); ?></label>
|
1966 |
<input type="radio" id="published<?php echo $slide_row->id; ?>0" name="published<?php echo $slide_row->id; ?>" <?php echo (($slide_row->published) ? '' : 'checked="checked"'); ?> value="0" />
|
1967 |
+
<label <?php echo (($slide_row->published) ? '' : 'class="selected_color"'); ?> for="published<?php echo $slide_row->id; ?>0"><?php _e('No', WDS()->prefix); ?></label>
|
1968 |
<p class="description"></p>
|
1969 |
</div>
|
1970 |
</div>
|
1974 |
<div class="wd-box-section">
|
1975 |
<div class="wd-box-content">
|
1976 |
<div class="wd-group" id="controls<?php echo $slide_row->id; ?>" <?php echo $slide_row->type == 'video' ? '' : 'style="display: none;"'; ?>>
|
1977 |
+
<label class="wd-label"><?php _e('Controls', WDS()->prefix); ?></label>
|
1978 |
<input type="radio" onClick="wds_enable_disable('', 'autoplay<?php echo $slide_row->id; ?>', 'controls<?php echo $slide_row->id; ?>1')" id="controls<?php echo $slide_row->id; ?>1" name="controls<?php echo $slide_row->id; ?>" <?php echo (($slide_row->link == '1' || empty($slide_row->link) ) ? 'checked="checked"' : ''); ?> value="1" />
|
1979 |
+
<label <?php echo ($slide_row->link == '1' || empty($slide_row->link) ) ? 'class="selected_color"' : ''; ?> for="controls<?php echo $slide_row->id; ?>1"><?php _e('Yes', WDS()->prefix); ?></label>
|
1980 |
<input type="radio" onClick="wds_enable_disable('none', 'autoplay<?php echo $slide_row->id; ?>', 'controls<?php echo $slide_row->id; ?>0')" id="controls<?php echo $slide_row->id; ?>0" name="controls<?php echo $slide_row->id; ?>" <?php echo (($slide_row->link == "0") ? 'checked="checked"' : '' ); ?> value="0" />
|
1981 |
+
<label <?php echo (($slide_row->link == "0") ? 'class="selected_color"' : '' ); ?> for="controls<?php echo $slide_row->id; ?>0"><?php _e('No', WDS()->prefix); ?></label>
|
1982 |
<p class="description"></p>
|
1983 |
</div>
|
1984 |
<div class="wd-group" id="autoplay<?php echo $slide_row->id; ?>" <?php echo (($slide_row->type == 'video' && $slide_row->link == '1') || $slide_row->type == 'EMBED_OEMBED_YOUTUBE_VIDEO'|| $slide_row->type == 'EMBED_OEMBED_VIMEO_VIDEO') ? '' : 'style="display: none;"'; ?>>
|
1985 |
+
<label class="wd-label"><?php _e('Autoplay', WDS()->prefix); ?></label>
|
1986 |
<input type="radio" id="autoplay<?php echo $slide_row->id; ?>1" name="wds_slide_autoplay<?php echo $slide_row->id; ?>" <?php echo (($slide_row->target_attr_slide) ? 'checked="checked"' : ''); ?> value="1" />
|
1987 |
+
<label <?php echo (($slide_row->target_attr_slide) ? 'class="selected_color"' : ''); ?> for="autoplay<?php echo $slide_row->id; ?>1"><?php _e('Yes', WDS()->prefix); ?></label>
|
1988 |
<input type="radio" id="autoplay<?php echo $slide_row->id; ?>0" name="wds_slide_autoplay<?php echo $slide_row->id; ?>" <?php echo (($slide_row->target_attr_slide) ? '' : 'checked="checked"'); ?> value="0" />
|
1989 |
+
<label <?php echo (($slide_row->target_attr_slide) ? '' : 'class="selected_color"'); ?> for="autoplay<?php echo $slide_row->id; ?>0"><?php _e('No', WDS()->prefix); ?></label>
|
1990 |
<p class="description"></p>
|
1991 |
</div>
|
1992 |
<div class="wd-group" id="youtube_rel_video<?php echo $slide_row->id; ?>" <?php echo $slide_row->type == 'EMBED_OEMBED_YOUTUBE_VIDEO' ? '' : 'style="display: none;"'; ?>>
|
1993 |
+
<label class="wd-label"><?php _e('Youtube related video', WDS()->prefix); ?></label>
|
1994 |
<input type="radio" id="youtube_rel_video<?php echo $slide_row->id; ?>1" name="youtube_rel_video<?php echo $slide_row->id; ?>" <?php echo (($slide_row->youtube_rel_video) ? 'checked="checked"' : ''); ?> value="1" />
|
1995 |
+
<label <?php echo (($slide_row->youtube_rel_video) ? 'class="selected_color"' : ''); ?> for="youtube_rel_video<?php echo $slide_row->id; ?>1"><?php _e('Yes', WDS()->prefix); ?></label>
|
1996 |
<input type="radio" id="youtube_rel_video<?php echo $slide_row->id; ?>0" name="youtube_rel_video<?php echo $slide_row->id; ?>" <?php echo (($slide_row->youtube_rel_video) ? '' : 'checked="checked"'); ?> value="0" />
|
1997 |
+
<label <?php echo (($slide_row->youtube_rel_video) ? '' : 'class="selected_color"'); ?> for="youtube_rel_video<?php echo $slide_row->id; ?>0"><?php _e('No', WDS()->prefix); ?></label>
|
1998 |
<p class="description"></p>
|
1999 |
</div>
|
2000 |
<div class="wd-group" id="video_loop<?php echo $slide_row->id; ?>" <?php echo ($slide_row->type == 'video' || $slide_row->type == 'EMBED_OEMBED_VIMEO_VIDEO') ? '' : 'style="display: none;"'; ?>>
|
2001 |
+
<label class="wd-label"><?php _e('Video Loop', WDS()->prefix); ?></label>
|
2002 |
<input type="radio" id="video_loop<?php echo $slide_row->id; ?>1" name="video_loop<?php echo $slide_row->id; ?>" <?php echo (($slide_row->video_loop) ? 'checked="checked"' : ''); ?> value="1" />
|
2003 |
+
<label <?php echo (($slide_row->video_loop) ? 'class="selected_color"' : ''); ?> for="video_loop<?php echo $slide_row->id; ?>1"><?php _e('Yes', WDS()->prefix); ?></label>
|
2004 |
<input type="radio" id="video_loop<?php echo $slide_row->id; ?>0" name="video_loop<?php echo $slide_row->id; ?>" <?php echo (($slide_row->video_loop) ? '' : 'checked="checked"'); ?> value="0" />
|
2005 |
+
<label <?php echo (($slide_row->video_loop) ? '' : 'class="selected_color"'); ?> for="video_loop<?php echo $slide_row->id; ?>0"><?php _e('No', WDS()->prefix); ?></label>
|
2006 |
<p class="description"></p>
|
2007 |
</div>
|
2008 |
<div class="wd-group" id="trlink<?php echo $slide_row->id; ?>" <?php echo $slide_row->type == 'image' ? '' : 'style="display: none;"'; ?>>
|
2009 |
+
<label class="wd-label" for="link<?php echo $slide_row->id; ?>"><?php _e('Link the slide to', WDS()->prefix); ?></label>
|
2010 |
<input class="wds_external_link" id="link<?php echo $slide_row->id; ?>" type="text" value="<?php echo $slide_row->link; ?>" name="link<?php echo $slide_row->id; ?>" />
|
2011 |
+
<input id="target_attr_slide<?php echo $slide_row->id; ?>" type="checkbox" name="target_attr_slide<?php echo $slide_row->id; ?>" <?php echo (($slide_row->target_attr_slide) ? 'checked="checked"' : ''); ?> value="1" /><label for="target_attr_slide<?php echo $slide_row->id; ?>"><?php _e('Open in a new window', WDS()->prefix); ?></label>
|
2012 |
+
<p class="description"><?php _e('You can add a URL, to which the users will be redirected upon clicking on the slide. Use http:// and https:// for external links.', WDS()->prefix); ?></p>
|
2013 |
</div>
|
2014 |
<div class="wd-group">
|
2015 |
<?php
|
2016 |
if ( !$spider_uploader ) {
|
2017 |
?>
|
2018 |
+
<input type="button" class="button button-secondary" id="button_image_url<?php echo $slide_row->id; ?>" onclick="wds_media_uploader('<?php echo 'add_update_thumbnail__' . $slide_row->id; ?>', event, false); return false;" value="<?php _e('Edit thumbnail', WDS()->prefix); ?>" />
|
2019 |
<?php
|
2020 |
}
|
2021 |
else {
|
2022 |
?>
|
2023 |
+
<a class="button button-secondary thickbox thickbox-preview" href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'add_update_thumbnail', 'slide_id' => $slide_row->id, 'TB_iframe' => '1'), $query_url); ?>" title="<?php _e('Edit thumbnail', WDS()->prefix); ?>" onclick="return false;">
|
2024 |
+
<?php _e('Edit thumbnail', WDS()->prefix); ?>
|
2025 |
</a>
|
2026 |
<?php
|
2027 |
}
|
2028 |
?>
|
2029 |
+
<p class="description"><?php _e('Note, that thumbnail will be used in the filmstrip only.', WDS()->prefix); ?></p>
|
2030 |
</div>
|
2031 |
</div>
|
2032 |
</div>
|
2047 |
width: inherit;
|
2048 |
height: inherit;
|
2049 |
background-color: <?php echo WDW_S_Library::spider_hex2rgba($row->background_color, (100 - $row->background_transparent) / 100); ?>;
|
2050 |
+
background-image: url("<?php echo $slide_row->type != 'image' ? ($slide_row->type == 'video' && ctype_digit($slide_row->thumb_url) ? (wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) ? wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) : WDS()->plugin_url . '/images/no-video.png') : $slide_row->thumb_url) : $slide_row->image_url . '?date=' . date('Y-m-d H:i:s'); ?>");
|
2051 |
<?php if( !empty($slide_row->fillmode) && $slide_row->fillmode == 'fill') { ?>
|
2052 |
background-size: cover;
|
2053 |
background-position: center center;
|
2074 |
background-repeat: repeat;
|
2075 |
<?php } ?>'>
|
2076 |
<?php
|
2077 |
+
if ( !empty($layers_row[$slide_row->id]) ) {
|
2078 |
+
foreach ($layers_row[$slide_row->id] as $key => $layer) {
|
|
|
2079 |
$prefix = 'slide' . $slide_row->id . '_layer' . $layer->id;
|
2080 |
$fonts = (isset($layer->google_fonts) && $layer->google_fonts) ? $google_fonts : $font_families;
|
2081 |
$hotspot_text_display = (isset($layer->hotspot_text_display) && $layer->hotspot_text_display == 'click') ? 'click' : 'hover';
|
2097 |
case 'video':
|
2098 |
case 'upvideo': {
|
2099 |
?>
|
2100 |
+
<img id="<?php echo $prefix; ?>" class="wds_draggable_<?php echo $slide_row->id; ?> wds_draggable ui-draggable" onclick="wds_showhide_layer('<?php echo $prefix; ?>_tbody', 1)" src="<?php echo $layer->type == 'upvideo' ? (wp_get_attachment_url(get_post_thumbnail_id($layer->image_url)) ? wp_get_attachment_url(get_post_thumbnail_id($layer->image_url)) : WDS()->plugin_url . '/images/no-video.png') : $layer->image_url ?>"
|
2101 |
style="max-width: <?php echo $layer->image_width; ?>px; width: <?php echo $layer->image_width; ?>px; max-height: <?php echo $layer->image_height; ?>px; height: <?php echo $layer->image_height; ?>px; position: absolute; left: <?php echo $layer->left; ?>px; top: <?php echo $layer->top; ?>px; z-index: <?php echo $layer->depth; ?>; border: <?php echo $layer->border_width; ?>px <?php echo $layer->border_style; ?> #<?php echo $layer->border_color; ?>; border-radius: <?php echo $layer->border_radius; ?>; box-shadow: <?php echo $layer->shadow; ?>;" />
|
2102 |
<?php
|
2103 |
break;
|
2201 |
</tr>
|
2202 |
<tr class="bgcolor">
|
2203 |
<td colspan="4">
|
2204 |
+
<h2 class="titles"><?php _e('Layers', WDS()->prefix); ?></h2>
|
2205 |
<div id="layer_add_buttons">
|
2206 |
<div class="layer_add_buttons_wrap">
|
2207 |
+
<button class="action_buttons add_text_layer button-small<?php echo !$fv ? "" : " wds_free_button"; ?>" onclick="<?php echo $fv ? "alert('". addslashes(__('This functionality is disabled in free version.', WDS()->prefix)) ."')" : "wds_add_layer('text', '" . $slide_row->id . "')"; ?>; return false;"><?php _e('Add Text Layer', WDS()->prefix); ?></button>
|
2208 |
</div>
|
2209 |
<?php
|
2210 |
if (!$spider_uploader) {
|
2211 |
?>
|
2212 |
<div class="layer_add_buttons_wrap">
|
2213 |
+
<button class="action_buttons add_image_layer button-small<?php echo !WDS()->is_free ? "" : " wds_free_button"; ?>" onclick="<?php echo WDS()->is_free ? "alert('". addslashes(__('This functionality is disabled in free version.', WDS()->prefix)) ."')" : "wds_add_layer('image', '" . $slide_row->id . "', '')"; ?>; return false;"><?php _e('Add Image Layer', WDS()->prefix); ?></button>
|
2214 |
</div>
|
2215 |
<?php
|
2216 |
}
|
2217 |
else {
|
2218 |
?>
|
2219 |
<div class="layer_add_buttons_wrap">
|
2220 |
+
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'add_layer', 'slide_id' => $slide_row->id, 'TB_iframe' => '1'), $query_url); ?>" class="action_buttons add_image_layer button-small thickbox thickbox-preview<?php echo !$fv ? "" : " wds_free_button"; ?>" title="<?php _e('Add Image layer', WDS()->prefix); ?>" onclick="return false;">
|
2221 |
+
<?php _e('Add Image layer', WDS()->prefix); ?>
|
2222 |
</a>
|
2223 |
</div>
|
2224 |
<?php
|
2225 |
}
|
2226 |
?>
|
2227 |
<div class="layer_add_buttons_wrap">
|
2228 |
+
<input type="button" class="action_buttons add_video_layer button-small<?php echo !WDS()->is_free ? "" : " wds_free_button"; ?>" id="button_video_url<?php echo $slide_row->id; ?>" onclick="<?php echo WDS()->is_free ? "alert('". addslashes(__('This functionality is disabled in free version.', WDS()->prefix)) ."')" : "wds_add_layer('upvideo', '" . $slide_row->id . "')"; ?>; return false;" value="<?php _e('Add Video Layer', WDS()->prefix); ?>" />
|
2229 |
</div>
|
2230 |
<div class="layer_add_buttons_wrap">
|
2231 |
+
<input type="button" class="action_buttons add_embed_layer button-small<?php echo !WDS()->is_free ? "" : " wds_free_button"; ?>" onclick="<?php echo WDS()->is_free ? "alert('". addslashes(__('This functionality is disabled in free version.', WDS()->prefix)) ."')" : "wds_add_video('" . $slide_row->id . "', 'video_layer')"; ?>" value="<?php _e('Embed Media Layer', WDS()->prefix); ?>" />
|
2232 |
</div>
|
2233 |
<div class="layer_add_buttons_wrap">
|
2234 |
+
<button class="action_buttons add_social_layer button-small<?php echo !WDS()->is_free ? "" : " wds_free_button"; ?>" onclick="<?php echo WDS()->is_free ? "alert('". addslashes(__('This functionality is disabled in free version.', WDS()->prefix)) ."')" : "wds_add_layer('social', '" . $slide_row->id . "')"; ?>; return false;"><?php _e('Social Button Layer', WDS()->prefix); ?></button>
|
2235 |
</div>
|
2236 |
<div class="layer_add_buttons_wrap">
|
2237 |
+
<button class="action_buttons add_hotspot_layer button-small<?php echo !WDS()->is_free ? "" : " wds_free_button"; ?>" onclick="<?php echo WDS()->is_free ? "alert('". addslashes(__('This functionality is disabled in free version.', WDS()->prefix)) ."')" : "wds_add_layer('hotspots', '" . $slide_row->id . "')"; ?>; return false;" ><?php _e('Add Hotspot Layer', WDS()->prefix); ?></button>
|
2238 |
</div>
|
2239 |
<div class="clear"></div>
|
2240 |
</div>
|
2243 |
</tbody>
|
2244 |
<?php
|
2245 |
$layer_ids_string = '';
|
2246 |
+
if ( !empty($layers_row[$slide_row->id]) ) {
|
2247 |
+
foreach ($layers_row[$slide_row->id] as $key => $layer) {
|
2248 |
$prefix = 'slide' . $slide_row->id . '_layer' . $layer->id;
|
2249 |
?>
|
2250 |
<tbody class="layer_table_count" id="<?php echo $prefix; ?>_tbody">
|
2252 |
<td class="wds_layer_head" colspan="4">
|
2253 |
<div class="wds_layer_left">
|
2254 |
<div class="layer_handle handle connectedSortable" title="Drag to re-order"></div>
|
2255 |
+
<span class="wds_layer_label" onclick="wds_showhide_layer('<?php echo $prefix; ?>_tbody', 0)"><input id="<?php echo $prefix; ?>_title" name="<?php echo $prefix; ?>_title" type="text" class="wds_layer_title" value="<?php echo $layer->title; ?>" title="<?php _e('Layer title', WDS()->prefix); ?>" /></span>
|
2256 |
</div>
|
2257 |
<div class="wds_layer_right">
|
2258 |
<span class="wds_layer_remove" onclick="wds_delete_layer('<?php echo $slide_row->id; ?>', '<?php echo $layer->id; ?>'); " title="Delete layer"></span>
|
2259 |
+
<span class="wds_layer_dublicate" onclick="wds_add_layer('<?php echo $layer->type; ?>', '<?php echo $slide_row->id; ?>', '', 1, 0); wds_duplicate_layer('<?php echo $layer->type; ?>', '<?php echo $slide_row->id; ?>', '<?php echo $layer->id; ?>'); " title="<?php _e('Duplicate layer', WDS()->prefix); ?>"></span>
|
2260 |
<input id="<?php echo $prefix; ?>_depth" class="wds_layer_depth spider_int_input" type="text" onchange="change_zindex(this,'<?php echo $prefix; ?>'); " onkeypress="return spider_check_isnum(event); " value="<?php echo $layer->depth; ?>" prefix="<?php echo $prefix; ?>" name="<?php echo $prefix; ?>_depth" title="z-index" />
|
2261 |
</div>
|
2262 |
<div class="wds_clear"></div>
|
2317 |
wds_drag_layer('<?php echo $slide_row->id; ?>');
|
2318 |
wds_layer_weights('<?php echo $slide_row->id; ?>');
|
2319 |
<?php
|
2320 |
+
if ( !empty($layers_row[$slide_row->id]) ) {
|
2321 |
+
foreach ($layers_row[$slide_row->id] as $key => $layer) {
|
2322 |
if ($layer->type == 'image') {
|
2323 |
$prefix = 'slide' . $slide_row->id . '_layer' . $layer->id;
|
2324 |
?>
|
2377 |
<div class="wds_box wds_howto_box meta-box-sortables">
|
2378 |
<div class="clear"></div>
|
2379 |
<div class="bgcolor wds_tabs aui-sortable">
|
2380 |
+
<h2 class="titles wd-slides-title"><?php _e('How to use', WDS()->prefix); ?></h2>
|
2381 |
<div class="wds_howto_container">
|
2382 |
<div class="wds_howto_content">
|
2383 |
+
<h2><?php _e('Shortcode', WDS()->prefix); ?></h2>
|
2384 |
+
<h4><?php _e('Copy and paste this shortcode into your posts or pages:', WDS()->prefix); ?></h4>
|
2385 |
<input type="text" class="wds_howto_shortcode" value='[wds id="<?php echo $row->id; ?>"]' onclick="spider_select_value(this)" size="11" readonly="readonly" />
|
2386 |
</div>
|
2387 |
<div class="wds_howto_content">
|
2388 |
+
<h2><?php _e('Page or Post editor', WDS()->prefix); ?></h2>
|
2389 |
+
<h4><?php _e('Insert it into an existing post with the button:', WDS()->prefix); ?></h4>
|
2390 |
+
<img src="<?php echo WDS()->plugin_url . '/images/sliderwdpng/wp-publish.png'; ?>" alt="<?php _e('Post editor', WDS()->prefix); ?>" />
|
2391 |
</div>
|
2392 |
<div class="wds_howto_content">
|
2393 |
+
<h2><?php _e('PHP code', WDS()->prefix); ?></h2>
|
2394 |
+
<h4><?php _e('Copy and paste the PHP code into your template file:', WDS()->prefix); ?></h4>
|
2395 |
<input type="text" class="wds_howto_phpcode" value="<?php wd_slider(<?php echo $row->id; ?>); ?>" onclick="spider_select_value(this)" size="17" readonly="readonly" />
|
2396 |
</div>
|
2397 |
</div>
|
2399 |
</div>
|
2400 |
</div>
|
2401 |
<div class="wds_task_cont">
|
2402 |
+
<input id="task" name="task" type="hidden" value="" />
|
2403 |
<input id="current_id" name="current_id" type="hidden" value="<?php echo $row->id; ?>" />
|
2404 |
<input id="save_as_copy" name="save_as_copy" type="hidden" value="" />
|
2405 |
<input id="slide_ids_string" name="slide_ids_string" type="hidden" value="<?php echo $slide_ids_string; ?>" />
|
2411 |
var spider_uploader_ = <?php echo $spider_uploader; ?>;
|
2412 |
</script>
|
2413 |
</div>
|
|
|
2414 |
<script>
|
2415 |
var fv = '<?php echo $fv; ?>';
|
2416 |
var ajax_url = "<?php echo wp_nonce_url(admin_url('admin-ajax.php'), '', 'nonce_wd'); ?>";
|
2417 |
var uploader_href = '<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'add_update_slide', 'slide_id' => 'slideID', 'layer_id' => 'layerID', 'TB_iframe' => '1'), $query_url); ?>';
|
2418 |
+
var WD_S_URL = '<?php echo WDS()->plugin_url; ?>';
|
2419 |
jQuery(document).ready(function() {
|
2420 |
wds_onload();
|
2421 |
});
|
2429 |
jQuery(".wds_tab_title_wrap").removeClass("wds_sub_active");
|
2430 |
}
|
2431 |
});
|
2432 |
+
var plugin_dir = '<?php echo WDS()->plugin_url . "/images/sliderwdpng/"; ?>';
|
2433 |
</script>
|
2434 |
<div class="opacity_add_video wds_opacity_video wds_opacity_export opacity_wp_editor"
|
2435 |
onclick="jQuery('.opacity_add_video').hide();
|
2438 |
jQuery('.wds_editor').hide();">
|
2439 |
</div>
|
2440 |
<div class="wds_exports">
|
2441 |
+
<input type="checkbox" name="imagesexport" id="imagesexport" value="<?php _e('Images export', WDS()->prefix); ?>" checked="checked" />
|
2442 |
+
<label for="imagesexport"><?php _e('Check the box to export the images included within sliders', WDS()->prefix); ?></label>
|
2443 |
+
<input class="button-secondary" type="button" id="wds_export_btn" data-href="<?php echo add_query_arg(array('action' => 'WDSExport'), admin_url('admin-ajax.php')); ?>" onclick="spider_set_input_value('task', 'export_on'); wds_spider_ajax_save('sliders_form', event); jQuery('.wds_exports').hide(); jQuery('.wds_opacity_export').hide();" value="<?php _e('Export', WDS()->prefix); ?>" />
|
2444 |
+
<input type="button" class="button-secondary" onclick="jQuery('.wds_exports').hide(); jQuery('.wds_opacity_export').hide(); return false;" value="<?php _e('Cancel', WDS()->prefix); ?>" />
|
2445 |
</div>
|
2446 |
<div id="add_embed" class="opacity_add_video wds_add_video">
|
2447 |
<input type="text" id="embed_url" name="embed_url" value="" />
|
2448 |
+
<input class="button button-primary" type="button" onclick="if (wds_get_embed_info(jQuery('#embed_url').val())) {jQuery('.opacity_add_video').hide();} jQuery('#embed_url').val(''); return false;" value="<?php _e('Add', WDS()->prefix); ?>" />
|
2449 |
+
<input class="button" type="button" onclick="jQuery('.opacity_add_video').hide(); jQuery('#embed_url').val(''); return false;" value="<?php _e('Cancel', WDS()->prefix); ?>" />
|
2450 |
<div class="spider_description">
|
2451 |
+
<?php _e('Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here.', WDS()->prefix); ?>
|
2452 |
</div>
|
2453 |
<div class="spider_description">
|
2454 |
+
<p><?php _e('<b>Youtube</b> URL example:', WDS()->prefix); ?> <i>https://www.youtube.com/watch?v=xebpM_-GwG0</i></p>
|
2455 |
+
<p><?php _e('<b>Vimeo</b> URL example:', WDS()->prefix); ?> <i>https://vimeo.com/69726973</i></p>
|
2456 |
+
<p><?php _e('<b>Instagram</b> URL example:', WDS()->prefix); ?> <i>https://instagram.com/p/4o65J9QNDm</i>.<br /><?php _e('Add', WDS()->prefix); ?> "<i style="text-decoration:underline;"><?php _e('post', WDS()->prefix); ?></i>" <?php _e('to the end of URL if you want to embed the whole Instagram post, not only its content.', WDS()->prefix); ?></p>
|
2457 |
+
<p><?php _e('<b>Flickr</b> URL example:', WDS()->prefix); ?> <i>https://www.flickr.com/photos/powerpig/18780957662/in/photostream/</i></p>
|
2458 |
+
<p><?php _e('<b>Dailymotion</b> URL example:', WDS()->prefix); ?> <i>http://www.dailymotion.com/video/x2w0jzl_cortoons-tv-tropty-episodio-2_fun</i></p>
|
2459 |
</div>
|
2460 |
</div>
|
2461 |
<div class="wds_editor">
|
2462 |
<div class="wds_editor_insert_btn">
|
2463 |
+
<input type="button" class="button button-primary" onclick="wds_insert_html()" value="<?php _e('Insert', WDS()->prefix); ?>" />
|
2464 |
+
<input type="button" class="button button-secondary" onclick="jQuery('.opacity_wp_editor').hide();jQuery('.wds_editor').hide(); return false;" value="<?php _e('Cancel', WDS()->prefix); ?>" />
|
2465 |
</div>
|
2466 |
<?php
|
2467 |
wp_editor('', 'template_text', array('teeny' => TRUE, 'textarea_name' => 'template_text', 'media_buttons' => FALSE, 'textarea_rows' => 5,'quicktags' => FALSE));
|
2553 |
<div class="wd-box-section">
|
2554 |
<div class="wd-box-content">
|
2555 |
<span class="wd-group">
|
2556 |
+
<label class="wd-label"><?php _e('Published:', WDS()->prefix); ?></label>
|
2557 |
<input id="<?php echo $prefix; ?>_published1" type="radio" name="<?php echo $prefix; ?>_published" value="1" <?php echo (($new_layer['published']) ? 'checked="checked"' : ''); ?> />
|
2558 |
+
<label <?php echo (($new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published1"><?php _e('Yes', WDS()->prefix); ?></label>
|
2559 |
<input id="<?php echo $prefix; ?>_published0" type="radio" name="<?php echo $prefix; ?>_published" value="0" <?php echo (($new_layer['published']) ? '' : 'checked="checked"'); ?>/>
|
2560 |
+
<label <?php echo ((!$new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published0"><?php _e('No', WDS()->prefix); ?></label>
|
2561 |
<p class="description"></p>
|
2562 |
</span>
|
2563 |
<span class="wd-group">
|
2564 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_static_layer"><?php _e('Static layer:', WDS()->prefix); ?></label>
|
2565 |
<input id="<?php echo $prefix; ?>_static_layer" type="checkbox" name="<?php echo $prefix; ?>_static_layer" <?php echo checked(1, $new_layer['static_layer']); ?> value="1" />
|
2566 |
+
<p class="description"><?php _e('The layer will be visible on all slides.', WDS()->prefix); ?></p>
|
2567 |
</span>
|
2568 |
<span class="wd-group">
|
2569 |
+
<label class="wd-label" title=""><?php _e('Dimensions:', WDS()->prefix); ?></label>
|
2570 |
<input type="hidden" name="<?php echo $prefix; ?>_image_url" id="<?php echo $prefix; ?>_image_url" value="<?php echo $new_layer['image_url']; ?>" />
|
2571 |
<input id="<?php echo $prefix; ?>_image_width" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_width']; ?>" name="<?php echo $prefix; ?>_image_width" /> x
|
2572 |
<input id="<?php echo $prefix; ?>_image_height" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_height']; ?>" name="<?php echo $prefix; ?>_image_height" /> px
|
2573 |
+
<input id="<?php echo $prefix; ?>_image_scale" type="checkbox" onchange="wds_scale(this, '<?php echo $prefix; ?>')" name="<?php echo $prefix; ?>_image_scale" <?php echo (($new_layer['image_scale']) ? 'checked="checked"' : ''); ?> /><label for="<?php echo $prefix; ?>_image_scale"><?php _e('Scale', WDS()->prefix); ?></label>
|
2574 |
<?php
|
2575 |
if ( !$spider_uploader ) {
|
2576 |
?>
|
2577 |
+
<input type="button" class="button button-secondary" id="button_image_url<?php echo $id; ?>" onclick="wds_add_layer('image', '<?php echo $id; ?>', '<?php echo $new_layer['id']; ?>', '', '', 1); return false;" value="<?php _e('Edit Image', WDS()->prefix); ?>" />
|
2578 |
<?php
|
2579 |
} else {
|
2580 |
?>
|
2581 |
+
<a href="<?php echo add_query_arg(array('callback' => 'wds_add_image', 'image_for' => 'add_update_layer', 'slide_id' => $id, 'layer_id' => $new_layer['id'], 'TB_iframe' => '1'), $query_url); ?>" class="button button-secondary thickbox thickbox-preview" title="<?php _e('Edit Image', WDS()->prefix); ?>" onclick="return false;">
|
2582 |
+
<?php _e('Edit Image', WDS()->prefix); ?>
|
2583 |
</a>
|
2584 |
<?php
|
2585 |
}
|
2586 |
?>
|
2587 |
+
<p class="description"><?php _e('Set width and height of the image.', WDS()->prefix); ?></p>
|
2588 |
</span>
|
2589 |
<span class="wd-group">
|
2590 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_alt" title=""><?php _e('Alt:', WDS()->prefix); ?></label>
|
2591 |
<input id="<?php echo $prefix; ?>_alt" type="text" class="wds_link" value="<?php echo $new_layer['alt']; ?>" name="<?php echo $prefix; ?>_alt" />
|
2592 |
+
<p class="description"><?php _e('Set the value of alt HTML attribute for this image layer.', WDS()->prefix); ?></p>
|
2593 |
</span>
|
2594 |
<span class="wd-group">
|
2595 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_link" title=""><?php _e('Link:', WDS()->prefix); ?></label>
|
2596 |
<input id="<?php echo $prefix; ?>_link" class="wds_link" type="text" value="<?php echo $new_layer['link']; ?>" name="<?php echo $prefix; ?>_link" />
|
2597 |
+
<input id="<?php echo $prefix; ?>_target_attr_layer" type="checkbox" name="<?php echo $prefix; ?>_target_attr_layer" <?php echo (($new_layer['target_attr_layer']) ? 'checked="checked"' : ''); ?> value="1" /><label for="<?php echo $prefix; ?>_target_attr_layer"><?php _e('Open in a new window', WDS()->prefix); ?></label>
|
2598 |
+
<p class="description"><?php _e('Use http:// and https:// for external links.', WDS()->prefix); ?></p>
|
2599 |
</span>
|
2600 |
<span class="wd-group">
|
2601 |
+
<label class="wd-label" title=""><?php _e('Position:', WDS()->prefix); ?></label>
|
2602 |
X <input id="<?php echo $prefix; ?>_left" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({left: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['left']; ?>" name="<?php echo $prefix; ?>_left" />
|
2603 |
Y <input id="<?php echo $prefix; ?>_top" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({top: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['top']; ?>" name="<?php echo $prefix; ?>_top" />
|
2604 |
+
<p class="description"><?php _e('In addition, you can drag the layer and drop it to the desired position.', WDS()->prefix); ?></p>
|
2605 |
</span>
|
2606 |
<span class="wd-group">
|
2607 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_imgtransparent" title=""><?php _e('Transparency:', WDS()->prefix); ?></label>
|
2608 |
<input id="<?php echo $prefix; ?>_imgtransparent" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({opacity: (100 - jQuery(this).val()) / 100, filter: 'Alpha(opacity=' + 100 - jQuery(this).val() + ')'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['imgtransparent']; ?>" name="<?php echo $prefix; ?>_imgtransparent"> %
|
2609 |
+
<p class="description"><?php _e('Value must be between 0 and 100.', WDS()->prefix); ?></p>
|
2610 |
</span>
|
2611 |
<span class="wd-group">
|
2612 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_layer_callback_list"><?php _e('Add click action:', WDS()->prefix); ?></label>
|
2613 |
<select class="select_icon select_icon_320" style="width: 120px;" id="<?php echo $prefix; ?>_layer_callback_list" name="<?php echo $prefix; ?>_layer_callback_list" onchange="wds_show_slides_name('<?php echo $prefix; ?>', jQuery(this).val());">
|
2614 |
<?php
|
2615 |
foreach ($layer_callbacks as $key => $layer_callback_list) {
|
2622 |
<p class="description"></p>
|
2623 |
</span>
|
2624 |
<span class="wd-group">
|
2625 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_link_to_slide" class="link_to_slide" style="<?php if ($new_layer['layer_callback_list'] != 'SlideLink') echo 'display:none;'; ?>"><?php _e('Slides Name:', WDS()->prefix); ?></label>
|
2626 |
<select class="select_icon select_icon_320" style="width: 120px; <?php if ($new_layer['layer_callback_list'] != 'SlideLink') echo 'display:none;'; ?>" id="<?php echo $prefix; ?>_link_to_slide" name="<?php echo $prefix; ?>_link_to_slide">
|
2627 |
<?php
|
2628 |
foreach ($slides_name as $key => $slide_name) {
|
2641 |
<div class="wd-box-section">
|
2642 |
<div class="wd-box-content">
|
2643 |
<span class="wd-group">
|
2644 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_in"><?php _e('Effect In:', WDS()->prefix); ?></label>
|
2645 |
<span style="display: inline-block;">
|
2646 |
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $new_layer['start']; ?>" name="<?php echo $prefix; ?>_start" /> ms
|
2647 |
+
<p class="description"><?php _e('Start', WDS()->prefix); ?></p>
|
2648 |
</span>
|
2649 |
<span style="display: inline-block;">
|
2650 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_in" id="<?php echo $prefix; ?>_layer_effect_in" style="width:150px;" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
2651 |
<?php
|
2652 |
foreach ($layer_effects_in as $key => $layer_effect_in) {
|
2653 |
?>
|
2654 |
+
<option <?php echo (WDS()->is_free && !in_array($key, $free_layer_effects)) ? 'disabled="disabled" title="' . __('This effect is disabled in free version.', WDS()->prefix) . '"' : ''; ?> value="<?php echo $key; ?>" <?php if ($new_layer['layer_effect_in'] == $key) echo 'selected="selected"'; ?>><?php echo $layer_effect_in; ?></option>
|
2655 |
<?php
|
2656 |
}
|
2657 |
?>
|
2658 |
</select>
|
2659 |
+
<p class="description"><?php _e('Effect', WDS()->prefix); ?></p>
|
2660 |
</span>
|
2661 |
<span style="display: inline-block;">
|
2662 |
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $new_layer['duration_eff_in']; ?>" name="<?php echo $prefix; ?>_duration_eff_in" /> ms
|
2663 |
+
<p class="description"><?php _e('Duration', WDS()->prefix); ?></p>
|
2664 |
</span>
|
2665 |
<span style="display: inline-block;">
|
2666 |
+
<input id="<?php echo $prefix; ?>_infinite_in" type="text" name="<?php echo $prefix; ?>_infinite_in" value="<?php echo $new_layer['infinite_in']; ?>" class="spider_int_input" title="<?php _e('0 for play infinte times', WDS()->prefix); ?>" <?php echo ($new_layer['layer_effect_in'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
2667 |
+
<p class="description"><?php _e('Iteration', WDS()->prefix); ?></p>
|
2668 |
</span>
|
2669 |
</span>
|
2670 |
<span class="wd-group">
|
2671 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_out"><?php _e('Effect Out:', WDS()->prefix); ?></label>
|
2672 |
<span style="display: inline-block;">
|
2673 |
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $new_layer['end']; ?>" name="<?php echo $prefix; ?>_end"> ms
|
2674 |
+
<p class="description"><?php _e('Start', WDS()->prefix); ?></p>
|
2675 |
</span>
|
2676 |
<span style="display: inline-block;">
|
2677 |
<select class="select_icon select_icon_320 wds_link" name="<?php echo $prefix; ?>_layer_effect_out" id="<?php echo $prefix; ?>_layer_effect_out" style="width:150px;" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
2678 |
<?php
|
2679 |
foreach ($layer_effects_out as $key => $layer_effect_out) {
|
2680 |
?>
|
2681 |
+
<option <?php echo (WDS()->is_free && !in_array($key, $free_layer_effects)) ? 'disabled="disabled" title="' . __('This effect is disabled in free version.', WDS()->prefix) . '"' : ''; ?> value="<?php echo $key; ?>" <?php if ($new_layer['layer_effect_out'] == $key) echo 'selected="selected"'; ?>><?php echo $layer_effect_out; ?></option>
|
2682 |
<?php
|
2683 |
}
|
2684 |
?>
|
2685 |
</select>
|
2686 |
+
<p class="description"><?php _e('Effect', WDS()->prefix); ?></p>
|
2687 |
</span>
|
2688 |
<span style="display: inline-block;">
|
2689 |
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $new_layer['duration_eff_out']; ?>" name="<?php echo $prefix; ?>_duration_eff_out"> ms
|
2690 |
+
<p class="description"><?php _e('Duration', WDS()->prefix); ?></p>
|
2691 |
</span>
|
2692 |
<span style="display: inline-block;">
|
2693 |
<input id="<?php echo $prefix; ?>_infinite_out" type="text" name="<?php echo $prefix; ?>_infinite_out" value="<?php echo $new_layer['infinite_out']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_out'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
2694 |
+
<p class="description"><?php _e('Iteration', WDS()->prefix); ?></p>
|
2695 |
</span>
|
2696 |
</span>
|
2697 |
<span class="wd-group">
|
2698 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_border_width"><?php _e('Border:', WDS()->prefix); ?></label>
|
2699 |
<input id="<?php echo $prefix; ?>_border_width" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderWidth: jQuery(this).val()})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['border_width']; ?>" name="<?php echo $prefix; ?>_border_width"> px
|
2700 |
<select class="select_icon" id="<?php echo $prefix; ?>_border_style" onchange="jQuery('#<?php echo $prefix; ?>').css({borderStyle: jQuery(this).val()})" style="width: 80px !important;" name="<?php echo $prefix; ?>_border_style">
|
2701 |
<?php
|
2710 |
<p class="description"></p>
|
2711 |
</span>
|
2712 |
<span class="wd-group">
|
2713 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_border_radius" title=""><?php _e('Radius:', WDS()->prefix); ?></label>
|
2714 |
<input placeholder="4px" id="<?php echo $prefix; ?>_border_radius" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderRadius: jQuery(this).val()})" value="<?php echo $new_layer['border_radius']; ?>" name="<?php echo $prefix; ?>_border_radius">
|
2715 |
+
<p class="description"><?php _e('Use CSS type values.', WDS()->prefix); ?></p>
|
2716 |
</span>
|
2717 |
<span class="wd-group">
|
2718 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_shadow"><?php _e('Shadow:', WDS()->prefix); ?></label>
|
2719 |
<input placeholder="10px 10px 5px #888888" id="<?php echo $prefix; ?>_shadow" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({boxShadow: jQuery(this).val()})" value="<?php echo $new_layer['shadow']; ?>" name="<?php echo $prefix; ?>_shadow" />
|
2720 |
+
<p class="description"><?php _e('Use CSS type values.', WDS()->prefix); ?></p>
|
2721 |
</span>
|
2722 |
<span class="wd-group">
|
2723 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_add_class"><?php _e('Add class:', WDS()->prefix); ?></label>
|
2724 |
<input id="<?php echo $prefix; ?>_add_class" class="spider_char_input" type="text" value="<?php echo $new_layer['add_class']; ?>" name="<?php echo $prefix; ?>_add_class" />
|
2725 |
+
<p class="description"><?php _e('Use this option to add a unique class to this layer.', WDS()->prefix); ?></p>
|
2726 |
</span>
|
2727 |
</div>
|
2728 |
</div>
|
2839 |
<div class="wd-box-section">
|
2840 |
<div class="wd-box-content">
|
2841 |
<span class="wd-group">
|
2842 |
+
<label class="wd-label"><?php _e('Published:', WDS()->prefix); ?></label>
|
2843 |
<input id="<?php echo $prefix; ?>_published1" type="radio" name="<?php echo $prefix; ?>_published" value="1" <?php echo (($new_layer['published']) ? 'checked="checked"' : ''); ?> />
|
2844 |
+
<label <?php echo (($new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published1"><?php _e('Yes', WDS()->prefix); ?></label>
|
2845 |
<input id="<?php echo $prefix; ?>_published0" type="radio" name="<?php echo $prefix; ?>_published" value="0" <?php echo (($new_layer['published']) ? '' : 'checked="checked"'); ?> />
|
2846 |
+
<label <?php echo (($new_layer['published']) ? '' : 'class="selected_color"'); ?> for="<?php echo $prefix; ?>_published0"><?php _e('No', WDS()->prefix); ?></label>
|
2847 |
<p class="description"></p>
|
2848 |
</span>
|
2849 |
|
2850 |
<span class="wd-group">
|
2851 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_text"><?php _e('Text:', WDS()->prefix); ?></label>
|
2852 |
<textarea id="<?php echo $prefix; ?>_text" class='wds_textarea' name="<?php echo $prefix; ?>_text" onkeyup="wds_new_line('<?php echo $prefix; ?>');"><?php echo $new_layer['text']; ?></textarea>
|
2853 |
+
<input type="button" class="wds_editor_btn button button-secondary" onclick="wds_show_wp_editor('<?php echo $prefix; ?>')" value="<?php _e('Editor', WDS()->prefix); ?>" />
|
2854 |
<p class="description"></p>
|
2855 |
</span>
|
2856 |
<?php
|
2857 |
/*
|
2858 |
+
Todo will use this code in other version
|
2859 |
+
<span class="wd-group">
|
2860 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_text_position"><?php _e('Text position:', WDS()->prefix); ?></label>
|
2861 |
+
<input id="<?php echo $prefix; ?>_text_position0" class="wds_text_positio" type="radio" name="<?php echo $prefix;?>_text_position" value="0" onchange="wds_change_text_position('<?php echo $new_layer['id'] ?>','<?php echo $prefix; ?>_text_position0')" <?php echo ( isset($new_layer['text_position']) && $new_layer['text_position'] == 0) ? 'checked="checked"' :''?> />
|
2862 |
+
<label for="<?php echo $prefix; ?>_text_position0"><?php _e('Inside', WDS()->prefix);?></label>
|
2863 |
+
<input id="<?php echo $prefix; ?>_text_position1" class="wds_text_positio" type="radio" name="<?php echo $prefix;?>_text_position" value="1" onchange="wds_change_text_position('<?php echo $new_layer['id'] ?>','<?php echo $prefix; ?>_text_position1')" <?php echo ( isset($new_layer['text_position']) && $new_layer['text_position'] == 1) ? 'checked="checked"' :''?> />
|
2864 |
+
<label for="<?php echo $prefix; ?>_text_position1"><?php _e('Top', WDS()->prefix);?></label>
|
2865 |
+
<input id="<?php echo $prefix; ?>_text_position2" class="wds_text_positio" type="radio" name="<?php echo $prefix;?>_text_position" value="2" onchange="wds_change_text_position('<?php echo $new_layer['id'] ?>','<?php echo $prefix; ?>_text_position2')" <?php echo ( isset($new_layer['text_position']) && $new_layer['text_position'] == 2) ? 'checked="checked"' :''?> />
|
2866 |
+
<label for="<?php echo $prefix; ?>_text_position2"><?php _e('Bottom', WDS()->prefix);?></label>
|
2867 |
+
</span>
|
2868 |
*/
|
2869 |
?>
|
2870 |
<span class="wd-group">
|
2871 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_static_layer"><?php _e('Static layer:', WDS()->prefix); ?></label>
|
2872 |
<input id="<?php echo $prefix; ?>_static_layer" type="checkbox" name="<?php echo $prefix; ?>_static_layer" <?php echo checked(1, $new_layer['static_layer']); ?> value="1" />
|
2873 |
+
<p class="description"><?php _e('The layer will be visible on all slides.', WDS()->prefix); _e('Leave blank to keep the initial width and height.', WDS()->prefix); ?></p>
|
2874 |
</span>
|
2875 |
<span class="wd-group">
|
2876 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_image_width"><?php _e('Dimensions:', WDS()->prefix); ?></label>
|
2877 |
<input id="<?php echo $prefix; ?>_image_width" class="spider_int_input" type="text" onchange="wds_text_width(this, '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_width']; ?>" name="<?php echo $prefix; ?>_image_width" /> x
|
2878 |
<input id="<?php echo $prefix; ?>_image_height" class="spider_int_input" type="text" onchange="wds_text_height(this, '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_height']; ?>" name="<?php echo $prefix; ?>_image_height" /> %
|
2879 |
+
<input id="<?php echo $prefix; ?>_image_scale" type="checkbox" onchange="wds_break_word(this, '<?php echo $prefix; ?>')" name="<?php echo $prefix; ?>_image_scale" <?php echo (($new_layer['image_scale']) ? 'checked="checked"' : ''); ?> /><label for="<?php echo $prefix; ?>_image_scale"><?php _e('Break-word', WDS()->prefix); ?></label>
|
2880 |
+
<p class="description"><?php _e('Leave blank to keep the initial width and height. ', WDS()->prefix); ?><?php _e('Break-word may break lines from between any two letters, if their width is larger than dimensions.', WDS()->prefix); ?></p>
|
2881 |
</span>
|
2882 |
<span class="wd-group">
|
2883 |
+
<label class="wd-label"><?php _e('Position:', WDS()->prefix); ?></label>
|
2884 |
X <input id="<?php echo $prefix; ?>_left" class="spider_int_input" type="text" <?php echo ($new_layer['align']) ? 'disabled="disabled"' : ''; ?> onchange="jQuery('#<?php echo $prefix; ?>').css({left: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['left']; ?>" name="<?php echo $prefix; ?>_left" />
|
2885 |
Y <input id="<?php echo $prefix; ?>_top" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({top: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['top']; ?>" name="<?php echo $prefix; ?>_top" />
|
2886 |
+
<input id="<?php echo $prefix; ?>_align_layer" type="checkbox" name="<?php echo $prefix; ?>_align_layer" <?php echo checked(1, $new_layer['align'] ); ?> value="1" onchange="wds_position_left_disabled('<?php echo $prefix; ?>')" /><label for="<?php echo $prefix; ?>_align_layer"><?php _e('Fixed step (left, center, right)', WDS()->prefix); ?></label>
|
2887 |
+
<p class="description"><?php _e('In addition, you can drag the layer and drop it to the desired position. ', WDS()->prefix); ?><?php _e('Fixed step places the layer on one of three positions (left, center, or right), based on its Y position.', WDS()->prefix); ?></p>
|
2888 |
</span>
|
2889 |
<span class="wd-group">
|
2890 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_size"><?php _e('Size:', WDS()->prefix); ?></label>
|
2891 |
<span style="display: inline-block">
|
2892 |
<input id="<?php echo $prefix; ?>_size" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({fontSize: jQuery(this).val() + 'px', lineHeight: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['size']; ?>" name="<?php echo $prefix; ?>_size" /> px
|
2893 |
</span>
|
2894 |
+
<p class="description"><?php _e('Sets the font size of the text.', WDS()->prefix); ?></p>
|
2895 |
</span>
|
2896 |
<span class="wd-group">
|
2897 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_size"><?php _e('Minimum font size:', WDS()->prefix); ?></label>
|
2898 |
<span style="display: inline-block;">
|
2899 |
<input id="<?php echo $prefix; ?>_min_size" class="spider_int_input" type="text" onchange="wds_min_size_validation('<?php echo $prefix; ?>')" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['min_size']; ?>" name="<?php echo $prefix; ?>_min_size" /> px
|
2900 |
</span>
|
2901 |
+
<p class="description"><?php _e('Text layer font size shrinks on small screens. Choose the minimum font size, which the text should have.', WDS()->prefix); ?></p>
|
2902 |
</span>
|
2903 |
<span class="wd-group">
|
2904 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_color"><?php _e('Color:', WDS()->prefix); ?></label>
|
2905 |
<input id="<?php echo $prefix; ?>_color" class="color" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({color: '#' + jQuery(this).val()})" value="<?php echo $new_layer['color']; ?>" name="<?php echo $prefix; ?>_color" />
|
2906 |
<p class="description"></p>
|
2907 |
</span>
|
2908 |
<span class="wd-group">
|
2909 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_hover_color_text"><?php _e('Hover Color:', WDS()->prefix); ?></label>
|
2910 |
<input id="<?php echo $prefix; ?>_hover_color_text" class="color" type="text" value="<?php echo $new_layer['hover_color_text']; ?>" name="<?php echo $prefix; ?>_hover_color_text" />
|
2911 |
<p class="description"></p>
|
2912 |
</span>
|
2913 |
<span class="wd-group">
|
2914 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_ffamily"><?php _e('Font family:', WDS()->prefix); ?></label>
|
2915 |
<select class="select_icon select_icon_320" style="width: 200px;" id="<?php echo $prefix; ?>_ffamily" onchange="wds_change_fonts('<?php echo $prefix; ?>', 1)" name="<?php echo $prefix; ?>_ffamily">
|
2916 |
<?php
|
2917 |
$fonts = (isset($new_layer['google_fonts']) && $new_layer['google_fonts']) ? $google_fonts : $font_families;
|
2923 |
?>
|
2924 |
</select>
|
2925 |
<input id="<?php echo $prefix; ?>_google_fonts1" type="radio" name="<?php echo $prefix; ?>_google_fonts" value="1" <?php echo (($new_layer['google_fonts']) ? 'checked="checked"' : ''); ?> onchange="wds_change_fonts('<?php echo $prefix; ?>')" />
|
2926 |
+
<label for="<?php echo $prefix; ?>_google_fonts1"><?php _e('Google fonts', WDS()->prefix); ?></label>
|
2927 |
<input id="<?php echo $prefix; ?>_google_fonts0" type="radio" name="<?php echo $prefix;?>_google_fonts" value="0" <?php echo (($new_layer['google_fonts']) ? '' : 'checked="checked"'); ?> onchange="wds_change_fonts('<?php echo $prefix; ?>')" />
|
2928 |
+
<label for="<?php echo $prefix; ?>_google_fonts0"><?php _e('Default', WDS()->prefix); ?></label>
|
2929 |
<p class="description"></p>
|
2930 |
</span>
|
2931 |
<span class="wd-group">
|
2932 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_fweight"><?php _e('Font weight:', WDS()->prefix); ?></label>
|
2933 |
<select class="select_icon select_icon_320" style="width:70px" id="<?php echo $prefix; ?>_fweight" onchange="jQuery('#<?php echo $prefix; ?>').css({fontWeight: jQuery(this).val()})" name="<?php echo $prefix; ?>_fweight">
|
2934 |
<?php
|
2935 |
foreach ($font_weights as $key => $fweight) {
|
2942 |
<p class="description"></p>
|
2943 |
</span>
|
2944 |
<span class="wd-group">
|
2945 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_link" title=""><?php _e('Link:', WDS()->prefix); ?></label>
|
2946 |
<input class="wds_link" id="<?php echo $prefix; ?>_link" type="text" style="width: 200px;" value="<?php echo $new_layer['link']; ?>" name="<?php echo $prefix; ?>_link" />
|
2947 |
+
<input id="<?php echo $prefix; ?>_target_attr_layer" type="checkbox" name="<?php echo $prefix; ?>_target_attr_layer" <?php echo (($new_layer["target_attr_layer"]) ? 'checked="checked"' : ''); ?> value="1" /><label for="<?php echo $prefix; ?>_target_attr_layer"><?php _e('Open in a new window', WDS()->prefix); ?></label>
|
2948 |
+
<p class="description"><?php _e('Use http:// and https:// for external links.', WDS()->prefix); ?></p>
|
2949 |
</span>
|
2950 |
<span class="wd-group">
|
2951 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_layer_callback_list"><?php _e('Add click action:', WDS()->prefix); ?></label>
|
2952 |
<select class="select_icon select_icon_320" style="width: 120px;" id="<?php echo $prefix; ?>_layer_callback_list" name="<?php echo $prefix; ?>_layer_callback_list" onchange="wds_show_slides_name('<?php echo $prefix; ?>', jQuery(this).val())">
|
2953 |
<?php
|
2954 |
foreach ($layer_callbacks as $key => $layer_callback_list) {
|
2961 |
<p class="description"></p>
|
2962 |
</span>
|
2963 |
<span class="wd-group">
|
2964 |
+
<label class="wd-label link_to_slide" for="<?php echo $prefix; ?>_link_to_slide" style="<?php if ($new_layer['layer_callback_list'] != 'SlideLink') echo 'display:none;'; ?>"><?php _e('Slides Name:', WDS()->prefix); ?></label>
|
2965 |
<select class="select_icon select_icon_320" style="width: 120px; <?php if ($new_layer['layer_callback_list'] != 'SlideLink') echo 'display:none;'; ?>" id="<?php echo $prefix; ?>_link_to_slide" name="<?php echo $prefix; ?>_link_to_slide">
|
2966 |
<?php
|
2967 |
foreach ($slides_name as $key => $slide_name) {
|
2980 |
<div class="wd-box-section">
|
2981 |
<div class="wd-box-content">
|
2982 |
<span class="wd-group">
|
2983 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_in"><?php _e('Effect In:', WDS()->prefix); ?></label>
|
2984 |
<span style="display: inline-block;">
|
2985 |
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $new_layer['start']; ?>" name="<?php echo $prefix; ?>_start" /> ms
|
2986 |
+
<p class="description"><?php _e('Start', WDS()->prefix); ?></p>
|
2987 |
</span>
|
2988 |
<span style="display: inline-block;">
|
2989 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_in" id="<?php echo $prefix; ?>_layer_effect_in" style="width:150px;" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
2990 |
<?php
|
2991 |
foreach ($layer_effects_in as $key => $layer_effect_in) {
|
2992 |
?>
|
2993 |
+
<option <?php echo (WDS()->is_free && !in_array($key, $free_layer_effects)) ? 'disabled="disabled" title="' . __('This effect is disabled in free version.', WDS()->prefix) . '"' : ''; ?> value="<?php echo $key; ?>" <?php if ($new_layer['layer_effect_in'] == $key) echo 'selected="selected"'; ?>><?php echo $layer_effect_in; ?></option>
|
2994 |
<?php
|
2995 |
}
|
2996 |
?>
|
2997 |
</select>
|
2998 |
+
<p class="description"><?php _e('Effect', WDS()->prefix); ?></p>
|
2999 |
</span>
|
3000 |
<span style="display: inline-block;">
|
3001 |
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $new_layer['duration_eff_in']; ?>" name="<?php echo $prefix; ?>_duration_eff_in" /> ms
|
3002 |
+
<p class="description"><?php _e('Duration', WDS()->prefix); ?></p>
|
3003 |
</span>
|
3004 |
<span style="display: inline-block;">
|
3005 |
<input id="<?php echo $prefix; ?>_infinite_in" type="text" name="<?php echo $prefix; ?>_infinite_in" value="<?php echo $new_layer['infinite_in']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_in'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3006 |
+
<p class="description"><?php _e('Iteration', WDS()->prefix); ?></p>
|
3007 |
</span>
|
3008 |
</span>
|
3009 |
<span class="wd-group">
|
3010 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_out"><?php _e('Effect Out:', WDS()->prefix); ?></label>
|
3011 |
<span style="display: inline-block;">
|
3012 |
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $new_layer['end']; ?>" name="<?php echo $prefix; ?>_end"> ms
|
3013 |
+
<p class="description"><?php _e('Start', WDS()->prefix); ?></p>
|
3014 |
</span>
|
3015 |
<span style="display: inline-block;">
|
3016 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_out" id="<?php echo $prefix; ?>_layer_effect_out" style="width:150px;" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
3017 |
<?php
|
3018 |
foreach ($layer_effects_out as $key => $layer_effect_out) {
|
3019 |
?>
|
3020 |
+
<option <?php echo (WDS()->is_free && !in_array($key, $free_layer_effects)) ? 'disabled="disabled" title="' . __('This effect is disabled in free version.', WDS()->prefix) . '"' : ''; ?> value="<?php echo $key; ?>" <?php if ($new_layer['layer_effect_out'] == $key) echo 'selected="selected"'; ?>><?php echo $layer_effect_out; ?></option>
|
3021 |
<?php
|
3022 |
}
|
3023 |
?>
|
3024 |
</select>
|
3025 |
+
<p class="description"><?php _e('Effect', WDS()->prefix); ?></p>
|
3026 |
</span>
|
3027 |
<span style="display: inline-block;">
|
3028 |
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $new_layer['duration_eff_out']; ?>" name="<?php echo $prefix; ?>_duration_eff_out">ms
|
3029 |
+
<p class="description"><?php _e('Duration', WDS()->prefix); ?></p>
|
3030 |
</span>
|
3031 |
<span style="display: inline-block;">
|
3032 |
<input id="<?php echo $prefix; ?>_infinite_out" type="text" name="<?php echo $prefix; ?>_infinite_out" value="<?php echo $new_layer['infinite_out']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_out'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3033 |
+
<p class="description"><?php _e('Iteration', WDS()->prefix); ?></p>
|
3034 |
</span>
|
3035 |
</span>
|
3036 |
<span class="wd-group">
|
3037 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_padding" title=""><?php _e('Padding:', WDS()->prefix); ?></label>
|
3038 |
<input placeholder="5px 10px 10px" id="<?php echo $prefix; ?>_padding" class="spider_char_input" type="text" onchange="document.getElementById('<?php echo $prefix; ?>').style.padding=jQuery(this).val();" value="<?php echo $new_layer['padding']; ?>" name="<?php echo $prefix; ?>_padding">
|
3039 |
+
<p class="description"><?php _e('Use CSS type values.', WDS()->prefix); ?></p>
|
3040 |
</span>
|
3041 |
<span class="wd-group">
|
3042 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_fbgcolor"><?php _e('Background Color:', WDS()->prefix); ?></label>
|
3043 |
<input id="<?php echo $prefix; ?>_fbgcolor" class="color" type="text" onchange="wde_change_text_bg_color('<?php echo $prefix; ?>')" value="<?php echo $new_layer['fbgcolor']; ?>" name="<?php echo $prefix; ?>_fbgcolor" />
|
3044 |
<p class="description"></p>
|
3045 |
</span>
|
3046 |
<span class="wd-group">
|
3047 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_transparent" title=""><?php _e('Transparency:', WDS()->prefix); ?></label>
|
3048 |
<input id="<?php echo $prefix; ?>_transparent" class="spider_int_input" type="text" onchange="wde_change_text_bg_color('<?php echo $prefix; ?>')" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['transparent']; ?>" name="<?php echo $prefix; ?>_transparent"> %
|
3049 |
+
<p class="description"><?php _e('Value must be between 0 and 100.', WDS()->prefix); ?></p>
|
3050 |
</span>
|
3051 |
<span class="wd-group">
|
3052 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_border_width"><?php _e('Border:', WDS()->prefix); ?></label>
|
3053 |
<input id="<?php echo $prefix; ?>_border_width" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderWidth: jQuery(this).val()})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['border_width']; ?>" name="<?php echo $prefix; ?>_border_width"> px
|
3054 |
<select class="select_icon select_icon_320" id="<?php echo $prefix; ?>_border_style" onchange="jQuery('#<?php echo $prefix; ?>').css({borderStyle: jQuery(this).val()})" style="width: 80px !important;" name="<?php echo $prefix; ?>_border_style">
|
3055 |
<?php
|
3063 |
<input id="<?php echo $prefix; ?>_border_color" class="color" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderColor: '#' + jQuery(this).val()})" value="<?php echo $new_layer['border_color']; ?>" name="<?php echo $prefix; ?>_border_color">
|
3064 |
</span>
|
3065 |
<span class="wd-group">
|
3066 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_border_radius" title=""><?php _e('Radius:', WDS()->prefix); ?></label>
|
3067 |
<input placeholder="4px" id="<?php echo $prefix; ?>_border_radius" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderRadius: jQuery(this).val()})" value="<?php echo $new_layer['border_radius']; ?>" name="<?php echo $prefix; ?>_border_radius">
|
3068 |
+
<p class="description"><?php _e('Use CSS type values.', WDS()->prefix); ?></p>
|
3069 |
</span>
|
3070 |
<span class="wd-group">
|
3071 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_shadow" title=""><?php _e('Shadow:', WDS()->prefix); ?></label>
|
3072 |
<input placeholder="10px 10px 5px #888888" id="<?php echo $prefix; ?>_shadow" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({boxShadow: jQuery(this).val()})" value="<?php echo $new_layer['shadow']; ?>" name="<?php echo $prefix; ?>_shadow" />
|
3073 |
+
<p class="description"><?php _e('Use CSS type values.', WDS()->prefix); ?></p>
|
3074 |
</span>
|
3075 |
<span class="wd-group">
|
3076 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_add_class" title=""><?php _e('Add class:', WDS()->prefix); ?></label>
|
3077 |
<input id="<?php echo $prefix; ?>_add_class" class="spider_char_input" type="text" value="<?php echo $new_layer['add_class']; ?>" name="<?php echo $prefix; ?>_add_class" />
|
3078 |
+
<p class="description"><?php _e('Use this option to add a unique class to this layer.', WDS()->prefix); ?></p>
|
3079 |
</span>
|
3080 |
<span class="wd-group">
|
3081 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_text_alignment"><?php _e('Text alignment:', WDS()->prefix); ?></label>
|
3082 |
<select class="select_icon select_icon_320" style="width:70px" id="<?php echo $prefix; ?>_text_alignment" onchange="jQuery('#<?php echo $prefix; ?>').css({textAlign: jQuery(this).val()})" name="<?php echo $prefix; ?>_text_alignment">
|
3083 |
<?php
|
3084 |
foreach ($text_alignments as $key => $text_alignment) {
|
3192 |
<div class="wd-box-section">
|
3193 |
<div class="wd-box-content">
|
3194 |
<span class="wd-group">
|
3195 |
+
<label class="wd-label"><?php _e('Published:', WDS()->prefix); ?></label>
|
3196 |
<input id="<?php echo $prefix; ?>_published1" type="radio" name="<?php echo $prefix; ?>_published" value="1" <?php echo (($new_layer['published']) ? 'checked="checked"' : ''); ?> />
|
3197 |
+
<label <?php echo (($new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published1"><?php _e('Yes', WDS()->prefix); ?></label>
|
3198 |
<input id="<?php echo $prefix; ?>_published0" type="radio" name="<?php echo $prefix; ?>_published" value="0" <?php echo (($new_layer['published']) ? '' : 'checked="checked"'); ?> />
|
3199 |
+
<label <?php echo ((!$new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published0"><?php _e('No', WDS()->prefix); ?></label>
|
3200 |
<p class="description"></p>
|
3201 |
</span>
|
3202 |
<span class="wd-group">
|
3203 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_static_layer"><?php _e('Static layer:', WDS()->prefix); ?></label>
|
3204 |
<input id="<?php echo $prefix; ?>_static_layer" type="checkbox" name="<?php echo $prefix; ?>_static_layer" <?php echo checked(1, $new_layer['static_layer']); ?> value="1" />
|
3205 |
+
<p class="description"><?php _e('The layer will be visible on all slides.', WDS()->prefix); ?></p>
|
3206 |
</span>
|
3207 |
<span class="wd-group">
|
3208 |
+
<label class="wd-label" title=""><?php _e('Dimensions:', WDS()->prefix); ?></label>
|
3209 |
<input type="hidden" id="<?php echo $prefix; ?>_attr_width" name="<?php echo $prefix; ?>_attr_width" value="<?php echo $new_layer['attr_width']; ?>"/>
|
3210 |
<input type="hidden" id="<?php echo $prefix; ?>_attr_height" name="<?php echo $prefix; ?>_attr_height" value="<?php echo $new_layer['attr_height']; ?>"/>
|
3211 |
<input type="hidden" id="<?php echo $prefix; ?>_layer_post_id" name="<?php echo $prefix; ?>_layer_post_id" value="<?php echo $new_layer['image_url']; ?>" />
|
3214 |
<input type="hidden" name="<?php echo $prefix; ?>_image_url" id="<?php echo $prefix; ?>_image_url" value="<?php echo $new_layer['image_url']; ?>" />
|
3215 |
<input id="<?php echo $prefix; ?>_image_width" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_width']; ?>" name="<?php echo $prefix; ?>_image_width" /> x
|
3216 |
<input id="<?php echo $prefix; ?>_image_height" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_height']; ?>" name="<?php echo $prefix; ?>_image_height" /> px
|
3217 |
+
<p class="description"><?php _e('Set width and height of the video.', WDS()->prefix); ?></p>
|
3218 |
</span>
|
3219 |
<span class="wd-group">
|
3220 |
+
<label class="wd-label" title=""><?php _e('Position:', WDS()->prefix); ?></label>
|
3221 |
X <input id="<?php echo $prefix; ?>_left" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({left: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['left']; ?>" name="<?php echo $prefix; ?>_left" />
|
3222 |
Y <input id="<?php echo $prefix; ?>_top" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({top: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['top']; ?>" name="<?php echo $prefix; ?>_top" />
|
3223 |
+
<p class="description"><?php _e('In addition, you can drag the layer and drop it to the desired position.', WDS()->prefix); ?></p>
|
3224 |
</span>
|
3225 |
<span class="wd-group">
|
3226 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_border_width"><?php _e('Border:', WDS()->prefix); ?></label>
|
3227 |
<input id="<?php echo $prefix; ?>_border_width" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderWidth: jQuery(this).val()})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['border_width']; ?>" name="<?php echo $prefix; ?>_border_width"> px
|
3228 |
<select class="select_icon" id="<?php echo $prefix; ?>_border_style" onchange="jQuery('#<?php echo $prefix; ?>').css({borderStyle: jQuery(this).val()})" style="width: 80px !important;" name="<?php echo $prefix; ?>_border_style">
|
3229 |
<?php
|
3238 |
<p class="description"></p>
|
3239 |
</span>
|
3240 |
<span class="wd-group <?php echo $prefix; ?>_autoplay_td" <?php echo ($new_layer['target_attr_layer'] == "0" && $new_layer['videoType'] == 'upvideo') ? 'style="visibility:hidden"' : ''; ?>>
|
3241 |
+
<label class="wd-label"><?php _e('Autoplay:', WDS()->prefix); ?></label>
|
3242 |
<input id="<?php echo $prefix; ?>_image_scale1" type="radio" name="<?php echo $prefix; ?>_image_scale" value="on" <?php echo (($new_layer['image_scale'] == "on") ? 'checked="checked"' : ''); ?> />
|
3243 |
+
<label <?php echo (($new_layer['image_scale'] == "on") ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_image_scale1"><?php _e('Yes', WDS()->prefix); ?></label>
|
3244 |
<input id="<?php echo $prefix; ?>_image_scale0" type="radio" name="<?php echo $prefix; ?>_image_scale" value="off" <?php echo (($new_layer['image_scale'] == "on") ? '' : 'checked="checked"'); ?> />
|
3245 |
+
<label <?php echo (($new_layer['image_scale'] == "on") ? '' : 'class="selected_color"'); ?> for="<?php echo $prefix; ?>_image_scale0"><?php _e('No', WDS()->prefix); ?></label>
|
3246 |
<p class="description"></p>
|
3247 |
</span>
|
3248 |
<span class="wd-group" <?php echo ($new_layer['alt'] != 'EMBED_OEMBED_YOUTUBE_VIDEO') ? 'style="visibility:hidden"' : ''; ?>>
|
3249 |
+
<label class="wd-label"><?php _e('Disable youtube related video:', WDS()->prefix); ?></label>
|
3250 |
<input id="<?php echo $prefix; ?>_youtube_rel_layer_video1" type="radio" name="<?php echo $prefix; ?>_youtube_rel_layer_video" value="0" <?php echo ((!$new_layer['youtube_rel_layer_video']) ? 'checked="checked"' : ''); ?> />
|
3251 |
+
<label <?php echo ((!$new_layer['youtube_rel_layer_video']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_youtube_rel_layer_video1"><?php _e('Yes', WDS()->prefix); ?></label>
|
3252 |
<input id="<?php echo $prefix; ?>_youtube_rel_layer_video0" type="radio" name="<?php echo $prefix; ?>_youtube_rel_layer_video" value="1" <?php echo ((!$new_layer['youtube_rel_layer_video']) ? '' : 'checked="checked"'); ?> />
|
3253 |
+
<label <?php echo (($new_layer['youtube_rel_layer_video']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_youtube_rel_layer_video0"><?php _e('No', WDS()->prefix); ?></label>
|
3254 |
<p class="description"></p>
|
3255 |
</span>
|
3256 |
</div>
|
3260 |
<div class="wd-box-section">
|
3261 |
<div class="wd-box-content">
|
3262 |
<span class="wd-group">
|
3263 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_in"><?php _e('Effect In:', WDS()->prefix); ?></label>
|
3264 |
<span style="display: inline-block;">
|
3265 |
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $new_layer['start']; ?>" name="<?php echo $prefix; ?>_start" /> ms
|
3266 |
+
<p class="description"><?php _e('Start', WDS()->prefix); ?></p>
|
3267 |
</span>
|
3268 |
<span style="display: inline-block;">
|
3269 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_in" id="<?php echo $prefix; ?>_layer_effect_in" style="width:150px;" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
3270 |
<?php
|
3271 |
foreach ($layer_effects_in as $key => $layer_effect_in) {
|
3272 |
?>
|
3273 |
+
<option <?php echo (WDS()->is_free && !in_array($key, $free_layer_effects)) ? 'disabled="disabled" title="' . __('This effect is disabled in free version.', WDS()->prefix) . '"' : ''; ?> value="<?php echo $key; ?>" <?php if ($new_layer['layer_effect_in'] == $key) echo 'selected="selected"'; ?>><?php echo $layer_effect_in; ?></option>
|
3274 |
<?php
|
3275 |
}
|
3276 |
?>
|
3277 |
</select>
|
3278 |
+
<p class="description"><?php _e('Effect', WDS()->prefix); ?></p>
|
3279 |
</span>
|
3280 |
<span style="display: inline-block;">
|
3281 |
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $new_layer['duration_eff_in']; ?>" name="<?php echo $prefix; ?>_duration_eff_in" /> ms
|
3282 |
+
<p class="description"><?php _e('Duration', WDS()->prefix); ?></p>
|
3283 |
</span>
|
3284 |
<span style="display: inline-block;">
|
3285 |
<input id="<?php echo $prefix; ?>_infinite_in" type="text" name="<?php echo $prefix; ?>_infinite_in" value="<?php echo $new_layer['infinite_in']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_in'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3286 |
+
<p class="description"><?php _e('Iteration', WDS()->prefix); ?></p>
|
3287 |
</span>
|
3288 |
</span>
|
3289 |
<span class="wd-group">
|
3290 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_out"><?php _e('Effect Out:', WDS()->prefix); ?></label>
|
3291 |
<span style="display: inline-block;">
|
3292 |
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $new_layer['end']; ?>" name="<?php echo $prefix; ?>_end"> ms
|
3293 |
+
<p class="description"><?php _e('Start', WDS()->prefix); ?></p>
|
3294 |
</span>
|
3295 |
<span style="display: inline-block;">
|
3296 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_out" id="<?php echo $prefix; ?>_layer_effect_out" style="width:150px;" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
3297 |
<?php
|
3298 |
foreach ($layer_effects_out as $key => $layer_effect_out) {
|
3299 |
?>
|
3300 |
+
<option <?php echo (WDS()->is_free && !in_array($key, $free_layer_effects)) ? 'disabled="disabled" title="' . __('This effect is disabled in free version.', WDS()->prefix) . '"' : ''; ?> value="<?php echo $key; ?>" <?php if ($new_layer['layer_effect_out'] == $key) echo 'selected="selected"'; ?>><?php echo $layer_effect_out; ?></option>
|
3301 |
<?php
|
3302 |
}
|
3303 |
?>
|
3304 |
</select>
|
3305 |
+
<p class="description"><?php _e('Effect', WDS()->prefix); ?></p>
|
3306 |
</span>
|
3307 |
<span style="display: inline-block;">
|
3308 |
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $new_layer['duration_eff_out']; ?>" name="<?php echo $prefix; ?>_duration_eff_out"> ms
|
3309 |
+
<p class="description"><?php _e('Duration', WDS()->prefix); ?></p>
|
3310 |
</span>
|
3311 |
<span style="display: inline-block;">
|
3312 |
<input id="<?php echo $prefix; ?>_infinite_out" type="text" name="<?php echo $prefix; ?>_infinite_out" value="<?php echo $new_layer['infinite_out']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_out'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3313 |
+
<p class="description"><?php _e('Iteration', WDS()->prefix); ?></p>
|
3314 |
</span>
|
3315 |
</span>
|
3316 |
<span class="wd-group">
|
3317 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_border_radius" title=""><?php _e('Radius:', WDS()->prefix); ?></label>
|
3318 |
<input placeholder="4px" id="<?php echo $prefix; ?>_border_radius" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderRadius: jQuery(this).val()})" value="<?php echo $new_layer['border_radius']; ?>" name="<?php echo $prefix; ?>_border_radius">
|
3319 |
+
<p class="description"><?php _e('Use CSS type values.', WDS()->prefix); ?></p>
|
3320 |
</span>
|
3321 |
<span class="wd-group">
|
3322 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_shadow" title=""><?php _e('Shadow:', WDS()->prefix); ?></label>
|
3323 |
<input placeholder="10px 10px 5px #888888" id="<?php echo $prefix; ?>_shadow" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({boxShadow: jQuery(this).val()})" value="<?php echo $new_layer['shadow']; ?>" name="<?php echo $prefix; ?>_shadow" />
|
3324 |
+
<p class="description"><?php _e('Use CSS type values.', WDS()->prefix); ?></p>
|
3325 |
</span>
|
3326 |
<span class="wd-group">
|
3327 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_add_class"><?php _e('Add class:', WDS()->prefix); ?></label>
|
3328 |
<input id="<?php echo $prefix; ?>_add_class" class="spider_char_input" type="text" value="<?php echo $new_layer['add_class']; ?>" name="<?php echo $prefix; ?>_add_class" />
|
3329 |
+
<p class="description"><?php _e('Use this option to add a unique class to this layer.', WDS()->prefix); ?></p>
|
3330 |
</span>
|
3331 |
</div>
|
3332 |
</div>
|
3430 |
<div class="wd-box-section">
|
3431 |
<div class="wd-box-content">
|
3432 |
<span class="wd-group">
|
3433 |
+
<label class="wd-label"><?php _e('Published:', WDS()->prefix); ?></label>
|
3434 |
<input id="<?php echo $prefix; ?>_published1" type="radio" name="<?php echo $prefix; ?>_published" value="1" <?php echo (($new_layer['published']) ? 'checked="checked"' : ''); ?> />
|
3435 |
+
<label <?php echo (($new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published1"><?php _e('Yes', WDS()->prefix); ?></label>
|
3436 |
<input id="<?php echo $prefix; ?>_published0" type="radio" name="<?php echo $prefix; ?>_published" value="0" <?php echo (($new_layer['published']) ? '' : 'checked="checked"'); ?> />
|
3437 |
+
<label <?php echo ((!$new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published0"><?php _e('No', WDS()->prefix); ?></label>
|
3438 |
<p class="description"></p>
|
3439 |
</span>
|
3440 |
<span class="wd-group">
|
3441 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_static_layer"><?php _e('Static layer:', WDS()->prefix); ?></label>
|
3442 |
<input id="<?php echo $prefix; ?>_static_layer" type="checkbox" name="<?php echo $prefix; ?>_static_layer" <?php echo checked(1, $new_layer['static_layer']); ?> value="1" />
|
3443 |
+
<p class="description"><?php _e('The layer will be visible on all slides.', WDS()->prefix); ?></p>
|
3444 |
</span>
|
3445 |
<span class="wd-group">
|
3446 |
+
<label class="wd-label" title=""><?php _e('Dimensions:', WDS()->prefix); ?></label>
|
3447 |
<input type="hidden" id="<?php echo $prefix; ?>_attr_width" name="<?php echo $prefix; ?>_attr_width" value="<?php echo $new_layer['attr_width']; ?>"/>
|
3448 |
<input type="hidden" id="<?php echo $prefix; ?>_attr_height" name="<?php echo $prefix; ?>_attr_height" value="<?php echo $new_layer['attr_height']; ?>"/>
|
3449 |
<input type="hidden" id="<?php echo $prefix; ?>_layer_post_id" name="<?php echo $prefix; ?>_layer_post_id" value="<?php echo $new_layer['image_url']; ?>" />
|
3452 |
<input type="hidden" name="<?php echo $prefix; ?>_image_url" id="<?php echo $prefix; ?>_image_url" value="<?php echo $new_layer['image_url']; ?>" />
|
3453 |
<input id="<?php echo $prefix; ?>_image_width" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_width']; ?>" name="<?php echo $prefix; ?>_image_width" /> x
|
3454 |
<input id="<?php echo $prefix; ?>_image_height" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_height']; ?>" name="<?php echo $prefix; ?>_image_height" /> px
|
3455 |
+
<p class="description"><?php _e('Set width and height of the video.', WDS()->prefix); ?></p>
|
3456 |
</span>
|
3457 |
<span class="wd-group">
|
3458 |
+
<label class="wd-label" title=""><?php _e('Position:', WDS()->prefix); ?></label>
|
3459 |
X <input id="<?php echo $prefix; ?>_left" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({left: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['left']; ?>" name="<?php echo $prefix; ?>_left" />
|
3460 |
Y <input id="<?php echo $prefix; ?>_top" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({top: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['top']; ?>" name="<?php echo $prefix; ?>_top" />
|
3461 |
+
<p class="description"><?php _e('In addition, you can drag the layer and drop it to the desired position.', WDS()->prefix); ?></p>
|
3462 |
</span>
|
3463 |
<span class="wd-group">
|
3464 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_border_width"><?php _e('Border:', WDS()->prefix); ?></label>
|
3465 |
<input id="<?php echo $prefix; ?>_border_width" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderWidth: jQuery(this).val()})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['border_width']; ?>" name="<?php echo $prefix; ?>_border_width"> px
|
3466 |
<select class="select_icon" id="<?php echo $prefix; ?>_border_style" onchange="jQuery('#<?php echo $prefix; ?>').css({borderStyle: jQuery(this).val()})" style="width: 80px !important;" name="<?php echo $prefix; ?>_border_style">
|
3467 |
<?php
|
3476 |
<p class="description"></p>
|
3477 |
</span>
|
3478 |
<span class="wd-group">
|
3479 |
+
<label class="wd-label"><?php _e('Video Loop:', WDS()->prefix); ?></label>
|
3480 |
<input id="<?php echo $prefix; ?>_layer_video_loop1" type="radio" name="<?php echo $prefix; ?>_layer_video_loop" value="1" <?php echo (($new_layer['layer_video_loop']) ? 'checked="checked"' : ''); ?> />
|
3481 |
+
<label <?php echo (($new_layer['layer_video_loop']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_layer_video_loop1"><?php _e('Yes', WDS()->prefix); ?></label>
|
3482 |
<input id="<?php echo $prefix; ?>_layer_video_loop0" type="radio" name="<?php echo $prefix; ?>_layer_video_loop" value="0" <?php echo (($new_layer['layer_video_loop']) ? '' : 'checked="checked"'); ?> />
|
3483 |
+
<label <?php echo ((!$new_layer['layer_video_loop']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_layer_video_loop0"><?php _e('No', WDS()->prefix); ?></label>
|
3484 |
<p class="description"></p>
|
3485 |
</span>
|
3486 |
<span class="wd-group">
|
3487 |
+
<label class="wd-label"><?php _e('Controls:', WDS()->prefix); ?></label>
|
3488 |
<input id="<?php echo $prefix; ?>_target_attr_layer1" type="radio" onClick="wds_enable_disable_autoplay('visible', '<?php echo $prefix; ?>_autoplay_td', '<?php echo $prefix; ?>_target_attr_layer1')" name="<?php echo $prefix; ?>_controls" value="1" <?php echo (($new_layer['target_attr_layer'] == "1") ? 'checked="checked"' : ''); ?> />
|
3489 |
+
<label <?php echo (($new_layer['target_attr_layer'] == "1") ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_target_attr_layer1"><?php _e('Yes', WDS()->prefix); ?></label>
|
3490 |
<input id="<?php echo $prefix; ?>_target_attr_layer0" type="radio" onClick="wds_enable_disable_autoplay('hidden', '<?php echo $prefix; ?>_autoplay_td', '<?php echo $prefix; ?>_target_attr_layer0')" name="<?php echo $prefix; ?>_controls" value="0" <?php echo (($new_layer['target_attr_layer'] == "1") ? '' : 'checked="checked"'); ?> />
|
3491 |
+
<label <?php echo (($new_layer['target_attr_layer'] == "1") ? '' : 'class="selected_color"'); ?> for="<?php echo $prefix; ?>_target_attr_layer0"><?php _e('No', WDS()->prefix); ?></label>
|
3492 |
<p class="description"></p>
|
3493 |
</span>
|
3494 |
<span class="wd-group <?php echo $prefix; ?>_autoplay_td" <?php echo ($new_layer['target_attr_layer'] == "0" && $new_layer['videoType'] == 'upvideo') ? 'style="visibility:hidden"' : ''; ?>>
|
3495 |
+
<label class="wd-label"><?php _e('Autoplay:', WDS()->prefix); ?></label>
|
3496 |
<input id="<?php echo $prefix; ?>_image_scale1" type="radio" name="<?php echo $prefix; ?>_image_scale" value="on" <?php echo (($new_layer['image_scale'] == "on") ? 'checked="checked"' : ''); ?> />
|
3497 |
+
<label <?php echo (($new_layer['image_scale'] == "on") ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_image_scale1"><?php _e('Yes', WDS()->prefix); ?></label>
|
3498 |
<input id="<?php echo $prefix; ?>_image_scale0" type="radio" name="<?php echo $prefix; ?>_image_scale" value="off" <?php echo (($new_layer['image_scale'] == "on") ? '' : 'checked="checked"'); ?> />
|
3499 |
+
<label <?php echo (($new_layer['image_scale'] == "on") ? '' : 'class="selected_color"'); ?> for="<?php echo $prefix; ?>_image_scale0"><?php _e('No', WDS()->prefix); ?></label>
|
3500 |
<p class="description"></p>
|
3501 |
</span>
|
3502 |
</div>
|
3506 |
<div class="wd-box-section">
|
3507 |
<div class="wd-box-content">
|
3508 |
<span class="wd-group">
|
3509 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_in"><?php _e('Effect In:', WDS()->prefix); ?></label>
|
3510 |
<span style="display: inline-block;">
|
3511 |
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $new_layer['start']; ?>" name="<?php echo $prefix; ?>_start" /> ms
|
3512 |
+
<p class="description"><?php _e('Start', WDS()->prefix); ?></p>
|
3513 |
</span>
|
3514 |
<span style="display: inline-block;">
|
3515 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_in" id="<?php echo $prefix; ?>_layer_effect_in" style="width:150px;" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
3516 |
<?php
|
3517 |
foreach ($layer_effects_in as $key => $layer_effect_in) {
|
3518 |
?>
|
3519 |
+
<option <?php echo (WDS()->is_free && !in_array($key, $free_layer_effects)) ? 'disabled="disabled" title="' . __('This effect is disabled in free version.', WDS()->prefix) . '"' : ''; ?> value="<?php echo $key; ?>" <?php if ($new_layer['layer_effect_in'] == $key) echo 'selected="selected"'; ?>><?php echo $layer_effect_in; ?></option>
|
3520 |
<?php
|
3521 |
}
|
3522 |
?>
|
3523 |
</select>
|
3524 |
+
<p class="description"><?php _e('Effect', WDS()->prefix); ?></p>
|
3525 |
</span>
|
3526 |
<span style="display: inline-block;">
|
3527 |
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $new_layer['duration_eff_in']; ?>" name="<?php echo $prefix; ?>_duration_eff_in" /> ms
|
3528 |
+
<p class="description"><?php _e('Duration', WDS()->prefix); ?></p>
|
3529 |
</span>
|
3530 |
<span style="display: inline-block;">
|
3531 |
<input id="<?php echo $prefix; ?>_infinite_in" type="text" name="<?php echo $prefix; ?>_infinite_in" value="<?php echo $new_layer['infinite_in']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_in'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3532 |
+
<p class="description"><?php _e('Iteration', WDS()->prefix); ?></p>
|
3533 |
</span>
|
3534 |
</span>
|
3535 |
<span class="wd-group">
|
3536 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_out"><?php _e('Effect Out:', WDS()->prefix); ?></label>
|
3537 |
<span style="display: inline-block;">
|
3538 |
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $new_layer['end']; ?>" name="<?php echo $prefix; ?>_end"> ms
|
3539 |
+
<p class="description"><?php _e('Start', WDS()->prefix); ?></p>
|
3540 |
</span>
|
3541 |
<span style="display: inline-block;">
|
3542 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_out" id="<?php echo $prefix; ?>_layer_effect_out" style="width:150px;" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
3543 |
<?php
|
3544 |
foreach ($layer_effects_out as $key => $layer_effect_out) {
|
3545 |
?>
|
3546 |
+
<option <?php echo (WDS()->is_free && !in_array($key, $free_layer_effects)) ? 'disabled="disabled" title="' . __('This effect is disabled in free version.', WDS()->prefix) . '"' : ''; ?> value="<?php echo $key; ?>" <?php if ($new_layer['layer_effect_out'] == $key) echo 'selected="selected"'; ?>><?php echo $layer_effect_out; ?></option>
|
3547 |
<?php
|
3548 |
}
|
3549 |
?>
|
3550 |
</select>
|
3551 |
+
<p class="description"><?php _e('Effect', WDS()->prefix); ?></p>
|
3552 |
</span>
|
3553 |
<span style="display: inline-block;">
|
3554 |
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $new_layer['duration_eff_out']; ?>" name="<?php echo $prefix; ?>_duration_eff_out"> ms
|
3555 |
+
<p class="description"><?php _e('Duration', WDS()->prefix); ?></p>
|
3556 |
</span>
|
3557 |
<span style="display: inline-block;">
|
3558 |
<input id="<?php echo $prefix; ?>_infinite_out" type="text" name="<?php echo $prefix; ?>_infinite_out" value="<?php echo $new_layer['infinite_out']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_out'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3559 |
+
<p class="description"><?php _e('Iteration', WDS()->prefix); ?></p>
|
3560 |
</span>
|
3561 |
</span>
|
3562 |
<span class="wd-group">
|
3563 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_border_radius" title=""><?php _e('Radius:', WDS()->prefix); ?></label>
|
3564 |
<input placeholder="4px" id="<?php echo $prefix; ?>_border_radius" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderRadius: jQuery(this).val()})" value="<?php echo $new_layer['border_radius']; ?>" name="<?php echo $prefix; ?>_border_radius">
|
3565 |
+
<p class="description"><?php _e('Use CSS type values.', WDS()->prefix); ?></p>
|
3566 |
</span>
|
3567 |
<span class="wd-group">
|
3568 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_shadow" title=""><?php _e('Shadow:', WDS()->prefix); ?></label>
|
3569 |
<input placeholder="10px 10px 5px #888888" id="<?php echo $prefix; ?>_shadow" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({boxShadow: jQuery(this).val()})" value="<?php echo $new_layer['shadow']; ?>" name="<?php echo $prefix; ?>_shadow" />
|
3570 |
+
<p class="description"><?php _e('Use CSS type values.', WDS()->prefix); ?></p>
|
3571 |
</span>
|
3572 |
<span class="wd-group">
|
3573 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_add_class" title=""><?php _e('Add class:', WDS()->prefix); ?></label>
|
3574 |
<input id="<?php echo $prefix; ?>_add_class" class="spider_char_input" type="text" value="<?php echo $new_layer['add_class']; ?>" name="<?php echo $prefix; ?>_add_class" />
|
3575 |
+
<p class="description"><?php _e('Use this option to add a unique class to this layer.', WDS()->prefix); ?></p>
|
3576 |
</span>
|
3577 |
</div>
|
3578 |
</div>
|
3698 |
<div class="wd-box-section">
|
3699 |
<div class="wd-box-content">
|
3700 |
<span class="wd-group">
|
3701 |
+
<label class="wd-label"><?php _e('Published:', WDS()->prefix); ?></label>
|
3702 |
<input id="<?php echo $prefix; ?>_published1" type="radio" name="<?php echo $prefix; ?>_published" value="1" <?php echo (($new_layer['published']) ? 'checked="checked"' : ''); ?> />
|
3703 |
+
<label <?php echo (($new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published1"><?php _e('Yes', WDS()->prefix); ?></label>
|
3704 |
<input id="<?php echo $prefix; ?>_published0" type="radio" name="<?php echo $prefix; ?>_published" value="0" <?php echo (($new_layer['published']) ? '' : 'checked="checked"'); ?> />
|
3705 |
+
<label <?php echo (($new_layer['published']) ? '' : 'class="selected_color"'); ?> for="<?php echo $prefix; ?>_published0"><?php _e('No', WDS()->prefix); ?></label>
|
3706 |
<p class="description"></p>
|
3707 |
</span>
|
3708 |
<span class="wd-group">
|
3709 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_text"><?php _e('Text:', WDS()->prefix); ?></label>
|
3710 |
<textarea id="<?php echo $prefix; ?>_text" class="wds_textarea" name="<?php echo $prefix; ?>_text" onkeyup="wds_new_line('<?php echo $prefix; ?>');"><?php echo $new_layer['text']; ?></textarea>
|
3711 |
<p class="description"></p>
|
3712 |
</span>
|
3713 |
<span class="wd-group">
|
3714 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_static_layer"><?php _e('Static layer:', WDS()->prefix); ?></label>
|
3715 |
<input id="<?php echo $prefix; ?>_static_layer" type="checkbox" name="<?php echo $prefix; ?>_static_layer" <?php echo checked(1, $new_layer['static_layer']); ?> value="1" />
|
3716 |
+
<p class="description"><?php _e('The layer will be visible on all slides.', WDS()->prefix); ?></p>
|
3717 |
</span>
|
3718 |
<span class="wd-group">
|
3719 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_image_width" title=""><?php _e('Dimensions:', WDS()->prefix); ?></label>
|
3720 |
<input id="<?php echo $prefix; ?>_image_width" class="spider_int_input" type="text" onchange="wds_hotspot_text_width('<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_width']; ?>" name="<?php echo $prefix; ?>_image_width" /> x
|
3721 |
<input id="<?php echo $prefix; ?>_image_height" class="spider_int_input" type="text" onchange="wds_hotspot_text_width('<?php echo $prefix; ?>')" value="<?php echo $new_layer['image_height']; ?>" name="<?php echo $prefix; ?>_image_height" /> px
|
3722 |
+
<input id="<?php echo $prefix; ?>_image_scale" type="checkbox" onchange="wds_break_word(this, '<?php echo $prefix; ?>')" name="<?php echo $prefix; ?>_image_scale" <?php echo (($new_layer['image_scale']) ? 'checked="checked"' : ''); ?> /><label for="<?php echo $prefix; ?>_image_scale"><?php _e('Break-word', WDS()->prefix); ?></label>
|
3723 |
+
<p class="description"><?php _e('Leave blank to keep the initial width and height. ', WDS()->prefix); ?><?php _e('Break-word may break lines from between any two letters, if their width is larger than dimensions.', WDS()->prefix); ?></p>
|
3724 |
</span>
|
3725 |
<span class="wd-group">
|
3726 |
+
<label class="wd-label" title=""><?php _e('Position:', WDS()->prefix); ?></label>
|
3727 |
X <input id="<?php echo $prefix; ?>_div_left" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>_div').css({left: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['left']; ?>" name="<?php echo $prefix; ?>_left" />
|
3728 |
Y <input id="<?php echo $prefix; ?>_div_top" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>_div').css({top: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['top']; ?>" name="<?php echo $prefix; ?>_top" />
|
3729 |
+
<p class="description"><?php _e('In addition, you can drag the layer and drop it to the desired position.', WDS()->prefix); ?></p>
|
3730 |
</span>
|
3731 |
<span class="wd-group">
|
3732 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_link" title=""><?php _e('Link:', WDS()->prefix); ?></label>
|
3733 |
<input id="<?php echo $prefix; ?>_link" type="text" size="39" class="wds_link" value="<?php echo $new_layer['link']; ?>" name="<?php echo $prefix; ?>_link" />
|
3734 |
+
<input id="<?php echo $prefix; ?>_target_attr_layer" type="checkbox" name="<?php echo $prefix; ?>_target_attr_layer" <?php echo (($new_layer['target_attr_layer']) ? 'checked="checked"' : ''); ?> value="1" /><label for="<?php echo $prefix; ?>_target_attr_layer"><?php _e('Open in a new window', WDS()->prefix); ?></label>
|
3735 |
+
<p class="description"><?php _e('Use http:// and https:// for external links.', WDS()->prefix); ?></p>
|
3736 |
</span>
|
3737 |
<span class="wd-group">
|
3738 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_htextposition"><?php _e('Hotspot text position:', WDS()->prefix); ?></label>
|
3739 |
<select class="select_icon select_icon_320" id="<?php echo $prefix; ?>_htextposition" name="<?php echo $prefix; ?>_htextposition" onchange="jQuery('#<?php echo $prefix; ?>_div').attr('data-text-position', jQuery(this).val()); wds_hotspot_position('<?php echo $prefix; ?>')">
|
3740 |
<?php
|
3741 |
foreach ($hotp_text_positions as $key => $hotp_text_position) {
|
3748 |
<p class="description"></p>
|
3749 |
</span>
|
3750 |
<span class="wd-group">
|
3751 |
+
<label class="wd-label" title=""><?php _e('Show Hotspot text:', WDS()->prefix); ?></label>
|
3752 |
+
<input type="radio" name="<?php echo $prefix; ?>_hotspot_text_display" id="<?php echo $prefix; ?>_hotspot_text_display_1" value="hover" <?php if ($new_layer['hotspot_text_display'] == 'hover') echo 'checked="checked"'; ?> /><label <?php echo $new_layer['hotspot_text_display'] == 'hover' ? 'class="selected_color"' : ''; ?> for="<?php echo $prefix; ?>_hotspot_text_display_1"><?php _e('On hover', WDS()->prefix); ?></label>
|
3753 |
+
<input type="radio" name="<?php echo $prefix; ?>_hotspot_text_display" id="<?php echo $prefix; ?>_hotspot_text_display_0" value="click" <?php if ($new_layer['hotspot_text_display'] == 'click' ) echo 'checked="checked"'; ?> /><label <?php echo $new_layer['hotspot_text_display'] == 'click' ? 'class="selected_color"' : ''; ?> for="<?php echo $prefix; ?>_hotspot_text_display_0"><?php _e('On click', WDS()->prefix); ?></label>
|
3754 |
+
<p class="description"><?php _e('Select between the option of always displaying the navigation buttons or only when hovered.', WDS()->prefix); ?></p>
|
3755 |
</span>
|
3756 |
<span class="wd-group">
|
3757 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_link"><?php _e('Hotspot Width:', WDS()->prefix); ?></label>
|
3758 |
<input id="<?php echo $prefix; ?>_hotp_width" class="spider_int_input" type="text" onchange="wds_hotspot_width('<?php echo $prefix; ?>')" value="<?php echo $new_layer['hotp_width']; ?>" name="<?php echo $prefix; ?>_hotp_width" /> px
|
3759 |
</span>
|
3760 |
<span class="wd-group">
|
3761 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_hotp_fbgcolor"><?php _e('Hotspot Background Color:', WDS()->prefix); ?></label>
|
3762 |
<input id="<?php echo $prefix; ?>_hotp_fbgcolor" class="color" type="text" onchange="jQuery('#<?php echo $prefix; ?>_round').css({backgroundColor: '#' + jQuery(this).val()})" value="<?php echo $new_layer['hotp_fbgcolor']; ?>" name="<?php echo $prefix; ?>_hotp_fbgcolor" />
|
3763 |
<p class="description"></p>
|
3764 |
</span>
|
3765 |
<span class="wd-group">
|
3766 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_hotp_border_width"><?php _e('Hotspot Border:', WDS()->prefix); ?></label>
|
3767 |
<input id="<?php echo $prefix; ?>_round_hotp_border_width" class="spider_int_input" type="text" onchange="wds_hotpborder_width('<?php echo $prefix; ?>')" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['hotp_border_width']; ?>" name="<?php echo $prefix; ?>_hotp_border_width"> px
|
3768 |
<select class="select_icon select_icon_320" id="<?php echo $prefix; ?>_round_hotp_border_style" onchange="wds_hotpborder_width('<?php echo $prefix; ?>')" style="width: 80px;" name="<?php echo $prefix; ?>_hotp_border_style">
|
3769 |
<?php
|
3778 |
<p class="description"></p>
|
3779 |
</span>
|
3780 |
<span class="wd-group">
|
3781 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_hotp_border_radius" title=""><?php _e('Hotspot Radius:', WDS()->prefix); ?></label>
|
3782 |
<input placeholder="4px" id="<?php echo $prefix; ?>_hotp_border_radius" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>_round').css({borderRadius: jQuery(this).val()});jQuery('#<?php echo $prefix; ?>_round_effect').css({borderRadius: jQuery(this).val()})" value="<?php echo $new_layer['hotp_border_radius']; ?>" name="<?php echo $prefix; ?>_hotp_border_radius">
|
3783 |
+
<p class="description"><?php _e('Use CSS type values.', WDS()->prefix); ?></p>
|
3784 |
</span>
|
3785 |
<span class="wd-group">
|
3786 |
+
<label class="wd-label"><?php _e('Hotspot Animation:', WDS()->prefix); ?></label>
|
3787 |
<input id="<?php echo $prefix; ?>_hotspot_animation1" type="radio" name="<?php echo $prefix; ?>_hotspot_animation" value="1" <?php echo (($new_layer['hotspot_animation']) ? 'checked="checked"' : ''); ?> />
|
3788 |
+
<label <?php echo (($new_layer['hotspot_animation']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_hotspot_animation1"><?php _e('Yes', WDS()->prefix); ?></label>
|
3789 |
<input id="<?php echo $prefix; ?>_hotspot_animation0" type="radio" name="<?php echo $prefix; ?>_hotspot_animation" value="0" <?php echo (($new_layer['hotspot_animation']) ? '' : 'checked="checked"'); ?> />
|
3790 |
+
<label <?php echo (($new_layer['hotspot_animation']) ? '' : 'class="selected_color"'); ?> for="<?php echo $prefix; ?>_hotspot_animation0"><?php _e('No', WDS()->prefix); ?></label>
|
3791 |
<p class="description"></p>
|
3792 |
</span>
|
3793 |
<span class="wd-group">
|
3794 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_layer_callback_list"><?php _e('Add click action:', WDS()->prefix); ?></label>
|
3795 |
<select class="select_icon select_icon_320" style="width: 120px;" id="<?php echo $prefix; ?>_layer_callback_list" name="<?php echo $prefix; ?>_layer_callback_list" onchange="wds_show_slides_name('<?php echo $prefix; ?>', jQuery(this).val())">
|
3796 |
<?php
|
3797 |
foreach ($layer_callbacks as $key => $layer_callback_list) {
|
3804 |
<p class="description"></p>
|
3805 |
</span>
|
3806 |
<span class="wd-group">
|
3807 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_link_to_slide" class="link_to_slide" style="<?php if ($new_layer['layer_callback_list'] != 'SlideLink') echo 'display:none;'; ?>"><?php _e('Slides Name:', WDS()->prefix); ?></label>
|
3808 |
<select class="select_icon select_icon_320" style="width: 120px; <?php if ($new_layer['layer_callback_list'] != 'SlideLink') echo 'display:none;'; ?>" id="<?php echo $prefix; ?>_link_to_slide" name="<?php echo $prefix; ?>_link_to_slide">
|
3809 |
<?php
|
3810 |
foreach ($slides_name as $key => $slide_name) {
|
3823 |
<div class="wd-box-section">
|
3824 |
<div class="wd-box-content">
|
3825 |
<span class="wd-group">
|
3826 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_in"><?php _e('Effect In:', WDS()->prefix); ?></label>
|
3827 |
<span style="display: inline-block;">
|
3828 |
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $new_layer['start']; ?>" name="<?php echo $prefix; ?>_start" /> ms
|
3829 |
+
<p class="description"><?php _e('Start', WDS()->prefix); ?></p>
|
3830 |
</span>
|
3831 |
<span style="display: inline-block;">
|
3832 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_in" id="<?php echo $prefix; ?>_layer_effect_in" style="width:150px;" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
3833 |
<?php
|
3834 |
foreach ($layer_effects_in as $key => $layer_effect_in) {
|
3835 |
?>
|
3836 |
+
<option <?php echo (WDS()->is_free && !in_array($key, $free_layer_effects)) ? 'disabled="disabled" title="' . __('This effect is disabled in free version.', WDS()->prefix) . '"' : ''; ?> value="<?php echo $key; ?>" <?php if ($new_layer['layer_effect_in'] == $key) echo 'selected="selected"'; ?>><?php echo $layer_effect_in; ?></option>
|
3837 |
<?php
|
3838 |
}
|
3839 |
?>
|
3840 |
</select>
|
3841 |
+
<p class="description"><?php _e('Effect', WDS()->prefix); ?></p>
|
3842 |
</span>
|
3843 |
<span style="display: inline-block;">
|
3844 |
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $new_layer['duration_eff_in']; ?>" name="<?php echo $prefix; ?>_duration_eff_in" />ms
|
3845 |
+
<p class="description"><?php _e('Duration', WDS()->prefix); ?></p>
|
3846 |
</span>
|
3847 |
<span style="display: inline-block;">
|
3848 |
<input id="<?php echo $prefix; ?>_infinite_in" type="text" name="<?php echo $prefix; ?>_infinite_in" value="<?php echo $new_layer['infinite_in']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_in'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3849 |
+
<p class="description"><?php _e('Iteration', WDS()->prefix); ?></p>
|
3850 |
</span>
|
3851 |
</span>
|
3852 |
<span class="wd-group">
|
3853 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_out"><?php _e('Effect Out:', WDS()->prefix); ?></label>
|
3854 |
<span style="display: inline-block;">
|
3855 |
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $new_layer['end']; ?>" name="<?php echo $prefix; ?>_end"> ms
|
3856 |
+
<p class="description"><?php _e('Start', WDS()->prefix); ?></p>
|
3857 |
</span>
|
3858 |
<span style="display: inline-block;">
|
3859 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_out" id="<?php echo $prefix; ?>_layer_effect_out" style="width:150px;" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
3860 |
<?php
|
3861 |
foreach ($layer_effects_out as $key => $layer_effect_out) {
|
3862 |
?>
|
3863 |
+
<option <?php echo (WDS()->is_free && !in_array($key, $free_layer_effects)) ? 'disabled="disabled" title="' . __('This effect is disabled in free version.', WDS()->prefix) . '"' : ''; ?> value="<?php echo $key; ?>" <?php if ($new_layer['layer_effect_out'] == $key) echo 'selected="selected"'; ?>><?php echo $layer_effect_out; ?></option>
|
3864 |
<?php
|
3865 |
}
|
3866 |
?>
|
3867 |
</select>
|
3868 |
+
<p class="description"><?php _e('Effect', WDS()->prefix); ?></p>
|
3869 |
</span>
|
3870 |
<span style="display: inline-block;">
|
3871 |
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $new_layer['duration_eff_out']; ?>" name="<?php echo $prefix; ?>_duration_eff_out"> ms
|
3872 |
+
<p class="description"><?php _e('Duration', WDS()->prefix); ?></p>
|
3873 |
</span>
|
3874 |
<span style="display: inline-block;">
|
3875 |
<input id="<?php echo $prefix; ?>_infinite_out" type="text" name="<?php echo $prefix; ?>_infinite_out" value="<?php echo $new_layer['infinite_out']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_out'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
3876 |
+
<p class="description"><?php _e('Iteration', WDS()->prefix); ?></p>
|
3877 |
</span>
|
3878 |
</span>
|
3879 |
<span class="wd-group">
|
3880 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_padding" title=""><?php _e('Padding:', WDS()->prefix); ?></label>
|
3881 |
<input placeholder="5px 10px 10px" id="<?php echo $prefix; ?>_padding" class="spider_char_input" type="text" onchange="document.getElementById('<?php echo $prefix; ?>').style.padding=jQuery(this).val();" value="<?php echo $new_layer['padding']; ?>" name="<?php echo $prefix; ?>_padding">
|
3882 |
+
<p class="description"><?php _e('Use CSS type values.', WDS()->prefix); ?></p>
|
3883 |
</span>
|
3884 |
<span class="wd-group">
|
3885 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_size"><?php _e('Size:', WDS()->prefix); ?> </label>
|
3886 |
<span style="display: inline-block">
|
3887 |
<input id="<?php echo $prefix; ?>_size" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({fontSize: jQuery(this).val() + 'px', lineHeight: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['size']; ?>" name="<?php echo $prefix; ?>_size" /> px
|
3888 |
</span>
|
3889 |
+
<p class="description"><?php _e('Sets the font size of the text.', WDS()->prefix); ?></p>
|
3890 |
</span>
|
3891 |
<span class="wd-group">
|
3892 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_size"><?php _e('Minimum font size:', WDS()->prefix); ?> </label>
|
3893 |
<span style="display: inline-block;">
|
3894 |
<input id="<?php echo $prefix; ?>_min_size" class="spider_int_input" type="text" onchange="wds_min_size_validation('<?php echo $prefix; ?>')" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['min_size']; ?>" name="<?php echo $prefix; ?>_min_size" /> px
|
3895 |
</span>
|
3896 |
+
<p class="description"><?php _e('Text layer font size shrinks on small screens. Choose the minimum font size, which the text should have.', WDS()->prefix); ?></p>
|
3897 |
</span>
|
3898 |
|
3899 |
<span class="wd-group">
|
3900 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_color"><?php _e('Color:', WDS()->prefix); ?></label>
|
3901 |
<input id="<?php echo $prefix; ?>_color" class="color" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({color: '#' + jQuery(this).val()})" value="<?php echo $new_layer['color']; ?>" name="<?php echo $prefix; ?>_color" />
|
3902 |
<p class="description"></p>
|
3903 |
</span>
|
3904 |
<span class="wd-group">
|
3905 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_ffamily"><?php _e('Font family:', WDS()->prefix); ?></label>
|
3906 |
<select class="select_icon select_icon_320" style="width: 180px;" id="<?php echo $prefix; ?>_ffamily" onchange="wds_change_fonts('<?php echo $prefix; ?>', 1)" name="<?php echo $prefix; ?>_ffamily">
|
3907 |
<?php
|
3908 |
$fonts = (isset($new_layer['google_fonts']) && $new_layer['google_fonts']) ? $google_fonts : $font_families;
|
3916 |
<input id="<?php echo $prefix; ?>_google_fonts1" type="radio" name="<?php echo $prefix; ?>_google_fonts" value="1" <?php echo (($new_layer['google_fonts']) ? 'checked="checked"' : ''); ?> onchange="wds_change_fonts('<?php echo $prefix; ?>')" />
|
3917 |
<label for="<?php echo $prefix; ?>_google_fonts1">Google fonts</label>
|
3918 |
<input id="<?php echo $prefix; ?>_google_fonts0" type="radio" name="<?php echo $prefix; ?>_google_fonts" value="0" <?php echo (($new_layer['google_fonts']) ? '' : 'checked="checked"'); ?> onchange="wds_change_fonts('<?php echo $prefix; ?>')" />
|
3919 |
+
<label for="<?php echo $prefix; ?>_google_fonts0"><?php _e('Default', WDS()->prefix); ?></label>
|
3920 |
<p class="description"></p>
|
3921 |
</span>
|
3922 |
<span class="wd-group">
|
3923 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_fweight"><?php _e('Font weight:', WDS()->prefix); ?></label>
|
3924 |
<select class="select_icon select_icon_320" id="<?php echo $prefix; ?>_fweight" onchange="jQuery('#<?php echo $prefix; ?>').css({fontWeight: jQuery(this).val()})" name="<?php echo $prefix; ?>_fweight">
|
3925 |
<?php
|
3926 |
foreach ($font_weights as $key => $fweight) {
|
3933 |
<p class="description"></p>
|
3934 |
</span>
|
3935 |
<span class="wd-group">
|
3936 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_fbgcolor"><?php _e('Background Color:', WDS()->prefix); ?></label>
|
3937 |
<input id="<?php echo $prefix; ?>_fbgcolor" class="color" type="text" onchange="wde_change_text_bg_color('<?php echo $prefix; ?>')" value="<?php echo $new_layer['fbgcolor']; ?>" name="<?php echo $prefix; ?>_fbgcolor" />
|
3938 |
<p class="description"></p>
|
3939 |
</span>
|
3940 |
<span class="wd-group">
|
3941 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_transparent" title=""><?php _e('Transparency:', WDS()->prefix); ?></label>
|
3942 |
<input id="<?php echo $prefix; ?>_transparent" class="spider_int_input" type="text" onchange="wde_change_text_bg_color('<?php echo $prefix; ?>')" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['transparent']; ?>" name="<?php echo $prefix; ?>_transparent"> %
|
3943 |
+
<p class="description"><?php _e('Value must be between 0 and 100.', WDS()->prefix); ?></p>
|
3944 |
</span>
|
3945 |
<span class="wd-group">
|
3946 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_border_width"><?php _e('Border:', WDS()->prefix); ?></label>
|
3947 |
<input id="<?php echo $prefix; ?>_border_width" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderWidth: jQuery(this).val()})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['border_width']; ?>" name="<?php echo $prefix; ?>_border_width"> px
|
3948 |
<select class="select_icon select_icon_320" id="<?php echo $prefix; ?>_border_style" onchange="jQuery('#<?php echo $prefix; ?>').css({borderStyle: jQuery(this).val()})" style="width: 80px;" name="<?php echo $prefix; ?>_border_style">
|
3949 |
<?php
|
3958 |
<p class="description"></p>
|
3959 |
</span>
|
3960 |
<span class="wd-group">
|
3961 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_border_radius"><?php _e('Radius:', WDS()->prefix); ?></label>
|
3962 |
<input placeholder="4px" id="<?php echo $prefix; ?>_border_radius" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({borderRadius: jQuery(this).val()})" value="<?php echo $new_layer['border_radius']; ?>" name="<?php echo $prefix; ?>_border_radius">
|
3963 |
+
<p class="description"><?php _e('Use CSS type values.', WDS()->prefix); ?></p>
|
3964 |
</span>
|
3965 |
<span class="wd-group">
|
3966 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_shadow" title=""><?php _e('Shadow:', WDS()->prefix); ?></label>
|
3967 |
<input placeholder="10px 10px 5px #888888" id="<?php echo $prefix; ?>_shadow" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({boxShadow: jQuery(this).val()})" value="<?php echo $new_layer['shadow']; ?>" name="<?php echo $prefix; ?>_shadow" />
|
3968 |
+
<p class="description"><?php _e('Use CSS type values.', WDS()->prefix); ?></p>
|
3969 |
</span>
|
3970 |
<span class="wd-group">
|
3971 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_add_class"><?php _e('Add class:', WDS()->prefix); ?></label>
|
3972 |
<input id="<?php echo $prefix; ?>_add_class" class="spider_char_input" type="text" value="<?php echo $new_layer['add_class']; ?>" name="<?php echo $prefix; ?>_add_class" />
|
3973 |
+
<p class="description"><?php _e('Use this option to add a unique class to this layer.', WDS()->prefix); ?></p>
|
3974 |
</span>
|
3975 |
<span class="wd-group">
|
3976 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_text_alignment"><?php _e('Text alignment:', WDS()->prefix); ?></label>
|
3977 |
<select class="select_icon select_icon_320" style="width:70px" id="<?php echo $prefix; ?>_text_alignment" onchange="jQuery('#<?php echo $prefix; ?>').css({textAlign: jQuery(this).val()})" name="<?php echo $prefix; ?>_text_alignment">
|
3978 |
<?php
|
3979 |
foreach ($text_alignments as $key => $text_alignment) {
|
4056 |
<div class="wd-box-section">
|
4057 |
<div class="wd-box-content">
|
4058 |
<span class="wd-group">
|
4059 |
+
<label class="wd-label"><?php _e('Published:', WDS()->prefix);?></label>
|
4060 |
<input id="<?php echo $prefix; ?>_published1" type="radio" name="<?php echo $prefix; ?>_published" value="1" <?php echo (($new_layer['published']) ? 'checked="checked"' : ''); ?> />
|
4061 |
+
<label <?php echo (($new_layer['published']) ? 'class="selected_color"' : ''); ?> for="<?php echo $prefix; ?>_published1"><?php _e('Yes', WDS()->prefix);?></label>
|
4062 |
<input id="<?php echo $prefix; ?>_published0" type="radio" name="<?php echo $prefix; ?>_published" value="0" <?php echo (($new_layer['published']) ? '' : 'checked="checked"'); ?>/>
|
4063 |
+
<label <?php echo (($new_layer['published']) ? '' : 'class="selected_color"'); ?> for="<?php echo $prefix; ?>_published0"><?php _e('No', WDS()->prefix);?></label>
|
4064 |
<p class="description"></p>
|
4065 |
</span>
|
4066 |
<span class="wd-group">
|
4067 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_static_layer"><?php _e('Static layer:', WDS()->prefix);?> </label>
|
4068 |
<input id="<?php echo $prefix; ?>_static_layer" type="checkbox" name="<?php echo $prefix; ?>_static_layer" <?php echo checked(1, $new_layer['static_layer']); ?> value="1" />
|
4069 |
+
<p class="description"><?php _e('The layer will be visible on all slides.', WDS()->prefix);?></p>
|
4070 |
</span>
|
4071 |
<span class="wd-group">
|
4072 |
+
<label class="wd-label" title=""><?php _e('Position:', WDS()->prefix);?></label>
|
4073 |
X <input id="<?php echo $prefix; ?>_left" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({left: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['left']; ?>" name="<?php echo $prefix; ?>_left" />
|
4074 |
Y <input id="<?php echo $prefix; ?>_top" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({top: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['top']; ?>" name="<?php echo $prefix; ?>_top" />
|
4075 |
+
<p class="description"><?php _e('In addition, you can drag the layer and drop it to the desired position.', WDS()->prefix);?></p>
|
4076 |
</span>
|
4077 |
<span class="wd-group">
|
4078 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_social_button"><?php _e('Social button:', WDS()->prefix);?></label>
|
4079 |
<select class="select_icon select_icon_320" id="<?php echo $prefix; ?>_social_button" onchange="jQuery('#<?php echo $prefix; ?>').attr('class', 'wds_draggable_<?php echo $id; ?> wds_draggable fa fa-' + jQuery(this).val())" name="<?php echo $prefix; ?>_social_button" style="width:150px;">
|
4080 |
<?php
|
4081 |
foreach ($social_buttons as $key => $social_button) {
|
4088 |
<p class="description"></p>
|
4089 |
</span>
|
4090 |
<span class="wd-group">
|
4091 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_size"><?php _e('Size:', WDS()->prefix);?></label>
|
4092 |
<input id="<?php echo $prefix; ?>_size" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({fontSize: jQuery(this).val() + 'px', lineHeight: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['size']; ?>" name="<?php echo $prefix; ?>_size" /> px
|
4093 |
<p class="description"></p>
|
4094 |
</span>
|
4095 |
<span class="wd-group">
|
4096 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_transparent" title=""><?php _e('Transparency:', WDS()->prefix);?></label>
|
4097 |
<input id="<?php echo $prefix; ?>_transparent" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({opacity: (100 - jQuery(this).val()) / 100, filter: 'Alpha(opacity=' + 100 - jQuery(this).val() + ')'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $new_layer['transparent']; ?>" name="<?php echo $prefix; ?>_transparent" /> %
|
4098 |
+
<p class="description"><?php _e('Value must be between 0 and 100.', WDS()->prefix);?></p>
|
4099 |
</span>
|
4100 |
</div>
|
4101 |
</div>
|
4104 |
<div class="wd-box-section">
|
4105 |
<div class="wd-box-content">
|
4106 |
<span class="wd-group">
|
4107 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_in"><?php _e('Effect In:', WDS()->prefix);?></label>
|
4108 |
<span style="display: inline-block;">
|
4109 |
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $new_layer['start']; ?>" name="<?php echo $prefix; ?>_start" /> ms
|
4110 |
+
<p class="description"><?php _e('Start', WDS()->prefix);?></p>
|
4111 |
</span>
|
4112 |
<span style="display: inline-block;">
|
4113 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_in" id="<?php echo $prefix; ?>_layer_effect_in" style="width:150px;" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
4114 |
<?php
|
4115 |
foreach ($layer_effects_in as $key => $layer_effect_in) {
|
4116 |
?>
|
4117 |
+
<option <?php echo (WDS()->is_free && !in_array($key, $free_layer_effects)) ? 'disabled="disabled" title="' . __('This effect is disabled in free version.', WDS()->prefix) . '"' : ''; ?> value="<?php echo $key; ?>" <?php if ($new_layer['layer_effect_in'] == $key) echo 'selected="selected"'; ?>><?php echo $layer_effect_in; ?></option>
|
4118 |
<?php
|
4119 |
}
|
4120 |
?>
|
4121 |
</select>
|
4122 |
+
<p class="description"><?php _e('Effect', WDS()->prefix);?></p>
|
4123 |
</span>
|
4124 |
<span style="display: inline-block;">
|
4125 |
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $new_layer['duration_eff_in']; ?>" name="<?php echo $prefix; ?>_duration_eff_in" /> ms
|
4126 |
+
<p class="description"><?php _e('Duration', WDS()->prefix);?></p>
|
4127 |
</span>
|
4128 |
<span style="display: inline-block;">
|
4129 |
<input id="<?php echo $prefix; ?>_infinite_in" type="text" name="<?php echo $prefix; ?>_infinite_in" value="<?php echo $new_layer['infinite_in']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_in'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_in('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
4130 |
+
<p class="description"><?php _e('Iteration', WDS()->prefix);?></p>
|
4131 |
</span>
|
4132 |
</span>
|
4133 |
<span class="wd-group">
|
4134 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_layer_effect_out"><?php _e('Effect Out:', WDS()->prefix);?></label>
|
4135 |
<span style="display: inline-block;">
|
4136 |
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $new_layer['end']; ?>" name="<?php echo $prefix; ?>_end"> ms
|
4137 |
+
<p class="description"><?php _e('Start', WDS()->prefix);?></p>
|
4138 |
</span>
|
4139 |
<span style="display: inline-block;">
|
4140 |
<select class="select_icon select_icon_320" name="<?php echo $prefix; ?>_layer_effect_out" id="<?php echo $prefix; ?>_layer_effect_out" style="width:150px;" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());">
|
4141 |
<?php
|
4142 |
foreach ($layer_effects_out as $key => $layer_effect_out) {
|
4143 |
?>
|
4144 |
+
<option <?php echo (WDS()->is_free && !in_array($key, $free_layer_effects)) ? 'disabled="disabled" title="' . __('This effect is disabled in free version.', WDS()->prefix) . '"' : ''; ?> value="<?php echo $key; ?>" <?php if ($new_layer['layer_effect_out'] == $key) echo 'selected="selected"'; ?>><?php echo $layer_effect_out; ?></option>
|
4145 |
<?php
|
4146 |
}
|
4147 |
?>
|
4148 |
</select>
|
4149 |
+
<p class="description"><?php _e('Effect', WDS()->prefix);?></p>
|
4150 |
</span>
|
4151 |
<span style="display: inline-block;">
|
4152 |
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $new_layer['duration_eff_out']; ?>" name="<?php echo $prefix; ?>_duration_eff_out">ms
|
4153 |
+
<p class="description"><?php _e('Duration', WDS()->prefix);?></p>
|
4154 |
</span>
|
4155 |
<span style="display: inline-block;">
|
4156 |
<input id="<?php echo $prefix; ?>_infinite_out" type="text" name="<?php echo $prefix; ?>_infinite_out" value="<?php echo $new_layer['infinite_out']; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($new_layer['layer_effect_out'] == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_out('<?php echo $id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery(this).val());" />
|
4157 |
+
<p class="description"><?php _e('Iteration', WDS()->prefix);?></p>
|
4158 |
</span>
|
4159 |
</span>
|
4160 |
<span class="wd-group">
|
4161 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_color"><?php _e('Color:', WDS()->prefix);?></label>
|
4162 |
<input id="<?php echo $prefix; ?>_color" class="color" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({color: '#' + jQuery(this).val()})" value="<?php echo $new_layer['color']; ?>" name="<?php echo $prefix; ?>_color" />
|
4163 |
<p class="description"></p>
|
4164 |
</span>
|
4165 |
<span class="wd-group">
|
4166 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_hover_color"><?php _e('Hover Color:', WDS()->prefix);?></label>
|
4167 |
<input id="<?php echo $prefix; ?>_hover_color" class="color" type="text" value="<?php echo $new_layer['hover_color']; ?>" name="<?php echo $prefix; ?>_hover_color" />
|
4168 |
<p class="description"></p>
|
4169 |
</span>
|
4170 |
<span class="wd-group">
|
4171 |
+
<label class="wd-label" for="<?php echo $prefix; ?>_add_class" title=""><?php _e('Add class:', WDS()->prefix);?></label>
|
4172 |
<input id="<?php echo $prefix; ?>_add_class" class="spider_char_input" type="text" value="<?php echo $new_layer['add_class']; ?>" name="<?php echo $prefix; ?>_add_class" />
|
4173 |
+
<p class="description"><?php _e('Use this option to add a unique class to this layer.', WDS()->prefix);?></p>
|
4174 |
</span>
|
4175 |
</div>
|
4176 |
</div>
|
4182 |
<?php
|
4183 |
return ob_get_clean();
|
4184 |
}
|
4185 |
+
}
|
admin/views/WDSViewGoptions_wds.php
CHANGED
@@ -9,107 +9,107 @@ class WDSViewGoptions_wds {
|
|
9 |
|
10 |
public function display($sliders) {
|
11 |
$default_layer_fweights = array(
|
12 |
-
'lighter' => __('Lighter',
|
13 |
-
'normal' => __('Normal',
|
14 |
-
'bold' => __('Bold',
|
15 |
);
|
16 |
$default_layer_effects_in = array(
|
17 |
-
'none' => __('None',
|
18 |
-
'bounce' => __('Bounce',
|
19 |
-
'flash' => __('Flash',
|
20 |
-
'pulse' => __('Pulse',
|
21 |
-
'rubberBand' => __('RubberBand',
|
22 |
-
'shake' => __('Shake',
|
23 |
-
'swing' => __('Swing',
|
24 |
-
'tada' => __('Tada',
|
25 |
-
'wobble' => __('Wobble',
|
26 |
-
'hinge' => __('Hinge',
|
27 |
-
'lightSpeedIn' => __('LightSpeedIn',
|
28 |
-
'rollIn' => __('RollIn',
|
29 |
-
'bounceIn' => __('BounceIn',
|
30 |
-
'bounceInDown' => __('BounceInDown',
|
31 |
-
'bounceInLeft' => __('BounceInLeft',
|
32 |
-
'bounceInRight' => __('BounceInRight',
|
33 |
-
'bounceInUp' => __('BounceInUp',
|
34 |
-
'fadeIn' => __('FadeIn',
|
35 |
-
'fadeInDown' => __('FadeInDown',
|
36 |
-
'fadeInDownBig' => __('FadeInDownBig',
|
37 |
-
'fadeInLeft' => __('FadeInLeft',
|
38 |
-
'fadeInLeftBig' => __('FadeInLeftBig',
|
39 |
-
'fadeInRight' => __('FadeInRight',
|
40 |
-
'fadeInRightBig' => __('FadeInRightBig',
|
41 |
-
'fadeInUp' => __('FadeInUp',
|
42 |
-
'fadeInUpBig' => __('FadeInUpBig',
|
43 |
-
'flip' => __('Flip',
|
44 |
-
'flipInX' => __('FlipInX',
|
45 |
-
'flipInY' => __('FlipInY',
|
46 |
-
'rotateIn' => __('RotateIn',
|
47 |
-
'rotateInDownLeft' => __('RotateInDownLeft',
|
48 |
-
'rotateInDownRight' => __('RotateInDownRight',
|
49 |
-
'rotateInUpLeft' => __('RotateInUpLeft',
|
50 |
-
'rotateInUpRight' => __('RotateInUpRight',
|
51 |
-
'zoomIn' => __('ZoomIn',
|
52 |
-
'zoomInDown' => __('ZoomInDown',
|
53 |
-
'zoomInLeft' => __('ZoomInLeft',
|
54 |
-
'zoomInRight' => __('ZoomInRight',
|
55 |
-
'zoomInUp' => __('ZoomInUp',
|
56 |
);
|
57 |
$default_layer_effects_out = array(
|
58 |
-
'none' => __('None',
|
59 |
-
'bounce' => __('Bounce',
|
60 |
-
'flash' => __('Flash',
|
61 |
-
'pulse' => __('Pulse',
|
62 |
-
'rubberBand' => __('RubberBand',
|
63 |
-
'shake' => __('Shake',
|
64 |
-
'swing' => __('Swing',
|
65 |
-
'tada' => __('Tada',
|
66 |
-
'wobble' => __('Wobble',
|
67 |
-
'hinge' => __('Hinge',
|
68 |
-
'lightSpeedOut' => __('LightSpeedOut',
|
69 |
-
'rollOut' => __('RollOut',
|
70 |
-
'bounceOut' => __('BounceOut',
|
71 |
-
'bounceOutDown' => __('BounceOutDown',
|
72 |
-
'bounceOutLeft' => __('BounceOutLeft',
|
73 |
-
'bounceOutRight' => __('BounceOutRight',
|
74 |
-
'bounceOutUp' => __('BounceOutUp',
|
75 |
-
'fadeOut' => __('FadeOut',
|
76 |
-
'fadeOutDown' => __('FadeOutDown',
|
77 |
-
'fadeOutDownBig' => __('FadeOutDownBig',
|
78 |
-
'fadeOutLeft' => __('FadeOutLeft',
|
79 |
-
'fadeOutLeftBig' => __('FadeOutLeftBig',
|
80 |
-
'fadeOutRight' => __('FadeOutRight',
|
81 |
-
'fadeOutRightBig' => __('FadeOutRightBig',
|
82 |
-
'fadeOutUp' => __('FadeOutUp',
|
83 |
-
'fadeOutUpBig' => __('FadeOutUpBig',
|
84 |
-
'flip' => __('Flip',
|
85 |
-
'flipOutX' => __('FlipOutX',
|
86 |
-
'flipOutY' => __('FlipOutY',
|
87 |
-
'rotateOut' => __('RubberBand',
|
88 |
-
'rotateOutDownLeft' => __('RotateOutDownLeft',
|
89 |
-
'rotateOutDownRight' => __('RotateOutDownRight',
|
90 |
-
'rotateOutUpLeft' => __('RotateOutUpLeft',
|
91 |
-
'rotateOutUpRight' => __('RotateOutUpRight',
|
92 |
-
'zoomOut' => __('ZoomOut',
|
93 |
-
'zoomOutDown' => __('ZoomOutDown',
|
94 |
-
'zoomOutLeft' => __('ZoomOutLeft',
|
95 |
-
'zoomOutRight' => __('ZoomOutRight',
|
96 |
-
'zoomOutUp' => __('ZoomOutUp',
|
97 |
);
|
98 |
$font_families = WDW_S_Library::get_font_families();
|
99 |
$google_fonts = WDW_S_Library::get_google_fonts();
|
100 |
$loading_gifs = array(
|
101 |
-
0 => __('Loading default',
|
102 |
-
1 => __('Loading1',
|
103 |
-
2 => __('Loading2',
|
104 |
-
3 => __('Loading3',
|
105 |
-
4 => __('Loading4',
|
106 |
-
5 => __('Loading5',
|
107 |
);
|
108 |
|
109 |
$wds_global_options = get_option("wds_global_options", 0);
|
110 |
$global_options = json_decode($wds_global_options);
|
111 |
if ( !$wds_global_options ) {
|
112 |
-
$global_options = (object)
|
113 |
$global_options->loading_gif = get_option("wds_loading_gif", 0);
|
114 |
$global_options->register_scripts = get_option("wds_register_scripts", 0);
|
115 |
}
|
@@ -121,39 +121,39 @@ class WDSViewGoptions_wds {
|
|
121 |
<?php wp_nonce_field('nonce_wd', 'nonce_wd'); ?>
|
122 |
<div class="wds-options-page-banner">
|
123 |
<div class="wds-options-logo"></div>
|
124 |
-
<div class="wds-options-logo-title"><?php _e('Options',
|
125 |
<div class="wds-page-actions">
|
126 |
-
<button class="button button-primary" onclick="spider_set_input_value('task', 'save');"><?php _e('Save',
|
127 |
</div>
|
128 |
</div>
|
129 |
<div class="wd-table">
|
130 |
<div class="wd-table-col wd-table-col-50 wd-table-col-left">
|
131 |
<div class="wd-box-section">
|
132 |
<div class="wd-box-title">
|
133 |
-
<strong><?php _e('Global Options',
|
134 |
</div>
|
135 |
<div class="wd-box-content">
|
136 |
<div class="wd-group">
|
137 |
-
<label class="wd-label"><?php _e('Enable WD Media Uploader',
|
138 |
-
<input type="radio" id="spider_uploader1" name="spider_uploader" <?php echo (($global_options->spider_uploader == 1)? "checked='checked'" : ""); ?> value="1" /><label <?php echo ($global_options->spider_uploader ? 'class="selected_color"' : ''); ?> for="spider_uploader1"><?php _e('Yes',
|
139 |
-
<input type="radio" id="spider_uploader0" name="spider_uploader" <?php echo (($global_options->spider_uploader == 0)? "checked='checked'" : ""); ?> value="0" /><label <?php echo ($global_options->spider_uploader ? '' : 'class="selected_color"'); ?> for="spider_uploader0"><?php _e('No',
|
140 |
-
<p class="description"><?php _e('Enabling this option lets you use custom media uploader to add images, instead of WordPress Media Library.',
|
141 |
</div>
|
142 |
<div class="wd-group">
|
143 |
-
<label for="loading_gif" class="wd-label"><?php _e('Loading icon',
|
144 |
-
<select class="select_icon select_icon_320 select_gif" name="loading_gif" id="loading_gif" onchange="wds_loading_gif(jQuery(this).val(), '<?php echo
|
145 |
<?php foreach ($loading_gifs as $key => $loading_gif) { ?>
|
146 |
<option value="<?php echo $key; ?>" <?php if ($global_options->loading_gif == $key) echo 'selected="selected"'; ?>><?php echo $loading_gif; ?></option>
|
147 |
<?php } ?>
|
148 |
</select>
|
149 |
-
<span class="button wds_fieldset_img_preview" onclick="wds_loading_preview()"><?php _e('Preview',
|
150 |
<div class="wds_fieldset_img">
|
151 |
-
<img id="load_gif_img" src="<?php echo
|
152 |
</div>
|
153 |
</div>
|
154 |
<div class="wd-group">
|
155 |
-
<label class="wd-label"><?php _e('Uninstall Slider WD',
|
156 |
-
<a class="button" href="<?php echo $uninstall_href ?>"><?php _e('Uninstall',
|
157 |
</div>
|
158 |
</div>
|
159 |
</div>
|
@@ -161,24 +161,24 @@ class WDSViewGoptions_wds {
|
|
161 |
<div class="wd-table-col wd-table-col-50 wd-table-col-right">
|
162 |
<div class="wd-box-section">
|
163 |
<div class="wd-box-title">
|
164 |
-
<strong><?php _e('Default options for layers',
|
165 |
</div>
|
166 |
-
<div class="wd-box-content<?php echo (
|
167 |
<?php
|
168 |
-
if (
|
169 |
-
echo WDW_S_Library::message_id(0, __('This functionality is disabled in free version.',
|
170 |
}
|
171 |
?>
|
172 |
<div class="wd-group">
|
173 |
-
<label class="wd-label" for="default_layer_ffamily"><?php _e('Font',
|
174 |
-
<input <?php echo (
|
175 |
-
<label for="default_layer_google_fonts1"><?php _e('Google fonts',
|
176 |
-
<input <?php echo (
|
177 |
-
<label for="default_layer_google_fonts0"><?php _e('Default',
|
178 |
</div>
|
179 |
<div class="wd-group">
|
180 |
-
<label class="wd-label wds_default_label" for="default_layer_ffamily"><?php _e('Font family',
|
181 |
-
<select <?php echo (
|
182 |
<?php
|
183 |
$fonts = (isset($global_options->default_layer_google_fonts) && $global_options->default_layer_google_fonts) ? $google_fonts : $font_families;
|
184 |
foreach ($fonts as $key => $font_family) {
|
@@ -188,76 +188,76 @@ class WDSViewGoptions_wds {
|
|
188 |
</select>
|
189 |
</div>
|
190 |
<div class="wd-group">
|
191 |
-
<label class="wd-label" for="possib_add_ffamily_input"><?php _e('Add font-family',
|
192 |
-
<input <?php echo (
|
193 |
<input type="hidden" id="possib_add_ffamily" name="possib_add_ffamily" value="<?php echo $global_options->possib_add_ffamily; ?>"/>
|
194 |
<input type="hidden" id="possib_add_ffamily_google" name="possib_add_ffamily_google" value="<?php echo $global_options->possib_add_ffamily_google; ?>"/>
|
195 |
-
<input <?php echo (
|
196 |
-
<input <?php echo (
|
197 |
-
<p class="description"><?php _e('The added font family will appear in the drop-down list of fonts.',
|
198 |
</div>
|
199 |
<div class="wd-group">
|
200 |
-
<label class="wd-label wds_default_label" for="default_layer_fweight"><?php _e('Font weight',
|
201 |
-
<select <?php echo (
|
202 |
<?php foreach ($default_layer_fweights as $key => $default_layer_fweight) { ?>
|
203 |
<option value="<?php echo $key; ?>" <?php echo (($global_options->default_layer_fweight == $key) ? 'selected="selected"' : ''); ?>><?php echo $default_layer_fweight; ?></option>
|
204 |
<?php } ?>
|
205 |
</select>
|
206 |
</div>
|
207 |
<div class="wd-group">
|
208 |
-
<label class="wd-label wds_default_label" for="default_layer_effect_in"><?php _e('Effect In',
|
209 |
<span style="display: inline-block;">
|
210 |
-
<input <?php echo (
|
211 |
-
<p class="description"><?php _e('Start',
|
212 |
</span>
|
213 |
<span style="display: inline-block;">
|
214 |
-
<select <?php echo (
|
215 |
<?php foreach ( $default_layer_effects_in as $key => $default_layer_effect_in ) { ?>
|
216 |
<option value="<?php echo $key; ?>" <?php echo ( $global_options->default_layer_effect_in == $key ) ? 'selected="selected"' : '' ?>><?php echo $default_layer_effect_in; ?></option>
|
217 |
<?php } ?>
|
218 |
</select>
|
219 |
-
<p class="description"><?php _e('Effect',
|
220 |
</span>
|
221 |
<span style="display: inline-block;">
|
222 |
-
<input <?php echo (
|
223 |
-
<p class="description"><?php _e('Duration',
|
224 |
</span>
|
225 |
<span style="display: inline-block;">
|
226 |
-
<input <?php echo (
|
227 |
-
<p class="description"><?php _e('Iteration',
|
228 |
</span>
|
229 |
</div>
|
230 |
<div class="wd-group">
|
231 |
-
<label class="wd-label wds_default_label" for="default_layer_effect_out"><?php _e('Effect Out',
|
232 |
<span style="display: inline-block;">
|
233 |
-
<input <?php echo (
|
234 |
-
<p class="description"><?php _e('Start',
|
235 |
</span>
|
236 |
<span style="display: inline-block;">
|
237 |
-
<select <?php echo (
|
238 |
<?php foreach ($default_layer_effects_out as $key => $default_layer_effect_out) { ?>
|
239 |
<option value="<?php echo $key; ?>" <?php echo ( $global_options->default_layer_effect_out == $key ) ? 'selected="selected"' : '' ?>><?php echo $default_layer_effect_out; ?></option>
|
240 |
<?php
|
241 |
}
|
242 |
?>
|
243 |
</select>
|
244 |
-
<p class="description"><?php _e('Effect',
|
245 |
</span>
|
246 |
<span style="display: inline-block;">
|
247 |
-
<input <?php echo (
|
248 |
-
<p class="description"><?php _e('Duration',
|
249 |
</span>
|
250 |
<span style="display: inline-block;">
|
251 |
-
<input <?php echo (
|
252 |
-
<p class="description"><?php _e('Iteration',
|
253 |
</span>
|
254 |
</div>
|
255 |
<div class="wd-group">
|
256 |
-
<label class="wd-label wds_default_label" for="default_layer_add_class"><?php _e('Add class',
|
257 |
-
<input <?php echo (
|
258 |
</div>
|
259 |
<div class="wd-group">
|
260 |
-
<input <?php echo (
|
261 |
</div>
|
262 |
</div>
|
263 |
</div>
|
@@ -274,7 +274,7 @@ class WDSViewGoptions_wds {
|
|
274 |
<option value="<?php echo $slider->id; ?>"><?php echo $slider->name; ?></option>
|
275 |
<?php } ?>
|
276 |
</select>
|
277 |
-
<p class="description"><?php _e('Select slider to apply.',
|
278 |
</td>
|
279 |
</tr>
|
280 |
<tr class="wds_template_class">
|
@@ -284,8 +284,8 @@ class WDSViewGoptions_wds {
|
|
284 |
<tr>
|
285 |
<td colspan="2" align="right">
|
286 |
<br>
|
287 |
-
<input type="button" class="button button-primary" onclick="spider_set_input_value('task', 'change_layer_options'); wds_checked_options(event);" value="<?php _e('Apply',
|
288 |
-
<input type="button" class="button" onclick="jQuery('.wds_set').hide(); jQuery('.wds_opacity_set').hide(); return false;" value="<?php _e('Cancel',
|
289 |
</td>
|
290 |
</tr>
|
291 |
<tbody>
|
9 |
|
10 |
public function display($sliders) {
|
11 |
$default_layer_fweights = array(
|
12 |
+
'lighter' => __('Lighter', WDS()->prefix),
|
13 |
+
'normal' => __('Normal', WDS()->prefix),
|
14 |
+
'bold' => __('Bold', WDS()->prefix),
|
15 |
);
|
16 |
$default_layer_effects_in = array(
|
17 |
+
'none' => __('None', WDS()->prefix),
|
18 |
+
'bounce' => __('Bounce', WDS()->prefix),
|
19 |
+
'flash' => __('Flash', WDS()->prefix),
|
20 |
+
'pulse' => __('Pulse', WDS()->prefix),
|
21 |
+
'rubberBand' => __('RubberBand', WDS()->prefix),
|
22 |
+
'shake' => __('Shake', WDS()->prefix),
|
23 |
+
'swing' => __('Swing', WDS()->prefix),
|
24 |
+
'tada' => __('Tada', WDS()->prefix),
|
25 |
+
'wobble' => __('Wobble', WDS()->prefix),
|
26 |
+
'hinge' => __('Hinge', WDS()->prefix),
|
27 |
+
'lightSpeedIn' => __('LightSpeedIn', WDS()->prefix),
|
28 |
+
'rollIn' => __('RollIn', WDS()->prefix),
|
29 |
+
'bounceIn' => __('BounceIn', WDS()->prefix),
|
30 |
+
'bounceInDown' => __('BounceInDown', WDS()->prefix),
|
31 |
+
'bounceInLeft' => __('BounceInLeft', WDS()->prefix),
|
32 |
+
'bounceInRight' => __('BounceInRight', WDS()->prefix),
|
33 |
+
'bounceInUp' => __('BounceInUp', WDS()->prefix),
|
34 |
+
'fadeIn' => __('FadeIn', WDS()->prefix),
|
35 |
+
'fadeInDown' => __('FadeInDown', WDS()->prefix),
|
36 |
+
'fadeInDownBig' => __('FadeInDownBig', WDS()->prefix),
|
37 |
+
'fadeInLeft' => __('FadeInLeft', WDS()->prefix),
|
38 |
+
'fadeInLeftBig' => __('FadeInLeftBig', WDS()->prefix),
|
39 |
+
'fadeInRight' => __('FadeInRight', WDS()->prefix),
|
40 |
+
'fadeInRightBig' => __('FadeInRightBig', WDS()->prefix),
|
41 |
+
'fadeInUp' => __('FadeInUp', WDS()->prefix),
|
42 |
+
'fadeInUpBig' => __('FadeInUpBig', WDS()->prefix),
|
43 |
+
'flip' => __('Flip', WDS()->prefix),
|
44 |
+
'flipInX' => __('FlipInX', WDS()->prefix),
|
45 |
+
'flipInY' => __('FlipInY', WDS()->prefix),
|
46 |
+
'rotateIn' => __('RotateIn', WDS()->prefix),
|
47 |
+
'rotateInDownLeft' => __('RotateInDownLeft', WDS()->prefix),
|
48 |
+
'rotateInDownRight' => __('RotateInDownRight', WDS()->prefix),
|
49 |
+
'rotateInUpLeft' => __('RotateInUpLeft', WDS()->prefix),
|
50 |
+
'rotateInUpRight' => __('RotateInUpRight', WDS()->prefix),
|
51 |
+
'zoomIn' => __('ZoomIn', WDS()->prefix),
|
52 |
+
'zoomInDown' => __('ZoomInDown', WDS()->prefix),
|
53 |
+
'zoomInLeft' => __('ZoomInLeft', WDS()->prefix),
|
54 |
+
'zoomInRight' => __('ZoomInRight', WDS()->prefix),
|
55 |
+
'zoomInUp' => __('ZoomInUp', WDS()->prefix),
|
56 |
);
|
57 |
$default_layer_effects_out = array(
|
58 |
+
'none' => __('None', WDS()->prefix),
|
59 |
+
'bounce' => __('Bounce', WDS()->prefix),
|
60 |
+
'flash' => __('Flash', WDS()->prefix),
|
61 |
+
'pulse' => __('Pulse', WDS()->prefix),
|
62 |
+
'rubberBand' => __('RubberBand', WDS()->prefix),
|
63 |
+
'shake' => __('Shake', WDS()->prefix),
|
64 |
+
'swing' => __('Swing', WDS()->prefix),
|
65 |
+
'tada' => __('Tada', WDS()->prefix),
|
66 |
+
'wobble' => __('Wobble', WDS()->prefix),
|
67 |
+
'hinge' => __('Hinge', WDS()->prefix),
|
68 |
+
'lightSpeedOut' => __('LightSpeedOut', WDS()->prefix),
|
69 |
+
'rollOut' => __('RollOut', WDS()->prefix),
|
70 |
+
'bounceOut' => __('BounceOut', WDS()->prefix),
|
71 |
+
'bounceOutDown' => __('BounceOutDown', WDS()->prefix),
|
72 |
+
'bounceOutLeft' => __('BounceOutLeft', WDS()->prefix),
|
73 |
+
'bounceOutRight' => __('BounceOutRight', WDS()->prefix),
|
74 |
+
'bounceOutUp' => __('BounceOutUp', WDS()->prefix),
|
75 |
+
'fadeOut' => __('FadeOut', WDS()->prefix),
|
76 |
+
'fadeOutDown' => __('FadeOutDown', WDS()->prefix),
|
77 |
+
'fadeOutDownBig' => __('FadeOutDownBig', WDS()->prefix),
|
78 |
+
'fadeOutLeft' => __('FadeOutLeft', WDS()->prefix),
|
79 |
+
'fadeOutLeftBig' => __('FadeOutLeftBig', WDS()->prefix),
|
80 |
+
'fadeOutRight' => __('FadeOutRight', WDS()->prefix),
|
81 |
+
'fadeOutRightBig' => __('FadeOutRightBig', WDS()->prefix),
|
82 |
+
'fadeOutUp' => __('FadeOutUp', WDS()->prefix),
|
83 |
+
'fadeOutUpBig' => __('FadeOutUpBig', WDS()->prefix),
|
84 |
+
'flip' => __('Flip', WDS()->prefix),
|
85 |
+
'flipOutX' => __('FlipOutX', WDS()->prefix),
|
86 |
+
'flipOutY' => __('FlipOutY', WDS()->prefix),
|
87 |
+
'rotateOut' => __('RubberBand', WDS()->prefix),
|
88 |
+
'rotateOutDownLeft' => __('RotateOutDownLeft', WDS()->prefix),
|
89 |
+
'rotateOutDownRight' => __('RotateOutDownRight', WDS()->prefix),
|
90 |
+
'rotateOutUpLeft' => __('RotateOutUpLeft', WDS()->prefix),
|
91 |
+
'rotateOutUpRight' => __('RotateOutUpRight', WDS()->prefix),
|
92 |
+
'zoomOut' => __('ZoomOut', WDS()->prefix),
|
93 |
+
'zoomOutDown' => __('ZoomOutDown', WDS()->prefix),
|
94 |
+
'zoomOutLeft' => __('ZoomOutLeft', WDS()->prefix),
|
95 |
+
'zoomOutRight' => __('ZoomOutRight', WDS()->prefix),
|
96 |
+
'zoomOutUp' => __('ZoomOutUp', WDS()->prefix),
|
97 |
);
|
98 |
$font_families = WDW_S_Library::get_font_families();
|
99 |
$google_fonts = WDW_S_Library::get_google_fonts();
|
100 |
$loading_gifs = array(
|
101 |
+
0 => __('Loading default', WDS()->prefix),
|
102 |
+
1 => __('Loading1', WDS()->prefix),
|
103 |
+
2 => __('Loading2', WDS()->prefix),
|
104 |
+
3 => __('Loading3', WDS()->prefix),
|
105 |
+
4 => __('Loading4', WDS()->prefix),
|
106 |
+
5 => __('Loading5', WDS()->prefix),
|
107 |
);
|
108 |
|
109 |
$wds_global_options = get_option("wds_global_options", 0);
|
110 |
$global_options = json_decode($wds_global_options);
|
111 |
if ( !$wds_global_options ) {
|
112 |
+
$global_options = (object) WDW_S_Library::global_options_defults();
|
113 |
$global_options->loading_gif = get_option("wds_loading_gif", 0);
|
114 |
$global_options->register_scripts = get_option("wds_register_scripts", 0);
|
115 |
}
|
121 |
<?php wp_nonce_field('nonce_wd', 'nonce_wd'); ?>
|
122 |
<div class="wds-options-page-banner">
|
123 |
<div class="wds-options-logo"></div>
|
124 |
+
<div class="wds-options-logo-title"><?php _e('Options', WDS()->prefix); ?></div>
|
125 |
<div class="wds-page-actions">
|
126 |
+
<button class="button button-primary" onclick="spider_set_input_value('task', 'save');"><?php _e('Save', WDS()->prefix); ?></button>
|
127 |
</div>
|
128 |
</div>
|
129 |
<div class="wd-table">
|
130 |
<div class="wd-table-col wd-table-col-50 wd-table-col-left">
|
131 |
<div class="wd-box-section">
|
132 |
<div class="wd-box-title">
|
133 |
+
<strong><?php _e('Global Options', WDS()->prefix); ?></strong>
|
134 |
</div>
|
135 |
<div class="wd-box-content">
|
136 |
<div class="wd-group">
|
137 |
+
<label class="wd-label"><?php _e('Enable WD Media Uploader', WDS()->prefix); ?></label>
|
138 |
+
<input type="radio" id="spider_uploader1" name="spider_uploader" <?php echo (($global_options->spider_uploader == 1)? "checked='checked'" : ""); ?> value="1" /><label <?php echo ($global_options->spider_uploader ? 'class="selected_color"' : ''); ?> for="spider_uploader1"><?php _e('Yes', WDS()->prefix); ?></label>
|
139 |
+
<input type="radio" id="spider_uploader0" name="spider_uploader" <?php echo (($global_options->spider_uploader == 0)? "checked='checked'" : ""); ?> value="0" /><label <?php echo ($global_options->spider_uploader ? '' : 'class="selected_color"'); ?> for="spider_uploader0"><?php _e('No', WDS()->prefix); ?></label>
|
140 |
+
<p class="description"><?php _e('Enabling this option lets you use custom media uploader to add images, instead of WordPress Media Library.', WDS()->prefix); ?></p>
|
141 |
</div>
|
142 |
<div class="wd-group">
|
143 |
+
<label for="loading_gif" class="wd-label"><?php _e('Loading icon', WDS()->prefix); ?></label>
|
144 |
+
<select class="select_icon select_icon_320 select_gif" name="loading_gif" id="loading_gif" onchange="wds_loading_gif(jQuery(this).val(), '<?php echo WDS()->plugin_url ?>')">
|
145 |
<?php foreach ($loading_gifs as $key => $loading_gif) { ?>
|
146 |
<option value="<?php echo $key; ?>" <?php if ($global_options->loading_gif == $key) echo 'selected="selected"'; ?>><?php echo $loading_gif; ?></option>
|
147 |
<?php } ?>
|
148 |
</select>
|
149 |
+
<span class="button wds_fieldset_img_preview" onclick="wds_loading_preview()"><?php _e('Preview', WDS()->prefix); ?></span>
|
150 |
<div class="wds_fieldset_img">
|
151 |
+
<img id="load_gif_img" src="<?php echo WDS()->plugin_url . '/images/loading/' . $global_options->loading_gif . '.gif'; ?>" />
|
152 |
</div>
|
153 |
</div>
|
154 |
<div class="wd-group">
|
155 |
+
<label class="wd-label"><?php _e('Uninstall Slider WD', WDS()->prefix); ?></label>
|
156 |
+
<a class="button" href="<?php echo $uninstall_href ?>"><?php _e('Uninstall', WDS()->prefix); ?></a>
|
157 |
</div>
|
158 |
</div>
|
159 |
</div>
|
161 |
<div class="wd-table-col wd-table-col-50 wd-table-col-right">
|
162 |
<div class="wd-box-section">
|
163 |
<div class="wd-box-title">
|
164 |
+
<strong><?php _e('Default options for layers', WDS()->prefix); ?></strong>
|
165 |
</div>
|
166 |
+
<div class="wd-box-content<?php echo (WDS()->is_free ? ' wd-free' : ''); ?>">
|
167 |
<?php
|
168 |
+
if ( WDS()->is_free ) {
|
169 |
+
echo WDW_S_Library::message_id(0, __('This functionality is disabled in free version.', WDS()->prefix), 'error');
|
170 |
}
|
171 |
?>
|
172 |
<div class="wd-group">
|
173 |
+
<label class="wd-label" for="default_layer_ffamily"><?php _e('Font', WDS()->prefix); ?></label>
|
174 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> id="default_layer_google_fonts1" type="radio" name="default_layer_google_fonts" value="1" <?php echo (($global_options->default_layer_google_fonts) ? 'checked="checked"' : ''); ?> onchange="wds_change_fonts()" />
|
175 |
+
<label for="default_layer_google_fonts1"><?php _e('Google fonts', WDS()->prefix); ?></label>
|
176 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> id="default_layer_google_fonts0" type="radio" name="default_layer_google_fonts" value="0" <?php echo (($global_options->default_layer_google_fonts) ? '' : 'checked="checked"'); ?> onchange="wds_change_fonts()" />
|
177 |
+
<label for="default_layer_google_fonts0"><?php _e('Default', WDS()->prefix); ?></label>
|
178 |
</div>
|
179 |
<div class="wd-group">
|
180 |
+
<label class="wd-label wds_default_label" for="default_layer_ffamily"><?php _e('Font family', WDS()->prefix); ?></label>
|
181 |
+
<select <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> class="select_icon select_icon_320" id="default_layer_ffamily" onchange="wds_change_fonts('', 1)" name="default_layer_ffamily">
|
182 |
<?php
|
183 |
$fonts = (isset($global_options->default_layer_google_fonts) && $global_options->default_layer_google_fonts) ? $google_fonts : $font_families;
|
184 |
foreach ($fonts as $key => $font_family) {
|
188 |
</select>
|
189 |
</div>
|
190 |
<div class="wd-group">
|
191 |
+
<label class="wd-label" for="possib_add_ffamily_input"><?php _e('Add font-family', WDS()->prefix); ?></label>
|
192 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" id="possib_add_ffamily_input" value="" class="spider_box_input"/>
|
193 |
<input type="hidden" id="possib_add_ffamily" name="possib_add_ffamily" value="<?php echo $global_options->possib_add_ffamily; ?>"/>
|
194 |
<input type="hidden" id="possib_add_ffamily_google" name="possib_add_ffamily_google" value="<?php echo $global_options->possib_add_ffamily_google; ?>"/>
|
195 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> id="possib_add_google_fonts" type="checkbox" name="possib_add_google_fonts" value="1"/><label for="possib_add_google_fonts"><?php _e('Add to Google fonts', WDS()->prefix); ?></label>
|
196 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> id="add_font_family" class="button button-primary" type="button" onclick="set_ffamily_value();spider_set_input_value('task', 'save_font_family');spider_form_submit(event, 'sliders_form')" value="<?php _e('Add font-family', WDS()->prefix); ?>"/>
|
197 |
+
<p class="description"><?php _e('The added font family will appear in the drop-down list of fonts.', WDS()->prefix); ?></p>
|
198 |
</div>
|
199 |
<div class="wd-group">
|
200 |
+
<label class="wd-label wds_default_label" for="default_layer_fweight"><?php _e('Font weight', WDS()->prefix); ?></label>
|
201 |
+
<select <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> class="select_icon select_icon_320" id="default_layer_fweight" name="default_layer_fweight">
|
202 |
<?php foreach ($default_layer_fweights as $key => $default_layer_fweight) { ?>
|
203 |
<option value="<?php echo $key; ?>" <?php echo (($global_options->default_layer_fweight == $key) ? 'selected="selected"' : ''); ?>><?php echo $default_layer_fweight; ?></option>
|
204 |
<?php } ?>
|
205 |
</select>
|
206 |
</div>
|
207 |
<div class="wd-group">
|
208 |
+
<label class="wd-label wds_default_label" for="default_layer_effect_in"><?php _e('Effect In', WDS()->prefix); ?></label>
|
209 |
<span style="display: inline-block;">
|
210 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> id="default_layer_start" class="spider_int_input" type="text" value="<?php echo $global_options->default_layer_start; ?>" name="default_layer_start"/> ms
|
211 |
+
<p class="description"><?php _e('Start', WDS()->prefix); ?></p>
|
212 |
</span>
|
213 |
<span style="display: inline-block;">
|
214 |
+
<select <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> class="select_icon select_icon_320" name="default_layer_effect_in" id="default_layer_effect_in">
|
215 |
<?php foreach ( $default_layer_effects_in as $key => $default_layer_effect_in ) { ?>
|
216 |
<option value="<?php echo $key; ?>" <?php echo ( $global_options->default_layer_effect_in == $key ) ? 'selected="selected"' : '' ?>><?php echo $default_layer_effect_in; ?></option>
|
217 |
<?php } ?>
|
218 |
</select>
|
219 |
+
<p class="description"><?php _e('Effect', WDS()->prefix); ?></p>
|
220 |
</span>
|
221 |
<span style="display: inline-block;">
|
222 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> id="default_layer_duration_eff_in" class="spider_int_input" type="text" value="<?php echo $global_options->default_layer_duration_eff_in; ?>" name="default_layer_duration_eff_in"/>ms
|
223 |
+
<p class="description"><?php _e('Duration', WDS()->prefix); ?></p>
|
224 |
</span>
|
225 |
<span style="display: inline-block;">
|
226 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> id="default_layer_infinite_in" type="text" name="default_layer_infinite_in" value="<?php echo $global_options->default_layer_infinite_in; ?>" class="spider_int_input" title="<?php _e('0 for play infinte times', WDS()->prefix);?>" />
|
227 |
+
<p class="description"><?php _e('Iteration', WDS()->prefix); ?></p>
|
228 |
</span>
|
229 |
</div>
|
230 |
<div class="wd-group">
|
231 |
+
<label class="wd-label wds_default_label" for="default_layer_effect_out"><?php _e('Effect Out', WDS()->prefix); ?></label>
|
232 |
<span style="display: inline-block;">
|
233 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> id="default_layer_end" class="spider_int_input" type="text" value="<?php echo $global_options->default_layer_end; ?>" name="default_layer_end">ms
|
234 |
+
<p class="description"><?php _e('Start', WDS()->prefix); ?></p>
|
235 |
</span>
|
236 |
<span style="display: inline-block;">
|
237 |
+
<select <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> class="select_icon select_icon_320" name="default_layer_effect_out" id="default_layer_effect_out" style="width:150px;">
|
238 |
<?php foreach ($default_layer_effects_out as $key => $default_layer_effect_out) { ?>
|
239 |
<option value="<?php echo $key; ?>" <?php echo ( $global_options->default_layer_effect_out == $key ) ? 'selected="selected"' : '' ?>><?php echo $default_layer_effect_out; ?></option>
|
240 |
<?php
|
241 |
}
|
242 |
?>
|
243 |
</select>
|
244 |
+
<p class="description"><?php _e('Effect', WDS()->prefix); ?></p>
|
245 |
</span>
|
246 |
<span style="display: inline-block;">
|
247 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> id="default_layer_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" value="<?php echo $global_options->default_layer_duration_eff_out; ?>" name="default_layer_duration_eff_out">ms
|
248 |
+
<p class="description"><?php _e('Duration', WDS()->prefix); ?></p>
|
249 |
</span>
|
250 |
<span style="display: inline-block;">
|
251 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> id="default_layer_infinite_out" type="text" name="default_layer_infinite_out" value="<?php echo $global_options->default_layer_infinite_out; ?>" class="spider_int_input" title="<?php _e('0 for play infinte times', WDS()->prefix); ?>" />
|
252 |
+
<p class="description"><?php _e('Iteration', WDS()->prefix); ?></p>
|
253 |
</span>
|
254 |
</div>
|
255 |
<div class="wd-group">
|
256 |
+
<label class="wd-label wds_default_label" for="default_layer_add_class"><?php _e('Add class', WDS()->prefix); ?></label>
|
257 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> id="default_layer_add_class" class="spider_char_input" type="text" value="<?php echo $global_options->default_layer_add_class; ?>" name="default_layer_add_class" />
|
258 |
</div>
|
259 |
<div class="wd-group">
|
260 |
+
<input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="button" class="button button-primary" onclick="wds_set_one(); wds_invent_default_layer_check();" value="<?php _e('Apply to existing layers', WDS()->prefix); ?>" />
|
261 |
</div>
|
262 |
</div>
|
263 |
</div>
|
274 |
<option value="<?php echo $slider->id; ?>"><?php echo $slider->name; ?></option>
|
275 |
<?php } ?>
|
276 |
</select>
|
277 |
+
<p class="description"><?php _e('Select slider to apply.', WDS()->prefix); ?></p>
|
278 |
</td>
|
279 |
</tr>
|
280 |
<tr class="wds_template_class">
|
284 |
<tr>
|
285 |
<td colspan="2" align="right">
|
286 |
<br>
|
287 |
+
<input type="button" class="button button-primary" onclick="spider_set_input_value('task', 'change_layer_options'); wds_checked_options(event);" value="<?php _e('Apply', WDS()->prefix); ?>" />
|
288 |
+
<input type="button" class="button" onclick="jQuery('.wds_set').hide(); jQuery('.wds_opacity_set').hide(); return false;" value="<?php _e('Cancel', WDS()->prefix); ?>" />
|
289 |
</td>
|
290 |
</tr>
|
291 |
<tbody>
|
admin/views/WDSViewUninstall_wds.php
CHANGED
@@ -30,28 +30,28 @@ class WDSViewUninstall_wds {
|
|
30 |
<?php wp_nonce_field('nonce_wd', 'nonce_wd'); ?>
|
31 |
<div class="wrap">
|
32 |
<span class="uninstall_icon"></span>
|
33 |
-
<h2><?php _e('Uninstall Slider WD',
|
34 |
<div class="goodbye-text">
|
35 |
<?php
|
36 |
-
$support_team = '<a href="https://web-dorado.com/support/contact-us.html?source=slider-wd" target="_blank">' . __('support team',
|
37 |
-
$contact_us = '<a href="https://web-dorado.com/support/contact-us.html?source=slider-wd" target="_blank">' . __('Contact us',
|
38 |
echo sprintf(__("Before uninstalling the plugin, please Contact our %s. We'll do our best to help you out with your issue. We value each and every user and value what's right for our users in everything we do.<br />
|
39 |
However, if anyway you have made a decision to uninstall the plugin, please take a minute to %s and tell what you didn't like for our plugins further improvement and development. Thank you !!!", "wds"), $support_team, $contact_us); ?>
|
40 |
</div>
|
41 |
-
<p><?php _e('Deactivating Slider WD plugin does not remove any data that may have been created. To completely remove this plugin, you can uninstall it here.',
|
42 |
</p>
|
43 |
<p style="color: red;">
|
44 |
-
<strong> <?php _e('WARNING:',
|
45 |
-
<?php _e('Once uninstalled, this can’t be undone. You should use a Database Backup plugin of WordPress to back up all the data first.',
|
46 |
|
47 |
</p>
|
48 |
<p style="color: red">
|
49 |
-
<strong><?php _e('The following Database Tables will be deleted:',
|
50 |
</p>
|
51 |
<table class="widefat">
|
52 |
<thead>
|
53 |
<tr>
|
54 |
-
<th><?php _e('Database Tables',
|
55 |
</tr>
|
56 |
</thead>
|
57 |
<tr>
|
@@ -64,13 +64,13 @@ class WDSViewUninstall_wds {
|
|
64 |
</td>
|
65 |
</tr>
|
66 |
</table>
|
67 |
-
<p style="text-align: center;"><?php _e('Do you really want to uninstall Slider WD plugin?',
|
68 |
<p style="text-align: center;">
|
69 |
-
<input type="checkbox" name="<?php _e('Slider WD',
|
70 |
</p>
|
71 |
<p style="text-align: center;">
|
72 |
-
<input type="submit" value="<?php _e('UNINSTALL',
|
73 |
-
if (confirm('<?php _e("You are About to Uninstall Slider WD plugin from WordPress.",
|
74 |
spider_set_input_value('task', 'uninstall');
|
75 |
} else {
|
76 |
return false;
|
@@ -91,20 +91,20 @@ class WDSViewUninstall_wds {
|
|
91 |
global $wpdb;
|
92 |
$this->model->delete_db_tables();
|
93 |
$prefix = $wpdb->prefix;
|
94 |
-
$deactivate_url = add_query_arg(array('action' => 'deactivate', 'plugin' =>
|
95 |
-
$deactivate_url = wp_nonce_url($deactivate_url, 'deactivate-plugin_' .
|
96 |
?>
|
97 |
<div id="message" class="wd_updated fade">
|
98 |
-
<p><?php _e('The following Database Tables successfully deleted:',
|
99 |
<p><?php echo $prefix; ?>wdsslider,</p>
|
100 |
<p><?php echo $prefix; ?>wdsslide,</p>
|
101 |
<p><?php echo $prefix; ?>wdslayer.</p>
|
102 |
</div>
|
103 |
<div class="wrap">
|
104 |
-
<h2><?php _e('Uninstall Slider WD',
|
105 |
<p><strong>
|
106 |
<?php
|
107 |
-
$deactivate_html = '<a href="'. $deactivate_url .'" class="wds_deactivate_link" data-uninstall="1">' . __('Click Here',
|
108 |
echo sprintf(__("%s To Finish the Uninstallation and Slider WD will be Deactivated Automatically.", "wds"), $deactivate_html);
|
109 |
?>
|
110 |
</strong></p>
|
30 |
<?php wp_nonce_field('nonce_wd', 'nonce_wd'); ?>
|
31 |
<div class="wrap">
|
32 |
<span class="uninstall_icon"></span>
|
33 |
+
<h2><?php _e('Uninstall Slider WD', WDS()->prefix);?></h2>
|
34 |
<div class="goodbye-text">
|
35 |
<?php
|
36 |
+
$support_team = '<a href="https://web-dorado.com/support/contact-us.html?source=slider-wd" target="_blank">' . __('support team', WDS()->prefix) . '</a>';
|
37 |
+
$contact_us = '<a href="https://web-dorado.com/support/contact-us.html?source=slider-wd" target="_blank">' . __('Contact us', WDS()->prefix) . '</a>';
|
38 |
echo sprintf(__("Before uninstalling the plugin, please Contact our %s. We'll do our best to help you out with your issue. We value each and every user and value what's right for our users in everything we do.<br />
|
39 |
However, if anyway you have made a decision to uninstall the plugin, please take a minute to %s and tell what you didn't like for our plugins further improvement and development. Thank you !!!", "wds"), $support_team, $contact_us); ?>
|
40 |
</div>
|
41 |
+
<p><?php _e('Deactivating Slider WD plugin does not remove any data that may have been created. To completely remove this plugin, you can uninstall it here.', WDS()->prefix);?>
|
42 |
</p>
|
43 |
<p style="color: red;">
|
44 |
+
<strong> <?php _e('WARNING:', WDS()->prefix);?></strong>
|
45 |
+
<?php _e('Once uninstalled, this can’t be undone. You should use a Database Backup plugin of WordPress to back up all the data first.', WDS()->prefix);?>
|
46 |
|
47 |
</p>
|
48 |
<p style="color: red">
|
49 |
+
<strong><?php _e('The following Database Tables will be deleted:', WDS()->prefix);?></strong>
|
50 |
</p>
|
51 |
<table class="widefat">
|
52 |
<thead>
|
53 |
<tr>
|
54 |
+
<th><?php _e('Database Tables', WDS()->prefix);?></th>
|
55 |
</tr>
|
56 |
</thead>
|
57 |
<tr>
|
64 |
</td>
|
65 |
</tr>
|
66 |
</table>
|
67 |
+
<p style="text-align: center;"><?php _e('Do you really want to uninstall Slider WD plugin?', WDS()->prefix);?></p>
|
68 |
<p style="text-align: center;">
|
69 |
+
<input type="checkbox" name="<?php _e('Slider WD', WDS()->prefix); ?>" id="check_yes" value="yes" /> <label for="check_yes"><?php _e('Yes', WDS()->prefix);?></label>
|
70 |
</p>
|
71 |
<p style="text-align: center;">
|
72 |
+
<input type="submit" value="<?php _e('UNINSTALL', WDS()->prefix);?>" class="button-primary" onclick="if (check_yes.checked) {
|
73 |
+
if (confirm('<?php _e("You are About to Uninstall Slider WD plugin from WordPress.", WDS()->prefix);?>\n<?php _e("This Action Is Not Reversible.", WDS()->prefix);?>')) {
|
74 |
spider_set_input_value('task', 'uninstall');
|
75 |
} else {
|
76 |
return false;
|
91 |
global $wpdb;
|
92 |
$this->model->delete_db_tables();
|
93 |
$prefix = $wpdb->prefix;
|
94 |
+
$deactivate_url = add_query_arg(array('action' => 'deactivate', 'plugin' => WDS()->main_file . '/slider-wd.php'), admin_url('plugins.php'));
|
95 |
+
$deactivate_url = wp_nonce_url($deactivate_url, 'deactivate-plugin_' . WDS()->main_file . '/slider-wd.php');
|
96 |
?>
|
97 |
<div id="message" class="wd_updated fade">
|
98 |
+
<p><?php _e('The following Database Tables successfully deleted:', WDS()->prefix);?></p>
|
99 |
<p><?php echo $prefix; ?>wdsslider,</p>
|
100 |
<p><?php echo $prefix; ?>wdsslide,</p>
|
101 |
<p><?php echo $prefix; ?>wdslayer.</p>
|
102 |
</div>
|
103 |
<div class="wrap">
|
104 |
+
<h2><?php _e('Uninstall Slider WD', WDS()->prefix);?></h2>
|
105 |
<p><strong>
|
106 |
<?php
|
107 |
+
$deactivate_html = '<a href="'. $deactivate_url .'" class="wds_deactivate_link" data-uninstall="1">' . __('Click Here', WDS()->prefix) . '</a>';
|
108 |
echo sprintf(__("%s To Finish the Uninstallation and Slider WD will be Deactivated Automatically.", "wds"), $deactivate_html);
|
109 |
?>
|
110 |
</strong></p>
|
admin/views/WDSViewWDSExport.php
CHANGED
@@ -52,14 +52,14 @@ class WDSViewWDSExport {
|
|
52 |
foreach ($value as $key_slider => $value_slider) {
|
53 |
if (!is_array($value_slider)) {
|
54 |
if (strpos($value_slider, site_url()) !== FALSE) {
|
55 |
-
if (strpos($value_slider,
|
56 |
-
$value_slider = str_replace(site_url(),
|
57 |
}
|
58 |
else {
|
59 |
$file_url = html_entity_decode($value_slider, ENT_QUOTES);
|
60 |
$base_name = basename($file_url);
|
61 |
$download_file = file_get_contents(str_replace(" ", "%20", $file_url));
|
62 |
-
$zip->addFromString(
|
63 |
if ($key_slider != "built_in_watermark_url") {
|
64 |
if ($key_slider != "music_url") {
|
65 |
// Create thumbnail url to check if it exist.
|
@@ -70,10 +70,10 @@ class WDSViewWDSExport {
|
|
70 |
// If thumbnail exist (buttons default images).
|
71 |
$download_file = file_get_contents(str_replace(" ", "%20", str_replace($base_name, 'thumb/' . $base_name, $file_url)));
|
72 |
}
|
73 |
-
$zip->addFromString(
|
74 |
}
|
75 |
}
|
76 |
-
$value_slider =
|
77 |
}
|
78 |
}
|
79 |
$value->built_in_watermark_url = '';
|
@@ -89,27 +89,27 @@ class WDSViewWDSExport {
|
|
89 |
if (strpos($value_slides->image_url, site_url()) !== FALSE) {
|
90 |
$download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $image_url), ENT_QUOTES));
|
91 |
$zip->addFromString(basename(html_entity_decode($image_url, ENT_QUOTES)), $download_file);
|
92 |
-
$value_slides->image_url =
|
93 |
}
|
94 |
if (strpos($value_slides->thumb_url , site_url()) !== FALSE) {
|
95 |
$download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $value_slides->thumb_url), ENT_QUOTES));
|
96 |
$zip->addFromString('thumb_' . basename(html_entity_decode($image_url, ENT_QUOTES)), $download_file);
|
97 |
-
$value_slides->thumb_url =
|
98 |
}
|
99 |
}
|
100 |
if ($value_slides->type == 'video') {
|
101 |
if (ctype_digit($value_slides->thumb_url)) {
|
102 |
-
$value_slides->thumb_url = wp_get_attachment_url(get_post_thumbnail_id($value_slides->thumb_url)) ? wp_get_attachment_url(get_post_thumbnail_id($value_slides->thumb_url)) :
|
103 |
}
|
104 |
if (strpos($value_slides->thumb_url , site_url()) !== FALSE) {
|
105 |
$download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $value_slides->thumb_url), ENT_QUOTES));
|
106 |
$zip->addFromString('featured_' . basename(html_entity_decode($value_slides->thumb_url, ENT_QUOTES)), $download_file);
|
107 |
-
$value_slides->thumb_url =
|
108 |
}
|
109 |
if (strpos($value_slides->image_url, site_url()) !== FALSE) {
|
110 |
$download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $image_url), ENT_QUOTES));
|
111 |
$zip->addFromString(basename(html_entity_decode($image_url, ENT_QUOTES)), $download_file);
|
112 |
-
$value_slides->image_url =
|
113 |
}
|
114 |
}
|
115 |
}
|
@@ -147,7 +147,7 @@ class WDSViewWDSExport {
|
|
147 |
}
|
148 |
$zip->addFromString('thumb_' . $base_name, $download_file);
|
149 |
|
150 |
-
$value_layers->image_url =
|
151 |
}
|
152 |
}
|
153 |
elseif (strpos($value_layers->image_url, site_url()) !== FALSE) {
|
52 |
foreach ($value as $key_slider => $value_slider) {
|
53 |
if (!is_array($value_slider)) {
|
54 |
if (strpos($value_slider, site_url()) !== FALSE) {
|
55 |
+
if (strpos($value_slider, WDS()->plugin_url . '/images/') !== FALSE) {
|
56 |
+
$value_slider = str_replace(site_url(), WDS()->site_url_placeholder, $value_slider);
|
57 |
}
|
58 |
else {
|
59 |
$file_url = html_entity_decode($value_slider, ENT_QUOTES);
|
60 |
$base_name = basename($file_url);
|
61 |
$download_file = file_get_contents(str_replace(" ", "%20", $file_url));
|
62 |
+
$zip->addFromString(WDS()->site_url_buttons_placeholder . $base_name, $download_file);
|
63 |
if ($key_slider != "built_in_watermark_url") {
|
64 |
if ($key_slider != "music_url") {
|
65 |
// Create thumbnail url to check if it exist.
|
70 |
// If thumbnail exist (buttons default images).
|
71 |
$download_file = file_get_contents(str_replace(" ", "%20", str_replace($base_name, 'thumb/' . $base_name, $file_url)));
|
72 |
}
|
73 |
+
$zip->addFromString(WDS()->site_url_buttons_placeholder . '_thumb_' . $base_name, $download_file);
|
74 |
}
|
75 |
}
|
76 |
+
$value_slider = WDS()->site_url_buttons_placeholder . basename($value_slider);
|
77 |
}
|
78 |
}
|
79 |
$value->built_in_watermark_url = '';
|
89 |
if (strpos($value_slides->image_url, site_url()) !== FALSE) {
|
90 |
$download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $image_url), ENT_QUOTES));
|
91 |
$zip->addFromString(basename(html_entity_decode($image_url, ENT_QUOTES)), $download_file);
|
92 |
+
$value_slides->image_url = WDS()->site_url_placeholder. basename($image_url);
|
93 |
}
|
94 |
if (strpos($value_slides->thumb_url , site_url()) !== FALSE) {
|
95 |
$download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $value_slides->thumb_url), ENT_QUOTES));
|
96 |
$zip->addFromString('thumb_' . basename(html_entity_decode($image_url, ENT_QUOTES)), $download_file);
|
97 |
+
$value_slides->thumb_url = WDS()->site_url_placeholder . basename($image_url);
|
98 |
}
|
99 |
}
|
100 |
if ($value_slides->type == 'video') {
|
101 |
if (ctype_digit($value_slides->thumb_url)) {
|
102 |
+
$value_slides->thumb_url = wp_get_attachment_url(get_post_thumbnail_id($value_slides->thumb_url)) ? wp_get_attachment_url(get_post_thumbnail_id($value_slides->thumb_url)) : WDS()->plugin_url . '/images/no-video.png';
|
103 |
}
|
104 |
if (strpos($value_slides->thumb_url , site_url()) !== FALSE) {
|
105 |
$download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $value_slides->thumb_url), ENT_QUOTES));
|
106 |
$zip->addFromString('featured_' . basename(html_entity_decode($value_slides->thumb_url, ENT_QUOTES)), $download_file);
|
107 |
+
$value_slides->thumb_url = WDS()->site_url_placeholder . basename($value_slides->thumb_url);
|
108 |
}
|
109 |
if (strpos($value_slides->image_url, site_url()) !== FALSE) {
|
110 |
$download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $image_url), ENT_QUOTES));
|
111 |
$zip->addFromString(basename(html_entity_decode($image_url, ENT_QUOTES)), $download_file);
|
112 |
+
$value_slides->image_url = WDS()->site_url_placeholder. basename($image_url);
|
113 |
}
|
114 |
}
|
115 |
}
|
147 |
}
|
148 |
$zip->addFromString('thumb_' . $base_name, $download_file);
|
149 |
|
150 |
+
$value_layers->image_url = WDS()->site_url_placeholder . basename($value_layers->image_url);
|
151 |
}
|
152 |
}
|
153 |
elseif (strpos($value_layers->image_url, site_url()) !== FALSE) {
|
admin/views/WDSViewWDSShortcode.php
CHANGED
@@ -25,10 +25,10 @@ class WDSViewWDSShortcode {
|
|
25 |
<div id="display_panel" class="panel current" style="height: 90px !important;">
|
26 |
<table>
|
27 |
<tr>
|
28 |
-
<td style="vertical-align: middle; text-align: left;"><?php _e('Select a Slider',
|
29 |
<td style="vertical-align: middle; text-align: left;">
|
30 |
<select name="wds_id" id="wds_id" style="width: 230px; text-align: left;">
|
31 |
-
<option value="0" selected="selected"><?php _e('- Select a Slider -',
|
32 |
<?php
|
33 |
foreach ($rows as $row) {
|
34 |
?>
|
@@ -44,10 +44,10 @@ class WDSViewWDSShortcode {
|
|
44 |
</div>
|
45 |
<div class="mceActionPanel">
|
46 |
<div style="float: left;">
|
47 |
-
<input type="button" id="cancel" name="cancel" value="<?php _e('Cancel',
|
48 |
</div>
|
49 |
<div style="float: right;">
|
50 |
-
<input type="submit" id="insert" name="insert" value="<?php _e('Insert',
|
51 |
</div>
|
52 |
</div>
|
53 |
<script type="text/javascript">
|
25 |
<div id="display_panel" class="panel current" style="height: 90px !important;">
|
26 |
<table>
|
27 |
<tr>
|
28 |
+
<td style="vertical-align: middle; text-align: left;"><?php _e('Select a Slider', WDS()->prefix);?></td>
|
29 |
<td style="vertical-align: middle; text-align: left;">
|
30 |
<select name="wds_id" id="wds_id" style="width: 230px; text-align: left;">
|
31 |
+
<option value="0" selected="selected"><?php _e('- Select a Slider -', WDS()->prefix);?></option>
|
32 |
<?php
|
33 |
foreach ($rows as $row) {
|
34 |
?>
|
44 |
</div>
|
45 |
<div class="mceActionPanel">
|
46 |
<div style="float: left;">
|
47 |
+
<input type="button" id="cancel" name="cancel" value="<?php _e('Cancel', WDS()->prefix);?>" onClick="window.parent.tb_remove();" />
|
48 |
</div>
|
49 |
<div style="float: right;">
|
50 |
+
<input type="submit" id="insert" name="insert" value="<?php _e('Insert', WDS()->prefix);?>" onClick="wds_insert_shortcode();" />
|
51 |
</div>
|
52 |
</div>
|
53 |
<script type="text/javascript">
|
admin/views/WDSViewWidgetSlideshow.php
CHANGED
@@ -35,7 +35,7 @@ class WDSViewWidgetSlideshow {
|
|
35 |
echo $before_title . $title . $after_title;
|
36 |
}
|
37 |
// Widget output.
|
38 |
-
require_once(
|
39 |
$controller_class = 'WDSControllerSlider';
|
40 |
$controller = new $controller_class();
|
41 |
global $wds;
|
@@ -49,19 +49,19 @@ class WDSViewWidgetSlideshow {
|
|
49 |
// Widget Control Panel.
|
50 |
function form($instance, $id_title, $name_title, $id_gallery_id, $name_gallery_id) {
|
51 |
$defaults = array(
|
52 |
-
'title' => __('Slider',
|
53 |
'id' => 0,
|
54 |
);
|
55 |
$instance = wp_parse_args((array) $instance, $defaults);
|
56 |
$slider_rows = $this->model->get_slider_rows_data();
|
57 |
?>
|
58 |
<p>
|
59 |
-
<label for="<?php echo $id_title; ?>"><?php _e('Title:',
|
60 |
<input class="widefat" id="<?php echo $id_title; ?>" name="<?php echo $name_title; ?>" type="text" value="<?php echo $instance['title']; ?>" />
|
61 |
</p>
|
62 |
<p>
|
63 |
<select name="<?php echo $name_gallery_id; ?>" id="<?php echo $id_gallery_id; ?>" class="widefat">
|
64 |
-
<option value="0"><?php _e('Select Slider',
|
65 |
<?php
|
66 |
foreach ($slider_rows as $slider_row) {
|
67 |
?>
|
35 |
echo $before_title . $title . $after_title;
|
36 |
}
|
37 |
// Widget output.
|
38 |
+
require_once(WDS()->plugin_dir . '/frontend/controllers/WDSControllerSlider.php');
|
39 |
$controller_class = 'WDSControllerSlider';
|
40 |
$controller = new $controller_class();
|
41 |
global $wds;
|
49 |
// Widget Control Panel.
|
50 |
function form($instance, $id_title, $name_title, $id_gallery_id, $name_gallery_id) {
|
51 |
$defaults = array(
|
52 |
+
'title' => __('Slider', WDS()->prefix),
|
53 |
'id' => 0,
|
54 |
);
|
55 |
$instance = wp_parse_args((array) $instance, $defaults);
|
56 |
$slider_rows = $this->model->get_slider_rows_data();
|
57 |
?>
|
58 |
<p>
|
59 |
+
<label for="<?php echo $id_title; ?>"><?php _e('Title:', WDS()->prefix);?></label>
|
60 |
<input class="widefat" id="<?php echo $id_title; ?>" name="<?php echo $name_title; ?>" type="text" value="<?php echo $instance['title']; ?>" />
|
61 |
</p>
|
62 |
<p>
|
63 |
<select name="<?php echo $name_gallery_id; ?>" id="<?php echo $id_gallery_id; ?>" class="widefat">
|
64 |
+
<option value="0"><?php _e('Select Slider', WDS()->prefix);?></option>
|
65 |
<?php
|
66 |
foreach ($slider_rows as $slider_row) {
|
67 |
?>
|
admin/views/embed.php
CHANGED
@@ -6,16 +6,16 @@
|
|
6 |
class WDSViewembed {
|
7 |
public function __construct() {
|
8 |
// Register and include styles and scripts.
|
9 |
-
|
10 |
-
wp_print_styles(
|
11 |
-
wp_print_scripts(
|
12 |
}
|
13 |
|
14 |
/**
|
15 |
* Display.
|
16 |
*/
|
17 |
public function display() {
|
18 |
-
echo WDW_S_Library::message_id(0, __('This functionality is disabled in free version.',
|
19 |
|
20 |
die();
|
21 |
}
|
6 |
class WDSViewembed {
|
7 |
public function __construct() {
|
8 |
// Register and include styles and scripts.
|
9 |
+
WDS()->register_iframe_scripts();
|
10 |
+
wp_print_styles(WDS()->prefix . '_tables');
|
11 |
+
wp_print_scripts(WDS()->prefix . '_admin');
|
12 |
}
|
13 |
|
14 |
/**
|
15 |
* Display.
|
16 |
*/
|
17 |
public function display() {
|
18 |
+
echo WDW_S_Library::message_id(0, __('This functionality is disabled in free version.', WDS()->prefix), 'error');
|
19 |
|
20 |
die();
|
21 |
}
|
admin/views/posts.php
CHANGED
@@ -10,16 +10,16 @@ class WDSViewposts {
|
|
10 |
$this->model = $model;
|
11 |
|
12 |
// Register and include styles and scripts.
|
13 |
-
|
14 |
-
wp_print_styles(
|
15 |
-
wp_print_scripts(
|
16 |
}
|
17 |
|
18 |
/**
|
19 |
* Display.
|
20 |
*/
|
21 |
public function display() {
|
22 |
-
echo WDW_S_Library::message_id(0, __('This functionality is disabled in free version.',
|
23 |
|
24 |
die();
|
25 |
}
|
10 |
$this->model = $model;
|
11 |
|
12 |
// Register and include styles and scripts.
|
13 |
+
WDS()->register_iframe_scripts();
|
14 |
+
wp_print_styles(WDS()->prefix . '_tables');
|
15 |
+
wp_print_scripts(WDS()->prefix . '_admin');
|
16 |
}
|
17 |
|
18 |
/**
|
19 |
* Display.
|
20 |
*/
|
21 |
public function display() {
|
22 |
+
echo WDW_S_Library::message_id(0, __('This functionality is disabled in free version.', WDS()->prefix), 'error');
|
23 |
|
24 |
die();
|
25 |
}
|
css/notices.css
CHANGED
@@ -114,4 +114,4 @@ a.wds_pro_text:visited, a.wds_pro_text:hover {
|
|
114 |
border: none;
|
115 |
display: inline-block;
|
116 |
vertical-align: middle;
|
117 |
-
}
|
114 |
border: none;
|
115 |
display: inline-block;
|
116 |
vertical-align: middle;
|
117 |
+
}
|
css/wds_tables.css
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
margin: 0;
|
15 |
}
|
16 |
|
17 |
-
#
|
18 |
line-height: 1;
|
19 |
}
|
20 |
|
@@ -1968,11 +1968,11 @@ th.sorted a span {
|
|
1968 |
padding: 0;
|
1969 |
}
|
1970 |
|
1971 |
-
#
|
1972 |
margin-right: 5px;
|
1973 |
}
|
1974 |
|
1975 |
-
#
|
1976 |
margin: 0px;
|
1977 |
}
|
1978 |
|
@@ -2179,4 +2179,12 @@ input[name="embed_url"]:-ms-input-placeholder {
|
|
2179 |
.media-embed .embed-media-settings .setting,
|
2180 |
.media-embed .embed-link-settings {
|
2181 |
display: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2182 |
}
|
14 |
margin: 0;
|
15 |
}
|
16 |
|
17 |
+
#wds_sliders_form table thead th {
|
18 |
line-height: 1;
|
19 |
}
|
20 |
|
1968 |
padding: 0;
|
1969 |
}
|
1970 |
|
1971 |
+
#wds_sliders_form .wd-group label {
|
1972 |
margin-right: 5px;
|
1973 |
}
|
1974 |
|
1975 |
+
#wds_sliders_form .wd-group input[type=radio] {
|
1976 |
margin: 0px;
|
1977 |
}
|
1978 |
|
2179 |
.media-embed .embed-media-settings .setting,
|
2180 |
.media-embed .embed-link-settings {
|
2181 |
display: none;
|
2182 |
+
}
|
2183 |
+
|
2184 |
+
div.wd-notice-margin {
|
2185 |
+
margin: 5px 0;
|
2186 |
+
}
|
2187 |
+
.wd-form .wd-check-all {
|
2188 |
+
float: left;
|
2189 |
+
margin: 1px 6px 0 0;
|
2190 |
}
|
demo_sliders/demo_sliders.php
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
<?php
|
2 |
if( isset($_REQUEST['wds_import_submit']) && ! empty($_FILES['fileimport']) ) {
|
3 |
-
require_once(
|
4 |
global $wpdb;
|
5 |
-
global $WD_S_UPLOAD_DIR;
|
6 |
$flag = FALSE;
|
7 |
$file = $_FILES['fileimport'];
|
8 |
-
$dest_dir = ABSPATH .
|
9 |
if ( move_uploaded_file($file["tmp_name"], $dest_dir . $file["name"]) ) {
|
10 |
$zip = zip_open($dest_dir . $file["name"]);
|
11 |
if ( $zip ) {
|
@@ -44,12 +43,12 @@ if( isset($_REQUEST['wds_import_submit']) && ! empty($_FILES['fileimport']) ) {
|
|
44 |
foreach ( $sliders as $slider ) {
|
45 |
foreach ( $slider as $key_slider => $value_slider ) {
|
46 |
$flag = TRUE;
|
47 |
-
if ( strpos($value_slider["value"],
|
48 |
-
$slider_fields[$key_slider] = trim(str_replace(
|
49 |
$slider_fields[$key_slider] = trim(str_replace(site_url(), '{site_url}', $slider_fields[$key_slider]));
|
50 |
}
|
51 |
-
elseif ( strpos($value_slider["value"],
|
52 |
-
$slider_fields[$key_slider] = trim(str_replace(
|
53 |
$slider_fields[$key_slider] = trim(str_replace(site_url(), '{site_url}', $slider_fields[$key_slider]));
|
54 |
}
|
55 |
elseif ( $key_slider != "slide" && $key_slider != "id" ) {
|
@@ -79,20 +78,20 @@ if( isset($_REQUEST['wds_import_submit']) && ! empty($_FILES['fileimport']) ) {
|
|
79 |
$slider_id = $wpdb->insert_id;
|
80 |
foreach ( $slides as $slide ) {
|
81 |
$slide["slide"]["slider_id"] = $slider_id;
|
82 |
-
if ( strpos($slide["slide"]["image_url"],
|
83 |
-
$slide["slide"]["image_url"] = trim(str_replace(
|
84 |
$slide["slide"]["image_url"] = trim(str_replace(site_url(), '{site_url}', $slide["slide"]["image_url"]));
|
85 |
}
|
86 |
-
if ( strpos($slide["slide"]["thumb_url"],
|
87 |
-
$slide["slide"]["thumb_url"] = trim(str_replace(
|
88 |
$slide["slide"]["thumb_url"] = trim(str_replace(site_url(), '{site_url}', $slide["slide"]["thumb_url"]));
|
89 |
}
|
90 |
$wpdb->insert($wpdb->prefix . 'wdsslide', $slide["slide"]);
|
91 |
$slide_id = $wpdb->insert_id;
|
92 |
foreach ( $slide["layers"] as $layer ) {
|
93 |
$layer["slide_id"] = $slide_id;
|
94 |
-
if ( strpos($layer["image_url"],
|
95 |
-
$layer["image_url"] = trim(str_replace(
|
96 |
$layer["image_url"] = trim(str_replace(site_url(), '{site_url}', $layer["image_url"]));
|
97 |
}
|
98 |
$wpdb->insert($wpdb->prefix . 'wdslayer', $layer);
|
@@ -122,16 +121,16 @@ if( isset($_REQUEST['wds_import_submit']) && ! empty($_FILES['fileimport']) ) {
|
|
122 |
fclose($handlethumb);
|
123 |
}
|
124 |
}
|
125 |
-
elseif ( strpos($zip_name,
|
126 |
-
$zip_name = str_replace(
|
127 |
$zip_name = get_unique_file_name($zip_name, $dest_dir . '/import/arrows/thumb/', $zip_name);
|
128 |
if ( $handlethumb = fopen($dest_dir . '/import/arrows/thumb/' . $zip_name, "w") ) {
|
129 |
fwrite($handlethumb, $zip_r);
|
130 |
fclose($handlethumb);
|
131 |
}
|
132 |
}
|
133 |
-
elseif ( strpos($zip_name,
|
134 |
-
$zip_name = str_replace(
|
135 |
$zip_name = get_unique_file_name($zip_name, $dest_dir . '/import/arrows/.original/', $zip_name);
|
136 |
if ( $handleorg = fopen($dest_dir . '/import/arrows/.original/' . $zip_name, "w") ) {
|
137 |
fwrite($handleorg, $zip_r);
|
@@ -185,61 +184,65 @@ function get_unique_file_name($filename, $foldername, $zip_name) {
|
|
185 |
|
186 |
function spider_demo_sliders() {
|
187 |
$demo_sliders = array(
|
188 |
-
'layer-slider' => __('LAYER SLIDER',
|
189 |
-
'slider-pro-2' => __('LAYER SLIDER 2',
|
190 |
-
'slide1' => __('MULTY LAYER SLIDER',
|
191 |
-
'news-site-or-blog' => __('NEWS SITE OR BLOG SLIDER',
|
192 |
-
'post-feed-demo' => __('POST FEED DEMO SLIDER',
|
193 |
-
'online-store' => __('ONLINE STORE SLIDER',
|
194 |
-
'portfolio' => __('PORTFOLIO SLIDER',
|
195 |
-
'slide2' => __('3D FULL-WIDTH SLIDER',
|
196 |
-
'slide3' => __('FILMSTRIP SLIDER',
|
197 |
-
'slide4' => __('ZOOM EFFECT SLIDER',
|
198 |
-
'wordpress-slider-wd-carusel' => __('CAROUSEL SLIDER',
|
199 |
-
'parallax' => __('PARALLAX SLIDER',
|
200 |
-
'hotspot' => __('HOTSPOT SLIDER',
|
201 |
-
'video-slider' => __('VIDEO SLIDER SLIDER',
|
202 |
);
|
203 |
?>
|
204 |
-
|
205 |
<div id="main_featured_sliders_page">
|
206 |
<div class="wd-table">
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
</
|
241 |
-
|
|
|
|
|
|
|
|
|
242 |
</div>
|
|
|
243 |
</div>
|
244 |
</div>
|
245 |
<?php
|
1 |
<?php
|
2 |
if( isset($_REQUEST['wds_import_submit']) && ! empty($_FILES['fileimport']) ) {
|
3 |
+
require_once(WDS()->plugin_dir . '/framework/WDW_S_Library.php');
|
4 |
global $wpdb;
|
|
|
5 |
$flag = FALSE;
|
6 |
$file = $_FILES['fileimport'];
|
7 |
+
$dest_dir = ABSPATH . WDS()->upload_dir;
|
8 |
if ( move_uploaded_file($file["tmp_name"], $dest_dir . $file["name"]) ) {
|
9 |
$zip = zip_open($dest_dir . $file["name"]);
|
10 |
if ( $zip ) {
|
43 |
foreach ( $sliders as $slider ) {
|
44 |
foreach ( $slider as $key_slider => $value_slider ) {
|
45 |
$flag = TRUE;
|
46 |
+
if ( strpos($value_slider["value"], WDS()->site_url_buttons_placeholder) === 0 ) {
|
47 |
+
$slider_fields[$key_slider] = trim(str_replace(WDS()->site_url_buttons_placeholder, $dest_url . '/import/arrows/', $value_slider["value"]));
|
48 |
$slider_fields[$key_slider] = trim(str_replace(site_url(), '{site_url}', $slider_fields[$key_slider]));
|
49 |
}
|
50 |
+
elseif ( strpos($value_slider["value"], WDS()->site_url_placeholder) === 0 ) {
|
51 |
+
$slider_fields[$key_slider] = trim(str_replace(WDS()->site_url_placeholder, site_url(), $value_slider["value"]));
|
52 |
$slider_fields[$key_slider] = trim(str_replace(site_url(), '{site_url}', $slider_fields[$key_slider]));
|
53 |
}
|
54 |
elseif ( $key_slider != "slide" && $key_slider != "id" ) {
|
78 |
$slider_id = $wpdb->insert_id;
|
79 |
foreach ( $slides as $slide ) {
|
80 |
$slide["slide"]["slider_id"] = $slider_id;
|
81 |
+
if ( strpos($slide["slide"]["image_url"], WDS()->site_url_placeholder) === 0 ) {
|
82 |
+
$slide["slide"]["image_url"] = trim(str_replace(WDS()->site_url_placeholder, $dest_url . '/import/', $slide["slide"]["image_url"]));
|
83 |
$slide["slide"]["image_url"] = trim(str_replace(site_url(), '{site_url}', $slide["slide"]["image_url"]));
|
84 |
}
|
85 |
+
if ( strpos($slide["slide"]["thumb_url"], WDS()->site_url_placeholder) === 0 ) {
|
86 |
+
$slide["slide"]["thumb_url"] = trim(str_replace(WDS()->site_url_placeholder, $dest_url . '/import/thumb/', $slide["slide"]["thumb_url"]));
|
87 |
$slide["slide"]["thumb_url"] = trim(str_replace(site_url(), '{site_url}', $slide["slide"]["thumb_url"]));
|
88 |
}
|
89 |
$wpdb->insert($wpdb->prefix . 'wdsslide', $slide["slide"]);
|
90 |
$slide_id = $wpdb->insert_id;
|
91 |
foreach ( $slide["layers"] as $layer ) {
|
92 |
$layer["slide_id"] = $slide_id;
|
93 |
+
if ( strpos($layer["image_url"], WDS()->site_url_placeholder) === 0 ) {
|
94 |
+
$layer["image_url"] = trim(str_replace(WDS()->site_url_placeholder, $dest_url . '/import/', $layer["image_url"]));
|
95 |
$layer["image_url"] = trim(str_replace(site_url(), '{site_url}', $layer["image_url"]));
|
96 |
}
|
97 |
$wpdb->insert($wpdb->prefix . 'wdslayer', $layer);
|
121 |
fclose($handlethumb);
|
122 |
}
|
123 |
}
|
124 |
+
elseif ( strpos($zip_name, WDS()->site_url_buttons_placeholder . '_thumb_') === 0 ) {
|
125 |
+
$zip_name = str_replace(WDS()->site_url_buttons_placeholder . '_thumb_', '', $zip_name);
|
126 |
$zip_name = get_unique_file_name($zip_name, $dest_dir . '/import/arrows/thumb/', $zip_name);
|
127 |
if ( $handlethumb = fopen($dest_dir . '/import/arrows/thumb/' . $zip_name, "w") ) {
|
128 |
fwrite($handlethumb, $zip_r);
|
129 |
fclose($handlethumb);
|
130 |
}
|
131 |
}
|
132 |
+
elseif ( strpos($zip_name, WDS()->site_url_buttons_placeholder) === 0 ) {
|
133 |
+
$zip_name = str_replace(WDS()->site_url_buttons_placeholder, '', $zip_name);
|
134 |
$zip_name = get_unique_file_name($zip_name, $dest_dir . '/import/arrows/.original/', $zip_name);
|
135 |
if ( $handleorg = fopen($dest_dir . '/import/arrows/.original/' . $zip_name, "w") ) {
|
136 |
fwrite($handleorg, $zip_r);
|
184 |
|
185 |
function spider_demo_sliders() {
|
186 |
$demo_sliders = array(
|
187 |
+
'layer-slider' => __('LAYER SLIDER', WDS()->prefix),
|
188 |
+
'slider-pro-2' => __('LAYER SLIDER 2', WDS()->prefix),
|
189 |
+
'slide1' => __('MULTY LAYER SLIDER', WDS()->prefix),
|
190 |
+
'news-site-or-blog' => __('NEWS SITE OR BLOG SLIDER', WDS()->prefix),
|
191 |
+
'post-feed-demo' => __('POST FEED DEMO SLIDER', WDS()->prefix),
|
192 |
+
'online-store' => __('ONLINE STORE SLIDER', WDS()->prefix),
|
193 |
+
'portfolio' => __('PORTFOLIO SLIDER', WDS()->prefix),
|
194 |
+
'slide2' => __('3D FULL-WIDTH SLIDER', WDS()->prefix),
|
195 |
+
'slide3' => __('FILMSTRIP SLIDER', WDS()->prefix),
|
196 |
+
'slide4' => __('ZOOM EFFECT SLIDER', WDS()->prefix),
|
197 |
+
'wordpress-slider-wd-carusel' => __('CAROUSEL SLIDER', WDS()->prefix),
|
198 |
+
'parallax' => __('PARALLAX SLIDER', WDS()->prefix),
|
199 |
+
'hotspot' => __('HOTSPOT SLIDER', WDS()->prefix),
|
200 |
+
'video-slider' => __('VIDEO SLIDER SLIDER', WDS()->prefix),
|
201 |
);
|
202 |
?>
|
|
|
203 |
<div id="main_featured_sliders_page">
|
204 |
<div class="wd-table">
|
205 |
+
<div class="wd-table-col wd-table-col-50 wd-table-col-left">
|
206 |
+
<div class="wd-box-section">
|
207 |
+
<div class="wd-box-title">
|
208 |
+
<strong><?php _e('Import a slider', WDS()->prefix); ?></strong>
|
209 |
+
</div>
|
210 |
+
<div class="wd-box-content">
|
211 |
+
<?php
|
212 |
+
if ( WDS()->is_free ) {
|
213 |
+
echo WDW_S_Library::message_id(0, __('This functionality is disabled in free version.', WDS()->prefix), 'error wd-notice-margin');
|
214 |
+
}
|
215 |
+
?>
|
216 |
+
<form method="post" enctype="multipart/form-data">
|
217 |
+
<div class="wd-group">
|
218 |
+
<input <?php echo WDS()->is_free ? 'disabled="disabled"' : ''; ?> type="file" name="fileimport" id="fileimport">
|
219 |
+
<input <?php echo WDS()->is_free ? 'disabled="disabled"' : ''; ?> type="submit" name="wds_import_submit" class="button button-primary" onclick="<?php echo(WDS()->is_free ? 'alert(\'' . addslashes(__('This functionality is disabled in free version.', WDS()->prefix)) . '\'); return false;' : 'if(!wds_getfileextension(document.getElementById(\'fileimport\').value)){ return false; }'); ?>" value="<?php _e('Import', WDS()->prefix); ?>">
|
220 |
+
<p class="description"><?php _e('Browse the .zip file of the slider.', WDS()->prefix); ?></p>
|
221 |
+
</div>
|
222 |
+
</form>
|
223 |
+
</div>
|
224 |
+
</div>
|
225 |
+
<div class="wd-box-section">
|
226 |
+
<div class="wd-box-title">
|
227 |
+
<strong><?php _e('Download sliders', WDS()->prefix); ?></strong>
|
228 |
+
</div>
|
229 |
+
<div class="wd-box-content">
|
230 |
+
<p><?php _e('You can download and import these demo sliders to your website using Import feature of Slider WD.', WDS()->prefix); ?></p>
|
231 |
+
<ul id="featured-sliders-list">
|
232 |
+
<?php
|
233 |
+
foreach ( $demo_sliders as $key => $demo_slider ) {
|
234 |
+
?>
|
235 |
+
<li class="<?php echo $key; ?>">
|
236 |
+
<div class="product"></div>
|
237 |
+
<a target="_blank" href="http://wpdemo.web-dorado.com/<?php echo $key; ?>" class="download"><span><?php _e('DOWNLOAD', WDS()->prefix); ?><?php echo $demo_slider; ?></span></a>
|
238 |
+
</li>
|
239 |
+
<?php
|
240 |
+
}
|
241 |
+
?>
|
242 |
+
</ul>
|
243 |
+
</div>
|
244 |
</div>
|
245 |
+
</div>
|
246 |
</div>
|
247 |
</div>
|
248 |
<?php
|
demo_sliders/style.css
CHANGED
@@ -68,4 +68,8 @@
|
|
68 |
#featured-sliders-list .download:hover {
|
69 |
background: #23282D url("images/down_hover.png") no-repeat 6px center;
|
70 |
color: #DDDEDE;
|
|
|
|
|
|
|
|
|
71 |
}
|
68 |
#featured-sliders-list .download:hover {
|
69 |
background: #23282D url("images/down_hover.png") no-repeat 6px center;
|
70 |
color: #DDDEDE;
|
71 |
+
}
|
72 |
+
|
73 |
+
div.wd-notice-margin {
|
74 |
+
margin: 5px 0;
|
75 |
}
|
filemanager/UploadHandler.php
CHANGED
@@ -19,7 +19,7 @@ else {
|
|
19 |
die('Access Denied');
|
20 |
}
|
21 |
|
22 |
-
require_once(
|
23 |
$controller = new FilemanagerController();
|
24 |
|
25 |
$upload_handler = new wds_UploadHandler(array(
|
19 |
die('Access Denied');
|
20 |
}
|
21 |
|
22 |
+
require_once(WDS()->plugin_dir . '/filemanager/controller.php');
|
23 |
$controller = new FilemanagerController();
|
24 |
|
25 |
$upload_handler = new wds_UploadHandler(array(
|
filemanager/controller.php
CHANGED
@@ -11,12 +11,11 @@ class FilemanagerController {
|
|
11 |
public $uploads_url;
|
12 |
|
13 |
public function __construct() {
|
14 |
-
|
15 |
-
$this->uploads_dir = ABSPATH . $WD_S_UPLOAD_DIR;
|
16 |
if (file_exists($this->uploads_dir) == FALSE) {
|
17 |
mkdir($this->uploads_dir);
|
18 |
}
|
19 |
-
$this->uploads_url = site_url() . '/' .
|
20 |
}
|
21 |
|
22 |
public function execute() {
|
@@ -38,10 +37,10 @@ class FilemanagerController {
|
|
38 |
}
|
39 |
|
40 |
public function display() {
|
41 |
-
require_once
|
42 |
$model = new FilemanagerModel($this);
|
43 |
|
44 |
-
require_once
|
45 |
$view = new FilemanagerView($this, $model);
|
46 |
$view->display();
|
47 |
}
|
@@ -64,7 +63,7 @@ class FilemanagerController {
|
|
64 |
$new_dir_path = $this->esc_dir($new_dir_path);
|
65 |
|
66 |
if (file_exists($new_dir_path) == true) {
|
67 |
-
$msg = __("Directory already exists.",
|
68 |
}
|
69 |
else {
|
70 |
$msg = '';
|
@@ -112,23 +111,23 @@ class FilemanagerController {
|
|
112 |
$msg = '';
|
113 |
|
114 |
if (file_exists($file_path) == false) {
|
115 |
-
$msg = __("File doesn't exist.",
|
116 |
}
|
117 |
elseif (is_dir($file_path) == true) {
|
118 |
if (rename($file_path, $cur_dir_path . '/' . sanitize_file_name($file_new_name)) == false) {
|
119 |
-
$msg = __("Can't rename the file.",
|
120 |
}
|
121 |
}
|
122 |
elseif ((strrpos($file_name, '.') !== false)) {
|
123 |
$file_extension = substr($file_name, strrpos($file_name, '.') + 1);
|
124 |
if (rename($file_path, $cur_dir_path . '/' . $file_new_name . '.' . $file_extension) == false) {
|
125 |
-
$msg = __("Can't rename the file.",
|
126 |
}
|
127 |
rename($thumb_file_path, $cur_dir_path . '/thumb/' . $file_new_name . '.' . $file_extension);
|
128 |
rename($original_file_path, $cur_dir_path . '/.original/' . $file_new_name . '.' . $file_extension);
|
129 |
}
|
130 |
else {
|
131 |
-
$msg = __("Can't rename the file.",
|
132 |
}
|
133 |
$_REQUEST['file_names'] = '';
|
134 |
|
@@ -168,7 +167,7 @@ class FilemanagerController {
|
|
168 |
$thumb_file_path = $cur_dir_path . '/thumb/' . $file_name;
|
169 |
$original_file_path = $cur_dir_path . '/.original/' . $file_name;
|
170 |
if (file_exists($file_path) == false) {
|
171 |
-
$msg = __("Some of the files couldn't be removed.",
|
172 |
}
|
173 |
else {
|
174 |
$this->remove_file_dir($file_path);
|
@@ -226,7 +225,7 @@ class FilemanagerController {
|
|
226 |
$file_name = str_replace('../', '', $file_name);
|
227 |
$src = $src_dir . '/' . $file_name;
|
228 |
if (file_exists($src) == false) {
|
229 |
-
$msg = __("Failed to copy some of the files.",
|
230 |
$msg .= $file_name;
|
231 |
continue;
|
232 |
}
|
@@ -256,7 +255,7 @@ class FilemanagerController {
|
|
256 |
}
|
257 |
|
258 |
if (!$this->copy_file_dir($src, $dest)) {
|
259 |
-
$msg = __("Failed to copy some of the files.",
|
260 |
}
|
261 |
if (!is_dir($src_dir . '/' . $file_name)) {
|
262 |
$this->copy_file_dir($thumb_src, $thumb_dest);
|
@@ -284,7 +283,7 @@ class FilemanagerController {
|
|
284 |
}
|
285 |
}
|
286 |
if ((file_exists($src) == false) || (file_exists($dest) == true) || (!rename($src, $dest))) {
|
287 |
-
$msg = __("Failed to move some of the files.",
|
288 |
}
|
289 |
if (!is_dir($src_dir . '/' . $file_name)) {
|
290 |
rename($thumb_src, $thumb_dest);
|
11 |
public $uploads_url;
|
12 |
|
13 |
public function __construct() {
|
14 |
+
$this->uploads_dir = ABSPATH . WDS()->upload_dir;
|
|
|
15 |
if (file_exists($this->uploads_dir) == FALSE) {
|
16 |
mkdir($this->uploads_dir);
|
17 |
}
|
18 |
+
$this->uploads_url = site_url() . '/' . WDS()->upload_dir;
|
19 |
}
|
20 |
|
21 |
public function execute() {
|
37 |
}
|
38 |
|
39 |
public function display() {
|
40 |
+
require_once WDS()->plugin_dir . '/filemanager/model.php';
|
41 |
$model = new FilemanagerModel($this);
|
42 |
|
43 |
+
require_once WDS()->plugin_dir . '/filemanager/view.php';
|
44 |
$view = new FilemanagerView($this, $model);
|
45 |
$view->display();
|
46 |
}
|
63 |
$new_dir_path = $this->esc_dir($new_dir_path);
|
64 |
|
65 |
if (file_exists($new_dir_path) == true) {
|
66 |
+
$msg = __("Directory already exists.", WDS()->prefix);
|
67 |
}
|
68 |
else {
|
69 |
$msg = '';
|
111 |
$msg = '';
|
112 |
|
113 |
if (file_exists($file_path) == false) {
|
114 |
+
$msg = __("File doesn't exist.", WDS()->prefix);
|
115 |
}
|
116 |
elseif (is_dir($file_path) == true) {
|
117 |
if (rename($file_path, $cur_dir_path . '/' . sanitize_file_name($file_new_name)) == false) {
|
118 |
+
$msg = __("Can't rename the file.", WDS()->prefix);
|
119 |
}
|
120 |
}
|
121 |
elseif ((strrpos($file_name, '.') !== false)) {
|
122 |
$file_extension = substr($file_name, strrpos($file_name, '.') + 1);
|
123 |
if (rename($file_path, $cur_dir_path . '/' . $file_new_name . '.' . $file_extension) == false) {
|
124 |
+
$msg = __("Can't rename the file.", WDS()->prefix);
|
125 |
}
|
126 |
rename($thumb_file_path, $cur_dir_path . '/thumb/' . $file_new_name . '.' . $file_extension);
|
127 |
rename($original_file_path, $cur_dir_path . '/.original/' . $file_new_name . '.' . $file_extension);
|
128 |
}
|
129 |
else {
|
130 |
+
$msg = __("Can't rename the file.", WDS()->prefix);
|
131 |
}
|
132 |
$_REQUEST['file_names'] = '';
|
133 |
|
167 |
$thumb_file_path = $cur_dir_path . '/thumb/' . $file_name;
|
168 |
$original_file_path = $cur_dir_path . '/.original/' . $file_name;
|
169 |
if (file_exists($file_path) == false) {
|
170 |
+
$msg = __("Some of the files couldn't be removed.", WDS()->prefix);
|
171 |
}
|
172 |
else {
|
173 |
$this->remove_file_dir($file_path);
|
225 |
$file_name = str_replace('../', '', $file_name);
|
226 |
$src = $src_dir . '/' . $file_name;
|
227 |
if (file_exists($src) == false) {
|
228 |
+
$msg = __("Failed to copy some of the files.", WDS()->prefix);
|
229 |
$msg .= $file_name;
|
230 |
continue;
|
231 |
}
|
255 |
}
|
256 |
|
257 |
if (!$this->copy_file_dir($src, $dest)) {
|
258 |
+
$msg = __("Failed to copy some of the files.", WDS()->prefix);
|
259 |
}
|
260 |
if (!is_dir($src_dir . '/' . $file_name)) {
|
261 |
$this->copy_file_dir($thumb_src, $thumb_dest);
|
283 |
}
|
284 |
}
|
285 |
if ((file_exists($src) == false) || (file_exists($dest) == true) || (!rename($src, $dest))) {
|
286 |
+
$msg = __("Failed to move some of the files.", WDS()->prefix);
|
287 |
}
|
288 |
if (!is_dir($src_dir . '/' . $file_name)) {
|
289 |
rename($thumb_src, $thumb_dest);
|
filemanager/model.php
CHANGED
@@ -60,8 +60,7 @@ class FilemanagerModel {
|
|
60 |
|
61 |
$components = array();
|
62 |
$component = array();
|
63 |
-
|
64 |
-
$component['name'] = $WD_S_UPLOAD_DIR;
|
65 |
$component['path'] = $path;
|
66 |
$components[] = $component;
|
67 |
for ($i = 0; $i < count($dir_names); $i++) {
|
@@ -79,8 +78,8 @@ class FilemanagerModel {
|
|
79 |
}
|
80 |
|
81 |
function get_files($sort_by, $sort_order) {
|
82 |
-
$icons_dir_path =
|
83 |
-
$icons_dir_url =
|
84 |
$valid_types = explode(',', (isset($_REQUEST['extensions']) ? esc_html($_REQUEST['extensions']) : 'jpg,jpeg,png,gif'));
|
85 |
$image_for = (isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : 'add_slides');
|
86 |
$dir = (isset($_REQUEST['dir']) ? '/' . htmlspecialchars_decode(stripslashes(esc_html(str_replace('../', '', $_REQUEST['dir']))), ENT_COMPAT | ENT_QUOTES) : '');
|
60 |
|
61 |
$components = array();
|
62 |
$component = array();
|
63 |
+
$component['name'] = WDS()->upload_dir;
|
|
|
64 |
$component['path'] = $path;
|
65 |
$components[] = $component;
|
66 |
for ($i = 0; $i < count($dir_names); $i++) {
|
78 |
}
|
79 |
|
80 |
function get_files($sort_by, $sort_order) {
|
81 |
+
$icons_dir_path = WDS()->plugin_dir . '/filemanager/images/file_icons';
|
82 |
+
$icons_dir_url = WDS()->plugin_url . '/filemanager/images/file_icons';
|
83 |
$valid_types = explode(',', (isset($_REQUEST['extensions']) ? esc_html($_REQUEST['extensions']) : 'jpg,jpeg,png,gif'));
|
84 |
$image_for = (isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : 'add_slides');
|
85 |
$dir = (isset($_REQUEST['dir']) ? '/' . htmlspecialchars_decode(stripslashes(esc_html(str_replace('../', '', $_REQUEST['dir']))), ENT_COMPAT | ENT_QUOTES) : '');
|
filemanager/view.php
CHANGED
@@ -48,13 +48,13 @@ class FilemanagerView {
|
|
48 |
$clipboard_files = $file_manager_data['session_data']['clipboard_files'];
|
49 |
$clipboard_src = $file_manager_data['session_data']['clipboard_src'];
|
50 |
$clipboard_dest = $file_manager_data['session_data']['clipboard_dest'];
|
51 |
-
$icons_dir_url =
|
52 |
$sort_icon = $icons_dir_url . '/' . $sort_order;
|
53 |
wp_print_scripts('jquery');
|
54 |
wp_print_scripts('jquery-ui-widget');
|
55 |
?>
|
56 |
-
<script src="<?php echo
|
57 |
-
<script src="<?php echo
|
58 |
<script>
|
59 |
var ajaxurl = "<?php echo wp_nonce_url( admin_url('admin-ajax.php'), 'addImage', 'nonce_wd' ); ?>";
|
60 |
var DS = "<?php echo addslashes('/'); ?>";
|
@@ -78,19 +78,19 @@ class FilemanagerView {
|
|
78 |
var wdb_all_files = <?php echo isset($file_manager_data["all_files"]) && json_encode($file_manager_data["all_files"]) ? json_encode($file_manager_data["all_files"]) : "''"; ?>;
|
79 |
var element_load_count = <?php echo isset($file_manager_data["element_load_count"]) && json_encode($file_manager_data["element_load_count"]) ? json_encode($file_manager_data["element_load_count"]) : "''"; ?>;
|
80 |
</script>
|
81 |
-
<script src="<?php echo
|
82 |
-
<link href="<?php echo
|
83 |
-
<link href="<?php echo
|
84 |
<?php
|
85 |
switch ($items_view) {
|
86 |
case 'list':
|
87 |
?>
|
88 |
-
<link href="<?php echo
|
89 |
<?php
|
90 |
break;
|
91 |
case 'thumbs':
|
92 |
?>
|
93 |
-
<link href="<?php echo
|
94 |
<?php
|
95 |
break;
|
96 |
}
|
@@ -101,7 +101,7 @@ class FilemanagerView {
|
|
101 |
<div id="wrapper">
|
102 |
<div id="opacity_div" style="background-color: rgba(0, 0, 0, 0.2); position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99998;"></div>
|
103 |
<div id="loading_div" style="text-align: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;">
|
104 |
-
<img src="<?php echo
|
105 |
</div>
|
106 |
<div id="file_manager">
|
107 |
<div class="ctrls_bar ctrls_bar_header">
|
@@ -117,7 +117,7 @@ class FilemanagerView {
|
|
117 |
<span class="ctrl_bar_divider"></span>
|
118 |
<span class="ctrl_bar_search_upload">
|
119 |
<span class="ctrl_bar_btn">
|
120 |
-
<a id="upload_images" class="ctrl_bar_btn wd-btn wd-btn-primary wd-btn-icon wd-btn-uplaod" onclick="onBtnShowUploaderClick(event, this);"><?php _e('Upload files',
|
121 |
</span>
|
122 |
<span class="ctrl_bar_divider"></span>
|
123 |
<span id="search_by_name" class="ctrl_bar_btn">
|
@@ -146,9 +146,9 @@ class FilemanagerView {
|
|
146 |
<div id="explorer_header_wrapper">
|
147 |
<div id="explorer_header_container">
|
148 |
<div id="explorer_header">
|
149 |
-
<span class="item_numbering"><?php echo $items_view == 'thumbs' ? __('Order by:',
|
150 |
<span class="item_icon"></span>
|
151 |
-
<span class="item_name" title="<?php _e('Click to sort by name',
|
152 |
<span class="clickable" onclick="onNameHeaderClick(event, this);">
|
153 |
<?php
|
154 |
echo 'Name';
|
@@ -160,7 +160,7 @@ class FilemanagerView {
|
|
160 |
?>
|
161 |
</span>
|
162 |
</span>
|
163 |
-
<span class="item_size" title="<?php _e('Click to sort by size',
|
164 |
<span class="clickable" onclick="onSizeHeaderClick(event, this);">
|
165 |
<?php
|
166 |
echo 'Size';
|
@@ -172,7 +172,7 @@ class FilemanagerView {
|
|
172 |
?>
|
173 |
</span>
|
174 |
</span>
|
175 |
-
<span class="item_date_modified" title="<?php _e('Click to sort by date modified',
|
176 |
<span class="clickable" onclick="onDateModifiedHeaderClick(event, this);">
|
177 |
<?php
|
178 |
echo 'Date modified';
|
@@ -245,7 +245,7 @@ class FilemanagerView {
|
|
245 |
</div>
|
246 |
<div class="ctrls_bar ctrls_bar_footer">
|
247 |
<div class="ctrls_left">
|
248 |
-
<a id="select_all_images" class="ctrl_bar_btn wd-btn wd-btn-primary wd-not-image none_select" onclick="onBtnSelectAllClick();"><?php _e('Select All',
|
249 |
</div>
|
250 |
<div class="ctrls_right">
|
251 |
<span id="file_names_span">
|
@@ -254,7 +254,7 @@ class FilemanagerView {
|
|
254 |
</span>
|
255 |
<a class="ctrl_bar_btn btn_open wd-btn wd-btn-primary wd-btn-icon-add wd-btn-add none_select" onclick="onBtnOpenClick(event, this);"><?php echo ((isset($_REQUEST['image_for']) && esc_html($_REQUEST['image_for']) == 'add_slides') ? 'Add selected images to slider' : 'Add image to slider'); ?></a>
|
256 |
<span class="ctrl_bar_empty_devider"></span>
|
257 |
-
<a class="ctrl_bar_btn btn_cancel wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel none_select" onclick="onBtnCancelClick(event, this);"><?php _e('Cancel',
|
258 |
</div>
|
259 |
</div>
|
260 |
</div>
|
48 |
$clipboard_files = $file_manager_data['session_data']['clipboard_files'];
|
49 |
$clipboard_src = $file_manager_data['session_data']['clipboard_src'];
|
50 |
$clipboard_dest = $file_manager_data['session_data']['clipboard_dest'];
|
51 |
+
$icons_dir_url = WDS()->plugin_url . '/filemanager/images/file_icons';
|
52 |
$sort_icon = $icons_dir_url . '/' . $sort_order;
|
53 |
wp_print_scripts('jquery');
|
54 |
wp_print_scripts('jquery-ui-widget');
|
55 |
?>
|
56 |
+
<script src="<?php echo WDS()->plugin_url; ?>/filemanager/js/jq_uploader/jquery.iframe-transport.js"></script>
|
57 |
+
<script src="<?php echo WDS()->plugin_url; ?>/filemanager/js/jq_uploader/jquery.fileupload.js"></script>
|
58 |
<script>
|
59 |
var ajaxurl = "<?php echo wp_nonce_url( admin_url('admin-ajax.php'), 'addImage', 'nonce_wd' ); ?>";
|
60 |
var DS = "<?php echo addslashes('/'); ?>";
|
78 |
var wdb_all_files = <?php echo isset($file_manager_data["all_files"]) && json_encode($file_manager_data["all_files"]) ? json_encode($file_manager_data["all_files"]) : "''"; ?>;
|
79 |
var element_load_count = <?php echo isset($file_manager_data["element_load_count"]) && json_encode($file_manager_data["element_load_count"]) ? json_encode($file_manager_data["element_load_count"]) : "''"; ?>;
|
80 |
</script>
|
81 |
+
<script src="<?php echo WDS()->plugin_url; ?>/filemanager/js/default.js?ver=<?php echo WDS()->plugin_version; ?>"></script>
|
82 |
+
<link href="<?php echo WDS()->plugin_url; ?>/filemanager/css/default.css?ver=<?php echo WDS()->plugin_version; ?>" type="text/css" rel="stylesheet">
|
83 |
+
<link href="<?php echo WDS()->plugin_url; ?>/css/wds_tables_320.css?ver=<?php echo WDS()->plugin_version; ?>" type="text/css" rel="stylesheet">
|
84 |
<?php
|
85 |
switch ($items_view) {
|
86 |
case 'list':
|
87 |
?>
|
88 |
+
<link href="<?php echo WDS()->plugin_url; ?>/filemanager/css/default_view_list.css?ver=<?php echo WDS()->plugin_version; ?>" type="text/css" rel="stylesheet">
|
89 |
<?php
|
90 |
break;
|
91 |
case 'thumbs':
|
92 |
?>
|
93 |
+
<link href="<?php echo WDS()->plugin_url; ?>/filemanager/css/default_view_thumbs.css?ver=<?php echo WDS()->plugin_version; ?>" type="text/css" rel="stylesheet">
|
94 |
<?php
|
95 |
break;
|
96 |
}
|
101 |
<div id="wrapper">
|
102 |
<div id="opacity_div" style="background-color: rgba(0, 0, 0, 0.2); position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99998;"></div>
|
103 |
<div id="loading_div" style="text-align: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;">
|
104 |
+
<img src="<?php echo WDS()->plugin_url . '/images/ajax_loader_back.gif'; ?>" class="spider_ajax_loading">
|
105 |
</div>
|
106 |
<div id="file_manager">
|
107 |
<div class="ctrls_bar ctrls_bar_header">
|
117 |
<span class="ctrl_bar_divider"></span>
|
118 |
<span class="ctrl_bar_search_upload">
|
119 |
<span class="ctrl_bar_btn">
|
120 |
+
<a id="upload_images" class="ctrl_bar_btn wd-btn wd-btn-primary wd-btn-icon wd-btn-uplaod" onclick="onBtnShowUploaderClick(event, this);"><?php _e('Upload files', WDS()->prefix); ?></a>
|
121 |
</span>
|
122 |
<span class="ctrl_bar_divider"></span>
|
123 |
<span id="search_by_name" class="ctrl_bar_btn">
|
146 |
<div id="explorer_header_wrapper">
|
147 |
<div id="explorer_header_container">
|
148 |
<div id="explorer_header">
|
149 |
+
<span class="item_numbering"><?php echo $items_view == 'thumbs' ? __('Order by:', WDS()->prefix) : '#'; ?></span>
|
150 |
<span class="item_icon"></span>
|
151 |
+
<span class="item_name" title="<?php _e('Click to sort by name', WDS()->prefix); ?>">
|
152 |
<span class="clickable" onclick="onNameHeaderClick(event, this);">
|
153 |
<?php
|
154 |
echo 'Name';
|
160 |
?>
|
161 |
</span>
|
162 |
</span>
|
163 |
+
<span class="item_size" title="<?php _e('Click to sort by size', WDS()->prefix); ?>">
|
164 |
<span class="clickable" onclick="onSizeHeaderClick(event, this);">
|
165 |
<?php
|
166 |
echo 'Size';
|
172 |
?>
|
173 |
</span>
|
174 |
</span>
|
175 |
+
<span class="item_date_modified" title="<?php _e('Click to sort by date modified', WDS()->prefix); ?>">
|
176 |
<span class="clickable" onclick="onDateModifiedHeaderClick(event, this);">
|
177 |
<?php
|
178 |
echo 'Date modified';
|
245 |
</div>
|
246 |
<div class="ctrls_bar ctrls_bar_footer">
|
247 |
<div class="ctrls_left">
|
248 |
+
<a id="select_all_images" class="ctrl_bar_btn wd-btn wd-btn-primary wd-not-image none_select" onclick="onBtnSelectAllClick();"><?php _e('Select All', WDS()->prefix); ?></a>
|
249 |
</div>
|
250 |
<div class="ctrls_right">
|
251 |
<span id="file_names_span">
|
254 |
</span>
|
255 |
<a class="ctrl_bar_btn btn_open wd-btn wd-btn-primary wd-btn-icon-add wd-btn-add none_select" onclick="onBtnOpenClick(event, this);"><?php echo ((isset($_REQUEST['image_for']) && esc_html($_REQUEST['image_for']) == 'add_slides') ? 'Add selected images to slider' : 'Add image to slider'); ?></a>
|
256 |
<span class="ctrl_bar_empty_devider"></span>
|
257 |
+
<a class="ctrl_bar_btn btn_cancel wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel none_select" onclick="onBtnCancelClick(event, this);"><?php _e('Cancel', WDS()->prefix); ?></a>
|
258 |
</div>
|
259 |
</div>
|
260 |
</div>
|
framework/WDW_S_Library.php
CHANGED
@@ -4,20 +4,48 @@ class WDW_S_Library {
|
|
4 |
public function __construct() {
|
5 |
}
|
6 |
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
if (isset($_GET[$key])) {
|
9 |
$value = $_GET[$key];
|
10 |
}
|
11 |
elseif (isset($_POST[$key])) {
|
12 |
$value = $_POST[$key];
|
13 |
}
|
14 |
-
|
15 |
-
$value =
|
16 |
}
|
17 |
-
|
18 |
$value = $default_value;
|
19 |
}
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
}
|
22 |
|
23 |
/**
|
@@ -33,127 +61,142 @@ class WDW_S_Library {
|
|
33 |
if ($message_id) {
|
34 |
switch ( $message_id ) {
|
35 |
case 1: {
|
36 |
-
$message = __('Item Succesfully Saved.',
|
37 |
$type = 'wd_updated';
|
38 |
break;
|
39 |
}
|
40 |
case 2: {
|
41 |
-
$message = __('Error. Please install plugin again.',
|
42 |
$type = 'wd_error';
|
43 |
break;
|
44 |
}
|
45 |
case 3: {
|
46 |
-
$message = __('Item Succesfully Deleted.',
|
47 |
$type = 'wd_updated';
|
48 |
break;
|
49 |
}
|
50 |
case 4: {
|
51 |
-
$message = __("You can't delete default theme",
|
52 |
$type = 'wd_error';
|
53 |
break;
|
54 |
}
|
55 |
case 5: {
|
56 |
-
$message = __('Items Succesfully Deleted.',
|
57 |
$type = 'wd_updated';
|
58 |
break;
|
59 |
}
|
60 |
case 6: {
|
61 |
-
$message = __('You must select at least one item.',
|
62 |
$type = 'wd_error';
|
63 |
break;
|
64 |
}
|
65 |
case 7: {
|
66 |
-
$message = __('The item is successfully set as default.',
|
67 |
$type = 'wd_updated';
|
68 |
break;
|
69 |
}
|
70 |
case 8: {
|
71 |
-
$message = __('Options Succesfully Saved.',
|
72 |
$type = 'wd_updated';
|
73 |
break;
|
74 |
}
|
75 |
case 9: {
|
76 |
-
$message = __('Item Succesfully Published.',
|
77 |
$type = 'wd_updated';
|
78 |
break;
|
79 |
}
|
80 |
case 10: {
|
81 |
-
$message = __('Items Succesfully Published.',
|
82 |
$type = 'wd_updated';
|
83 |
break;
|
84 |
}
|
85 |
case 11: {
|
86 |
-
$message = __('Item Succesfully Unpublished.',
|
87 |
$type = 'wd_updated';
|
88 |
break;
|
89 |
}
|
90 |
case 12: {
|
91 |
-
$message = __('Items Succesfully Unpublished.',
|
92 |
$type = 'wd_updated';
|
93 |
break;
|
94 |
}
|
95 |
case 13: {
|
96 |
-
$message = __('Ordering Succesfully Saved.',
|
97 |
$type = 'wd_updated';
|
98 |
break;
|
99 |
}
|
100 |
case 14: {
|
101 |
-
$message = __('A term with the name provided already exists.',
|
102 |
$type = 'wd_error';
|
103 |
break;
|
104 |
}
|
105 |
case 15: {
|
106 |
-
$message = __('Name field is required.',
|
107 |
$type = 'wd_error';
|
108 |
break;
|
109 |
}
|
110 |
case 16: {
|
111 |
-
$message = __('The slug must be unique.',
|
112 |
$type = 'wd_error';
|
113 |
break;
|
114 |
}
|
115 |
case 17: {
|
116 |
-
$message = __('Changes must be saved.',
|
117 |
$type = 'wd_error';
|
118 |
break;
|
119 |
}
|
120 |
case 18: {
|
121 |
-
$message = __('You must set watermark type.',
|
122 |
$type = 'wd_error';
|
123 |
break;
|
124 |
}
|
125 |
case 19: {
|
126 |
-
$message = __('Watermark Succesfully Set.',
|
127 |
$type = 'wd_updated';
|
128 |
break;
|
129 |
}
|
130 |
case 20: {
|
131 |
-
$message = __('Watermark Succesfully Reset.',
|
132 |
$type = 'wd_updated';
|
133 |
break;
|
134 |
}
|
135 |
case 21: {
|
136 |
-
$message = __('Settings Succesfully Reset.',
|
137 |
$type = 'wd_updated';
|
138 |
break;
|
139 |
}
|
140 |
case 22: {
|
141 |
-
$message = __('Items Succesfully Set.',
|
142 |
$type = 'wd_updated';
|
143 |
break;
|
144 |
}
|
145 |
case 23: {
|
146 |
-
$message = __('Slider successfully imported.',
|
147 |
$type = 'wd_updated';
|
148 |
break;
|
149 |
}
|
150 |
case 24: {
|
151 |
-
$message = __('Unexpected error occurred.',
|
152 |
$type = 'wd_error';
|
153 |
break;
|
154 |
}
|
155 |
case 25: {
|
156 |
-
$message = __('You can include only posts with featured image.',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
$type = 'wd_updated';
|
158 |
break;
|
159 |
}
|
@@ -181,6 +224,38 @@ class WDW_S_Library {
|
|
181 |
return '<div style="width: 99%" class="spider_message"><div class="' . $type . '"><p><strong>'. $message .'</strong></p></div></div>';
|
182 |
}
|
183 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
public static function search($search_by, $search_value, $form_id) {
|
185 |
$search_position = ($form_id == 'posts_form') ? 'alignleft' : 'alignright';
|
186 |
?>
|
@@ -221,7 +296,7 @@ class WDW_S_Library {
|
|
221 |
name="search_value"
|
222 |
value="<?php echo esc_html($search_value); ?>"
|
223 |
onkeypress="spider_search(event)" />
|
224 |
-
<input type="button" value="<?php _e('Search',
|
225 |
</div>
|
226 |
</div>
|
227 |
<?php
|
@@ -317,8 +392,8 @@ class WDW_S_Library {
|
|
317 |
<?php
|
318 |
if ($count_items != 0) {
|
319 |
echo $count_items;
|
320 |
-
_e(' item',
|
321 |
-
echo (($count_items == 1) ? '' : __('s',
|
322 |
}
|
323 |
?>
|
324 |
</span>
|
@@ -342,8 +417,8 @@ class WDW_S_Library {
|
|
342 |
}
|
343 |
?>
|
344 |
<span class="pagination-links">
|
345 |
-
<a class="<?php echo $first_page; ?>" title="<?php _e('Go to the first page',
|
346 |
-
<a class="<?php echo $prev_page; ?>" title="<?php _e('Go to the previous page',
|
347 |
<span class="paging-input">
|
348 |
<span class="total-pages">
|
349 |
<input class="current_page" id="current_page" name="current_page" value="<?php echo $page_number; ?>" onkeypress="return check_enter_key(event)" title="Go to the page" type="text" size="1" />
|
@@ -352,8 +427,8 @@ class WDW_S_Library {
|
|
352 |
<?php echo $items_county; ?>
|
353 |
</span>
|
354 |
</span>
|
355 |
-
<a class="<?php echo $next_page ?>" title="<?php _e('Go to the next page',
|
356 |
-
<a class="<?php echo $last_page ?>" title="<?php _e('Go to the last page',
|
357 |
<?php
|
358 |
}
|
359 |
?>
|
@@ -427,8 +502,8 @@ class WDW_S_Library {
|
|
427 |
<?php
|
428 |
if ($count_items != 0) {
|
429 |
echo $count_items;
|
430 |
-
_e('item',
|
431 |
-
echo (($count_items == 1) ? '' : __('s',
|
432 |
}
|
433 |
?>
|
434 |
</span>
|
@@ -452,8 +527,8 @@ class WDW_S_Library {
|
|
452 |
}
|
453 |
?>
|
454 |
<span class="pagination-links">
|
455 |
-
<a class="<?php echo $first_page; ?>" title="<?php _e('Go to the first page',
|
456 |
-
<a class="<?php echo $prev_page; ?>" title="<?php _e('Go to the previous page',
|
457 |
<span class="paging-input">
|
458 |
<span class="total-pages">
|
459 |
<input class="current_page" id="current_page" name="current_page" value="<?php echo $page_number; ?>" onkeypress="return check_enter_key(event)" title="Go to the page" type="text" size="1" />
|
@@ -462,8 +537,8 @@ class WDW_S_Library {
|
|
462 |
<?php echo $items_county; ?>
|
463 |
</span>
|
464 |
</span>
|
465 |
-
<a class="<?php echo $next_page ?>" title="<?php _e('Go to the next page',
|
466 |
-
<a class="<?php echo $last_page ?>" title="<?php _e('Go to the last page',
|
467 |
<?php
|
468 |
}
|
469 |
?>
|
@@ -511,7 +586,7 @@ class WDW_S_Library {
|
|
511 |
$b = hexdec($b);
|
512 |
return 'rgba(' . $r . ', ' . $g . ', ' . $b . ', ' . number_format($transparent, 2, ".", "") . ')';
|
513 |
}
|
514 |
-
|
515 |
public static function spider_redirect($url) {
|
516 |
$url = html_entity_decode(wp_nonce_url($url, 'nonce_wd', 'nonce_wd'));
|
517 |
?>
|
@@ -548,14 +623,20 @@ class WDW_S_Library {
|
|
548 |
return $google_fonts;
|
549 |
}
|
550 |
|
551 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
552 |
$title = ($title != '') ? strtolower($title) : 'items';
|
553 |
ob_start();
|
554 |
-
|
555 |
-
<
|
556 |
-
|
557 |
-
</tr>
|
558 |
-
<?php
|
559 |
return ob_get_clean();
|
560 |
}
|
561 |
|
@@ -650,205 +731,212 @@ class WDW_S_Library {
|
|
650 |
public static function get_values() {
|
651 |
$values = array();
|
652 |
$values['aligns'] = array(
|
653 |
-
'left' => __('Left',
|
654 |
-
'center' => __('Center',
|
655 |
-
'right' => __('Right',
|
656 |
);
|
657 |
$values['border_styles'] = array(
|
658 |
-
'none' => __('None',
|
659 |
-
'solid' => __('Solid',
|
660 |
-
'dotted' => __('Dotted',
|
661 |
-
'dashed' => __('Dashed',
|
662 |
-
'double' => __('Double',
|
663 |
-
'groove' => __('Groove',
|
664 |
-
'ridge' => __('Ridge',
|
665 |
-
'inset' => __('Inset',
|
666 |
-
'outset' => __('Outset',
|
667 |
);
|
668 |
$values['button_styles'] = array(
|
669 |
-
'fa-chevron' => __('Chevron',
|
670 |
-
'fa-angle' => __('Angle',
|
671 |
-
'fa-angle-double' => __('Double',
|
672 |
);
|
673 |
$values['bull_styles'] = array(
|
674 |
-
'fa-circle-o' => __('Circle O',
|
675 |
-
'fa-circle' => __('Circle',
|
676 |
-
'fa-minus' => __('Minus',
|
677 |
-
'fa-square-o' => __('Square O',
|
678 |
-
'fa-square' => __('Square',
|
679 |
);
|
680 |
$values['font_families'] = WDW_S_Library::get_font_families();
|
681 |
$values['google_fonts'] = WDW_S_Library::get_google_fonts();
|
682 |
$values['font_weights'] = array(
|
683 |
-
'lighter' => __('Lighter',
|
684 |
-
'normal' => __('Normal',
|
685 |
-
'bold' => __('Bold',
|
686 |
);
|
687 |
$values['social_buttons'] = array(
|
688 |
-
'facebook' => __('Facebook',
|
689 |
-
'google-plus' => __('Google+',
|
690 |
-
'twitter' => __('Twitter',
|
691 |
-
'pinterest' => __('Pinterest',
|
692 |
-
'tumblr' => __('Tumblr',
|
693 |
);
|
694 |
$values['effects'] = array(
|
695 |
-
'none' => __('None',
|
696 |
-
'zoomFade' => __('Zoom Fade',
|
697 |
-
'parallelSlideH' => __('Parallel Slide Horizontal',
|
698 |
-
'parallelSlideV' => __('Parallel Slide Vertical',
|
699 |
-
'slic3DH' => __('Slice 3D Horizontal',
|
700 |
-
'slic3DV' => __('Slice 3D Vertical',
|
701 |
-
'slicR3DH' => __('Slice 3D Horizontal Random',
|
702 |
-
'slicR3DV' => __('Slice 3D Vertical Random',
|
703 |
-
'blindR' => __('Blind',
|
704 |
-
'tilesR' => __('Tiles',
|
705 |
-
'blockScaleR' => __('Block Scale Random',
|
706 |
-
'cubeH' => __('Cube Horizontal',
|
707 |
-
'cubeV' => __('Cube Vertical',
|
708 |
-
'cubeR' => __('Cube Random',
|
709 |
-
'fade' => __('Fade',
|
710 |
-
'sliceH' => __('Slice Horizontal',
|
711 |
-
'sliceV' => __('Slice Vertical',
|
712 |
-
'slideH' => __('Slide Horizontal',
|
713 |
-
'slideV' => __('Slide Vertical',
|
714 |
-
'scaleOut' => __('Scale Out',
|
715 |
-
'scaleIn' => __('Scale In',
|
716 |
-
'blockScale' => __('Block Scale',
|
717 |
-
'kaleidoscope' => __('Kaleidoscope',
|
718 |
-
'fan' => __('Fan',
|
719 |
-
'blindH' => __('Blind Horizontal',
|
720 |
-
'blindV' => __('Blind Vertical',
|
721 |
-
'random' => __('Random',
|
722 |
-
'3Drandom' => __('3D Random',
|
723 |
);
|
724 |
$values['layer_effects_in'] = array(
|
725 |
-
'none' => __('None',
|
726 |
-
'bounce' => __('Bounce',
|
727 |
-
'flash' => __('Flash',
|
728 |
-
'pulse' => __('Pulse',
|
729 |
-
'rubberBand' => __('RubberBand',
|
730 |
-
'shake' => __('Shake',
|
731 |
-
'swing' => __('Swing',
|
732 |
-
'tada' => __('Tada',
|
733 |
-
'wobble' => __('Wobble',
|
734 |
-
'hinge' => __('Hinge',
|
735 |
-
|
736 |
-
'lightSpeedIn' => __('LightSpeedIn',
|
737 |
-
'rollIn' => __('RollIn',
|
738 |
-
|
739 |
-
'bounceIn' => __('BounceIn',
|
740 |
-
'bounceInDown' => __('BounceInDown',
|
741 |
-
'bounceInLeft' => __('BounceInLeft',
|
742 |
-
'bounceInRight' => __('BounceInRight',
|
743 |
-
'bounceInUp' => __('BounceInUp',
|
744 |
-
|
745 |
-
'fadeIn' => __('FadeIn',
|
746 |
-
'fadeInDown' => __('FadeInDown',
|
747 |
-
'fadeInDownBig' => __('FadeInDownBig',
|
748 |
-
'fadeInLeft' => __('FadeInLeft',
|
749 |
-
'fadeInLeftBig' => __('FadeInLeftBig',
|
750 |
-
'fadeInRight' => __('FadeInRight',
|
751 |
-
'fadeInRightBig' => __('FadeInRightBig',
|
752 |
-
'fadeInUp' => __('FadeInUp',
|
753 |
-
'fadeInUpBig' => __('FadeInUpBig',
|
754 |
-
|
755 |
-
'flip' => __('Flip',
|
756 |
-
'flipInX' => __('FlipInX',
|
757 |
-
'flipInY' => __('FlipInY',
|
758 |
-
|
759 |
-
'rotateIn' => __('RotateIn',
|
760 |
-
'rotateInDownLeft' => __('RotateInDownLeft',
|
761 |
-
'rotateInDownRight' => __('RotateInDownRight',
|
762 |
-
'rotateInUpLeft' => __('RotateInUpLeft',
|
763 |
-
'rotateInUpRight' => __('RotateInUpRight',
|
764 |
-
|
765 |
-
'zoomIn' => __('ZoomIn',
|
766 |
-
'zoomInDown' => __('ZoomInDown',
|
767 |
-
'zoomInLeft' => __('ZoomInLeft',
|
768 |
-
'zoomInRight' => __('ZoomInRight',
|
769 |
-
'zoomInUp' => __('ZoomInUp',
|
770 |
);
|
771 |
$values['layer_effects_out'] = array(
|
772 |
-
'none' => __('None',
|
773 |
-
'bounce' => __('Bounce',
|
774 |
-
'flash' => __('Flash',
|
775 |
-
'pulse' => __('Pulse',
|
776 |
-
'rubberBand' => __('RubberBand',
|
777 |
-
'shake' => __('Shake',
|
778 |
-
'swing' => __('Swing',
|
779 |
-
'tada' => __('Tada',
|
780 |
-
'wobble' => __('Wobble',
|
781 |
-
'hinge' => __('Hinge',
|
782 |
-
|
783 |
-
'lightSpeedOut' => __('LightSpeedOut',
|
784 |
-
'rollOut' => __('RollOut',
|
785 |
-
|
786 |
-
'bounceOut' => __('BounceOut',
|
787 |
-
'bounceOutDown' => __('BounceOutDown',
|
788 |
-
'bounceOutLeft' => __('BounceOutLeft',
|
789 |
-
'bounceOutRight' => __('BounceOutRight',
|
790 |
-
'bounceOutUp' => __('BounceOutUp',
|
791 |
-
|
792 |
-
'fadeOut' => __('FadeOut',
|
793 |
-
'fadeOutDown' => __('FadeOutDown',
|
794 |
-
'fadeOutDownBig' => __('FadeOutDownBig',
|
795 |
-
'fadeOutLeft' => __('FadeOutLeft',
|
796 |
-
'fadeOutLeftBig' => __('FadeOutLeftBig',
|
797 |
-
'fadeOutRight' => __('FadeOutRight',
|
798 |
-
'fadeOutRightBig' => __('FadeOutRightBig',
|
799 |
-
'fadeOutUp' => __('FadeOutUp',
|
800 |
-
'fadeOutUpBig' => __('FadeOutUpBig',
|
801 |
-
|
802 |
-
'flip' => __('Flip',
|
803 |
-
'flipOutX' => __('FlipOutX',
|
804 |
-
'flipOutY' => __('FlipOutY',
|
805 |
-
|
806 |
-
'rotateOut' => __('RotateOut',
|
807 |
-
'rotateOutDownLeft' => __('RotateOutDownLeft',
|
808 |
-
'rotateOutDownRight' => __('RotateOutDownRight',
|
809 |
-
'rotateOutUpLeft' => __('RotateOutUpLeft',
|
810 |
-
'rotateOutUpRight' => __('RotateOutUpRight',
|
811 |
-
|
812 |
-
'zoomOut' => __('ZoomOut',
|
813 |
-
'zoomOutDown' => __('ZoomOutDown',
|
814 |
-
'zoomOutLeft' => __('ZoomOutLeft',
|
815 |
-
'zoomOutRight' => __('ZoomOutRight',
|
816 |
-
'zoomOutUp' => __('ZoomOutUp',
|
817 |
);
|
818 |
$values['hotp_text_positions'] = array(
|
819 |
-
'top' => __('Top',
|
820 |
-
'left' => __('Left',
|
821 |
-
'bottom' => __('Bottom',
|
822 |
-
'right' => __('Right',
|
823 |
);
|
824 |
$values['slider_callbacks'] = array(
|
825 |
-
'onSliderI' => __('On slider Init',
|
826 |
-
'onSliderCS' => __('On slide change start',
|
827 |
-
'onSliderCE' => __('On slide change end',
|
828 |
-
'onSliderPlay' => __('On slide play',
|
829 |
-
'onSliderPause' => __('On slide pause',
|
830 |
-
'onSliderHover' => __('On slide hover',
|
831 |
-
'onSliderBlur' => __('On slide blur',
|
832 |
-
'onSliderR' => __('On slider resize',
|
833 |
-
'onSwipeS' => __('On swipe start',
|
834 |
);
|
835 |
$values['layer_callbacks'] = array(
|
836 |
-
'' => __('Select action',
|
837 |
-
'SlidePlay' => __('Play',
|
838 |
-
'SlidePause' => __('Pause',
|
839 |
-
'SlidePlayPause' => __('Play/Pause',
|
840 |
-
'SlideNext' => __('Next slide',
|
841 |
-
'SlidePrevious' => __('Previous slide',
|
842 |
-
'SlideLink' => __('Link to slide',
|
843 |
-
'PlayMusic' => __('Play music',
|
844 |
);
|
845 |
$values['text_alignments'] = array(
|
846 |
-
'left' => __('Left',
|
847 |
-
'center' => __('Center',
|
848 |
-
'right' => __('Right',
|
849 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
850 |
$values['built_in_watermark_fonts'] = array();
|
851 |
-
foreach (scandir(path_join(
|
852 |
if (strpos($filename, '.') === 0) {
|
853 |
continue;
|
854 |
}
|
@@ -867,7 +955,7 @@ class WDW_S_Library {
|
|
867 |
* @return object $slider
|
868 |
*/
|
869 |
public static function get_slider_by_id( $id ) {
|
870 |
-
require_once
|
871 |
$model = new WDSModelSlider();
|
872 |
$slider = $model->get_slider_row_data( $id );
|
873 |
return $slider;
|
@@ -881,7 +969,7 @@ class WDW_S_Library {
|
|
881 |
* @return object $slides
|
882 |
*/
|
883 |
public static function get_slides_by_slider_id( $id , $order) {
|
884 |
-
require_once
|
885 |
$model = new WDSModelSlider();
|
886 |
$slider = $model->get_slide_rows_data( $id , $order );
|
887 |
return $slider;
|
@@ -895,7 +983,7 @@ class WDW_S_Library {
|
|
895 |
* @return object $layers
|
896 |
*/
|
897 |
public static function get_layers_by_slider_id_slide_ids( $slider_id, $slide_ids ) {
|
898 |
-
require_once
|
899 |
$model = new WDSModelSlider();
|
900 |
$layers = $model->get_layers_by_slider_id_slide_ids( $slider_id, $slide_ids );
|
901 |
return $layers;
|
@@ -1085,7 +1173,7 @@ class WDW_S_Library {
|
|
1085 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["width"] = "<?php echo $slide_row->att_width; ?>";
|
1086 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["height"] = "<?php echo $slide_row->att_height; ?>";
|
1087 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["fillmode"] = "<?php echo $slide_row->fillmode; ?>";
|
1088 |
-
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["image_thumb_url"] = "<?php echo is_numeric($slide_row->thumb_url) ? (wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) ? wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) :
|
1089 |
<?php
|
1090 |
if (isset($layers_rows[$slide_row->id]) && !empty($layers_rows[$slide_row->id])) {
|
1091 |
foreach ($layers_rows[$slide_row->id] as $layer_key => $layer) {
|
@@ -1223,6 +1311,9 @@ class WDW_S_Library {
|
|
1223 |
iframe_message_received : 'iframe_message_received_<?php echo $wds; ?>',
|
1224 |
video_is_playing : video_is_playing_<?php echo $wds; ?>,
|
1225 |
mouse_wheel_nav : <?php echo $mouse_wheel_nav; ?>,
|
|
|
|
|
|
|
1226 |
start_slide_num : <?php echo $start_slide_num; ?>,
|
1227 |
start_slide_num_car : <?php echo $slider->start_slide_num; ?>,
|
1228 |
wds_duration_for_clear_effects : wds_duration_for_clear_effects_<?php echo $wds; ?>,
|
@@ -1433,7 +1524,7 @@ class WDW_S_Library {
|
|
1433 |
position: absolute;
|
1434 |
width: <?php echo $media_pp_butt_size; ?>px;
|
1435 |
height: <?php echo $media_pp_butt_size; ?>px;
|
1436 |
-
background-image: url('<?php echo
|
1437 |
background-position: center center;
|
1438 |
background-repeat: no-repeat;
|
1439 |
background-size: cover;
|
@@ -1449,7 +1540,7 @@ class WDW_S_Library {
|
|
1449 |
}
|
1450 |
.wds_bigplay_<?php echo $wds; ?>:hover,
|
1451 |
.wds_bigplay_layer:hover {
|
1452 |
-
background: url('<?php echo
|
1453 |
width: <?php echo $media_pp_butt_size; ?>px;
|
1454 |
height: <?php echo $media_pp_butt_size; ?>px;
|
1455 |
background-position: center center;
|
@@ -2080,7 +2171,7 @@ class WDW_S_Library {
|
|
2080 |
overflow: hidden;
|
2081 |
}
|
2082 |
#wds_container1_<?php echo $wds; ?> .wds_loading_img {
|
2083 |
-
background-image: url('<?php echo
|
2084 |
}
|
2085 |
<?php
|
2086 |
if ($hide_on_mobile) {
|
@@ -2246,6 +2337,56 @@ class WDW_S_Library {
|
|
2246 |
|
2247 |
return $css_content;
|
2248 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2249 |
}
|
2250 |
|
2251 |
/*
|
4 |
public function __construct() {
|
5 |
}
|
6 |
|
7 |
+
/**
|
8 |
+
* Get request value.
|
9 |
+
*
|
10 |
+
* @param string $key
|
11 |
+
* @param string $default_value
|
12 |
+
* @param bool $esc_html
|
13 |
+
*
|
14 |
+
* @return string|array
|
15 |
+
*/
|
16 |
+
public static function get($key, $default_value = '', $esc_html = true) {
|
17 |
if (isset($_GET[$key])) {
|
18 |
$value = $_GET[$key];
|
19 |
}
|
20 |
elseif (isset($_POST[$key])) {
|
21 |
$value = $_POST[$key];
|
22 |
}
|
23 |
+
elseif (isset($_REQUEST[$key])) {
|
24 |
+
$value = $_REQUEST[$key];
|
25 |
}
|
26 |
+
else {
|
27 |
$value = $default_value;
|
28 |
}
|
29 |
+
if (is_array($value)) {
|
30 |
+
array_walk_recursive($value, array('self', 'validate_data'), $esc_html);
|
31 |
+
}
|
32 |
+
else {
|
33 |
+
self::validate_data($value, $esc_html);
|
34 |
+
}
|
35 |
+
return $value;
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Validate data.
|
40 |
+
*
|
41 |
+
* @param $value
|
42 |
+
* @param $esc_html
|
43 |
+
*/
|
44 |
+
private static function validate_data(&$value, $esc_html) {
|
45 |
+
$value = stripslashes($value);
|
46 |
+
if ($esc_html) {
|
47 |
+
$value = esc_html($value);
|
48 |
+
}
|
49 |
}
|
50 |
|
51 |
/**
|
61 |
if ($message_id) {
|
62 |
switch ( $message_id ) {
|
63 |
case 1: {
|
64 |
+
$message = __('Item Succesfully Saved.', WDS()->prefix);
|
65 |
$type = 'wd_updated';
|
66 |
break;
|
67 |
}
|
68 |
case 2: {
|
69 |
+
$message = __('Error. Please install plugin again.', WDS()->prefix);
|
70 |
$type = 'wd_error';
|
71 |
break;
|
72 |
}
|
73 |
case 3: {
|
74 |
+
$message = __('Item Succesfully Deleted.', WDS()->prefix);
|
75 |
$type = 'wd_updated';
|
76 |
break;
|
77 |
}
|
78 |
case 4: {
|
79 |
+
$message = __("You can't delete default theme", WDS()->prefix);
|
80 |
$type = 'wd_error';
|
81 |
break;
|
82 |
}
|
83 |
case 5: {
|
84 |
+
$message = __('Items Succesfully Deleted.', WDS()->prefix);
|
85 |
$type = 'wd_updated';
|
86 |
break;
|
87 |
}
|
88 |
case 6: {
|
89 |
+
$message = __('You must select at least one item.', WDS()->prefix);
|
90 |
$type = 'wd_error';
|
91 |
break;
|
92 |
}
|
93 |
case 7: {
|
94 |
+
$message = __('The item is successfully set as default.', WDS()->prefix);
|
95 |
$type = 'wd_updated';
|
96 |
break;
|
97 |
}
|
98 |
case 8: {
|
99 |
+
$message = __('Options Succesfully Saved.', WDS()->prefix);
|
100 |
$type = 'wd_updated';
|
101 |
break;
|
102 |
}
|
103 |
case 9: {
|
104 |
+
$message = __('Item Succesfully Published.', WDS()->prefix);
|
105 |
$type = 'wd_updated';
|
106 |
break;
|
107 |
}
|
108 |
case 10: {
|
109 |
+
$message = __('Items Succesfully Published.', WDS()->prefix);
|
110 |
$type = 'wd_updated';
|
111 |
break;
|
112 |
}
|
113 |
case 11: {
|
114 |
+
$message = __('Item Succesfully Unpublished.', WDS()->prefix);
|
115 |
$type = 'wd_updated';
|
116 |
break;
|
117 |
}
|
118 |
case 12: {
|
119 |
+
$message = __('Items Succesfully Unpublished.', WDS()->prefix);
|
120 |
$type = 'wd_updated';
|
121 |
break;
|
122 |
}
|
123 |
case 13: {
|
124 |
+
$message = __('Ordering Succesfully Saved.', WDS()->prefix);
|
125 |
$type = 'wd_updated';
|
126 |
break;
|
127 |
}
|
128 |
case 14: {
|
129 |
+
$message = __('A term with the name provided already exists.', WDS()->prefix);
|
130 |
$type = 'wd_error';
|
131 |
break;
|
132 |
}
|
133 |
case 15: {
|
134 |
+
$message = __('Name field is required.', WDS()->prefix);
|
135 |
$type = 'wd_error';
|
136 |
break;
|
137 |
}
|
138 |
case 16: {
|
139 |
+
$message = __('The slug must be unique.', WDS()->prefix);
|
140 |
$type = 'wd_error';
|
141 |
break;
|
142 |
}
|
143 |
case 17: {
|
144 |
+
$message = __('Changes must be saved.', WDS()->prefix);
|
145 |
$type = 'wd_error';
|
146 |
break;
|
147 |
}
|
148 |
case 18: {
|
149 |
+
$message = __('You must set watermark type.', WDS()->prefix);
|
150 |
$type = 'wd_error';
|
151 |
break;
|
152 |
}
|
153 |
case 19: {
|
154 |
+
$message = __('Watermark Succesfully Set.', WDS()->prefix);
|
155 |
$type = 'wd_updated';
|
156 |
break;
|
157 |
}
|
158 |
case 20: {
|
159 |
+
$message = __('Watermark Succesfully Reset.', WDS()->prefix);
|
160 |
$type = 'wd_updated';
|
161 |
break;
|
162 |
}
|
163 |
case 21: {
|
164 |
+
$message = __('Settings Succesfully Reset.', WDS()->prefix);
|
165 |
$type = 'wd_updated';
|
166 |
break;
|
167 |
}
|
168 |
case 22: {
|
169 |
+
$message = __('Items Succesfully Set.', WDS()->prefix);
|
170 |
$type = 'wd_updated';
|
171 |
break;
|
172 |
}
|
173 |
case 23: {
|
174 |
+
$message = __('Slider successfully imported.', WDS()->prefix);
|
175 |
$type = 'wd_updated';
|
176 |
break;
|
177 |
}
|
178 |
case 24: {
|
179 |
+
$message = __('Unexpected error occurred.', WDS()->prefix);
|
180 |
$type = 'wd_error';
|
181 |
break;
|
182 |
}
|
183 |
case 25: {
|
184 |
+
$message = __('You can include only posts with featured image.', WDS()->prefix);
|
185 |
+
$type = 'wd_updated';
|
186 |
+
break;
|
187 |
+
}
|
188 |
+
case 26: {
|
189 |
+
$message = __('Item Succesfully Duplicated.', WDS()->prefix);
|
190 |
+
$type = 'wd_updated';
|
191 |
+
break;
|
192 |
+
}
|
193 |
+
case 27: {
|
194 |
+
$message = __('You should select at least 2 sliders to merge them.', WDS()->prefix);
|
195 |
+
$type = 'wd_error';
|
196 |
+
break;
|
197 |
+
}
|
198 |
+
case 28: {
|
199 |
+
$message = __('The selected items are merged as a new slider.', WDS()->prefix);
|
200 |
$type = 'wd_updated';
|
201 |
break;
|
202 |
}
|
224 |
return '<div style="width: 99%" class="spider_message"><div class="' . $type . '"><p><strong>'. $message .'</strong></p></div></div>';
|
225 |
}
|
226 |
|
227 |
+
/**
|
228 |
+
* Ordering.
|
229 |
+
*
|
230 |
+
* @param $id
|
231 |
+
* @param $orderby
|
232 |
+
* @param $order
|
233 |
+
* @param $text
|
234 |
+
* @param $page_url
|
235 |
+
* @param string $additional_class
|
236 |
+
*
|
237 |
+
* @return string
|
238 |
+
*/
|
239 |
+
public static function ordering($id, $orderby, $order, $text, $page_url, $additional_class = '') {
|
240 |
+
$class = array(
|
241 |
+
($orderby == $id ? 'sorted': 'sortable'),
|
242 |
+
$order,
|
243 |
+
$additional_class,
|
244 |
+
'col_' . $id,
|
245 |
+
);
|
246 |
+
$order = (($orderby == $id) && ($order == 'asc')) ? 'desc' : 'asc';
|
247 |
+
ob_start();
|
248 |
+
?>
|
249 |
+
<th id="order-<?php echo $id; ?>" class="<?php echo implode(' ', $class); ?>">
|
250 |
+
<a href="<?php echo add_query_arg( array('orderby' => $id, 'order' => $order), $page_url ); ?>"
|
251 |
+
title="<?php _e('Click to sort by this item', WDS()->prefix); ?>">
|
252 |
+
<span><?php echo $text; ?></span><span class="sorting-indicator"></span>
|
253 |
+
</a>
|
254 |
+
</th>
|
255 |
+
<?php
|
256 |
+
return ob_get_clean();
|
257 |
+
}
|
258 |
+
// TODO. old version.
|
259 |
public static function search($search_by, $search_value, $form_id) {
|
260 |
$search_position = ($form_id == 'posts_form') ? 'alignleft' : 'alignright';
|
261 |
?>
|
296 |
name="search_value"
|
297 |
value="<?php echo esc_html($search_value); ?>"
|
298 |
onkeypress="spider_search(event)" />
|
299 |
+
<input type="button" value="<?php _e('Search', WDS()->prefix); ?>" onclick="spider_search()" class="button" />
|
300 |
</div>
|
301 |
</div>
|
302 |
<?php
|
392 |
<?php
|
393 |
if ($count_items != 0) {
|
394 |
echo $count_items;
|
395 |
+
_e(' item', WDS()->prefix);
|
396 |
+
echo (($count_items == 1) ? '' : __('s', WDS()->prefix));
|
397 |
}
|
398 |
?>
|
399 |
</span>
|
417 |
}
|
418 |
?>
|
419 |
<span class="pagination-links">
|
420 |
+
<a class="<?php echo $first_page; ?>" title="<?php _e('Go to the first page', WDS()->prefix); ?>" href="javascript:spider_page(<?php echo $page_number; ?>,-2);">«</a>
|
421 |
+
<a class="<?php echo $prev_page; ?>" title="<?php _e('Go to the previous page', WDS()->prefix); ?>" href="javascript:spider_page(<?php echo $page_number; ?>,-1);">‹</a>
|
422 |
<span class="paging-input">
|
423 |
<span class="total-pages">
|
424 |
<input class="current_page" id="current_page" name="current_page" value="<?php echo $page_number; ?>" onkeypress="return check_enter_key(event)" title="Go to the page" type="text" size="1" />
|
427 |
<?php echo $items_county; ?>
|
428 |
</span>
|
429 |
</span>
|
430 |
+
<a class="<?php echo $next_page ?>" title="<?php _e('Go to the next page', WDS()->prefix); ?>" href="javascript:spider_page(<?php echo $page_number; ?>,1);">›</a>
|
431 |
+
<a class="<?php echo $last_page ?>" title="<?php _e('Go to the last page', WDS()->prefix); ?>" href="javascript:spider_page(<?php echo $page_number; ?>,2);">»</a>
|
432 |
<?php
|
433 |
}
|
434 |
?>
|
502 |
<?php
|
503 |
if ($count_items != 0) {
|
504 |
echo $count_items;
|
505 |
+
_e('item', WDS()->prefix);
|
506 |
+
echo (($count_items == 1) ? '' : __('s', WDS()->prefix));
|
507 |
}
|
508 |
?>
|
509 |
</span>
|
527 |
}
|
528 |
?>
|
529 |
<span class="pagination-links">
|
530 |
+
<a class="<?php echo $first_page; ?>" title="<?php _e('Go to the first page', WDS()->prefix); ?>" onclick="spider_page(<?php echo $page_number; ?>,-2)">«</a>
|
531 |
+
<a class="<?php echo $prev_page; ?>" title="<?php _e('Go to the previous page', WDS()->prefix); ?>" onclick="spider_page(<?php echo $page_number; ?>,-1)">‹</a>
|
532 |
<span class="paging-input">
|
533 |
<span class="total-pages">
|
534 |
<input class="current_page" id="current_page" name="current_page" value="<?php echo $page_number; ?>" onkeypress="return check_enter_key(event)" title="Go to the page" type="text" size="1" />
|
537 |
<?php echo $items_county; ?>
|
538 |
</span>
|
539 |
</span>
|
540 |
+
<a class="<?php echo $next_page ?>" title="<?php _e('Go to the next page', WDS()->prefix); ?>" onclick="spider_page(<?php echo $page_number; ?>,1)">›</a>
|
541 |
+
<a class="<?php echo $last_page ?>" title="<?php _e('Go to the last page', WDS()->prefix); ?>" onclick="spider_page(<?php echo $page_number; ?>,2)">»</a>
|
542 |
<?php
|
543 |
}
|
544 |
?>
|
586 |
$b = hexdec($b);
|
587 |
return 'rgba(' . $r . ', ' . $g . ', ' . $b . ', ' . number_format($transparent, 2, ".", "") . ')';
|
588 |
}
|
589 |
+
// TODO remove this and rename all to redirect.
|
590 |
public static function spider_redirect($url) {
|
591 |
$url = html_entity_decode(wp_nonce_url($url, 'nonce_wd', 'nonce_wd'));
|
592 |
?>
|
623 |
return $google_fonts;
|
624 |
}
|
625 |
|
626 |
+
/**
|
627 |
+
* No items.
|
628 |
+
*
|
629 |
+
* @param $title
|
630 |
+
* @param $number
|
631 |
+
*
|
632 |
+
* @return string
|
633 |
+
*/
|
634 |
+
public static function no_items($title, $colspan_count = 0) {
|
635 |
$title = ($title != '') ? strtolower($title) : 'items';
|
636 |
ob_start();
|
637 |
+
?><tr class="no-items">
|
638 |
+
<td class="colspanchange" <?php echo $colspan_count ? 'colspan="' . $colspan_count . '"' : ''?>><?php echo sprintf(__('No %s found.', WDS()->prefix), $title); ?></td>
|
639 |
+
</tr><?php
|
|
|
|
|
640 |
return ob_get_clean();
|
641 |
}
|
642 |
|
731 |
public static function get_values() {
|
732 |
$values = array();
|
733 |
$values['aligns'] = array(
|
734 |
+
'left' => __('Left', WDS()->prefix),
|
735 |
+
'center' => __('Center', WDS()->prefix),
|
736 |
+
'right' => __('Right', WDS()->prefix),
|
737 |
);
|
738 |
$values['border_styles'] = array(
|
739 |
+
'none' => __('None', WDS()->prefix),
|
740 |
+
'solid' => __('Solid', WDS()->prefix),
|
741 |
+
'dotted' => __('Dotted', WDS()->prefix),
|
742 |
+
'dashed' => __('Dashed', WDS()->prefix),
|
743 |
+
'double' => __('Double', WDS()->prefix),
|
744 |
+
'groove' => __('Groove', WDS()->prefix),
|
745 |
+
'ridge' => __('Ridge', WDS()->prefix),
|
746 |
+
'inset' => __('Inset', WDS()->prefix),
|
747 |
+
'outset' => __('Outset', WDS()->prefix),
|
748 |
);
|
749 |
$values['button_styles'] = array(
|
750 |
+
'fa-chevron' => __('Chevron', WDS()->prefix),
|
751 |
+
'fa-angle' => __('Angle', WDS()->prefix),
|
752 |
+
'fa-angle-double' => __('Double', WDS()->prefix),
|
753 |
);
|
754 |
$values['bull_styles'] = array(
|
755 |
+
'fa-circle-o' => __('Circle O', WDS()->prefix),
|
756 |
+
'fa-circle' => __('Circle', WDS()->prefix),
|
757 |
+
'fa-minus' => __('Minus', WDS()->prefix),
|
758 |
+
'fa-square-o' => __('Square O', WDS()->prefix),
|
759 |
+
'fa-square' => __('Square', WDS()->prefix),
|
760 |
);
|
761 |
$values['font_families'] = WDW_S_Library::get_font_families();
|
762 |
$values['google_fonts'] = WDW_S_Library::get_google_fonts();
|
763 |
$values['font_weights'] = array(
|
764 |
+
'lighter' => __('Lighter', WDS()->prefix),
|
765 |
+
'normal' => __('Normal', WDS()->prefix),
|
766 |
+
'bold' => __('Bold', WDS()->prefix),
|
767 |
);
|
768 |
$values['social_buttons'] = array(
|
769 |
+
'facebook' => __('Facebook', WDS()->prefix),
|
770 |
+
'google-plus' => __('Google+', WDS()->prefix),
|
771 |
+
'twitter' => __('Twitter', WDS()->prefix),
|
772 |
+
'pinterest' => __('Pinterest', WDS()->prefix),
|
773 |
+
'tumblr' => __('Tumblr', WDS()->prefix),
|
774 |
);
|
775 |
$values['effects'] = array(
|
776 |
+
'none' => __('None', WDS()->prefix),
|
777 |
+
'zoomFade' => __('Zoom Fade', WDS()->prefix),
|
778 |
+
'parallelSlideH' => __('Parallel Slide Horizontal', WDS()->prefix),
|
779 |
+
'parallelSlideV' => __('Parallel Slide Vertical', WDS()->prefix),
|
780 |
+
'slic3DH' => __('Slice 3D Horizontal', WDS()->prefix),
|
781 |
+
'slic3DV' => __('Slice 3D Vertical', WDS()->prefix),
|
782 |
+
'slicR3DH' => __('Slice 3D Horizontal Random', WDS()->prefix),
|
783 |
+
'slicR3DV' => __('Slice 3D Vertical Random', WDS()->prefix),
|
784 |
+
'blindR' => __('Blind', WDS()->prefix),
|
785 |
+
'tilesR' => __('Tiles', WDS()->prefix),
|
786 |
+
'blockScaleR' => __('Block Scale Random', WDS()->prefix),
|
787 |
+
'cubeH' => __('Cube Horizontal', WDS()->prefix),
|
788 |
+
'cubeV' => __('Cube Vertical', WDS()->prefix),
|
789 |
+
'cubeR' => __('Cube Random', WDS()->prefix),
|
790 |
+
'fade' => __('Fade', WDS()->prefix),
|
791 |
+
'sliceH' => __('Slice Horizontal', WDS()->prefix),
|
792 |
+
'sliceV' => __('Slice Vertical', WDS()->prefix),
|
793 |
+
'slideH' => __('Slide Horizontal', WDS()->prefix),
|
794 |
+
'slideV' => __('Slide Vertical', WDS()->prefix),
|
795 |
+
'scaleOut' => __('Scale Out', WDS()->prefix),
|
796 |
+
'scaleIn' => __('Scale In', WDS()->prefix),
|
797 |
+
'blockScale' => __('Block Scale', WDS()->prefix),
|
798 |
+
'kaleidoscope' => __('Kaleidoscope', WDS()->prefix),
|
799 |
+
'fan' => __('Fan', WDS()->prefix),
|
800 |
+
'blindH' => __('Blind Horizontal', WDS()->prefix),
|
801 |
+
'blindV' => __('Blind Vertical', WDS()->prefix),
|
802 |
+
'random' => __('Random', WDS()->prefix),
|
803 |
+
'3Drandom' => __('3D Random', WDS()->prefix),
|
804 |
);
|
805 |
$values['layer_effects_in'] = array(
|
806 |
+
'none' => __('None', WDS()->prefix),
|
807 |
+
'bounce' => __('Bounce', WDS()->prefix),
|
808 |
+
'flash' => __('Flash', WDS()->prefix),
|
809 |
+
'pulse' => __('Pulse', WDS()->prefix),
|
810 |
+
'rubberBand' => __('RubberBand', WDS()->prefix),
|
811 |
+
'shake' => __('Shake', WDS()->prefix),
|
812 |
+
'swing' => __('Swing', WDS()->prefix),
|
813 |
+
'tada' => __('Tada', WDS()->prefix),
|
814 |
+
'wobble' => __('Wobble', WDS()->prefix),
|
815 |
+
'hinge' => __('Hinge', WDS()->prefix),
|
816 |
+
|
817 |
+
'lightSpeedIn' => __('LightSpeedIn', WDS()->prefix),
|
818 |
+
'rollIn' => __('RollIn', WDS()->prefix),
|
819 |
+
|
820 |
+
'bounceIn' => __('BounceIn', WDS()->prefix),
|
821 |
+
'bounceInDown' => __('BounceInDown', WDS()->prefix),
|
822 |
+
'bounceInLeft' => __('BounceInLeft', WDS()->prefix),
|
823 |
+
'bounceInRight' => __('BounceInRight', WDS()->prefix),
|
824 |
+
'bounceInUp' => __('BounceInUp', WDS()->prefix),
|
825 |
+
|
826 |
+
'fadeIn' => __('FadeIn', WDS()->prefix),
|
827 |
+
'fadeInDown' => __('FadeInDown', WDS()->prefix),
|
828 |
+
'fadeInDownBig' => __('FadeInDownBig', WDS()->prefix),
|
829 |
+
'fadeInLeft' => __('FadeInLeft', WDS()->prefix),
|
830 |
+
'fadeInLeftBig' => __('FadeInLeftBig', WDS()->prefix),
|
831 |
+
'fadeInRight' => __('FadeInRight', WDS()->prefix),
|
832 |
+
'fadeInRightBig' => __('FadeInRightBig', WDS()->prefix),
|
833 |
+
'fadeInUp' => __('FadeInUp', WDS()->prefix),
|
834 |
+
'fadeInUpBig' => __('FadeInUpBig', WDS()->prefix),
|
835 |
+
|
836 |
+
'flip' => __('Flip', WDS()->prefix),
|
837 |
+
'flipInX' => __('FlipInX', WDS()->prefix),
|
838 |
+
'flipInY' => __('FlipInY', WDS()->prefix),
|
839 |
+
|
840 |
+
'rotateIn' => __('RotateIn', WDS()->prefix),
|
841 |
+
'rotateInDownLeft' => __('RotateInDownLeft', WDS()->prefix),
|
842 |
+
'rotateInDownRight' => __('RotateInDownRight', WDS()->prefix),
|
843 |
+
'rotateInUpLeft' => __('RotateInUpLeft', WDS()->prefix),
|
844 |
+
'rotateInUpRight' => __('RotateInUpRight', WDS()->prefix),
|
845 |
+
|
846 |
+
'zoomIn' => __('ZoomIn', WDS()->prefix),
|
847 |
+
'zoomInDown' => __('ZoomInDown', WDS()->prefix),
|
848 |
+
'zoomInLeft' => __('ZoomInLeft', WDS()->prefix),
|
849 |
+
'zoomInRight' => __('ZoomInRight', WDS()->prefix),
|
850 |
+
'zoomInUp' => __('ZoomInUp', WDS()->prefix),
|
851 |
);
|
852 |
$values['layer_effects_out'] = array(
|
853 |
+
'none' => __('None', WDS()->prefix),
|
854 |
+
'bounce' => __('Bounce', WDS()->prefix),
|
855 |
+
'flash' => __('Flash', WDS()->prefix),
|
856 |
+
'pulse' => __('Pulse', WDS()->prefix),
|
857 |
+
'rubberBand' => __('RubberBand', WDS()->prefix),
|
858 |
+
'shake' => __('Shake', WDS()->prefix),
|
859 |
+
'swing' => __('Swing', WDS()->prefix),
|
860 |
+
'tada' => __('Tada', WDS()->prefix),
|
861 |
+
'wobble' => __('Wobble', WDS()->prefix),
|
862 |
+
'hinge' => __('Hinge', WDS()->prefix),
|
863 |
+
|
864 |
+
'lightSpeedOut' => __('LightSpeedOut', WDS()->prefix),
|
865 |
+
'rollOut' => __('RollOut', WDS()->prefix),
|
866 |
+
|
867 |
+
'bounceOut' => __('BounceOut', WDS()->prefix),
|
868 |
+
'bounceOutDown' => __('BounceOutDown', WDS()->prefix),
|
869 |
+
'bounceOutLeft' => __('BounceOutLeft', WDS()->prefix),
|
870 |
+
'bounceOutRight' => __('BounceOutRight', WDS()->prefix),
|
871 |
+
'bounceOutUp' => __('BounceOutUp', WDS()->prefix),
|
872 |
+
|
873 |
+
'fadeOut' => __('FadeOut', WDS()->prefix),
|
874 |
+
'fadeOutDown' => __('FadeOutDown', WDS()->prefix),
|
875 |
+
'fadeOutDownBig' => __('FadeOutDownBig', WDS()->prefix),
|
876 |
+
'fadeOutLeft' => __('FadeOutLeft', WDS()->prefix),
|
877 |
+
'fadeOutLeftBig' => __('FadeOutLeftBig', WDS()->prefix),
|
878 |
+
'fadeOutRight' => __('FadeOutRight', WDS()->prefix),
|
879 |
+
'fadeOutRightBig' => __('FadeOutRightBig', WDS()->prefix),
|
880 |
+
'fadeOutUp' => __('FadeOutUp', WDS()->prefix),
|
881 |
+
'fadeOutUpBig' => __('FadeOutUpBig', WDS()->prefix),
|
882 |
+
|
883 |
+
'flip' => __('Flip', WDS()->prefix),
|
884 |
+
'flipOutX' => __('FlipOutX', WDS()->prefix),
|
885 |
+
'flipOutY' => __('FlipOutY', WDS()->prefix),
|
886 |
+
|
887 |
+
'rotateOut' => __('RotateOut', WDS()->prefix),
|
888 |
+
'rotateOutDownLeft' => __('RotateOutDownLeft', WDS()->prefix),
|
889 |
+
'rotateOutDownRight' => __('RotateOutDownRight', WDS()->prefix),
|
890 |
+
'rotateOutUpLeft' => __('RotateOutUpLeft', WDS()->prefix),
|
891 |
+
'rotateOutUpRight' => __('RotateOutUpRight', WDS()->prefix),
|
892 |
+
|
893 |
+
'zoomOut' => __('ZoomOut', WDS()->prefix),
|
894 |
+
'zoomOutDown' => __('ZoomOutDown', WDS()->prefix),
|
895 |
+
'zoomOutLeft' => __('ZoomOutLeft', WDS()->prefix),
|
896 |
+
'zoomOutRight' => __('ZoomOutRight', WDS()->prefix),
|
897 |
+
'zoomOutUp' => __('ZoomOutUp', WDS()->prefix),
|
898 |
);
|
899 |
$values['hotp_text_positions'] = array(
|
900 |
+
'top' => __('Top', WDS()->prefix),
|
901 |
+
'left' => __('Left', WDS()->prefix),
|
902 |
+
'bottom' => __('Bottom', WDS()->prefix),
|
903 |
+
'right' => __('Right', WDS()->prefix),
|
904 |
);
|
905 |
$values['slider_callbacks'] = array(
|
906 |
+
'onSliderI' => __('On slider Init', WDS()->prefix),
|
907 |
+
'onSliderCS' => __('On slide change start', WDS()->prefix),
|
908 |
+
'onSliderCE' => __('On slide change end', WDS()->prefix),
|
909 |
+
'onSliderPlay' => __('On slide play', WDS()->prefix),
|
910 |
+
'onSliderPause' => __('On slide pause', WDS()->prefix),
|
911 |
+
'onSliderHover' => __('On slide hover', WDS()->prefix),
|
912 |
+
'onSliderBlur' => __('On slide blur', WDS()->prefix),
|
913 |
+
'onSliderR' => __('On slider resize', WDS()->prefix),
|
914 |
+
'onSwipeS' => __('On swipe start', WDS()->prefix),
|
915 |
);
|
916 |
$values['layer_callbacks'] = array(
|
917 |
+
'' => __('Select action', WDS()->prefix),
|
918 |
+
'SlidePlay' => __('Play', WDS()->prefix),
|
919 |
+
'SlidePause' => __('Pause', WDS()->prefix),
|
920 |
+
'SlidePlayPause' => __('Play/Pause', WDS()->prefix),
|
921 |
+
'SlideNext' => __('Next slide', WDS()->prefix),
|
922 |
+
'SlidePrevious' => __('Previous slide', WDS()->prefix),
|
923 |
+
'SlideLink' => __('Link to slide', WDS()->prefix),
|
924 |
+
'PlayMusic' => __('Play music', WDS()->prefix),
|
925 |
);
|
926 |
$values['text_alignments'] = array(
|
927 |
+
'left' => __('Left', WDS()->prefix),
|
928 |
+
'center' => __('Center', WDS()->prefix),
|
929 |
+
'right' => __('Right', WDS()->prefix)
|
930 |
);
|
931 |
+
$values['slider_fillmode_option'] = array(
|
932 |
+
'fill' => __('Fill', WDS()->prefix),
|
933 |
+
'fit' => __('Fit', WDS()->prefix),
|
934 |
+
'stretch' => __('Stretch', WDS()->prefix),
|
935 |
+
'center' => __('Center', WDS()->prefix),
|
936 |
+
'tile' => __('Tile', WDS()->prefix)
|
937 |
+
);
|
938 |
$values['built_in_watermark_fonts'] = array();
|
939 |
+
foreach (scandir(path_join(WDS()->plugin_dir, 'fonts')) as $filename) {
|
940 |
if (strpos($filename, '.') === 0) {
|
941 |
continue;
|
942 |
}
|
955 |
* @return object $slider
|
956 |
*/
|
957 |
public static function get_slider_by_id( $id ) {
|
958 |
+
require_once WDS()->plugin_dir . "/frontend/models/WDSModelSlider.php";
|
959 |
$model = new WDSModelSlider();
|
960 |
$slider = $model->get_slider_row_data( $id );
|
961 |
return $slider;
|
969 |
* @return object $slides
|
970 |
*/
|
971 |
public static function get_slides_by_slider_id( $id , $order) {
|
972 |
+
require_once WDS()->plugin_dir . "/frontend/models/WDSModelSlider.php";
|
973 |
$model = new WDSModelSlider();
|
974 |
$slider = $model->get_slide_rows_data( $id , $order );
|
975 |
return $slider;
|
983 |
* @return object $layers
|
984 |
*/
|
985 |
public static function get_layers_by_slider_id_slide_ids( $slider_id, $slide_ids ) {
|
986 |
+
require_once WDS()->plugin_dir . "/frontend/models/WDSModelSlider.php";
|
987 |
$model = new WDSModelSlider();
|
988 |
$layers = $model->get_layers_by_slider_id_slide_ids( $slider_id, $slide_ids );
|
989 |
return $layers;
|
1173 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["width"] = "<?php echo $slide_row->att_width; ?>";
|
1174 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["height"] = "<?php echo $slide_row->att_height; ?>";
|
1175 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["fillmode"] = "<?php echo $slide_row->fillmode; ?>";
|
1176 |
+
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["image_thumb_url"] = "<?php echo is_numeric($slide_row->thumb_url) ? (wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) ? wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) : WDS()->plugin_url . '/images/no-video.png' ): htmlspecialchars_decode($slide_row->thumb_url,ENT_QUOTES) ?>";
|
1177 |
<?php
|
1178 |
if (isset($layers_rows[$slide_row->id]) && !empty($layers_rows[$slide_row->id])) {
|
1179 |
foreach ($layers_rows[$slide_row->id] as $layer_key => $layer) {
|
1311 |
iframe_message_received : 'iframe_message_received_<?php echo $wds; ?>',
|
1312 |
video_is_playing : video_is_playing_<?php echo $wds; ?>,
|
1313 |
mouse_wheel_nav : <?php echo $mouse_wheel_nav; ?>,
|
1314 |
+
mouse_swipe_nav : <?php echo $mouse_swipe_nav; ?>,
|
1315 |
+
touch_swipe_nav : <?php echo $touch_swipe_nav; ?>,
|
1316 |
+
keyboard_nav : <?php echo $keyboard_nav; ?>,
|
1317 |
start_slide_num : <?php echo $start_slide_num; ?>,
|
1318 |
start_slide_num_car : <?php echo $slider->start_slide_num; ?>,
|
1319 |
wds_duration_for_clear_effects : wds_duration_for_clear_effects_<?php echo $wds; ?>,
|
1524 |
position: absolute;
|
1525 |
width: <?php echo $media_pp_butt_size; ?>px;
|
1526 |
height: <?php echo $media_pp_butt_size; ?>px;
|
1527 |
+
background-image: url('<?php echo WDS()->plugin_url ?>/images/button/button3/2/1.png');
|
1528 |
background-position: center center;
|
1529 |
background-repeat: no-repeat;
|
1530 |
background-size: cover;
|
1540 |
}
|
1541 |
.wds_bigplay_<?php echo $wds; ?>:hover,
|
1542 |
.wds_bigplay_layer:hover {
|
1543 |
+
background: url('<?php echo WDS()->plugin_url ?>/images/button/button3/2/2.png') no-repeat;
|
1544 |
width: <?php echo $media_pp_butt_size; ?>px;
|
1545 |
height: <?php echo $media_pp_butt_size; ?>px;
|
1546 |
background-position: center center;
|
2171 |
overflow: hidden;
|
2172 |
}
|
2173 |
#wds_container1_<?php echo $wds; ?> .wds_loading_img {
|
2174 |
+
background-image: url('<?php echo WDS()->plugin_url ?>/images/loading/<?php echo $loading_gif; ?>.gif');
|
2175 |
}
|
2176 |
<?php
|
2177 |
if ($hide_on_mobile) {
|
2337 |
|
2338 |
return $css_content;
|
2339 |
}
|
2340 |
+
|
2341 |
+
public static function global_options_defults() {
|
2342 |
+
$global_options = array(
|
2343 |
+
'default_layer_fweight' => 'normal',
|
2344 |
+
'default_layer_start' => 1000,
|
2345 |
+
'default_layer_effect_in' => 'none',
|
2346 |
+
'default_layer_duration_eff_in' => 1000,
|
2347 |
+
'default_layer_infinite_in' => 1,
|
2348 |
+
'default_layer_end' => 3000,
|
2349 |
+
'default_layer_effect_out' => 'none',
|
2350 |
+
'default_layer_duration_eff_out' => 1000,
|
2351 |
+
'default_layer_infinite_out' => 1,
|
2352 |
+
'default_layer_add_class' => '',
|
2353 |
+
'default_layer_ffamily' => 'arial',
|
2354 |
+
'default_layer_google_fonts' => 0,
|
2355 |
+
'loading_gif' => 0,
|
2356 |
+
'register_scripts' => 0,
|
2357 |
+
'spider_uploader' => 0,
|
2358 |
+
'possib_add_ffamily' => '',
|
2359 |
+
'possib_add_ffamily_google' => '',
|
2360 |
+
);
|
2361 |
+
return $global_options;
|
2362 |
+
}
|
2363 |
+
|
2364 |
+
/**
|
2365 |
+
* Redirect.
|
2366 |
+
*
|
2367 |
+
* @param $url
|
2368 |
+
*/
|
2369 |
+
public static function redirect($url) {
|
2370 |
+
$url = html_entity_decode(wp_nonce_url($url, WDS()->nonce, WDS()->nonce));
|
2371 |
+
?>
|
2372 |
+
<script>
|
2373 |
+
window.location = "<?php echo $url; ?>";
|
2374 |
+
</script>
|
2375 |
+
<?php
|
2376 |
+
exit();
|
2377 |
+
}
|
2378 |
+
|
2379 |
+
/**
|
2380 |
+
* Clean page prefix.
|
2381 |
+
*
|
2382 |
+
* @param string $str
|
2383 |
+
* @return string $str
|
2384 |
+
*/
|
2385 |
+
public static function clean_page_prefix( $str = '' ) {
|
2386 |
+
$str = str_replace('_' . WDS()->prefix, '', $str);
|
2387 |
+
$str = ucfirst($str);
|
2388 |
+
return $str;
|
2389 |
+
}
|
2390 |
}
|
2391 |
|
2392 |
/*
|
frontend/controllers/WDSControllerSlider.php
CHANGED
@@ -9,10 +9,10 @@ class WDSControllerSlider {
|
|
9 |
}
|
10 |
|
11 |
public function display( $id, $from_shortcode = 0, $wds = 0 ) {
|
12 |
-
require_once
|
13 |
$model = new WDSModelSlider();
|
14 |
|
15 |
-
require_once
|
16 |
$view = new WDSViewSlider($model);
|
17 |
|
18 |
$view->display( $id, $from_shortcode, $wds );
|
9 |
}
|
10 |
|
11 |
public function display( $id, $from_shortcode = 0, $wds = 0 ) {
|
12 |
+
require_once WDS()->plugin_dir . "/frontend/models/WDSModelSlider.php";
|
13 |
$model = new WDSModelSlider();
|
14 |
|
15 |
+
require_once WDS()->plugin_dir . "/frontend/views/WDSViewSlider.php";
|
16 |
$view = new WDSViewSlider($model);
|
17 |
|
18 |
$view->display( $id, $from_shortcode, $wds );
|
frontend/views/WDSViewSlider.php
CHANGED
@@ -21,13 +21,13 @@ class WDSViewSlider {
|
|
21 |
}
|
22 |
|
23 |
public function display( $id, $from_shortcode = 0, $wds = 0 ) {
|
24 |
-
require_once(
|
25 |
-
if ( !
|
26 |
-
require_once(
|
27 |
}
|
28 |
$slider_row = $this->model->get_slider_row_data($id);
|
29 |
if ( !$slider_row ) {
|
30 |
-
echo WDW_S_Library::message(__('There is no slider selected or the slider was deleted.',
|
31 |
return;
|
32 |
}
|
33 |
if ( !$slider_row->published ) {
|
@@ -40,11 +40,11 @@ class WDSViewSlider {
|
|
40 |
$order_dir = isset($slider_row->order_dir) ? $slider_row->order_dir : 'asc';
|
41 |
$slide_rows = $this->model->get_slide_rows_data( $id, $order_dir );
|
42 |
if (!$slide_rows) {
|
43 |
-
echo WDW_S_Library::message(__('There are no slides in this slider.',
|
44 |
return;
|
45 |
}
|
46 |
|
47 |
-
$no_video_image =
|
48 |
$image_width = $slider_row->width;
|
49 |
$image_height = $slider_row->height;
|
50 |
$slides_count = count($slide_rows);
|
@@ -281,7 +281,7 @@ class WDSViewSlider {
|
|
281 |
data-image-key="<?php echo $key; ?>">
|
282 |
<?php
|
283 |
}
|
284 |
-
elseif ($is_video == 'video' && !
|
285 |
$thumb_url = is_numeric($slide_row->thumb_url) ? (wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) ? wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) : '' ): $slide_row->thumb_url;
|
286 |
?>
|
287 |
<span data-img-id="wds_slideshow_image<?php echo $image_div_num; ?>_<?php echo $wds; ?>"
|
@@ -291,12 +291,12 @@ class WDSViewSlider {
|
|
291 |
<span style="display:<?php echo ($slide_row->link)?'block':'none'; ?> " class="wds_play_btn_cont" onclick="wds_video_play_pause(<?php echo $wds; ?>, wds_slide_<?php echo $wds; ?>_<?php echo $slide_row->id; ?>)" >
|
292 |
<span class="wds_bigplay_<?php echo $wds; ?> <?php echo ($slide_row->target_attr_slide)? 'wds_hide':'' ?>"></span>
|
293 |
</span>
|
294 |
-
<video poster="<?php echo
|
295 |
<source src="<?php echo $slide_row->image_url; ?>" type="video/mp4" id="wds_source<?php echo $slide_row->id; ?>">
|
296 |
</video>
|
297 |
<?php
|
298 |
}
|
299 |
-
elseif ( !
|
300 |
$is_embed_instagram_post = preg_match('/INSTAGRAM_POST/', $slide_row->type) == 1 ? TRUE : FALSE;
|
301 |
if ($is_embed_instagram_post) {
|
302 |
$post_width = $image_width - ($filmstrip_direction == 'vertical' ? $filmstrip_width : 0);
|
@@ -369,7 +369,7 @@ class WDSViewSlider {
|
|
369 |
break;
|
370 |
}
|
371 |
case 'image': {
|
372 |
-
if (
|
373 |
break;
|
374 |
}
|
375 |
?>
|
@@ -395,7 +395,7 @@ class WDSViewSlider {
|
|
395 |
break;
|
396 |
}
|
397 |
case 'video': {
|
398 |
-
if (
|
399 |
break;
|
400 |
}
|
401 |
$is_embed_instagram_post = preg_match('/INSTAGRAM_POST/', $layer->alt) == 1 ? TRUE :FALSE;
|
@@ -431,7 +431,7 @@ class WDSViewSlider {
|
|
431 |
break;
|
432 |
}
|
433 |
case 'upvideo': {
|
434 |
-
if (
|
435 |
break;
|
436 |
}
|
437 |
$layer_image_url = wp_get_attachment_url(get_post_thumbnail_id($layer->image_url)) ? wp_get_attachment_url(get_post_thumbnail_id($layer->image_url)) : '';
|
@@ -450,7 +450,7 @@ class WDSViewSlider {
|
|
450 |
<span style="display:<?php echo ($layer->target_attr_layer) ? 'block' : 'none'; ?> " class="wds_play_btn_cont" onclick="wds_video_play_pause_layer(event,<?php echo $wds ; ?>,<?php echo $slide_row->id ; ?>,<?php echo $layer->id; ?>)">
|
451 |
<span style="display:<?php echo ($layer->image_scale == 'on') ? 'none' : 'block'; ?> " class="wds_bigplay_layer" id="wds_bigplay_layer_<?php echo $wds . '_' . $slide_row->id . '_layer_' . $layer->id; ?>" onclick="wds_video_play_pause_layer(event,<?php echo $wds ; ?>,<?php echo $slide_row->id ; ?>,<?php echo $layer->id; ?>)"></span>
|
452 |
</span>
|
453 |
-
<video poster="<?php echo
|
454 |
style="background-image: url('<?php echo $layer->image_scale != 'on' ? $layer_image_url : ''; ?>'); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;"
|
455 |
<?php echo $layer->layer_video_loop ? "loop": ""; ?>
|
456 |
<?php echo $layer->target_attr_layer == '1' ? "controls ": ""; ?>
|
@@ -462,7 +462,7 @@ class WDSViewSlider {
|
|
462 |
break;
|
463 |
}
|
464 |
case 'social': {
|
465 |
-
if (
|
466 |
break;
|
467 |
}
|
468 |
?>
|
@@ -470,31 +470,31 @@ class WDSViewSlider {
|
|
470 |
switch ($layer->social_button) {
|
471 |
case 'facebook': {
|
472 |
?>
|
473 |
-
<a class="wds_share_a" onclick="event.stopPropagation();" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Facebook',
|
474 |
<?php
|
475 |
break;
|
476 |
}
|
477 |
case 'twitter': {
|
478 |
?>
|
479 |
-
<a class="wds_share_a" onclick="event.stopPropagation();" href="https://twitter.com/share?url=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Twitter',
|
480 |
<?php
|
481 |
break;
|
482 |
}
|
483 |
case 'google-plus': {
|
484 |
?>
|
485 |
-
<a class="wds_share_a" onclick="event.stopPropagation();" href="https://plus.google.com/share?url=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Google+',
|
486 |
<?php
|
487 |
break;
|
488 |
}
|
489 |
case 'pinterest': {
|
490 |
?>
|
491 |
-
<a class="wds_share_a" onclick="event.stopPropagation();" href="http://pinterest.com/pin/create/button/?s=100&url=<?php echo urlencode($share_url); ?>&media=<?php echo $share_image_url; ?>&description=<?php echo urlencode($slide_row->title); ?>" target="_blank" title="<?php echo __('Share on Pinterest',
|
492 |
<?php
|
493 |
break;
|
494 |
}
|
495 |
case 'tumblr': {
|
496 |
?>
|
497 |
-
<a class="wds_share_a" onclick="event.stopPropagation();" href="https://www.tumblr.com/share/photo?source=<?php echo $share_image_url; ?>&caption=<?php echo urlencode($slide_row->title); ?>&clickthru=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Tumblr',
|
498 |
<?php
|
499 |
break;
|
500 |
}
|
@@ -517,7 +517,7 @@ class WDSViewSlider {
|
|
517 |
break;
|
518 |
}
|
519 |
case 'hotspots': {
|
520 |
-
if (
|
521 |
break;
|
522 |
}
|
523 |
?>
|
21 |
}
|
22 |
|
23 |
public function display( $id, $from_shortcode = 0, $wds = 0 ) {
|
24 |
+
require_once(WDS()->plugin_dir . '/framework/WDW_S_Library.php');
|
25 |
+
if ( !WDS()->is_free ) {
|
26 |
+
require_once(WDS()->plugin_dir . '/framework/WDW_S_LibraryEmbed.php');
|
27 |
}
|
28 |
$slider_row = $this->model->get_slider_row_data($id);
|
29 |
if ( !$slider_row ) {
|
30 |
+
echo WDW_S_Library::message(__('There is no slider selected or the slider was deleted.', WDS()->prefix), 'wd_error');
|
31 |
return;
|
32 |
}
|
33 |
if ( !$slider_row->published ) {
|
40 |
$order_dir = isset($slider_row->order_dir) ? $slider_row->order_dir : 'asc';
|
41 |
$slide_rows = $this->model->get_slide_rows_data( $id, $order_dir );
|
42 |
if (!$slide_rows) {
|
43 |
+
echo WDW_S_Library::message(__('There are no slides in this slider.', WDS()->prefix), 'wd_error');
|
44 |
return;
|
45 |
}
|
46 |
|
47 |
+
$no_video_image = WDS()->plugin_url . '/images/no-video.png';
|
48 |
$image_width = $slider_row->width;
|
49 |
$image_height = $slider_row->height;
|
50 |
$slides_count = count($slide_rows);
|
281 |
data-image-key="<?php echo $key; ?>">
|
282 |
<?php
|
283 |
}
|
284 |
+
elseif ($is_video == 'video' && !WDS()->is_free) {
|
285 |
$thumb_url = is_numeric($slide_row->thumb_url) ? (wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) ? wp_get_attachment_url(get_post_thumbnail_id($slide_row->thumb_url)) : '' ): $slide_row->thumb_url;
|
286 |
?>
|
287 |
<span data-img-id="wds_slideshow_image<?php echo $image_div_num; ?>_<?php echo $wds; ?>"
|
291 |
<span style="display:<?php echo ($slide_row->link)?'block':'none'; ?> " class="wds_play_btn_cont" onclick="wds_video_play_pause(<?php echo $wds; ?>, wds_slide_<?php echo $wds; ?>_<?php echo $slide_row->id; ?>)" >
|
292 |
<span class="wds_bigplay_<?php echo $wds; ?> <?php echo ($slide_row->target_attr_slide)? 'wds_hide':'' ?>"></span>
|
293 |
</span>
|
294 |
+
<video poster="<?php echo WDS()->plugin_url . '/images/blank.gif' ?>" style="background-image: url('<?php echo !empty($thumb_url) ? $thumb_url : $no_video_image ?>');" <?php echo isset($slide_row->video_loop) && $slide_row->video_loop == 1 ? 'loop' : ''; ?> <?php echo $slide_row->link == '1' ? "controls": ""; ?> id="wds_slide_<?php echo $wds; ?>_<?php echo $slide_row->id; ?>">
|
295 |
<source src="<?php echo $slide_row->image_url; ?>" type="video/mp4" id="wds_source<?php echo $slide_row->id; ?>">
|
296 |
</video>
|
297 |
<?php
|
298 |
}
|
299 |
+
elseif ( !WDS()->is_free ) {
|
300 |
$is_embed_instagram_post = preg_match('/INSTAGRAM_POST/', $slide_row->type) == 1 ? TRUE : FALSE;
|
301 |
if ($is_embed_instagram_post) {
|
302 |
$post_width = $image_width - ($filmstrip_direction == 'vertical' ? $filmstrip_width : 0);
|
369 |
break;
|
370 |
}
|
371 |
case 'image': {
|
372 |
+
if ( WDS()->is_free ) {
|
373 |
break;
|
374 |
}
|
375 |
?>
|
395 |
break;
|
396 |
}
|
397 |
case 'video': {
|
398 |
+
if ( WDS()->is_free ) {
|
399 |
break;
|
400 |
}
|
401 |
$is_embed_instagram_post = preg_match('/INSTAGRAM_POST/', $layer->alt) == 1 ? TRUE :FALSE;
|
431 |
break;
|
432 |
}
|
433 |
case 'upvideo': {
|
434 |
+
if ( WDS()->is_free ) {
|
435 |
break;
|
436 |
}
|
437 |
$layer_image_url = wp_get_attachment_url(get_post_thumbnail_id($layer->image_url)) ? wp_get_attachment_url(get_post_thumbnail_id($layer->image_url)) : '';
|
450 |
<span style="display:<?php echo ($layer->target_attr_layer) ? 'block' : 'none'; ?> " class="wds_play_btn_cont" onclick="wds_video_play_pause_layer(event,<?php echo $wds ; ?>,<?php echo $slide_row->id ; ?>,<?php echo $layer->id; ?>)">
|
451 |
<span style="display:<?php echo ($layer->image_scale == 'on') ? 'none' : 'block'; ?> " class="wds_bigplay_layer" id="wds_bigplay_layer_<?php echo $wds . '_' . $slide_row->id . '_layer_' . $layer->id; ?>" onclick="wds_video_play_pause_layer(event,<?php echo $wds ; ?>,<?php echo $slide_row->id ; ?>,<?php echo $layer->id; ?>)"></span>
|
452 |
</span>
|
453 |
+
<video poster="<?php echo WDS()->plugin_url . '/images/blank.gif' ?>"
|
454 |
style="background-image: url('<?php echo $layer->image_scale != 'on' ? $layer_image_url : ''; ?>'); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;"
|
455 |
<?php echo $layer->layer_video_loop ? "loop": ""; ?>
|
456 |
<?php echo $layer->target_attr_layer == '1' ? "controls ": ""; ?>
|
462 |
break;
|
463 |
}
|
464 |
case 'social': {
|
465 |
+
if ( WDS()->is_free ) {
|
466 |
break;
|
467 |
}
|
468 |
?>
|
470 |
switch ($layer->social_button) {
|
471 |
case 'facebook': {
|
472 |
?>
|
473 |
+
<a class="wds_share_a" onclick="event.stopPropagation();" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Facebook', WDS()->prefix); ?>">
|
474 |
<?php
|
475 |
break;
|
476 |
}
|
477 |
case 'twitter': {
|
478 |
?>
|
479 |
+
<a class="wds_share_a" onclick="event.stopPropagation();" href="https://twitter.com/share?url=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Twitter', WDS()->prefix); ?>">
|
480 |
<?php
|
481 |
break;
|
482 |
}
|
483 |
case 'google-plus': {
|
484 |
?>
|
485 |
+
<a class="wds_share_a" onclick="event.stopPropagation();" href="https://plus.google.com/share?url=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Google+', WDS()->prefix); ?>">
|
486 |
<?php
|
487 |
break;
|
488 |
}
|
489 |
case 'pinterest': {
|
490 |
?>
|
491 |
+
<a class="wds_share_a" onclick="event.stopPropagation();" href="http://pinterest.com/pin/create/button/?s=100&url=<?php echo urlencode($share_url); ?>&media=<?php echo $share_image_url; ?>&description=<?php echo urlencode($slide_row->title); ?>" target="_blank" title="<?php echo __('Share on Pinterest', WDS()->prefix); ?>">
|
492 |
<?php
|
493 |
break;
|
494 |
}
|
495 |
case 'tumblr': {
|
496 |
?>
|
497 |
+
<a class="wds_share_a" onclick="event.stopPropagation();" href="https://www.tumblr.com/share/photo?source=<?php echo $share_image_url; ?>&caption=<?php echo urlencode($slide_row->title); ?>&clickthru=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Tumblr', WDS()->prefix); ?>">
|
498 |
<?php
|
499 |
break;
|
500 |
}
|
517 |
break;
|
518 |
}
|
519 |
case 'hotspots': {
|
520 |
+
if ( WDS()->is_free ) {
|
521 |
break;
|
522 |
}
|
523 |
?>
|
js/wds.js
CHANGED
@@ -3897,7 +3897,7 @@ function wds_get_checked() {
|
|
3897 |
ids_string = 'all';
|
3898 |
}
|
3899 |
else {
|
3900 |
-
jQuery("#
|
3901 |
if (jQuery(this).is(':checked')) {
|
3902 |
var id = jQuery(this).attr("id");
|
3903 |
if (id != 'check_all' && id != 'check_all_items' && id != 'imagesexport') {
|
@@ -3948,6 +3948,8 @@ function wds_import() {
|
|
3948 |
}
|
3949 |
function wds_merge() {
|
3950 |
var flag = true;
|
|
|
|
|
3951 |
jQuery('input[id^="check_"]').each(function() {
|
3952 |
var id = jQuery(this).attr("id").replace("check_", "");
|
3953 |
if (jQuery(this).is(':checked')) {
|
@@ -4130,12 +4132,12 @@ function remove_callback_item(that) {
|
|
4130 |
jQuery("#callback_list").find("option[value=" + jQuery(that).prev().attr("name") + "]").show();
|
4131 |
}
|
4132 |
|
4133 |
-
function
|
4134 |
var action = jQuery(that).val();
|
4135 |
if (action == 'export') {
|
4136 |
wds_export();
|
4137 |
}
|
4138 |
-
else if (action == '
|
4139 |
wds_merge();
|
4140 |
return false;
|
4141 |
}
|
@@ -4146,7 +4148,7 @@ function wds_bulk_actions(that) {
|
|
4146 |
}
|
4147 |
}
|
4148 |
spider_set_input_value('task', action);
|
4149 |
-
jQuery('#
|
4150 |
}
|
4151 |
else {
|
4152 |
return false;
|
@@ -4286,3 +4288,34 @@ function showHowToTabBlock(){
|
|
4286 |
jQuery(".wds_howto_content .wds_howto_shortcode").val(shortcode);
|
4287 |
jQuery(".wds_howto_content .wds_howto_phpcode").val(phpcode);
|
4288 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3897 |
ids_string = 'all';
|
3898 |
}
|
3899 |
else {
|
3900 |
+
jQuery("#wds_sliders_form input[type='checkbox']").each(function () {
|
3901 |
if (jQuery(this).is(':checked')) {
|
3902 |
var id = jQuery(this).attr("id");
|
3903 |
if (id != 'check_all' && id != 'check_all_items' && id != 'imagesexport') {
|
3948 |
}
|
3949 |
function wds_merge() {
|
3950 |
var flag = true;
|
3951 |
+
jQuery('#bulk-action-selector-top').prop('selectedIndex',0);
|
3952 |
+
jQuery('#select_slider_merge').prop('selectedIndex',0);
|
3953 |
jQuery('input[id^="check_"]').each(function() {
|
3954 |
var id = jQuery(this).attr("id").replace("check_", "");
|
3955 |
if (jQuery(this).is(':checked')) {
|
4132 |
jQuery("#callback_list").find("option[value=" + jQuery(that).prev().attr("name") + "]").show();
|
4133 |
}
|
4134 |
|
4135 |
+
function wd_bulk_action(that) {
|
4136 |
var action = jQuery(that).val();
|
4137 |
if (action == 'export') {
|
4138 |
wds_export();
|
4139 |
}
|
4140 |
+
else if (action == 'merge') {
|
4141 |
wds_merge();
|
4142 |
return false;
|
4143 |
}
|
4148 |
}
|
4149 |
}
|
4150 |
spider_set_input_value('task', action);
|
4151 |
+
jQuery('#wds_sliders_form').submit();
|
4152 |
}
|
4153 |
else {
|
4154 |
return false;
|
4288 |
jQuery(".wds_howto_content .wds_howto_shortcode").val(shortcode);
|
4289 |
jQuery(".wds_howto_content .wds_howto_phpcode").val(phpcode);
|
4290 |
}
|
4291 |
+
|
4292 |
+
/**
|
4293 |
+
* Search on input enter.
|
4294 |
+
*
|
4295 |
+
* @param e
|
4296 |
+
* @param that
|
4297 |
+
* @returns {boolean}
|
4298 |
+
*/
|
4299 |
+
function input_search(e, that) {
|
4300 |
+
var key_code = (e.keyCode ? e.keyCode : e.which);
|
4301 |
+
if (key_code == 13) { /*Enter keycode*/
|
4302 |
+
search(that);
|
4303 |
+
return false;
|
4304 |
+
}
|
4305 |
+
}
|
4306 |
+
|
4307 |
+
/**
|
4308 |
+
* Search.
|
4309 |
+
*
|
4310 |
+
* @param that
|
4311 |
+
*/
|
4312 |
+
/**
|
4313 |
+
* Search.
|
4314 |
+
*
|
4315 |
+
* @param that
|
4316 |
+
*/
|
4317 |
+
function search(that) {
|
4318 |
+
var form = jQuery(that).parents("form");
|
4319 |
+
form.attr("action", window.location + "&paged=1&s=" + jQuery("input[name='s']").val());
|
4320 |
+
form.submit();
|
4321 |
+
}
|
js/wds_frontend.js
CHANGED
@@ -1959,11 +1959,10 @@ function wds_resize_slider( wds ) {
|
|
1959 |
slide_width = slide_orig_width;
|
1960 |
}
|
1961 |
ratio = slide_width / (slide_orig_width + 2 * wds_params[wds].wds_glb_margin);
|
1962 |
-
|
1963 |
}
|
1964 |
if (full_width == '1') {
|
1965 |
ratio = jQuery(window).width() / slide_orig_width;
|
1966 |
-
slide_orig_width = jQuery(window).width();
|
1967 |
if (wds_params[wds].auto_height) {
|
1968 |
slide_orig_height = jQuery(window).height();
|
1969 |
}
|
@@ -1975,10 +1974,10 @@ function wds_resize_slider( wds ) {
|
|
1975 |
wds_full_width( wds );
|
1976 |
}
|
1977 |
else if ( full_width == "2" ) {
|
1978 |
-
slide_orig_width = jQuery("#wds_container1_"+wds)
|
1979 |
-
ratio = wds_params[wds].image_width
|
1980 |
// slide_orig_height = wds_params[wds].image_height + wds_params[wds].filmstrip_height * slide_orig_width / wds_params[wds].image_width;
|
1981 |
-
slide_orig_height = (wds_params[wds].filmstrip_height+
|
1982 |
}
|
1983 |
else if ( parseInt(wds_params[wds].full_width_for_mobile) ) {
|
1984 |
jQuery(".wds_slideshow_image_wrap_"+wds).removeAttr("style");
|
1959 |
slide_width = slide_orig_width;
|
1960 |
}
|
1961 |
ratio = slide_width / (slide_orig_width + 2 * wds_params[wds].wds_glb_margin);
|
|
|
1962 |
}
|
1963 |
if (full_width == '1') {
|
1964 |
ratio = jQuery(window).width() / slide_orig_width;
|
1965 |
+
slide_orig_width = jQuery(window).width();
|
1966 |
if (wds_params[wds].auto_height) {
|
1967 |
slide_orig_height = jQuery(window).height();
|
1968 |
}
|
1974 |
wds_full_width( wds );
|
1975 |
}
|
1976 |
else if ( full_width == "2" ) {
|
1977 |
+
slide_orig_width = wds_get_overall_parent(jQuery("#wds_container1_"+wds));
|
1978 |
+
ratio = slide_orig_width / wds_params[wds].image_width;
|
1979 |
// slide_orig_height = wds_params[wds].image_height + wds_params[wds].filmstrip_height * slide_orig_width / wds_params[wds].image_width;
|
1980 |
+
slide_orig_height = (wds_params[wds].filmstrip_height + wds_params[wds].image_height) * ratio - (2 * wds_params[wds].wds_glb_margin);
|
1981 |
}
|
1982 |
else if ( parseInt(wds_params[wds].full_width_for_mobile) ) {
|
1983 |
jQuery(".wds_slideshow_image_wrap_"+wds).removeAttr("style");
|
licensing/licensing.php
CHANGED
@@ -1,32 +1,32 @@
|
|
1 |
<div id="featurs_tables">
|
2 |
<div id="featurs_table1">
|
3 |
-
<span><?php _e('Responsive Design and Layout',
|
4 |
-
<span><?php _e('Unlimited amount of sliders and layers',
|
5 |
-
<span><?php _e('Full Width slider support',
|
6 |
-
<span><?php _e('Possibility of linking slides to specific URLs',
|
7 |
-
<span><?php _e('Autoplay',
|
8 |
-
<span><?php _e('Shuffle',
|
9 |
-
<span><?php _e('Timer Bar',
|
10 |
-
<span><?php _e('Navigation bullets',
|
11 |
-
<span><?php _e('Right-click protection for slides',
|
12 |
-
<span><?php _e('Music playback',
|
13 |
-
<span><?php _e('Custom CSS',
|
14 |
-
<span><?php _e('Watermark support',
|
15 |
-
<span><?php _e('Transition effects',
|
16 |
-
<span><?php _e('Layer effects',
|
17 |
-
<span><?php _e('Post Slides',
|
18 |
-
<span><?php _e('Video Slide support (YouTube and Vimeo)',
|
19 |
-
<span><?php _e('Dailymotion, Instagram and Flickr embed',
|
20 |
-
<span><?php _e('Layers (text, image and media embed)',
|
21 |
-
<span><?php _e('Social sharing buttons layer',
|
22 |
-
<span><?php _e('Hotspot layer',
|
23 |
-
<span><?php _e('Navigation buttons and bullet styles',
|
24 |
-
<span><?php _e('Filmstrip support',
|
25 |
-
<span><?php _e('Parallax effect',
|
26 |
-
<span><?php _e('Carousel effect',
|
27 |
</div>
|
28 |
<div id="featurs_table2">
|
29 |
-
<span><?php _e('Free',
|
30 |
<span class="yes"></span>
|
31 |
<span class="yes"></span>
|
32 |
<span class="yes"></span>
|
@@ -53,7 +53,7 @@
|
|
53 |
<span class="no"></span>
|
54 |
</div>
|
55 |
<div id="featurs_table3">
|
56 |
-
<span><?php _e('Pro Version',
|
57 |
<span class="yes"></span>
|
58 |
<span class="yes"></span>
|
59 |
<span class="yes"></span>
|
@@ -81,10 +81,10 @@
|
|
81 |
</div>
|
82 |
</div>
|
83 |
<div style="float: left; clear: both;">
|
84 |
-
<p><?php _e('After purchasing the commercial version follow these steps:',
|
85 |
<ol>
|
86 |
-
<li><?php _e('Deactivate Slider WD plugin.',
|
87 |
-
<li><?php _e('Delete Slider WD plugin.',
|
88 |
-
<li><?php _e('Install the downloaded commercial version of the plugin.',
|
89 |
</ol>
|
90 |
</div>
|
1 |
<div id="featurs_tables">
|
2 |
<div id="featurs_table1">
|
3 |
+
<span><?php _e('Responsive Design and Layout', WDS()->prefix);?></span>
|
4 |
+
<span><?php _e('Unlimited amount of sliders and layers', WDS()->prefix);?></span>
|
5 |
+
<span><?php _e('Full Width slider support', WDS()->prefix);?></span>
|
6 |
+
<span><?php _e('Possibility of linking slides to specific URLs', WDS()->prefix);?></span>
|
7 |
+
<span><?php _e('Autoplay', WDS()->prefix);?></span>
|
8 |
+
<span><?php _e('Shuffle', WDS()->prefix);?></span>
|
9 |
+
<span><?php _e('Timer Bar', WDS()->prefix);?></span>
|
10 |
+
<span><?php _e('Navigation bullets', WDS()->prefix);?></span>
|
11 |
+
<span><?php _e('Right-click protection for slides', WDS()->prefix);?></span>
|
12 |
+
<span><?php _e('Music playback', WDS()->prefix);?></span>
|
13 |
+
<span><?php _e('Custom CSS', WDS()->prefix);?></span>
|
14 |
+
<span><?php _e('Watermark support', WDS()->prefix);?></span>
|
15 |
+
<span><?php _e('Transition effects', WDS()->prefix);?></span>
|
16 |
+
<span><?php _e('Layer effects', WDS()->prefix);?></span>
|
17 |
+
<span><?php _e('Post Slides', WDS()->prefix);?></span>
|
18 |
+
<span><?php _e('Video Slide support (YouTube and Vimeo)', WDS()->prefix);?></span>
|
19 |
+
<span><?php _e('Dailymotion, Instagram and Flickr embed', WDS()->prefix);?></span>
|
20 |
+
<span><?php _e('Layers (text, image and media embed)', WDS()->prefix);?></span>
|
21 |
+
<span><?php _e('Social sharing buttons layer', WDS()->prefix);?></span>
|
22 |
+
<span><?php _e('Hotspot layer', WDS()->prefix);?></span>
|
23 |
+
<span><?php _e('Navigation buttons and bullet styles', WDS()->prefix);?></span>
|
24 |
+
<span><?php _e('Filmstrip support', WDS()->prefix);?></span>
|
25 |
+
<span><?php _e('Parallax effect', WDS()->prefix);?></span>
|
26 |
+
<span><?php _e('Carousel effect', WDS()->prefix);?></span>
|
27 |
</div>
|
28 |
<div id="featurs_table2">
|
29 |
+
<span><?php _e('Free', WDS()->prefix);?></span>
|
30 |
<span class="yes"></span>
|
31 |
<span class="yes"></span>
|
32 |
<span class="yes"></span>
|
53 |
<span class="no"></span>
|
54 |
</div>
|
55 |
<div id="featurs_table3">
|
56 |
+
<span><?php _e('Pro Version', WDS()->prefix);?></span>
|
57 |
<span class="yes"></span>
|
58 |
<span class="yes"></span>
|
59 |
<span class="yes"></span>
|
81 |
</div>
|
82 |
</div>
|
83 |
<div style="float: left; clear: both;">
|
84 |
+
<p><?php _e('After purchasing the commercial version follow these steps:', WDS()->prefix);?></p>
|
85 |
<ol>
|
86 |
+
<li><?php _e('Deactivate Slider WD plugin.', WDS()->prefix);?></li>
|
87 |
+
<li><?php _e('Delete Slider WD plugin.', WDS()->prefix);?></li>
|
88 |
+
<li><?php _e('Install the downloaded commercial version of the plugin.', WDS()->prefix);?></li>
|
89 |
</ol>
|
90 |
</div>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gall
|
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 4.9
|
6 |
Requires PHP: 5.2
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -124,7 +124,7 @@ If any problem occurs with installation of Slider WD, [please let us know](https
|
|
124 |
|
125 |
== Frequently Asked Questions ==
|
126 |
|
127 |
-
=
|
128 |
|
129 |
WordPress Slider plugin is a user-friendly tool which helps you create unlimited responsive sliders for your website.
|
130 |
|
@@ -136,15 +136,31 @@ Enrich the display of your slides with **6 amazing layer features,** such as tex
|
|
136 |
|
137 |
Using this WordPress Slider plugin, you can turn your slideshow into **a posts slider** using your website posts. Furthermore, you can create an interactive slideshow by linking any slide to an internal or external web page.
|
138 |
|
139 |
-
Powered by modern technology, WordPress Slider plugin will help you build amazing sliders without having to code a single line.
|
140 |
|
141 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
|
143 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
|
145 |
Upload the images and videos you wish to add or browse items from WordPress Media Library. You can select a single item by clicking on it, or choose multiple by pressing and holding **Shift** or **Control** keys on your keyboard.
|
146 |
|
147 |
-
After choosing the images and videos, press **Add to Slider** button.
|
148 |
|
149 |
When the slides are added, you will be able to see the list of their thumbnails which help you to easily navigate through slides. Each thumbnail has its own set of buttons, which will become visible after hovering on an item:
|
150 |
|
@@ -156,7 +172,6 @@ Furthermore, you are able to change the ordering of the slides by dragging the t
|
|
156 |
|
157 |
Make sure to **Publish/Update** your slideshow to keep the changes you made. You can also **Preview** the slider to check its appearance.
|
158 |
|
159 |
-
|
160 |
**Adding Images from URL**
|
161 |
|
162 |
In addition to uploading, embedding items and using WordPress posts, WordPress Slider plugin allows to insert images using their absolute links. To do this, press **Add Slides** button and navigate to **Insert from URL** tab.
|
@@ -167,7 +182,6 @@ This section of the toolbox provides an input, where you just need to add the ab
|
|
167 |
|
168 |
After providing the URL of the slide image, click **Add to Slider** button.
|
169 |
|
170 |
-
|
171 |
**Using WD Media Uploader**
|
172 |
|
173 |
Besides using default Media Library, WordPress Slider plugin has an advanced WD Uploader for adding or editing slides. This is a powerful and user-friendly tool which allows you to upload and manage images, separate them into folders, and more.
|
@@ -176,7 +190,7 @@ To access WD Uploader, firstly, you need to enable it from **Global Options** of
|
|
176 |
|
177 |
Afterwards, edit your slideshow and click on **Add Slides** button. Navigate to WD Media Uploader tab to start adding new images. This dashboard includes a set of options which we will describe one by one.
|
178 |
|
179 |
-
=
|
180 |
|
181 |
Slider WD plugin also lets you embed media from various platforms, such as **YouTube** and **Vimeo.** To use this feature, press **Add Slides** button then click on **Embed Media** tab. Use the input bar above to add the **URL** of the image or video you wish to add, then press **Add to slider** button.
|
182 |
|
@@ -189,17 +203,23 @@ You can import items from the following websites:
|
|
189 |
|
190 |
For instance, when adding a YouTube video as a slideshow item, you just need to provide its link.
|
191 |
|
192 |
-
|
|
|
|
|
193 |
|
194 |
Use **CSS** tab of **Slider Settings** to write additional CSS code and apply custom styles to the slider. Note, that these changes will override the original styles of the slider.
|
195 |
|
196 |
-
|
|
|
|
|
|
|
|
|
197 |
|
198 |
To publish your slideshow on a widget area, navigate to Appearance > Widgets page. All widgets on your website and widget areas provided by your theme are available on this dashboard.
|
199 |
|
200 |
Look for Slider WD widget, then drag it to the widget area where you wish to display the slideshow. Write a Title for the widget and choose any slideshow using Select Slider drop-down menu. Press Save and the slider will appear on this widget area immediately.
|
201 |
|
202 |
-
=
|
203 |
|
204 |
WordPress slider plugin provides powerful layer options, which help you enhance the display of your slideshow. This section of Slider WD user guide will help you add them to your slides and fully customize them.
|
205 |
|
@@ -233,7 +253,7 @@ and much more.
|
|
233 |
|
234 |
It is important to note, that Slider WD plugin also allows you to reposition layers by dragging them around on the slide itself.
|
235 |
|
236 |
-
=
|
237 |
|
238 |
To save lots of time, WordPress slider plugin provides its **Import/Export** feature, letting you move created sliders from one site to another. With just a few clicks, you can have all slideshows uploaded and built on your second website.
|
239 |
|
@@ -251,7 +271,7 @@ To import the downloaded sliders, go to **Slider WD > Import** page first. Use *
|
|
251 |
|
252 |
You can also import slideshows from Demo site and import them to your website. Just press the **Download** button below each slider, and follow the steps described above.
|
253 |
|
254 |
-
=
|
255 |
|
256 |
To insert your slider into a page or post, add or edit the post/page where you wish to showcase the slideshow. Above the content editor, there is a button titled **Add Slider WD.** All you need to do is to press this button, choose a slideshow using **Select a Slider** drop-down menu, then click **Insert.**
|
257 |
|
@@ -259,7 +279,7 @@ The shortcode of your slideshow, e.g. [wds id="2"], will be added to the content
|
|
259 |
|
260 |
In addition, you can add the shortcode manually by copying it from **Slider WD > Sliders** page. Each slider shortcode is displayed next to the corresponding item, under **Shortcode** column.
|
261 |
|
262 |
-
=
|
263 |
|
264 |
WordPress Slider plugin comes with a set of useful options which allow you to customize each slideshow independently. Having configured slideshows separately, you can publish multiple sliders on your website, each with its own unique design and purpose.
|
265 |
|
@@ -324,11 +344,11 @@ You are able to add watermark to the main images of your slider with the options
|
|
324 |
* setting the size of the watermark image, and select the position of the watermark.
|
325 |
* Press Set Watermark to add the watermark text or image to main images of your slider. To remove it, simply click on Reset Watermark button.
|
326 |
|
327 |
-
=
|
328 |
|
329 |
Yes, you can create unlimited number of sliders with unlimited amount of slides. Then you may paste corresponding slider code within each page.The slider shortcodes are listed next to the slider in **Slider WD > Slider** section.
|
330 |
|
331 |
-
=
|
332 |
|
333 |
In case you use custom PHP templates and would like to display your slideshow on these pages, you can use **PHP function** Slider WD plugin provides. You just need to add the function, e.g.:
|
334 |
|
@@ -336,7 +356,7 @@ In case you use custom PHP templates and would like to display your slideshow on
|
|
336 |
|
337 |
into the necessary .php file. For instance, if you wish to display the slideshow along with the header, simply add the code to header.php file of your website theme. You can find the function and copy it from **Slider WD > Sliders** page, under **PHP function** column.
|
338 |
|
339 |
-
=
|
340 |
|
341 |
You are able to add watermark to the main images of your slider with the options **Slider Settings > Watermark** section provides. Choose the type of the watermark, **text** or **image,** then configure settings such as:
|
342 |
|
@@ -347,13 +367,13 @@ You are able to add watermark to the main images of your slider with the options
|
|
347 |
|
348 |
Press **Set Watermark** to add the watermark text or image to main images of your slider. To remove it, simply click on Reset Watermark button.
|
349 |
|
350 |
-
=
|
351 |
|
352 |
Slider WD does support Google Fonts. This allows you to custom text layer over slides using the provided big variety of Google Fonts.
|
353 |
|
354 |
You can change the fonts of a layer by editing it. Look for **Font family** option to enable **Google Fonts,** then select the font family you wish to use.
|
355 |
|
356 |
-
=
|
357 |
|
358 |
This free slider plugin can be used for showcasing your portfoliow with the help of:
|
359 |
* Image slider,
|
@@ -361,17 +381,17 @@ This free slider plugin can be used for showcasing your portfoliow with the help
|
|
361 |
* post slider,
|
362 |
* product slider,
|
363 |
* photo slider / gallery slider,
|
364 |
-
* carousel slider
|
365 |
|
366 |
Thes content slider options are the most commonly used applications of the best slider plugin, but those can be expanded to meet the needs. You can combine images into multi-layer content with videos and carousel slideshow effect or display video layers.
|
367 |
|
368 |
-
=
|
369 |
|
370 |
-
The plugin allows embedding WordPress posts making it a great WordPress Posts slider with various functionality and content slideshow.
|
371 |
|
372 |
-
Moreover, it can be turned into custom post types slider with various layers, images and animations. This will help to create product carousel/image carousel with ecommerce plugins or photo slideshow with gallery plugin and even more.
|
373 |
|
374 |
-
The good part of this is that you can have a text slider with its picture slide, while keeping up with responsive post slider if compared with other post slider or banner slider plugins.
|
375 |
|
376 |
|
377 |
== Screenshots ==
|
@@ -385,6 +405,11 @@ The good part of this is that you can have a text slider with its picture slide,
|
|
385 |
|
386 |
== Changelog ==
|
387 |
|
|
|
|
|
|
|
|
|
|
|
388 |
= 1.2.5 =
|
389 |
* Added: Insert slide image from URL.
|
390 |
* Fixed: Full width slider height.
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 4.9
|
6 |
Requires PHP: 5.2
|
7 |
+
Stable tag: 1.2.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
124 |
|
125 |
== Frequently Asked Questions ==
|
126 |
|
127 |
+
= What can I achieve with Slider WD plugin? =
|
128 |
|
129 |
WordPress Slider plugin is a user-friendly tool which helps you create unlimited responsive sliders for your website.
|
130 |
|
136 |
|
137 |
Using this WordPress Slider plugin, you can turn your slideshow into **a posts slider** using your website posts. Furthermore, you can create an interactive slideshow by linking any slide to an internal or external web page.
|
138 |
|
139 |
+
Powered by modern technology, WordPress Slider plugin will help you build amazing sliders without having to code a single line. You can create the following types of CSS3 slider with wonderful autoplay feature:
|
140 |
|
141 |
+
* cycle slider,
|
142 |
+
* free video slideshow (specifically TouTube slideshow and vimeo slideshow),
|
143 |
+
* product carousel,
|
144 |
+
* Javascript slideshow,
|
145 |
+
* photo slideshow,
|
146 |
+
* testimonial slider,
|
147 |
+
* content slideshow,
|
148 |
+
* simple image rotator,
|
149 |
+
* video gallery and more.
|
150 |
|
151 |
+
You can display images slider with different elegant animations. This slideshow plugin allows you to display your portfolio images, videos in a modern slider gallery.
|
152 |
+
|
153 |
+
The options to create these slideshows are infinite. For instance, if you wish to create a simple PDF slider, you can use text layers and image layers on a white background image, and thus showcase your content slider in a PDF-like style.
|
154 |
+
|
155 |
+
Or, you can turn the slider into a Woocommerce slider by adding links to Woocommerce product pages.
|
156 |
+
|
157 |
+
= How can I add images to slider? =
|
158 |
+
|
159 |
+
Press **Add Slides** button below **Slider Title** to add an item to your banner rotator. You will access **WordPress Media Library,** which lets you use existing images or upload new media.
|
160 |
|
161 |
Upload the images and videos you wish to add or browse items from WordPress Media Library. You can select a single item by clicking on it, or choose multiple by pressing and holding **Shift** or **Control** keys on your keyboard.
|
162 |
|
163 |
+
After choosing the images and videos for your image carousel or cycle slider, press **Add to Slider** button.
|
164 |
|
165 |
When the slides are added, you will be able to see the list of their thumbnails which help you to easily navigate through slides. Each thumbnail has its own set of buttons, which will become visible after hovering on an item:
|
166 |
|
172 |
|
173 |
Make sure to **Publish/Update** your slideshow to keep the changes you made. You can also **Preview** the slider to check its appearance.
|
174 |
|
|
|
175 |
**Adding Images from URL**
|
176 |
|
177 |
In addition to uploading, embedding items and using WordPress posts, WordPress Slider plugin allows to insert images using their absolute links. To do this, press **Add Slides** button and navigate to **Insert from URL** tab.
|
182 |
|
183 |
After providing the URL of the slide image, click **Add to Slider** button.
|
184 |
|
|
|
185 |
**Using WD Media Uploader**
|
186 |
|
187 |
Besides using default Media Library, WordPress Slider plugin has an advanced WD Uploader for adding or editing slides. This is a powerful and user-friendly tool which allows you to upload and manage images, separate them into folders, and more.
|
190 |
|
191 |
Afterwards, edit your slideshow and click on **Add Slides** button. Navigate to WD Media Uploader tab to start adding new images. This dashboard includes a set of options which we will describe one by one.
|
192 |
|
193 |
+
= Can I add video slides to slider? =
|
194 |
|
195 |
Slider WD plugin also lets you embed media from various platforms, such as **YouTube** and **Vimeo.** To use this feature, press **Add Slides** button then click on **Embed Media** tab. Use the input bar above to add the **URL** of the image or video you wish to add, then press **Add to slider** button.
|
196 |
|
203 |
|
204 |
For instance, when adding a YouTube video as a slideshow item, you just need to provide its link.
|
205 |
|
206 |
+
This lets you create a modern-looking fullscreen slider with videos, that showcase your products, business or services.
|
207 |
+
|
208 |
+
= Is it possible to make custom style changes to a slide? =
|
209 |
|
210 |
Use **CSS** tab of **Slider Settings** to write additional CSS code and apply custom styles to the slider. Note, that these changes will override the original styles of the slider.
|
211 |
|
212 |
+
Also, you can edit its **Settings** by enabling different attributes and configuring corresponding features. For instance, you can enable slide vertical animation effect and turn your slideshow into a vertical slider.
|
213 |
+
|
214 |
+
These vertical slides look especially nice, when you are displaying professional photographs. However, you are able to use all slide effects both on images and videos.
|
215 |
+
|
216 |
+
= Can I publish slider as a widget? =
|
217 |
|
218 |
To publish your slideshow on a widget area, navigate to Appearance > Widgets page. All widgets on your website and widget areas provided by your theme are available on this dashboard.
|
219 |
|
220 |
Look for Slider WD widget, then drag it to the widget area where you wish to display the slideshow. Write a Title for the widget and choose any slideshow using Select Slider drop-down menu. Press Save and the slider will appear on this widget area immediately.
|
221 |
|
222 |
+
= How can I add layers to slides? =
|
223 |
|
224 |
WordPress slider plugin provides powerful layer options, which help you enhance the display of your slideshow. This section of Slider WD user guide will help you add them to your slides and fully customize them.
|
225 |
|
253 |
|
254 |
It is important to note, that Slider WD plugin also allows you to reposition layers by dragging them around on the slide itself.
|
255 |
|
256 |
+
= Can I move sliders from one site to another? =
|
257 |
|
258 |
To save lots of time, WordPress slider plugin provides its **Import/Export** feature, letting you move created sliders from one site to another. With just a few clicks, you can have all slideshows uploaded and built on your second website.
|
259 |
|
271 |
|
272 |
You can also import slideshows from Demo site and import them to your website. Just press the **Download** button below each slider, and follow the steps described above.
|
273 |
|
274 |
+
= How do I insert the WordPress Slider into a Page or a Post? =
|
275 |
|
276 |
To insert your slider into a page or post, add or edit the post/page where you wish to showcase the slideshow. Above the content editor, there is a button titled **Add Slider WD.** All you need to do is to press this button, choose a slideshow using **Select a Slider** drop-down menu, then click **Insert.**
|
277 |
|
279 |
|
280 |
In addition, you can add the shortcode manually by copying it from **Slider WD > Sliders** page. Each slider shortcode is displayed next to the corresponding item, under **Shortcode** column.
|
281 |
|
282 |
+
= Can I customize Slider settings to better fit my needs? =
|
283 |
|
284 |
WordPress Slider plugin comes with a set of useful options which allow you to customize each slideshow independently. Having configured slideshows separately, you can publish multiple sliders on your website, each with its own unique design and purpose.
|
285 |
|
344 |
* setting the size of the watermark image, and select the position of the watermark.
|
345 |
* Press Set Watermark to add the watermark text or image to main images of your slider. To remove it, simply click on Reset Watermark button.
|
346 |
|
347 |
+
= Can I use Slider WD to create different sliders for different pages? =
|
348 |
|
349 |
Yes, you can create unlimited number of sliders with unlimited amount of slides. Then you may paste corresponding slider code within each page.The slider shortcodes are listed next to the slider in **Slider WD > Slider** section.
|
350 |
|
351 |
+
= Can I add a slider into a custom PHP template of my website theme? =
|
352 |
|
353 |
In case you use custom PHP templates and would like to display your slideshow on these pages, you can use **PHP function** Slider WD plugin provides. You just need to add the function, e.g.:
|
354 |
|
356 |
|
357 |
into the necessary .php file. For instance, if you wish to display the slideshow along with the header, simply add the code to header.php file of your website theme. You can find the function and copy it from **Slider WD > Sliders** page, under **PHP function** column.
|
358 |
|
359 |
+
= Is it possible to add watermark to slider images? =
|
360 |
|
361 |
You are able to add watermark to the main images of your slider with the options **Slider Settings > Watermark** section provides. Choose the type of the watermark, **text** or **image,** then configure settings such as:
|
362 |
|
367 |
|
368 |
Press **Set Watermark** to add the watermark text or image to main images of your slider. To remove it, simply click on Reset Watermark button.
|
369 |
|
370 |
+
= Does Slider WD support Google fonts? =
|
371 |
|
372 |
Slider WD does support Google Fonts. This allows you to custom text layer over slides using the provided big variety of Google Fonts.
|
373 |
|
374 |
You can change the fonts of a layer by editing it. Look for **Font family** option to enable **Google Fonts,** then select the font family you wish to use.
|
375 |
|
376 |
+
= What are the most common applications of this wordpress responsive plugin? =
|
377 |
|
378 |
This free slider plugin can be used for showcasing your portfoliow with the help of:
|
379 |
* Image slider,
|
381 |
* post slider,
|
382 |
* product slider,
|
383 |
* photo slider / gallery slider,
|
384 |
+
* carousel slider and more.
|
385 |
|
386 |
Thes content slider options are the most commonly used applications of the best slider plugin, but those can be expanded to meet the needs. You can combine images into multi-layer content with videos and carousel slideshow effect or display video layers.
|
387 |
|
388 |
+
= Is this a good plugin for creating a post slider? =
|
389 |
|
390 |
+
The plugin allows embedding WordPress posts making it a great WordPress Posts slider with various functionality and content slideshow. This is also useful in case you wish to have a product slider. You can add your products as posts and display them on your slideshow.
|
391 |
|
392 |
+
Moreover, it can be turned into custom post types slider or a content slider with various layers, images and animations. This will help to create product carousel/image carousel with ecommerce plugins or photo slideshow with gallery plugin and even more.
|
393 |
|
394 |
+
The good part of this is that you can have a text slider with its picture slide, while keeping up with responsive post slider if compared with other post slider or banner slider plugins. This image slideshow plugin has all the necessary features for creating various kinds of wonderful CSS3 slider.
|
395 |
|
396 |
|
397 |
== Screenshots ==
|
405 |
|
406 |
== Changelog ==
|
407 |
|
408 |
+
= 1.2.6 =
|
409 |
+
* Changed: Main PHP file structure.
|
410 |
+
* Changed: GET variable in slider edit page.
|
411 |
+
* Fixed: Keyboard, Mouse swipe, Touch swipe navigation.
|
412 |
+
|
413 |
= 1.2.5 =
|
414 |
* Added: Insert slide image from URL.
|
415 |
* Fixed: Full width slider height.
|
slider-wd.php
CHANGED
@@ -4,898 +4,1258 @@
|
|
4 |
* Plugin Name: Slider WD
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-slider-plugin.html
|
6 |
* Description: This is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.
|
7 |
-
* Version: 1.2.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
*/
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
$
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
}
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
39 |
}
|
40 |
-
return $site_url != $home_url;
|
41 |
-
}
|
42 |
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
-
|
51 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
}
|
60 |
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
|
|
|
|
|
|
64 |
|
65 |
-
|
66 |
-
add_action('admin_print_styles-' . $global_options_page, 'wds_styles');
|
67 |
-
add_action('admin_print_scripts-' . $global_options_page, 'wds_scripts');
|
68 |
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
72 |
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
add_action('
|
|
|
|
|
82 |
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
|
|
|
|
|
|
|
|
87 |
}
|
88 |
-
}
|
89 |
-
else {
|
90 |
-
die('Access Denied');
|
91 |
-
}
|
92 |
-
wp_register_style('wds_licensing', WD_S_URL . '/licensing/style.css', array(), WD_S_VERSION);
|
93 |
-
wp_print_styles('wds_licensing');
|
94 |
-
require_once(WD_S_DIR . '/licensing/licensing.php');
|
95 |
-
}
|
96 |
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
die('Access Denied');
|
101 |
}
|
102 |
-
}
|
103 |
-
else {
|
104 |
-
die('Access Denied');
|
105 |
-
}
|
106 |
-
require_once(WD_S_DIR . '/framework/WDW_S_Library.php');
|
107 |
-
$page = WDW_S_Library::get('page');
|
108 |
-
if (($page != '') && (($page == 'sliders_wds') || ($page == 'uninstall_wds') || ($page == 'WDSShortcode') || ($page == 'goptions_wds'))) {
|
109 |
-
require_once(WD_S_DIR . '/admin/controllers/WDSController' . (($page == 'WDSShortcode') ? $page : ucfirst(strtolower($page))) . '.php');
|
110 |
-
$controller_class = 'WDSController' . ucfirst(strtolower($page));
|
111 |
-
$controller = new $controller_class();
|
112 |
-
$controller->execute();
|
113 |
-
}
|
114 |
-
}
|
115 |
|
116 |
-
|
117 |
-
|
118 |
-
if (!current_user_can('manage_options')) {
|
119 |
-
die('Access Denied');
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
}
|
125 |
-
require_once(WD_S_DIR . '/demo_sliders/demo_sliders.php');
|
126 |
-
wp_register_style('wds_demo_sliders', WD_S_URL . '/demo_sliders/style.css', array(), WD_S_VERSION);
|
127 |
-
wp_print_styles('wds_demo_sliders');
|
128 |
-
spider_demo_sliders();
|
129 |
-
}
|
130 |
|
131 |
-
|
132 |
-
require_once(WD_S_DIR . '/framework/WDW_S_Library.php');
|
133 |
-
$page = WDW_S_Library::get('action');
|
134 |
-
if (($page != '') && ($page == 'WDSShare')) {
|
135 |
-
require_once(WD_S_DIR . '/frontend/controllers/WDSController' . ucfirst($page) . '.php');
|
136 |
-
$controller_class = 'WDSController' . ucfirst($page);
|
137 |
-
$controller = new $controller_class();
|
138 |
-
$controller->execute();
|
139 |
-
}
|
140 |
-
}
|
141 |
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
|
|
|
|
146 |
|
147 |
-
|
148 |
-
|
149 |
-
if (!current_user_can('manage_options')) {
|
150 |
-
die('Access Denied');
|
151 |
}
|
152 |
}
|
153 |
-
else {
|
154 |
-
die('Access Denied');
|
155 |
-
}
|
156 |
-
require_once(WD_S_DIR . '/framework/WDW_S_Library.php');
|
157 |
-
$page = WDW_S_Library::get('action');
|
158 |
-
if ($page != '' && (($page == 'WDSShortcode') || ($page == 'WDSPosts') || ($page == 'WDSExport') || ($page == 'WDSImport'))) {
|
159 |
-
require_once(WD_S_DIR . '/admin/controllers/WDSController' . ucfirst($page) . '.php');
|
160 |
-
$controller_class = 'WDSController' . ucfirst($page);
|
161 |
-
$controller = new $controller_class();
|
162 |
-
$controller->execute();
|
163 |
-
}
|
164 |
-
}
|
165 |
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
}
|
171 |
-
else {
|
172 |
-
$params = shortcode_atts(array('id' => (isset($_GET['slider_id']) ? (int) $_GET['slider_id'] : 0)), $params);
|
173 |
ob_start();
|
174 |
-
|
175 |
-
|
|
|
176 |
}
|
177 |
-
}
|
178 |
-
add_shortcode('wds', 'wds_shortcode');
|
179 |
-
add_shortcode('SliderPreview', 'wds_shortcode');
|
180 |
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
$wds++;
|
191 |
-
return;
|
192 |
-
}
|
193 |
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
}
|
203 |
-
return $context;
|
204 |
-
}
|
205 |
-
add_filter('media_buttons_context', 'wds_media_button');
|
206 |
-
|
207 |
-
// Add the Slider button to editor.
|
208 |
-
add_action('wp_ajax_WDSShortcode', 'wds_ajax');
|
209 |
-
add_action('wp_ajax_WDSPosts', 'wds_ajax');
|
210 |
-
if ( !WD_S_FREE ) {
|
211 |
-
add_action('wp_ajax_WDSExport', 'wds_ajax');
|
212 |
-
add_action('wp_ajax_WDSImport', 'wds_ajax');
|
213 |
-
}
|
214 |
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
}
|
232 |
}
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
}
|
237 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
|
239 |
-
|
240 |
-
|
241 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
|
|
|
|
|
|
|
|
|
|
249 |
|
250 |
-
function
|
251 |
-
|
252 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
die('Access Denied');
|
254 |
}
|
|
|
|
|
|
|
255 |
}
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|| $tab == 'wds_custom_uploader' ) {
|
266 |
-
if ( $tab != 'wds_custom_uploader' ) {
|
267 |
-
WDW_S_Library::verify_nonce($page);
|
268 |
-
}
|
269 |
-
require_once(WD_S_DIR . '/filemanager/controller.php');
|
270 |
-
$controller_class = 'FilemanagerController';
|
271 |
-
$controller = new $controller_class();
|
272 |
-
$addImages_ajax = WDW_S_Library::get('addImages_ajax');
|
273 |
-
if ($addImages_ajax == 'addImages_ajax') {
|
274 |
-
$load_count = WDW_S_Library::get('load_count');
|
275 |
-
$images_list = $controller->get_images(intval($load_count));
|
276 |
-
echo (json_encode($images_list, true));
|
277 |
-
die;
|
278 |
}
|
279 |
else {
|
280 |
-
|
281 |
}
|
|
|
|
|
|
|
|
|
282 |
}
|
283 |
-
}
|
284 |
-
// Slider Widget.
|
285 |
-
if (class_exists('WP_Widget')) {
|
286 |
-
require_once(WD_S_DIR . '/admin/controllers/WDSControllerWidgetSlideshow.php');
|
287 |
-
add_action('widgets_init', 'wds_register_widget');
|
288 |
-
}
|
289 |
-
|
290 |
-
function wds_register_widget() {
|
291 |
-
return register_widget("WDSControllerWidgetSlideshow");
|
292 |
-
}
|
293 |
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
if ($version && version_compare($version, $new_version, '<')) {
|
305 |
-
require_once WD_S_DIR . "/sliders-update.php";
|
306 |
-
wds_update($version);
|
307 |
-
update_option("wds_version", $new_version);
|
308 |
-
}
|
309 |
-
elseif (!$version) {
|
310 |
-
require_once WD_S_DIR . "/sliders-insert.php";
|
311 |
-
wds_insert();
|
312 |
-
add_option("wds_version", $new_version, '', 'no');
|
313 |
-
add_option("wds_version_1.0.46", 1, '', 'no');
|
314 |
-
if ( WD_S_FREE ) {
|
315 |
-
add_option("wds_theme_version", '1.0.0', '', 'no');
|
316 |
}
|
317 |
}
|
318 |
-
}
|
319 |
-
if ((!isset($_GET['action']) || $_GET['action'] != 'deactivate')
|
320 |
-
&& (!isset($_GET['page']) || $_GET['page'] != 'uninstall_wds')) {
|
321 |
-
add_action('admin_init', 'wds_install');
|
322 |
-
}
|
323 |
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
}
|
338 |
-
wp_enqueue_style('wds_deactivate-css', WD_S_URL . '/wd/assets/css/deactivate_popup.css', array(), WD_S_VERSION);
|
339 |
-
}
|
340 |
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
'
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
'spider_uploader' => 0,
|
358 |
-
'possib_add_ffamily' => '',
|
359 |
-
'possib_add_ffamily_google' => '',
|
360 |
-
);
|
361 |
-
return $global_options;
|
362 |
-
}
|
363 |
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
|
|
|
|
|
|
|
|
|
|
370 |
}
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
wp_enqueue_script('wds_hotspot', WD_S_URL . '/js/wds_hotspot.js', array(), WD_S_VERSION);
|
383 |
-
wp_enqueue_script('wds_embed', WD_S_URL . '/js/wds_embed.js', array(), WD_S_VERSION);
|
384 |
}
|
385 |
-
require_once(WD_S_DIR . '/framework/WDW_S_Library.php');
|
386 |
-
wp_localize_script('wds_admin', 'wds_object', array(
|
387 |
-
"GGF" => WDW_S_Library::get_google_fonts(),
|
388 |
-
"FGF" => WDW_S_Library::get_font_families(),
|
389 |
-
"LDO" => $global_options,
|
390 |
-
"is_free" => WD_S_FREE,
|
391 |
-
'translate' => array(
|
392 |
-
'check_at_least' => __('You must check at least one item.', WD_S_PREFIX),
|
393 |
-
'no_slider' => __('There is no slider.', WD_S_PREFIX),
|
394 |
-
'min_size' => __('Sets the minimal size of the text. It will be shrunk until the font size is equal to this value.', WD_S_PREFIX),
|
395 |
-
'font_size' => __('Size:', WD_S_PREFIX),
|
396 |
-
'please_enter_url_to_embed' => __('Please enter url to embed.', WD_S_PREFIX),
|
397 |
-
'error_cannot_get_response_from_the_server' => __('Error: cannot get response from the server.', WD_S_PREFIX),
|
398 |
-
'error_something_wrong_happened_at_the_server' => __('Error: something wrong happened at the server.', WD_S_PREFIX),
|
399 |
-
'edit_filmstrip_thumbnail' => __('Edit Filmstrip Thumbnail', WD_S_PREFIX),
|
400 |
-
'you_must_set_watermark_type' => __('You must set watermark type.', WD_S_PREFIX),
|
401 |
-
'watermark_succesfully_set' => __('Watermark Succesfully Set.', WD_S_PREFIX),
|
402 |
-
'watermark_succesfully_reset' => __('Watermark Succesfully Reset.', WD_S_PREFIX),
|
403 |
-
'items_succesfully_saved' => __('Items Succesfully Saved.', WD_S_PREFIX),
|
404 |
-
'changes_made_in_this_table_should_be_saved' => __('Changes made in this table should be saved.', WD_S_PREFIX),
|
405 |
-
'selected' => __('Selected', WD_S_PREFIX),
|
406 |
-
'item' => __('item', WD_S_PREFIX),
|
407 |
-
's' => __('s', WD_S_PREFIX),
|
408 |
-
'you_must_select_an_image_file' => __('You must select an image file.', WD_S_PREFIX),
|
409 |
-
'album_thumb_dimensions' => __('Album thumb dimensions:', WD_S_PREFIX),
|
410 |
-
'album_thumb_width' => __('Album thumb width:', WD_S_PREFIX),
|
411 |
-
'edit_thumbnail' => __('Edit Thumbnail', WD_S_PREFIX),
|
412 |
-
'do_you_want_to_delete_layer' => __('Do you want to delete the layer?', WD_S_PREFIX),
|
413 |
-
'drag_to_re_order' => __('Drag to re-order', WD_S_PREFIX),
|
414 |
-
'layer' => __('Layer', WD_S_PREFIX),
|
415 |
-
'delete_layer' => __('Delete layer', WD_S_PREFIX),
|
416 |
-
'duplicate_layer' => __('Duplicate layer', WD_S_PREFIX),
|
417 |
-
'text' => __('Text:', WD_S_PREFIX),
|
418 |
-
'sample_text' => __('Sample text', WD_S_PREFIX),
|
419 |
-
'leave_blank_to_keep_the_initial_width_and_height' => __('Leave blank to keep the initial width and height.', WD_S_PREFIX),
|
420 |
-
'dimensions' => __('Dimensions:', WD_S_PREFIX),
|
421 |
-
'break_word' => __('Break-word', WD_S_PREFIX),
|
422 |
-
'edit_image' => __('Edit Image', WD_S_PREFIX),
|
423 |
-
'set_the_html_attribute_specified_in_the_img_tag' => __('Set the value of alt HTML attribute for this image layer.', WD_S_PREFIX),
|
424 |
-
'alt' => __('Alt:', WD_S_PREFIX),
|
425 |
-
'use_http_and_https_for_external_links' => __('Use http:// and https:// for external links.', WD_S_PREFIX),
|
426 |
-
'link' => __('Link:', WD_S_PREFIX),
|
427 |
-
'open_in_a_new_window' => __('Open in a new window', WD_S_PREFIX),
|
428 |
-
'in_addition_you_can_drag_and_drop_the_layerto_a_desired_position' => __('In addition, you can drag the layer and drop it to the desired position.', WD_S_PREFIX),
|
429 |
-
'position' => __('Position:', WD_S_PREFIX),
|
430 |
-
'published' => __('Published:', WD_S_PREFIX),
|
431 |
-
'fixed_step_left_center_right' => __('Fixed step (left, center, right)', WD_S_PREFIX),
|
432 |
-
'yes' => __('Yes', WD_S_PREFIX),
|
433 |
-
'no' => __('No', WD_S_PREFIX),
|
434 |
-
'color' => __('Color:', WD_S_PREFIX),
|
435 |
-
'hover_color' => __('Hover Color', WD_S_PREFIX),
|
436 |
-
'size' => __('Size:', WD_S_PREFIX),
|
437 |
-
'font_family' => __('Font family:', WD_S_PREFIX),
|
438 |
-
'google_fonts' => __('Google fonts', WD_S_PREFIX),
|
439 |
-
'default' => __('Default', WD_S_PREFIX),
|
440 |
-
'font_weight' => __('Font weight:', WD_S_PREFIX),
|
441 |
-
'padding' => __('Padding:', WD_S_PREFIX),
|
442 |
-
'value_must_be_between_0_to_100' => __('Value must be between 0 and 100.', WD_S_PREFIX),
|
443 |
-
'transparent' => __('Transparency:', WD_S_PREFIX),
|
444 |
-
'border' => __('Border:', WD_S_PREFIX),
|
445 |
-
'use_css_type_values' => __('Use CSS type values.', WD_S_PREFIX),
|
446 |
-
'use_css_type_values_e_g_10_10_5_888888' => __('Use CSS type values (e.g. 10px 10px 5px #888888).', WD_S_PREFIX),
|
447 |
-
'shadow' => __('Shadow', WD_S_PREFIX),
|
448 |
-
'dimensions' => __('Dimensions:', WD_S_PREFIX),
|
449 |
-
'set_width_and_height_of_the_image' => __('Set width and height of the image.', WD_S_PREFIX),
|
450 |
-
'set_width_and_height_of_the_video' => __('Set width and height of the video.', WD_S_PREFIX),
|
451 |
-
'social_button' => __('Social button', WD_S_PREFIX),
|
452 |
-
'effect_in' => __('Effect in:', WD_S_PREFIX),
|
453 |
-
'effect_out' => __('Effect out:', WD_S_PREFIX),
|
454 |
-
'start' => __('Start', WD_S_PREFIX),
|
455 |
-
'effect' => __('Effect', WD_S_PREFIX),
|
456 |
-
'duration' => __('Duration', WD_S_PREFIX),
|
457 |
-
'iteration' => __('Iteration', WD_S_PREFIX),
|
458 |
-
'autoplay' => __('Autoplay:', WD_S_PREFIX),
|
459 |
-
'controls' => __('Controls:', WD_S_PREFIX),
|
460 |
-
'hotspot_width' => __('Hotspot Width:', WD_S_PREFIX),
|
461 |
-
'hotspot_background_color' => __('Hotspot Background Color:', WD_S_PREFIX),
|
462 |
-
'hotspot_border' => __('Hotspot Border:', WD_S_PREFIX),
|
463 |
-
'hotspot_radius' => __('Hotspot Radius:', WD_S_PREFIX),
|
464 |
-
'in_addition_you_can_drag_and_drop_the_layer_to_a_desired_position' => __('In addition, you can drag the layer and drop it to the desired position.', WD_S_PREFIX),
|
465 |
-
'leave_blank_to_keep_the_initial_width_and_height' => __('Leave blank to keep the initial width and height.', WD_S_PREFIX),
|
466 |
-
'video_loop' => __('Video Loop', WD_S_PREFIX),
|
467 |
-
'disable_youtube_related_video' => __('Disable youtube related video:', WD_S_PREFIX),
|
468 |
-
'hotspot_animation' => __('Hotspot Animation:', WD_S_PREFIX),
|
469 |
-
'add_click_action' => __('Add click action:', WD_S_PREFIX),
|
470 |
-
'select_between_the_option_of_always_displaying_the_navigation_buttons_or_only_when_hovered' => __('Select between the option of always displaying the navigation buttons or only when hovered.', WD_S_PREFIX),
|
471 |
-
'show_hotspot_text' => __('Show Hotspot text:', WD_S_PREFIX),
|
472 |
-
'on_hover' => __('On hover', WD_S_PREFIX),
|
473 |
-
'on_click' => __('On click', WD_S_PREFIX),
|
474 |
-
'text_alignment' => __('Text alignment:', WD_S_PREFIX),
|
475 |
-
'slides_name' => __('Slides name:', WD_S_PREFIX),
|
476 |
-
'static_layer' => __('Static layer:', WD_S_PREFIX),
|
477 |
-
'the_layer_will_be_visible_on_all_slides' => __('The layer will be visible on all slides.', WD_S_PREFIX),
|
478 |
-
'add_edit_image' => __('Add/Edit Image', WD_S_PREFIX),
|
479 |
-
'add_image_layer' => __('Add Image Layer', WD_S_PREFIX),
|
480 |
-
'slide' => __('Slide', WD_S_PREFIX),
|
481 |
-
'duplicate_slide' => __('Duplicate slide', WD_S_PREFIX),
|
482 |
-
'delete_slide' => __('Delete slide', WD_S_PREFIX),
|
483 |
-
'add_image_by_url' => __('Add Image by URL', WD_S_PREFIX),
|
484 |
-
'embed_media' => __('Embed Media', WD_S_PREFIX),
|
485 |
-
'add_post' => __('Add Post', WD_S_PREFIX),
|
486 |
-
'delete' => __('Delete', WD_S_PREFIX),
|
487 |
-
'youtube_related_video' => __('Youtube related video:', WD_S_PREFIX),
|
488 |
-
'video_loop' => __('Video Loop:', WD_S_PREFIX),
|
489 |
-
'you_can_set_a_redirection_link_so_that_the_user_will_get_to_the_mentioned_location_upon_hitting_the_slide_use_http_and_https_for_external_links' => __('You can add a URL, to which the users will be redirected upon clicking on the slide. Use http:// and https:// for external links.', WD_S_PREFIX),
|
490 |
-
'link_the_slide_to' => __('Link the slide to:', WD_S_PREFIX),
|
491 |
-
'add_text_layer' => __('Add Text Layer', WD_S_PREFIX),
|
492 |
-
'add_video_layer' => __('Add Video Layer', WD_S_PREFIX),
|
493 |
-
'embed_media_layer' => __('Embed Media Layer', WD_S_PREFIX),
|
494 |
-
'add_social_buttons_layer' => __('Add Social Buttons Layer', WD_S_PREFIX),
|
495 |
-
'add_hotspot_layer' => __('Add Hotspot Layer', WD_S_PREFIX),
|
496 |
-
'do_you_want_to_delete_slide' => __('Do you want to delete slide?', WD_S_PREFIX),
|
497 |
-
'sorry_you_are_not_allowed_to_upload_this_type_of_file' => __('Sorry, you are not allowed to upload this type of file.', WD_S_PREFIX),
|
498 |
-
'you_must_select_at_least_one_item' => __('You must select at least one item.', WD_S_PREFIX),
|
499 |
-
'do_you_want_to_delete_selected_items' => __('Do you want to delete selected items?', WD_S_PREFIX),
|
500 |
-
'are_you_sure_you_want_to_reset_the_settings' => __('Are you sure you want to reset the settings?', WD_S_PREFIX),
|
501 |
-
'choose' => __('Choose', WD_S_PREFIX),
|
502 |
-
'choose_video' => __('Choose Video', WD_S_PREFIX),
|
503 |
-
'choose_image' => __('Choose Image', WD_S_PREFIX),
|
504 |
-
'insert' => __('Insert', WD_S_PREFIX),
|
505 |
-
'add_class' => __('Add class:', WD_S_PREFIX),
|
506 |
-
'radius' => __('Radius:', WD_S_PREFIX),
|
507 |
-
'editor' => __('Editor', WD_S_PREFIX),
|
508 |
-
'group' => __('Group', WD_S_PREFIX),
|
509 |
-
'color' => __('Color', WD_S_PREFIX),
|
510 |
-
'background_color' => __('Background Color:', WD_S_PREFIX),
|
511 |
-
'none' => __('None', WD_S_PREFIX),
|
512 |
-
'bounce' => __('Bounce', WD_S_PREFIX),
|
513 |
-
'flash' => __('Flash', WD_S_PREFIX),
|
514 |
-
'pulse' => __('Pulse', WD_S_PREFIX),
|
515 |
-
'shake' => __('Shake', WD_S_PREFIX),
|
516 |
-
'swing' => __('Swing', WD_S_PREFIX),
|
517 |
-
'tada' => __('Tada', WD_S_PREFIX),
|
518 |
-
'wobble' => __('Wobble', WD_S_PREFIX),
|
519 |
-
'hinge' => __('Hinge', WD_S_PREFIX),
|
520 |
-
'rubberBand' => __('RubberBand', WD_S_PREFIX),
|
521 |
-
'lightSpeedIn' => __('LightSpeedIn', WD_S_PREFIX),
|
522 |
-
'rollIn' => __('RollIn', WD_S_PREFIX),
|
523 |
-
'bounceIn' => __('BounceIn', WD_S_PREFIX),
|
524 |
-
'bounceInDown' => __('BounceInDown', WD_S_PREFIX),
|
525 |
-
'bounceInLeft' => __('BounceInLeft', WD_S_PREFIX),
|
526 |
-
'bounceInRight' => __('BounceInRight', WD_S_PREFIX),
|
527 |
-
'bounceInUp' => __('BounceInUp', WD_S_PREFIX),
|
528 |
-
'fadeIn' => __('FadeIn', WD_S_PREFIX),
|
529 |
-
'fadeInDown' => __('FadeInDown', WD_S_PREFIX),
|
530 |
-
'fadeInDownBig' => __('FadeInDownBig', WD_S_PREFIX),
|
531 |
-
'fadeInLeft' => __('FadeInLeft', WD_S_PREFIX),
|
532 |
-
'fadeInLeftBig' => __('FadeInLeftBig', WD_S_PREFIX),
|
533 |
-
'fadeInRight' => __('FadeInRight', WD_S_PREFIX),
|
534 |
-
'fadeInRightBig' => __('FadeInRightBig', WD_S_PREFIX),
|
535 |
-
'fadeInUp' => __('FadeInUp', WD_S_PREFIX),
|
536 |
-
'fadeInUpBig' => __('FadeInUpBig', WD_S_PREFIX),
|
537 |
-
'flip' => __('Flip', WD_S_PREFIX),
|
538 |
-
'flipInX' => __('FlipInX', WD_S_PREFIX),
|
539 |
-
'flipInY' => __('FlipInY', WD_S_PREFIX),
|
540 |
-
'rotateIn' => __('RotateIn', WD_S_PREFIX),
|
541 |
-
'rotateInDownLeft' => __('RotateInDownLeft', WD_S_PREFIX),
|
542 |
-
'rotateInDownRight' => __('RotateInDownRight', WD_S_PREFIX),
|
543 |
-
'rotateInUpLeft' => __('RotateInUpLeft', WD_S_PREFIX),
|
544 |
-
'rotateInUpRight' => __('RotateInUpRight', WD_S_PREFIX),
|
545 |
-
'zoomIn' => __('ZoomIn', WD_S_PREFIX),
|
546 |
-
'zoomInDown' => __('ZoomInDown', WD_S_PREFIX),
|
547 |
-
'zoomInLeft' => __('ZoomInLeft', WD_S_PREFIX),
|
548 |
-
'zoomInRight' => __('ZoomInRight', WD_S_PREFIX),
|
549 |
-
'zoomInUp' => __('ZoomInUp', WD_S_PREFIX),
|
550 |
-
'lightSpeedOut' => __('LightSpeedOut', WD_S_PREFIX),
|
551 |
-
'rollOut' => __('RollOut', WD_S_PREFIX),
|
552 |
-
'bounceOut' => __('BounceOut', WD_S_PREFIX),
|
553 |
-
'bounceOutDown' => __('BounceOutDown', WD_S_PREFIX),
|
554 |
-
'bounceOutLeft' => __('BounceOutLeft', WD_S_PREFIX),
|
555 |
-
'bounceOutRight' => __('BounceOutRight', WD_S_PREFIX),
|
556 |
-
'bounceOutUp' => __('BounceOutUp', WD_S_PREFIX),
|
557 |
-
'fadeOut' => __('FadeOut', WD_S_PREFIX),
|
558 |
-
'fadeOutDown' => __('FadeOutDown', WD_S_PREFIX),
|
559 |
-
'fadeOutDownBig' => __('FadeOutDownBig', WD_S_PREFIX),
|
560 |
-
'fadeOutLeft' => __('FadeOutLeft', WD_S_PREFIX),
|
561 |
-
'fadeOutLeftBig' => __('FadeOutLeftBig', WD_S_PREFIX),
|
562 |
-
'fadeOutRight' => __('FadeOutRight', WD_S_PREFIX),
|
563 |
-
'fadeOutRightBig' => __('FadeOutRightBig', WD_S_PREFIX),
|
564 |
-
'fadeOutUp' => __('FadeOutUp', WD_S_PREFIX),
|
565 |
-
'fadeOutUpBig' => __('FadeOutUpBig', WD_S_PREFIX),
|
566 |
-
'flip' => __('Flip', WD_S_PREFIX),
|
567 |
-
'flipOutX' => __('FlipOutX', WD_S_PREFIX),
|
568 |
-
'flipOutY' => __('FlipOutY', WD_S_PREFIX),
|
569 |
-
'rotateOut' => __('RotateOut', WD_S_PREFIX),
|
570 |
-
'rotateOutDownLeft' => __('RotateOutDownLeft', WD_S_PREFIX),
|
571 |
-
'rotateOutDownRight' => __('RotateOutDownRight', WD_S_PREFIX),
|
572 |
-
'rotateOutUpLeft' => __('RotateOutUpLeft', WD_S_PREFIX),
|
573 |
-
'rotateOutUpRight' => __('RotateOutUpRight', WD_S_PREFIX),
|
574 |
-
'zoomOut' => __('ZoomOut', WD_S_PREFIX),
|
575 |
-
'zoomOutDown' => __('ZoomOutDown', WD_S_PREFIX),
|
576 |
-
'zoomOutLeft' => __('ZoomOutLeft', WD_S_PREFIX),
|
577 |
-
'zoomOutRight' => __('ZoomOutRight', WD_S_PREFIX),
|
578 |
-
'zoomOutUp' => __('ZoomOutUp', WD_S_PREFIX),
|
579 |
-
'insert_valid_audio_file' => __('Insert valid audio file', WD_S_PREFIX),
|
580 |
-
'fillmode' => __('Fillmode', WD_S_PREFIX),
|
581 |
-
'fill' => __('Fill', WD_S_PREFIX),
|
582 |
-
'Changes_must_be_saved' => __('Changes must be saved', WD_S_PREFIX),
|
583 |
-
'edit_slide' => __('Edit Slide', WD_S_PREFIX),
|
584 |
-
'media_library' => __('Media Library'), // This is WP translation.
|
585 |
-
'disabled_in_free_version' => __('This functionality is disabled in free version.', WD_S_PREFIX),
|
586 |
-
'video_disabled_in_free_version' => __('You can`t add video slide in free version', WD_S_PREFIX),
|
587 |
-
)
|
588 |
-
));
|
589 |
-
|
590 |
-
wp_enqueue_script('wds-deactivate-popup', WD_S_URL.'/wd/assets/js/deactivate_popup.js', array(), WD_S_VERSION, true );
|
591 |
-
$admin_data = wp_get_current_user();
|
592 |
-
|
593 |
-
wp_localize_script( 'wds-deactivate-popup', 'wdsWDDeactivateVars', array(
|
594 |
-
"prefix" => "wds" ,
|
595 |
-
"deactivate_class" => 'wds_deactivate_link',
|
596 |
-
"email" => $admin_data->data->user_email,
|
597 |
-
"plugin_wd_url" => "https://web-dorado.com/products/wordpress-slider-plugin.html",
|
598 |
-
));
|
599 |
-
}
|
600 |
|
601 |
-
function
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
wp_localize_script( WD_S_PREFIX . '_frontend', 'wds_object', array(
|
623 |
-
"is_free" => WD_S_FREE,
|
624 |
-
'pause' => __('Pause', WD_S_PREFIX),
|
625 |
-
'play' => __('Play', WD_S_PREFIX),
|
626 |
-
));
|
627 |
-
if ( !WD_S_FREE ) {
|
628 |
-
wp_register_script('wds_jquery_featureCarouselslider', WD_S_FRONT_URL . '/js/jquery.featureCarouselslider.js', array( 'jquery' ), WD_S_VERSION);
|
629 |
-
wp_register_script('wds_hotspot', WD_S_FRONT_URL . '/js/wds_hotspot.js', array( 'jquery' ), WD_S_VERSION);
|
630 |
-
wp_register_script('wds_youtube', 'https://www.youtube.com/iframe_api');
|
631 |
}
|
632 |
-
}
|
633 |
-
add_action('wp_enqueue_scripts', 'wds_front_end_scripts');
|
634 |
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
}
|
639 |
-
add_action('init', 'wds_language_load');
|
640 |
|
641 |
-
function
|
642 |
-
|
643 |
-
|
|
|
|
|
|
|
|
|
644 |
die('Access Denied');
|
645 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
646 |
}
|
647 |
-
|
648 |
-
|
|
|
|
|
649 |
}
|
650 |
-
require_once(WD_S_DIR . '/framework/WDW_S_Library.php');
|
651 |
-
require_once(WD_S_DIR . '/framework/WDW_S_LibraryEmbed.php');
|
652 |
|
653 |
-
|
654 |
-
|
|
|
655 |
}
|
656 |
-
|
657 |
-
|
658 |
-
$
|
659 |
-
$
|
660 |
-
|
661 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
662 |
}
|
663 |
-
die('Nothing to add');
|
664 |
-
}
|
665 |
-
if ( !WD_S_FREE ) {
|
666 |
-
add_action('wp_ajax_wds_addEmbed', 'wds_add_embed_ajax');
|
667 |
-
}
|
668 |
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
675 |
}
|
676 |
-
return $sliders;
|
677 |
-
}
|
678 |
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
|
|
|
|
|
|
|
|
683 |
}
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
),
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
),
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
)
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
),
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
),
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
),
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
),
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
),
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
),
|
748 |
-
|
749 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
750 |
"plugin_wd_url" => "https://web-dorado.com/products/wordpress-slider-plugin.html",
|
751 |
-
|
752 |
-
|
753 |
-
"after_subscribe" => admin_url('admin.php?page=sliders_wds'), // this can be plagin overview page or set up page
|
754 |
-
"plugin_wizard_link" => '',
|
755 |
-
"plugin_menu_title" => "Slider WD",
|
756 |
-
"plugin_menu_icon" => WD_S_URL . '/images/wd_slider.png',
|
757 |
-
"deactivate" => ( WD_S_FREE ? TRUE : FALSE ),
|
758 |
-
"subscribe" => ( WD_S_FREE ? TRUE : FALSE ),
|
759 |
-
"custom_post" => 'sliders_wds',
|
760 |
-
"menu_position" => null,
|
761 |
-
);
|
762 |
|
763 |
-
|
|
|
764 |
}
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
case 'sliders_wds': {
|
778 |
-
$help_text = 'create, edit and delete sliders';
|
779 |
-
$user_guide_link .= 'adding-images.html';
|
780 |
-
break;
|
781 |
}
|
782 |
-
|
783 |
-
|
784 |
-
$
|
785 |
-
break;
|
786 |
}
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
|
|
791 |
}
|
792 |
-
|
793 |
-
|
794 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
795 |
}
|
796 |
}
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
box-sizing: border-box;
|
804 |
-
clear: both;
|
805 |
-
color: #6e7990;
|
806 |
-
font-size: 14px;
|
807 |
-
font-weight: bold;
|
808 |
-
line-height: 44px;
|
809 |
-
padding: 0 0 0 15px;
|
810 |
-
vertical-align: middle;
|
811 |
-
width: 98%;
|
812 |
-
}
|
813 |
-
.wd_topic .wd_help_topic {
|
814 |
-
float: left;
|
815 |
-
}
|
816 |
-
.wd_topic .wd_help_topic a {
|
817 |
-
color: #0073aa;
|
818 |
-
}
|
819 |
-
.wd_topic .wd_help_topic a:hover {
|
820 |
-
color: #00A0D2;
|
821 |
-
}
|
822 |
-
.wd_topic .wd_support {
|
823 |
-
float: right;
|
824 |
-
margin: 0 10px;
|
825 |
-
}
|
826 |
-
.wd_topic .wd_support img {
|
827 |
-
vertical-align: middle;
|
828 |
}
|
829 |
-
|
830 |
-
|
831 |
-
color: #6E7990;
|
832 |
}
|
833 |
-
.
|
834 |
-
|
835 |
-
|
|
|
836 |
}
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
|
|
|
|
841 |
}
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
846 |
}
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
858 |
}
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
865 |
<?php echo sprintf(__('This section allows you to %s.', $prefix), $help_text); ?>
|
866 |
-
|
867 |
<?php _e('Read More in User Manual', $prefix); ?>
|
868 |
</a>
|
869 |
</span>
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
<a target="_blank" href="<?php echo $support_forum_link; ?>">
|
887 |
<img src="<?php echo $support_icon; ?>" />
|
888 |
<?php _e('Support Forum', $prefix); ?>
|
889 |
</a>
|
890 |
</span>
|
891 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
892 |
}
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
897 |
}
|
898 |
-
add_action('admin_notices', 'wds_topic', 11);
|
899 |
|
900 |
/**
|
901 |
* Show notice to install Image Optimization plugin
|
@@ -914,9 +1274,9 @@ function wds_io_install_notice() {
|
|
914 |
$meta_value = get_option('wds_io_notice_status');
|
915 |
if ( $meta_value === '' || $meta_value === FALSE ) {
|
916 |
ob_start();
|
917 |
-
$prefix =
|
918 |
-
$nicename =
|
919 |
-
$url =
|
920 |
$dismiss_url = add_query_arg(array( 'action' => 'wd_io_dismiss' ), admin_url('admin-ajax.php'));
|
921 |
$install_url = esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=image-optimizer-wd'), 'install-plugin_image-optimizer-wd'));
|
922 |
?>
|
@@ -983,180 +1343,3 @@ if ( !function_exists('wd_iops_install_notice_status') ) {
|
|
983 |
}
|
984 |
add_action('wp_ajax_wd_io_dismiss', 'wd_iops_install_notice_status');
|
985 |
}
|
986 |
-
|
987 |
-
/**
|
988 |
-
* Register slider preview custom post type.
|
989 |
-
*/
|
990 |
-
function wds_register_slider_preview() {
|
991 |
-
$args = array(
|
992 |
-
'public' => TRUE,
|
993 |
-
'show_in_menu' => FALSE,
|
994 |
-
'exclude_from_search' => TRUE,
|
995 |
-
'create_posts' => 'do_not_allow',
|
996 |
-
'capabilities' => array(
|
997 |
-
'create_posts' => FALSE,
|
998 |
-
'edit_post' => 'edit_posts',
|
999 |
-
'read_post' => 'edit_posts',
|
1000 |
-
'delete_posts' => FALSE,
|
1001 |
-
),
|
1002 |
-
);
|
1003 |
-
register_post_type('wds-slider', $args);
|
1004 |
-
}
|
1005 |
-
|
1006 |
-
add_action('init', 'wds_register_slider_preview');
|
1007 |
-
|
1008 |
-
// Add custom tabs to media uploader.
|
1009 |
-
function wds_custom_media_upload_tab_name( $tabs ) {
|
1010 |
-
$custom_tabs = array( 'wds_posts', 'wds_embed', 'wds_custom_uploader' );
|
1011 |
-
|
1012 |
-
if ( ( isset( $_GET['page'] ) && $_GET['page'] == 'sliders_wds' )
|
1013 |
-
|| ( isset( $_GET['tab'] ) && in_array( $_GET['tab'], $custom_tabs ) ) ) {
|
1014 |
-
$newtabs = array(
|
1015 |
-
'wds_posts' => __( "Posts", WD_S_PREFIX ),
|
1016 |
-
'wds_embed' => __( "Embed Media", WD_S_PREFIX ),
|
1017 |
-
);
|
1018 |
-
|
1019 |
-
$wds_global_options = get_option("wds_global_options", 0);
|
1020 |
-
$global_options = json_decode($wds_global_options);
|
1021 |
-
$spider_uploader = isset($global_options->spider_uploader) ? $global_options->spider_uploader : 0;
|
1022 |
-
if ( $spider_uploader ) {
|
1023 |
-
$newtabs['wds_custom_uploader'] = __( "WD Media Uploader", WD_S_PREFIX );
|
1024 |
-
}
|
1025 |
-
|
1026 |
-
if ( isset($tabs['nextgen']) ) {
|
1027 |
-
unset($tabs['nextgen']);
|
1028 |
-
}
|
1029 |
-
|
1030 |
-
if ( is_array( $tabs ) ) {
|
1031 |
-
return array_merge( $tabs, $newtabs );
|
1032 |
-
}
|
1033 |
-
else {
|
1034 |
-
return $newtabs;
|
1035 |
-
}
|
1036 |
-
}
|
1037 |
-
|
1038 |
-
return $tabs;
|
1039 |
-
}
|
1040 |
-
add_filter( 'media_upload_tabs', 'wds_custom_media_upload_tab_name' );
|
1041 |
-
|
1042 |
-
/**
|
1043 |
-
* Remove unused tabs from media uploader.
|
1044 |
-
*
|
1045 |
-
* @param $strings
|
1046 |
-
*
|
1047 |
-
* @return mixed
|
1048 |
-
*/
|
1049 |
-
function wds_custom_media_uploader_tabs( $strings ) {
|
1050 |
-
if ( ( isset( $_GET['page'] ) && $_GET['page'] == 'sliders_wds' ) ) {
|
1051 |
-
// Update strings.
|
1052 |
-
$strings['insertMediaTitle'] = __( "Images / Videos", WD_S_PREFIX );
|
1053 |
-
$strings['insertIntoPost'] = __( "Add to slider", WD_S_PREFIX );
|
1054 |
-
|
1055 |
-
// Remove options.
|
1056 |
-
$strings_to_remove = array(
|
1057 |
-
'createVideoPlaylistTitle',
|
1058 |
-
'createGalleryTitle',
|
1059 |
-
'createPlaylistTitle'
|
1060 |
-
);
|
1061 |
-
foreach ($strings_to_remove as $string) {
|
1062 |
-
if (isset($strings[$string])) {
|
1063 |
-
unset($strings[$string]);
|
1064 |
-
}
|
1065 |
-
}
|
1066 |
-
}
|
1067 |
-
|
1068 |
-
return $strings;
|
1069 |
-
}
|
1070 |
-
add_filter( 'media_view_strings', 'wds_custom_media_uploader_tabs', 5 );
|
1071 |
-
|
1072 |
-
/**
|
1073 |
-
*
|
1074 |
-
*/
|
1075 |
-
function wds_media_upload_window() {
|
1076 |
-
if (function_exists('current_user_can')) {
|
1077 |
-
if (!current_user_can('manage_options')) {
|
1078 |
-
die('Access Denied');
|
1079 |
-
}
|
1080 |
-
}
|
1081 |
-
else {
|
1082 |
-
die('Access Denied');
|
1083 |
-
}
|
1084 |
-
require_once(WD_S_DIR . '/framework/WDW_S_Library.php');
|
1085 |
-
$tab = WDW_S_Library::get('tab');
|
1086 |
-
$custom_tabs = array( 'wds_posts', 'wds_embed' );
|
1087 |
-
if ( in_array($tab, $custom_tabs) ) {
|
1088 |
-
$tab = str_replace('wds_', '', $tab);
|
1089 |
-
require_once(WD_S_DIR . '/admin/controllers/' . $tab . '.php');
|
1090 |
-
$controller_class = 'WDSController' . $tab;
|
1091 |
-
$controller = new $controller_class();
|
1092 |
-
$controller->execute();
|
1093 |
-
}
|
1094 |
-
}
|
1095 |
-
add_action( 'media_upload_wds_posts', 'wds_media_upload_window' );
|
1096 |
-
add_action( 'media_upload_wds_embed', 'wds_media_upload_window' );
|
1097 |
-
add_action( 'media_upload_wds_custom_uploader', 'wds_filemanager_ajax' );
|
1098 |
-
|
1099 |
-
/**
|
1100 |
-
* Register iframe styles and scripts.
|
1101 |
-
*/
|
1102 |
-
function wds_register_iframe_scripts() {
|
1103 |
-
$required_scripts = array( 'jquery' );
|
1104 |
-
$required_styles = array(
|
1105 |
-
// 'admin-bar',
|
1106 |
-
// 'dashicons',
|
1107 |
-
'wp-admin', // admin styles
|
1108 |
-
'buttons', // buttons styles
|
1109 |
-
'media-views', // media uploader styles
|
1110 |
-
'wp-auth-check', // check all
|
1111 |
-
);
|
1112 |
-
wp_register_script(WD_S_PREFIX . '_admin', WD_S_URL . '/js/wds.js', $required_scripts, WD_S_VERSION);
|
1113 |
-
|
1114 |
-
wp_register_style(WD_S_PREFIX . '_tables', WD_S_URL . '/css/wds_tables.css', $required_styles, WD_S_VERSION);
|
1115 |
-
|
1116 |
-
wp_localize_script( WD_S_PREFIX . '_admin', 'wds', array(
|
1117 |
-
"file_not_supported" => __('This file type is not supported.', WD_S_PREFIX),
|
1118 |
-
));
|
1119 |
-
}
|
1120 |
-
|
1121 |
-
/**
|
1122 |
-
* Register admin styles and scripts.
|
1123 |
-
*/
|
1124 |
-
function wds_register_admin_scripts() {
|
1125 |
-
$required_scripts = array( 'jquery' );
|
1126 |
-
wp_register_script(WD_S_PREFIX . '_admin', WD_S_URL . '/js/wds.js', $required_scripts, WD_S_VERSION);
|
1127 |
-
wp_register_style(WD_S_PREFIX . '_tables', WD_S_URL . '/css/wds_tables.css', FALSE, WD_S_VERSION);
|
1128 |
-
wp_localize_script( WD_S_PREFIX . '_admin', 'wds', array(
|
1129 |
-
"file_not_supported" => __('This file type is not supported.', WD_S_PREFIX),
|
1130 |
-
));
|
1131 |
-
}
|
1132 |
-
add_action('admin_enqueue_scripts', 'wds_register_admin_scripts');
|
1133 |
-
|
1134 |
-
function wds_add_plugin_meta_links($meta_fields, $file) {
|
1135 |
-
if ( plugin_basename(__FILE__) == $file ) {
|
1136 |
-
$plugin_url = "https://wordpress.org/support/plugin/slider-wd";
|
1137 |
-
$prefix = WD_S_PREFIX;
|
1138 |
-
$meta_fields[] = "<a href='" . $plugin_url . "' target='_blank'>" . __('Support Forum', $prefix) . "</a>";
|
1139 |
-
$meta_fields[] = "<a href='" . $plugin_url . "/reviews#new-post' target='_blank' title='" . __('Rate', $prefix) . "'>
|
1140 |
-
<i class='wdi-rate-stars'>"
|
1141 |
-
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
1142 |
-
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
1143 |
-
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
1144 |
-
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
1145 |
-
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
1146 |
-
. "</i></a>";
|
1147 |
-
|
1148 |
-
$stars_color = "#ffb900";
|
1149 |
-
|
1150 |
-
echo "<style>"
|
1151 |
-
. ".wdi-rate-stars{display:inline-block;color:" . $stars_color . ";position:relative;top:3px;}"
|
1152 |
-
. ".wdi-rate-stars svg{fill:" . $stars_color . ";}"
|
1153 |
-
. ".wdi-rate-stars svg:hover{fill:" . $stars_color . "}"
|
1154 |
-
. ".wdi-rate-stars svg:hover ~ svg{fill:none;}"
|
1155 |
-
. "</style>";
|
1156 |
-
}
|
1157 |
-
|
1158 |
-
return $meta_fields;
|
1159 |
-
}
|
1160 |
-
if ( WD_S_FREE ) {
|
1161 |
-
add_filter("plugin_row_meta", 'wds_add_plugin_meta_links', 10, 2);
|
1162 |
-
}
|
4 |
* Plugin Name: Slider WD
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-slider-plugin.html
|
6 |
* Description: This is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.
|
7 |
+
* Version: 1.2.6
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
*/
|
12 |
|
13 |
+
defined('ABSPATH') || die('Access Denied');
|
14 |
+
|
15 |
+
$wds = 0;
|
16 |
+
final class WDS {
|
17 |
+
/**
|
18 |
+
* The single instance of the class.
|
19 |
+
*/
|
20 |
+
protected static $_instance = null;
|
21 |
+
/**
|
22 |
+
* Plugin directory path.
|
23 |
+
*/
|
24 |
+
public $plugin_dir = '';
|
25 |
+
/**
|
26 |
+
* Plugin directory url.
|
27 |
+
*/
|
28 |
+
public $plugin_url = '';
|
29 |
+
/**
|
30 |
+
* Plugin main file.
|
31 |
+
*/
|
32 |
+
public $main_file = '';
|
33 |
+
/**
|
34 |
+
* Plugin version.
|
35 |
+
*/
|
36 |
+
public $plugin_version = '';
|
37 |
+
/**
|
38 |
+
* Plugin database version.
|
39 |
+
*/
|
40 |
+
public $db_version = '';
|
41 |
+
/**
|
42 |
+
* Plugin prefix.
|
43 |
+
*/
|
44 |
+
public $prefix = '';
|
45 |
+
public $nicename = '';
|
46 |
+
public $nonce = 'nonce_wd';
|
47 |
+
public $is_free = TRUE;
|
48 |
+
public $upload_dir = '';
|
49 |
+
public $free_msg = '';
|
50 |
+
|
51 |
+
/**
|
52 |
+
* Main WDS Instance.
|
53 |
+
*
|
54 |
+
* Ensures only one instance is loaded or can be loaded.
|
55 |
+
*
|
56 |
+
* @static
|
57 |
+
* @return WDS - Main instance.
|
58 |
+
*/
|
59 |
+
public static function instance() {
|
60 |
+
if ( is_null( self::$_instance ) ) {
|
61 |
+
self::$_instance = new self();
|
62 |
+
}
|
63 |
+
return self::$_instance;
|
64 |
}
|
65 |
+
|
66 |
+
/**
|
67 |
+
* WDS Constructor.
|
68 |
+
*/
|
69 |
+
public function __construct() {
|
70 |
+
$this->define_constants();
|
71 |
+
require_once($this->plugin_dir . '/framework/WDW_S_Library.php');
|
72 |
+
$this->add_actions();
|
73 |
}
|
|
|
|
|
74 |
|
75 |
+
/**
|
76 |
+
* Define Constants.
|
77 |
+
*/
|
78 |
+
private function define_constants() {
|
79 |
+
$this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
|
80 |
+
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
81 |
+
$this->main_file = plugin_basename(__FILE__);
|
82 |
+
$this->plugin_version = '1.2.6';
|
83 |
+
$this->db_version = '1.2.6';
|
84 |
+
$this->prefix = 'wds';
|
85 |
+
$this->nicename = __('Slider WD', $this->prefix);
|
86 |
+
$this->use_home_url();
|
87 |
+
$upload_dir = wp_upload_dir();
|
88 |
+
$this->upload_dir = str_replace(ABSPATH, '', $upload_dir['basedir']) . '/slider-wd';
|
89 |
+
$this->site_url_placeholder = '@#$%';
|
90 |
+
$this->site_url_buttons_placeholder = '@##$%';
|
91 |
+
}
|
92 |
|
93 |
+
private function use_home_url() {
|
94 |
+
$home_url = str_replace(array("http://", "https://"), "", home_url());
|
95 |
+
$pos = strpos($home_url, "/");
|
96 |
+
if ( $pos ) {
|
97 |
+
$home_url = substr($home_url, 0, $pos);
|
98 |
+
}
|
99 |
+
|
100 |
+
$site_url = str_replace("http://", "", $this->plugin_url);
|
101 |
+
$site_url = str_replace("https://", "", $site_url);
|
102 |
+
$pos = strpos($site_url, "/");
|
103 |
+
if ( $pos ) {
|
104 |
+
$site_url = substr($site_url, 0, $pos);
|
105 |
+
}
|
106 |
|
107 |
+
if ( $site_url != $home_url ) {
|
108 |
+
$this->front_url = home_url("wp-content/plugins/" . plugin_basename(dirname(__FILE__)));
|
109 |
+
}
|
110 |
+
else {
|
111 |
+
$this->front_url = $this->plugin_url;
|
112 |
+
}
|
113 |
}
|
114 |
|
115 |
+
/**
|
116 |
+
* Add actions.
|
117 |
+
*/
|
118 |
+
private function add_actions() {
|
119 |
+
register_activation_hook(__FILE__, array($this, 'activate'));
|
120 |
+
add_action('init', array($this, 'init'), 9);
|
121 |
+
add_action('admin_menu', array( $this, 'admin_menu' ) );
|
122 |
|
123 |
+
add_action('admin_notices', array($this, 'topic'), 11);
|
|
|
|
|
124 |
|
125 |
+
if ( !$this->is_free ) {
|
126 |
+
add_action('wp_ajax_WDSShare', array($this, 'frontend'));
|
127 |
+
add_action('wp_ajax_nopriv_WDSShare', array($this, 'frontend'));
|
128 |
+
}
|
129 |
|
130 |
+
add_shortcode('wds', array($this, 'shortcode'));
|
131 |
+
add_shortcode('SliderPreview', array($this, 'shortcode'));
|
132 |
+
add_filter('media_buttons_context', array($this, 'media_button'));
|
133 |
|
134 |
+
// Add the Slider button to editor.
|
135 |
+
add_action('wp_ajax_WDSShortcode', array($this, 'admin_ajax'));
|
136 |
+
add_action('wp_ajax_WDSPosts', array($this, 'admin_ajax'));
|
137 |
+
if ( !$this->is_free ) {
|
138 |
+
add_action('wp_ajax_WDSExport', array($this, 'admin_ajax'));
|
139 |
+
add_action('wp_ajax_WDSImport', array($this, 'admin_ajax'));
|
140 |
+
}
|
141 |
|
142 |
+
add_action('admin_head', array($this, 'admin_head'));
|
143 |
+
// Add images to Slider.
|
144 |
+
add_action('wp_ajax_wds_UploadHandler', array($this, 'UploadHandler'));
|
145 |
+
add_action('wp_ajax_addImage', array($this, 'filemanager_ajax'));
|
146 |
+
|
147 |
+
// Slider Widget.
|
148 |
+
if (class_exists('WP_Widget')) {
|
149 |
+
add_action('widgets_init', array($this, 'register_widget'));
|
150 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
|
152 |
+
if ((!isset($_GET['action']) || $_GET['action'] != 'deactivate')
|
153 |
+
&& (!isset($_GET['page']) || $_GET['page'] != 'uninstall_wds')) {
|
154 |
+
add_action('admin_init', array($this, 'install'));
|
|
|
155 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
|
157 |
+
if ( !$this->is_free ) {
|
158 |
+
add_action('wp_ajax_wds_addEmbed', array($this, 'add_embed_ajax'));
|
|
|
|
|
159 |
}
|
160 |
+
// Register scripts/styles.
|
161 |
+
add_action('wp_enqueue_scripts', array($this, 'front_end_scripts'));
|
162 |
+
add_action('admin_enqueue_scripts', array($this, 'register_admin_scripts'));
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
|
164 |
+
add_filter('set-screen-option', array($this, 'set_option_sliders'), 10, 3);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
|
166 |
+
add_action('admin_notices', array($this, 'topic'), 11);
|
167 |
+
add_filter( 'media_upload_tabs', array($this, 'custom_media_upload_tab_name') );
|
168 |
+
add_filter( 'media_view_strings', array($this, 'custom_media_uploader_tabs'), 5 );
|
169 |
+
add_action( 'media_upload_wds_posts', array($this, 'media_upload_window') );
|
170 |
+
add_action( 'media_upload_wds_embed', array($this, 'media_upload_window') );
|
171 |
+
add_action( 'media_upload_wds_custom_uploader', array($this, 'filemanager_ajax') );
|
172 |
|
173 |
+
if ( $this->is_free) {
|
174 |
+
add_filter('plugin_row_meta', array($this, 'add_plugin_meta_links'), 10, 2);
|
|
|
|
|
175 |
}
|
176 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
|
178 |
+
/**
|
179 |
+
* Wordpress init actions.
|
180 |
+
*/
|
181 |
+
public function init() {
|
|
|
|
|
|
|
182 |
ob_start();
|
183 |
+
add_action('init', array($this, 'language_load'));
|
184 |
+
add_action('init', array($this, 'overview'), 9);
|
185 |
+
add_action('init', array($this, 'register_post_types'));
|
186 |
}
|
|
|
|
|
|
|
187 |
|
188 |
+
/**
|
189 |
+
* Plugin menu.
|
190 |
+
*/
|
191 |
+
function admin_menu() {
|
192 |
+
$parent_slug = $this->is_free ? null : 'sliders_wds';
|
193 |
+
if( !$this->is_free || get_option( "wds_subscribe_done" ) == 1 ) {
|
194 |
+
add_menu_page(__('Slider WD', $this->prefix), __('Slider WD', $this->prefix), 'manage_options', 'sliders_' . $this->prefix, array($this, 'admin_pages_new'), $this->plugin_url . '/images/wd_slider.png');
|
195 |
+
$parent_slug = "sliders_wds";
|
196 |
+
}
|
|
|
|
|
|
|
197 |
|
198 |
+
$sliders_page = add_submenu_page($parent_slug, __('Sliders', $this->prefix), __('Sliders', $this->prefix), 'manage_options', 'sliders_'. $this->prefix, array($this, 'admin_pages_new'));
|
199 |
+
add_action('admin_print_styles-' . $sliders_page, array($this, 'admin_styles'));
|
200 |
+
add_action('admin_print_scripts-' . $sliders_page, array($this, 'admin_scripts'));
|
201 |
+
add_action('load-' . $sliders_page, array($this, 'sliders_per_page_option'));
|
202 |
+
|
203 |
+
$global_options_page = add_submenu_page($parent_slug, __('Options', $this->prefix), __('Options', $this->prefix), 'manage_options', 'goptions_wds', array($this, 'admin_pages'));
|
204 |
+
add_action('admin_print_styles-' . $global_options_page, array($this, 'admin_styles'));
|
205 |
+
add_action('admin_print_scripts-' . $global_options_page, array($this, 'admin_scripts'));
|
206 |
+
|
207 |
+
if ( $this->is_free ) {
|
208 |
+
add_submenu_page($parent_slug, __('Get Pro', $this->prefix), __('Get Pro', $this->prefix), 'manage_options', 'licensing_wds', array($this, 'licensing'));
|
209 |
+
}
|
210 |
+
|
211 |
+
$demo_slider = add_submenu_page($parent_slug, __('Import', $this->prefix), __('Import', $this->prefix), 'manage_options', 'demo_sliders_wds', array($this, 'demo_sliders'));
|
212 |
+
add_action('admin_print_styles-' . $demo_slider, array($this, 'admin_styles'));
|
213 |
+
add_action('admin_print_scripts-' . $demo_slider, array($this, 'admin_scripts'));
|
214 |
+
|
215 |
+
$uninstall_page = add_submenu_page(null, __('Uninstall', $this->prefix), __('Uninstall', $this->prefix), 'manage_options', 'uninstall_wds', array($this, 'admin_pages'));
|
216 |
+
add_action('admin_print_styles-' . $uninstall_page, array($this, 'admin_styles'));
|
217 |
+
add_action('admin_print_scripts-' . $uninstall_page, array($this, 'admin_scripts'));
|
218 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
|
220 |
+
/**
|
221 |
+
* Admin pages.
|
222 |
+
*/
|
223 |
+
public function admin_pages_new() {
|
224 |
+
$allowed_pages = array(
|
225 |
+
'sliders_' . $this->prefix,
|
226 |
+
);
|
227 |
+
$page = WDW_S_Library::get('page');
|
228 |
+
if ( !empty($page) && in_array($page, $allowed_pages) ) {
|
229 |
+
$page = WDW_S_Library::clean_page_prefix($page);
|
230 |
+
$controller_page = $this->plugin_dir . '/admin/controllers/' . $page . '.php';
|
231 |
+
$model_page = $this->plugin_dir . '/admin/models/' . $page . '.php';
|
232 |
+
$view_page = $this->plugin_dir . '/admin/views/' . $page . '.php';
|
233 |
+
if ( !is_file($controller_page) ) {
|
234 |
+
echo wp_sprintf(__('The %s controller file not exist.', $this->prefix), '"<b>' . $page . '</b>"');
|
235 |
+
return FALSE;
|
|
|
236 |
}
|
237 |
+
if ( !is_file($view_page) ) {
|
238 |
+
echo wp_sprintf(__('The %s view file not exist.', $this->prefix), '"<b>' . $page . '</b>"');
|
239 |
+
return FALSE;
|
240 |
+
}
|
241 |
+
// Load page file.
|
242 |
+
require_once($this->plugin_dir . '/admin/views/AdminView.php');
|
243 |
+
require_once($controller_page);
|
244 |
+
if ( is_file($model_page) ) {
|
245 |
+
require_once($model_page);
|
246 |
+
}
|
247 |
+
require_once($view_page);
|
248 |
+
$controller_class = $page . 'Controller_' . $this->prefix;
|
249 |
+
$model_class = $page . 'Model_' . $this->prefix;
|
250 |
+
$view_class = $page . 'View_' . $this->prefix;
|
251 |
+
// Checking page class.
|
252 |
+
if ( !class_exists($controller_class) ) {
|
253 |
+
echo wp_sprintf(__('The %s class not exist.', $this->prefix), '"<b>' . $controller_class . '</b>"');
|
254 |
+
return FALSE;
|
255 |
+
}
|
256 |
+
$Model = new stdClass();
|
257 |
+
if ( class_exists($view_class) ) {
|
258 |
+
$Model = new $model_class();
|
259 |
+
}
|
260 |
+
$View = new stdClass();
|
261 |
+
if ( class_exists($view_class) ) {
|
262 |
+
$View = new $view_class();
|
263 |
+
} else {
|
264 |
+
echo wp_sprintf(__('The %s class not exist.', $this->prefix), '"<b>' . $view_class . '</b>"');
|
265 |
+
return FALSE;
|
266 |
+
}
|
267 |
+
$controller = new $controller_class( array(
|
268 |
+
'model' => $Model,
|
269 |
+
'view' => $View
|
270 |
+
));
|
271 |
+
$controller->execute();
|
272 |
+
}
|
273 |
+
}
|
274 |
|
275 |
+
function admin_pages() {
|
276 |
+
if (function_exists('current_user_can')) {
|
277 |
+
if (!current_user_can('manage_options')) {
|
278 |
+
die('Access Denied');
|
279 |
+
}
|
280 |
+
}
|
281 |
+
else {
|
282 |
+
die('Access Denied');
|
283 |
+
}
|
284 |
+
$page = WDW_S_Library::get('page');
|
285 |
+
if (($page != '') && (($page == 'sliders_wds') || ($page == 'uninstall_wds') || ($page == 'WDSShortcode') || ($page == 'goptions_wds'))) {
|
286 |
+
require_once($this->plugin_dir . '/admin/controllers/WDSController' . (($page == 'WDSShortcode') ? $page : ucfirst(strtolower($page))) . '.php');
|
287 |
+
$controller_class = 'WDSController' . ucfirst(strtolower($page));
|
288 |
+
$controller = new $controller_class();
|
289 |
+
$controller->execute();
|
290 |
+
}
|
291 |
+
}
|
292 |
|
293 |
+
/**
|
294 |
+
* Add pagination to sliders admin pages.
|
295 |
+
*/
|
296 |
+
public function sliders_per_page_option() {
|
297 |
+
$option = 'per_page';
|
298 |
+
$args = array(
|
299 |
+
'default' => 20,
|
300 |
+
'option' => 'wds_sliders_per_page',
|
301 |
+
);
|
302 |
+
add_screen_option($option, $args);
|
303 |
+
}
|
304 |
|
305 |
+
public function set_option_sliders( $status, $option, $value ) {
|
306 |
+
if ( 'wds_sliders_per_page' == $option ) {
|
307 |
+
return $value;
|
308 |
+
}
|
309 |
+
return $status;
|
310 |
+
}
|
311 |
+
/**
|
312 |
+
* Licensing page.
|
313 |
+
*/
|
314 |
+
function licensing() {
|
315 |
+
if (function_exists('current_user_can')) {
|
316 |
+
if (!current_user_can('manage_options')) {
|
317 |
+
die('Access Denied');
|
318 |
+
}
|
319 |
+
}
|
320 |
+
else {
|
321 |
die('Access Denied');
|
322 |
}
|
323 |
+
wp_register_style('wds_licensing', $this->plugin_url . '/licensing/style.css', array(), $this->plugin_version);
|
324 |
+
wp_print_styles('wds_licensing');
|
325 |
+
require_once($this->plugin_dir . '/licensing/licensing.php');
|
326 |
}
|
327 |
+
|
328 |
+
/**
|
329 |
+
* Demo slides page.
|
330 |
+
*/
|
331 |
+
function demo_sliders() {
|
332 |
+
if (function_exists('current_user_can')) {
|
333 |
+
if (!current_user_can('manage_options')) {
|
334 |
+
die('Access Denied');
|
335 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
336 |
}
|
337 |
else {
|
338 |
+
die('Access Denied');
|
339 |
}
|
340 |
+
require_once($this->plugin_dir . '/demo_sliders/demo_sliders.php');
|
341 |
+
wp_register_style('wds_demo_sliders', $this->plugin_url . '/demo_sliders/style.css', array(), $this->plugin_version);
|
342 |
+
wp_print_styles('wds_demo_sliders');
|
343 |
+
spider_demo_sliders();
|
344 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
|
346 |
+
/**
|
347 |
+
* Frontend pages.
|
348 |
+
*/
|
349 |
+
function frontend() {
|
350 |
+
$page = WDW_S_Library::get('action');
|
351 |
+
if (($page != '') && ($page == 'WDSShare')) {
|
352 |
+
require_once($this->plugin_dir . '/frontend/controllers/WDSController' . ucfirst($page) . '.php');
|
353 |
+
$controller_class = 'WDSController' . ucfirst($page);
|
354 |
+
$controller = new $controller_class();
|
355 |
+
$controller->execute();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
356 |
}
|
357 |
}
|
|
|
|
|
|
|
|
|
|
|
358 |
|
359 |
+
/**
|
360 |
+
* Admin ajax.
|
361 |
+
*/
|
362 |
+
function admin_ajax() {
|
363 |
+
if (function_exists('current_user_can')) {
|
364 |
+
if (!current_user_can('manage_options')) {
|
365 |
+
die('Access Denied');
|
366 |
+
}
|
367 |
+
}
|
368 |
+
else {
|
369 |
+
die('Access Denied');
|
370 |
+
}
|
371 |
+
$page = WDW_S_Library::get('action');
|
372 |
+
if ($page != '' && (($page == 'WDSShortcode') || ($page == 'WDSPosts') || ($page == 'WDSExport') || ($page == 'WDSImport'))) {
|
373 |
+
require_once($this->plugin_dir . '/admin/controllers/WDSController' . ucfirst($page) . '.php');
|
374 |
+
$controller_class = 'WDSController' . ucfirst($page);
|
375 |
+
$controller = new $controller_class();
|
376 |
+
$controller->execute();
|
377 |
+
}
|
378 |
}
|
|
|
|
|
379 |
|
380 |
+
/**
|
381 |
+
* @param $params
|
382 |
+
* @return mixed|string|void
|
383 |
+
*/
|
384 |
+
function shortcode($params) {
|
385 |
+
if ( is_admin() || isset($_GET['elementor-preview'])) {
|
386 |
+
// return ob_get_clean();
|
387 |
+
return __('Preview unavailable', $this->prefix);
|
388 |
+
}
|
389 |
+
else {
|
390 |
+
$params = shortcode_atts(array('id' => WDW_S_Library::get('slider_id', 0)), $params);
|
391 |
+
ob_start();
|
392 |
+
$this->front_end($params['id']);
|
393 |
+
return str_replace(array("\r\n", "\n", "\r"), '', ob_get_clean());
|
394 |
+
}
|
395 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
396 |
|
397 |
+
/**
|
398 |
+
* @param $id
|
399 |
+
* @param int $from_shortcode.
|
400 |
+
*/
|
401 |
+
function front_end($id, $from_shortcode = 1) {
|
402 |
+
require_once(WDS()->plugin_dir . '/frontend/controllers/WDSControllerSlider.php');
|
403 |
+
$controller = new WDSControllerSlider();
|
404 |
+
global $wds;
|
405 |
+
$controller->execute($id, $from_shortcode, $wds);
|
406 |
+
$wds++;
|
407 |
+
return;
|
408 |
}
|
409 |
+
|
410 |
+
function media_button($context) {
|
411 |
+
global $pagenow;
|
412 |
+
if (in_array($pagenow, array('post.php', 'page.php', 'post-new.php', 'post-edit.php', 'admin-ajax.php'))) {
|
413 |
+
$context .= '
|
414 |
+
<a onclick="tb_click.call(this); wds_thickDims(); return false;" href="' . add_query_arg(array('action' => 'WDSShortcode', 'TB_iframe' => '1'), admin_url('admin-ajax.php')) . '" class="wds_thickbox button" style="padding-left: 0.4em;" title="Select slider">
|
415 |
+
<span class="wp-media-buttons-icon wds_media_button_icon" style="vertical-align: text-bottom; background: url(' . $this->plugin_url . '/images/wd_slider.png) no-repeat scroll left top rgba(0, 0, 0, 0);"></span>
|
416 |
+
Add Slider WD
|
417 |
+
</a>';
|
418 |
+
}
|
419 |
+
return $context;
|
|
|
|
|
420 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
421 |
|
422 |
+
function admin_head() {
|
423 |
+
?>
|
424 |
+
<script>
|
425 |
+
var wds_thickDims, wds_tbWidth, wds_tbHeight;
|
426 |
+
wds_tbWidth = 400;
|
427 |
+
wds_tbHeight = 200;
|
428 |
+
wds_thickDims = function() {
|
429 |
+
var tbWindow = jQuery('#TB_window'), H = jQuery(window).height(), W = jQuery(window).width(), w, h;
|
430 |
+
w = (wds_tbWidth && wds_tbWidth < W - 90) ? wds_tbWidth : W - 40;
|
431 |
+
h = (wds_tbHeight && wds_tbHeight < H - 60) ? wds_tbHeight : H - 40;
|
432 |
+
if (tbWindow.size()) {
|
433 |
+
tbWindow.width(w).height(h);
|
434 |
+
jQuery('#TB_iframeContent').width(w).height(h - 27);
|
435 |
+
tbWindow.css({'margin-left': '-' + parseInt((w / 2),10) + 'px'});
|
436 |
+
if (typeof document.body.style.maxWidth != 'undefined') {
|
437 |
+
tbWindow.css({'top':(H-h)/2,'margin-top':'0'});
|
438 |
+
}
|
439 |
+
}
|
440 |
+
};
|
441 |
+
</script>
|
442 |
+
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
443 |
}
|
|
|
|
|
444 |
|
445 |
+
function UploadHandler() {
|
446 |
+
WDW_S_Library::verify_nonce('wds_UploadHandler');
|
447 |
+
require_once($this->plugin_dir . '/filemanager/UploadHandler.php');
|
448 |
+
}
|
|
|
449 |
|
450 |
+
function filemanager_ajax() {
|
451 |
+
if (function_exists('current_user_can')) {
|
452 |
+
if (!current_user_can('manage_options')) {
|
453 |
+
die('Access Denied');
|
454 |
+
}
|
455 |
+
}
|
456 |
+
else {
|
457 |
die('Access Denied');
|
458 |
}
|
459 |
+
$page = WDW_S_Library::get('action');
|
460 |
+
$tab = WDW_S_Library::get('tab');
|
461 |
+
|
462 |
+
// $query_url = wp_nonce_url($query_url, 'addImage', $this->nonce);
|
463 |
+
if ( (($page != '') && (($page == 'addImage') || ($page == 'addMusic')))
|
464 |
+
|| $tab == 'wds_custom_uploader' ) {
|
465 |
+
if ( $tab != 'wds_custom_uploader' ) {
|
466 |
+
WDW_S_Library::verify_nonce($page);
|
467 |
+
}
|
468 |
+
require_once($this->plugin_dir . '/filemanager/controller.php');
|
469 |
+
$controller_class = 'FilemanagerController';
|
470 |
+
$controller = new $controller_class();
|
471 |
+
$addImages_ajax = WDW_S_Library::get('addImages_ajax');
|
472 |
+
if ($addImages_ajax == 'addImages_ajax') {
|
473 |
+
$load_count = WDW_S_Library::get('load_count');
|
474 |
+
$images_list = $controller->get_images(intval($load_count));
|
475 |
+
echo (json_encode($images_list, true));
|
476 |
+
die;
|
477 |
+
}
|
478 |
+
else {
|
479 |
+
$controller->execute(true, 1);
|
480 |
+
}
|
481 |
+
}
|
482 |
}
|
483 |
+
|
484 |
+
function register_widget() {
|
485 |
+
require_once($this->plugin_dir . '/admin/controllers/WDSControllerWidgetSlideshow.php');
|
486 |
+
return register_widget("WDSControllerWidgetSlideshow");
|
487 |
}
|
|
|
|
|
488 |
|
489 |
+
function activate() {
|
490 |
+
delete_transient('wds_update_check');
|
491 |
+
$this->install();
|
492 |
}
|
493 |
+
|
494 |
+
function install() {
|
495 |
+
$version = get_option("wds_version");
|
496 |
+
$new_version = $this->db_version;
|
497 |
+
if ($version && version_compare($version, $new_version, '<')) {
|
498 |
+
require_once $this->plugin_dir . "/sliders-update.php";
|
499 |
+
wds_update($version);
|
500 |
+
update_option("wds_version", $new_version);
|
501 |
+
}
|
502 |
+
elseif (!$version) {
|
503 |
+
require_once $this->plugin_dir . "/sliders-insert.php";
|
504 |
+
wds_insert();
|
505 |
+
add_option("wds_version", $new_version, '', 'no');
|
506 |
+
add_option("wds_version_1.0.46", 1, '', 'no');
|
507 |
+
if ( $this->is_free ) {
|
508 |
+
add_option("wds_theme_version", '1.0.0', '', 'no');
|
509 |
+
}
|
510 |
+
}
|
511 |
}
|
|
|
|
|
|
|
|
|
|
|
512 |
|
513 |
+
/**
|
514 |
+
* Admin styles.
|
515 |
+
*/
|
516 |
+
function admin_styles() {
|
517 |
+
wp_admin_css('thickbox');
|
518 |
+
wp_enqueue_style($this->prefix . '_tables');
|
519 |
+
wp_enqueue_style('wds_tables_640', $this->plugin_url . '/css/wds_tables_640.css', array(), $this->plugin_version);
|
520 |
+
wp_enqueue_style('wds_tables_320', $this->plugin_url . '/css/wds_tables_320.css', array(), $this->plugin_version);
|
521 |
+
$google_fonts = WDW_S_Library::get_google_fonts();
|
522 |
+
for ($i = 0; $i < count($google_fonts); $i = $i + 150) {
|
523 |
+
$fonts = array_slice($google_fonts, $i, 150);
|
524 |
+
$query = implode("|", str_replace(' ', '+', $fonts));
|
525 |
+
$url = 'https://fonts.googleapis.com/css?family=' . $query . '&subset=greek,latin,greek-ext,vietnamese,cyrillic-ext,latin-ext,cyrillic';
|
526 |
+
wp_enqueue_style('wds_googlefonts_' . $i, $url, null, null);
|
527 |
+
}
|
528 |
+
wp_enqueue_style('wds_deactivate-css', $this->plugin_url . '/wd/assets/css/deactivate_popup.css', array(), $this->plugin_version);
|
529 |
}
|
|
|
|
|
530 |
|
531 |
+
/**
|
532 |
+
* Admin scripts.
|
533 |
+
*/
|
534 |
+
function admin_scripts() {
|
535 |
+
$wds_global_options = get_option("wds_global_options", 0);
|
536 |
+
$global_options = json_decode($wds_global_options);
|
537 |
+
if (!$global_options) {
|
538 |
+
$global_options = WDW_S_Library::global_options_defults();
|
539 |
}
|
540 |
+
wp_enqueue_media();
|
541 |
+
wp_enqueue_script('thickbox');
|
542 |
+
wp_enqueue_script('jquery');
|
543 |
+
wp_enqueue_script('jquery-ui-sortable');
|
544 |
+
wp_enqueue_script('jquery-ui-draggable');
|
545 |
+
wp_enqueue_script('jquery-ui-tooltip');
|
546 |
+
wp_enqueue_script($this->prefix . '_admin');
|
547 |
+
wp_enqueue_script('jscolor', $this->plugin_url . '/js/jscolor/jscolor.js', array(), '1.3.9');
|
548 |
+
wp_enqueue_style('wds_font-awesome', $this->plugin_url . '/css/font-awesome/font-awesome.css', array(), '4.6.3');
|
549 |
+
wp_enqueue_style('wds_effects', $this->plugin_url . '/css/wds_effects.css', array(), $this->plugin_version);
|
550 |
+
if ( !$this->is_free ) {
|
551 |
+
wp_enqueue_script('wds_hotspot', $this->plugin_url . '/js/wds_hotspot.js', array(), $this->plugin_version);
|
552 |
+
wp_enqueue_script('wds_embed', $this->plugin_url . '/js/wds_embed.js', array(), $this->plugin_version);
|
553 |
+
}
|
554 |
+
require_once(WDS()->plugin_dir . '/framework/WDW_S_Library.php');
|
555 |
+
wp_localize_script('wds_admin', 'wds_object', array(
|
556 |
+
"GGF" => WDW_S_Library::get_google_fonts(),
|
557 |
+
"FGF" => WDW_S_Library::get_font_families(),
|
558 |
+
"LDO" => $global_options,
|
559 |
+
"is_free" => $this->is_free,
|
560 |
+
'translate' => array(
|
561 |
+
'check_at_least' => __('You must check at least one item.', $this->prefix),
|
562 |
+
'no_slider' => __('There is no slider.', $this->prefix),
|
563 |
+
'min_size' => __('Sets the minimal size of the text. It will be shrunk until the font size is equal to this value.', $this->prefix),
|
564 |
+
'font_size' => __('Size:', $this->prefix),
|
565 |
+
'please_enter_url_to_embed' => __('Please enter url to embed.', $this->prefix),
|
566 |
+
'error_cannot_get_response_from_the_server' => __('Error: cannot get response from the server.', $this->prefix),
|
567 |
+
'error_something_wrong_happened_at_the_server' => __('Error: something wrong happened at the server.', $this->prefix),
|
568 |
+
'edit_filmstrip_thumbnail' => __('Edit Filmstrip Thumbnail', $this->prefix),
|
569 |
+
'you_must_set_watermark_type' => __('You must set watermark type.', $this->prefix),
|
570 |
+
'watermark_succesfully_set' => __('Watermark Succesfully Set.', $this->prefix),
|
571 |
+
'watermark_succesfully_reset' => __('Watermark Succesfully Reset.', $this->prefix),
|
572 |
+
'items_succesfully_saved' => __('Items Succesfully Saved.', $this->prefix),
|
573 |
+
'changes_made_in_this_table_should_be_saved' => __('Changes made in this table should be saved.', $this->prefix),
|
574 |
+
'selected' => __('Selected', $this->prefix),
|
575 |
+
'item' => __('item', $this->prefix),
|
576 |
+
's' => __('s', $this->prefix),
|
577 |
+
'you_must_select_an_image_file' => __('You must select an image file.', $this->prefix),
|
578 |
+
'album_thumb_dimensions' => __('Album thumb dimensions:', $this->prefix),
|
579 |
+
'album_thumb_width' => __('Album thumb width:', $this->prefix),
|
580 |
+
'edit_thumbnail' => __('Edit Thumbnail', $this->prefix),
|
581 |
+
'do_you_want_to_delete_layer' => __('Do you want to delete the layer?', $this->prefix),
|
582 |
+
'drag_to_re_order' => __('Drag to re-order', $this->prefix),
|
583 |
+
'layer' => __('Layer', $this->prefix),
|
584 |
+
'delete_layer' => __('Delete layer', $this->prefix),
|
585 |
+
'duplicate_layer' => __('Duplicate layer', $this->prefix),
|
586 |
+
'text' => __('Text:', $this->prefix),
|
587 |
+
'sample_text' => __('Sample text', $this->prefix),
|
588 |
+
'leave_blank_to_keep_the_initial_width_and_height' => __('Leave blank to keep the initial width and height.', $this->prefix),
|
589 |
+
'dimensions' => __('Dimensions:', $this->prefix),
|
590 |
+
'break_word' => __('Break-word', $this->prefix),
|
591 |
+
'edit_image' => __('Edit Image', $this->prefix),
|
592 |
+
'set_the_html_attribute_specified_in_the_img_tag' => __('Set the value of alt HTML attribute for this image layer.', $this->prefix),
|
593 |
+
'alt' => __('Alt:', $this->prefix),
|
594 |
+
'use_http_and_https_for_external_links' => __('Use http:// and https:// for external links.', $this->prefix),
|
595 |
+
'link' => __('Link:', $this->prefix),
|
596 |
+
'open_in_a_new_window' => __('Open in a new window', $this->prefix),
|
597 |
+
'in_addition_you_can_drag_and_drop_the_layerto_a_desired_position' => __('In addition, you can drag the layer and drop it to the desired position.', $this->prefix),
|
598 |
+
'position' => __('Position:', $this->prefix),
|
599 |
+
'published' => __('Published:', $this->prefix),
|
600 |
+
'fixed_step_left_center_right' => __('Fixed step (left, center, right)', $this->prefix),
|
601 |
+
'yes' => __('Yes', $this->prefix),
|
602 |
+
'no' => __('No', $this->prefix),
|
603 |
+
'color' => __('Color:', $this->prefix),
|
604 |
+
'hover_color' => __('Hover Color', $this->prefix),
|
605 |
+
'size' => __('Size:', $this->prefix),
|
606 |
+
'font_family' => __('Font family:', $this->prefix),
|
607 |
+
'google_fonts' => __('Google fonts', $this->prefix),
|
608 |
+
'default' => __('Default', $this->prefix),
|
609 |
+
'font_weight' => __('Font weight:', $this->prefix),
|
610 |
+
'padding' => __('Padding:', $this->prefix),
|
611 |
+
'value_must_be_between_0_to_100' => __('Value must be between 0 and 100.', $this->prefix),
|
612 |
+
'transparent' => __('Transparency:', $this->prefix),
|
613 |
+
'border' => __('Border:', $this->prefix),
|
614 |
+
'use_css_type_values' => __('Use CSS type values.', $this->prefix),
|
615 |
+
'use_css_type_values_e_g_10_10_5_888888' => __('Use CSS type values (e.g. 10px 10px 5px #888888).', $this->prefix),
|
616 |
+
'shadow' => __('Shadow', $this->prefix),
|
617 |
+
'dimensions' => __('Dimensions:', $this->prefix),
|
618 |
+
'set_width_and_height_of_the_image' => __('Set width and height of the image.', $this->prefix),
|
619 |
+
'set_width_and_height_of_the_video' => __('Set width and height of the video.', $this->prefix),
|
620 |
+
'social_button' => __('Social button', $this->prefix),
|
621 |
+
'effect_in' => __('Effect in:', $this->prefix),
|
622 |
+
'effect_out' => __('Effect out:', $this->prefix),
|
623 |
+
'start' => __('Start', $this->prefix),
|
624 |
+
'effect' => __('Effect', $this->prefix),
|
625 |
+
'duration' => __('Duration', $this->prefix),
|
626 |
+
'iteration' => __('Iteration', $this->prefix),
|
627 |
+
'autoplay' => __('Autoplay:', $this->prefix),
|
628 |
+
'controls' => __('Controls:', $this->prefix),
|
629 |
+
'hotspot_width' => __('Hotspot Width:', $this->prefix),
|
630 |
+
'hotspot_background_color' => __('Hotspot Background Color:', $this->prefix),
|
631 |
+
'hotspot_border' => __('Hotspot Border:', $this->prefix),
|
632 |
+
'hotspot_radius' => __('Hotspot Radius:', $this->prefix),
|
633 |
+
'in_addition_you_can_drag_and_drop_the_layer_to_a_desired_position' => __('In addition, you can drag the layer and drop it to the desired position.', $this->prefix),
|
634 |
+
'leave_blank_to_keep_the_initial_width_and_height' => __('Leave blank to keep the initial width and height.', $this->prefix),
|
635 |
+
'video_loop' => __('Video Loop', $this->prefix),
|
636 |
+
'disable_youtube_related_video' => __('Disable youtube related video:', $this->prefix),
|
637 |
+
'hotspot_animation' => __('Hotspot Animation:', $this->prefix),
|
638 |
+
'add_click_action' => __('Add click action:', $this->prefix),
|
639 |
+
'select_between_the_option_of_always_displaying_the_navigation_buttons_or_only_when_hovered' => __('Select between the option of always displaying the navigation buttons or only when hovered.', $this->prefix),
|
640 |
+
'show_hotspot_text' => __('Show Hotspot text:', $this->prefix),
|
641 |
+
'on_hover' => __('On hover', $this->prefix),
|
642 |
+
'on_click' => __('On click', $this->prefix),
|
643 |
+
'text_alignment' => __('Text alignment:', $this->prefix),
|
644 |
+
'slides_name' => __('Slides name:', $this->prefix),
|
645 |
+
'static_layer' => __('Static layer:', $this->prefix),
|
646 |
+
'the_layer_will_be_visible_on_all_slides' => __('The layer will be visible on all slides.', $this->prefix),
|
647 |
+
'add_edit_image' => __('Add/Edit Image', $this->prefix),
|
648 |
+
'add_image_layer' => __('Add Image Layer', $this->prefix),
|
649 |
+
'slide' => __('Slide', $this->prefix),
|
650 |
+
'duplicate_slide' => __('Duplicate slide', $this->prefix),
|
651 |
+
'delete_slide' => __('Delete slide', $this->prefix),
|
652 |
+
'add_image_by_url' => __('Add Image by URL', $this->prefix),
|
653 |
+
'embed_media' => __('Embed Media', $this->prefix),
|
654 |
+
'add_post' => __('Add Post', $this->prefix),
|
655 |
+
'delete' => __('Delete', $this->prefix),
|
656 |
+
'youtube_related_video' => __('Youtube related video:', $this->prefix),
|
657 |
+
'video_loop' => __('Video Loop:', $this->prefix),
|
658 |
+
'you_can_set_a_redirection_link_so_that_the_user_will_get_to_the_mentioned_location_upon_hitting_the_slide_use_http_and_https_for_external_links' => __('You can add a URL, to which the users will be redirected upon clicking on the slide. Use http:// and https:// for external links.', $this->prefix),
|
659 |
+
'link_the_slide_to' => __('Link the slide to:', $this->prefix),
|
660 |
+
'add_text_layer' => __('Add Text Layer', $this->prefix),
|
661 |
+
'add_video_layer' => __('Add Video Layer', $this->prefix),
|
662 |
+
'embed_media_layer' => __('Embed Media Layer', $this->prefix),
|
663 |
+
'add_social_buttons_layer' => __('Add Social Buttons Layer', $this->prefix),
|
664 |
+
'add_hotspot_layer' => __('Add Hotspot Layer', $this->prefix),
|
665 |
+
'do_you_want_to_delete_slide' => __('Do you want to delete slide?', $this->prefix),
|
666 |
+
'sorry_you_are_not_allowed_to_upload_this_type_of_file' => __('Sorry, you are not allowed to upload this type of file.', $this->prefix),
|
667 |
+
'you_must_select_at_least_one_item' => __('You must select at least one item.', $this->prefix),
|
668 |
+
'do_you_want_to_delete_selected_items' => __('Do you want to delete selected items?', $this->prefix),
|
669 |
+
'are_you_sure_you_want_to_reset_the_settings' => __('Are you sure you want to reset the settings?', $this->prefix),
|
670 |
+
'choose' => __('Choose', $this->prefix),
|
671 |
+
'choose_video' => __('Choose Video', $this->prefix),
|
672 |
+
'choose_image' => __('Choose Image', $this->prefix),
|
673 |
+
'insert' => __('Insert', $this->prefix),
|
674 |
+
'add_class' => __('Add class:', $this->prefix),
|
675 |
+
'radius' => __('Radius:', $this->prefix),
|
676 |
+
'editor' => __('Editor', $this->prefix),
|
677 |
+
'group' => __('Group', $this->prefix),
|
678 |
+
'color' => __('Color', $this->prefix),
|
679 |
+
'background_color' => __('Background Color:', $this->prefix),
|
680 |
+
'none' => __('None', $this->prefix),
|
681 |
+
'bounce' => __('Bounce', $this->prefix),
|
682 |
+
'flash' => __('Flash', $this->prefix),
|
683 |
+
'pulse' => __('Pulse', $this->prefix),
|
684 |
+
'shake' => __('Shake', $this->prefix),
|
685 |
+
'swing' => __('Swing', $this->prefix),
|
686 |
+
'tada' => __('Tada', $this->prefix),
|
687 |
+
'wobble' => __('Wobble', $this->prefix),
|
688 |
+
'hinge' => __('Hinge', $this->prefix),
|
689 |
+
'rubberBand' => __('RubberBand', $this->prefix),
|
690 |
+
'lightSpeedIn' => __('LightSpeedIn', $this->prefix),
|
691 |
+
'rollIn' => __('RollIn', $this->prefix),
|
692 |
+
'bounceIn' => __('BounceIn', $this->prefix),
|
693 |
+
'bounceInDown' => __('BounceInDown', $this->prefix),
|
694 |
+
'bounceInLeft' => __('BounceInLeft', $this->prefix),
|
695 |
+
'bounceInRight' => __('BounceInRight', $this->prefix),
|
696 |
+
'bounceInUp' => __('BounceInUp', $this->prefix),
|
697 |
+
'fadeIn' => __('FadeIn', $this->prefix),
|
698 |
+
'fadeInDown' => __('FadeInDown', $this->prefix),
|
699 |
+
'fadeInDownBig' => __('FadeInDownBig', $this->prefix),
|
700 |
+
'fadeInLeft' => __('FadeInLeft', $this->prefix),
|
701 |
+
'fadeInLeftBig' => __('FadeInLeftBig', $this->prefix),
|
702 |
+
'fadeInRight' => __('FadeInRight', $this->prefix),
|
703 |
+
'fadeInRightBig' => __('FadeInRightBig', $this->prefix),
|
704 |
+
'fadeInUp' => __('FadeInUp', $this->prefix),
|
705 |
+
'fadeInUpBig' => __('FadeInUpBig', $this->prefix),
|
706 |
+
'flip' => __('Flip', $this->prefix),
|
707 |
+
'flipInX' => __('FlipInX', $this->prefix),
|
708 |
+
'flipInY' => __('FlipInY', $this->prefix),
|
709 |
+
'rotateIn' => __('RotateIn', $this->prefix),
|
710 |
+
'rotateInDownLeft' => __('RotateInDownLeft', $this->prefix),
|
711 |
+
'rotateInDownRight' => __('RotateInDownRight', $this->prefix),
|
712 |
+
'rotateInUpLeft' => __('RotateInUpLeft', $this->prefix),
|
713 |
+
'rotateInUpRight' => __('RotateInUpRight', $this->prefix),
|
714 |
+
'zoomIn' => __('ZoomIn', $this->prefix),
|
715 |
+
'zoomInDown' => __('ZoomInDown', $this->prefix),
|
716 |
+
'zoomInLeft' => __('ZoomInLeft', $this->prefix),
|
717 |
+
'zoomInRight' => __('ZoomInRight', $this->prefix),
|
718 |
+
'zoomInUp' => __('ZoomInUp', $this->prefix),
|
719 |
+
'lightSpeedOut' => __('LightSpeedOut', $this->prefix),
|
720 |
+
'rollOut' => __('RollOut', $this->prefix),
|
721 |
+
'bounceOut' => __('BounceOut', $this->prefix),
|
722 |
+
'bounceOutDown' => __('BounceOutDown', $this->prefix),
|
723 |
+
'bounceOutLeft' => __('BounceOutLeft', $this->prefix),
|
724 |
+
'bounceOutRight' => __('BounceOutRight', $this->prefix),
|
725 |
+
'bounceOutUp' => __('BounceOutUp', $this->prefix),
|
726 |
+
'fadeOut' => __('FadeOut', $this->prefix),
|
727 |
+
'fadeOutDown' => __('FadeOutDown', $this->prefix),
|
728 |
+
'fadeOutDownBig' => __('FadeOutDownBig', $this->prefix),
|
729 |
+
'fadeOutLeft' => __('FadeOutLeft', $this->prefix),
|
730 |
+
'fadeOutLeftBig' => __('FadeOutLeftBig', $this->prefix),
|
731 |
+
'fadeOutRight' => __('FadeOutRight', $this->prefix),
|
732 |
+
'fadeOutRightBig' => __('FadeOutRightBig', $this->prefix),
|
733 |
+
'fadeOutUp' => __('FadeOutUp', $this->prefix),
|
734 |
+
'fadeOutUpBig' => __('FadeOutUpBig', $this->prefix),
|
735 |
+
'flip' => __('Flip', $this->prefix),
|
736 |
+
'flipOutX' => __('FlipOutX', $this->prefix),
|
737 |
+
'flipOutY' => __('FlipOutY', $this->prefix),
|
738 |
+
'rotateOut' => __('RotateOut', $this->prefix),
|
739 |
+
'rotateOutDownLeft' => __('RotateOutDownLeft', $this->prefix),
|
740 |
+
'rotateOutDownRight' => __('RotateOutDownRight', $this->prefix),
|
741 |
+
'rotateOutUpLeft' => __('RotateOutUpLeft', $this->prefix),
|
742 |
+
'rotateOutUpRight' => __('RotateOutUpRight', $this->prefix),
|
743 |
+
'zoomOut' => __('ZoomOut', $this->prefix),
|
744 |
+
'zoomOutDown' => __('ZoomOutDown', $this->prefix),
|
745 |
+
'zoomOutLeft' => __('ZoomOutLeft', $this->prefix),
|
746 |
+
'zoomOutRight' => __('ZoomOutRight', $this->prefix),
|
747 |
+
'zoomOutUp' => __('ZoomOutUp', $this->prefix),
|
748 |
+
'insert_valid_audio_file' => __('Insert valid audio file', $this->prefix),
|
749 |
+
'fillmode' => __('Fillmode', $this->prefix),
|
750 |
+
'fill' => __('Fill', $this->prefix),
|
751 |
+
'Changes_must_be_saved' => __('Changes must be saved', $this->prefix),
|
752 |
+
'edit_slide' => __('Edit Slide', $this->prefix),
|
753 |
+
'media_library' => __('Media Library'), // This is WP translation.
|
754 |
+
'disabled_in_free_version' => __('This functionality is disabled in free version.', $this->prefix),
|
755 |
+
'video_disabled_in_free_version' => __('You can`t add video slide in free version', $this->prefix),
|
756 |
+
)
|
757 |
+
));
|
758 |
+
|
759 |
+
wp_enqueue_script('wds-deactivate-popup', $this->plugin_url.'/wd/assets/js/deactivate_popup.js', array(), $this->plugin_version, true );
|
760 |
+
$admin_data = wp_get_current_user();
|
761 |
+
|
762 |
+
wp_localize_script( 'wds-deactivate-popup', 'wdsWDDeactivateVars', array(
|
763 |
+
"prefix" => $this->prefix ,
|
764 |
+
"deactivate_class" => 'wds_deactivate_link',
|
765 |
+
"email" => $admin_data->data->user_email,
|
766 |
"plugin_wd_url" => "https://web-dorado.com/products/wordpress-slider-plugin.html",
|
767 |
+
));
|
768 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
769 |
|
770 |
+
function language_load() {
|
771 |
+
load_plugin_textdomain($this->prefix, FALSE, basename(dirname(__FILE__)) . '/languages');
|
772 |
}
|
773 |
+
|
774 |
+
/**
|
775 |
+
* Front end scripts and styles.
|
776 |
+
*/
|
777 |
+
function front_end_scripts() {
|
778 |
+
global $wpdb;
|
779 |
+
$rows = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "wdslayer ORDER BY `depth` ASC");
|
780 |
+
$font_array = array();
|
781 |
+
foreach ($rows as $row) {
|
782 |
+
if (isset($row->google_fonts) && ($row->google_fonts == 1) && ($row->ffamily != "") && !in_array($row->ffamily, $font_array)) {
|
783 |
+
$font_array[] = $row->ffamily;
|
784 |
+
}
|
|
|
|
|
|
|
|
|
785 |
}
|
786 |
+
$query = implode("|", $font_array);
|
787 |
+
if ($query != '') {
|
788 |
+
$url = 'https://fonts.googleapis.com/css?family=' . $query . '&subset=greek,latin,greek-ext,vietnamese,cyrillic-ext,latin-ext,cyrillic';
|
|
|
789 |
}
|
790 |
+
wp_register_style('wds_frontend', $this->front_url . '/css/wds_frontend.css', array(), $this->plugin_version);
|
791 |
+
wp_register_style('wds_effects', $this->front_url . '/css/wds_effects.css', array(), $this->plugin_version);
|
792 |
+
wp_register_style('wds_font-awesome', $this->front_url . '/css/font-awesome/font-awesome.css', array(), '4.6.3');
|
793 |
+
if ($query != '') {
|
794 |
+
wp_register_style('wds_googlefonts', $url, null, null);
|
795 |
}
|
796 |
+
wp_register_script('wds_jquery_mobile', $this->front_url . '/js/jquery.mobile.js', array('jquery'), $this->plugin_version);
|
797 |
+
wp_register_script($this->prefix . '_frontend', $this->front_url . '/js/wds_frontend.js', array('jquery'), $this->plugin_version, TRUE);
|
798 |
+
wp_localize_script( $this->prefix . '_frontend', 'wds_object', array(
|
799 |
+
"is_free" => $this->is_free,
|
800 |
+
'pause' => __('Pause', $this->prefix),
|
801 |
+
'play' => __('Play', $this->prefix),
|
802 |
+
));
|
803 |
+
if ( !$this->is_free ) {
|
804 |
+
wp_register_script('wds_jquery_featureCarouselslider', $this->front_url . '/js/jquery.featureCarouselslider.js', array( 'jquery' ), $this->plugin_version);
|
805 |
+
wp_register_script('wds_hotspot', $this->front_url . '/js/wds_hotspot.js', array( 'jquery' ), $this->plugin_version);
|
806 |
+
wp_register_script('wds_youtube', 'https://www.youtube.com/iframe_api');
|
807 |
}
|
808 |
}
|
809 |
+
|
810 |
+
function add_embed_ajax() {
|
811 |
+
if (function_exists('current_user_can')) {
|
812 |
+
if (!current_user_can('manage_options')) {
|
813 |
+
die('Access Denied');
|
814 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
815 |
}
|
816 |
+
else {
|
817 |
+
die('Access Denied');
|
|
|
818 |
}
|
819 |
+
require_once($this->plugin_dir . '/framework/WDW_S_LibraryEmbed.php');
|
820 |
+
|
821 |
+
if (!WDW_S_LibraryEmbed::verify_nonce('')) {
|
822 |
+
die(WDW_S_LibraryEmbed::delimit_wd_output(json_encode(array("error", "Sorry, your nonce did not verify."))));
|
823 |
}
|
824 |
+
$embed_action = WDW_S_Library::get('action');
|
825 |
+
if (($embed_action != '') && ($embed_action == 'wds_addEmbed')) {
|
826 |
+
$url_to_embed = WDW_S_Library::get('URL_to_embed');
|
827 |
+
$data = WDW_S_LibraryEmbed::add_embed($url_to_embed);
|
828 |
+
echo WDW_S_LibraryEmbed::delimit_wd_output($data);
|
829 |
+
wp_die();
|
830 |
}
|
831 |
+
die('Nothing to add');
|
832 |
+
}
|
833 |
+
|
834 |
+
/**
|
835 |
+
* Register slider preview custom post type.
|
836 |
+
*/
|
837 |
+
function register_post_types() {
|
838 |
+
$args = array(
|
839 |
+
'public' => TRUE,
|
840 |
+
'show_in_menu' => FALSE,
|
841 |
+
'exclude_from_search' => TRUE,
|
842 |
+
'create_posts' => 'do_not_allow',
|
843 |
+
'capabilities' => array(
|
844 |
+
'create_posts' => FALSE,
|
845 |
+
'edit_post' => 'edit_posts',
|
846 |
+
'read_post' => 'edit_posts',
|
847 |
+
'delete_posts' => FALSE,
|
848 |
+
),
|
849 |
+
);
|
850 |
+
register_post_type('wds-slider', $args);
|
851 |
+
}
|
852 |
+
|
853 |
+
function overview() {
|
854 |
+
if (is_admin() && !isset($_REQUEST['ajax'])) {
|
855 |
+
if (!class_exists("DoradoWeb")) {
|
856 |
+
require_once($this->plugin_dir . '/wd/start.php');
|
857 |
+
}
|
858 |
+
global $wds_options;
|
859 |
+
$wds_options = array(
|
860 |
+
"prefix" => "wds",
|
861 |
+
"wd_plugin_id" => 69,
|
862 |
+
"plugin_title" => "Slider WD",
|
863 |
+
"plugin_wordpress_slug" => "slider-wd",
|
864 |
+
"plugin_dir" => $this->plugin_dir,
|
865 |
+
"plugin_main_file" => __FILE__,
|
866 |
+
"description" => __('Slider WD is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.', $this->prefix),
|
867 |
+
// from web-dorado.com
|
868 |
+
"plugin_features" => array(
|
869 |
+
0 => array(
|
870 |
+
"title" => __("Responsive", $this->prefix),
|
871 |
+
"description" => __("Sleek, powerful and intuitive design and layout brings the slides on a new level, for perfect and fast web surfing. Ways that users interact with 100% responsive Slider WD guarantees better and brave experience.", $this->prefix),
|
872 |
+
),
|
873 |
+
1 => array(
|
874 |
+
"title" => __("SEO Friendly", $this->prefix),
|
875 |
+
"description" => __("Slider WD has developed the best practices in SEO field. The plugin supports all functions necessary for top-rankings.", $this->prefix),
|
876 |
+
),
|
877 |
+
2 => array(
|
878 |
+
"title" => __("Drag & Drop Back-End Interface", $this->prefix),
|
879 |
+
"description" => __("Arrange each and every layer via user friendly drag and drop interface in seconds. This function guarantees fast and effective usability of the plugin without any development skills.", $this->prefix),
|
880 |
+
),
|
881 |
+
3 => array(
|
882 |
+
"title" => __("Touch Swipe Navigation", $this->prefix),
|
883 |
+
"description" => __("Touch the surface of your mobile devices and experience smooth finger navigation. In desktop devices you can experience the same navigation using mouse dragging.", $this->prefix),
|
884 |
+
),
|
885 |
+
4 => array(
|
886 |
+
"title" => __("Navigation Custom Buttons", $this->prefix),
|
887 |
+
"description" => __("You can choose among variety of navigation button designs included in the plugin or upload and use your custom ones, based on preferences.", $this->prefix),
|
888 |
+
)
|
889 |
+
),
|
890 |
+
// user guide from web-dorado.com
|
891 |
+
"user_guide" => array(
|
892 |
+
0 => array(
|
893 |
+
"main_title" => __("Installing the Slider WD", $this->prefix),
|
894 |
+
"url" => "https://web-dorado.com/wordpress-slider-wd/installing.html",
|
895 |
+
"titles" => array()
|
896 |
+
),
|
897 |
+
1 => array(
|
898 |
+
"main_title" => __("Adding Images to Sliders", $this->prefix),
|
899 |
+
"url" => "https://web-dorado.com/wordpress-slider-wd/adding-images.html",
|
900 |
+
"titles" => array()
|
901 |
+
),
|
902 |
+
2 => array(
|
903 |
+
"main_title" => __("Adding Layers to The Slide", $this->prefix),
|
904 |
+
"url" => "https://web-dorado.com/wordpress-slider-wd/adding-layers.html",
|
905 |
+
"titles" => array()
|
906 |
+
),
|
907 |
+
3 => array(
|
908 |
+
"main_title" => __("Changing/Modifying Slider Settings", $this->prefix),
|
909 |
+
"url" => "https://web-dorado.com/wordpress-slider-wd/changing-settings.html",
|
910 |
+
"titles" => array()
|
911 |
+
),
|
912 |
+
4 => array(
|
913 |
+
"main_title" => __("Publishing the Created Slider", $this->prefix),
|
914 |
+
"url" => "https://web-dorado.com/wordpress-slider-wd/publishing-slider.html",
|
915 |
+
"titles" => array()
|
916 |
+
),
|
917 |
+
5 => array(
|
918 |
+
"main_title" => __("Importing/Exporting Sliders", $this->prefix),
|
919 |
+
"url" => "https://web-dorado.com/wordpress-slider-wd/import-export.html",
|
920 |
+
"titles" => array()
|
921 |
+
),
|
922 |
+
),
|
923 |
+
"video_youtube_id" => "xebpM_-GwG0", // e.g. https://www.youtube.com/watch?v=acaexefeP7o youtube id is the acaexefeP7o
|
924 |
+
"plugin_wd_url" => "https://web-dorado.com/products/wordpress-slider-plugin.html",
|
925 |
+
"plugin_wd_demo_link" => "http://wpdemo.web-dorado.com/slider/",
|
926 |
+
"plugin_wd_addons_link" => "",
|
927 |
+
"after_subscribe" => admin_url('admin.php?page=sliders_wds'), // this can be plagin overview page or set up page
|
928 |
+
"plugin_wizard_link" => '',
|
929 |
+
"plugin_menu_title" => "Slider WD",
|
930 |
+
"plugin_menu_icon" => $this->plugin_url . '/images/wd_slider.png',
|
931 |
+
"deactivate" => ( $this->is_free ? TRUE : FALSE ),
|
932 |
+
"subscribe" => ( $this->is_free ? TRUE : FALSE ),
|
933 |
+
"custom_post" => 'sliders_wds',
|
934 |
+
"menu_position" => null,
|
935 |
+
);
|
936 |
+
|
937 |
+
dorado_web_init($wds_options);
|
938 |
}
|
939 |
+
}
|
940 |
+
|
941 |
+
function topic() {
|
942 |
+
$page = isset($_GET['page']) ? $_GET['page'] : '';
|
943 |
+
$user_guide_link = 'https://web-dorado.com/wordpress-slider-wd/';
|
944 |
+
$support_forum_link = 'https://wordpress.org/support/plugin/slider-wd';
|
945 |
+
$pro_link = 'https://web-dorado.com/files/fromslider.php';
|
946 |
+
$pro_icon = $this->plugin_url . '/images/wd_logo.png';
|
947 |
+
$support_icon = $this->plugin_url . '/images/support.png';
|
948 |
+
$prefix = $this->prefix;
|
949 |
+
switch ($page) {
|
950 |
+
case 'sliders_wds': {
|
951 |
+
$help_text = 'create, edit and delete sliders';
|
952 |
+
$user_guide_link .= 'adding-images.html';
|
953 |
+
break;
|
954 |
+
}
|
955 |
+
case 'goptions_wds': {
|
956 |
+
$help_text = 'edit global options for sliders';
|
957 |
+
$user_guide_link .= 'adding-images.html';
|
958 |
+
break;
|
959 |
+
}
|
960 |
+
case 'licensing_wds': {
|
961 |
+
$help_text = '';
|
962 |
+
$user_guide_link .= 'adding-images.html';
|
963 |
+
break;
|
964 |
+
}
|
965 |
+
default: {
|
966 |
+
return '';
|
967 |
+
break;
|
968 |
+
}
|
969 |
}
|
970 |
+
ob_start();
|
971 |
+
?>
|
972 |
+
<style>
|
973 |
+
.wd_topic {
|
974 |
+
background-color: #ffffff;
|
975 |
+
border: none;
|
976 |
+
box-sizing: border-box;
|
977 |
+
clear: both;
|
978 |
+
color: #6e7990;
|
979 |
+
font-size: 14px;
|
980 |
+
font-weight: bold;
|
981 |
+
line-height: 44px;
|
982 |
+
padding: 0 0 0 15px;
|
983 |
+
vertical-align: middle;
|
984 |
+
width: 98%;
|
985 |
+
}
|
986 |
+
.wd_topic .wd_help_topic {
|
987 |
+
float: left;
|
988 |
+
}
|
989 |
+
.wd_topic .wd_help_topic a {
|
990 |
+
color: #0073aa;
|
991 |
+
}
|
992 |
+
.wd_topic .wd_help_topic a:hover {
|
993 |
+
color: #00A0D2;
|
994 |
+
}
|
995 |
+
.wd_topic .wd_support {
|
996 |
+
float: right;
|
997 |
+
margin: 0 10px;
|
998 |
+
}
|
999 |
+
.wd_topic .wd_support img {
|
1000 |
+
vertical-align: middle;
|
1001 |
+
}
|
1002 |
+
.wd_topic .wd_support a {
|
1003 |
+
text-decoration: none;
|
1004 |
+
color: #6E7990;
|
1005 |
+
}
|
1006 |
+
.wd_topic .wd_pro {
|
1007 |
+
float: right;
|
1008 |
+
padding: 0;
|
1009 |
+
}
|
1010 |
+
.wd_topic .wd_pro a {
|
1011 |
+
border: none;
|
1012 |
+
box-shadow: none !important;
|
1013 |
+
text-decoration: none;
|
1014 |
+
}
|
1015 |
+
.wd_topic .wd_pro img {
|
1016 |
+
border: none;
|
1017 |
+
display: inline-block;
|
1018 |
+
vertical-align: middle;
|
1019 |
+
}
|
1020 |
+
.wd_topic .wd_pro a,
|
1021 |
+
.wd_topic .wd_pro a:active,
|
1022 |
+
.wd_topic .wd_pro a:visited,
|
1023 |
+
.wd_topic .wd_pro a:hover {
|
1024 |
+
background-color: #D8D8D8;
|
1025 |
+
color: #175c8b;
|
1026 |
+
display: inline-block;
|
1027 |
+
font-size: 11px;
|
1028 |
+
font-weight: bold;
|
1029 |
+
padding: 0 10px;
|
1030 |
+
vertical-align: middle;
|
1031 |
+
}
|
1032 |
+
</style>
|
1033 |
+
<div class="update-nag wd_topic">
|
1034 |
+
<?php
|
1035 |
+
if ($help_text) {
|
1036 |
+
?>
|
1037 |
+
<span class="wd_help_topic">
|
1038 |
<?php echo sprintf(__('This section allows you to %s.', $prefix), $help_text); ?>
|
1039 |
+
<a target="_blank" href="<?php echo $user_guide_link; ?>">
|
1040 |
<?php _e('Read More in User Manual', $prefix); ?>
|
1041 |
</a>
|
1042 |
</span>
|
1043 |
+
<?php
|
1044 |
+
}
|
1045 |
+
if ( $this->is_free ) {
|
1046 |
+
$text = strtoupper(__('Upgrade to paid version', $prefix));
|
1047 |
+
?>
|
1048 |
+
<div class="wd_pro">
|
1049 |
+
<a target="_blank" href="<?php echo $pro_link; ?>">
|
1050 |
+
<img alt="web-dorado.com" title="<?php echo $text; ?>" src="<?php echo $pro_icon; ?>" />
|
1051 |
+
<span><?php echo $text; ?></span>
|
1052 |
+
</a>
|
1053 |
+
</div>
|
1054 |
+
<?php
|
1055 |
+
}
|
1056 |
+
if (FALSE) {
|
1057 |
+
?>
|
1058 |
+
<span class="wd_support">
|
1059 |
<a target="_blank" href="<?php echo $support_forum_link; ?>">
|
1060 |
<img src="<?php echo $support_icon; ?>" />
|
1061 |
<?php _e('Support Forum', $prefix); ?>
|
1062 |
</a>
|
1063 |
</span>
|
1064 |
+
<?php
|
1065 |
+
}
|
1066 |
+
?>
|
1067 |
+
</div>
|
1068 |
+
<?php
|
1069 |
+
echo ob_get_clean();
|
1070 |
+
}
|
1071 |
+
|
1072 |
+
/**
|
1073 |
+
* Add custom tabs to media uploader.
|
1074 |
+
*
|
1075 |
+
* @param $tabs
|
1076 |
+
* @return array
|
1077 |
+
*/
|
1078 |
+
function custom_media_upload_tab_name( $tabs ) {
|
1079 |
+
$custom_tabs = array( 'wds_posts', 'wds_embed', 'wds_custom_uploader' );
|
1080 |
+
|
1081 |
+
if ( ( isset( $_GET['page'] ) && $_GET['page'] == 'sliders_wds' )
|
1082 |
+
|| ( isset( $_GET['tab'] ) && in_array( $_GET['tab'], $custom_tabs ) ) ) {
|
1083 |
+
$newtabs = array(
|
1084 |
+
'wds_posts' => __( "Posts", $this->prefix ),
|
1085 |
+
'wds_embed' => __( "Embed Media", $this->prefix ),
|
1086 |
+
);
|
1087 |
+
|
1088 |
+
$wds_global_options = get_option("wds_global_options", 0);
|
1089 |
+
$global_options = json_decode($wds_global_options);
|
1090 |
+
$spider_uploader = isset($global_options->spider_uploader) ? $global_options->spider_uploader : 0;
|
1091 |
+
if ( $spider_uploader ) {
|
1092 |
+
$newtabs['wds_custom_uploader'] = __( "WD Media Uploader", $this->prefix );
|
1093 |
+
}
|
1094 |
+
|
1095 |
+
if ( isset($tabs['nextgen']) ) {
|
1096 |
+
unset($tabs['nextgen']);
|
1097 |
+
}
|
1098 |
+
|
1099 |
+
if ( is_array( $tabs ) ) {
|
1100 |
+
return array_merge( $tabs, $newtabs );
|
1101 |
+
}
|
1102 |
+
else {
|
1103 |
+
return $newtabs;
|
1104 |
+
}
|
1105 |
}
|
1106 |
+
|
1107 |
+
return $tabs;
|
1108 |
+
}
|
1109 |
+
|
1110 |
+
/**
|
1111 |
+
* Remove unused tabs from media uploader.
|
1112 |
+
*
|
1113 |
+
* @param $strings
|
1114 |
+
*
|
1115 |
+
* @return mixed
|
1116 |
+
*/
|
1117 |
+
function custom_media_uploader_tabs( $strings ) {
|
1118 |
+
if ( ( isset( $_GET['page'] ) && $_GET['page'] == 'sliders_wds' ) ) {
|
1119 |
+
// Update strings.
|
1120 |
+
$strings['insertMediaTitle'] = __( "Images / Videos", $this->prefix );
|
1121 |
+
$strings['insertIntoPost'] = __( "Add to slider", $this->prefix );
|
1122 |
+
|
1123 |
+
// Remove options.
|
1124 |
+
$strings_to_remove = array(
|
1125 |
+
'createVideoPlaylistTitle',
|
1126 |
+
'createGalleryTitle',
|
1127 |
+
'createPlaylistTitle'
|
1128 |
+
);
|
1129 |
+
foreach ($strings_to_remove as $string) {
|
1130 |
+
if (isset($strings[$string])) {
|
1131 |
+
unset($strings[$string]);
|
1132 |
+
}
|
1133 |
+
}
|
1134 |
+
}
|
1135 |
+
|
1136 |
+
return $strings;
|
1137 |
+
}
|
1138 |
+
|
1139 |
+
/**
|
1140 |
+
*
|
1141 |
+
*/
|
1142 |
+
function media_upload_window() {
|
1143 |
+
if (function_exists('current_user_can')) {
|
1144 |
+
if (!current_user_can('manage_options')) {
|
1145 |
+
die('Access Denied');
|
1146 |
+
}
|
1147 |
+
}
|
1148 |
+
else {
|
1149 |
+
die('Access Denied');
|
1150 |
+
}
|
1151 |
+
$tab = WDW_S_Library::get('tab');
|
1152 |
+
$custom_tabs = array( 'wds_posts', 'wds_embed' );
|
1153 |
+
if ( in_array($tab, $custom_tabs) ) {
|
1154 |
+
$tab = str_replace('wds_', '', $tab);
|
1155 |
+
require_once($this->plugin_dir . '/admin/controllers/' . $tab . '.php');
|
1156 |
+
$controller_class = 'WDSController' . $tab;
|
1157 |
+
$controller = new $controller_class();
|
1158 |
+
$controller->execute();
|
1159 |
+
}
|
1160 |
+
}
|
1161 |
+
|
1162 |
+
/**
|
1163 |
+
* Register iframe styles and scripts.
|
1164 |
+
*/
|
1165 |
+
function register_iframe_scripts() {
|
1166 |
+
$required_scripts = array( 'jquery' );
|
1167 |
+
$required_styles = array(
|
1168 |
+
// 'admin-bar',
|
1169 |
+
// 'dashicons',
|
1170 |
+
'wp-admin', // admin styles
|
1171 |
+
'buttons', // buttons styles
|
1172 |
+
'media-views', // media uploader styles
|
1173 |
+
'wp-auth-check', // check all
|
1174 |
+
);
|
1175 |
+
wp_register_script($this->prefix . '_admin', $this->plugin_url . '/js/wds.js', $required_scripts, $this->plugin_version);
|
1176 |
+
|
1177 |
+
wp_register_style($this->prefix . '_tables', $this->plugin_url . '/css/wds_tables.css', $required_styles, $this->plugin_version);
|
1178 |
+
|
1179 |
+
wp_localize_script( $this->prefix . '_admin', 'wds', array(
|
1180 |
+
"file_not_supported" => __('This file type is not supported.', $this->prefix),
|
1181 |
+
));
|
1182 |
+
}
|
1183 |
+
|
1184 |
+
/**
|
1185 |
+
* Register admin styles and scripts.
|
1186 |
+
*/
|
1187 |
+
function register_admin_scripts() {
|
1188 |
+
$required_scripts = array( 'jquery' );
|
1189 |
+
wp_register_script($this->prefix . '_admin', $this->plugin_url . '/js/wds.js', $required_scripts, $this->plugin_version);
|
1190 |
+
wp_register_style($this->prefix . '_tables', $this->plugin_url . '/css/wds_tables.css', FALSE, $this->plugin_version);
|
1191 |
+
wp_localize_script( $this->prefix . '_admin', 'wds', array(
|
1192 |
+
"file_not_supported" => __('This file type is not supported.', $this->prefix),
|
1193 |
+
));
|
1194 |
+
}
|
1195 |
+
|
1196 |
+
function add_plugin_meta_links($meta_fields, $file) {
|
1197 |
+
if ( plugin_basename(__FILE__) == $file ) {
|
1198 |
+
$plugin_url = "https://wordpress.org/support/plugin/slider-wd";
|
1199 |
+
$prefix = $this->prefix;
|
1200 |
+
$meta_fields[] = "<a href='" . $plugin_url . "' target='_blank'>" . __('Support Forum', $prefix) . "</a>";
|
1201 |
+
$meta_fields[] = "<a href='" . $plugin_url . "/reviews#new-post' target='_blank' title='" . __('Rate', $prefix) . "'>
|
1202 |
+
<i class='wdi-rate-stars'>"
|
1203 |
+
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
1204 |
+
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
1205 |
+
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
1206 |
+
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
1207 |
+
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
1208 |
+
. "</i></a>";
|
1209 |
+
|
1210 |
+
$stars_color = "#ffb900";
|
1211 |
+
|
1212 |
+
echo "<style>"
|
1213 |
+
. ".wdi-rate-stars{display:inline-block;color:" . $stars_color . ";position:relative;top:3px;}"
|
1214 |
+
. ".wdi-rate-stars svg{fill:" . $stars_color . ";}"
|
1215 |
+
. ".wdi-rate-stars svg:hover{fill:" . $stars_color . "}"
|
1216 |
+
. ".wdi-rate-stars svg:hover ~ svg{fill:none;}"
|
1217 |
+
. "</style>";
|
1218 |
+
}
|
1219 |
+
|
1220 |
+
return $meta_fields;
|
1221 |
+
}
|
1222 |
+
|
1223 |
+
}
|
1224 |
+
|
1225 |
+
/**
|
1226 |
+
* Main instance of WDS.
|
1227 |
+
*
|
1228 |
+
* @return WDS The main instance to prevent the need to use globals.
|
1229 |
+
*/
|
1230 |
+
function WDS() {
|
1231 |
+
return WDS::instance();
|
1232 |
+
}
|
1233 |
+
|
1234 |
+
WDS();
|
1235 |
+
|
1236 |
+
/**
|
1237 |
+
* PHP Function to use in templates.
|
1238 |
+
*
|
1239 |
+
* @param $id
|
1240 |
+
*/
|
1241 |
+
function wd_slider($id) {
|
1242 |
+
echo WDS()->front_end($id);
|
1243 |
+
}
|
1244 |
+
|
1245 |
+
/**
|
1246 |
+
* Get sliders for theme developers.
|
1247 |
+
*
|
1248 |
+
* @return array
|
1249 |
+
*/
|
1250 |
+
function wds_get_sliders() {
|
1251 |
+
global $wpdb;
|
1252 |
+
$results = $wpdb->get_results("SELECT `id`,`name` FROM `" . $wpdb->prefix . "wdsslider`", OBJECT_K);
|
1253 |
+
$sliders = array();
|
1254 |
+
foreach ($results as $id => $slider) {
|
1255 |
+
$sliders[$id] = isset($slider->name) ? $slider->name : '';
|
1256 |
+
}
|
1257 |
+
return $sliders;
|
1258 |
}
|
|
|
1259 |
|
1260 |
/**
|
1261 |
* Show notice to install Image Optimization plugin
|
1274 |
$meta_value = get_option('wds_io_notice_status');
|
1275 |
if ( $meta_value === '' || $meta_value === FALSE ) {
|
1276 |
ob_start();
|
1277 |
+
$prefix = WDS()->prefix;
|
1278 |
+
$nicename = WDS()->nicename;
|
1279 |
+
$url = WDS()->plugin_url;
|
1280 |
$dismiss_url = add_query_arg(array( 'action' => 'wd_io_dismiss' ), admin_url('admin-ajax.php'));
|
1281 |
$install_url = esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=image-optimizer-wd'), 'install-plugin_image-optimizer-wd'));
|
1282 |
?>
|
1343 |
}
|
1344 |
add_action('wp_ajax_wd_io_dismiss', 'wd_iops_install_notice_status');
|
1345 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sliders-insert.php
CHANGED
@@ -202,10 +202,10 @@ function wds_insert() {
|
|
202 |
PRIMARY KEY (`id`)
|
203 |
) DEFAULT CHARSET=utf8;";
|
204 |
$wpdb->query($wdslayer);
|
205 |
-
$global_options = json_encode(
|
206 |
update_option('wds_global_options', $global_options);
|
207 |
|
208 |
-
if (
|
209 |
if ( !$wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "wdsslider") ) {
|
210 |
$wpdb->insert($wpdb->prefix . 'wdsslider', array(
|
211 |
'id' => 1,
|
@@ -268,7 +268,7 @@ function wds_insert() {
|
|
268 |
'built_in_watermark_type' => 'none',
|
269 |
'built_in_watermark_position' => 'middle-center',
|
270 |
'built_in_watermark_size' => 15,
|
271 |
-
'built_in_watermark_url' =>
|
272 |
'built_in_watermark_text' => 'web-dorado.com',
|
273 |
'built_in_watermark_font_size' => 20,
|
274 |
'built_in_watermark_font' => '',
|
@@ -277,18 +277,18 @@ function wds_insert() {
|
|
277 |
'css' => '',
|
278 |
'stop_animation' => 0,
|
279 |
'spider_uploader' => 0,
|
280 |
-
'right_butt_url' =>
|
281 |
-
'left_butt_url' =>
|
282 |
-
'right_butt_hov_url' =>
|
283 |
-
'left_butt_hov_url' =>
|
284 |
'rl_butt_img_or_not' => 'style',
|
285 |
-
'bullets_img_main_url' =>
|
286 |
-
'bullets_img_hov_url' =>
|
287 |
'bull_butt_img_or_not' => 'style',
|
288 |
-
'play_butt_url' =>
|
289 |
-
'paus_butt_url' =>
|
290 |
-
'play_butt_hov_url' =>
|
291 |
-
'paus_butt_hov_url' =>
|
292 |
'play_paus_butt_img_or_not' => 'style',
|
293 |
'start_slide_num' => 1,
|
294 |
'effect_duration' => 800,
|
@@ -326,9 +326,9 @@ function wds_insert() {
|
|
326 |
));
|
327 |
}
|
328 |
if ( !$wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "wdsslide") ) {
|
329 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'wdsslide` VALUES(1, 1, "Slide 1", "image", "' .
|
330 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'wdsslide` VALUES(2, 1, "Slide 2", "image", "' .
|
331 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'wdsslide` VALUES(3, 1, "Slide 3", "image", "' .
|
332 |
}
|
333 |
}
|
334 |
|
202 |
PRIMARY KEY (`id`)
|
203 |
) DEFAULT CHARSET=utf8;";
|
204 |
$wpdb->query($wdslayer);
|
205 |
+
$global_options = json_encode(WDW_S_Library::global_options_defults());
|
206 |
update_option('wds_global_options', $global_options);
|
207 |
|
208 |
+
if ( WDS()->is_free ) {
|
209 |
if ( !$wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "wdsslider") ) {
|
210 |
$wpdb->insert($wpdb->prefix . 'wdsslider', array(
|
211 |
'id' => 1,
|
268 |
'built_in_watermark_type' => 'none',
|
269 |
'built_in_watermark_position' => 'middle-center',
|
270 |
'built_in_watermark_size' => 15,
|
271 |
+
'built_in_watermark_url' => WDS()->plugin_url . '/images/watermark.png',
|
272 |
'built_in_watermark_text' => 'web-dorado.com',
|
273 |
'built_in_watermark_font_size' => 20,
|
274 |
'built_in_watermark_font' => '',
|
277 |
'css' => '',
|
278 |
'stop_animation' => 0,
|
279 |
'spider_uploader' => 0,
|
280 |
+
'right_butt_url' => WDS()->plugin_url . '/images/arrow/arrow11/1/2.png',
|
281 |
+
'left_butt_url' => WDS()->plugin_url . '/images/arrow/arrow11/1/1.png',
|
282 |
+
'right_butt_hov_url' => WDS()->plugin_url . '/images/arrow/arrow11/1/4.png',
|
283 |
+
'left_butt_hov_url' => WDS()->plugin_url . '/images/arrow/arrow11/1/3.png',
|
284 |
'rl_butt_img_or_not' => 'style',
|
285 |
+
'bullets_img_main_url' => WDS()->plugin_url . '/images/bullet/bullet1/1/1.png',
|
286 |
+
'bullets_img_hov_url' => WDS()->plugin_url . '/images/bullet/bullet1/1/2.png',
|
287 |
'bull_butt_img_or_not' => 'style',
|
288 |
+
'play_butt_url' => WDS()->plugin_url . '/images/button/button4/1/1.png',
|
289 |
+
'paus_butt_url' => WDS()->plugin_url . '/images/button/button4/1/3.png',
|
290 |
+
'play_butt_hov_url' => WDS()->plugin_url . '/images/button/button4/1/2.png',
|
291 |
+
'paus_butt_hov_url' => WDS()->plugin_url . '/images/button/button4/1/4.png',
|
292 |
'play_paus_butt_img_or_not' => 'style',
|
293 |
'start_slide_num' => 1,
|
294 |
'effect_duration' => 800,
|
326 |
));
|
327 |
}
|
328 |
if ( !$wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "wdsslide") ) {
|
329 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'wdsslide` VALUES(1, 1, "Slide 1", "image", "' . WDS()->plugin_url . '/demo/1.jpg", "' . WDS()->plugin_url . '/demo/1-150x150.jpg", 1, "", 1, 0, 0, 0, "fill")');
|
330 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'wdsslide` VALUES(2, 1, "Slide 2", "image", "' . WDS()->plugin_url . '/demo/2.jpg", "' . WDS()->plugin_url . '/demo/2-150x150.jpg", 1, "", 2, 0, 0, 0, "fill")');
|
331 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'wdsslide` VALUES(3, 1, "Slide 3", "image", "' . WDS()->plugin_url . '/demo/3.jpg", "' . WDS()->plugin_url . '/demo/3-150x150.jpg", 1, "", 3, 0, 0, 0, "fill")');
|
332 |
}
|
333 |
}
|
334 |
|
sliders-update.php
CHANGED
@@ -14,24 +14,24 @@ function wds_update($version) {
|
|
14 |
}
|
15 |
if (version_compare($version, '1.0.5') == -1) {
|
16 |
// Add right/left button image/hover image url.
|
17 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `right_butt_url` varchar(255) NOT NULL DEFAULT '" .
|
18 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `left_butt_url` varchar(255) NOT NULL DEFAULT '" .
|
19 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `right_butt_hov_url` varchar(255) NOT NULL DEFAULT '" .
|
20 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `left_butt_hov_url` varchar(255) NOT NULL DEFAULT '" .
|
21 |
// Whether to display right/left buttons by image or not.
|
22 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `rl_butt_img_or_not` varchar(8) NOT NULL DEFAULT 'style'");
|
23 |
// Add bullets image/hover image url.
|
24 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `bullets_img_main_url` varchar(255) NOT NULL DEFAULT '" .
|
25 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `bullets_img_hov_url` varchar(255) NOT NULL DEFAULT '" .
|
26 |
// Whether to display bullets by image or not.
|
27 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `bull_butt_img_or_not` varchar(8) NOT NULL DEFAULT 'style'");
|
28 |
}
|
29 |
if (version_compare($version, '1.0.6') == -1) {
|
30 |
// Add play/pause button image/hover image url.
|
31 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `play_butt_url` varchar(255) NOT NULL DEFAULT '" .
|
32 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `paus_butt_url` varchar(255) NOT NULL DEFAULT '" .
|
33 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `play_butt_hov_url` varchar(255) NOT NULL DEFAULT '" .
|
34 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `paus_butt_hov_url` varchar(255) NOT NULL DEFAULT '" .
|
35 |
// Whether to display play/pause buttons by image or not.
|
36 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `play_paus_butt_img_or_not` varchar(8) NOT NULL DEFAULT 'style'");
|
37 |
}
|
@@ -194,7 +194,7 @@ function wds_update($version) {
|
|
194 |
$font_family = implode("*WD*", $possib_add_ffamily);
|
195 |
$possib_add_ffamily_google = array_unique($possib_add_ffamily_google);
|
196 |
$google_font = implode("*WD*", $possib_add_ffamily_google);
|
197 |
-
$global_options =
|
198 |
$global_options['loading_gif'] = $loading_gif;
|
199 |
$global_options['register_scripts'] = $wds_register_scripts;
|
200 |
$global_options['spider_uploader'] = $spider_uploader;
|
14 |
}
|
15 |
if (version_compare($version, '1.0.5') == -1) {
|
16 |
// Add right/left button image/hover image url.
|
17 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `right_butt_url` varchar(255) NOT NULL DEFAULT '" . WDS()->plugin_url . '/images/arrow/arrow11/1/2.png' . "'");
|
18 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `left_butt_url` varchar(255) NOT NULL DEFAULT '" . WDS()->plugin_url . '/images/arrow/arrow11/1/1.png' . "'");
|
19 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `right_butt_hov_url` varchar(255) NOT NULL DEFAULT '" . WDS()->plugin_url . '/images/arrow/arrow11/1/4.png' . "'");
|
20 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `left_butt_hov_url` varchar(255) NOT NULL DEFAULT '" . WDS()->plugin_url . '/images/arrow/arrow11/1/3.png' . "'");
|
21 |
// Whether to display right/left buttons by image or not.
|
22 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `rl_butt_img_or_not` varchar(8) NOT NULL DEFAULT 'style'");
|
23 |
// Add bullets image/hover image url.
|
24 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `bullets_img_main_url` varchar(255) NOT NULL DEFAULT '" . WDS()->plugin_url . '/images/bullet/bullet1/1/1.png' . "'");
|
25 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `bullets_img_hov_url` varchar(255) NOT NULL DEFAULT '" . WDS()->plugin_url . '/images/bullet/bullet1/1/2.png' . "'");
|
26 |
// Whether to display bullets by image or not.
|
27 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `bull_butt_img_or_not` varchar(8) NOT NULL DEFAULT 'style'");
|
28 |
}
|
29 |
if (version_compare($version, '1.0.6') == -1) {
|
30 |
// Add play/pause button image/hover image url.
|
31 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `play_butt_url` varchar(255) NOT NULL DEFAULT '" . WDS()->plugin_url . '/images/button/button4/1/1.png' . "'");
|
32 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `paus_butt_url` varchar(255) NOT NULL DEFAULT '" . WDS()->plugin_url . '/images/button/button4/1/3.png' . "'");
|
33 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `play_butt_hov_url` varchar(255) NOT NULL DEFAULT '" . WDS()->plugin_url . '/images/button/button4/1/2.png' . "'");
|
34 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `paus_butt_hov_url` varchar(255) NOT NULL DEFAULT '" . WDS()->plugin_url . '/images/button/button4/1/4.png' . "'");
|
35 |
// Whether to display play/pause buttons by image or not.
|
36 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `play_paus_butt_img_or_not` varchar(8) NOT NULL DEFAULT 'style'");
|
37 |
}
|
194 |
$font_family = implode("*WD*", $possib_add_ffamily);
|
195 |
$possib_add_ffamily_google = array_unique($possib_add_ffamily_google);
|
196 |
$google_font = implode("*WD*", $possib_add_ffamily_google);
|
197 |
+
$global_options = WDW_S_Library::global_options_defults();
|
198 |
$global_options['loading_gif'] = $loading_gif;
|
199 |
$global_options['register_scripts'] = $wds_register_scripts;
|
200 |
$global_options['spider_uploader'] = $spider_uploader;
|
wd/.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
# Created by .ignore support plugin (hsz.mobi)
|
2 |
+
.idea/*
|