芝麻web文件管理V1.00
编辑当前文件:/home/projzpbv/public_html/wp-content/plugins/LayerSlider/assets/views/dashboard.php
'date_c', 'order' => 'DESC', 'page' => $curPage, 'limit' => $pageSize, 'drafts' => true, 'groups' => true ]; if( ! empty($_GET['filter']) && $_GET['filter'] === 'all' ) { $userFilters = true; $showAllSlider = true; $urlParamFilter = htmlentities($_GET['filter']); $filters['exclude'] = []; } if( ! empty($_GET['filter']) && $_GET['filter'] === 'hidden') { $userFilters = true; $showHiddenItems = true; $urlParamFilter = htmlentities($_GET['filter']); $filters['exclude'] = []; $filters['where'] = "flag_deleted = '1'"; } if( ! empty($_GET['filter']) && $_GET['filter'] === 'popup') { $userFilters = true; $showPopupSlider = true; $urlParamFilter = htmlentities($_GET['filter']); $filters['exclude'] = []; $filters['where'] = "flag_popup = '1'"; } if( ! empty($_GET['order']) ) { $userFilters = true; $urlParamOrder = $_GET['order']; $filters['orderby'] = htmlentities($_GET['order']); if( $_GET['order'] === 'name' ) { $filters['order'] = 'ASC'; } } if( ! empty($_GET['term']) ) { $userFilters = true; $urlParamTerm = htmlentities($_GET['term']); $filters['groups'] = false; $filters['where'] = "name LIKE '%".esc_sql($_GET['term'])."%' OR slug LIKE '%".esc_sql($_GET['term'])."%' OR id = '".esc_sql($_GET['term'])."'"; } // Find sliders $sliders = LS_Sliders::find( $filters ); //$sliders = false; // Pager $maxItem = LS_Sliders::$count; $maxPage = ceil( $maxItem / $pageSize ); $maxPage = $maxPage ? $maxPage : 1; // License & updates $code = get_option('layerslider-purchase-code', ''); $validity = LS_Config::isActivatedSite(); $channel = get_option('layerslider-release-channel', 'stable'); // License key $codeFormatted = ''; if(!empty($code)) { $start = substr($code, 0, -6); $end = substr($code, -6); $codeFormatted = preg_replace("/[a-zA-Z0-9]/", '⦁', $start) . $end; $codeFormatted = str_replace('-', ' ', $codeFormatted); } // Template store data $lsStoreData = LS_RemoteData::get('templates', [] ); $lsStoreLastViewed = get_user_meta( $userID, 'ls-store-last-viewed', true); // Update last visited date if( empty( $lsStoreLastViewed ) ) { $lsStoreLastViewed = time(); update_user_meta( $userID, 'ls-store-last-viewed', date('Y-m-d')); } $lsStoreHasUpdate = ( ! empty($lsStoreData['last_updated']) && $lsStoreLastViewed < $lsStoreData['last_updated'] ); //$lsStoreHasUpdate = true; // Notifications panel contents $bellNotifications = LS_Notifications::bellNotifications(); $inlineNotifications = LS_Notifications::inlineNotifications(); $pluginUpdates = get_plugin_updates(); $lBoxOrder = LS_RemoteData::get('license-box-order'); // Notification messages $notificationsItemCount = ! empty( $_GET['count'] ) ? (int)$_GET['count'] : 0; $notifications = [ 'updateStore' => __('LayerSlider Templates have been updated', 'LayerSlider'), 'hideSelectError' => __('Select an item to hide', 'LayerSlider'), 'hideSuccess' => sprintf( _n( '%d item has been hidden', '%d items have been hidden', $notificationsItemCount, 'LayerSlider' ), $notificationsItemCount ), 'duplicateSuccess' => sprintf( _n( '%d item has been duplicated', '%d items have been duplicated', $notificationsItemCount, 'LayerSlider' ), $notificationsItemCount ), 'duplicateSuccess' => sprintf( _n( '%d item has been duplicated', '%d items have been duplicated', $notificationsItemCount, 'LayerSlider' ), $notificationsItemCount ), 'deleteSelectError' => __('Select an item to delete', 'LayerSlider'), 'deleteSuccess' => sprintf( _n( '%d item has been deleted', '%d items have been deleted', $notificationsItemCount, 'LayerSlider' ), $notificationsItemCount ), 'groupSuccess' => sprintf( _n( '%d item has been grouped', '%d items have been grouped', $notificationsItemCount, 'LayerSlider' ), $notificationsItemCount ), 'groupSelectError' => __('Select at least 2 items to group them', 'LayerSlider'), 'mergeSelectError' => __('Select at least 2 items to merge them', 'LayerSlider'), 'mergeSuccess' => sprintf( __('%d items have been merged as new', 'LayerSlider'), $notificationsItemCount ), 'restoreSelectError' => __('Select an item to restore', 'LayerSlider'), 'restoreSuccess' => sprintf( _n( '%d item has been restored', '%d items have been restored', $notificationsItemCount, 'LayerSlider' ), $notificationsItemCount ), 'exportNotFound' => __('No items were found to export', 'LayerSlider'), 'exportSelectError' => __('Select an item to export', 'LayerSlider'), 'exportZipError' => __('The PHP ZipArchive extension is required to import .zip files', 'LayerSlider'), 'importSelectError' => __('Choose a file to import', 'LayerSlider'), 'importFailed' => __('The import file seems to be invalid or corrupted', 'LayerSlider'), 'importSuccess' => sprintf( _n( '%d item has been imported', '%d items have been imported', $notificationsItemCount, 'LayerSlider' ), $notificationsItemCount ), 'importLRPartial' => sprintf( __('Some projects couldn’t be imported. Please %sregister your license%s to import premium templates.', 'LayerSlider'), '
', '
'), 'importLSEmpty' => sprintf( __('Please %sregister your license%s to import premium templates.', 'LayerSlider'), '
', '
'), 'generalUpdated' => __('Settings saved', 'LayerSlider'), 'cacheEmpty' => __('LayerSlider caches has been emptied', 'LayerSlider'), 'googleFontsEmpty' => __('Google Fonts has been emptied', 'LayerSlider') ]; wp_localize_script('ls-dashboard', 'LS_slidersMeta', [ 'isActivatedSite' => $validity ]); wp_localize_script('ls-dashboard', 'LS_pageMeta', [ 'assetsPath' => LS_ROOT_URL, 'skinsPath' => LS_ROOT_URL.'/static/layerslider/skins/', 'dashboardNonce' => wp_create_nonce('ls-dashboard-nonce') ]); // Notify OSD if( isset( $_GET['message'] ) ) { wp_localize_script('ls-dashboard', 'LS_statusMessage', [ 'icon' => isset( $_GET['error'] ) ? 'error' : 'success', 'iconColor' => isset( $_GET['error'] ) ? '#ff2323' : '#8BC34A', 'text' => $notifications[ $_GET['message'] ], 'timeout' => 8000 ]); } // Icons wp_localize_script('ls-dashboard', 'LS_InterfaceIcons', [ 'notifications' => [ 'error' => lsGetSVGIcon('exclamation-triangle'), 'success' => lsGetSVGIcon('check'), ], 'easteregg' => [ 'check' => lsGetSVGIcon('check'), 'cat' => lsGetSVGIcon('cat-space', 'duotone'), 'heart' => lsGetSVGIcon('heart'), 'rocket' => lsGetSVGIcon('rocket-launch'), 'hourglass' => lsGetSVGIcon('hourglass-half', 'duotone'), 'ufo' => lsGetSVGIcon('ufo', 'duotone'), 'station' => lsGetSVGIcon('space-station-moon', 'duotone'), 'alien' => lsGetSVGIcon('alien-monster', 'duotone'), 'galaxy' => lsGetSVGIcon('galaxy', 'duotone') ] ]); ?>
= sprintf( __('Howdy, %s! Welcome to LayerSlider!', 'LayerSlider'), $currentUser->nickname ) ?>
= lsGetSVGIcon('th-large') ?>
= __('Projects', 'LayerSlider') ?>
= lsGetSVGIcon('newspaper') ?>
= __('News', 'LayerSlider') ?>
= lsGetSVGIcon('key') ?>
= __('License', 'LayerSlider') ?>
= lsGetSVGIcon('question') ?>
= __('Help', 'LayerSlider') ?>
= lsGetSVGIcon('bell') ?>
= lsGetSVGIcon('heart-rate') ?>
= lsGetSVGIcon('cog') ?>
= lsGetSVGIcon('ellipsis-v'); ?>
= $notification['icon'] ?> = $notification['title'] ?>
= $notification['message'] ?>
= ! empty( $button['target'] ) ? 'target="'.$button['target'].'"' : '' ?>>
= ! empty( $button['text'] ) ? $button['text'] : 'Learn More' ?>
= __('Notifications', 'LayerSlider') ?>
= lsGetSVGIcon('check') ?>
= __('Mark All as Read', 'LayerSlider') ?>
= $notification['icon'] ?>
= $notification['title'] ?>
= $notification['message'] ?>
= ! empty( $button['target'] ) ? 'target="'.$button['target'].'"' : '' ?>>
= ! empty( $button['text'] ) ? $button['text'] : 'Learn More' ?>
= human_time_diff( $notification['date'] ) ?> = __('ago', 'LayerSlider') ?>
= lsGetSVGIcon('comments-alt', 'duotone') ?>
= __('No notifications yet', 'LayerSlider') ?>
= __('Check back later for updates about new releases, features, deals, and important product information.', 'LayerSlider') ?>
= lsGetSVGIcon('cog') ?>
= __('Plugin Settings', 'LayerSlider') ?>
= lsGetSVGIcon('bullhorn') ?>
= __('Give Feedback', 'LayerSlider') ?>
= __('Help us improve LayerSlider.', 'LayerSlider') ?>
= lsGetSVGIcon('heart-rate') ?>
= __('System Status', 'LayerSlider') ?>
= __('Identify possible issues & display relevant debug information.', 'LayerSlider') ?>
= lsGetSVGIcon('paint-brush') ?>
= __('Skin Editor', 'LayerSlider') ?>
= __('Edit the CSS file of LayerSlider skins to apply custom modifications.', 'LayerSlider') ?>
= lsGetSVGIcon('palette') ?>
= __('CSS Editor', 'LayerSlider') ?>
= __('Add your own CSS code that will be applied globally on your site.', 'LayerSlider') ?>
= lsGetSVGIcon('wave-sine') ?>
= __('Transition Builder', 'LayerSlider') ?>
= __('Make new slide transitions easily with this drag & drop editor.', 'LayerSlider') ?>
= lsGetSVGIcon('question-circle') ?>
= __('Get Help', 'LayerSlider') ?>
= __('FAQs, documentation, and more.', 'LayerSlider') ?>
= lsGetSVGIcon('layer-group') ?>
= __('About LayerSlider', 'LayerSlider') ?>
= __('About the product & useful resources.') ?>
= __('Create Your First Project', 'LayerSlider') ?>
= __('You’re on your way to enrich your site with great graphics and stunning animations. To get started with LayerSlider, do any of the following:', 'LayerSlider') ?>
= lsGetSVGIcon('plus'); ?>
= __('Add New Project', 'LayerSlider') ?>
= lsGetSVGIcon('layer-group'); ?>
= __('Browse Templates', 'LayerSlider') ?>
= __('NEW', 'LayerSlider') ?>
= lsGetSVGIcon('file-import'); ?>
= __('Import Project', 'LayerSlider') ?>
= lsGetSVGIcon('award'); ?>
= __('Premium Benefits', 'LayerSlider') ?>
= __('We detected that you have some hidden projects.', 'LayerSlider') ?>
= lsGetSVGIcon('layer-group') ?> = __('Show my hidden projects', 'LayerSlider') ?>
= lsGetSVGIcon('plus') ?>
= __('Embed', 'LayerSlider') ?>
= lsGetSVGIcon('file-export') ?>
= __('Export', 'LayerSlider') ?>
= lsGetSVGIcon('clone') ?>
= __('Duplicate', 'LayerSlider') ?>
= lsGetSVGIcon('eye-slash') ?>
= __('Hide', 'LayerSlider') ?>
= lsGetSVGIcon('eye') ?>
= __('Unhide', 'LayerSlider') ?>
= lsGetSVGIcon('trash-alt') ?>
= __('Delete', 'LayerSlider') ?>
= lsGetSVGIcon('th-large') ?>
= __('Group', 'LayerSlider') ?>
= lsGetSVGIcon('images') ?>
= __('Merge As New', 'LayerSlider') ?>
= __('Cancel', 'LayerSlider') ?>
= __('Show', 'LayerSlider') ?>
= __('published items', 'LayerSlider') ?>
>= __('hidden items', 'LayerSlider') ?>
>= __('popup') ?>
>= __('all', 'LayerSlider') ?>
= __('Sort by', 'LayerSlider') ?>
>= __('name', 'LayerSlider') ?>
>= __('date created', 'LayerSlider') ?>
>= __('date modified', 'LayerSlider') ?>
>= __('date scheduled', 'LayerSlider') ?>
= __('Search', 'LayerSlider') ?>
= __('No Projects Found', 'LayerSlider') ?>
= sprintf(__('Your search did not match any projects. Make sure that your words are spelled correctly and you used the correct filters.', 'LayerSlider'), '
', '
') ?>
= __('Reset Search', 'LayerSlider') ?>
$item ) { if( ! empty( $item['draft'] ) ) { $item['data'] = $item['draft']['data']; } $class = ($item['flag_deleted'] == '1') ? 'ls-dimmed' : ''; $preview = apply_filters('ls_preview_for_slider', $item ); if( ! empty( $item['flag_group'] ) ) { $groupItems = $item['items']; if( empty( $groupItems ) ) { continue; } ?>
$groupItem ) { $groupPreview = apply_filters('ls_preview_for_slider', $groupItem ); ?>
= __('No Preview', 'LayerSlider') ?>
= lsGetSVGIcon('th-large') ?>
= apply_filters('ls_slider_title', stripslashes( $item['name'] ), 40) ?>
$item ) { if( ! empty( $item['draft'] ) ) { $item['data'] = $item['draft']['data']; } $class = ($item['flag_deleted'] == '1') ? 'ls-dimmed' : ''; $preview = apply_filters('ls_preview_for_slider', $item ); include LS_ROOT_PATH.'/templates/tmpl-slider-grid-item.php'; } } ?>
= __('Bulk Actions', 'LayerSlider') ?>
= __('Export selected', 'LayerSlider') ?>
= __('Export as HTML', 'LayerSlider') ?>
= __('Duplicate selected', 'LayerSlider') ?>
= __('Hide selected', 'LayerSlider') ?>
= __('Delete permanently', 'LayerSlider') ?>
= __('Restore selected', 'LayerSlider') ?>
= __('Create group from selected', 'LayerSlider') ?>
= __('Merge selected as new', 'LayerSlider') ?>
= __('Apply', 'LayerSlider') ?>
= sprintf(__('Show %s per page', 'LayerSlider'), '
10
25
50
75
100
') ?>
= sprintf(_n('%d project', '%d projects', $maxItem, 'LayerSlider'), $maxItem) ?>
«
‹
= sprintf(__('%1$d of %2$d', 'LayerSlider'), $curPage, $maxPage) ?>
›
»
= __('Latest News', 'LayerSlider') ?>
= __('Read More Articles', 'LayerSlider') ?>
= __('Plugin Updates', 'LayerSlider') ?>
= __('Re-Check', 'LayerSlider') ?>
= lsGetSVGIcon('sync-alt', false, ['id' => 'ls--check-for-updates']) ?>
= lsGetSVGIcon('box-open') ?>
= __('Installed Version:', 'LayerSlider') ?>
= LS_PLUGIN_VERSION ?>
= lsGetSVGIcon('cloud-download-alt') ?>
= __('Available Version: ', 'LayerSlider') ?>
= LS_RemoteData::getAvailableVersion() ?>
= __('Install Now', 'LayerSlider') ?>
= lsGetSVGIcon('directions') ?>
= __('Release Channel', 'LayerSlider') ?>
>= __('Stable', 'LayerSlider') ?>
>= __('Beta + Stable', 'LayerSlider') ?>
= sprintf(__('Couldn’t display the release log. Please check %sSystem Status%s for potential errors.', 'LayerSlider'), '
', '
' ) ?>
= LS_RemoteData::get('release-log') ?>
= __('Open Release Log', 'LayerSlider') ?>
>
s
= __('Register Your License', 'LayerSlider') ?>
= __('Registered License', 'LayerSlider') ?>
= __('Please enter your license key below.', 'LayerSlider') ?>
= __('Thank you for your purchase!', 'LayerSlider') ?>
= __('Unlock all these benefits and get the full LayerSlider experience:', 'LayerSlider') ?>
= __('You can now access all these benefits:', 'LayerSlider') ?>
= __('Automatic Updates', 'LayerSlider') ?>
= __('Always receive the latest LayerSlider version.', 'LayerSlider') ?>
= lsGetSVGIcon('lock') ?>
= lsGetSVGIcon('check') ?>
= __('Product Support', 'LayerSlider') ?>
= __('Direct help from our Support Team.', 'LayerSlider') ?>
= lsGetSVGIcon('lock') ?>
= lsGetSVGIcon('check') ?>
= __('Exclusive Features', 'LayerSlider') ?>
= __('Unlock exclusive and early-access features.', 'LayerSlider') ?>
= lsGetSVGIcon('lock') ?>
= lsGetSVGIcon('check') ?>
= __('Premium Templates', 'LayerSlider') ?>
= __('Access more templates to get started with projects.', 'LayerSlider') ?>
= lsGetSVGIcon('lock') ?>
= lsGetSVGIcon('check') ?>
= __('Register License', 'LayerSlider') ?>
= __('Update License', 'LayerSlider') ?>
= __('Deregister License', 'LayerSlider') ?>
= __('Purchase license', 'LayerSlider') ?>
', ''); } else { echo sprintf(__('If you experience any issue or need further information,
please read our %sregistration guide%s.', 'LayerSlider'), '
', '
'); } ?>
= __('Go Premium!', 'LayerSlider') ?>
= __('Premium activated!', 'LayerSlider') ?>
= __('Help & Support', 'LayerSlider') ?>
= lsGetSVGIcon('book') ?>
= __('Read the documentation', 'LayerSlider') ?>
= __('Get started with using LayerSlider.', 'LayerSlider') ?>
= lsGetSVGIcon('life-ring') ?>
= __('Browse the FAQs', 'LayerSlider') ?>
= __('Find answers for common questions.', 'LayerSlider') ?>
= lsGetSVGIcon('users') ?>
= lsGetSVGIcon('lock') ?>
= __('Direct Support', 'LayerSlider') ?>
= __('Unlock Now', 'LayerSlider') ?>
= __('Get in touch with our Support Team.', 'LayerSlider') ?>
= __('Open Help Center', 'LayerSlider') ?>
= __('Connect With LayerSlider', 'LayerSlider') ?>
= __('Follow us on Social Media and get notified about the latest product updates, sales, deals, and participate in giveaways and other programs.', 'LayerSlider') ?>
= lsGetSVGIcon('twitter', 'brands') ?>
Twitter
= lsGetSVGIcon('facebook-f', 'brands') ?>
Facebook
= lsGetSVGIcon('youtube', 'brands') ?>
YouTube
= lsGetSVGIcon('instagram', 'brands') ?>
Instagram
= __('LayerSlider Newsletter', 'LayerSlider') ?>
= lsGetSVGIcon('paper-plane') ?>
= __('Subscribe', 'LayerSlider') ?>
= lsGetSVGIcon('bullhorn') ?>
= __('Stay Updated', 'LayerSlider') ?>
= __('News about the latest features and other product info.', 'LayerSlider') ?>
= lsGetSVGIcon('heart') ?>
= __('Sneak Peek on Product Updates', 'LayerSlider') ?>
= __('Access to all the cool new features before anyone else.', 'LayerSlider') ?>
= lsGetSVGIcon('smile', 'regular') ?>
= __('Provide Feedback', 'LayerSlider') ?>
= __('Participate in various programs and help us improving LayerSlider.', 'LayerSlider') ?>