settings-tabs
1 year ago
admin-content.php
1 year ago
folder-deactivate-form.php
1 year ago
folder-popup.php
1 year ago
general-settings.php
1 year ago
help.php
1 year ago
media-cleaning.php
1 year ago
media-replace.php
1 year ago
modals.php
1 year ago
recommended-plugins.php
1 year ago
update.php
1 year ago
upgrade-table.php
1 year ago
upgrade-to-pro.php
1 year ago
general-settings.php
900 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin folders settings |
| 4 | * |
| 5 | * @author : Premio <contact@premio.io> |
| 6 | * @license : GPL2 |
| 7 | * */ |
| 8 | |
| 9 | if (! defined('ABSPATH')) { |
| 10 | exit; |
| 11 | } |
| 12 | ?> |
| 13 | <!-- do not change here, Free/Pro URL Change --> |
| 14 | <style> |
| 15 | <?php if (function_exists('is_rtl') && is_rtl()) { ?> |
| 16 | #setting-form { |
| 17 | float: right; |
| 18 | } |
| 19 | <?php } ?> |
| 20 | </style> |
| 21 | <script> |
| 22 | (function (factory) { |
| 23 | "use strict"; |
| 24 | if (typeof define === 'function' && define.amd) { |
| 25 | define(['jquery'], factory); |
| 26 | } |
| 27 | else if(typeof module !== 'undefined' && module.exports) { |
| 28 | module.exports = factory(require('jquery')); |
| 29 | } |
| 30 | else { |
| 31 | factory(jQuery); |
| 32 | } |
| 33 | }(function ($, undefined) { |
| 34 | var selectedItem; |
| 35 | var importTitle = "<?php esc_html_e("Import folders from %plugin%", "folders"); ?>"; |
| 36 | var importDesc = "<?php esc_html_e("Are you sure you'd like to import %1\$d folders from %plugin%?", "folders"); ?>"; |
| 37 | var removeTitle = "<?php esc_html_e("Are you sure?", "folders"); ?>"; |
| 38 | var removeDesc = "<?php esc_html_e("You're about to delete %plugin%'s folders. Are you sure you'd like to proceed?", "folders"); ?>"; |
| 39 | $(document).ready(function(){ |
| 40 | <?php if ($setting_page == "folder-settings") { ?> |
| 41 | $(".select2-box").select2(); |
| 42 | <?php } ?> |
| 43 | <?php |
| 44 | $focus = filter_input(INPUT_GET, 'focus'); |
| 45 | if($focus == "icon-color") { |
| 46 | $hide_folder_color_pop_up = get_option("hide_folder_color_pop_up"); |
| 47 | if(!($hide_folder_color_pop_up)) { |
| 48 | add_option("hide_folder_color_pop_up", "yes"); |
| 49 | } else { |
| 50 | update_option("hide_folder_color_pop_up", "yes"); |
| 51 | } |
| 52 | ?> |
| 53 | $(".default-icon-color").addClass("add-focus-animate"); |
| 54 | <?php } ?> |
| 55 | $(document).on("click",".form-cancel-btn, .close-popup-button, .folder-popup-form",function(){ |
| 56 | if($(this).hasClass("cancel-folders") || $(this).hasClass("remove-folders-box") || $(this).hasClass("close-remove-folders")) { |
| 57 | $("#remove_folders_when_removed").prop("checked", false); |
| 58 | setFoldersRemoveStatus("off"); |
| 59 | } |
| 60 | if($(this).hasClass("delete-button")) { |
| 61 | setFoldersRemoveStatus("on"); |
| 62 | } |
| 63 | $(".folder-popup-form").hide(); |
| 64 | if($(this).closest(".folder-popup-form").attr("id") == "import-third-party-plugin-data") { |
| 65 | if($("#wordpress-popup").length) { |
| 66 | $("#wordpress-popup").show(); |
| 67 | } |
| 68 | } |
| 69 | }); |
| 70 | $(document).on("click",".import-folders-button", function(e){ |
| 71 | $("#import-folders-popup").show(); |
| 72 | }); |
| 73 | $(document).on("click",".popup-form-content", function(e){ |
| 74 | e.stopPropagation(); |
| 75 | e.stopImmediatePropagation(); |
| 76 | }); |
| 77 | $(document).on("click",".folder-select",function(){ |
| 78 | if($(this).is(":checked")) { |
| 79 | $(this).closest("tr").find(".hide-show-option").removeClass("hide-option"); |
| 80 | } else { |
| 81 | $(this).closest("tr").find(".hide-show-option").addClass("hide-option"); |
| 82 | } |
| 83 | }); |
| 84 | $(document).on("click", ".accordion-header", function(){ |
| 85 | if($(this).hasClass("active")) { |
| 86 | $(this).closest(".accordion").find(".accordion-content").slideUp(); |
| 87 | $(this).removeClass("active"); |
| 88 | } else { |
| 89 | $(this).closest(".accordion").find(".accordion-content").slideDown(); |
| 90 | $(this).addClass("active"); |
| 91 | } |
| 92 | }); |
| 93 | $(document).on("change", ".hide-show-option", function(){ |
| 94 | if($(this).val() == "folders-pro") { |
| 95 | $(this).find("option").prop("selected", false); |
| 96 | $(this).find("option:first").prop("selected", true); |
| 97 | window.open("<?php echo esc_url($this->getFoldersUpgradeURL()) ?>", "_blank"); |
| 98 | } |
| 99 | }); |
| 100 | $(document).on("change", "#folder_font", function(){ |
| 101 | if($(this).val() == "folders-pro") { |
| 102 | $(this).val("").trigger("change"); |
| 103 | window.open("<?php echo esc_url($this->getFoldersUpgradeURL()) ?>", "_blank"); |
| 104 | } |
| 105 | }); |
| 106 | $(document).on("click",".view-shortcodes", function(e){ |
| 107 | e.preventDefault(); |
| 108 | $("#keyboard-shortcut").show(); |
| 109 | }); |
| 110 | $(document).on("change", "#folder_size", function(){ |
| 111 | if($(this).val() == "folders-pro" || $(this).val() == "folders-pro-item" || $(this).val() == "folders-item-pro") { |
| 112 | $(this).val("16").trigger("change"); |
| 113 | window.open("<?php echo esc_url($this->getFoldersUpgradeURL()) ?>", "_blank"); |
| 114 | } |
| 115 | }); |
| 116 | $(".accordion-header:first").trigger("click"); |
| 117 | $("#folder_font, #folder_size").change(function(){ |
| 118 | setCSSProperties(); |
| 119 | }); |
| 120 | $(document).on("click", "input[name='customize_folders[show_media_details]']", function(){ |
| 121 | if($("#show_media_details").is(":checked")) { |
| 122 | $(".media-setting-box").addClass("active"); |
| 123 | } else { |
| 124 | $(".media-setting-box").removeClass("active"); |
| 125 | } |
| 126 | }); |
| 127 | $(document).on("change", "input[name='customize_folders[default_icon_color]']:checked", function(){ |
| 128 | setCSSProperties(); |
| 129 | }); |
| 130 | setCSSProperties(); |
| 131 | $('.color-field').spectrum({ |
| 132 | chooseText: "Submit", |
| 133 | preferredFormat: "hex", |
| 134 | showInput: true, |
| 135 | cancelText: "Cancel", |
| 136 | move: function (color) { |
| 137 | $(this).val(color.toHexString()); |
| 138 | setCSSProperties(); |
| 139 | }, |
| 140 | change: function (color) { |
| 141 | $(this).val(color.toHexString()); |
| 142 | setCSSProperties(); |
| 143 | } |
| 144 | }); |
| 145 | $(document).on("click", "input[name='customize_folders[remove_folders_when_removed]']", function(e){ |
| 146 | if($(this).is(":checked")) { |
| 147 | $("#remove-folders-data-box").show(); |
| 148 | //setFoldersRemoveStatus("on"); |
| 149 | } else { |
| 150 | setFoldersRemoveStatus("off"); |
| 151 | } |
| 152 | }) |
| 153 | $(document).on("click", ".import-folder-data", function(e){ |
| 154 | selectedItem = $(this).closest("tr").data("plugin"); |
| 155 | if(!$(this).hasClass("in-popup")) { |
| 156 | var pluginName = $(this).closest("tr").find(".plugin-name").html(); |
| 157 | var pluginFolders = parseInt($(this).closest("tr").data("folders")); |
| 158 | var popupTitle = importTitle.replace("%plugin%", pluginName); |
| 159 | $(".import-folder-title").html(popupTitle); |
| 160 | var popupDesc = importDesc.replace("%plugin%", "<b>" + pluginName + "</b>"); |
| 161 | popupDesc = popupDesc.replace("%d", "<b>" + pluginFolders + "</b>"); |
| 162 | $(".import-folder-note").html(popupDesc); |
| 163 | $("#import-plugin-data").show(); |
| 164 | } else { |
| 165 | importPluginData(); |
| 166 | } |
| 167 | }); |
| 168 | $(document).on("click", ".remove-folders-data", function(e){ |
| 169 | e.preventDefault(); |
| 170 | $("#remove-confirmation-box").show(); |
| 171 | $("#delete-input").focus(); |
| 172 | }); |
| 173 | $(document).on("keyup", "#delete-input", function(){ |
| 174 | if($.trim($(this).val()) != "") { |
| 175 | var inputVal = $.trim($(this).val()).toLowerCase(); |
| 176 | if (inputVal == "delete") { |
| 177 | $("#remove-folders-data-button").prop("disabled", false); |
| 178 | $(".delete-confirmation-message").html("<?php esc_html_e('This will delete all existing folders & settings', 'folders'); ?>"); |
| 179 | } else { |
| 180 | $("#remove-folders-data-button").prop("disabled", true); |
| 181 | if (inputVal != "") { |
| 182 | var textLen = inputVal.length; |
| 183 | var curStr = ("delete").substring(0, textLen); |
| 184 | if (curStr != inputVal) { |
| 185 | $(".delete-confirmation-message").html("<?php esc_html_e('Please type DELETE and click on the "Delete" button to confirm', 'folders'); ?>"); |
| 186 | } else { |
| 187 | $(".delete-confirmation-message").html(""); |
| 188 | } |
| 189 | } else { |
| 190 | $(".delete-confirmation-message").html(""); |
| 191 | } |
| 192 | } |
| 193 | } else { |
| 194 | $(".delete-confirmation-message").html(""); |
| 195 | } |
| 196 | }); |
| 197 | $(document).on("submit", "#remove_folders_data", function(e){ |
| 198 | e.preventDefault(); |
| 199 | if($.trim($("#delete-input").val()).toLowerCase() == "delete") { |
| 200 | $.ajax({ |
| 201 | url: "<?php echo esc_url(admin_url("admin-ajax.php")) ?>", |
| 202 | data: { |
| 203 | action: 'wcp_remove_all_folders_data', |
| 204 | nonce: $("#remove-folder-nonce").val() |
| 205 | }, |
| 206 | type: 'post', |
| 207 | success: function(res) { |
| 208 | <?php |
| 209 | $redirectURL = $this->getFolderSettingsURL(); |
| 210 | if (!empty($redirectURL)) { |
| 211 | $page = filter_input(INPUT_POST, 'tab_page'); |
| 212 | $type = filter_input(INPUT_GET, 'setting_page'); |
| 213 | $type = empty($type) ? "" : "&setting_page=".esc_attr($type); |
| 214 | $redirectURL = $redirectURL.$type; |
| 215 | if (!empty($page)) { |
| 216 | $redirectURL .= "&setting_page=".esc_attr($page); |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | $redirectURL = $redirectURL."¬e=2"; |
| 221 | ?> |
| 222 | window.location = "<?php echo esc_url($redirectURL) ?>"; |
| 223 | } |
| 224 | }); |
| 225 | } |
| 226 | return false; |
| 227 | }); |
| 228 | $(document).on("change", "#delete-input", function(){ |
| 229 | if($.trim($(this).val()).toLowerCase() == "delete") { |
| 230 | $("#remove-folders-data-button").prop("disabled", false); |
| 231 | } else { |
| 232 | $("#remove-folders-data-button").prop("disabled", true); |
| 233 | } |
| 234 | }); |
| 235 | $(document).on("click", "#import-folder-button", function(e){ |
| 236 | importPluginData(); |
| 237 | }); |
| 238 | $(document).on("click", "#folders_by_user_roles", function(e){ |
| 239 | if($(this).is(":checked")) { |
| 240 | $(".folder-user-settings").addClass("active"); |
| 241 | } else { |
| 242 | $(".folder-user-settings").removeClass("active"); |
| 243 | } |
| 244 | }); |
| 245 | $(document).on("click", ".remove-folder-data", function(e){ |
| 246 | selectedItem = $(this).closest("tr").data("plugin"); |
| 247 | var pluginName = $(this).closest("tr").find(".plugin-name").html(); |
| 248 | var pluginFolders = parseInt($(this).closest("tr").data("folders")); |
| 249 | var popupTitle = removeTitle.replace("%plugin%", pluginName); |
| 250 | $(".remove-folder-title").html(popupTitle); |
| 251 | var popupDesc = removeDesc.replace("%plugin%", "<b>" + pluginName + "</b>"); |
| 252 | popupDesc = popupDesc.replace("%d", "<b>" + pluginFolders + "</b>"); |
| 253 | $(".remove-folder-note").html(popupDesc); |
| 254 | $("#remove-plugin-data").show(); |
| 255 | }); |
| 256 | $(document).on("click", "#remove-folder-button", function(){ |
| 257 | removePluginData(); |
| 258 | }); |
| 259 | setTooltipPosition(); |
| 260 | |
| 261 | $(document).on("click", ".checkbox-color", function(){ |
| 262 | setCSSProperties(); |
| 263 | }); |
| 264 | |
| 265 | $(document).on("change", ".checkbox-color", function(){ |
| 266 | setCSSProperties(); |
| 267 | }); |
| 268 | $(document).on("click", "#use_folder_undo", function(){ |
| 269 | if($(this).is(":checked")) { |
| 270 | $(".timeout-settings").addClass("active"); |
| 271 | } else { |
| 272 | $(".timeout-settings").removeClass("active"); |
| 273 | } |
| 274 | }); |
| 275 | $('.enable-replace-media').hover( |
| 276 | function(){ |
| 277 | //$(this).addClass('hover') |
| 278 | }, |
| 279 | function(){ |
| 280 | $(this).removeClass('show') |
| 281 | } |
| 282 | ) |
| 283 | $('.enable-replace-media .html-tooltip').hover( |
| 284 | function(){ |
| 285 | $(this).closest(".enable-replace-media").addClass('show') |
| 286 | }, |
| 287 | function(){ |
| 288 | //$(this).removeClass('show') |
| 289 | } |
| 290 | ) |
| 291 | }); |
| 292 | |
| 293 | function setFoldersRemoveStatus(status) { |
| 294 | $.ajax({ |
| 295 | url: "<?php echo esc_url(admin_url("admin-ajax.php")) ?>", |
| 296 | data: { |
| 297 | 'action': 'wcp_update_folders_uninstall_status', |
| 298 | 'status': status, |
| 299 | 'nonce': "<?php echo esc_attr(wp_create_nonce("wcp_folders_uninstall_status")) ?>" |
| 300 | }, |
| 301 | type: 'post', |
| 302 | success: function (res) { |
| 303 | |
| 304 | } |
| 305 | }); |
| 306 | } |
| 307 | |
| 308 | var totalAttachments = 0; |
| 309 | |
| 310 | function importPluginData() { |
| 311 | $("#import-folder-button").addClass("button"); |
| 312 | $("#import-folder-button").prop("disabled", true); |
| 313 | $(".import-folder-data").prop("disabled", true); |
| 314 | $(".other-plugins-"+selectedItem+" .import-folder-data .spinner").addClass("active"); |
| 315 | totalAttachments = 0; |
| 316 | importPluginDataByPage(1); |
| 317 | } |
| 318 | |
| 319 | function importPluginDataByPage(pageNo) { |
| 320 | $.ajax({ |
| 321 | url: "<?php echo esc_url(admin_url("admin-ajax.php")) ?>", |
| 322 | data: { |
| 323 | 'plugin': $(".other-plugins-"+selectedItem).data("plugin"), |
| 324 | 'nonce': $(".other-plugins-"+selectedItem).data("nonce"), |
| 325 | 'action': 'wcp_import_plugin_folders_data', |
| 326 | 'paged' : pageNo, |
| 327 | 'attached': totalAttachments |
| 328 | }, |
| 329 | type: 'post', |
| 330 | success: function(res){ |
| 331 | var response = $.parseJSON(res); |
| 332 | if(response.status == -1) { |
| 333 | totalAttachments = 0; |
| 334 | $(".import-folder-data").prop("disabled", false); |
| 335 | $(".other-plugins-"+selectedItem+" .import-folder-data .spinner").removeClass("active"); |
| 336 | $("#import-third-party-plugin-data").hide(); |
| 337 | $("#no-more-folder-credit").show(); |
| 338 | $("#import-folder-button").removeClass("button"); |
| 339 | $("#import-folder-button").prop("disabled", false); |
| 340 | } else if(response.status) { |
| 341 | $(".other-plugins-"+response.data.plugin+" .import-message").html(response.message).addClass("success-import"); |
| 342 | |
| 343 | if(parseInt(response.data.pages) > parseInt(response.data.current)) { |
| 344 | totalAttachments = response.data.attachments; |
| 345 | importPluginDataByPage(parseInt(response.data.current)+1); |
| 346 | } else { |
| 347 | totalAttachments = 0; |
| 348 | $(".other-plugins-"+response.data.plugin+" .import-folder-data").remove(); |
| 349 | $(".import-folder-data").prop("disabled", false); |
| 350 | } |
| 351 | } else { |
| 352 | $(".other-plugins-"+response.data.plugin+" .import-message").html(response.message).addClass("error-import"); |
| 353 | $(".other-plugins-"+response.data.plugin+" .import-folder-data").remove(); |
| 354 | $(".import-folder-data").prop("disabled", false); |
| 355 | totalAttachments = 0; |
| 356 | } |
| 357 | $("#import-folder-button").prop("disabled", false); |
| 358 | $("#import-plugin-data").hide(); |
| 359 | } |
| 360 | }); |
| 361 | } |
| 362 | |
| 363 | function removePluginData() { |
| 364 | $(".other-plugins-"+selectedItem+" .remove-folder-data .spinner").addClass("active"); |
| 365 | $.ajax({ |
| 366 | url: "<?php echo esc_url(admin_url("admin-ajax.php")) ?>", |
| 367 | data: { |
| 368 | 'plugin': $(".other-plugins-"+selectedItem).data("plugin"), |
| 369 | 'nonce': $(".other-plugins-"+selectedItem).data("nonce"), |
| 370 | 'action': 'wcp_remove_plugin_folders_data' |
| 371 | }, |
| 372 | type: 'post', |
| 373 | success: function(res){ |
| 374 | var response = $.parseJSON(res); |
| 375 | $("#remove-plugin-data").hide(); |
| 376 | if(response.status) { |
| 377 | $(".other-plugins-"+response.data.plugin).remove(); |
| 378 | } else { |
| 379 | $(".other-plugins-"+response.data.plugin+" .import-message").html(response.message).addClass("error-import"); |
| 380 | $(".other-plugins-"+response.data.plugin+" .remove-folder-data .spinner").removeClass("active"); |
| 381 | } |
| 382 | |
| 383 | if($("#import-folders-popup .plugin-import-table tr").length == 0) { |
| 384 | $("#import-folders-popup").hide(); |
| 385 | $(".has-other-plugins").remove(); |
| 386 | $(".no-more-plugins").addClass("active"); |
| 387 | } |
| 388 | } |
| 389 | }); |
| 390 | } |
| 391 | |
| 392 | function setCSSProperties() { |
| 393 | if(jQuery("#new_folder_color").length && $("#new_folder_color").val() != "") { |
| 394 | $("#add-new-folder").css("border-color", $("#new_folder_color").val()); |
| 395 | $("#add-new-folder").css("background-color", $("#new_folder_color").val()); |
| 396 | } else if ($("input[name='customize_folders[new_folder_color]']:checked").length) { |
| 397 | $("#add-new-folder").css("border-color", $("input[name='customize_folders[new_folder_color]']:checked").val()); |
| 398 | $("#add-new-folder").css("background-color", $("input[name='customize_folders[new_folder_color]']:checked").val()); |
| 399 | } |
| 400 | |
| 401 | if($("#bulk_organize_button_color").length && $("#bulk_organize_button_color").val() != "") { |
| 402 | $(".organize-button").css("border-color", $("#bulk_organize_button_color").val()); |
| 403 | $(".organize-button").css("background-color", $("#bulk_organize_button_color").val()); |
| 404 | $(".organize-button").css("color", "#ffffff"); |
| 405 | } else if ($("input[name='customize_folders[bulk_organize_button_color]']:checked").length) { |
| 406 | $(".organize-button").css("border-color", $("input[name='customize_folders[bulk_organize_button_color]']:checked").val()); |
| 407 | $(".organize-button").css("background-color", $("input[name='customize_folders[bulk_organize_button_color]']:checked").val()); |
| 408 | $(".organize-button").css("color", "#ffffff"); |
| 409 | } |
| 410 | |
| 411 | if($("#dropdown_color").length && $("#dropdown_color").val() != "") { |
| 412 | $(".media-select").css("border-color", $("#dropdown_color").val()); |
| 413 | $(".media-select").css("color", $("#dropdown_color").val()); |
| 414 | } else if ($("input[name='customize_folders[dropdown_color]']:checked").length) { |
| 415 | $(".media-select").css("border-color", $("input[name='customize_folders[dropdown_color]']:checked").val()); |
| 416 | $(".media-select").css("color", $("input[name='customize_folders[dropdown_color]']:checked").val()); |
| 417 | } |
| 418 | |
| 419 | if($("#folder_bg_color").length && $("#folder_bg_color").val() != "") { |
| 420 | $(".all-posts.active-item-link").css("border-color", $("#folder_bg_color").val()); |
| 421 | $(".all-posts.active-item-link").css("background-color", $("#folder_bg_color").val()); |
| 422 | $(".all-posts.active-item-link").css("color", "#ffffff"); |
| 423 | } else if ($("input[name='customize_folders[folder_bg_color]']:checked").length) { |
| 424 | $(".all-posts.active-item-link").css("border-color", $("input[name='customize_folders[folder_bg_color]']:checked").val()); |
| 425 | $(".all-posts.active-item-link").css("background-color", $("input[name='customize_folders[folder_bg_color]']:checked").val()); |
| 426 | $(".all-posts.active-item-link").css("color", "#ffffff"); |
| 427 | } |
| 428 | |
| 429 | $("#custom-css").html(""); |
| 430 | if($("#folder_font").val() != "") { |
| 431 | font_val = $("#folder_font").val(); |
| 432 | if(font_val == "System Stack") { |
| 433 | font_val = "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"; |
| 434 | } else { |
| 435 | $('head').append('<link href="https://fonts.googleapis.com/css?family=' + font_val + ':400,600,700" rel="stylesheet" type="text/css" class="chaty-google-font">'); |
| 436 | } |
| 437 | $('.preview-box').css('font-family', font_val); |
| 438 | } else { |
| 439 | $('.preview-box').css('style', ""); |
| 440 | } |
| 441 | if($("#folder_size").val() != "") { |
| 442 | $(".folder-list li a span, .header-posts a, .un-categorised-items a").css("font-size", $("#folder_size").val()+"px"); |
| 443 | } else { |
| 444 | $(".folder-list li a span, .header-posts a, .un-categorised-items a").css("font-size", "14px"); |
| 445 | } |
| 446 | |
| 447 | var folderColor = "#334155"; |
| 448 | if($("input[name='customize_folders[default_icon_color]']:checked").length) { |
| 449 | folderColor = $("input[name='customize_folders[default_icon_color]']:checked").val(); |
| 450 | } |
| 451 | $(".folder-list i").css("color", folderColor); |
| 452 | } |
| 453 | |
| 454 | $(window).on("scroll", function(){ |
| 455 | setTooltipPosition(); |
| 456 | }).on("resize", function(){ |
| 457 | setTooltipPosition(); |
| 458 | }); |
| 459 | |
| 460 | function setTooltipPosition() { |
| 461 | if($(".html-tooltip:not(.no-position)").length) { |
| 462 | $(".html-tooltip:not(.no-position)").each(function(){ |
| 463 | if($(this).offset().top - $(window).scrollTop() > 540) { |
| 464 | $(this).addClass("top").removeClass("side").removeClass("bottom"); |
| 465 | $(this).find(".tooltip-text").attr("style",""); |
| 466 | $(this).find(".tooltip-text").removeClass("hide-arrow"); |
| 467 | } else if($(window).height() - ($(this).offset().top - $(window).scrollTop()) > 460) { |
| 468 | $(this).addClass("bottom").removeClass("top").removeClass("side"); |
| 469 | $(this).find(".tooltip-text").attr("style",""); |
| 470 | $(this).find(".tooltip-text").removeClass("hide-arrow"); |
| 471 | } else { |
| 472 | $(this).addClass("side").removeClass("top").removeClass("bottom"); |
| 473 | if($(this).find(".tooltip-text").length) { |
| 474 | $(this).find(".tooltip-text").attr("style",""); |
| 475 | $(this).find(".tooltip-text").removeClass("hide-arrow"); |
| 476 | |
| 477 | if($(this).find(".tooltip-text").offset().top - $(window).scrollTop() - 50 < 0) { |
| 478 | $(this).find(".tooltip-text").css("margin-top", Math.abs($(this).find(".tooltip-text").offset().top - $(window).scrollTop() - 50)+"px"); |
| 479 | $(this).find(".tooltip-text").addClass("hide-arrow"); |
| 480 | } else { |
| 481 | $(this).find(".tooltip-text").attr("style",""); |
| 482 | if(($(this).find(".tooltip-text").offset().top + parseInt($(this).find(".tooltip-text").outerHeight()) - $(window).scrollTop() - $(window).height()) > 0) { |
| 483 | $(this).find(".tooltip-text").css("margin-top", ((-1)*Math.abs($(this).find(".tooltip-text").offset().top + parseInt($(this).find(".tooltip-text").outerHeight()) - $(window).scrollTop() - $(window).height()) - 10)+"px"); |
| 484 | $(this).find(".tooltip-text").addClass("hide-arrow"); |
| 485 | } |
| 486 | } |
| 487 | } |
| 488 | } |
| 489 | }); |
| 490 | } |
| 491 | } |
| 492 | })); |
| 493 | </script> |
| 494 | <div id="custom-css"> |
| 495 | |
| 496 | </div> |
| 497 | <?php |
| 498 | // Check website is hosted on wp.org or not |
| 499 | $wp_status = get_option("is_web_hosted_on_wp"); |
| 500 | if ($wp_status === false) { |
| 501 | $site_url = site_url("/"); |
| 502 | $domain = wp_parse_url($site_url); |
| 503 | |
| 504 | $options = [ |
| 505 | 'http' => ['ignore_errors' => true], |
| 506 | ]; |
| 507 | |
| 508 | $webLink = $domain['host']; |
| 509 | |
| 510 | $context = stream_context_create($options); |
| 511 | $response = wp_remote_get('https://public-api.wordpress.com/rest/v1/sites/'.$webLink); |
| 512 | if (!is_wp_error($response)) { |
| 513 | $data = wp_remote_retrieve_body($response); |
| 514 | $response = json_decode($data, true); |
| 515 | |
| 516 | if (!empty($response) && is_array($response)) { |
| 517 | if (isset($response['ID']) && !empty($response['ID'])) { |
| 518 | add_option("is_web_hosted_on_wp", "yes"); |
| 519 | $wp_status = "yes"; |
| 520 | } |
| 521 | } |
| 522 | } |
| 523 | }//end if |
| 524 | |
| 525 | if ($wp_status === false) { |
| 526 | if (!function_exists("get_current_user_id")) { |
| 527 | add_option("is_web_hosted_on_wp", "yes"); |
| 528 | $wp_status = "yes"; |
| 529 | } |
| 530 | } |
| 531 | |
| 532 | if ($wp_status === false) { |
| 533 | add_option("is_web_hosted_on_wp", "no"); |
| 534 | } |
| 535 | |
| 536 | $show_media_popup = false; |
| 537 | if ($wp_status == "yes") { |
| 538 | $popup_shown = get_option("is_wp_media_popup_shown"); |
| 539 | if ($popup_shown === false) { |
| 540 | $show_media_popup = true; |
| 541 | add_option("is_wp_media_popup_shown", 1); |
| 542 | } else { |
| 543 | if (!is_numeric($popup_shown)) { |
| 544 | $popup_shown = 1; |
| 545 | } |
| 546 | |
| 547 | $popup_shown++; |
| 548 | if ($popup_shown < 4) { |
| 549 | $show_media_popup = true; |
| 550 | } |
| 551 | |
| 552 | update_option("is_wp_media_popup_shown", $popup_shown); |
| 553 | } |
| 554 | } |
| 555 | |
| 556 | ?> |
| 557 | <div class="wrap"> |
| 558 | <h1><?php esc_html_e('Folders Settings', 'folders'); ?></h1> |
| 559 | <?php |
| 560 | settings_fields('folders_settings'); |
| 561 | settings_fields('default_folders'); |
| 562 | settings_fields('customize_folders'); |
| 563 | $options = get_option('folders_settings'); |
| 564 | $default_folders = get_option('default_folders'); |
| 565 | $customize_folders = get_option('customize_folders'); |
| 566 | $default_folders = (empty($default_folders) || !is_array($default_folders)) ? [] : $default_folders; |
| 567 | do_settings_sections(__FILE__); |
| 568 | delete_transient("premio_folders_without_trash"); |
| 569 | $note = filter_input(INPUT_GET, "note"); |
| 570 | ?> |
| 571 | <?php if ($note == 1) { ?> |
| 572 | <div class="folder-notification notice notice-success is-dismissible"> |
| 573 | <div class="folder-notification-title"><?php esc_html_e("Changes Saved", "folders") ?></div> |
| 574 | <div class="folder-notification-note"><?php esc_html_e("Your changes have been saved.", "folders") ?></div> |
| 575 | </div> |
| 576 | <?php } else if ($note == 2) {?> |
| 577 | <div class="folder-notification notice notice-error is-dismissible"> |
| 578 | <div class="folder-notification-title"><?php esc_html_e("Folders Deleted", "folders") ?></div> |
| 579 | <div class="folder-notification-note"><?php esc_html_e("All folders has been successfully deleted.", "folders") ?></div> |
| 580 | </div> |
| 581 | <?php } ?> |
| 582 | <?php if ($setting_page != "license-key") { ?> |
| 583 | <form action="options.php" method="post" id="setting-form"> |
| 584 | <input type="hidden" name="tab_page" value="<?php echo esc_attr($setting_page) ?>"> |
| 585 | <?php } ?> |
| 586 | <div class="folders-tabs"> |
| 587 | <div class="folder-tab-menu"> |
| 588 | <ul> |
| 589 | <li><a class="<?php echo esc_attr(($setting_page == "folder-settings") ? "active" : "") ?>" href="<?php echo esc_url($settingURL."&setting_page=folder-settings") ?>"><?php esc_html_e('Folders Settings', 'folders'); ?></a></li> |
| 590 | <li><a class="<?php echo esc_attr(($setting_page == "folders-by-user") ? "active" : "") ?>" href="<?php echo esc_url($settingURL."&setting_page=folders-by-user") ?>"><?php esc_html_e('User Restrictions', 'folders'); ?></a></li> |
| 591 | <li><a class="<?php echo esc_attr(($setting_page == "customize-folders") ? "active" : "") ?>" href="<?php echo esc_url($settingURL."&setting_page=customize-folders") ?>"><?php esc_html_e('Customize Folders', 'folders'); ?></a></li> |
| 592 | <li><a class="<?php echo esc_attr(($setting_page == "notification-settings") ? "active" : "") ?>" href="<?php echo esc_url($settingURL."&setting_page=notification-settings") ?>"><?php esc_html_e('Notifications', 'folders'); ?></a></li> |
| 593 | <li><a class="<?php echo esc_attr(($setting_page == "folders-import") ? "active" : "") ?>" href="<?php echo esc_url($settingURL."&setting_page=folders-import") ?>"><?php esc_html_e('Tools', 'folders'); ?></a></li> |
| 594 | <?php if ($isInSettings) { ?> |
| 595 | <li><a class="<?php echo esc_attr(($setting_page == "upgrade-to-pro") ? "active" : "") ?>" href="<?php echo esc_url($settingURL."&setting_page=upgrade-to-pro") ?>"><?php esc_html_e('Upgrade to Pro', 'folders'); ?></a></li> |
| 596 | <?php } ?> |
| 597 | </ul> |
| 598 | </div> |
| 599 | <div class="folder-tab-content"> |
| 600 | |
| 601 | <?php include_once dirname(dirname(__FILE__))."/admin/settings-tabs/folder-settings.php"; ?> |
| 602 | |
| 603 | <?php include_once dirname(dirname(__FILE__))."/admin/settings-tabs/customize-folders.php"; ?> |
| 604 | |
| 605 | <?php include_once dirname(dirname(__FILE__))."/admin/settings-tabs/folders-import.php"; ?> |
| 606 | |
| 607 | <?php include_once dirname(dirname(__FILE__))."/admin/settings-tabs/notification-settings.php"; ?> |
| 608 | |
| 609 | <div class="tab-content <?php echo esc_attr(($setting_page == "upgrade-to-pro") ? "active" : "") ?>"> |
| 610 | <?php if ($setting_page == "upgrade-to-pro") { ?> |
| 611 | <?php include_once "upgrade-table.php"; ?> |
| 612 | <?php } ?> |
| 613 | </div> |
| 614 | |
| 615 | <?php include_once dirname(dirname(__FILE__))."/admin/settings-tabs/folders-by-user.php"; ?> |
| 616 | |
| 617 | |
| 618 | </div> |
| 619 | </div> |
| 620 | <?php |
| 621 | ?> |
| 622 | <input type="hidden" name="folder_nonce" value="<?php echo esc_attr(wp_create_nonce("folder_settings")) ?>"> |
| 623 | <input type="hidden" name="folder_page" value="<?php echo filter_input(INPUT_SERVER, "REQUEST_URI") ?>"> |
| 624 | <?php if ($setting_page != "upgrade-to-pro") { ?> |
| 625 | </form> |
| 626 | <?php } ?> |
| 627 | </div> |
| 628 | |
| 629 | <div class="folder-popup-form" id="import-plugin-data"> |
| 630 | <div class="popup-form-content"> |
| 631 | <div class="popup-content"> |
| 632 | <div class="close-popup-button"> |
| 633 | <a class="" href="javascript:;"><span></span></a> |
| 634 | </div> |
| 635 | <div class="import-folder-title"></div> |
| 636 | <div class="import-folder-note">Are you sure you'd like to import $x folders from $plugin?</div> |
| 637 | <div class="folder-form-buttons"> |
| 638 | <button type="submit" class="form-submit-btn" id="import-folder-button"><?php esc_html_e("Import", 'folders'); ?></button> |
| 639 | <a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("Cancel", 'folders'); ?></a> |
| 640 | </div> |
| 641 | </div> |
| 642 | </div> |
| 643 | </div> |
| 644 | |
| 645 | <?php |
| 646 | // if($plugin['is_exists']) { ?> |
| 647 | <div class="folder-popup-form" id="import-folders-popup"> |
| 648 | <div class="popup-form-content"> |
| 649 | <div class="popup-content"> |
| 650 | <div class="close-popup-button"> |
| 651 | <a class="" href="javascript:;"><span></span></a> |
| 652 | </div> |
| 653 | <div class="import-plugin-title"><?php esc_html_e("Import data", 'folders'); ?></div> |
| 654 | <div class="plugin-import-table"> |
| 655 | <div class="import-folder-table"> |
| 656 | <table> |
| 657 | <tbody> |
| 658 | <?php foreach ($plugin_info as $slug => $plugin) { ?> |
| 659 | <?php if ($plugin['is_exists']) { ?> |
| 660 | <tr class="other-plugins-<?php echo esc_attr($slug) ?>" data-plugin="<?php echo esc_attr($slug) ?>" data-nonce="<?php echo esc_attr(wp_create_nonce("import_data_from_".$slug)) ?>" data-folders="<?php echo esc_attr($plugin['total_folders']) ?>" data-attachments="<?php echo esc_attr($plugin['total_attachments']) ?>"> |
| 661 | <th class="plugin-name"><?php echo esc_attr($plugin['name']) ?></th> |
| 662 | <td> |
| 663 | <span class="import-message"><?php printf(esc_html__("%1\$s folder%2\$s and %3\$s attachment%4\$s", "folders"), "<b>".esc_attr($plugin['total_folders'])."</b>", ($plugin['total_folders'] > 1) ? esc_html__("s") : "", "<b>".esc_attr($plugin['total_attachments'])."</b>", ($plugin['total_attachments'] > 1) ? esc_html__("s") : "") ?></span> |
| 664 | <button type="button" class="button button-primary import-folder-data in-popup"><?php esc_html_e("Import", "folders"); ?> <span class="spinner"></span></button> |
| 665 | <button type="button" class="button button-secondary remove-folder-data in-popup"><?php esc_html_e("Delete plugin data", "folders"); ?> <span class="spinner"></span></button> |
| 666 | </td> |
| 667 | </tr> |
| 668 | <?php } ?> |
| 669 | <?php } ?> |
| 670 | </tbody> |
| 671 | </table> |
| 672 | </div> |
| 673 | </div> |
| 674 | <div class="folder-form-buttons"> |
| 675 | <div class=""></div> |
| 676 | <a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("Close", 'folders'); ?></a> |
| 677 | </div> |
| 678 | </div> |
| 679 | </div> |
| 680 | </div> |
| 681 | <?php |
| 682 | // } ?> |
| 683 | |
| 684 | <div class="folder-popup-form" id="remove-plugin-data"> |
| 685 | <div class="popup-form-content"> |
| 686 | <div class="popup-content"> |
| 687 | <div class="close-popup-button"> |
| 688 | <a class="" href="javascript:;"><span></span></a> |
| 689 | </div> |
| 690 | <div class="remove-folder-title"><?php esc_html_e("Are you sure?", 'folders'); ?></div> |
| 691 | <div class="remove-folder-note"></div> |
| 692 | <div class="folder-form-buttons"> |
| 693 | <button type="submit" class="form-submit-btn delete-folder-plugin" id="remove-folder-button"><?php esc_html_e("Delete plugin data", 'folders'); ?></button> |
| 694 | <a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("Cancel", 'folders'); ?></a> |
| 695 | </div> |
| 696 | </div> |
| 697 | </div> |
| 698 | </div> |
| 699 | |
| 700 | <div class="folder-popup-form remove-folders-box" id="remove-folders-data-box"> |
| 701 | <div class="popup-form-content"> |
| 702 | <div class="popup-content"> |
| 703 | <div class="close-popup-button close-remove-folders"> |
| 704 | <a class="" href="javascript:;"><span></span></a> |
| 705 | </div> |
| 706 | <div class="remove-folder-title"><?php esc_html_e("Are you sure?", 'folders'); ?></div> |
| 707 | <div class="remove-folder-note"><?php printf(esc_html__("Folders will remove all created folders once you remove the plugin. We recommend you %1\$snot to use this feature%2\$s if you plan to use Folders in future.", 'folders'), "<b>", "</b>"); ?></div> |
| 708 | <div class="folder-form-buttons"> |
| 709 | <a href="javascript:;" class="form-cancel-btn cancel-folders"><?php esc_html_e("Cancel", 'folders'); ?></a> |
| 710 | <button type="submit" class="form-cancel-btn delete-button"><?php esc_html_e("I want to delete anyway", 'folders'); ?></button> |
| 711 | </div> |
| 712 | </div> |
| 713 | </div> |
| 714 | </div> |
| 715 | |
| 716 | <div class="folder-popup-form" id="remove-confirmation-box"> |
| 717 | <div class="popup-form-content"> |
| 718 | <div class="popup-content"> |
| 719 | <form id="remove_folders_data" autocomplete="off" > |
| 720 | <div class="close-popup-button"> |
| 721 | <a class="" href="javascript:;"><span></span></a> |
| 722 | </div> |
| 723 | <div class="remove-folder-title"></div> |
| 724 | <div class="remove-folder-note text-left"> |
| 725 | <b><?php esc_html_e("Type DELETE to confirm", 'folders'); ?></b> |
| 726 | <div class="input-box"> |
| 727 | <input autocomplete="off" type="text" id="delete-input" name="delete" > |
| 728 | </div> |
| 729 | <div class="delete-confirmation-message"></div> |
| 730 | </div> |
| 731 | <div class="folder-form-buttons"> |
| 732 | <input type="hidden" name="nonce" id="remove-folder-nonce" value="<?php echo esc_attr(wp_create_nonce("remove_folders_data")) ?>"> |
| 733 | <input type="hidden" name="action" value="remove_all_folders_data"> |
| 734 | <button disabled type="submit" class="form-submit-btn delete-button" id="remove-folders-data-button"><?php esc_html_e("Delete", 'folders'); ?></button> |
| 735 | <a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("Cancel", 'folders'); ?></a> |
| 736 | </div> |
| 737 | </form> |
| 738 | </div> |
| 739 | </div> |
| 740 | </div> |
| 741 | |
| 742 | <?php |
| 743 | if ($wp_status == "yes" && $show_media_popup) { |
| 744 | add_option("is_wp_media_popup_shown", "yes"); |
| 745 | ?> |
| 746 | <div class="folder-popup-form" id="wordpress-popup"> |
| 747 | <div class="popup-form-content"> |
| 748 | <div class="popup-content"> |
| 749 | <div class="popup-form-data"> |
| 750 | <div class="close-popup-button"> |
| 751 | <a class="" href="javascript:;"><span></span></a> |
| 752 | </div> |
| 753 | <div class="popup-folder-title"> |
| 754 | <?php esc_html_e("Seems you’re using WordPress.com", "folders") ?> |
| 755 | </div> |
| 756 | <div class="folder-form-message" style="padding: 25px 10px;" > |
| 757 | <?php esc_html_e('You need to alter a setting to make Folders compatible with WordPress.com media library.', "folders") ?> |
| 758 | </div> |
| 759 | <div class="folder-form-buttons" style="display:block;"> |
| 760 | <a class="form-submit-btn a-inline" target="_blank" href="https://premio.io/help/folders/how-to-activate-folders-for-wordpress-com-media-library/" ><?php esc_html_e("Learn how to enable Folders on media library", 'folders'); ?></a> |
| 761 | </div> |
| 762 | </div> |
| 763 | </div> |
| 764 | </div> |
| 765 | </div> |
| 766 | <?php }//end if |
| 767 | ?> |
| 768 | |
| 769 | <?php |
| 770 | $option = get_option("folder_intro_box"); |
| 771 | if (($option == "show" || get_option("folder_redirect_status") == 2) && $is_plugin_exists) { ?> |
| 772 | <div class="folder-popup-form" id="import-third-party-plugin-data" style="display: block" ?> |
| 773 | <div class="popup-form-content"> |
| 774 | <div class="popup-content"> |
| 775 | <div class="close-popup-button"> |
| 776 | <a class="" href="javascript:;"><span></span></a> |
| 777 | </div> |
| 778 | <div class="import-plugin-title"><?php esc_html_e("Import data", 'folders'); ?></div> |
| 779 | <div class="import-plugin-note"><?php esc_html_e("We've detected that you use another folders plugin. Would you like the Folders plugin to import your current folders? Keep in mind you can always do it in Folders Settings -> Import", 'folders'); ?></div> |
| 780 | <div class="plugin-import-table"> |
| 781 | <div class="import-folder-table"> |
| 782 | <table> |
| 783 | <tbody> |
| 784 | <?php foreach ($plugin_info as $slug => $plugin) { |
| 785 | if ($plugin['is_exists']) { ?> |
| 786 | <tr class="other-plugins-<?php echo esc_attr($slug) ?>" data-plugin="<?php echo esc_attr($slug) ?>" data-nonce="<?php echo esc_attr(wp_create_nonce("import_data_from_".$slug)) ?>" data-folders="<?php echo esc_attr($plugin['total_folders']) ?>" data-attachments="<?php echo esc_attr($plugin['total_attachments']) ?>"> |
| 787 | <th class="plugin-name"><?php echo esc_attr($plugin['name']) ?></th> |
| 788 | <td> |
| 789 | <button type="button" class="button button-primary import-folder-data in-popup"><?php esc_html_e("Import", "folders"); ?> <span class="spinner"></span></button> |
| 790 | <span class="import-message"><?php printf(esc_html__("%1\$s folder%2\$s and %3\$s attachment%4\$s", "folders"), "<b>".esc_attr($plugin['total_folders'])."</b>", ($plugin['total_folders'] > 1) ? esc_html__("s") : "", "<b>".esc_attr($plugin['total_attachments'])."</b>", ($plugin['total_attachments'] > 1) ? esc_html__("s") : "") ?></span> |
| 791 | </td> |
| 792 | </tr> |
| 793 | <?php } |
| 794 | } ?> |
| 795 | </tbody> |
| 796 | </table> |
| 797 | </div> |
| 798 | </div> |
| 799 | <div class="folder-form-buttons"> |
| 800 | <div class=""></div> |
| 801 | <a href="javascript:;" id="cancel-plugin-import" class="form-cancel-btn"><?php esc_html_e("Close", 'folders'); ?></a> |
| 802 | </div> |
| 803 | </div> |
| 804 | </div> |
| 805 | </div> |
| 806 | <?php |
| 807 | if ($option != "show") { |
| 808 | update_option("folder_redirect_status", 3); |
| 809 | } |
| 810 | }//end if |
| 811 | ?> |
| 812 | |
| 813 | <div class="folder-popup-form" id="no-more-folder-credit"> |
| 814 | <div class="popup-form-content"> |
| 815 | <div class="popup-content"> |
| 816 | <div class="close-popup-button"> |
| 817 | <a class="" href="javascript:;"><span></span></a> |
| 818 | </div> |
| 819 | <div class="add-update-folder-title" id="folder-limitation-message"> |
| 820 | <?php esc_html_e("You've reached the 10 folder limitation!", 'folders'); ?> |
| 821 | </div> |
| 822 | <div class="folder-form-message"> |
| 823 | <?php esc_html_e("Unlock unlimited amount of folders by upgrading to one of our pro plans.", 'folders'); ?> |
| 824 | </div> |
| 825 | <div class="folder-form-buttons"> |
| 826 | <a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("Cancel", 'folders'); ?></a> |
| 827 | <a href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" target="_blank" class="form-submit-btn"><?php esc_html_e("See Pro Plans", 'folders'); ?></a> |
| 828 | </div> |
| 829 | </div> |
| 830 | </div> |
| 831 | </div> |
| 832 | <?php require_once "help.php" ?> |
| 833 | |
| 834 | <div class="folder-popup-form" id="keyboard-shortcut"> |
| 835 | <div class="popup-form-content"> |
| 836 | <div class="popup-content"> |
| 837 | <div class="close-popup-button"> |
| 838 | <a class="" href="javascript:;"><span></span></a> |
| 839 | </div> |
| 840 | <div class="import-plugin-title"><?php esc_html_e("Keyboard shortcuts (Ctrl+K)", 'folders'); ?></div> |
| 841 | <div class="plugin-import-table"> |
| 842 | <table class="keyboard-shortcut"> |
| 843 | <tr> |
| 844 | <th><?php esc_html_e("Create New Folder", "folders") ?></th> |
| 845 | <td><span class="key-button">Shift</span><span class="plus-button">+</span><span class="key-button">N</span> </td> |
| 846 | </tr> |
| 847 | <tr> |
| 848 | <th><?php esc_html_e("Rename Folder", "folders") ?></th> |
| 849 | <td><span class="key-button">F2</span></td> |
| 850 | </tr> |
| 851 | <tr> |
| 852 | <th><?php esc_html_e("Copy Folder", "folders") ?></th> |
| 853 | <td><span class="key-button">Ctrl</span><span class="plus-button">+</span><span class="key-button">C</span> </td> |
| 854 | </tr> |
| 855 | <tr> |
| 856 | <th><?php esc_html_e("Cut Folder", "folders") ?></th> |
| 857 | <td><span class="key-button">Ctrl</span><span class="plus-button">+</span><span class="key-button">X</span> </td> |
| 858 | </tr> |
| 859 | <tr> |
| 860 | <th><?php esc_html_e("Paste Folder", "folders") ?></th> |
| 861 | <td><span class="key-button">Ctrl</span><span class="plus-button">+</span><span class="key-button">V</span> </td> |
| 862 | </tr> |
| 863 | <tr> |
| 864 | <th><?php esc_html_e("Duplicate Folder", "folders") ?></th> |
| 865 | <td><span class="key-button">Ctrl</span><span class="plus-button">+</span><span class="key-button">D</span> </td> |
| 866 | </tr> |
| 867 | <tr> |
| 868 | <th><?php esc_html_e("Delete Folder", "folders") ?></th> |
| 869 | <td><span class="key-button">Delete</span></td> |
| 870 | </tr> |
| 871 | <tr> |
| 872 | <th><?php esc_html_e("Next Folder", "folders") ?></th> |
| 873 | <td><span class="key-button"><span class="dashicons dashicons-arrow-down-alt"></span></span> </td> |
| 874 | </tr> |
| 875 | <tr> |
| 876 | <th><?php esc_html_e("Previous Folder", "folders") ?></th> |
| 877 | <td><span class="key-button"><span class="dashicons dashicons-arrow-up-alt"></span></span> </td> |
| 878 | </tr> |
| 879 | <tr> |
| 880 | <th><?php esc_html_e("Expand Folder", "folders") ?></th> |
| 881 | <td><span class="key-button"><span class="dashicons dashicons-arrow-right-alt"></span></span> </td> |
| 882 | </tr> |
| 883 | <tr> |
| 884 | <th><?php esc_html_e("Collapse Folder", "folders") ?></th> |
| 885 | <td><span class="key-button"><span class="dashicons dashicons-arrow-left-alt"></span></span> </td> |
| 886 | </tr> |
| 887 | <tr> |
| 888 | <th><?php esc_html_e("Re-order folders to upwards", "folders") ?></th> |
| 889 | <td><span class="key-button">Ctrl</span><span class="plus-button">+</span><span class="key-button"><span class="dashicons dashicons-arrow-up-alt"></span></span></td> |
| 890 | </tr> |
| 891 | <tr> |
| 892 | <th><?php esc_html_e("Re-order folders to downwards", "folders") ?></th> |
| 893 | <td><span class="key-button">Ctrl</span><span class="plus-button">+</span><span class="key-button"><span class="dashicons dashicons-arrow-down-alt"></span></span></td> |
| 894 | </tr> |
| 895 | </table> |
| 896 | </div> |
| 897 | </div> |
| 898 | </div> |
| 899 | </div> |
| 900 |