Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
@@ -0,0 +1,305 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Revolution Slider
|
||||
* @author ThemePunch <info@themepunch.com>
|
||||
* @link http://revolution.themepunch.com/
|
||||
* @copyright 2017 ThemePunch
|
||||
*/
|
||||
|
||||
if( !defined( 'ABSPATH') ) exit();
|
||||
|
||||
$operations = new RevSliderOperations();
|
||||
$arrValues = $operations->getGeneralSettingsValues();
|
||||
|
||||
$role = RevSliderBase::getVar($arrValues, 'role', 'admin');
|
||||
$includes_globally = RevSliderBase::getVar($arrValues, 'includes_globally', 'on');
|
||||
$pages_for_includes = RevSliderBase::getVar($arrValues, 'pages_for_includes', '');
|
||||
$js_to_footer = RevSliderBase::getVar($arrValues, 'js_to_footer', 'off');
|
||||
$js_defer = RevSliderBase::getVar($arrValues, 'js_defer', 'off');
|
||||
$show_dev_export = RevSliderBase::getVar($arrValues, 'show_dev_export', 'off');
|
||||
$change_font_loading = RevSliderBase::getVar($arrValues, 'change_font_loading', '');
|
||||
$enable_logs = RevSliderBase::getVar($arrValues, 'enable_logs', 'off');
|
||||
$load_all_javascript = RevSliderBase::getVar($arrValues, 'load_all_javascript', 'off');
|
||||
|
||||
$pack_page_creation = RevSliderBase::getVar($arrValues, 'pack_page_creation', 'on');
|
||||
$single_page_creation = RevSliderBase::getVar($arrValues, 'single_page_creation', 'off');
|
||||
|
||||
$stage_collapse = RevSliderBase::getVar($arrValues, "stage_collapse",'off');
|
||||
|
||||
$enable_newschannel = apply_filters('revslider_set_notifications', 'on');
|
||||
$enable_newschannel = RevSliderBase::getVar($arrValues, "enable_newschannel",$enable_newschannel);
|
||||
|
||||
$width = RevSliderBase::getVar($arrValues, 'width', 1240);
|
||||
$width_notebook = RevSliderBase::getVar($arrValues, 'width_notebook', 1024);
|
||||
$width_tablet = RevSliderBase::getVar($arrValues, 'width_tablet', 778);
|
||||
$width_mobile = RevSliderBase::getVar($arrValues, 'width_mobile', 480);
|
||||
|
||||
$force_activation_box = RevSliderBase::getVar($arrValues, 'force_activation_box', 'off');
|
||||
|
||||
$load_google_fonts = RevSliderBase::getVar($arrValues, 'load_google_fonts', 'off');
|
||||
|
||||
?>
|
||||
<div class='wrap'>
|
||||
<div class="clear_both"></div>
|
||||
<div class="title_line" style="margin-bottom:10px">
|
||||
<?php
|
||||
$icon_general = '<div class="icon32" id="icon-options-general"></div>';
|
||||
echo apply_filters( 'rev_icon_general_filter', $icon_general );
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="clear_both"></div>
|
||||
|
||||
<div id="rs-global-settings-dialog-wrap">
|
||||
<form name="form_general_settings" id="form_general_settings">
|
||||
<script type="text/javascript">
|
||||
g_settingsObj['form_general_settings'] = {};
|
||||
|
||||
jQuery(document).ready(function(){
|
||||
RevSliderSettings.createModernOnOff();
|
||||
|
||||
jQuery('.tp-moderncheckbox').each(function(){
|
||||
RevSliderSettings.onoffStatus(jQuery(this));
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("View Plugin Permission:",'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<select id="role" name="role">
|
||||
<option <?php selected($role, 'admin'); ?> value="admin"><?php _e("To Admin",'revslider'); ?></option>
|
||||
<option <?php selected($role, 'editor'); ?> value="editor"><?php _e("To Editor, Admin",'revslider'); ?></option>
|
||||
<option <?php selected($role, 'author'); ?> value="author"><?php _e("Author, Editor, Admin",'revslider'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("The role of user that can view and edit the plugin",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Include RevSlider libraries globally:",'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<input type="checkbox" id="includes_globally_1" name="includes_globally" class="tp-moderncheckbox" data-unchecked="off" <?php checked($includes_globally, "on");?>>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("ON - Add CSS and JS Files to all pages. </br>Off - CSS and JS Files will be only loaded on Pages where any rev_slider shortcode exists.",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Pages to include RevSlider libraries:", 'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<input type="text" class="regular-text" id="pages_for_includes" name="pages_for_includes" value="<?php echo $pages_for_includes; ?>">
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("Specify the page id's that the front end includes will be included in. Example: 2,3,5 also: homepage,3,4",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Insert JavaScript Into Footer:",'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<input type="checkbox" id="js_to_footer_1" name="js_to_footer" class="tp-moderncheckbox" data-unchecked="off" <?php checked($js_to_footer, 'on'); ?>>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("Putting the js to footer (instead of the head) is good for fixing some javascript conflicts.",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Defer JavaScript Loading:",'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<input type="checkbox" id="js_defer_1" name="js_defer" class="tp-moderncheckbox" data-unchecked="off" <?php checked($js_defer, 'on'); ?>>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("Defer the loading of the JavaScript libraries to maximize page loading speed.",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Load all JavaScript libraries:", 'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<input type="checkbox" id="load_all_javascript_1" name="load_all_javascript" class="tp-moderncheckbox" data-unchecked="off" <?php checked($load_all_javascript, 'on'); ?>>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("Enabling this will load all JavaScript libraries of Slider Revolution. Disabling this will let Slider Revolution load only the libraries needed for the current Sliders on page. Enabling this option can solve CDN issues.",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Enable Markup Export option:",'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<input type="checkbox" id="show_dev_export_1" name="show_dev_export" class="tp-moderncheckbox" data-unchecked="off" <?php checked($show_dev_export, 'on'); ?>>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("This will enable the option to export the Slider Markups to copy/paste it directly into websites.",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Font Loading URL:",'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<input id="change_font_loading" name="change_font_loading" type="text" class="regular-text" value="<?php echo $change_font_loading; ?>">
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("Insert something in it and it will be used instead of http://fonts.googleapis.com/css?family= (For example: http://fonts.useso.com/css?family= which will also work for chinese visitors)",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Default Settings for Advanced Responsive Grid Sizes:",'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<div>
|
||||
<?php _e('Desktop Grid Width', 'revslider'); ?>
|
||||
<input id="width" name="width" type="text" class="textbox-small" value="<?php echo $width; ?>">
|
||||
</div>
|
||||
<div>
|
||||
<?php _e('Notebook Grid Width', 'revslider'); ?>
|
||||
<input id="width_notebook" name="width_notebook" type="text" class="textbox-small" value="<?php echo $width_notebook; ?>">
|
||||
</div>
|
||||
<div>
|
||||
<?php _e('Tablet Grid Width', 'revslider'); ?>
|
||||
<input name="width_tablet" type="text" class="textbox-small" value="<?php echo $width_tablet; ?>">
|
||||
</div>
|
||||
<div>
|
||||
<?php _e('Mobile Grid Width', 'revslider'); ?>
|
||||
<input name="width_mobile" type="text" class="textbox-small" value="<?php echo $width_mobile; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("Define the default Grid Sizes for devices: Desktop, Tablet and Mobile",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Slide Stage Collapse:",'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<input type="checkbox" id="" name="stage_collapse" class="tp-moderncheckbox" data-unchecked="off" <?php checked($stage_collapse, 'on'); ?>>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("Collapse left WordPress Menu on Slide Stage automatically ",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Enable Notifications:",'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<input type="checkbox" id="" name="enable_newschannel" class="tp-moderncheckbox" data-unchecked="off" <?php checked($enable_newschannel, 'on'); ?>>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("Enable/Disable ThemePunch Notifications in the Admin Notice bar.",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Enable Logs:",'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<input type="checkbox" id="enable_logs_1"name="enable_logs" class="tp-moderncheckbox" data-unchecked="off" <?php checked($enable_logs, 'on'); ?>>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("Enable console logs for debugging.",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Enable Missing Activation Area:",'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<input type="checkbox" id="" name="force_activation_box" class="tp-moderncheckbox" data-unchecked="off" <?php checked($force_activation_box, 'on'); ?>>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("Force the Activation Area to show up if the Theme disabled it.",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Enable Blank Page Creation for Slider Packages:",'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<input type="checkbox" id="" name="pack_page_creation" class="tp-moderncheckbox" data-unchecked="off" <?php checked($pack_page_creation, 'on'); ?>>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("Enable option to automatically create a Blank Page if a Slider Pack is installed.",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Enable Blank Page Creation for Single Sliders:",'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<input type="checkbox" id="" value="on" name="single_page_creation" class="tp-moderncheckbox" data-unchecked="off" <?php checked($single_page_creation, 'on'); ?>>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("Enable option to automatically create a Blank Page if a Single Slider is installed.",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Run Slider Revolution database creation:",'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<a id="trigger_database_creation" class="button-primary revblue" original-title="" href="javascript:void(0);"><?php _e('Go!', 'revslider'); ?></a>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("Force creation of Slider Revolution database structure to fix table issues that may occur for example at the Slider creation process.",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-global-setting">
|
||||
<div class="rs-gs-tc">
|
||||
<label><?php _e("Enable Google Font Download:",'revslider'); ?></label>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<select id="load_google_fonts" name="load_google_fonts">
|
||||
<option <?php selected($load_google_fonts, 'off'); ?> value="off"><?php _e('Load from Google','revslider'); ?></option>
|
||||
<option <?php selected($load_google_fonts, 'preload'); ?> value="preload"><?php _e('Preload from Google','revslider'); ?></option>
|
||||
<option <?php selected($load_google_fonts, 'disable'); ?> value="disable"><?php _e('Disable, Load on your own','revslider'); ?></option>
|
||||
</select>
|
||||
<p><a id="trigger_font_deletion" class="button-primary revblue" original-title="" href="javascript:void(0);"><?php _e('Update Preload Fonts', 'revslider'); ?></a></p>
|
||||
</div>
|
||||
<div class="rs-gs-tc">
|
||||
<i style=""><?php _e("Set this option on how to handle Google Fonts:",'revslider'); ?></i>
|
||||
<i style=""><?php _e("- Load from Google: will include fonts from Google Server.",'revslider'); ?></i>
|
||||
<i style=""><?php _e("- Preload from Google: will download used fonts from Google Server and store them on your installation.",'revslider'); ?></i>
|
||||
<i style=""><?php _e("- Disable: No fonts will be loaded, please include them yourself.",'revslider'); ?></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<p>
|
||||
<a id="button_save_general_settings" class="button-primary revgreen" original-title=""><?php _e('Save Settings', 'revslider'); ?></a>
|
||||
</p>
|
||||
<span id="loader_general_settings" class="loader_round mleft_10" style="display: none;"></span>
|
||||
|
||||
</div>
|
||||
Whitespace-only changes.
@@ -0,0 +1,457 @@
|
||||
<?php
|
||||
if( !defined( 'ABSPATH') ) exit();
|
||||
|
||||
global $revSliderVersion;
|
||||
|
||||
$wrapperClass = "";
|
||||
if(RevSliderGlobals::$isNewVersion == false)
|
||||
$wrapperClass = " oldwp";
|
||||
|
||||
$wrapperClass = apply_filters( 'rev_overview_wrapper_class_filter', $wrapperClass );
|
||||
|
||||
$nonce = wp_create_nonce("revslider_actions");
|
||||
|
||||
$rsop = new RevSliderOperations();
|
||||
$glval = $rsop->getGeneralSettingsValues();
|
||||
?>
|
||||
|
||||
<?php
|
||||
$waitstyle = '';
|
||||
if(isset($_REQUEST['update_shop'])){
|
||||
$waitstyle = 'display:block';
|
||||
}
|
||||
|
||||
|
||||
$operations = new RevSliderOperations();
|
||||
$glob_vals = $operations->getGeneralSettingsValues();
|
||||
$pack_page_creation = RevSliderFunctions::getVal($glob_vals, "pack_page_creation", "on");
|
||||
$single_page_creation = RevSliderFunctions::getVal($glob_vals, "single_page_creation", "off");
|
||||
$tp_color_picker_presets = TPColorpicker::get_color_presets();
|
||||
?>
|
||||
|
||||
<div id="waitaminute" style="<?php echo $waitstyle; ?>">
|
||||
<div class="waitaminute-message"><i class="eg-icon-emo-coffee"></i><br><?php _e("Please Wait...", 'revslider'); ?></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var g_revNonce = "<?php echo $nonce; ?>";
|
||||
var g_uniteDirPlugin = "revslider";
|
||||
var g_urlContent = "<?php echo str_replace(array("\n", "\r", chr(10), chr(13)), array(''), content_url())."/"; ?>";
|
||||
var g_urlAjaxShowImage = "<?php echo RevSliderBase::$url_ajax_showimage; ?>";
|
||||
var g_urlAjaxActions = "<?php echo RevSliderBase::$url_ajax_actions; ?>";
|
||||
var g_revslider_url = "<?php echo RS_PLUGIN_URL; ?>";
|
||||
var g_settingsObj = {};
|
||||
var rs_pack_page_creation = <?php echo ($pack_page_creation == 'on') ? 'true' : 'false'; ?>;
|
||||
var rs_single_page_creation = <?php echo ($single_page_creation == 'on') ? 'true' : 'false'; ?>;
|
||||
var tp_color_picker_presets = jQuery.parseJSON(<?php echo RevSliderFunctions::jsonEncodeForClientSide($tp_color_picker_presets); ?>);
|
||||
|
||||
var global_grid_sizes = {
|
||||
'desktop': '<?php echo RevSliderBase::getVar($glval, 'width', 1230); ?>',
|
||||
'notebook': '<?php echo RevSliderBase::getVar($glval, 'width_notebook', 1230); ?>',
|
||||
'tablet': '<?php echo RevSliderBase::getVar($glval, 'width_tablet', 992); ?>',
|
||||
'mobile': '<?php echo RevSliderBase::getVar($glval, 'width_mobile', 480); ?>'
|
||||
};
|
||||
|
||||
var RS_DEMO = <?php echo (RS_DEMO) ? 'true' : 'false'; ?>;
|
||||
</script>
|
||||
|
||||
<div id="div_debug"></div>
|
||||
|
||||
<div class='unite_error_message' id="error_message" style="display:none;"></div>
|
||||
|
||||
<div class='unite_success_message' id="success_message" style="display:none;"></div>
|
||||
|
||||
<div id="viewWrapper" class="view_wrapper<?php echo $wrapperClass; ?>">
|
||||
<?php self::requireView($view); ?>
|
||||
</div>
|
||||
|
||||
<div id="divColorPicker" style="display:none;"></div>
|
||||
|
||||
<?php self::requireView("system/dialog-video"); ?>
|
||||
|
||||
<div class="tp-plugin-version">
|
||||
<span style="margin-right:15px">© All rights reserved, <a href="http://www.themepunch.com" target="_blank">ThemePunch</a> ver. <?php echo $revSliderVersion; ?></span>
|
||||
</div>
|
||||
<?php
|
||||
/*
|
||||
<script type="text/javascript">
|
||||
<span class="rs-shop">SHOP</span>
|
||||
jQuery(document).ready(function(){
|
||||
jQuery('.rs-shop').click(function(){
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
*/
|
||||
?>
|
||||
<div id="rs-shop-overview">
|
||||
<?php
|
||||
$shop_data = get_option('tp-shop');
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div id="rs-preview-wrapper" style="display: none;">
|
||||
<div id="rs-preview-wrapper-inner">
|
||||
<div id="rs-preview-info">
|
||||
<div class="rs-preview-toolbar">
|
||||
<a class="rs-close-preview"><i class="eg-icon-cancel"></i></a>
|
||||
</div>
|
||||
|
||||
<div data-type="desktop" class="rs-preview-device_selector_prev rs-preview-ds-desktop selected"></div>
|
||||
<div data-type="notebook" class="rs-preview-device_selector_prev rs-preview-ds-notebook"></div>
|
||||
<div data-type="tablet" class="rs-preview-device_selector_prev rs-preview-ds-tablet"></div>
|
||||
<div data-type="mobile" class="rs-preview-device_selector_prev rs-preview-ds-mobile"></div>
|
||||
|
||||
</div>
|
||||
<div class="rs-frame-preview-wrapper">
|
||||
<iframe id="rs-frame-preview" name="rs-frame-preview"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form id="rs-preview-form" name="rs-preview-form" action="<?php echo RevSliderBase::$url_ajax_actions; ?>" target="rs-frame-preview" method="post">
|
||||
<input type="hidden" id="rs-client-action" name="client_action" value="">
|
||||
<input type="hidden" id="rs-nonce" name="rs-nonce" value="<?php echo $nonce; ?>">
|
||||
|
||||
<!-- SPECIFIC FOR SLIDE PREVIEW -->
|
||||
<input type="hidden" name="data" value="" id="preview-slide-data">
|
||||
|
||||
<!-- SPECIFIC FOR SLIDER PREVIEW -->
|
||||
<input type="hidden" id="preview_sliderid" name="sliderid" value="">
|
||||
<input type="hidden" id="preview_slider_markup" name="only_markup" value="">
|
||||
</form>
|
||||
|
||||
|
||||
<div id="dialog_preview_sliders" class="dialog_preview_sliders" title="Preview Slider" style="display:none;">
|
||||
<iframe id="frame_preview_slider" name="frame_preview_slider" style="width: 100%;"></iframe>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="rs-premium-benefits-dialog" style="display: none;">
|
||||
<div class="rs-premium-benefits-dialogtitles" id="rs-wrong-purchase-code-title">
|
||||
<span class="oppps-icon"></span>
|
||||
<span class="benefits-title-right">
|
||||
<span class="rs-premium-benefits-dialogtitle"><?php _e('Ooops... Wrong Purchase Code!', 'revslider'); ?></span>
|
||||
<span class="rs-premium-benefits-dialogsubtitle"><?php _e('Maybe just a typo? (Click <a target="_blank" href="https://revolution.themepunch.com/direct-customer-benefits/#productactivation">here</a> to find out how to locate your Slider Revolution purchase code.)', 'revslider'); ?></span>
|
||||
</span>
|
||||
</div>
|
||||
<div style="display:none" class="rs-premium-benefits-dialogtitles" id="rs-plugin-cachewarning-title">
|
||||
<span class="oppps-icon"></span>
|
||||
<span class="benefits-title-right">
|
||||
<span class="rs-premium-benefits-dialogtitle"><?php _e('Make sure to clear all caches!', 'revslider'); ?></span>
|
||||
<span class="rs-premium-benefits-dialogsubtitle"><?php _e('Here are the most common cache issues explained.', 'revslider'); ?></span>
|
||||
</span>
|
||||
</div>
|
||||
<div style="display:none" class="rs-premium-benefits-dialogtitles" id="rs-plugin-update-feedback-title">
|
||||
<span class="oppps-icon-red"></span>
|
||||
<span class="benefits-title-right">
|
||||
<span class="rs-premium-benefits-dialogtitle"><?php _e('Plugin Activation Required'); ?></span>
|
||||
<span class="rs-premium-benefits-dialogsubtitle"><?php _e('In order to download the <a target="_blank" href="http://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380#item-description__update-history">latest update</a> instantly', 'revslider'); ?></span>
|
||||
</span>
|
||||
</div>
|
||||
<div style="display:none" class="rs-premium-benefits-dialogtitles" id="rs-plugin-object-library-feedback-title">
|
||||
<span class="oppps-icon"></span>
|
||||
<span class="benefits-title-right">
|
||||
<span class="rs-premium-benefits-dialogtitle"><?php _e('Plugin Activation Required'); ?></span>
|
||||
<span class="rs-premium-benefits-dialogsubtitle"><?php _e('In order to download from the <a target="_blank" href="https://revolution.themepunch.com/object-library/">Object Library</a> instantly', 'revslider'); ?></span>
|
||||
</span>
|
||||
</div>
|
||||
<div style="display:none" class="rs-premium-benefits-dialogtitles" id="rs-plugin-download-template-feedback-title">
|
||||
<span class="oppps-icon"></span>
|
||||
<span class="benefits-title-right">
|
||||
<span class="rs-premium-benefits-dialogtitle"><?php _e('Plugin Activation Required'); ?></span>
|
||||
<span class="rs-premium-benefits-dialogsubtitle"><?php _e('In order to gain instant access to the entire <a target="_blank" href="https://revolution.themepunch.com/examples/">Template Library</a>', 'revslider'); ?></span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div style="display:none" class="rs-premium-benefits-dialogtitles" id="rs-library-license-info-dialogtitle">
|
||||
<span class="oppps-icon"></span>
|
||||
<span class="benefits-title-right">
|
||||
<span class="rs-premium-benefits-dialogtitle"><?php _e('Object Library License Information'); ?></span>
|
||||
<span class="rs-premium-benefits-dialogsubtitle"><?php _e('What you need to know for using Slider Revolution elements in your projects', 'revslider'); ?></span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div id="basic_premium_benefits_block">
|
||||
<div class="rs-premium-benefits-block rspb-withborder">
|
||||
<h3><i class="big_present"></i><?php _e('If you purchased a theme that bundled Slider Revolution', 'revslider'); ?></h3>
|
||||
<ul>
|
||||
<li><?php _e('No activation needed to use to use / create sliders with Slider Revolution', 'revslider'); ?></li>
|
||||
<li><?php _e('Update manually through your theme', 'revslider'); ?></li>
|
||||
<li><?php _e('Access our <a target="_blank" class="rspb_darklink" href="https://www.themepunch.com/support-center/#support">FAQ database</a> and <a target="_blank" class="rspb_darklink" href="https://www.youtube.com/playlist?list=PLSCdqDWVMJPPDcH_57CNZvLckoB8cimJF">video tutorials</a> for help', 'revslider'); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="rs-premium-benefits-block">
|
||||
<h3><i class="big_diamond"></i><?php _e('Activate Slider Revolution for', 'revslider'); ?> <span class="instant_access"></span> <?php _e('to ...', 'revslider'); ?></h3>
|
||||
<ul>
|
||||
<li><?php _e('<a target="_blank" href="https://revolution.themepunch.com/direct-customer-benefits/#liveupdates">Update</a> to the latest version directly from your dashboard', 'revslider'); ?></li>
|
||||
<li><?php _e('<a target="_blank" href="https://themepunch.ticksy.com/submit/">Support</a> ThemePunch ticket desk', 'revslider'); ?></li>
|
||||
<li><?php _e('<a target="_blank" href="https://revolution.themepunch.com/direct-customer-benefits/#addons">Add-Ons</a> for Slider Revolution', 'revslider'); ?></li>
|
||||
<li><?php _e('<a target="_blank" href="https://revolution.themepunch.com/examples/">Library</a> with tons of free premium slider templates', 'revslider'); ?></li>
|
||||
<li><?php _e('<a target="_blank" href="https://revolution.themepunch.com/direct-customer-benefits/#objectlibrary">Object Library</a> with tons of images ready to be used', 'revslider'); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a target="_blank" class="get_purchase_code" href="http://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380?ref=themepunch&license=regular&open_purchase_for_item_id=2751380&purchasable=source"><?php _e('GET A PURCHASE CODE', 'revslider'); ?></a>
|
||||
</div>
|
||||
|
||||
<!-- WARNING BLOCK -->
|
||||
<div id="cachewarning_block" style="display:none">
|
||||
<div class="rs-premium-benefits-block">
|
||||
<h3><i class="big_light"></i><?php _e('Click on the following to learn how to fix issues', 'revslider'); ?></h3>
|
||||
<ul>
|
||||
<li><a target="_blank" href="https://www.themepunch.com/faq/updating-make-sure-clear-caches#hosting"><?php _e('Hosting Cache', 'revslider'); ?></a></li>
|
||||
<li><a target="_blank" href="https://www.themepunch.com/faq/updating-make-sure-clear-caches#plugins"><?php _e('Caching Plugins', 'revslider'); ?></a></li>
|
||||
<li><a target="_blank" href="https://www.themepunch.com/faq/updating-make-sure-clear-caches#cdn"><?php _e('CDNs (Content Delivery Networks)', 'revslider'); ?></a></li>
|
||||
<li><a target="_blank" href="https://www.themepunch.com/faq/updating-make-sure-clear-caches#browser"><?php _e('Browser Cache', 'revslider'); ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="rs-premium-benefits-block" style="border:none;">
|
||||
<h3><i class="big_diamond"></i><?php _e('Cache Plugins Installed on your Server', 'revslider'); ?></h3>
|
||||
<ul>
|
||||
<?php
|
||||
$cache_plugins = $rsop->get_installed_cache_plugins();
|
||||
if(!empty($cache_plugins)){
|
||||
foreach($cache_plugins as $name => $url){
|
||||
?>
|
||||
<li><a href="<?php echo esc_url($url); ?>" target="_blank"><?php echo esc_html($name); ?></a></li><?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="basic_objectlibrary_license_block">
|
||||
<div id="license_object_library_type_list_new">
|
||||
<span data-id="svg_license_content" class="license_obj_library_cats_filter">SVG</span>
|
||||
<span data-id="ico_license_content" class="license_obj_library_cats_filter">ICON</span>
|
||||
<span data-id="png_license_content" class="license_obj_library_cats_filter selected">PNG</span>
|
||||
<span data-id="jpg_license_content" class="license_obj_library_cats_filter">JPG</span>
|
||||
</div>
|
||||
|
||||
<div class="license_deep_content" id="svg_license_content" style="display:none">
|
||||
<h3><i class="pe-7s-folder"></i><?php _e('Terms of Using SVG Objects from the Object Library', 'revslider'); ?></h3>
|
||||
<ul>
|
||||
<li><?php _e('Usage only allowed within Slider Revolution Plugin', 'revslider'); ?></li>
|
||||
<li><?php _e('A variety of sizes and densities can be also downloaded from the <br> <a target="_blank" class="rspb_darklink" href="https://github.com/google/material-design-icons">git repository</a>, making it even easier for developers to customize, share,<br> and re-use outside of Slider Revolution.', 'revslider'); ?></li>
|
||||
<li><?php _e('Licenses via Apache License. Read More at <a target="_blank" class="rspb_darklink" href="https://github.com/google/material-design-icons/blob/master/LICENSE">Google Material Design Icons</a>', 'revslider'); ?></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="license_deep_content" id="ico_license_content" style="display:none">
|
||||
<h3><i class="pe-7s-folder"></i><?php _e('Terms of Using ICON Objects from the Object Library', 'revslider'); ?></h3>
|
||||
<ul>
|
||||
<li><?php _e('Please check the listed license files for details about how you can use the "FontAwesome" and "Stroke 7 Icon" font sets for commercial projects, open source projects, or really just about whatever you want.', 'revslider'); ?></li>
|
||||
<li><?php _e('Please respect all other icon fonts licenses for fonts not included directly into Slider Revolution.', 'revslider'); ?></li>
|
||||
|
||||
</ul>
|
||||
<h3><i class="fa-icon-list-alt"></i><?php _e('Further License Informations', 'revslider'); ?></h3>
|
||||
<ul>
|
||||
<li><strong>Font Awesome 4.6.3</strong> by @davegandy - http://fontawesome.io - @fontawesome<br>
|
||||
License - <a target="_blank" href="http://fontawesome.io/license">http://fontawesome.io/license</a> (Font: SIL OFL 1.1, CSS: MIT License)</li>
|
||||
<li><strong>Stroke 7 Icon Font Set</strong> by www.pixeden.com<br>
|
||||
Get your Freebie Iconset at <a href="http://www.pixeden.com/icon-fonts/stroke-7-icon-font-set" target="_blank">http://www.pixeden.com/icon-fonts/stroke-7-icon-font-set</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="license_deep_content" id="png_license_content">
|
||||
<h3><i class="pe-7s-folder"></i><?php _e('Terms of Using PNG Objects from the Object Library', 'revslider'); ?></h3>
|
||||
<ul>
|
||||
<li><?php _e('Usage only allowed within Slider Revolution Plugin', 'revslider'); ?></li>
|
||||
<li><?php _e('Licenses via extended license and cooperation with<br>author <a target="_blank" class="rspb_darklink" href="https://creativemarket.com/Qeaql">Qeaql</a>', 'revslider'); ?></li>
|
||||
<li><?php _e('If you need .psd files for objects, you can purchase it from the original<br>author <a target="_blank" class="rspb_darklink" href="https://creativemarket.com/Qeaql/126175-Scene-creator-Top-view">here</a>', 'revslider'); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="license_deep_content" id="jpg_license_content" style="display:none">
|
||||
<h3><i class="pe-7s-folder"></i><?php _e('Terms of Using JPG Objects from the Object Library', 'revslider'); ?></h3>
|
||||
<ul>
|
||||
<li><?php _e('The pictures are free for personal and even for commercial use.', 'revslider'); ?></li>
|
||||
<li><?php _e('You can modify, copy and distribute the photos. All without asking for permission or setting a link to the source. So, attribution is not required.', 'revslider'); ?></li>
|
||||
<li><?php _e('The only restriction is that identifiable people may not appear in a bad light or in a way that they may find offensive, unless they give their consent.', 'revslider'); ?></li>
|
||||
<li><?php _e('The CC0 license was released by the non-profit organization Creative Commons (CC). Get more information about Creative Commons images and the license on the official license page.', 'revslider'); ?></li>
|
||||
<li><?php _e('<a target="_blank" class="rspb_darklink" href="http://allthefreestock.com/">All The Freestock</a> under the License <a target="_blank" class="rspb_darklink" href="https://creativecommons.org/publicdomain/zero/1.0/">CC0 Creative Commons</a>', 'revslider'); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var show_premium_dialog = function(clicked){
|
||||
jQuery('#rs-premium-benefits-dialog').dialog({
|
||||
width:830,
|
||||
height:750,
|
||||
modal:true,
|
||||
resizable:false,
|
||||
open:function(ui) {
|
||||
var dialog = jQuery(ui.target).parent(),
|
||||
dialogtitle = dialog.find('.ui-dialog-title');
|
||||
|
||||
dialog.addClass("rs-open-premium-benefits-dialog-container");
|
||||
if (!dialogtitle.hasClass("titlechanged")) {
|
||||
dialogtitle.html("");
|
||||
dialogtitle.append(jQuery('#rs-premium-benefits-dialog .rs-premium-benefits-dialogtitles'));
|
||||
dialogtitle.addClass("titlechanged");
|
||||
}
|
||||
|
||||
//HIDE TITLE
|
||||
jQuery('#rs-library-license-info-dialogtitle, #rs-plugin-object-library-feedback-title, #rs-wrong-purchase-code-title, #rs-plugin-update-feedback-title, #rs-plugin-download-template-feedback-title').hide();
|
||||
jQuery('#rs-premium-benefits-dialog').removeClass("nomainbg")
|
||||
//HIDE CONTENT
|
||||
jQuery('#basic_objectlibrary_license_block, #basic_premium_benefits_block').hide();
|
||||
|
||||
switch (clicked) {
|
||||
case "regsiter-to-access-update-none":
|
||||
jQuery('#rs-plugin-update-feedback-title').show();
|
||||
jQuery('#basic_premium_benefits_block').show();
|
||||
break;
|
||||
case "regsiter-to-access-store-none":
|
||||
jQuery('#rs-plugin-download-template-feedback-title').show();
|
||||
jQuery('#basic_premium_benefits_block').show();
|
||||
break;
|
||||
case "register-wrong-purchase-code":
|
||||
jQuery('#rs-wrong-purchase-code-title').show();
|
||||
jQuery('#basic_premium_benefits_block').show();
|
||||
break;
|
||||
case "register-to-acess-object-library":
|
||||
jQuery('#rs-plugin-object-library-feedback-title').show();
|
||||
jQuery('#basic_premium_benefits_block').show();
|
||||
break;
|
||||
case "licence_obect_library":
|
||||
jQuery('#basic_objectlibrary_license_block').show();
|
||||
jQuery('#rs-library-license-info-dialogtitle').show();
|
||||
jQuery('#rs-premium-benefits-dialog').addClass("nomainbg");
|
||||
break;
|
||||
case "cahce-warning-dialog":
|
||||
jQuery('#rs-plugin-cachewarning-title').show();
|
||||
jQuery('#cachewarning_block').show();
|
||||
jQuery('#rs-premium-benefits-dialog').addClass("cachbg");
|
||||
jQuery('#rs-premium-benefits-dialog').height(600)
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
<?php
|
||||
$cvc = get_option('rs_cache_overlay', RevSliderGlobals::SLIDER_REVISION);
|
||||
|
||||
if(version_compare(RevSliderGlobals::SLIDER_REVISION, $cvc, '>')){
|
||||
?>
|
||||
<div id="rs-cache-info-dialog" title="">
|
||||
|
||||
|
||||
<div><?php _e('Click on the following to learn how to fix issues', 'revslider'); ?></div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function() {
|
||||
show_premium_dialog("cahce-warning-dialog");
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
$cvc = RevSliderGlobals::SLIDER_REVISION;
|
||||
}
|
||||
update_option('rs_cache_overlay', $cvc);
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
<?php
|
||||
$validated = get_option('revslider-valid', 'false');
|
||||
?>
|
||||
rs_plugin_validated = <?php echo ($validated == 'true') ? 'true' : 'false'; ?>;
|
||||
|
||||
jQuery('body').on('click','.rs-preview-device_selector_prev', function() {
|
||||
var btn = jQuery(this);
|
||||
jQuery('.rs-preview-device_selector_prev.selected').removeClass("selected");
|
||||
btn.addClass("selected");
|
||||
|
||||
var w = parseInt(global_grid_sizes[btn.data("type")],0);
|
||||
if (w>1450) w = 1450;
|
||||
jQuery('#rs-preview-wrapper-inner').css({maxWidth:w+"px"});
|
||||
|
||||
});
|
||||
|
||||
jQuery(window).resize(function() {
|
||||
var ww = jQuery(window).width();
|
||||
if (global_grid_sizes)
|
||||
jQuery.each(global_grid_sizes,function(key,val) {
|
||||
if (ww<=parseInt(val,0)) {
|
||||
jQuery('.rs-preview-device_selector_prev.selected').removeClass("selected");
|
||||
jQuery('.rs-preview-device_selector_prev[data-type="'+key+'"]').addClass("selected");
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
/* SHOW A WAIT FOR PROGRESS */
|
||||
function showWaitAMinute(obj) {
|
||||
var wm = jQuery('#waitaminute');
|
||||
|
||||
// CHANGE TEXT
|
||||
if (obj.text != undefined) {
|
||||
switch (obj.text) {
|
||||
case "progress1":
|
||||
|
||||
break;
|
||||
default:
|
||||
|
||||
wm.html('<div class="waitaminute-message"><i class="eg-icon-emo-coffee"></i><br>'+obj.text+'</div>');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (obj.delay!=undefined) {
|
||||
punchgs.TweenLite.to(wm,0.3,{autoAlpha:1,ease:punchgs.Power3.easeInOut});
|
||||
punchgs.TweenLite.set(wm,{display:"block"});
|
||||
|
||||
setTimeout(function() {
|
||||
punchgs.TweenLite.to(wm,0.3,{autoAlpha:0,ease:punchgs.Power3.easeInOut,onComplete:function() {
|
||||
punchgs.TweenLite.set(wm,{display:"block"});
|
||||
}});
|
||||
},obj.delay)
|
||||
}
|
||||
|
||||
// SHOW IT
|
||||
if (obj.fadeIn !== undefined) {
|
||||
punchgs.TweenLite.to(wm,obj.fadeIn/1000,{autoAlpha:1,ease:punchgs.Power3.easeInOut});
|
||||
punchgs.TweenLite.set(wm,{display:"block"});
|
||||
}
|
||||
|
||||
// HIDE IT
|
||||
if (obj.fadeOut !== undefined) {
|
||||
punchgs.TweenLite.to(wm,obj.fadeOut/1000,{autoAlpha:0,ease:punchgs.Power3.easeInOut,onComplete:function() {
|
||||
punchgs.TweenLite.set(wm,{display:"block"});
|
||||
}});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
jQuery(document).ready(function(){
|
||||
jQuery('#licence_obect_library, #regsiter-to-access-update-none, #regsiter-to-access-store-none, #register-wrong-purchase-code').click(function(){
|
||||
var clicked = jQuery(this).attr('id');
|
||||
show_premium_dialog(clicked);
|
||||
});
|
||||
|
||||
jQuery('.license_obj_library_cats_filter').click(function() {
|
||||
var t = jQuery(this);
|
||||
jQuery('.license_obj_library_cats_filter').removeClass("selected");
|
||||
t.addClass("selected");
|
||||
jQuery('.license_deep_content').hide();
|
||||
jQuery("#"+t.data('id')).show();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,170 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Provide a admin area view for the plugin
|
||||
*
|
||||
* This file is used to markup the admin-facing aspects of the plugin.
|
||||
*
|
||||
* @link http://www.themepunch.com
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @package Rev_addon_gal
|
||||
* @subpackage Rev_addon_gal/admin/partials
|
||||
*/
|
||||
?>
|
||||
|
||||
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
|
||||
<div id="viewWrapper" class="view_wrapper">
|
||||
<div class='wrap'>
|
||||
<div class="clear_both"></div>
|
||||
<div class="title_line" style="margin-bottom:10px">
|
||||
<?php
|
||||
$icon_general = '<div class="icon32" id="icon-options-general"></div>';
|
||||
echo apply_filters( 'rev_icon_general_filter', $icon_general );
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="title_line sub_title">
|
||||
<div id="icon-options-configure" class="icon32"></div>
|
||||
<span><?php _e("Install & Configure Add-ons", 'revslider'); ?><a href="?page=rev_addon&checkforupdates=true" class="rs-reload-shop"><i class="eg-icon-arrows-ccw"></i><?php _e("Check for new Add-ons", 'revslider'); ?></a></span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="clear_both"></div>
|
||||
|
||||
<div style="width:100%;height:40px"></div>
|
||||
<span id="ajax_rev_slider_addon_nonce" class="hidden"><?php echo wp_create_nonce( 'ajax_rev_slider_addon_nonce' ) ?></span>
|
||||
<div class="rs-dashboard rs-dash-addons">
|
||||
<?php
|
||||
//load $addons from repository
|
||||
$addons = get_option('revslider-addons');
|
||||
|
||||
$addons = (array)$addons;
|
||||
$addons = apply_filters( 'rev_addons_filter', $addons );
|
||||
|
||||
$plugins = get_plugins();
|
||||
|
||||
foreach($addons as $addon){
|
||||
if(version_compare(RevSliderGlobals::SLIDER_REVISION, $addon->version_from, '<') || version_compare(RevSliderGlobals::SLIDER_REVISION, $addon->version_to, '>')){
|
||||
continue;
|
||||
}
|
||||
if( empty($addon->title) ) continue;
|
||||
|
||||
$rs_dash_background_style = !empty($addon->background) ? 'style="background-image: url('.$addon->background.');"' : "";
|
||||
?>
|
||||
<!-- <?php echo $addon->slug; ?> WIDGET -->
|
||||
<div class="rs-dash-widget <?php echo $addon->slug; ?>" <?php echo $rs_dash_background_style; ?>>
|
||||
<div class="rs-dash-title-wrap">
|
||||
<div class="rs-dash-title"><?php echo $addon->title; ?></div>
|
||||
<?php
|
||||
//Plugin Status
|
||||
$rs_addon_not_activated = $rs_addon_activated = $rs_addon_not_installed = 'style="display:none"';
|
||||
$rev_addon_version = "";
|
||||
if (array_key_exists($addon->slug.'/'.$addon->slug.'.php', $plugins)) {
|
||||
if (is_plugin_inactive($addon->slug.'/'.$addon->slug.'.php')) {
|
||||
$rs_addon_not_activated = 'style="display:block"';
|
||||
} else {
|
||||
$rs_addon_activated = 'style="display:block"';
|
||||
}
|
||||
$rev_addon_version = $plugins[$addon->slug.'/'.$addon->slug.'.php']['Version'];
|
||||
} else {
|
||||
$rs_addon_not_installed = 'style="display:block"';
|
||||
}
|
||||
|
||||
//Check for registered slider
|
||||
$rev_addon_validated = get_option('revslider-valid', 'false');
|
||||
$rev_addon_validated = $rev_addon_validated=='true' ? true : false;
|
||||
|
||||
if($rev_addon_validated){
|
||||
?>
|
||||
<div class="rs-dash-title-button rs-status-orange" <?php echo $rs_addon_not_activated; ?> data-plugin="<?php echo $addon->slug.'/'.$addon->slug.'.php';?>" data-alternative="<i class='icon-no-problem-found'></i>Activate"><i class="icon-update-refresh"></i><?php _e("Not Active", 'revslider'); ?></div>
|
||||
<div class="rs-dash-button-gray rs-dash-deactivate-addon rs-dash-title-button" <?php echo $rs_addon_activated; ?> data-plugin="<?php echo $addon->slug.'/'.$addon->slug.'.php';?>" data-alternative="<i class='icon-update-refresh'></i>Deactivate"><i class="icon-update-refresh"></i><?php _e("Deactivate", 'revslider'); ?></div>
|
||||
<div class=" rs-dash-title-button rs-status-green" <?php echo $rs_addon_activated; ?> data-plugin="<?php echo $addon->slug.'/'.$addon->slug.'.php';?>" data-alternative="<i class='icon-update-refresh'></i>Deactivate"><i class="icon-no-problem-found"></i><?php _e("Active", 'revslider'); ?></div>
|
||||
<div class=" rs-dash-title-button rs-status-red" <?php echo $rs_addon_not_installed; ?> data-alternative="<i class='icon-update-refresh'></i>Install" data-plugin="<?php echo $addon->slug;?>"><i class="icon-not-registered"></i><?php _e("Not Installed", 'revslider'); ?></div>
|
||||
<?php } else {
|
||||
$rev_addon_version="";
|
||||
$result = deactivate_plugins( $addon->slug.'/'.$addon->slug.'.php' );
|
||||
?>
|
||||
<div class="rs-dash-title-button rs-status-red" style="display:block"><i class="icon-not-registered"></i><?php _e("Add-on locked", 'revslider'); ?></div>
|
||||
<?php }
|
||||
?>
|
||||
</div>
|
||||
<div class="rs-dash-widget-inner rs-dash-widget-registered">
|
||||
|
||||
<div class="rs-dash-content">
|
||||
<div class="rs-dash-strong-content"><?php echo $addon->line_1; ?></div>
|
||||
<div><?php echo $addon->line_2; ?></div>
|
||||
</div>
|
||||
<div class="rs-dash-content-space"></div>
|
||||
<?php if(!empty($rev_addon_version)){ ?>
|
||||
<div class="rs-dash-version-info">
|
||||
<div class="rs-dash-strong-content ">
|
||||
<?php _e('Installed Version','revslider'); ?>
|
||||
</div>
|
||||
<?php
|
||||
//$rev_addon_version = strtoupper($addon->slug."_VERSION");
|
||||
echo $rev_addon_version;
|
||||
$rev_addon = "";
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="rs-dash-version-info">
|
||||
<div class="rs-dash-strong-content rs-dash-version-info">
|
||||
<?php _e('Available Version','revslider'); ?>
|
||||
</div>
|
||||
<?php echo $addon->available; ?>
|
||||
</div>
|
||||
<?php if(!empty($rev_addon_version)){ ?>
|
||||
<div class="rs-dash-content-space"></div>
|
||||
<a class="rs-dash-invers-button" href="?page=rev_addon&checkforupdates=true" id="rev_check_version"><?php _e('Check for Update','revslider'); ?></a>
|
||||
<div class="rs-dash-content-space"></div>
|
||||
<?php } ?>
|
||||
<div class="rs-dash-bottom-wrapper">
|
||||
<?php if(!empty($rev_addon_version)){ ?>
|
||||
<?php
|
||||
if( version_compare($rev_addon_version, $addon->available) >= 0 ){ ?>
|
||||
<span class="rs-dash-button-gray"><?php _e('Up to date','revslider'); ?></span>
|
||||
<?php
|
||||
} else { ?>
|
||||
<a href="update-core.php?checkforupdates=true" class="rs-dash-button"><?php _e('Update Now', 'revslider'); ?></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php } else {
|
||||
if($rev_addon_validated){?>
|
||||
<span data-plugin="<?php echo $addon->slug;?>" class="rs-addon-not-installed rs-dash-button"><?php _e('Install this Add-on', 'revslider'); ?></span>
|
||||
<?php
|
||||
} else { ?>
|
||||
<a href="<?php echo admin_url( 'admin.php?page=revslider');?>" class="rs-dash-button"><?php _e('Register Slider Revolution', 'revslider'); ?></a>
|
||||
<?php
|
||||
}
|
||||
} ?>
|
||||
|
||||
<?php if(!empty($addon->button) && $rev_addon_validated && !empty($rev_addon_version) ){ // && !empty($rev_addon_code)
|
||||
if($rs_addon_activated=='style="display:block"'){
|
||||
?>
|
||||
<span <?php echo $rs_addon_activated=='style="display:none"' ? $rs_addon_activated : ''; ?> href="javascript:void(0)" class="rs-dash-button rs-dash-action-button rs-dash-margin-left-10" id="rs-dash-addons-slide-out-trigger_<?php echo $addon->slug; ?>"><?php echo $addon->button; ?></span>
|
||||
<?php } else {?>
|
||||
<span data-plugin="<?php echo $addon->slug.'/'.$addon->slug.'.php';?>" class="rs-addon-not-activated rs-dash-button rs-dash-action-button rs-dash-margin-left-10" id="rs-dash-addons-slide-out-trigger_<?php echo $addon->slug; ?>"><?php _e('Activate Plugin','revslider'); ?></span>
|
||||
<?php }
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- END OF <?php echo $addon->slug; ?> WIDGET -->
|
||||
<?php
|
||||
} // end foreach
|
||||
?>
|
||||
|
||||
<div class="tp-clearfix"></div>
|
||||
<!--/div>
|
||||
</div>
|
||||
</div-->
|
||||
<!-- SOURCE SLIDE OUT SETTINGS -->
|
||||
<?php apply_filters( 'rev_addon_dash_slideouts',''); ?>
|
||||
<!--End Add-On Area-->
|
||||
</div> </div>
|
||||
<div id="waitaminute">
|
||||
<div class="waitaminute-message"><i class="eg-icon-emo-coffee"></i><br><?php _e("Please Wait...", 'revslider'); ?></div>
|
||||
</div>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
if( !defined( 'ABSPATH') ) exit();
|
||||
|
||||
$operations = new RevSliderOperations();
|
||||
|
||||
$sliderID = self::getGetVar("id");
|
||||
|
||||
if(empty($sliderID))
|
||||
RevSliderFunctions::throwError("Slider ID not found");
|
||||
|
||||
$slider = new RevSlider();
|
||||
$slider->initByID($sliderID);
|
||||
$sliderParams = $slider->getParams();
|
||||
|
||||
$arrSliders = $slider->getArrSlidersShort($sliderID);
|
||||
$selectSliders = RevSliderFunctions::getHTMLSelect($arrSliders,"","id='selectSliders'",true);
|
||||
|
||||
$numSliders = count($arrSliders);
|
||||
|
||||
//set iframe parameters
|
||||
$width = $sliderParams["width"];
|
||||
$height = $sliderParams["height"];
|
||||
|
||||
$iframeWidth = $width+60;
|
||||
$iframeHeight = $height+50;
|
||||
|
||||
$iframeStyle = "width:".$iframeWidth."px;height:".$iframeHeight."px;";
|
||||
|
||||
if($slider->isSlidesFromPosts()){
|
||||
$arrSlides = $slider->getSlidesFromPosts(false);
|
||||
}elseif($slider->isSlidesFromStream()){
|
||||
$arrSlides = $slider->getSlidesFromStream(false);
|
||||
}else{
|
||||
$arrSlides = $slider->getSlides(false);
|
||||
}
|
||||
|
||||
$numSlides = count($arrSlides);
|
||||
|
||||
$linksSliderSettings = self::getViewUrl(RevSliderAdmin::VIEW_SLIDER,'id='.$sliderID);
|
||||
|
||||
//treat in case of slides from gallery
|
||||
if($slider->isSlidesFromPosts() == false){
|
||||
//removed in 5.0
|
||||
}else{ //slides from posts
|
||||
//removed in 5.1.7
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
if( !defined('ABSPATH') ) exit();
|
||||
|
||||
//get taxonomies with cats
|
||||
$postTypesWithCats = RevSliderOperations::getPostTypesWithCatsForClient();
|
||||
$jsonTaxWithCats = RevSliderFunctions::jsonEncodeForClientSide($postTypesWithCats);
|
||||
|
||||
//check existing slider data:
|
||||
$sliderID = self::getGetVar('id');
|
||||
|
||||
$arrFieldsParams = array();
|
||||
|
||||
$uslider = new RevSlider();
|
||||
|
||||
if(!empty($sliderID)){
|
||||
$slider = new RevSlider();
|
||||
$slider->initByID($sliderID);
|
||||
|
||||
//get setting fields
|
||||
$settingsFields = $slider->getSettingsFields();
|
||||
$arrFieldsMain = $settingsFields['main'];
|
||||
$arrFieldsParams = $settingsFields['params'];
|
||||
|
||||
$linksEditSlides = self::getViewUrl(RevSliderAdmin::VIEW_SLIDE,'id=new&slider='.intval($sliderID));
|
||||
|
||||
require self::getPathTemplate('edit-slider');
|
||||
}else{
|
||||
require self::getPathTemplate('create-slider');
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,788 @@
|
||||
<?php
|
||||
|
||||
if( !defined( 'ABSPATH') ) exit();
|
||||
|
||||
$orders = false;
|
||||
//order=asc&ot=name&type=reg
|
||||
if(isset($_GET['ot']) && isset($_GET['order']) && isset($_GET['type'])){
|
||||
$order = array();
|
||||
switch($_GET['ot']){
|
||||
case 'alias':
|
||||
$order['alias'] = ($_GET['order'] == 'asc') ? 'ASC' : 'DESC';
|
||||
break;
|
||||
case 'favorite':
|
||||
$order['favorite'] = ($_GET['order'] == 'asc') ? 'ASC' : 'DESC';
|
||||
break;
|
||||
case 'name':
|
||||
default:
|
||||
$order['title'] = ($_GET['order'] == 'asc') ? 'ASC' : 'DESC';
|
||||
break;
|
||||
}
|
||||
|
||||
$orders = $order;
|
||||
}
|
||||
|
||||
|
||||
$slider = new RevSlider();
|
||||
$operations = new RevSliderOperations();
|
||||
$arrSliders = $slider->getArrSliders($orders);
|
||||
$glob_vals = $operations->getGeneralSettingsValues();
|
||||
|
||||
$addNewLink = self::getViewUrl(RevSliderAdmin::VIEW_SLIDER);
|
||||
|
||||
|
||||
$fav = get_option('rev_fav_slider', array());
|
||||
if($orders == false){ //sort the favs to top
|
||||
if(!empty($fav) && !empty($arrSliders)){
|
||||
$fav_sort = array();
|
||||
foreach($arrSliders as $skey => $sort_slider){
|
||||
if(in_array($sort_slider->getID(), $fav)){
|
||||
$fav_sort[] = $arrSliders[$skey];
|
||||
unset($arrSliders[$skey]);
|
||||
}
|
||||
}
|
||||
if(!empty($fav_sort)){
|
||||
//revert order of favs
|
||||
krsort($fav_sort);
|
||||
foreach($fav_sort as $fav_arr){
|
||||
array_unshift($arrSliders, $fav_arr);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
global $revSliderAsTheme;
|
||||
|
||||
$exampleID = '"slider1"';
|
||||
if(!empty($arrSliders))
|
||||
$exampleID = '"'.$arrSliders[0]->getAlias().'"';
|
||||
|
||||
$latest_version = get_option('revslider-latest-version', RevSliderGlobals::SLIDER_REVISION);
|
||||
$stable_version = get_option('revslider-stable-version', '4.1');
|
||||
|
||||
?>
|
||||
|
||||
<div class='wrap'>
|
||||
<div class="clear_both"></div>
|
||||
<div class="title_line" style="margin-bottom:10px">
|
||||
<?php
|
||||
$icon_general = '<div class="icon32" id="icon-options-general"></div>';
|
||||
echo apply_filters( 'rev_icon_general_filter', $icon_general );
|
||||
?>
|
||||
<a href="<?php echo RevSliderGlobals::LINK_HELP_SLIDERS; ?>" class="button-secondary float_right mtop_10 mleft_10" target="_blank"><?php _e("Help",'revslider'); ?></a>
|
||||
</div>
|
||||
|
||||
<div class="clear_both"></div>
|
||||
|
||||
<div class="title_line nobgnopd" style="height:auto; min-height:50px">
|
||||
<div class="view_title">
|
||||
<?php _e("Revolution Sliders", 'revslider'); ?>
|
||||
</div>
|
||||
<div class="slider-sortandfilter">
|
||||
<span class="slider-listviews slider-lg-views" data-type="rs-listview"><i class="eg-icon-align-justify"></i></span>
|
||||
<span class="slider-gridviews slider-lg-views active" data-type="rs-gridview"><i class="eg-icon-th"></i></span>
|
||||
<span class="slider-sort-drop"><?php _e("Sort By:",'revslider'); ?></span>
|
||||
<select id="sort-sliders" name="sort-sliders" style="max-width: 105px;" class="withlabel">
|
||||
<option value="id" selected="selected"><?php _e("By ID",'revslider'); ?></option>
|
||||
<option value="name"><?php _e("By Name",'revslider'); ?></option>
|
||||
<option value="type"><?php _e("By Type",'revslider'); ?></option>
|
||||
<option value="favorit"><?php _e("By Favorit",'revslider'); ?></option>
|
||||
</select>
|
||||
|
||||
<span class="slider-filter-drop"><?php _e("Filter By:",'revslider'); ?></span>
|
||||
|
||||
<select id="filter-sliders" name="filter-sliders" style="max-width: 105px;" class="withlabel">
|
||||
<option value="all" selected="selected"><?php _e("All",'revslider'); ?></option>
|
||||
<option value="posts"><?php _e("Posts",'revslider'); ?></option>
|
||||
<option value="gallery"><?php _e("Gallery",'revslider'); ?></option>
|
||||
<option value="vimeo"><?php _e("Vimeo",'revslider'); ?></option>
|
||||
<option value="youtube"><?php _e("YouTube",'revslider'); ?></option>
|
||||
<option value="twitter"><?php _e("Twitter",'revslider'); ?></option>
|
||||
<option value="facebook"><?php _e("Facebook",'revslider'); ?></option>
|
||||
<option value="instagram"><?php _e("Instagram",'revslider'); ?></option>
|
||||
<option value="flickr"><?php _e("Flickr",'revslider'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div style="width:100%;height:1px;float:none;clear:both"></div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$no_sliders = false;
|
||||
if(empty($arrSliders)){
|
||||
?>
|
||||
<span style="display:block;margin-top:15px;margin-bottom:15px;">
|
||||
<?php _e("No Sliders Found",'revslider'); ?>
|
||||
</span>
|
||||
<?php
|
||||
$no_sliders = true;
|
||||
}
|
||||
|
||||
require self::getPathTemplate('sliders-list');
|
||||
|
||||
?>
|
||||
<!--
|
||||
THE INFO ABOUT EMBEDING OF THE SLIDER
|
||||
-->
|
||||
<div class="rs-dialog-embed-slider" title="<?php _e("Embed Slider",'revslider'); ?>" style="display: none;">
|
||||
<div class="revyellow" style="background: none repeat scroll 0% 0% #F1C40F; left:0px;top:55px;position:absolute;height:205px;padding:20px 10px;"><i style="color:#fff;font-size:25px" class="revicon-arrows-ccw"></i></div>
|
||||
<div style="margin:5px 0px; padding-left: 55px;">
|
||||
<div style="font-size:14px;margin-bottom:10px;"><strong><?php _e("Standard Embeding",'revslider'); ?></strong></div>
|
||||
<?php _e("For the",'revslider'); ?> <b><?php _e("pages or posts editor",'revslider'); ?></b> <?php _e("insert the shortcode:",'revslider'); ?> <code class="rs-example-alias-1"></code>
|
||||
<div style="width:100%;height:10px"></div>
|
||||
<?php _e("From the",'revslider'); ?> <b><?php _e("widgets panel",'revslider'); ?></b> <?php _e("drag the \"Revolution Slider\" widget to the desired sidebar",'revslider'); ?>
|
||||
<div style="width:100%;height:25px"></div>
|
||||
<div id="advanced-emeding" style="font-size:14px;margin-bottom:10px;"><strong><?php _e("Advanced Embeding",'revslider'); ?></strong><i class="eg-icon-plus"></i></div>
|
||||
<div id="advanced-accord" style="display:none; line-height:25px">
|
||||
<?php _e("From the",'revslider'); ?> <b><?php _e("theme html",'revslider'); ?></b> <?php _e("use",'revslider'); ?>: <code><?php putRevSlider( '<span class="rs-example-alias">alias</span>' ); ?></code><br>
|
||||
<span><?php _e("To add the slider only to homepage use",'revslider'); ?>: <code><?php putRevSlider('<span class="rs-example-alias"><?php echo $exampleID; ?></span>', 'homepage'); ?></code></span></br>
|
||||
<span><?php _e("To add the slider on specific pages or posts use",'revslider'); ?>: <code><?php putRevSlider('<span class="rs-example-alias"><?php echo $exampleID; ?></span>', '2,10'); ?></code></span></br>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
jQuery('#advanced-emeding').click(function() {
|
||||
jQuery('#advanced-accord').toggle(200);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<div style="width:100%;height:40px"></div>
|
||||
|
||||
<!-- DASHBOARD -->
|
||||
<div class="rs-dashboard">
|
||||
<?php
|
||||
$validated = get_option('revslider-valid', 'false');
|
||||
$temp_active = get_option('revslider-temp-active', 'false');
|
||||
$code = get_option('revslider-code', '');
|
||||
//$email = get_option('revslider-email', '');
|
||||
$latest_version = get_option('revslider-latest-version', RevSliderGlobals::SLIDER_REVISION);
|
||||
|
||||
$activewidgetclass = $validated === 'true'? "rs-status-green-wrap" : "rs-status-red-wrap";
|
||||
$activewidgetclass = $temp_active === 'true' ? "rs-status-orange-wrap" : $activewidgetclass;
|
||||
|
||||
$dashboard_array = array();
|
||||
$dashboard_required_array = array();
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
<!-- VALIDATION WIDGET -->
|
||||
<div class="rs-dash-widget" id="activation_dw">
|
||||
<div class="rs-dash-title-wrap <?php echo $activewidgetclass; ?>">
|
||||
<div class="rs-dash-title"><?php _e("Plugin Activation",'revslider'); ?></div>
|
||||
<div class="rs-dash-title-button rs-status-red"><i class="icon-not-registered"></i><?php _e("Not Activated",'revslider'); ?></div>
|
||||
<div class="rs-dash-title-button rs-status-orange"><i class="icon-no-problem-found"></i><?php _e("Temporarily Activated",'revslider'); ?></div>
|
||||
<div class="rs-dash-title-button rs-status-green"><i class="icon-no-problem-found"></i><?php _e("Plugin Activated",'revslider'); ?></div>
|
||||
</div>
|
||||
|
||||
<div class="rs-dash-widget-inner rs-dash-widget-deregistered" <?php echo ($validated !== 'true') ? '' : 'style="display: none;"'; ?>>
|
||||
<div class="rs-dash-icon rs-dash-refresh"></div>
|
||||
<div class="rs-dash-content-with-icon">
|
||||
<div class="rs-dash-strong-content"><?php _e("Live Updates",'revslider'); ?></div>
|
||||
<div><?php _e("Fresh versions directly to your admin",'revslider'); ?></div>
|
||||
</div>
|
||||
<div class="rs-dash-content-space"></div>
|
||||
<div class="rs-dash-icon rs-dash-ticket"></div>
|
||||
<div class="rs-dash-content-with-icon">
|
||||
<div class="rs-dash-strong-content"><?php _e("Ticket Support",'revslider'); ?></div>
|
||||
<div><?php _e("Direct help from our qualified support team",'revslider'); ?></div>
|
||||
</div>
|
||||
<div class="rs-dash-content-space"></div>
|
||||
<div class="rs-dash-icon rs-dash-gift"></div>
|
||||
<div class="rs-dash-content-with-icon">
|
||||
<div class="rs-dash-strong-content"><?php _e("Free Premium Sliders",'revslider'); ?></div>
|
||||
<div><?php _e("Exclusive new slider exports for our direct customers",'revslider'); ?></div>
|
||||
</div>
|
||||
|
||||
<div class="rs-dash-bottom-wrapper">
|
||||
<span id="rs-validation-activate-step-a" class="rs-dash-button"><?php _e('Register Slider Revolution','revslider'); ?></span>
|
||||
<a class="rs-dash-button" href="https://themepunch.com/purchase-code-deactivation/" target="_blank"><?php _e('Deregister Domain','revslider'); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rs-dash-widget-inner rs-dash-widget-registered" <?php echo ($validated === 'true') ? '' : 'style="display: none;position:absolute;top:60px;left:0px;"'; ?>>
|
||||
|
||||
<div class="rs-dash-icon rs-dash-credit"></div>
|
||||
<div class="rs-dash-content-with-icon">
|
||||
<div class="rs-dash-strong-content"><?php _e("Purchase Code",'revslider'); ?></div>
|
||||
<div><?php _e("You can learn how to find your purchase key <a target='_blank' href='http://www.themepunch.com/faq/where-to-find-the-purchase-code/'>here</a>",'revslider'); ?></div>
|
||||
</div>
|
||||
<div class="rs-dash-content-space"></div>
|
||||
<?php if(!RS_DEMO){ ?>
|
||||
<input type="text" name="rs-validation-token" class="rs-dashboard-input" style="width:100%" value="<?php echo $code; ?>" <?php echo ($validated === 'true') ? ' readonly="readonly"' : ''; ?> style="width: 350px;" />
|
||||
<div class="rs-dash-content-space"></div>
|
||||
<?php
|
||||
/*
|
||||
<div class="rs-dash-strong-content"><?php _e("Email Address",'revslider'); ?></div>
|
||||
<input type="text" name="rs-validation-email" class="rs-dashboard-input" style="width:100%" value="<?php echo $email; ?>" <?php echo ($validated === 'true') ? ' readonly="readonly"' : ''; ?> style="width: 350px;" />
|
||||
?>
|
||||
|
||||
<div class="rs-dash-content-space"></div>
|
||||
*/
|
||||
?>
|
||||
<?php if ($validated == 'true') {
|
||||
?>
|
||||
<div><?php _e("In order to register your purchase code on another domain, deregister <br>it first by clicking the button below.",'revslider'); ?></div>
|
||||
<?php
|
||||
} else { ?>
|
||||
<div><?php _e("Reminder ! One registration per Website. If registered elsewhere please deactivate that registration first.",'revslider'); ?></div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="rs-dash-bottom-wrapper">
|
||||
<span style="display:none" id="rs_purchase_validation" class="loader_round"><?php _e('Please Wait...', 'revslider'); ?></span>
|
||||
<a href="javascript:void(0);" <?php echo ($validated !== 'true') ? '' : 'style="display: none;"'; ?> id="rs-validation-activate" class="rs-dash-button"><?php _e('Register the code','revslider'); ?></a>
|
||||
<a href="javascript:void(0);" <?php echo ($validated === 'true') ? '' : 'style="display: none;"'; ?> id="rs-validation-deactivate" class="rs-dash-button"><?php _e('Deregister the code','revslider'); ?></a>
|
||||
|
||||
<?php
|
||||
$temp_active = get_option('revslider-temp-active', 'false');
|
||||
if($temp_active == 'true'){
|
||||
?>
|
||||
<a href="?page=revslider&checktempactivate=true" id="rs-validation-full-activate" class="rs-dash-button"><?php _e('Complete Activation','revslider'); ?></a>
|
||||
<span class="rs-dash-more-info" data-takemeback="false" data-title="<?php _e('What does \'Temporary Activated\' mean?', 'revslider');?>" data-content="<?php echo __('The Envato API was unavailable at the activation process:', 'revslider').'<div class=\'rs-dash-content-space\'></div>'.__('The Slider is temporary activated until the Envato API can be reached again by the ThemePunch servers.','revslider').'<div class=\'rs-dash-content-space\'></div>'.__('The plugin will be fully activated as soon as the Envato API is available again.','revslider').''; ?>"><span class="rs-dash-invers-button-gray rs-dash-close-panel"><?php _e('Why?', 'revslider'); ?></span></span>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
jQuery(document).ready(function() {
|
||||
jQuery('#rs-validation-activate-step-a').click(function() {
|
||||
punchgs.TweenLite.to(jQuery('.rs-dash-widget-inner.rs-dash-widget-deregistered'),0.5,{autoAlpha:1,x:"-100%",ease:punchgs.Power3.easeInOut});
|
||||
punchgs.TweenLite.fromTo(jQuery('.rs-dash-widget-inner.rs-dash-widget-registered'),0.5,{display:"block",autoAlpha:0,left:400},{autoAlpha:1,left:0,ease:punchgs.Power3.easeInOut});
|
||||
})
|
||||
});
|
||||
</script>
|
||||
</div><!-- END OF VALIDATION WIDGET -->
|
||||
<?php
|
||||
$dbc = ob_get_contents();
|
||||
ob_clean();
|
||||
ob_end_clean();
|
||||
|
||||
$dashboard_array['rs-validation'] = array('order' => 10, 'content' => $dbc);
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
<!--
|
||||
THE CURRENT AND NEXT VERSION
|
||||
-->
|
||||
<?php
|
||||
if (version_compare(RevSliderGlobals::SLIDER_REVISION, $latest_version, '<')) {
|
||||
$updateclass = 'rs-status-orange-wrap';
|
||||
} else {
|
||||
$updateclass = 'rs-status-green-wrap';
|
||||
}
|
||||
if($validated !== 'true' && version_compare(RevSliderGlobals::SLIDER_REVISION, $stable_version, '<'))
|
||||
$updateclass = 'rs-status-red-wrap';
|
||||
?>
|
||||
<div class="rs-dash-widget" id="updates_dw">
|
||||
<div class="rs-dash-title-wrap <?php echo $updateclass; ?>">
|
||||
<div class="rs-dash-title"><?php _e("Plugin Updates",'revslider'); ?></div>
|
||||
<div class="rs-dash-title-button rs-status-orange"><i class="icon-update-refresh"></i><?php _e("Update Available",'revslider'); ?></div>
|
||||
<div class="rs-dash-title-button rs-status-green"><i class="icon-no-problem-found"></i><?php _e("Plugin up to date",'revslider'); ?></div>
|
||||
<div class="rs-dash-title-button rs-status-red"><i class="icon-no-problem-found"></i><?php _e("Critical Update",'revslider'); ?></div>
|
||||
</div>
|
||||
|
||||
<div class="rs-dash-widget-inner">
|
||||
<div class="rs-dash-strong-content"><?php _e("Installed Version",'revslider'); ?></div>
|
||||
<div><?php echo RevSliderGlobals::SLIDER_REVISION; ?></div>
|
||||
<div class="rs-dash-content-space"></div>
|
||||
<div class="rs-dash-strong-content"><?php _e("Latest Available Version",'revslider'); ?></div>
|
||||
<div><?php echo $latest_version; ?></div>
|
||||
<div class="rs-dash-content-space"></div>
|
||||
<a class='rs-dash-invers-button' id="rev_check_version"><?php _e("Check for Updates",'revslider'); ?> </a>
|
||||
<?php if(!RS_DEMO){ ?>
|
||||
<div class="rs-dash-bottom-wrapper">
|
||||
<?php if ($validated === 'true')
|
||||
{
|
||||
if (version_compare(RevSliderGlobals::SLIDER_REVISION, $latest_version, '<')) {
|
||||
?>
|
||||
<a href="update-core.php?force-check=1&checkforupdates=true" id="rs-check-updates" class="rs-dash-button"><?php _e('Update Now', 'revslider'); ?></a>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<span class="rs-dash-button-gray"><?php _e('Up to date', 'revslider'); ?></span>
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
?>
|
||||
<span class="rs-dash-button" id="regsiter-to-access-update-none"><?php _e('Update', 'revslider'); ?></a>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($validated !== 'true' && version_compare(RevSliderGlobals::SLIDER_REVISION, $stable_version, '<')){
|
||||
?>
|
||||
<a href="update-core.php?force-check=1&checkforupdates=true" id="rs-check-updates" class="rs-dash-button"><?php _e('Update to Stable (Free)','revslider'); ?></a><br>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div><!-- END OF VERSION INFORMATION WIDGET -->
|
||||
<?php
|
||||
$dbc = ob_get_contents();
|
||||
ob_clean();
|
||||
ob_end_clean();
|
||||
|
||||
$dashboard_required_array['rs-version-information'] = array('order' => 20, 'content' => $dbc);
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
<!-- Requirements & Recommendations -->
|
||||
<div class="rs-dash-widget" id="system_dw">
|
||||
<?php
|
||||
$dir = wp_upload_dir();
|
||||
$mem_limit = ini_get('memory_limit');
|
||||
$mem_limit_byte = wp_convert_hr_to_bytes($mem_limit);
|
||||
$upload_max_filesize = ini_get('upload_max_filesize');
|
||||
$upload_max_filesize_byte = wp_convert_hr_to_bytes($upload_max_filesize);
|
||||
$post_max_size = ini_get('post_max_size');
|
||||
$post_max_size_byte = wp_convert_hr_to_bytes($post_max_size);
|
||||
|
||||
$writeable_boolean = wp_is_writable($dir['basedir'].'/');
|
||||
$can_connect = get_option('revslider-connection', false);
|
||||
$mem_limit_byte_boolean = $mem_limit_byte<268435456;
|
||||
$upload_max_filesize_byte_boolean = ($upload_max_filesize_byte < 33554432);
|
||||
$post_max_size_byte_boolean = ($post_max_size_byte < 33554432);
|
||||
$dash_rr_status = ($writeable_boolean==true && $can_connect==true && $mem_limit_byte_boolean==false && $upload_max_filesize_byte_boolean==false && $post_max_size_byte_boolean==false) ? "rs-status-green-wrap" : "rs-status-green-wrap";
|
||||
$img_editor_test = (wp_image_editor_supports(array('methods' => array('resize', 'save')))) ? true : false;
|
||||
|
||||
?>
|
||||
<div class="rs-dash-title-wrap <?php echo $dash_rr_status; ?>">
|
||||
<div class="rs-dash-title"><?php _e("System Requirements",'revslider'); ?></div>
|
||||
<div class="rs-dash-title-button rs-status-green"><i class="icon-no-problem-found"></i><?php _e("No Problems",'revslider'); ?></div>
|
||||
<a class="rs-status-red rs-dash-title-button requirement-link" target="_blank" href="http://www.themepunch.com/revslider-doc/requirements-and-recommendations/" ><i class="eg-icon-info"></i></a> <div class="rs-dash-title-button rs-status-green"><i class="icon-no-problem-found"></i><?php _e("No Problems",'revslider'); ?></div>
|
||||
</div>
|
||||
<div class="rs-dash-widget-inner">
|
||||
<span class="rs-dash-label"><?php _e('Uploads folder writable', 'revslider'); ?></span>
|
||||
<?php
|
||||
//check if uploads folder can be written into
|
||||
if($writeable_boolean){
|
||||
echo '<i class="revgreenicon eg-icon-ok"></i>';
|
||||
}else{
|
||||
echo '<i class="revredicon eg-icon-cancel"></i><span style="margin-left:16px" class="rs-dash-more-info" data-title="'.__('Error with File Permissions', 'revslider').'" data-content="'.__('Please set write permission (755) to your wp-content/uploads folders to make sure the Slider can save all updates and imports in the future.', 'revslider').'"><i class="eg-icon-info"></i></span>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<div class="rs-dash-content-space-small"></div>
|
||||
<span class="rs-dash-label"><?php _e('Memory Limit', 'revslider'); ?></span>
|
||||
<?php
|
||||
|
||||
|
||||
if($mem_limit_byte_boolean){
|
||||
//not good
|
||||
echo '<i style="margin-right:20px" class="revredicon eg-icon-cancel"></i>';
|
||||
echo '<span class="rs-dash-red-content">';
|
||||
} else {
|
||||
echo '<i style="margin-right:20px" class="revgreenicon eg-icon-ok"></i>';
|
||||
echo '<span class="rs-dash-strong-content">';
|
||||
}
|
||||
|
||||
echo __('Currently:', 'revslider').' '.$mem_limit;
|
||||
echo '</span>';
|
||||
if($mem_limit_byte_boolean){
|
||||
//not good
|
||||
echo '<span class="rs-dash-strong-content" style="margin-left:20px">'. __('(min:256M)', 'revslider').'</span>';
|
||||
}
|
||||
?>
|
||||
<div class="rs-dash-content-space-small"></div>
|
||||
<span class="rs-dash-label"><?php _e('Upload Max. Filesize', 'revslider'); ?></span>
|
||||
<?php
|
||||
|
||||
|
||||
if($upload_max_filesize_byte_boolean){
|
||||
//not good
|
||||
echo '<i style="margin-right:20px" class="revredicon eg-icon-cancel"></i>';
|
||||
echo '<span class="rs-dash-red-content">';
|
||||
} else {
|
||||
echo '<i style="margin-right:20px"class="revgreenicon eg-icon-ok"></i>';
|
||||
echo '<span class="rs-dash-strong-content">';
|
||||
}
|
||||
|
||||
echo __('Currently:', 'revslider').' '.$upload_max_filesize;
|
||||
echo '</span>';
|
||||
if($upload_max_filesize_byte_boolean){
|
||||
echo '<span class="rs-dash-strong-content" style="margin-left:20px">'. __('(min:32M)', 'revslider').'</span>';
|
||||
}
|
||||
?>
|
||||
<div class="rs-dash-content-space-small"></div>
|
||||
<span class="rs-dash-label"><?php _e('Max. Post Size', 'revslider'); ?></span>
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
if($post_max_size_byte_boolean){
|
||||
//not good
|
||||
echo '<i style="margin-right:20px" class="revredicon eg-icon-cancel"></i>';
|
||||
echo '<span class="rs-dash-red-content">';
|
||||
} else {
|
||||
echo '<i style="margin-right:20px"class="revgreenicon eg-icon-ok"></i>';
|
||||
echo '<span class="rs-dash-strong-content">';
|
||||
}
|
||||
|
||||
echo __('Currently:', 'revslider').' '.$post_max_size;
|
||||
echo '</span>';
|
||||
if($post_max_size_byte_boolean){
|
||||
echo '<span class="rs-dash-strong-content" style="margin-left:20px">'. __('(min:32M)', 'revslider').'</span>';
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="rs-dash-content-space-small"></div>
|
||||
<span class="rs-dash-label"><?php _e('Contact ThemePunch Server', 'revslider'); ?></span>
|
||||
<?php
|
||||
|
||||
if($can_connect){
|
||||
echo '<i class="revgreenicon eg-icon-ok"></i>';
|
||||
}else{
|
||||
echo '<i class="revgreenicon eg-icon-ok"></i>';
|
||||
}
|
||||
?>
|
||||
<a class='rs-dash-invers-button' id="rev_check_version_1" style="margin-left:16px"><?php _e("Check Now",'revslider'); ?></a>
|
||||
<?php
|
||||
if(!$can_connect){
|
||||
echo '<span class="rs-dash-more-info" data-title="'.__('Error with contacting the ThemePunch Server', 'revslider').'" data-content="'.__('Please make sure that your server can connect to updates.themepunch.tools and templates.themepunch.tools programmatically.', 'revslider').'"><i class="eg-icon-info"></i></span>';
|
||||
}
|
||||
?>
|
||||
<div class="rs-dash-content-space-small"></div>
|
||||
<span class="rs-dash-label"><?php _e('Object Library', 'revslider'); ?></span>
|
||||
<?php
|
||||
if($img_editor_test){
|
||||
echo '<i class="revgreenicon eg-icon-ok"></i>';
|
||||
}else{
|
||||
echo '<i class="revredicon eg-icon-cancel"></i>';
|
||||
echo '<span style="margin-left:16px" class="rs-dash-more-info" data-title="'.__('Error using ', 'revslider').'" data-content="'.__('Please make sure that your server can use wp_get_image_editor() by enabling the GD and/or ImageMagick libraries. Without this, the Object Library will always take the original source.', 'revslider').'"><i class="eg-icon-info"></i></span>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div><!-- END OF Requirements & Recommendations -->
|
||||
<?php
|
||||
$dbc = ob_get_contents();
|
||||
ob_clean();
|
||||
ob_end_clean();
|
||||
|
||||
$dashboard_required_array['rs-requirements'] = array('order' => 30, 'content' => $dbc);
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
<!--
|
||||
TEMPLATE WIDGET
|
||||
-->
|
||||
<div id="templates_dw" class="rs-dash-widget">
|
||||
<div class="templatestore-bg"></div>
|
||||
<div class="rs-dash-title-wrap" style="position:relative; z-index:1">
|
||||
<div class="rs-dash-title"><?php _e("Start Downloading Templates",'revslider'); ?></div>
|
||||
</div>
|
||||
|
||||
<div class="rs-dash-widget-inner">
|
||||
<?php if ($validated === 'true') {
|
||||
?>
|
||||
<div class="rs-dash-icon rs-dash-download"></div>
|
||||
<div class="rs-dash-content-with-icon">
|
||||
<div class="rs-dash-strong-content"><?php _e("Online Slider Library",'revslider'); ?></div>
|
||||
<div><?php _e("Full examples for instant usage",'revslider'); ?></div>
|
||||
</div>
|
||||
<div class="rs-dash-content-space"></div>
|
||||
<div class="rs-dash-icon rs-dash-diamond"></div>
|
||||
<div class="rs-dash-content-with-icon">
|
||||
<div class="rs-dash-strong-content"><?php _e("Get Free Premium Sliders",'revslider'); ?></div>
|
||||
<div class=""><?php _e("Activate your plugin and profit",'revslider'); ?></div>
|
||||
</div>
|
||||
<?php }else{ ?>
|
||||
<div class="rs-dash-icon rs-dash-notregistered"></div>
|
||||
<div class="rs-dash-content-with-icon" style="width:190px;margin-right:20px">
|
||||
<div class="rs-dash-strong-content rs-dash-deactivated"><?php _e("Online Slider Library",'revslider'); ?></div>
|
||||
<div class="rs-dash-deactivated"><?php _e("Full examples for instant usage",'revslider'); ?></div>
|
||||
</div>
|
||||
<span class="rs-dash-more-info" data-takemeback="false" data-title="<?php _e('How to Unlock Premium Features?', 'revslider');?>" data-content="<?php echo __('If you have purchased Slider Revolution from ThemePunch directly you can find your activation code here:', 'revslider').'<div class=\'rs-dash-content-space\'></div><a target=\'_blank\' href=\'http://revolution.themepunch.com/direct-customer-benefits/#productactivation\' class=\'rs-dash-invers-button\'>'.__('Where is my Purchase Code?','revslider').'</a><div class=\'rs-dash-content-space\'></div>'.__('Dont have a license yet? Purchase a license on CodeCanyon','revslider').'<div class=\'rs-dash-content-space\'></div><a target=\'_blank\' href=\'http://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380\' class=\'rs-dash-button-small\'>'.__('Buy Now from $19','revslider').'</a>'; ?>"><span class="rs-dash-invers-button-gray rs-dash-close-panel"><?php _e('Unlock Now', 'revslider'); ?></span></span>
|
||||
<div class="rs-dash-content-space"></div>
|
||||
<div class="rs-dash-icon rs-dash-notregistered"></div>
|
||||
<div class="rs-dash-content-with-icon" style="width:190px;margin-right:20px">
|
||||
<div class="rs-dash-strong-content rs-dash-deactivated"><?php _e("Get Free Premium Sliders",'revslider'); ?></div>
|
||||
<div class="rs-dash-deactivated"><?php _e("Activate your plugin and profit",'revslider'); ?></div>
|
||||
</div>
|
||||
<span class="rs-dash-more-info" data-takemeback="false" data-title="<?php _e('How to Unlock Premium Features?', 'revslider');?>" data-content="<?php echo __('If you have purchased Slider Revolution from ThemePunch directly you can find your activation code here:', 'revslider').'<div class=\'rs-dash-content-space\'></div><a target=\'_blank\' href=\'http://revolution.themepunch.com/direct-customer-benefits/#productactivation\' class=\'rs-dash-invers-button\'>'.__('Where is my Purchase Code?','revslider').'</a><div class=\'rs-dash-content-space\'></div>'.__('Dont have a license yet? Purchase a license on CodeCanyon','revslider').'<div class=\'rs-dash-content-space\'></div><a target=\'_blank\' href=\'http://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380\' class=\'rs-dash-button-small\'>'.__('Buy Now from $19','revslider').'</a>'; ?>"><span class="rs-dash-invers-button-gray rs-dash-close-panel"><?php _e('Unlock Now', 'revslider'); ?></span></span>
|
||||
<?php } ?>
|
||||
<div class="rs-dash-bottom-wrapper">
|
||||
<?php if ($validated === 'true') { ?>
|
||||
<a href="javascript:void(0)" class="rs-dash-button" id="button_import_template_slider_b"><?php _e('Open Template Store', 'revslider'); ?></a>
|
||||
<?php }else{ ?>
|
||||
<span class="rs-dash-button" id="regsiter-to-access-store-none" ><?php _e('Open Template Library', 'revslider'); ?></span>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- END TEMPLATE WIDGET -->
|
||||
<?php
|
||||
$dbc = ob_get_contents();
|
||||
ob_clean();
|
||||
ob_end_clean();
|
||||
|
||||
$dashboard_required_array['rs-templates'] = array('order' => 40, 'content' => $dbc);
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
<!--
|
||||
NEWSLETTER
|
||||
-->
|
||||
<div class="rs-dash-widget" id="newsletter_dw">
|
||||
<div class="rs-dash-title-wrap">
|
||||
<div class="rs-dash-title"><?php _e("ThemePunch Newsletter",'revslider'); ?></div>
|
||||
</div>
|
||||
<div class="newsletter-bg"></div>
|
||||
<div class="rs-dash-widget-inner">
|
||||
<div class="rs-dash-icon rs-dash-speaker"></div>
|
||||
<div class="rs-dash-content-with-icon">
|
||||
<div class="rs-dash-strong-content"><?php _e("Stay Updated",'revslider'); ?></div>
|
||||
<div><?php _e("Receive info on the latest product updates & products",'revslider'); ?></div>
|
||||
</div>
|
||||
<div class="rs-dash-content-space"></div>
|
||||
<div class="rs-dash-icon rs-dash-gift"></div>
|
||||
<div class="rs-dash-content-with-icon">
|
||||
<div class="rs-dash-strong-content"><?php _e("Free Goodies",'revslider'); ?></div>
|
||||
<div><?php _e("Learn about free stuff we offer on a regular basis",'revslider'); ?></div>
|
||||
</div>
|
||||
<div class="rs-dash-content-space"></div>
|
||||
<div class="rs-dash-icon rs-dash-smile"></div>
|
||||
<div class="rs-dash-content-with-icon">
|
||||
<div class="rs-dash-strong-content"><?php _e("Provide Feedback",'revslider'); ?></div>
|
||||
<div><?php _e("Participate in survey and help us improve constantly",'revslider'); ?></div>
|
||||
</div>
|
||||
|
||||
<div class="rs-dash-bottom-wrapper">
|
||||
<span class="subscribe-newsletter-wrap"><a href="javascript:void(0);" class="rs-dash-button" id="subscribe-to-newsletter"><?php _e('Subscribe', 'revslider'); ?></a></span>
|
||||
<input class="rs-dashboard-input" style="width:220px;margin-left:10px" type="text" value="" placeholder="<?php _e('Enter your E-Mail here', 'revslider'); ?>" name="rs-email" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div><!-- END OF NEWSLETTER -->
|
||||
<?php
|
||||
$dbc = ob_get_contents();
|
||||
ob_clean();
|
||||
ob_end_clean();
|
||||
|
||||
$dashboard_required_array['rs-newsletter'] = array('order' => 50, 'content' => $dbc);
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
<!--
|
||||
PRODUCT SUPPORT
|
||||
-->
|
||||
<div class="rs-dash-widget" id="support_dw">
|
||||
<div class="rs-dash-title-wrap">
|
||||
<div class="rs-dash-title"><?php _e("Product Support",'revslider'); ?></div>
|
||||
</div>
|
||||
<div class="rs-dash-widget-inner">
|
||||
|
||||
<div class="rs-dash-icon rs-dash-copy"></div>
|
||||
<div class="rs-dash-content-with-icon">
|
||||
<div class="rs-dash-strong-content"><?php _e("Online Documentation",'revslider'); ?></div>
|
||||
<div><?php _e("The best start for Slider Revolution beginners",'revslider'); ?></div>
|
||||
</div>
|
||||
<div class="rs-dash-content-space"></div>
|
||||
<div class="rs-dash-icon rs-dash-light"></div>
|
||||
<div class="rs-dash-content-with-icon">
|
||||
<div class="rs-dash-strong-content"><?php _e("Browse FAQ's",'revslider'); ?></div>
|
||||
<div><?php _e("Instant solutions for most problems",'revslider'); ?></div>
|
||||
</div>
|
||||
<div class="rs-dash-content-space"></div>
|
||||
<?php if ($validated === 'true') { ?>
|
||||
<div class="rs-dash-icon rs-dash-ticket"></div>
|
||||
<div class="rs-dash-content-with-icon">
|
||||
<div class="rs-dash-strong-content"><?php _e("Ticket Support",'revslider'); ?></div>
|
||||
<div><?php _e("Direct help from our qualified support team",'revslider'); ?></div>
|
||||
</div>
|
||||
<?php }else{ ?>
|
||||
<div class="rs-dash-icon rs-dash-notregistered"></div>
|
||||
<div class="rs-dash-content-with-icon" style="width:278px;margin-right:20px">
|
||||
<div class="rs-dash-strong-content"><?php _e("Ticket Support",'revslider'); ?></div>
|
||||
<div><?php _e("Direct help from our qualified support team",'revslider'); ?></div>
|
||||
</div>
|
||||
<span class="rs-dash-more-info" data-takemeback="false" data-title="<?php _e('How to Unlock Premium Features?', 'revslider');?>" data-content="<?php echo __('If you have purchased Slider Revolution from ThemePunch directly you can find your activation code here:', 'revslider').'<div class=\'rs-dash-content-space\'></div><a target=\'_blank\' href=\'http://revolution.themepunch.com/direct-customer-benefits/#productactivation\' class=\'rs-dash-invers-button\'>'.__('Where is my Purchase Code?','revslider').'</a><div class=\'rs-dash-content-space\'></div>'.__('Dont have a license yet? Purchase a license on CodeCanyon','revslider').'<div class=\'rs-dash-content-space\'></div><a target=\'_blank\' href=\'http://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380\' class=\'rs-dash-button-small\'>'.__('Buy Now from $19','revslider').'</a>'; ?>"><span class="rs-dash-invers-button-gray rs-dash-close-panel"><?php _e('Unlock Now', 'revslider'); ?></span></span>
|
||||
<?php } ?>
|
||||
|
||||
<div class="rs-dash-bottom-wrapper">
|
||||
<a href="http://www.themepunch.com/support-center/?rev=rsb" target="_blank" class="rs-dash-button"><?php _e('Visit Support Center', 'revslider'); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div><!-- END OF PRODUCT SUPPORT -->
|
||||
<?php
|
||||
$dbc = ob_get_contents();
|
||||
ob_clean();
|
||||
ob_end_clean();
|
||||
|
||||
$dashboard_array['rs-support'] = array('order' => 60, 'content' => $dbc);
|
||||
|
||||
$dbvariables = array(
|
||||
'validated' => $validated,
|
||||
'code' => $code,
|
||||
'current_version' => RevSliderGlobals::SLIDER_REVISION
|
||||
);
|
||||
|
||||
$dashboard_array = apply_filters('revslider_dashboard_elements', $dashboard_array, $dbvariables);
|
||||
|
||||
$dashboard_array = array_merge($dashboard_array, $dashboard_required_array);
|
||||
|
||||
|
||||
$dashboard_server = (array) get_option('revslider-dashboard', array());
|
||||
|
||||
if(!empty($dashboard_server)){
|
||||
foreach($dashboard_server as $dbk => $dbv){
|
||||
$dashboard_server[$dbk] = (array) $dbv;
|
||||
if(version_compare(RevSliderGlobals::SLIDER_REVISION, $dbv->version_from, '<') || version_compare(RevSliderGlobals::SLIDER_REVISION, $dbv->version_to, '>')){
|
||||
unset($dashboard_server[$dbk]);
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($dashboard_server)){
|
||||
$dashboard_array = array_merge($dashboard_array, $dashboard_server);
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($dashboard_array) && is_array($dashboard_array)){
|
||||
usort($dashboard_array, array('RevSliderFunctions', 'sortByOrder'));
|
||||
|
||||
foreach($dashboard_array as $dbarray){
|
||||
foreach($dbvariables as $dbhandle => $dbvalue){
|
||||
$dbarray['content'] = str_replace('{{'.$dbhandle.'}}', $dbvalue, $dbarray['content']);
|
||||
}
|
||||
echo $dbarray['content'];
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="tp-clearfix"></div>
|
||||
</div><!-- END OF RS DASHBOARD -->
|
||||
|
||||
<!-- THE UPDATE HISTORY OF SLIDER REVOLUTION -->
|
||||
<div style="width:100%;height:40px"></div>
|
||||
<div class="rs-update-history-wrapper">
|
||||
<div class="rs-dash-title-wrap">
|
||||
<div class="rs-dash-title"><?php _e("Update History",'revslider'); ?></div>
|
||||
</div>
|
||||
<div class="rs-update-history"><?php echo file_get_contents(RS_PLUGIN_PATH.'release_log.html'); ?></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Import slider dialog -->
|
||||
<div id="dialog_import_slider" title="<?php _e("Import Slider",'revslider'); ?>" class="dialog_import_slider" style="display:none">
|
||||
<form action="<?php echo RevSliderBase::$url_ajax; ?>" enctype="multipart/form-data" method="post" id="form-import-slider-local">
|
||||
<br>
|
||||
<input type="hidden" name="action" value="revslider_ajax_action">
|
||||
<input type="hidden" name="client_action" value="import_slider_slidersview">
|
||||
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce("revslider_actions"); ?>">
|
||||
<?php _e("Choose the import file",'revslider'); ?>:
|
||||
<br>
|
||||
<input type="file" size="60" name="import_file" class="input_import_slider">
|
||||
<br><br>
|
||||
<span style="font-weight: 700;"><?php _e("Note: styles templates will be updated if they exist!",'revslider'); ?></span><br><br>
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php _e("Custom Animations:",'revslider'); ?></td>
|
||||
<td><input type="radio" name="update_animations" value="true" checked="checked"> <?php _e("Overwrite",'revslider'); ?></td>
|
||||
<td><input type="radio" name="update_animations" value="false"> <?php _e("Append",'revslider'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php _e("Custom Navigations:",'revslider'); ?></td>
|
||||
<td><input type="radio" name="update_navigations" value="true" checked="checked"> <?php _e("Overwrite",'revslider'); ?></td>
|
||||
<td><input type="radio" name="update_navigations" value="false"> <?php _e("Append",'revslider'); ?></td>
|
||||
</tr>
|
||||
<!--tr>
|
||||
<td><?php _e("Static Styles:",'revslider'); ?></td>
|
||||
<td><input type="radio" name="update_static_captions" value="true"> <?php _e("Overwrite",'revslider'); ?></td>
|
||||
<td><input type="radio" name="update_static_captions" value="false"> <?php _e("Append",'revslider'); ?></td>
|
||||
<td><input type="radio" name="update_static_captions" value="none" checked="checked"> <?php _e("Ignore",'revslider'); ?></td>
|
||||
</tr-->
|
||||
<?php
|
||||
$single_page_creation = RevSliderFunctions::getVal($glob_vals, "single_page_creation", "off");
|
||||
?>
|
||||
<tr style="<?php echo ($single_page_creation == 'on') ? '' : 'display: none;'; ?>">
|
||||
<td><?php _e('Create Blank Page:','revslider'); ?></td>
|
||||
<td><input type="radio" name="page-creation" value="true"> <?php _e('Yes', 'revslider'); ?></td>
|
||||
<td><input type="radio" name="page-creation" value="false" checked="checked"> <?php _e('No', 'revslider'); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<input type="submit" class="button-primary revblue tp-be-button rev-import-slider-button" style="display: none;" value="<?php _e("Import Slider",'revslider'); ?>">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="dialog_duplicate_slider" class="dialog_duplicate_layer" title="<?php _e('Duplicate', 'revslider'); ?>" style="display:none;">
|
||||
<div style="margin-top:14px">
|
||||
<span style="margin-right:15px"><?php _e('Title:', 'revslider'); ?></span><input id="rs-duplicate-animation" type="text" name="rs-duplicate-animation" value="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="dialog_duplicate_slider_package" class="dialog_duplicate_layer" title="<?php _e('Duplicate', 'revslider'); ?>" style="display:none;">
|
||||
<div style="margin-top:14px">
|
||||
<span style="margin-right:15px"><?php _e('Prefix:', 'revslider'); ?></span><input id="rs-duplicate-prefix" type="text" name="rs-duplicate-prefix" value="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function(){
|
||||
RevSliderAdmin.initSlidersListView();
|
||||
RevSliderAdmin.initNewsletterRoutine();
|
||||
|
||||
jQuery('#benefitsbutton').hover(function() {
|
||||
jQuery('#benefitscontent').slideDown(200);
|
||||
}, function() {
|
||||
jQuery('#benefitscontent').slideUp(200);
|
||||
});
|
||||
|
||||
jQuery('#why-subscribe').hover(function() {
|
||||
jQuery('#why-subscribe-wrapper').slideDown(200);
|
||||
}, function() {
|
||||
jQuery('#why-subscribe-wrapper').slideUp(200);
|
||||
});
|
||||
|
||||
jQuery('#tp-validation-box').click(function() {
|
||||
jQuery(this).css({cursor:"default"});
|
||||
if (jQuery('#rs-validation-wrapper').css('display')=="none") {
|
||||
jQuery('#tp-before-validation').hide();
|
||||
jQuery('#rs-validation-wrapper').slideDown(200);
|
||||
}
|
||||
});
|
||||
|
||||
jQuery('body').on('click','.rs-dash-more-info',function() {
|
||||
var btn = jQuery(this),
|
||||
p = btn.closest('.rs-dash-widget-inner'),
|
||||
tmb = btn.data('takemeback'),
|
||||
btxt = '';
|
||||
|
||||
btxt = btxt + '<div class="rs-dash-widget-warning-panel">';
|
||||
btxt = btxt + ' <i class="eg-icon-cancel rs-dash-widget-wp-cancel"></i>';
|
||||
btxt = btxt + ' <div class="rs-dash-strong-content">'+ btn.data("title")+'</div>';
|
||||
btxt = btxt + ' <div class="rs-dash-content-space"></div>';
|
||||
btxt = btxt + ' <div>'+btn.data("content")+'</div>';
|
||||
|
||||
if (tmb!=="false" && tmb!==false) {
|
||||
btxt = btxt + ' <div class="rs-dash-content-space"></div>';
|
||||
btxt = btxt + ' <span class="rs-dash-invers-button-gray rs-dash-close-panel">Thanks! Take me back</span>';
|
||||
}
|
||||
btxt = btxt + '</div>';
|
||||
|
||||
p.append(btxt);
|
||||
var panel = p.find('.rs-dash-widget-warning-panel');
|
||||
|
||||
punchgs.TweenLite.fromTo(panel,0.3,{y:-10,autoAlpha:0},{autoAlpha:1,y:0,ease:punchgs.Power3.easeInOut});
|
||||
panel.find('.rs-dash-widget-wp-cancel, .rs-dash-close-panel').click(function() {
|
||||
punchgs.TweenLite.to(panel,0.3,{y:-10,autoAlpha:0,ease:punchgs.Power3.easeInOut});
|
||||
setTimeout(function() {
|
||||
panel.remove();
|
||||
},300)
|
||||
})
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
require self::getPathTemplate('template-slider-selector');
|
||||
?>
|
||||
|
||||
<div style="visibility: none;" id="register-wrong-purchase-code"></div>
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php if( !defined( 'ABSPATH') ) exit(); ?>
|
||||
|
||||
<div id="dialog_copy_move" data-textclose="<?php _e("Close",'revslider')?>" data-textupdate="<?php _e("Do It!",'revslider')?>" title="<?php _e("Copy / move slide",'revslider')?>" style="display:none">
|
||||
|
||||
<br>
|
||||
|
||||
<?php _e("Choose Slider",'revslider')?>:
|
||||
<?php echo $selectSliders; ?>
|
||||
|
||||
<br><br>
|
||||
|
||||
<?php _e("Choose Operation",'revslider')?>:
|
||||
|
||||
<input type="radio" id="radio_copy" value="copy" name="copy_move_operation" checked />
|
||||
<label for="radio_copy" style="cursor:pointer;"><?php _e("Copy",'revslider')?></label>
|
||||
|
||||
<input type="radio" id="radio_move" value="move" name="copy_move_operation" />
|
||||
<label for="radio_move" style="cursor:pointer;"><?php _e("Move",'revslider')?></label>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,357 @@
|
||||
<?php if( !defined( 'ABSPATH') ) exit(); ?>
|
||||
|
||||
<!-- //Youtube dialog: -->
|
||||
<div id="dialog_video" class="dialog-video" title="<?php _e('Add Video Layer', 'revslider'); ?>" style="display:none">
|
||||
|
||||
<form id="video_dialog_form" name="video_dialog_form" onkeypress="return event.keyCode != 13;">
|
||||
<div id="video_content" style="display:none"></div>
|
||||
|
||||
<div id="video-dialog-wrap">
|
||||
<div id="video_dialog_tabs" class="box-closed tp-accordion disabled" style="background:#fff">
|
||||
<ul class="rs-layer-settings-tabs">
|
||||
<li class="selected" data-content="#rs-video-source" id="reset_video_dialog_tab"><i style="height:45px" class="rs-mini-layer-icon eg-icon-export rs-toolbar-icon"></i><?php _e('Source', 'revslider'); ?></li>
|
||||
<li class="rs-hide-on-audio" data-content="#rs-video-size"><i style="height:45px; font-size:16px" class="rs-mini-layer-icon eg-icon-resize-full-alt rs-toolbar-icon"></i><?php _e('Sizing', 'revslider'); ?></li>
|
||||
<li class="" data-content="#rs-video-settings"><i style="height:45px; font-size:16px" class="rs-mini-layer-icon eg-icon-cog rs-toolbar-icon"></i><?php _e('Settings', 'revslider'); ?></li>
|
||||
<li class="rs-hide-on-audio" data-content="#rs-video-thumbnails"><i style="height:45px; font-size:16px" class="rs-mini-layer-icon eg-icon-eye rs-toolbar-icon"></i><?php _e('Poster/Mobile Visibility', 'revslider'); ?></li>
|
||||
<li class="" data-content="#rs-video-arguments"><i style="height:45px; font-size:16px" class="rs-mini-layer-icon eg-icon-th rs-toolbar-icon"></i><?php _e('Arguments', 'revslider'); ?></li>
|
||||
</ul>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="rs-video-source">
|
||||
<!-- Type chooser -->
|
||||
<div id="video_type_chooser" class="video-type-chooser" style="margin-bottom:25px">
|
||||
<label><?php _e('Choose video type', 'revslider'); ?></label>
|
||||
<input type="radio" checked id="video_radio_youtube" name="video_select">
|
||||
<span for="video_radio_youtube"><?php _e('YouTube', 'revslider'); ?></span>
|
||||
<input type="radio" id="video_radio_vimeo" name="video_select" style="margin-left:20px">
|
||||
<span for="video_radio_vimeo"><?php _e('Vimeo', 'revslider'); ?></span>
|
||||
<input type="radio" id="video_radio_html5" name="video_select" style="margin-left:20px">
|
||||
<span for="video_radio_html5"><?php _e('HTML5', 'revslider'); ?></span>
|
||||
|
||||
<span class="rs-show-when-youtube-stream" style="display: none;">
|
||||
<input type="radio" id="video_radio_streamyoutube" name="video_select" style="margin-left:20px">
|
||||
<span for="video_radio_streamyoutube"><?php _e('From Stream', 'revslider'); ?></span>
|
||||
</span>
|
||||
<span class="rs-show-when-vimeo-stream" style="display: none;">
|
||||
<input type="radio" id="video_radio_streamvimeo" name="video_select" style="margin-left:20px">
|
||||
<span for="video_radio_streamvimeo"><?php _e('From Stream', 'revslider'); ?></span>
|
||||
</span>
|
||||
<span class="rs-show-when-instagram-stream" style="display: none;">
|
||||
<input type="radio" id="video_radio_streaminstagram" name="video_select" style="margin-left:20px">
|
||||
<span for="video_radio_streaminstagram"><?php _e('From Stream', 'revslider'); ?></span>
|
||||
</span>
|
||||
|
||||
<input type="radio" checked id="video_radio_audio" name="video_select" style="display: none;">
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Vimeo block -->
|
||||
<div id="video_block_vimeo" class="video-select-block" style="display:none;" >
|
||||
<label><?php _e('Vimeo ID or URL', 'revslider'); ?></label>
|
||||
<input type="text" id="vimeo_id" value="">
|
||||
<input type="button" style="vertical-align:middle" id="button_vimeo_search" class="button-regular video_search_button" value="search">
|
||||
<span class="video_example"><?php _e('example: 30300114', 'revslider'); ?></span>
|
||||
<img id="vimeo_loader" src="<?php echo RS_PLUGIN_URL; ?>/admin/assets/images/loader.gif" style="display:none">
|
||||
</div>
|
||||
|
||||
<!-- Youtube block -->
|
||||
<div id="video_block_youtube" class="video-select-block">
|
||||
<label><?php _e('YouTube ID or URL', 'revslider'); ?></label>
|
||||
<input type="text" id="youtube_id" value="">
|
||||
<input type="button" style="vertical-align:middle" id="button_youtube_search" class="button-regular video_search_button" value="search">
|
||||
<span class="video_example"><?php _e('example', 'revslider'); ?>: <?php echo RevSliderGlobals::YOUTUBE_EXAMPLE_ID; ?></span>
|
||||
<img id="youtube_loader" src="<?php echo RS_PLUGIN_URL; ?>/admin/assets/images/loader.gif" style="display:none">
|
||||
</div>
|
||||
|
||||
<!-- Html 5 block -->
|
||||
<div id="video_block_html5" class="video-select-block" style="display:none;">
|
||||
<label><?php _e('Poster Image Url', 'revslider'); ?></label>
|
||||
<input style="width:330px" type="text" id="html5_url_poster" name="html5_url_poster" value="">
|
||||
<span class="imgsrcchanger-div" style="margin-left:20px;">
|
||||
<a href="javascript:void(0)" class="button-image-select-html5-video button-primary revblue" ><?php _e('Choose from Library', 'revslider'); ?></a>
|
||||
</span>
|
||||
<span class="video_example"> </span>
|
||||
|
||||
|
||||
<label><?php _e('Video MP4 Url', 'revslider'); ?></label>
|
||||
<input style="width:330px" type="text" id="html5_url_mp4" name="html5_url_mp4" value="">
|
||||
<span class="vidsrcchanger-div" style="margin-left:20px;">
|
||||
<a href="javascript:void(0)" data-inptarget="html5_url_mp4" class="button_change_video button-primary revblue" ><?php _e('Choose from Library', 'revslider'); ?></a>
|
||||
</span>
|
||||
<span class="video_example"><?php _e("example",'revslider'); ?>: http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4</span>
|
||||
|
||||
<label><?php _e('Video WEBM Url', 'revslider'); ?></label>
|
||||
<input style="width:330px" type="text" id="html5_url_webm" name="html5_url_webm" value="">
|
||||
<span class="vidsrcchanger-div" style="margin-left:20px;">
|
||||
<a href="javascript:void(0)" data-inptarget="html5_url_webm" class="button_change_video button-primary revblue" ><?php _e('Choose from Library', 'revslider'); ?></a>
|
||||
</span>
|
||||
<span class="video_example"><?php _e('example','revslider'); ?>: http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm</span>
|
||||
|
||||
<label><?php _e('Video OGV Url', 'revslider'); ?></label>
|
||||
<input style="width:330px" type="text" id="html5_url_ogv" name="html5_url_ogv" value="">
|
||||
<span class="vidsrcchanger-div" style="margin-left:20px;">
|
||||
<a href="javascript:void(0)" data-inptarget="html5_url_ogv" class="button_change_video button-primary revblue" ><?php _e('Choose from Library', 'revslider'); ?></a>
|
||||
</span>
|
||||
<span class="video_example"><?php _e('example', 'revslider'); ?>: http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="video_block_audio" class="video-select-block" style="display:none;" >
|
||||
<label><?php _e('Audio Url', 'revslider'); ?></label>
|
||||
<input style="width:330px" type="text" id="html5_url_audio" name="html5_url_audio" value="">
|
||||
<span class="vidsrcchanger-div" style="margin-left:20px;">
|
||||
<a href="javascript:void(0)" data-inptarget="html5_url_audio" class="button_change_video button-primary revblue" ><?php _e('Choose from Library', 'revslider'); ?></a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="rs-video-size" style="display:none">
|
||||
<!-- Video Sizing -->
|
||||
<div id="video_size_wrapper" class="youtube-inputs-wrapper">
|
||||
<label for="input_video_fullwidth"><?php _e('Full Screen:', 'revslider'); ?></label>
|
||||
<input type="checkbox" class="tp-moderncheckbox rs-staticcustomstylechange tipsy_enabled_top" id="input_video_fullwidth">
|
||||
<div class="clearfix mb10"></div>
|
||||
</div>
|
||||
|
||||
<label for="input_video_cover" class="video-label"><?php _e('Force Cover:', 'revslider'); ?></label>
|
||||
<input type="checkbox" class="checkbox_video_dialog tp-moderncheckbox mb10" id="input_video_cover">
|
||||
|
||||
<div id="fullscreenvideofun1" class="video-settings-line mb10">
|
||||
<label for="input_video_dotted_overlay" class="video-label" id="input_video_dotted_overlay_lbl">
|
||||
<?php _e('Dotted Overlay:', 'revslider'); ?>
|
||||
</label>
|
||||
<select id="input_video_dotted_overlay" style="width:100px">
|
||||
<option value="none"><?php _e('none','revslider'); ?></option>
|
||||
<option value="twoxtwo"><?php _e('2 x 2 Black','revslider'); ?></option>
|
||||
<option value="twoxtwowhite"><?php _e('2 x 2 White','revslider'); ?></option>
|
||||
<option value="threexthree"><?php _e('3 x 3 Black','revslider'); ?></option>
|
||||
<option value="threexthreewhite"><?php _e('3 x 3 White','revslider'); ?></option>
|
||||
</select>
|
||||
<div class="clearfix mb10"></div>
|
||||
<label for="input_video_ratio" class="video-label" id="input_video_ratio_lbl">
|
||||
<?php _e('Aspect Ratio:', 'revslider'); ?>
|
||||
</label>
|
||||
<select id="input_video_ratio" style="width:100px">
|
||||
<option value="16:9"><?php _e('16:9','revslider'); ?></option>
|
||||
<option value="4:3"><?php _e('4:3','revslider'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="video_full_screen_settings" class="video-settings-line">
|
||||
<div class="mb10">
|
||||
<label for="input_video_leave_fs_on_pause"><?php _e('Leave Full Screen on Pause/End:', 'revslider'); ?></label>
|
||||
<input type="checkbox" class="checkbox_video_dialog tp-moderncheckbox" id="input_video_leave_fs_on_pause">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="rs-video-settings" style="display:none">
|
||||
<div class="mb10">
|
||||
<label for="input_video_loop"><?php _e("Loop:",'revslider'); ?></label>
|
||||
<?php /* <input type="checkbox" class="checkbox_video_dialog mtop_13" id="input_video_loop" > */ ?>
|
||||
<select id="input_video_loop" style="width: 200px;">
|
||||
<option value="none"><?php _e('Disable', 'revslider'); ?></option>
|
||||
<option class="rs-hide-on-audio" value="loop"><?php _e('Loop, Slide is paused', 'revslider'); ?></option>
|
||||
<option class="rs-hide-on-audio" value="loopandnoslidestop"><?php _e('Loop, Slide does not stop', 'revslider'); ?></option>
|
||||
<option class="rs-show-on-audio" value="loopandnoslidestop"><?php _e('Loop Segment', 'revslider'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb10">
|
||||
<label for="input_video_autoplay"><?php _e('Autoplay:', 'revslider'); ?></label>
|
||||
<select id="select_video_autoplay">
|
||||
<option value="false"><?php _e('Off', 'revslider'); ?></option>
|
||||
<option value="true"><?php _e('On', 'revslider'); ?></option>
|
||||
<option value="1sttime"><?php _e('On 1st Time', 'revslider'); ?></option>
|
||||
<option value="no1sttime"><?php _e('Not on 1st Time', 'revslider'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb10">
|
||||
<label for="input_video_stopallvideo"><?php _e('Stop Other Media:', 'revslider'); ?></label>
|
||||
<input type="checkbox" class="checkbox_video_dialog tp-moderncheckbox" id="input_video_stopallvideo" >
|
||||
</div>
|
||||
|
||||
<div class="mb10 hide-for-vimeo rs-hide-on-audio">
|
||||
<label for="input_video_allowfullscreen"><?php _e('Allow FullScreen:', 'revslider'); ?></label>
|
||||
<input type="checkbox" class="checkbox_video_dialog tp-moderncheckbox" id="input_video_allowfullscreen" >
|
||||
</div>
|
||||
|
||||
<div class="mb10">
|
||||
<label for="input_video_nextslide"><?php _e('Next Slide On End:', 'revslider'); ?></label>
|
||||
<input type="checkbox" class="checkbox_video_dialog tp-moderncheckbox" id="input_video_nextslide" >
|
||||
</div>
|
||||
|
||||
<div class="mb10">
|
||||
<label for="input_video_force_rewind"><?php _e('Rewind at Slide Start:', 'revslider'); ?></label>
|
||||
<input type="checkbox" class="checkbox_video_dialog tp-moderncheckbox" id="input_video_force_rewind" >
|
||||
</div>
|
||||
|
||||
<div class="mb10">
|
||||
<label for="input_video_control"><?php _e('Hide Controls:', 'revslider'); ?></label>
|
||||
<input type="checkbox" class="checkbox_video_dialog tp-moderncheckbox" id="input_video_control" >
|
||||
<span style="vertical-align:middle; margin-left:15px; display:none" class="description hidecontroldepend"><?php _e('Layer Action may needed to start/stop Video', 'revslider'); ?></span>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
jQuery('#input_video_control').on('change',function() {
|
||||
if (jQuery(this).attr('checked')==="checked")
|
||||
jQuery('.hidecontroldepend').show();
|
||||
else
|
||||
jQuery('.hidecontroldepend').hide();
|
||||
})
|
||||
</script>
|
||||
|
||||
<div class="mb10 rs-hide-on-audio">
|
||||
<label for="input_video_mute"><?php _e('Mute:', 'revslider'); ?></label>
|
||||
<input type="checkbox" class="checkbox_video_dialog tp-moderncheckbox" id="input_video_mute" >
|
||||
</div>
|
||||
|
||||
<div class="mb10 video-volume">
|
||||
<label for="input_video_volume"><?php _e('Volume (0 - 100):', 'revslider'); ?></label>
|
||||
<input type="text" class="input_video_dialog" style="width: 50px;" id="input_video_volume" >
|
||||
</div>
|
||||
|
||||
<div class="mb10">
|
||||
<span class="rs-hide-on-audio"><label for="input_video_start_at"><?php _e('Start at:', 'revslider'); ?></label></span>
|
||||
<span class="rs-show-on-audio"><label for="input_video_start_at"><?php _e('Segment Start:', 'revslider'); ?></label></span>
|
||||
<input type="text" id="input_video_start_at" style="width: 50px;"> <?php _e('i.e.: 0:17', 'revslider'); ?>
|
||||
</div>
|
||||
|
||||
<div class="mb10">
|
||||
<span class="rs-hide-on-audio"><label for="input_video_end_at"><?php _e('End at:', 'revslider'); ?></label></span>
|
||||
<span class="rs-show-on-audio"><label for="input_video_end_at"><?php _e('Segment End:', 'revslider'); ?></label></span>
|
||||
<input type="text" id="input_video_end_at" style="width: 50px;"> <?php _e('i.e.: 2:41', 'revslider'); ?>
|
||||
</div>
|
||||
|
||||
<div class="mb10 rs-hide-on-audio">
|
||||
<label for="input_video_show_cover_pause"><?php _e('Show Cover at Pause:', 'revslider'); ?></label>
|
||||
<input type="checkbox" class="checkbox_video_dialog tp-moderncheckbox" id="input_video_show_cover_pause" >
|
||||
</div>
|
||||
|
||||
<div class="mb10 rs-show-on-audio">
|
||||
<label for="input_video_show_visibility"><?php _e('Invisible on Frontend:', 'revslider'); ?></label>
|
||||
<input type="checkbox" class="checkbox_video_dialog tp-moderncheckbox" id="input_video_show_visibility" >
|
||||
</div>
|
||||
|
||||
<div id="rev-youtube-options" class="video-settings-line mb10 rs-hide-on-audio">
|
||||
<div class="mb10">
|
||||
<label for="input_video_speed"><?php _e('Video Speed:', 'revslider'); ?></label>
|
||||
<select id="input_video_speed" style="width:75px">
|
||||
<option value="0.25"><?php _e('0.25', 'revslider'); ?></option>
|
||||
<option value="0.50"><?php _e('0.50', 'revslider'); ?></option>
|
||||
<option value="1"><?php _e('1', 'revslider'); ?></option>
|
||||
<option value="1.5"><?php _e('1.5', 'revslider'); ?></option>
|
||||
<option value="2"><?php _e('2', 'revslider'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- JASON -->
|
||||
<div id="rev-playsinline-options" class="video-settings-line mb10 rs-hide-on-audio">
|
||||
<div class="mb10">
|
||||
<label for="input_video_play_inline"><?php _e('Play Video Inline:', 'revslider'); ?></label>
|
||||
<input type="checkbox" class="checkbox_video_dialog tp-moderncheckbox" id="input_video_play_inline" >
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb10 rs-show-on-audio" style="display: none">
|
||||
<div class="mb10">
|
||||
<label for="input_audio_preload" class="video-label">
|
||||
<?php _e("Audio Preload:",'revslider')?>
|
||||
</label>
|
||||
<select id="input_audio_preload" style="width:200px">
|
||||
<option value="none"><?php _e('Disable', 'revslider'); ?></option>
|
||||
<option value="metadata"><?php _e('Metadata', 'revslider'); ?></option>
|
||||
<option value="progress"><?php _e('Progress', 'revslider'); ?></option>
|
||||
<option value="canplay"><?php _e('Can Play', 'revslider'); ?></option>
|
||||
<option value="canplaythrough"><?php _e('Can Play Through', 'revslider'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="mb10">
|
||||
<label for="input_audio_preload" class="video-label">
|
||||
<?php _e("Ignore Preload after ",'revslider'); ?>
|
||||
</label>
|
||||
<select id="input_video_preload_wait">
|
||||
<option value="0"><?php _e('0', 'revslider'); ?></option>
|
||||
<option value="1"><?php _e('1', 'revslider'); ?></option>
|
||||
<option value="2"><?php _e('2', 'revslider'); ?></option>
|
||||
<option value="3"><?php _e('3', 'revslider'); ?></option>
|
||||
<option value="4"><?php _e('4', 'revslider'); ?></option>
|
||||
<option value="5"><?php _e('5', 'revslider'); ?></option>
|
||||
<option value="6"><?php _e('6', 'revslider'); ?></option>
|
||||
<option value="7"><?php _e('7', 'revslider'); ?></option>
|
||||
<option value="8"><?php _e('8', 'revslider'); ?></option>
|
||||
<option value="9"><?php _e('9', 'revslider'); ?></option>
|
||||
<option value="10"><?php _e('10', 'revslider'); ?></option>
|
||||
</select><?php _e(" seconds",'revslider'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="rev-html5-options" style="display: none; mb10">
|
||||
|
||||
<div class="mb10">
|
||||
<label for="input_video_preload" class="video-label">
|
||||
<?php _e("Video Preload:",'revslider')?>
|
||||
</label>
|
||||
<select id="input_video_preload" style="width:200px">
|
||||
<option value="auto"><?php _e('Auto', 'revslider'); ?></option>
|
||||
<option value="none"><?php _e('Disable', 'revslider'); ?></option>
|
||||
<option value="metadata"><?php _e('Metadata', 'revslider'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb10">
|
||||
<label for="input_video_large_controls"><?php _e('Large Controls:', 'revslider'); ?></label>
|
||||
<input type="checkbox" class="checkbox_video_dialog tp-moderncheckbox" id="input_video_large_controls" >
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="rs-video-thumbnails" style="display:none">
|
||||
<div id="preview-image-video-wrap" class="mb10">
|
||||
<label><?php _e('Poster Image', 'revslider'); ?></label>
|
||||
<input type="text" class="checkbox_video_dialog " id="input_video_preview">
|
||||
<input type="button" id="" class="button-image-select-video button-primary revblue" value="<?php _e('Image Library', 'revslider'); ?>">
|
||||
<input type="button" id="" class="button-image-select-video-default button-primary revblue" value="<?php _e('Video Thumbnail', 'revslider'); ?>">
|
||||
<input type="button" id="" class="button-image-remove-video button-primary revblue" value="<?php _e('Remove', 'revslider'); ?>">
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="mb10">
|
||||
<label for="input_disable_on_mobile"><?php _e('Disable Video and Show<br>only Poster on Mobile:', 'revslider'); ?></label>
|
||||
<input type="checkbox" class="checkbox_video_dialog tp-moderncheckbox" id="input_disable_on_mobile" >
|
||||
</div>
|
||||
|
||||
<div class="mb10">
|
||||
<label for="input_use_poster_on_mobile"><?php _e('No Poster on Mobile:', 'revslider'); ?></label>
|
||||
<input type="checkbox" class="checkbox_video_dialog tp-moderncheckbox" id="input_use_poster_on_mobile" >
|
||||
<div style="width:100%;height:10px"></div>
|
||||
</div>
|
||||
<!--div class="mb10">
|
||||
<select id="select_mobile_setting">
|
||||
<option value=""><?php _e('Show Video and Show Poster', 'revslider'); ?></option>posteronlyonmobile="off" && disablevideoonmobile="off"
|
||||
<option value=""><?php _e('Show Video and Hide Poster', 'revslider'); ?></option>
|
||||
<option value="use_poster_on_mobile"><?php _e('Hide Video and Show Poster', 'revslider'); ?></option>
|
||||
<option value="disable_on_mobile"><?php _e('Hide Video and Hide Poster', 'revslider'); ?></option>
|
||||
</select>
|
||||
</div-->
|
||||
|
||||
</div>
|
||||
|
||||
<div id="rs-video-arguments" style="display:none">
|
||||
<div>
|
||||
<label><?php _e('Arguments:', 'revslider'); ?></label>
|
||||
<input type="text" id="input_video_arguments" style="width:350px;" value="" data-youtube="<?php echo RevSliderGlobals::DEFAULT_YOUTUBE_ARGUMENTS; ?>" data-vimeo="<?php echo RevSliderGlobals::DEFAULT_VIMEO_ARGUMENTS; ?>" >
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="add-button-wrapper" style="margin-left:25px;">
|
||||
<a href="javascript:void(0)" class="button-primary revblue" id="button-video-add" data-textadd="<?php _e('Add This Video', 'revslider'); ?>" data-textupdate="<?php _e('Update Video', 'revslider'); ?>" ><?php _e('Add This Video', 'revslider'); ?></a>
|
||||
<a href="javascript:void(0)" class="button-primary revblue" style="display: none;" id="button-audio-add" data-textadd="<?php _e('Add This Audio', 'revslider'); ?>" data-textupdate="<?php _e('Update Audio', 'revslider'); ?>" ><?php _e('Add This Audio', 'revslider'); ?></a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @author ThemePunch <info@themepunch.com>
|
||||
* @link http://www.themepunch.com/
|
||||
* @copyright 2015 ThemePunch
|
||||
*/
|
||||
|
||||
|
||||
if( !defined( 'ABSPATH') ) exit();
|
||||
|
||||
$is_edit = false;
|
||||
|
||||
require self::getPathTemplate('slider-main-options');
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var g_jsonTaxWithCats = <?php echo $jsonTaxWithCats?>;
|
||||
|
||||
jQuery(document).ready(function(){
|
||||
RevSliderAdmin.initAddSliderView();
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php if( !defined( 'ABSPATH') ) exit(); ?>
|
||||
<input type="hidden" id="sliderid" value="<?php echo $sliderID; ?>"></input>
|
||||
|
||||
<?php
|
||||
$is_edit = true;
|
||||
require self::getPathTemplate('slider-main-options');
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var g_jsonTaxWithCats = <?php echo $jsonTaxWithCats?>;
|
||||
|
||||
jQuery(document).ready(function(){
|
||||
RevSliderAdmin.initEditSliderView();
|
||||
});
|
||||
</script>
|
||||
Whitespace-only changes.
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,365 @@
|
||||
<?php
|
||||
/**
|
||||
* @author ThemePunch <info@themepunch.com>
|
||||
* @link http://www.themepunch.com/
|
||||
* @copyright 2015 ThemePunch
|
||||
*/
|
||||
|
||||
|
||||
if( !defined( 'ABSPATH') ) exit();
|
||||
|
||||
$_width = $slider->getParam('width', 1280);
|
||||
$_height = $slider->getParam('height', 868);
|
||||
|
||||
$the_slidertype = $slider->getParam('slider-type', 'standard');
|
||||
|
||||
if($the_slidertype == 'hero'){
|
||||
$active_slide = $slider->getParam('hero_active', -1);
|
||||
//check if this id is still existing
|
||||
$exists = RevSliderSlide::isSlideByID($active_slide);
|
||||
|
||||
if($exists == false){
|
||||
$active_slide = -1;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<input type="hidden" value="<?php echo intval($_width); ?>" name="rs-grid-width" />
|
||||
<input type="hidden" value="<?php echo intval($_height); ?>" name="rs-grid-height" />
|
||||
|
||||
<div id="slide_selector" class="slide_selector editor_buttons_wrapper postbox unite-postbox" style="max-width:100% !important; min-width:1200px !important">
|
||||
<div class="inner_wrapper p10 boxsized">
|
||||
<ul class="list_slide_links">
|
||||
<?php
|
||||
$staticclass = '';
|
||||
$sID = $slider->getID();
|
||||
if($slide->isStaticSlide()){
|
||||
$staticclass = 'statictabselected';
|
||||
}
|
||||
|
||||
?>
|
||||
<li class="<?php echo $staticclass; ?> eg-drag-disabled">
|
||||
<?php
|
||||
if(!$slide->isStaticSlide()){
|
||||
?>
|
||||
<a href="<?php echo self::getViewUrl(RevSliderAdmin::VIEW_SLIDE,"id=static_$sID"); ?>" class="add_slide">
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="slide-media-container icon-basketball" style="border:1px solid #3498DB; border-bottom:none;"></div>
|
||||
<div class="slide-link-content alwaysbluebg" style="background:#3498DB !important; color:#fff">
|
||||
<span class="slide-link" style="width:100%;text-align: center;"><?php _e("Static / Global Layers",'revslider'); ?></span>
|
||||
</div>
|
||||
<?php
|
||||
if(!$slide->isStaticSlide()){
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
//show/hide layers of specific slides
|
||||
if($slide->isStaticSlide()){
|
||||
$all_slides = $slider->getSlides(true);
|
||||
?>
|
||||
<span style="position:absolute; top:13px;left:0px; text-align: center">
|
||||
<span class="setting_text_3"><?php _e("Show Layers from Slide:",'revslider'); ?></span>
|
||||
<select name="rev_show_the_slides">
|
||||
<option value="none">---</option>
|
||||
<?php
|
||||
foreach($all_slides as $c_slide){
|
||||
$c_params = $c_slide->getParams();
|
||||
?>
|
||||
<option value="<?php echo $c_slide->getID(); ?>"><?php echo stripslashes(RevSliderFunctions::getVal($c_params, 'title', 'Slide')).' (ID: '.$c_slide->getID().')'; ?></option>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</span>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
|
||||
$slidecounter = 0;
|
||||
|
||||
foreach($arrSlides as $t_slide) {
|
||||
|
||||
$slidelistID = $t_slide->getID();
|
||||
/* BACKGROUND SETTINGS */
|
||||
$c_bgType = $t_slide->getParam('background_type', 'transparent');
|
||||
$c_bgColor = $t_slide->getParam('slide_bg_color', 'transparent');
|
||||
|
||||
$c_bgFit = $t_slide->getParam('bg_fit', 'cover');
|
||||
$c_bgFitX = intval($t_slide->getParam('bg_fit_x', '100'));
|
||||
$c_bgFitY = intval($t_slide->getParam('bg_fit_y', '100'));
|
||||
|
||||
$c_bgPosition = $t_slide->getParam('bg_position', 'center center');
|
||||
$c_bgPositionX = intval($t_slide->getParam('bg_position_x', '0'));
|
||||
$c_bgPositionY = intval($t_slide->getParam('bg_position_y', '0'));
|
||||
|
||||
$c_bgRepeat = $t_slide->getParam('bg_repeat', 'no-repeat');
|
||||
|
||||
$c_isvisible = $t_slide->getParam('state', 'published');
|
||||
|
||||
$c_thumb_for_admin = $t_slide->getParam('thumb_for_admin', 'off');
|
||||
$c_real_thumbURL = $t_slide->getParam('slide_thumb','');
|
||||
|
||||
$c_bgStyle = ' ';
|
||||
if($c_bgFit == 'percentage'){
|
||||
$c_bgStyle .= "background-size: ".$c_bgFitX.'% '.$c_bgFitY.'%;';
|
||||
}else{
|
||||
$c_bgStyle .= "background-size: ".$c_bgFit.";";
|
||||
}
|
||||
if($c_bgPosition == 'percentage'){
|
||||
$c_bgStyle .= "background-position: ".$c_bgPositionX.'% '.$c_bgPositionY.'%;';
|
||||
}else{
|
||||
$c_bgStyle .= "background-position: ".$c_bgPosition.";";
|
||||
}
|
||||
$c_bgStyle .= "background-repeat: ".$c_bgRepeat.";";
|
||||
$c_urlImageForView = $t_slide->getThumbUrl();
|
||||
|
||||
$c_bg_fullstyle ='';
|
||||
$c_bg_extraClass='';
|
||||
|
||||
if($c_bgType == 'image' || $c_bgType == 'streamvimeo' || $c_bgType == 'streamyoutube' || $c_bgType == 'streaminstagram'){
|
||||
switch($slider_type){
|
||||
case 'posts':
|
||||
$c_urlImageForView = RS_PLUGIN_URL.'public/assets/assets/sources/post.png';
|
||||
break;
|
||||
case 'woocommerce':
|
||||
$c_urlImageForView = RS_PLUGIN_URL.'public/assets/assets/sources/wc.png';
|
||||
break;
|
||||
case 'facebook':
|
||||
$c_urlImageForView = RS_PLUGIN_URL.'public/assets/assets/sources/fb.png';
|
||||
break;
|
||||
case 'twitter':
|
||||
$c_urlImageForView = RS_PLUGIN_URL.'public/assets/assets/sources/tw.png';
|
||||
break;
|
||||
case 'instagram':
|
||||
$c_urlImageForView = RS_PLUGIN_URL.'public/assets/assets/sources/ig.png';
|
||||
break;
|
||||
case 'flickr':
|
||||
$c_urlImageForView = RS_PLUGIN_URL.'public/assets/assets/sources/fr.png';
|
||||
break;
|
||||
case 'youtube':
|
||||
$c_urlImageForView = RS_PLUGIN_URL.'public/assets/assets/sources/yt.png';
|
||||
break;
|
||||
case 'vimeo':
|
||||
$c_urlImageForView = RS_PLUGIN_URL.'public/assets/assets/sources/vm.png';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($c_bgType == 'image' || $c_bgType == 'vimeo' || $c_bgType == 'youtube' || $c_bgType == 'html5' || $c_bgType == 'streamvimeo' || $c_bgType == 'streamyoutube' || $c_bgType == 'streaminstagram')
|
||||
$c_bg_fullstyle =' style="background-image:url('.$c_urlImageForView.');'.$c_bgStyle.'" ';
|
||||
|
||||
if ($c_bgType == 'solid')
|
||||
$c_bg_fullstyle =' style="background:'.TPColorpicker::get($c_bgColor).';" ';
|
||||
if ($c_bgType == 'trans')
|
||||
$c_bg_extraClass = 'mini-transparent';
|
||||
|
||||
if ($c_thumb_for_admin=="on")
|
||||
$c_bg_fullstyle =' style="background-image:url('.$c_real_thumbURL.');background-size:cover;background-position:center center" ';
|
||||
|
||||
/* END OF BG SETTINGS */
|
||||
$slidecounter++;
|
||||
$title = $t_slide->getParam('title', 'Slide');
|
||||
$slideName = $title;
|
||||
$arrChildrenIDs = $t_slide->getArrChildrenIDs();
|
||||
|
||||
$class = 'tipsy_enabled_top';
|
||||
$titleclass = '';
|
||||
$c_topclass = '';
|
||||
$urlEditSlide = self::getViewUrl(RevSliderAdmin::VIEW_SLIDE,"id=$slidelistID");
|
||||
if($slideID == $slidelistID || in_array($slideID, $arrChildrenIDs)){
|
||||
$class .= ' selected';
|
||||
$c_topclass = ' selected';
|
||||
$titleclass = ' ';
|
||||
$urlEditSlide = 'javascript:void(0)';
|
||||
}
|
||||
|
||||
$addParams = "class='".$class."'";
|
||||
$slideName = str_replace("'", "", $slideName);
|
||||
|
||||
?>
|
||||
<li id="slidelist_item_<?php echo $slidelistID; ?>" class="<?php echo $c_topclass; ?>">
|
||||
<a href="<?php echo $urlEditSlide; ?>" <?php echo $addParams; ?>>
|
||||
<span class="mini-transparent mini-as-bg"></span>
|
||||
<span class="slide-media-container <?php echo $c_bg_extraClass; ?>" <?php echo $c_bg_fullstyle; ?>></span>
|
||||
<i class="slide-link-forward eg-icon-forward"></i>
|
||||
</a>
|
||||
<span class="slide-link-published-wrapper">
|
||||
<?php
|
||||
if($the_slidertype !== 'hero'){
|
||||
if($c_isvisible == 'published'){
|
||||
?>
|
||||
<span class="slide-published"></span>
|
||||
<span class="slide-unpublished pubclickable"></span>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<span class="slide-unpublished"></span>
|
||||
<span class="slide-published pubclickable"></span>
|
||||
<?php
|
||||
}
|
||||
}else{ //we are a hero blog, Slides are not published/unpublished here, but rather the active Slide can be choosen
|
||||
if($active_slide == $slidelistID || $active_slide == -1){
|
||||
?>
|
||||
<span class="slide-hero-published"></span>
|
||||
<?php
|
||||
$active_slide = -99; //so that if it was -1, it will not be done again. First slide is just active
|
||||
}else{
|
||||
?>
|
||||
<span class="slide-hero-unpublished pubclickable"></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</span>
|
||||
|
||||
<div class="slide-link-content">
|
||||
<span class="slide-link">
|
||||
<span class="slide-link-nr">#<?php echo $slidecounter; ?></span>
|
||||
<input class="slidetitleinput" name="slidetitle" value="<?php echo esc_attr(stripslashes($title)); ?>" />
|
||||
<span class="slidelint-edit-button"></span>
|
||||
</span>
|
||||
<div class="slide-link-toolbar">
|
||||
<?php
|
||||
if($slidelistID != $slideID && !in_array($slideID, $arrChildrenIDs)){
|
||||
?>
|
||||
<a class="slide-link-toolbar-button slide-moveto" href="#"><span class=""><i class="eg-icon-forward"></i><span><?php _e("Copy / Move",'revslider'); ?></span></span></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<a class="slide-link-toolbar-button slide-duplicate" href="#"><span class=""><i class="eg-icon-picture"></i><span><?php _e("Duplicate",'revslider'); ?></span></span></a>
|
||||
<a class="slide-link-toolbar-button slide-add-as-template" href="#"><span class=""><i class="eg-icon-menu"></i><span><?php _e("Add to Templates",'revslider'); ?></span></span></a>
|
||||
<a class="slide-link-toolbar-button slide-remove" href="#"><span class=""><i class="eg-icon-trash"></i><span><?php _e("Delete",'revslider'); ?></span></span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<li class="eg-drag-disabled">
|
||||
<a href="javascript:void(0);" class="add_slide">
|
||||
<div class="slide-media-container" style="border:1px dashed #ddd; border-bottom:none;">
|
||||
<i style="position:absolute; top:50%;left:50%; font-size:25px; color:#ddd;margin-left:-17px;margin-top:-7px;" class="eg-icon-plus"></i>
|
||||
</div>
|
||||
<div class="slide-link-content">
|
||||
<span class="slide-link" style="width:100%;text-align: center;font-weight:600;"><?php _e("Add Slide",'revslider'); ?></span>
|
||||
</div>
|
||||
</a>
|
||||
<div class="slide-link-content">
|
||||
<div class="slide-link-toolbar">
|
||||
<a id="link_add_slide" href="javascript:void(0);" class="slide-link-toolbar-button"><span class="slide-add"><i class="eg-icon-picture-1" style="margin-right:5px"></i><span><?php _e("Add Blank Slide", 'revslider'); ?></span></span></a>
|
||||
<a id="link_add_bulk_slide" href="javascript:void(0);" class="slide-link-toolbar-button"><span class="slide-add"><i class="eg-icon-picture" style="margin-right:5px"></i><span><?php _e("Add Bulk Slides", 'revslider'); ?></span></span></a>
|
||||
<a id="rs_copy_slide_from_slider" href="javascript:void(0);" class="slide-link-toolbar-button">
|
||||
<span class="slide-copy-from-slider"><i class="eg-icon-menu" style="margin-right:5px"></i><span><?php _e("Add from Template", 'revslider'); ?></span></span>
|
||||
</a>
|
||||
</div>
|
||||
<span class="slide-link" style="text-align:center">
|
||||
<?php _e("Add Slide", 'revslider'); ?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="small-triangle-bar"></div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<div id="loader_add_slide" class="loader_round" style="display:none"></div>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
jQuery("document").ready(function() {
|
||||
jQuery('.list_slide_links li').each(function() {
|
||||
var li=jQuery(this);
|
||||
|
||||
li.hover(function() {
|
||||
var li = jQuery(this),
|
||||
tb = li.find('.slide-link-toolbar');
|
||||
li.removeClass("nothovered");
|
||||
tb.show();
|
||||
}, function() {
|
||||
var li = jQuery(this),
|
||||
tb = li.find('.slide-link-toolbar');
|
||||
li.addClass("nothovered");
|
||||
if (!li.hasClass("infocus"))
|
||||
tb.hide();
|
||||
})
|
||||
});
|
||||
|
||||
var oldslidetitle = "";
|
||||
|
||||
jQuery('.slidetitleinput').focus(function() {
|
||||
oldslidetitle=jQuery(this).val();
|
||||
jQuery(this).closest("li").addClass("infocus");
|
||||
}).blur(function() {
|
||||
jQuery(this).val(oldslidetitle);
|
||||
var li = jQuery(this).closest("li")
|
||||
li.removeClass("infocus");
|
||||
if (li.hasClass("nothovered")) {
|
||||
tb = li.find('.slide-link-toolbar');
|
||||
tb.hide();
|
||||
}
|
||||
});
|
||||
|
||||
jQuery('.slidetitleinput').on("change",function() {
|
||||
var titleinp = jQuery(this),
|
||||
slide_title = titleinp.val(),
|
||||
slide_id = jQuery(this).closest('li').attr('id').replace('slidelist_item_', '');
|
||||
|
||||
oldslidetitle = slide_title;
|
||||
titleinp.blur();
|
||||
if(UniteAdminRev.sanitize_input(slide_title) == ''){
|
||||
alert('<?php _e('Slide name should not be empty', 'revslider'); ?>');
|
||||
return false;
|
||||
}
|
||||
|
||||
var data = {slideID:slide_id,slideTitle:slide_title};
|
||||
|
||||
UniteAdminRev.ajaxRequest('change_slide_title', data, function(response){});
|
||||
|
||||
if(jQuery(this).closest('li').hasClass('selected')){ //set input field to new value
|
||||
jQuery('input[name="title"]').val(slide_title);
|
||||
}
|
||||
})
|
||||
|
||||
jQuery('.slidelint-edit-button').click(function() {
|
||||
var titleinp = jQuery(this).siblings('.slidetitleinput'),
|
||||
slide_title = titleinp.val(),
|
||||
slide_id = jQuery(this).closest('li').attr('id').replace('slidelist_item_', '');
|
||||
|
||||
oldslidetitle = slide_title;
|
||||
titleinp.blur();
|
||||
if(UniteAdminRev.sanitize_input(slide_title) == ''){
|
||||
alert('<?php _e('Slide name should not be empty', 'revslider'); ?>');
|
||||
return false;
|
||||
}
|
||||
|
||||
var data = {slideID:slide_id,slideTitle:slide_title};
|
||||
|
||||
UniteAdminRev.ajaxRequest('change_slide_title', data, function(response){});
|
||||
|
||||
if(jQuery(this).closest('li').hasClass('selected')){ //set input field to new value
|
||||
jQuery('input[name="title"]').val(slide_title);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// OPEN THE TEMPLATE LIST ON CLICK OF ADD SLIDE TEMPLATE
|
||||
jQuery('#rs_copy_slide_from_slider').click(function() {
|
||||
RevSliderAdmin.load_slide_template_html();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,267 @@
|
||||
<?php
|
||||
if( !defined( 'ABSPATH') ) exit();
|
||||
?>
|
||||
<ul class="tp-list_sliders">
|
||||
<?php
|
||||
if(!$no_sliders){
|
||||
|
||||
$useSliders = $arrSliders;
|
||||
|
||||
foreach($arrSliders as $slider){
|
||||
|
||||
try{
|
||||
$errorMessage = '';
|
||||
|
||||
$id = $slider->getID();
|
||||
$showTitle = $slider->getShowTitle();
|
||||
$title = $slider->getTitle();
|
||||
$alias = $slider->getAlias();
|
||||
$isFromPosts = $slider->isSlidesFromPosts();
|
||||
$isFromStream = $slider->isSlidesFromStream();
|
||||
$strSource = __("Gallery",'revslider');
|
||||
$preicon = "revicon-picture-1";
|
||||
|
||||
$is_favorite = $slider->isFavorite();
|
||||
|
||||
$shortCode = $slider->getShortcode();
|
||||
$numSlides = $slider->getNumSlidesRaw();
|
||||
$numReal = '';
|
||||
|
||||
$rowClass = "";
|
||||
$slider_type = 'gallery';
|
||||
if($isFromPosts == true){
|
||||
$strSource = __('Posts','revslider');
|
||||
$preicon ="revicon-doc";
|
||||
$rowClass = "class='row_alt'";
|
||||
$numReal = $slider->getNumRealSlides();
|
||||
$slider_type = 'posts';
|
||||
//check if we are woocommerce
|
||||
if($slider->getParam("source_type","gallery") == 'woocommerce'){
|
||||
$strSource = __('WooCommerce','revslider');
|
||||
$preicon ="revicon-doc";
|
||||
$rowClass = "class='row_alt'";
|
||||
$slider_type = 'woocommerce';
|
||||
}
|
||||
}elseif($isFromStream !== false){
|
||||
$strSource = __('Social','revslider');
|
||||
$preicon ="revicon-doc";
|
||||
$rowClass = "class='row_alt'";
|
||||
switch($isFromStream){
|
||||
case 'facebook':
|
||||
$strSource = __('Facebook','revslider');
|
||||
$preicon ="eg-icon-facebook";
|
||||
$numReal = $slider->getNumRealSlides(false, 'facebook');
|
||||
$slider_type = 'facebook';
|
||||
break;
|
||||
case 'twitter':
|
||||
$strSource = __('Twitter','revslider');
|
||||
$preicon ="eg-icon-twitter";
|
||||
$numReal = $slider->getNumRealSlides(false, 'twitter');
|
||||
$slider_type = 'twitter';
|
||||
break;
|
||||
case 'instagram':
|
||||
$strSource = __('Instagram','revslider');
|
||||
$preicon ="eg-icon-info";
|
||||
$numReal = $slider->getNumRealSlides(false, 'instagram');
|
||||
$slider_type = 'instagram';
|
||||
break;
|
||||
case 'flickr':
|
||||
$strSource = __('Flickr','revslider');
|
||||
$preicon ="eg-icon-flickr";
|
||||
$numReal = $slider->getNumRealSlides(false, 'flickr');
|
||||
$slider_type = 'flickr';
|
||||
break;
|
||||
case 'youtube':
|
||||
$strSource = __('YouTube','revslider');
|
||||
$preicon ="eg-icon-youtube";
|
||||
$numReal = $slider->getNumRealSlides(false, 'youtube');
|
||||
$slider_type = 'youtube';
|
||||
break;
|
||||
case 'vimeo':
|
||||
$strSource = __('Vimeo','revslider');
|
||||
$preicon ="eg-icon-vimeo";
|
||||
$numReal = $slider->getNumRealSlides(false, 'vimeo');
|
||||
$slider_type = 'vimeo';
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$first_slide_image_thumb = array('url' => '', 'class' => 'mini-transparent', 'style' => '');
|
||||
|
||||
if(intval($numSlides) == 0){
|
||||
$first_slide_id = 'new&slider='.$id;
|
||||
}else{
|
||||
$slides = $slider->getFirstSlideIdFromGallery();
|
||||
|
||||
if(!empty($slides)){
|
||||
$first_slide_id = $slides[key($slides)]->getID();
|
||||
//$first_slide_id = ($isFromPosts == true) ? $slides[key($slides)]->templateID : $slides[key($slides)]->getID();
|
||||
|
||||
$first_slide_image_thumb = $slides[key($slides)]->get_image_attributes($slider_type);
|
||||
}else{
|
||||
$first_slide_id = 'new&slider='.$id;
|
||||
}
|
||||
}
|
||||
|
||||
$editLink = self::getViewUrl(RevSliderAdmin::VIEW_SLIDER,"id=$id");
|
||||
|
||||
$editSlidesLink = self::getViewUrl(RevSliderAdmin::VIEW_SLIDE,"id=$first_slide_id");
|
||||
|
||||
$showTitle = RevSliderFunctions::getHtmlLink($editLink, $showTitle);
|
||||
|
||||
}catch(Exception $e){
|
||||
$errorMessage = "ERROR: ".$e->getMessage();
|
||||
$strSource = "";
|
||||
$numSlides = "";
|
||||
$isFromPosts = false;
|
||||
}
|
||||
|
||||
?>
|
||||
<li class="tls-slide tls-stype-all tls-stype-<?php echo $slider_type; ?>" data-favorit="<?php echo ($is_favorite) ? 'a' : 'b'; ?>" data-id="<?php echo $id; ?>" data-name="<?php echo $title; ?>" data-type="<?php echo $slider_type; ?>">
|
||||
<div class="tls-main-metas">
|
||||
|
||||
<span class="tls-firstslideimage <?php echo $first_slide_image_thumb['class']; ?>" style="<?php echo $first_slide_image_thumb['style']; ?>;<?php if (!empty($first_slide_image_thumb['url'])) {?>background-image:url( <?php echo $first_slide_image_thumb['url']; ?>) <?php } ?>"></span>
|
||||
<a href="<?php echo $editSlidesLink; ?>" class="tls-grad-bg tls-bg-top"></a>
|
||||
<span class="tls-source"><?php echo "<i class=".$preicon."></i>".$strSource; ?></span>
|
||||
<span class="tls-star"><a href="javascript:void(0);" class="rev-toogle-fav" id="reg-toggle-id-<?php echo $id; ?>"><i class="eg-icon-star<?php echo ($is_favorite) ? '' : '-empty'; ?>"></i></a></span>
|
||||
<span class="tls-slidenr"><?php echo $numSlides; if($numReal !== '') echo ' ('.$numReal.')'; ?></span>
|
||||
|
||||
<span class="tls-title-wrapper">
|
||||
<span class="tls-id">#<?php echo $id; ?><span id="slider_title_<?php echo $id; ?>" class="hidden"><?php echo $title; ?></span><span class="tls-alias hidden" ><?php echo $alias; ?></span></span>
|
||||
<span class="tls-title"><?php echo $showTitle; ?>
|
||||
<?php if(!empty($errorMessage)){ ?>
|
||||
<span class='error_message'><?php echo $errorMessage; ?></span>
|
||||
<?php } ?>
|
||||
</span>
|
||||
<a class="button-primary tls-settings" href='<?php echo $editLink; ?>'><i class="revicon-cog"></i></a>
|
||||
<a class="button-primary tls-editslides" href='<?php echo $editSlidesLink; ?>'><i class="revicon-pencil-1"></i></a>
|
||||
<span class="button-primary tls-showmore"><i class="eg-icon-down-open"></i></span>
|
||||
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="tls-hover-metas">
|
||||
<!--<span class="tls-shortcode"><?php echo $shortCode; ?></span>-->
|
||||
<span class="button-primary rs-embed-slider" ><i class="eg-icon-plus"></i><?php _e("Embed Slider",'revslider'); ?></span>
|
||||
<?php if(!RS_DEMO){ ?>
|
||||
<a class="button-primary export_slider_overview" id="export_slider_<?php echo $id; ?>" href="javascript:void(0);" ><i class="revicon-export"></i><?php _e("Export",'revslider'); ?></a>
|
||||
<?php
|
||||
$operations = new RevSliderOperations();
|
||||
$general_settings = $operations->getGeneralSettingsValues();
|
||||
|
||||
$show_dev_export = RevSliderBase::getVar($general_settings, 'show_dev_export', 'off');
|
||||
|
||||
if($show_dev_export == 'on'){
|
||||
?>
|
||||
<a class="button-primary export_slider_standalone" id="export_slider_standalone_<?php echo $id; ?>" href="javascript:void(0);" ><i class="revicon-export"></i><?php _e("Export to HTML",'revslider'); ?></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php } ?>
|
||||
<a class="button-primary button_delete_slider" id="button_delete_<?php echo $id; ?>" href='javascript:void(0)'><i class="revicon-trash"></i><?php _e("Delete",'revslider'); ?></a>
|
||||
<a class="button-primary button_duplicate_slider" id="button_duplicate_<?php echo $id; ?>" href='javascript:void(0)'><i class="revicon-picture"></i><?php _e("Duplicate",'revslider'); ?></a>
|
||||
<div id="button_preview_<?php echo $id; ?>" class="button_slider_preview button-primary revgray"><i class="revicon-search-1"></i><?php _e("Preview",'revslider'); ?></div>
|
||||
</div>
|
||||
<div class="tls-dimmme"></div>
|
||||
</li>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<li class="tls-slide tls-addnewslider">
|
||||
<a href='<?php echo $addNewLink; ?>'>
|
||||
<span class="tls-main-metas">
|
||||
<span class="tls-new-icon-wrapper">
|
||||
<span class="slider_list_add_buttons add_new_slider_icon"></span>
|
||||
</span>
|
||||
<span class="tls-title-wrapper">
|
||||
<span class="tls-title"><?php _e("New Slider",'revslider'); ?></span>
|
||||
</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="tls-slide tls-addnewslider">
|
||||
<a href="javascript:void(0);" id="button_import_template_slider">
|
||||
<span class="tls-main-metas">
|
||||
<span class="tls-new-icon-wrapper add_new_template_icon_wrapper">
|
||||
<i class="slider_list_add_buttons add_new_template_icon"></i>
|
||||
</span>
|
||||
<span class="tls-title-wrapper">
|
||||
<span class="tls-title"><?php _e("Add Slider From Template",'revslider'); ?></span>
|
||||
</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php if(!RevSliderFunctionsWP::isAdminUser() && apply_filters('revslider_restrict_role', true)){ }else{ ?>
|
||||
<li class="tls-slide tls-addnewslider">
|
||||
<a href="javascript:void(0);" id="button_import_slider">
|
||||
<span class="tls-main-metas">
|
||||
<span class="tls-new-icon-wrapper">
|
||||
<i class="slider_list_add_buttons add_new_import_icon"></i>
|
||||
</span>
|
||||
<span class="tls-title-wrapper">
|
||||
<span class="tls-title"><?php _e("Import Slider",'revslider'); ?></span>
|
||||
</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<script>
|
||||
jQuery(document).on("ready",function() {
|
||||
jQuery('.tls-showmore').click(function() {
|
||||
jQuery(this).closest('.tls-slide').find('.tls-hover-metas').show();
|
||||
var elements = jQuery('.tls-slide:not(.hovered) .tls-dimmme');
|
||||
punchgs.TweenLite.to(elements,0.5,{autoAlpha:0.6,overwrite:"all",ease:punchgs.Power3.easeInOut});
|
||||
punchgs.TweenLite.to(jQuery(this).find('.tls-dimmme'),0.3,{autoAlpha:0,overwrite:"all",ease:punchgs.Power3.easeInOut})
|
||||
})
|
||||
|
||||
jQuery('.tls-slide').hover(function() {
|
||||
jQuery(this).addClass("hovered");
|
||||
}, function() {
|
||||
var elements = jQuery('.tls-slide .tls-dimmme');
|
||||
punchgs.TweenLite.to(elements,0.5,{autoAlpha:0,overwrite:"auto",ease:punchgs.Power3.easeInOut});
|
||||
jQuery(this).removeClass("hovered");
|
||||
jQuery(this).find('.tls-hover-metas').hide();
|
||||
});
|
||||
|
||||
|
||||
})
|
||||
|
||||
jQuery('#filter-sliders').on("change",function() {
|
||||
jQuery('.tls-slide').hide();
|
||||
jQuery('.tls-stype-'+jQuery(this).val()).show();
|
||||
jQuery('.tls-addnewslider').show();
|
||||
})
|
||||
|
||||
function sort_li(a, b){
|
||||
return (jQuery(b).data(jQuery('#sort-sliders').val())) < (jQuery(a).data(jQuery('#sort-sliders').val())) ? 1 : -1;
|
||||
}
|
||||
|
||||
jQuery('#sort-sliders').on('change',function() {
|
||||
jQuery(".tp-list_sliders li").sort(sort_li).appendTo('.tp-list_sliders');
|
||||
jQuery('.tls-addnewslider').appendTo('.tp-list_sliders');
|
||||
});
|
||||
|
||||
jQuery('.slider-lg-views').click(function() {
|
||||
var tls =jQuery('.tp-list_sliders'),
|
||||
t = jQuery(this);
|
||||
jQuery('.slider-lg-views').removeClass("active");
|
||||
jQuery(this).addClass("active");
|
||||
tls.removeClass("rs-listview");
|
||||
tls.removeClass("rs-gridview");
|
||||
tls.addClass(t.data('type'));
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,190 @@
|
||||
<?php if( !defined( 'ABSPATH') ) exit(); ?>
|
||||
|
||||
<div class="postbox box-slideslist">
|
||||
<div class="title_line nobgnopd">
|
||||
<div class="view_title"><?php _e('Post List','revslider'); ?>
|
||||
<span id="saving_indicator" class='slideslist-loading'><?php _e('Saving Order','revslider'); ?>...</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="inside">
|
||||
<?php if(empty($arrSlides)){ _e('No Posts Found','revslider'); } ?>
|
||||
|
||||
<ul id="list_slides" class="list_slides ui-sortable">
|
||||
|
||||
<?php
|
||||
$counter = 0;
|
||||
foreach($arrSlides as $slide){
|
||||
|
||||
$counter++;
|
||||
|
||||
$bgType = $slide->getParam("background_type","image");
|
||||
|
||||
$bgFit = $slide->getParam("bg_fit","cover");
|
||||
$bgFitX = intval($slide->getParam("bg_fit_x","100"));
|
||||
$bgFitY = intval($slide->getParam("bg_fit_y","100"));
|
||||
|
||||
$bgPosition = $slide->getParam("bg_position","center center");
|
||||
$bgPositionX = intval($slide->getParam("bg_position_x","0"));
|
||||
$bgPositionY = intval($slide->getParam("bg_position_y","0"));
|
||||
|
||||
$bgRepeat = $slide->getParam("bg_repeat","no-repeat");
|
||||
|
||||
$bgStyle = ' ';
|
||||
if($bgFit == 'percentage'){
|
||||
$bgStyle .= "background-size: ".$bgFitX.'% '.$bgFitY.'%;';
|
||||
}else{
|
||||
$bgStyle .= "background-size: ".$bgFit.";";
|
||||
}
|
||||
if($bgPosition == 'percentage'){
|
||||
$bgStyle .= "background-position: ".$bgPositionX.'% '.$bgPositionY.'%;';
|
||||
}else{
|
||||
$bgStyle .= "background-position: ".$bgPosition.";";
|
||||
}
|
||||
$bgStyle .= "background-repeat: ".$bgRepeat.";";
|
||||
|
||||
|
||||
//set language flag url
|
||||
$isWpmlExists = RevSliderWpml::isWpmlExists();
|
||||
$useWpml = $slider->getParam("use_wpml","off");
|
||||
$showLangs = false;
|
||||
if($isWpmlExists && $useWpml == "on"){
|
||||
$showLangs = true;
|
||||
$arrChildLangs = $slide->getArrChildrenLangs();
|
||||
$arrSlideLangCodes = $slide->getArrChildLangCodes();
|
||||
|
||||
$addItemStyle = "";
|
||||
if(RevSliderWpml::isAllLangsInArray($arrSlideLangCodes))
|
||||
$addItemStyle = "style='display:none'";
|
||||
}
|
||||
|
||||
$imageFilepath = $slide->getImageFilepath();
|
||||
$urlImageForView = $slide->getThumbUrl();
|
||||
|
||||
$slideTitle = $slide->getParam("title","Slide");
|
||||
$title = $slideTitle;
|
||||
$filename = $slide->getImageFilename();
|
||||
|
||||
$imageAlt = stripslashes($slideTitle);
|
||||
if(empty($imageAlt))
|
||||
$imageAlt = "slide";
|
||||
|
||||
if($bgType == "image")
|
||||
$title .= " (".$filename.")";
|
||||
|
||||
$slideid = $slide->getID();
|
||||
|
||||
$urlEditSlide = self::getViewUrl(RevSliderAdmin::VIEW_SLIDE,"id=$slideid");
|
||||
$linkEdit = RevSliderFunctions::getHtmlLink($urlEditSlide, $title);
|
||||
|
||||
$state = $slide->getParam("state","published");
|
||||
|
||||
?>
|
||||
<li id="slidelist_item_<?php echo $slideid; ?>" class="ui-state-default">
|
||||
|
||||
<span class="slide-col col-order">
|
||||
<span class="order-text"><?php echo $counter; ?></span>
|
||||
<div class="state_loader" style="display:none;"></div>
|
||||
<?php
|
||||
if($state == "published"){
|
||||
?>
|
||||
<div class="icon_state state_published" data-slideid="<?php echo $slideid; ?>" title="<?php _e("Unpublish Slide",'revslider'); ?>"></div>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<div class="icon_state state_unpublished" data-slideid="<?php echo $slideid; ?>" title="<?php _e("Publish Slide",'revslider'); ?>"></div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="icon_slide_preview" title="<?php _e('Preview Slide', 'revslider'); ?>" data-slideid="<?php echo $slideid; ?>"></div>
|
||||
|
||||
</span>
|
||||
|
||||
<span class="slide-col col-name">
|
||||
<div class="slide-title-in-list"><?php echo $linkEdit; ?></div>
|
||||
<a class='button-primary revgreen' href='<?php echo $urlEditSlide; ?>' style="width:120px; "><i class="revicon-pencil-1"></i><?php _e("Edit Slide",'revslider'); ?></a>
|
||||
</span>
|
||||
<span class="slide-col col-image">
|
||||
<?php
|
||||
switch($bgType){
|
||||
default:
|
||||
case "image":
|
||||
?>
|
||||
<div id="slide_image_<?php echo $slideid; ?>" style="background-image:url('<?php echo $urlImageForView; ?>');<?php echo $bgStyle; ?>" class="slide_image" title="<?php _e('Slide Image - Click to change', 'revslider'); ?>"></div>
|
||||
<?php
|
||||
break;
|
||||
case "solid":
|
||||
$bgColor = $slide->getParam("slide_bg_color","#d0d0d0");
|
||||
?>
|
||||
<div class="slide_color_preview" style="background-color:<?php echo $bgColor; ?>"></div>
|
||||
<?php
|
||||
break;
|
||||
case "trans":
|
||||
?>
|
||||
<div class="slide_color_preview_trans"></div>
|
||||
<?php
|
||||
break;
|
||||
}
|
||||
?>
|
||||
</span>
|
||||
|
||||
<span class="slide-col col-operations">
|
||||
<a id="" class='button-primary revred button_delete_slide ' style="width:120px; margin-top:8px !important" data-slideid="<?php echo $slideid; ?>" href='javascript:void(0)'><i class="revicon-trash"></i><?php _e("Delete",'revslider'); ?></a>
|
||||
<span class="loader_round loader_delete" style="display:none;"><?php _e("Deleting Slide...",'revslider'); ?></span>
|
||||
<a id="button_duplicate_slide_<?php echo $slideid?>" style="width:120px; " class='button-primary revyellow button_duplicate_slide' href='javascript:void(0)'><i class="revicon-picture"></i><?php _e("Duplicate",'revslider'); ?></a>
|
||||
<?php
|
||||
$copyButtonClass = "button-primary revblue button_copy_slide";
|
||||
$copyButtonTitle = __("Open copy / move dialog",'revslider');
|
||||
|
||||
if($numSliders == 0){
|
||||
$copyButtonClass .= " button-disabled";
|
||||
$copyButtonTitle = "Copy / move disabled, no more sliders found";
|
||||
}
|
||||
?>
|
||||
<a id="button_copy_slide_<?php echo $slideid; ?>" class='<?php echo $copyButtonClass; ?>' title="<?php echo $copyButtonTitle; ?>" style="width:120px; " href='javascript:void(0)'><i class="revicon-picture"></i><?php _e("Copy / Move",'revslider'); ?></a>
|
||||
<span class="loader_round loader_copy mtop_10 mleft_20 display_block" style="display:none;"><?php _e("Working...",'revslider'); ?></span>
|
||||
</span>
|
||||
|
||||
<span class="slide-col col-handle">
|
||||
<div class="col-handle-inside">
|
||||
<span class="ui-icon ui-icon-arrowthick-2-n-s"></span>
|
||||
</div>
|
||||
</span>
|
||||
<div class="clear"></div>
|
||||
<?php
|
||||
if($showLangs == true){
|
||||
?>
|
||||
<ul class="list_slide_icons">
|
||||
<?php
|
||||
foreach($arrChildLangs as $arrLang){
|
||||
$isParent = RevSliderFunctions::boolToStr($arrLang["isparent"]);
|
||||
$childSlideID = $arrLang["slideid"];
|
||||
$lang = $arrLang["lang"];
|
||||
$urlFlag = RevSliderWpml::getFlagUrl($lang);
|
||||
$langTitle = RevSliderWpml::getLangTitle($lang);
|
||||
?>
|
||||
<li>
|
||||
<img id="icon_lang_<?php echo $childSlideID; ?>" class="icon_slide_lang" src="<?php echo $urlFlag; ?>" title="<?php echo $langTitle; ?>" data-slideid="<?php echo $childSlideID; ?>" data-lang="<?php echo $lang; ?>" data-isparent="<?php echo $isParent; ?>">
|
||||
<div class="icon_lang_loader loader_round" style="display:none"></div>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<div id="icon_add_lang_<?php echo $slideid; ?>" class="icon_slide_lang_add" data-operation="add" data-slideid="<?php echo $slideid; ?>" <?php echo $addItemStyle; ?>></div>
|
||||
<div class="icon_lang_loader loader_round" style="display:none"></div>
|
||||
</li>
|
||||
</ul>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php if( !defined( 'ABSPATH') ) exit(); ?>
|
||||
<div class="wrap settings_wrap">
|
||||
|
||||
<div class="clear_both"></div>
|
||||
|
||||
<div class="title_line" style="margin-bottom:10px;">
|
||||
<?php
|
||||
$icon_general = '<div class="icon32" id="icon-options-general"></div>';
|
||||
echo apply_filters( 'rev_icon_general_filter', $icon_general );
|
||||
?>
|
||||
<h2><?php _e("Edit Slides",'revslider'); ?>: <?php echo $slider->getTitle(); ?></h2>
|
||||
|
||||
<a href="<?php echo RevSliderGlobals::LINK_HELP_SLIDE_LIST; ?>" class="button-secondary float_right mtop_10 mleft_10" target="_blank"><?php _e("Help",'revslider'); ?></a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="vert_sap"></div>
|
||||
<?php if($numSlides >= 5){?>
|
||||
<a class='button-primary' id="button_new_slide_top" href='javascript:void(0)' ><?php _e("New Slide",'revslider'); ?></a>
|
||||
<span class="hor_sap"></span>
|
||||
<a class='button-primary' id="button_new_slide_transparent_top" href='javascript:void(0)' ><?php _e("New Transparent Slide",'revslider'); ?></a>
|
||||
<span class="loader_round new_trans_slide_loader" style="display:none"><?php _e("Adding Slide...",'revslider'); ?></span>
|
||||
<span class="hor_sap_double"></span>
|
||||
<a class="button_close_slide button-primary mright_20" href='<?php echo self::getViewUrl(RevSliderAdmin::VIEW_SLIDERS); ?>' ><?php _e("Close",'revslider'); ?></a>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if($wpmlActive == true){ ?>
|
||||
<div id="langs_float_wrapper" class="langs_float_wrapper" style="display:none">
|
||||
<?php echo $langFloatMenu; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="vert_sap"></div>
|
||||
<div class="sliders_list_container">
|
||||
<?php require self::getPathTemplate("slides-list"); ?>
|
||||
</div>
|
||||
<div class="vert_sap_medium"></div>
|
||||
<a class='button-primary' id="button_new_slide" data-dialogtitle="<?php _e("Select image or multiple images to add slide or slides",'revslider'); ?>" href='javascript:void(0)' ><?php _e("New Slide",'revslider'); ?></a>
|
||||
<span class="hor_sap"></span>
|
||||
<a class='button-primary' id="button_new_slide_transparent" href='javascript:void(0)' ><?php _e("New Transparent Slide",'revslider'); ?></a>
|
||||
<span class="loader_round new_trans_slide_loader" style="display:none"><?php _e("Adding Slide...",'revslider'); ?></span>
|
||||
<span class="hor_sap_double"></span>
|
||||
<a class='button-primary revgray' href='<?php echo self::getViewUrl(RevSliderAdmin::VIEW_SLIDE,"id=static"); ?>' style="width:190px; "><i style="color:#fff" class="eg-icon-dribbble"></i><?php _e("Edit Static / Global Layers",'revslider'); ?></a>
|
||||
<span class="hor_sap_double"></span>
|
||||
<a class="button_close_slide button-primary" href='<?php echo self::getViewUrl(RevSliderAdmin::VIEW_SLIDERS); ?>' ><?php _e("Close",'revslider'); ?></a>
|
||||
<span class="hor_sap"></span>
|
||||
|
||||
<a href="<?php echo $linksSliderSettings; ?>" id="link_slider_settings"><?php _e("To Slider Settings",'revslider'); ?></a>
|
||||
|
||||
</div>
|
||||
|
||||
<?php require self::getPathTemplate("../system/dialog-copy-move"); ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
|
||||
RevSliderAdmin.initSlidesListView("<?php echo $sliderID; ?>");
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,297 @@
|
||||
<?php
|
||||
if( !defined( 'ABSPATH') ) exit();
|
||||
|
||||
?>
|
||||
<!-- THE TEMPLATE AREA -->
|
||||
<div id="template_area">
|
||||
<div id="template_header_part">
|
||||
<h2><span class="revlogo-mini" style="margin-right:15px;"></span><?php _e('Slider Template Library', 'revslider'); ?></h2>
|
||||
|
||||
<div id="close-template"></div>
|
||||
|
||||
<div class="revolution-template-switcher">
|
||||
<span style="display:table-cell;vertical-align:top">
|
||||
<span class="template_filter_button selected" data-type="temp_all"><?php _e('All Slides', 'revslider'); ?></span>
|
||||
<span class="template_filter_button" data-type="temp_slider"><?php _e('Slider', 'revslider'); ?></span>
|
||||
<span class="template_filter_button" data-type="temp_carousel"><?php _e('Carousel', 'revslider'); ?></span>
|
||||
<span class="template_filter_button" data-type="temp_hero"><?php _e('Hero', 'revslider'); ?></span>
|
||||
<span class="template_filter_button" data-type="template_free"><?php _e('Revolution Defaults', 'revslider'); ?></span>
|
||||
<span class="template_filter_button" data-type="template_premium"><?php _e('Premium Slider', 'revslider'); ?></span>
|
||||
<span class="template_filter_button template_local_filter" data-type="temp_existing"><?php _e('Local Slides', 'revslider'); ?></span>
|
||||
<span class="template_filter_button template_local_filter" data-type="temp_custom"><?php _e('User Templates', 'revslider'); ?></span>
|
||||
</span>
|
||||
<span style="display:table-cell;vertical-align:top;text-align:right">
|
||||
<span class="rs-reload-shop"><i class="eg-icon-arrows-ccw"></i><?php _e('Update Library', 'revslider'); ?></span>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
<div class="revolution-template-subtitle"><?php _e('Add Single Slide', 'revslider'); ?></div>
|
||||
</div>
|
||||
|
||||
<!-- THE REVOLUTION BASE TEMPLATES -->
|
||||
<div class="revolution-basic-templates revolution-template-groups" style="padding-top:20px">
|
||||
<!-- Template Slides will be added here -->
|
||||
</div>
|
||||
|
||||
|
||||
<!-- THE REVOLUTION CUSTOMER TEMPLATES -->
|
||||
<div class="revolution-customer-templates revolution-template-groups">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- THE ALL SLIDES GROUP -->
|
||||
<div class="revolution-all-slides-templates revolution-template-groups">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if(!isset($rs_disable_template_script)){
|
||||
?>
|
||||
<script>
|
||||
/*jQuery("document").ready(function() {
|
||||
templateSelectorHandling();
|
||||
});*/
|
||||
|
||||
function isElementInViewport(element,sctop,wh,rtgt) {
|
||||
var etp = parseInt(element.offset().top,0)-rtgt,
|
||||
etpp = parseInt(element.position().top,0),
|
||||
inviewport = false;
|
||||
if ((etp>-50) && (etp<wh+50))
|
||||
inviewport = true;
|
||||
return inviewport;
|
||||
}
|
||||
|
||||
function scrollTA() {
|
||||
var ta = jQuery('.revolution-template-groups'),
|
||||
st = ta.scrollTop(),
|
||||
wh = jQuery(window).height();
|
||||
|
||||
ta.find('.template_item:visible, .template_slide_item_img:visible').each(function() {
|
||||
|
||||
var el = jQuery(this),
|
||||
rtgt = parseInt(el.closest('.revolution-template-groups').offset().top,0);
|
||||
if (el.data('src')!=undefined && el.data('bgadded')!=1) {
|
||||
if (jQuery('#template_area').hasClass("show"))
|
||||
if (isElementInViewport(el,st,wh,rtgt)){
|
||||
el.css({backgroundImage:'url("'+el.data('src')+'")'});
|
||||
el.data('bgadded',1);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function templateSelectorHandling() {
|
||||
// TEMPLATE ELEMENTS
|
||||
|
||||
|
||||
// TEMPLATE ELEMENTS
|
||||
jQuery('.template_filter_button').on("click",function() {
|
||||
jQuery('#template_bigoverlay').fadeOut(100);
|
||||
jQuery('.template_thumb_more:visible').fadeOut(100);
|
||||
var btn = jQuery(this),
|
||||
sch = btn.data('type');
|
||||
jQuery('.template_filter_button').removeClass("selected");
|
||||
btn.addClass("selected");
|
||||
jQuery('.template_group_wrappers').hide();
|
||||
if (sch=="temp_all")
|
||||
jQuery('.template_group_wrappers').show();
|
||||
else
|
||||
jQuery('.'+sch).show();
|
||||
jQuery('.revolution-template-groups').scrollTop(0);
|
||||
scrollTA();
|
||||
});
|
||||
|
||||
|
||||
jQuery('.template_item, .template_slide_item_img').each(function() {
|
||||
var item = jQuery(this),
|
||||
gw = item.data('gridwidth'),
|
||||
gh = item.data('gridheight'),
|
||||
id = item.data('slideid'),
|
||||
w = 180;
|
||||
|
||||
if (gw==undefined || gw<=0) gw = w;
|
||||
if (gh==undefined || gh<=0) gh = w;
|
||||
|
||||
var h = Math.round((w/gw)*gh);
|
||||
//item.css({height:h+"px"});
|
||||
|
||||
var factor = w/gw;
|
||||
|
||||
var htitle = item.closest('.template_group_wrappers').find('h3');
|
||||
if (!htitle.hasClass("modificated")) {
|
||||
htitle.html(htitle.html()+" ("+gw+"x"+gh+")").addClass("modificated");
|
||||
}
|
||||
});
|
||||
|
||||
// CLOSE SLIDE TEMPLATE
|
||||
jQuery('#close-template').click(function() {
|
||||
jQuery('#template_area').removeClass("show");
|
||||
});
|
||||
|
||||
function templateButtonClicked(btn) {
|
||||
jQuery('.revolution-template-groups').each(function() { jQuery(this).hide();});
|
||||
jQuery("."+btn.data("showgroup")).show();
|
||||
jQuery('.revolution-templatebutton').removeClass("selected");
|
||||
btn.addClass("selected");
|
||||
scrollTA();
|
||||
jQuery('#template_area').perfectScrollbar();
|
||||
|
||||
if(btn.data("showgroup") == 'revolution-basic-templates' || btn.data("showgroup") == 'revolution-premium-templates'){
|
||||
jQuery('.revolution-filters').show();
|
||||
}else{
|
||||
jQuery('.revolution-filters').hide();
|
||||
}
|
||||
};
|
||||
|
||||
jQuery('body').on('click','.show_more_template_slider',function() {
|
||||
if (jQuery(this).hasClass("add_user_template_slide_item")) return true;
|
||||
jQuery('.temp_slide_single_wrapper').css({zIndex:2});
|
||||
var item = jQuery(this).closest('.temp_slide_single_wrapper');
|
||||
if (item.length>0) {
|
||||
|
||||
if (jQuery(window).width() - item.offset().left < item.width()*2.1)
|
||||
item.addClass("show_more_to_left")
|
||||
else
|
||||
item.removeClass("show_more_to_left");
|
||||
|
||||
item.find('.template_thumb_more').fadeIn(100);
|
||||
jQuery('#template_bigoverlay').fadeIn(100);
|
||||
item.css({zIndex:15});
|
||||
}
|
||||
});
|
||||
|
||||
jQuery('#template_bigoverlay').on('click',function() {
|
||||
jQuery('#template_bigoverlay').fadeOut(100);
|
||||
jQuery('.template_thumb_more:visible').fadeOut(100);
|
||||
});
|
||||
|
||||
|
||||
// TEMPLATE TAB CHANGE
|
||||
jQuery('body').on("click",'.revolution-templatebutton',function() {
|
||||
templateButtonClicked(jQuery(this));
|
||||
});
|
||||
|
||||
scrollTA();
|
||||
|
||||
function setTWHeight() {
|
||||
var w = jQuery(window).height(),
|
||||
wh = jQuery('#template_header_part').height();
|
||||
jQuery('.revolution-template-groups').css({height:(w-wh)+"px"});
|
||||
jQuery('.revolution-template-groups').perfectScrollbar("update");
|
||||
};
|
||||
|
||||
setTWHeight();
|
||||
jQuery(window).on("resize",setTWHeight);
|
||||
jQuery('.revolution-template-groups').perfectScrollbar();
|
||||
|
||||
document.addEventListener('ps-scroll-y', function (e) {
|
||||
if (jQuery(e.target).closest('.revolution-template-groups').length>0) {
|
||||
scrollTA();
|
||||
jQuery('#template_bigoverlay').css({top:jQuery('.revolution-template-groups').scrollTop()});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
jQuery(".input_import_slider").change(function(){
|
||||
if(jQuery(this).val() !== ''){
|
||||
jQuery('.rs-import-slider-button').show();
|
||||
}else{
|
||||
jQuery('.rs-import-slider-button').hide();
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
<?php
|
||||
if(isset($_REQUEST['update_shop'])){
|
||||
?>
|
||||
jQuery(document).ready(function(){
|
||||
var recalls_amount = 0;
|
||||
function callTemplateSlider() {
|
||||
recalls_amount++;
|
||||
if (recalls_amount>5000) {
|
||||
jQuery('#waitaminute').hide();
|
||||
} else {
|
||||
if (jQuery('#template_area').length>0) {
|
||||
scrollTA();
|
||||
jQuery('#template_area').addClass("show");
|
||||
jQuery('#waitaminute').hide();
|
||||
RevSliderAdmin.load_slide_template_html();
|
||||
} else {
|
||||
callTemplateSlider();
|
||||
}
|
||||
}
|
||||
}
|
||||
callTemplateSlider();
|
||||
});
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</script>
|
||||
|
||||
<!-- Import template slider dialog -->
|
||||
<div id="dialog_import_template_slide" title="<?php _e("Import Template Slide",'revslider'); ?>" class="dialog_import_template_slide" style="display:none">
|
||||
<form action="<?php echo RevSliderBase::$url_ajax; ?>" enctype="multipart/form-data" method="post">
|
||||
<input type="hidden" name="action" value="revslider_ajax_action">
|
||||
<input type="hidden" name="client_action" value="import_slide_template_slidersview">
|
||||
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce("revslider_actions"); ?>">
|
||||
<input type="hidden" name="uid" class="rs-uid" value="">
|
||||
<input type="hidden" name="slidenum" class="rs-slide-number" value="">
|
||||
<input type="hidden" name="slider_id" class="rs-slider-id" value="">
|
||||
<input type="hidden" name="redirect_id" class="rs-slide-id" value="">
|
||||
|
||||
<p><?php _e('Please select the corresponding zip file from the download packages import folder called', 'revslider'); ?>:</p>
|
||||
<p class="filetoimport"><b><span class="rs-zip-name"></span></b></p>
|
||||
<p class="import-file-wrapper"><input type="file" size="60" name="import_file" class="input_import_slider"></p>
|
||||
<span style="margin-top:45px;display:block"><input type="submit" class="rs-import-slider-button button-primary revblue tp-be-button" value="<?php _e("Import Template Slide",'revslider'); ?>"></span>
|
||||
<span class="tp-clearfix"></span>
|
||||
<span style="font-weight: 700;"><?php _e("Note: style templates will be updated if they exist!",'revslider'); ?></span><br><br>
|
||||
<table style="display: none;">
|
||||
<tr>
|
||||
<td><?php _e("Custom Animations:",'revslider'); ?></td>
|
||||
<td><input type="radio" name="update_animations" value="true" checked="checked"> <?php _e("overwrite",'revslider'); ?></td>
|
||||
<td><input type="radio" name="update_animations" value="false"> <?php _e("append",'revslider'); ?></td>
|
||||
</tr>
|
||||
<!--tr>
|
||||
<td><?php _e("Static Styles:",'revslider'); ?></td>
|
||||
<td><input type="radio" name="update_static_captions" value="true"> <?php _e("overwrite",'revslider'); ?></td>
|
||||
<td><input type="radio" name="update_static_captions" value="false"> <?php _e("append",'revslider'); ?></td>
|
||||
<td><input type="radio" name="update_static_captions" value="none" checked="checked"> <?php _e("ignore",'revslider'); ?></td>
|
||||
</tr-->
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="dialog_import_template_slide_from" title="<?php _e("Import Template Slide",'revslider'); ?>" class="dialog_import_template_slide_from" style="display:none">
|
||||
<?php _e('Import Slide from local or from ThemePunch online server?', 'revslider'); ?>
|
||||
<form action="<?php echo RevSliderBase::$url_ajax; ?>" enctype="multipart/form-data" method="post" name="rs-import-slide-template-from-server" id="rs-import-slide-template-from-server">
|
||||
<input type="hidden" name="action" value="revslider_ajax_action">
|
||||
<input type="hidden" name="client_action" value="import_slide_online_template_slidersview">
|
||||
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce("revslider_actions"); ?>">
|
||||
<input type="hidden" name="uid" class="rs-uid" value="">
|
||||
<input type="hidden" name="slidenum" class="rs-slide-number" value="">
|
||||
<input type="hidden" name="slider_id" class="rs-slider-id" value="">
|
||||
<input type="hidden" name="redirect_id" class="rs-slide-id" value="">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="dialog_import_template_slide_info" title="<?php _e('Importing Status','revslider'); ?>" class="dialog_import_template_slider_info" style="display:none;">
|
||||
<!-- ADD INFOS HERE ON DEMAND -->
|
||||
<div class="revslider_logo_rotating"><div class="revslidercycle"></div></div>
|
||||
<div id="install-slider-counter-wrapper"><span id="install-slider-counter"></span></div>
|
||||
<div id="nowinstalling_label"><?php _e('Now Installing','revslider'); ?></div>
|
||||
<div id="import_dialog_box_action"></div>
|
||||
<div id="import_dialog_box"></div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,350 @@
|
||||
<?php
|
||||
if( !defined( 'ABSPATH') ) exit();
|
||||
|
||||
$tmpl = new RevSliderTemplate();
|
||||
|
||||
$author_template_slider = $tmpl->getDefaultTemplateSliders();
|
||||
|
||||
$tmp_slider = new RevSlider();
|
||||
|
||||
$operations = new RevSliderOperations();
|
||||
$glob_vals = $operations->getGeneralSettingsValues();
|
||||
//$all_slider = $tmp_slider->getArrSliders();
|
||||
|
||||
?>
|
||||
<!-- THE TEMPLATE AREA -->
|
||||
<div id="template_area">
|
||||
<div id="template_header_part">
|
||||
<h2><span class="revlogo-mini" style="margin-right:15px;"></span><?php _e('Slider Template Library', 'revslider'); ?></h2>
|
||||
|
||||
<div id="close-template"></div>
|
||||
|
||||
<div class="revolution-template-switcher">
|
||||
<span id="template_filter_buttons_wrapper" style="display:table-cell;vertical-align:top">
|
||||
<?php
|
||||
if(!empty($author_template_slider) && is_array($author_template_slider)){
|
||||
foreach($author_template_slider as $name => $v){
|
||||
?>
|
||||
<span data-type="temp_<?php echo sanitize_title($name); ?>" class="template_filter_button"><?php echo esc_attr($name); ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<span style="display:none" id="selected_template_package_title">Light Content Block Page</span>
|
||||
<span style="display:none" id="leave_selected_template_package"><?php _e('Back', 'revslider'); ?></span>
|
||||
<span class="template_filter_button selected" data-type="temp_all"><?php _e('All Templates', 'revslider'); ?></span>
|
||||
<span class="template_filter_button" data-type="template_free"><?php _e('Free Templates', 'revslider'); ?></span>
|
||||
<span class="template_filter_button" data-type="template_premium"><?php _e('Premium Templates', 'revslider'); ?></span>
|
||||
<span class="template_filter_button" data-type="template_package_parent"><?php _e('Packages', 'revslider'); ?></span>
|
||||
<span class="template_filter_button" data-type="temp_slider"><?php _e('Slider', 'revslider'); ?></span>
|
||||
<span class="template_filter_button" data-type="temp_carousel"><?php _e('Carousel', 'revslider'); ?></span>
|
||||
<span class="template_filter_button" data-type="temp_hero"><?php _e('Hero', 'revslider'); ?></span>
|
||||
<span class="template_filter_button" data-type="temp_notinstalled"><?php _e('Not Installed', 'revslider'); ?></span>
|
||||
<span class="template_filter_button" data-type="temp_socialmedia"><?php _e('Social Media', 'revslider'); ?></span>
|
||||
<span class="template_filter_button" data-type="temp_postbased"><?php _e('Post-Based', 'revslider'); ?></span>
|
||||
<span class="template_filter_button temp_new_udpated" data-type="temp_newupdate"><?php _e('New / Updated', 'revslider'); ?></span>
|
||||
</span>
|
||||
<span style="display:table-cell;vertical-align:top;text-align:right">
|
||||
<span class="rs-reload-shop"><i class="eg-icon-arrows-ccw"></i><?php _e('Update Library', 'revslider'); ?></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- THE REVOLUTION BASE TEMPLATES -->
|
||||
<div class="revolution-template-groups">
|
||||
<!-- TEMPLATES WILL BE ADDED OVER AJAX -->
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function isElementInViewport(element,sctop,wh,rtgt) {
|
||||
var etp = parseInt(element.offset().top,0)-rtgt,
|
||||
etpp = parseInt(element.position().top,0),
|
||||
inviewport = false;
|
||||
//element.closest('.template_group_wrappers').find('.template_thumb_title').html("Offset:"+etp+" Scroll:"+sctop+" POffset:"+rtgt);
|
||||
if ((etp>-50) && (etp<wh+50))
|
||||
inviewport = true;
|
||||
return inviewport;
|
||||
}
|
||||
|
||||
function scrollTA() {
|
||||
var ta = jQuery('.revolution-template-groups'),
|
||||
st = ta.scrollTop(),
|
||||
rtgt = parseInt(jQuery('.revolution-template-groups').offset().top,0),
|
||||
wh = jQuery(window).height();
|
||||
|
||||
ta.find('.template_slider_item:visible, .template_slider_item_import:visible, .template_slider_item_img:visible').each(function() {
|
||||
var el = jQuery(this);
|
||||
if (el.data('src')!=undefined && el.data('bgadded')!=1) {
|
||||
if (jQuery('#template_area').hasClass("show"))
|
||||
if (isElementInViewport(el,st,wh,rtgt)){
|
||||
el.css({backgroundImage:'url("'+el.data('src')+'")'});
|
||||
el.data('bgadded',1);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
function setTWHeight() {
|
||||
var w = jQuery(window).height(),
|
||||
wh = jQuery('#template_header_part').height();
|
||||
jQuery('.revolution-template-groups').css({height:(w-wh)+"px"});
|
||||
jQuery('.revolution-template-groups').perfectScrollbar("update");
|
||||
scrollTA();
|
||||
};
|
||||
|
||||
function initTemplateSliders() {
|
||||
|
||||
|
||||
jQuery('#template_area').on('showitnow',scrollTA);
|
||||
|
||||
|
||||
jQuery('body').on('click','.show_more_template_slider',function() {
|
||||
jQuery('.template_group_wrappers').css({zIndex:2});
|
||||
var item = jQuery(this).closest('.template_group_wrappers');
|
||||
if (item.length>0) {
|
||||
if (jQuery(window).width() - item.offset().left < item.width()*2.1)
|
||||
item.addClass("show_more_to_left")
|
||||
else
|
||||
item.removeClass("show_more_to_left");
|
||||
|
||||
item.find('.template_thumb_more').fadeIn(100);
|
||||
jQuery('#template_bigoverlay').fadeIn(100);
|
||||
item.css({zIndex:15});
|
||||
}
|
||||
});
|
||||
|
||||
jQuery('body').on('click','#leave_selected_template_package',function() {
|
||||
jQuery('.template_filter_button.selected').click();
|
||||
jQuery('#leave_selected_template_package').hide();
|
||||
jQuery('#selected_template_package_title').hide();
|
||||
jQuery('.template_filter_button').show();
|
||||
});
|
||||
|
||||
// SHOW / HIDE THE SLIDERS IN PACKAGES
|
||||
jQuery('body').on('click','.template_group_opener',function() {
|
||||
var item = jQuery(this).closest('.template_package_parent'),
|
||||
title = item.find('.template_thumb_title').text();
|
||||
dg = item.data('package-group'),
|
||||
items = [];
|
||||
|
||||
|
||||
jQuery('.template_group_wrappers').each(function() {
|
||||
items.push(jQuery(this));
|
||||
});
|
||||
|
||||
jQuery('.template_filter_button').hide();
|
||||
jQuery('#leave_selected_template_package').show();
|
||||
jQuery('#selected_template_package_title').show();
|
||||
jQuery('#selected_template_package_title').html(title);
|
||||
jQuery('#template_filter_buttons_wrapper')
|
||||
if (dg!==undefined) {
|
||||
for (var i=0;i<items.length;i++) {
|
||||
if (items[i].hasClass(dg))
|
||||
items[i].fadeIn(100);
|
||||
else
|
||||
items[i].fadeOut(100);
|
||||
}
|
||||
setTimeout(scrollTA,100);
|
||||
}
|
||||
})
|
||||
|
||||
jQuery('#template_bigoverlay').on('click',function() {
|
||||
jQuery('#template_bigoverlay').fadeOut(100);
|
||||
jQuery('.template_thumb_more:visible').fadeOut(100);
|
||||
});
|
||||
|
||||
// TEMPLATE ELEMENTS
|
||||
jQuery('.template_filter_button').on("click",function() {
|
||||
jQuery('#template_bigoverlay').fadeOut(100);
|
||||
jQuery('.template_thumb_more:visible').fadeOut(100);
|
||||
var btn = jQuery(this),
|
||||
sch = btn.data('type');
|
||||
jQuery('.template_filter_button').removeClass("selected");
|
||||
btn.addClass("selected");
|
||||
jQuery('.template_group_wrappers').hide();
|
||||
if (sch=="temp_all") {
|
||||
jQuery('.template_group_wrappers').each(function() {
|
||||
var item = jQuery(this);
|
||||
if (!item.hasClass("template_package")) item.show();
|
||||
});
|
||||
} else {
|
||||
jQuery('.'+sch).each(function() {
|
||||
var item = jQuery(this);
|
||||
if ((sch==="template_free" || sch==="template_premium") && item.hasClass("template_package")) {
|
||||
item.hide();
|
||||
} else {
|
||||
item.show();
|
||||
}
|
||||
});
|
||||
}
|
||||
jQuery('.revolution-template-groups').scrollTop(0);
|
||||
scrollTA();
|
||||
|
||||
});
|
||||
|
||||
|
||||
jQuery('.template_slider_item, .template_slider_item_import').each(function() {
|
||||
var item = jQuery(this),
|
||||
gw = item.data('gridwidth'),
|
||||
gh = item.data('gridheight'),
|
||||
id = item.data('slideid'),
|
||||
w = 180;
|
||||
|
||||
if (gw==undefined || gw<=0) gw = w;
|
||||
if (gh==undefined || gh<=0) gh = w;
|
||||
|
||||
var h = Math.round((w/gw)*gh);
|
||||
//item.css({height:h+"px"});
|
||||
|
||||
var factor = w/gw;
|
||||
|
||||
var htitle = item.closest('.template_group_wrappers').find('h3');
|
||||
if (!htitle.hasClass("modificated")) {
|
||||
htitle.html(htitle.html()+" ("+gw+"x"+gh+")").addClass("modificated");
|
||||
}
|
||||
});
|
||||
|
||||
// CLOSE SLIDE TEMPLATE
|
||||
jQuery('#close-template').click(function() {
|
||||
jQuery('#template_area').removeClass("show");
|
||||
});
|
||||
|
||||
// TEMPLATE TAB CHANGE
|
||||
jQuery('body').on("click",'.revolution-templatebutton',function() {
|
||||
var btn = jQuery(this);
|
||||
jQuery('.revolution-template-groups').each(function() { jQuery(this).hide();});
|
||||
jQuery("."+btn.data("showgroup")).show();
|
||||
jQuery('.revolution-templatebutton').removeClass("selected");
|
||||
btn.addClass("selected");
|
||||
scrollTA();
|
||||
jQuery('.revolution-template-groups').perfectScrollbar("update");
|
||||
});
|
||||
|
||||
setTWHeight();
|
||||
jQuery(window).on("resize",setTWHeight);
|
||||
jQuery('.revolution-template-groups').perfectScrollbar();
|
||||
|
||||
document.addEventListener('ps-scroll-y', function (e) {
|
||||
if (jQuery(e.target).closest('.revolution-template-groups').length>0) {
|
||||
scrollTA();
|
||||
jQuery('#template_bigoverlay').css({top:jQuery('.revolution-template-groups').scrollTop()});
|
||||
}
|
||||
});
|
||||
|
||||
jQuery(".input_import_slider").change(function(){
|
||||
if(jQuery(this).val() !== ''){
|
||||
jQuery('.rs-import-slider-button').show();
|
||||
}else{
|
||||
jQuery('.rs-import-slider-button').hide();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
<?php
|
||||
if(isset($_REQUEST['update_shop'])){
|
||||
?>
|
||||
jQuery(document).ready(function(){
|
||||
var recalls_amount = 0;
|
||||
function callTemplateSlider() {
|
||||
recalls_amount++;
|
||||
if (recalls_amount>5000) {
|
||||
jQuery('#waitaminute').hide();
|
||||
} else {
|
||||
|
||||
if (jQuery('#template_area').length>0) {
|
||||
jQuery('#template_area').addClass("show");
|
||||
scrollTA();
|
||||
setTWHeight();
|
||||
jQuery('.revolution-template-groups').perfectScrollbar("update");
|
||||
jQuery('#waitaminute').hide();
|
||||
|
||||
RevSliderAdmin.load_slider_template_html();
|
||||
//jQuery('#button_import_template_slider').click();
|
||||
} else {
|
||||
callTemplateSlider();
|
||||
}
|
||||
}
|
||||
}
|
||||
callTemplateSlider();
|
||||
});
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
var slider_package_uids = {};
|
||||
var slider_package_names = {};
|
||||
</script>
|
||||
|
||||
|
||||
<!-- Import template slider dialog -->
|
||||
<div id="dialog_import_template_slider" title="<?php _e("Import Template Slider",'revslider'); ?>" class="dialog_import_template_slider" style="display:none">
|
||||
<form id="form-import-online-slider-local" action="<?php echo RevSliderBase::$url_ajax; ?>" enctype="multipart/form-data" method="post">
|
||||
<input type="hidden" name="action" value="revslider_ajax_action">
|
||||
<input type="hidden" name="client_action" value="import_slider_template_slidersview">
|
||||
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce("revslider_actions"); ?>">
|
||||
<input type="hidden" name="uid" class="rs-uid" value="">
|
||||
|
||||
<p><?php _e('Please select the corresponding zip file from the download packages import folder called', 'revslider'); ?>:</p>
|
||||
<p class="filetoimport"><b><span class="rs-zip-name"></span></b></p>
|
||||
<?php
|
||||
$single_page_creation = RevSliderFunctions::getVal($glob_vals, "single_page_creation", "off");
|
||||
?>
|
||||
<table style="margin: 20px 0;<?php echo ($single_page_creation == 'on') ? '' : 'display: none;'; ?>">
|
||||
<tr>
|
||||
<td><?php _e('Create Blank Page:','revslider'); ?></td>
|
||||
<td><input type="radio" name="page-creation" value="true"> <?php _e('Yes', 'revslider'); ?></td>
|
||||
<td><input type="radio" name="page-creation" value="false" checked="checked"> <?php _e('No', 'revslider'); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
|
||||
?>
|
||||
<p class="import-file-wrapper"><input type="file" size="60" name="import_file" class="input_import_slider "></p>
|
||||
<span style="margin-top:45px;display:block"><input type="submit" class="rs-import-slider-button button-primary revblue tp-be-button" value="<?php _e("Import Template Slider",'revslider'); ?>"></span>
|
||||
<span class="tp-clearfix"></span>
|
||||
<span style="font-weight: 700;"><?php _e("Note: style templates will be updated if they exist!",'revslider'); ?></span>
|
||||
<table style="display: none;">
|
||||
<tr>
|
||||
<td><?php _e("Custom Animations:",'revslider'); ?></td>
|
||||
<td><input type="radio" name="update_animations" value="true" checked="checked"> <?php _e('Overwrite','revslider'); ?></td>
|
||||
<td><input type="radio" name="update_animations" value="false"> <?php _e('Append','revslider'); ?></td>
|
||||
</tr>
|
||||
<!--tr>
|
||||
<td><?php _e("Static Styles:",'revslider'); ?></td>
|
||||
<td><input type="radio" name="update_static_captions" value="true"> <?php _e('Overwrite','revslider'); ?></td>
|
||||
<td><input type="radio" name="update_static_captions" value="false"> <?php _e('Append','revslider'); ?></td>
|
||||
<td><input type="radio" name="update_static_captions" value="none" checked="checked"> <?php _e('Ignore','revslider'); ?></td>
|
||||
</tr-->
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="dialog_import_template_slider_from" title="<?php _e("Import Template Slider",'revslider'); ?>" class="dialog_import_template_slider_from" style="display:none">
|
||||
<?php _e('Import Slider from local or from ThemePunch server?', 'revslider'); ?>
|
||||
<form action="<?php echo RevSliderBase::$url_ajax; ?>" enctype="multipart/form-data" method="post" name="rs-import-template-from-server" id="rs-import-template-from-server">
|
||||
<input type="hidden" name="action" value="revslider_ajax_action">
|
||||
<input type="hidden" name="client_action" value="import_slider_online_template_slidersview">
|
||||
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce("revslider_actions"); ?>">
|
||||
<input type="hidden" name="uid" class="rs-uid" value="">
|
||||
<input type="hidden" name="package" class="rs-package" value="false">
|
||||
<input type="hidden" name="page-creation" class="rs-page-creation" value="false">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="dialog_import_template_slider_info" title="<?php _e('Importing Status','revslider'); ?>" class="dialog_import_template_slider_info" style="display:none">
|
||||
<!-- ADD INFOS HERE ON DEMAND -->
|
||||
<div class="revslider_logo_rotating"><div class="revslidercycle"></div></div>
|
||||
<div id="install-slider-counter-wrapper"><span id="install-slider-counter"></span></div>
|
||||
<div id="nowinstalling_label"><?php _e('Now Installing','revslider'); ?></div>
|
||||
<div id="import_dialog_box_action"></div>
|
||||
<div id="import_dialog_box"></div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="dialog_import_template_slider_page_template" title="<?php _e("Create Blank Page",'revslider'); ?>" class="dialog_import_template_slider_page_template" style="display:none">
|
||||
<?php
|
||||
_e('Create a Blank Demo Page with this Slider added to it?', 'revslider');
|
||||
?>
|
||||
</div>
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
|
||||
if( !defined( 'ABSPATH') ) exit();
|
||||
|
||||
$urlIconDelete = RS_PLUGIN_URL."admin/assets/images/icon-trash.png";
|
||||
$urlIconEdit = RS_PLUGIN_URL."admin/assets/images/icon-edit.png";
|
||||
$urlIconPreview = RS_PLUGIN_URL."admin/assets/images/preview.png";
|
||||
|
||||
$textDelete = __("Delete Slide",'revslider');
|
||||
$textEdit = __("Edit Slide",'revslider');
|
||||
$textPreview = __("Preview Slide",'revslider');
|
||||
|
||||
$htmlBefore = "";
|
||||
$htmlBefore .= "<li class='item_operation operation_delete'><a data-operation='delete' href='javascript:void(0)'>"."\n";
|
||||
$htmlBefore .= "<img src='".$urlIconDelete."'/> ".$textDelete."\n";
|
||||
$htmlBefore .= "</a></li>"."\n";
|
||||
|
||||
$htmlBefore .= "<li class='item_operation operation_edit'><a data-operation='edit' href='javascript:void(0)'>"."\n";
|
||||
$htmlBefore .= "<img src='".$urlIconEdit."'/> ".$textEdit."\n";
|
||||
$htmlBefore .= "</a></li>"."\n";
|
||||
|
||||
$htmlBefore .= "<li class='item_operation operation_preview'><a data-operation='preview' href='javascript:void(0)'>"."\n";
|
||||
$htmlBefore .= "<img src='".$urlIconPreview."'/> ".$textPreview."\n";
|
||||
$htmlBefore .= "</a></li>"."\n";
|
||||
|
||||
$htmlBefore .= "<li class='item_operation operation_sap'>"."\n";
|
||||
$htmlBefore .= "<div class='float_menu_sap'></div>"."\n";
|
||||
$htmlBefore .= "</a></li>"."\n";
|
||||
|
||||
$langFloatMenu = RevSliderWpml::getLangsWithFlagsHtmlList("id='slides_langs_float' class='slides_langs_float'",$htmlBefore);
|
||||
|
||||
?>
|
||||
<div id="langs_float_wrapper" class="langs_float_wrapper" style="display:none">
|
||||
<?php echo $langFloatMenu; ?>
|
||||
</div>
|
||||
|
||||
<div id="rev_lang_list">
|
||||
<div class="slide_langs_selector editor_buttons_wrapper postbox unite-postbox" style="margin-bottom:20px; max-width:100% !important; min-width:1040px !important;">
|
||||
<div class="slide-main-settings-form" style="padding:15px;">
|
||||
|
||||
<label style="display:inline-block; margin-right:15px;"><?php _e("Choose slide language",'revslider'); ?>:</label>
|
||||
|
||||
<ul class="list_slide_icons" style="display:inline-block; vertical-align: middle; margin-bottom:0px;">
|
||||
<?php
|
||||
$langSlide = $slide->getParentSlide(); //go to parent slide if nessecary here
|
||||
$arrSlideLangCodes = $langSlide->getArrChildLangCodes();
|
||||
$parent_id = $langSlide->getID();
|
||||
|
||||
$addItemStyle = "";
|
||||
if(RevSliderWpml::isAllLangsInArray($arrSlideLangCodes))
|
||||
$addItemStyle = "style='display:none'";
|
||||
|
||||
foreach($arrChildLangs as $arrLang){
|
||||
$isParent = RevSliderFunctions::boolToStr($arrLang["isparent"]);
|
||||
$childSlideID = $arrLang["slideid"];
|
||||
$lang = $arrLang["lang"];
|
||||
$urlFlag = RevSliderWpml::getFlagUrl($lang);
|
||||
$langTitle = RevSliderWpml::getLangTitle($lang);
|
||||
$class = "";
|
||||
$urlEditSlide = self::getViewUrl(RevSliderAdmin::VIEW_SLIDE,"id=$childSlideID");
|
||||
if($childSlideID == $slideID){
|
||||
$class = "lang-selected";
|
||||
$urlEditSlide = "javascript:void(0)";
|
||||
}
|
||||
if($lang == 'all'){
|
||||
$urlFlag = RS_PLUGIN_URL.'admin/assets/images/icon-all.png';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo $class; ?>">
|
||||
<img id="icon_lang_<?php echo $childSlideID; ?>" class="icon_slide_lang" src="<?php echo $urlFlag; ?>" title="<?php echo $langTitle; ?>" data-slideid="<?php echo $childSlideID; ?>" data-lang="<?php echo $lang; ?>" data-isparent="<?php echo $isParent; ?>">
|
||||
<div class="icon_lang_loader loader_round" style="display:none"></div>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
<li>
|
||||
<div id="icon_add_lang_<?php echo $slideID; ?>" class="icon_slide_lang_add" data-operation="add" data-slideid="<?php echo $slideID; ?>" data-origid="<?php echo $parent_id; ?>" <?php echo $addItemStyle; ?>></div>
|
||||
<div class="icon_lang_loader loader_round" style="display:none"></div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user