Ejemplo n.º 1
0
    $TS_VCSC_Export_Options['ts_vcsc_extend_settings_tinymce' . $iconfont['setting']] = ${'ts_vcsc_extend_settings_tinymce' . $iconfont['setting'] . ''};
    ${'ts_vcsc_extend_settings_load' . $iconfont['setting'] . ''} = get_option('ts_vcsc_extend_settings_load' . $iconfont['setting'], 0);
    $TS_VCSC_Export_Options['ts_vcsc_extend_settings_load' . $iconfont['setting']] = ${'ts_vcsc_extend_settings_load' . $iconfont['setting'] . ''};
}
// Google Fonts Manager
$TS_VCSC_Google_Defaults = get_option('ts_vcsc_extend_settings_fontDefaults', '');
$TS_VCSC_Export_Options['ts_vcsc_extend_settings_fontDefaults'] = $TS_VCSC_Google_Defaults;
// Custom CSS Settings
$TS_VCSC_Custom_CSS = get_option('ts_vcsc_extend_custom_css', get_option('ts_vcsc_extend_settings_customCSS', ''));
$TS_VCSC_Export_Options['ts_vcsc_extend_custom_css'] = $TS_VCSC_Custom_CSS;
// Custom JS Settings
$TS_VCSC_Custom_JS = get_option('ts_vcsc_extend_custom_js', get_option('ts_vcsc_extend_settings_customJS', ''));
$TS_VCSC_Export_Options['ts_vcsc_extend_custom_js'] = $TS_VCSC_Custom_JS;
// Create Import / Export Array
$TS_VCSC_JSON_PRETTY_PRINT = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : null;
$TS_VCSC_Export_Options = json_encode(array('plugin' => 'Composium - Visual Composer Extensions', 'version' => TS_VCSC_GetPluginVersion(), 'date' => date('Y-m-d H:i:s'), 'settings' => $TS_VCSC_Export_Options), $TS_VCSC_JSON_PRETTY_PRINT);
update_option('ts_vcsc_extend_settings_exportSettings', str_replace('<br/>', PHP_EOL, $TS_VCSC_Export_Options));
//var_dump($TS_VCSC_Export_Options);
?>

<div id="ts-settings-transfers" class="tab-content">
	<form id="ts_vcsc_settings_upload_json_form" enctype="multipart/form-data" action="" method="POST">
		<div class="ts-vcsc-settings-group-header">
			<div class="display_header">
				<h2><span class="dashicons dashicons-migrate"></span>Visual Composer Extensions - Import / Export Settings</h2>
			</div>
			<div class="clear"></div>
		</div>		
		<div class="ts-vcsc-settings-transfer-main">
			<div class="ts-vcsc-section-main">
				<div class="ts-vcsc-section-title ts-vcsc-section-show"><i class="dashicons-desktop"></i>General Information</div>
Ejemplo n.º 2
0
<div id="ts-settings-about" class="tab-content">
	<div class="ts-vcsc-settings-group-header">
		<div class="display_header">
			<h2><span class="dashicons dashicons-info"></span>Welcome to "Composium - Visual Composer Extensions" v<?php 
echo TS_VCSC_GetPluginVersion();
?>
</h2>
		</div>
		<div class="clear"></div>
	</div>		
	<div class="ts-vcsc-settings-transfer-main">
		
		<?php 
if (get_option('ts_vcsc_extend_settings_activation', 0) == 1) {
    echo '<div class="ts-vcsc-info-field ts-vcsc-success" style="margin-top: 10px; text-align: justify;">
					<div style="font-size: 16px; font-weight: bold;margin-bottom: 20px;">Hi there! You successfull installed and activated "Composium - Visual Composer Extensions v' . TS_VCSC_GetPluginVersion() . '"!</div>
					<div style="font-size: 13px; font-weight: bold;">We hope you enjoy using this add-on to Visual Composer; our support (for licenses users) is here to help you with any questions or problems
					you might have.</div>
				</div>';
    echo '<div class="ts-vcsc-info-field ts-vcsc-warning" style="margin-top: 10px; margin-bottom: 30px !important; font-size: 13px; text-align: justify; font-weight: bold;">
					<div style="font-size: 13px; font-weight: normal;">The most common problem users experience is a lack of sufficient available PHP server memory, after having installed a premium theme and
					many other plugins prior to this one, using up the allocated memory already. So we included a <a href="#ts-vcsc-welcome-memory">basic memory</a> check below to let you know where your site stands.</div>
					<div style="font-size: 13px; font-weight: normal; margin-top: 20px;">If everything is greenlighted for you there, your next step should be to take some time and go through the extensive
					<a href="' . $VISUAL_COMPOSER_EXTENSIONS->settingsLink . '" target="_parent">setting options</a> for the add-on and to activate the elements and features your are planning
					on using or to deactivate the ones you do not need. Activating only the things you need will dramatically improve performance, which is why we made this add-on modular.</div>
				</div>';
    update_option('ts_vcsc_extend_settings_activation', 0);
}
?>
		
		<div id="ts-vcsc-welcome-about" class="ts-vcsc-section-main">
 function TS_VCSC_DashboardHelpContent()
 {
     $output = '';
     $output .= '<p><strong>Welcome to "Composium - Visual Composer Extensions"!</strong></p>';
     if (function_exists('get_plugin_data')) {
         $output .= '<p>Current Version: ' . TS_VCSC_GetPluginVersion();
     }
     if (function_exists('is_multisite') && is_multisite()) {
         $output .= '<p>Multisite Environment: Yes</p>';
         $output .= '<p>Plugin Activated Network Wide: ' . ($this->TS_VCSC_PluginIsMultiSiteActive == "true" ? "Yes" : "No") . '</p>';
     } else {
         $output .= '<p>Multisite Environment: No</p>';
     }
     $output .= '<p>Available Elements: ' . $this->TS_VCSC_CountTotalElements . ' / <span style="font-weight: bold; color: #0078CE;">Active Elements: ' . $this->TS_VCSC_CountActiveElements . '</span></p>';
     if ($this->TS_VCSC_EditorIconFontsInternal == "true") {
         $TS_VCSC_TotalIconFontsInstalled = count($this->TS_VCSC_Installed_Icon_Fonts) + count($this->TS_VCSC_Composer_Icon_Fonts);
     } else {
         $TS_VCSC_TotalIconFontsInstalled = count($this->TS_VCSC_Installed_Icon_Fonts);
     }
     if (get_option('ts_vcsc_extend_settings_tinymceCustomArray', '') != '') {
         $output .= '<p>Available Fonts: ' . $TS_VCSC_TotalIconFontsInstalled . ' / <span style="font-weight: bold; color: #0078CE;">Active Fonts: ' . $this->TS_VCSC_Active_Icon_Fonts . '</span></p>';
     } else {
         $output .= '<p>Available Fonts: ' . ($TS_VCSC_TotalIconFontsInstalled - 1) . ' / <span style="font-weight: bold; color: #0078CE;">Active Fonts: ' . $this->TS_VCSC_Active_Icon_Fonts . '</span></p>';
     }
     $output .= '<p>Available Icons: ' . number_format($this->TS_VCSC_Total_Icon_Count) . ' / <span style="font-weight: bold; color: #0078CE;">Active Icons: ' . number_format($this->TS_VCSC_Active_Icon_Count) . '</span></p>';
     if (get_option('ts_vcsc_extend_settings_extended', 0) == 1) {
         $output .= '<p style="text-align: justify;">Need help? Please contact the developer of your theme as it includes the plugin via extended license.<br/><br/>';
     } else {
         $output .= '<p style="text-align: justify;">Need help? Contact the developer at:<br/><a href="mailto:tekanewascripts@yahoo.com">support@tekanewascripts.info</a><br/><br/>';
     }
     $output .= 'You will find the manual here:<br/><a href="http://tekanewascripts.info/composer/manual/" target="_blank">http://tekanewascripts.info/composer/manual/</a></p>';
     echo $output;
 }
<form id="ts_vcsc_extend_settings" data-type="settings" class="ts_vcsc_extend_global_settings" name="ts_vcsc_extend_settings" style="margin-top: 25px; width: 100%;" method="post" action="<?php 
echo str_replace('%7E', '~', $_SERVER['REQUEST_URI']);
?>
">

	<span id="gallery_settings_true" style="display: none !important; margin-bottom: 20px;">
		<input type="text" style="width: 20%;" id="ts_vcsc_extend_settings_true" name="ts_vcsc_extend_settings_true" value="0" size="100">
		<input type="text" style="width: 20%;" id="ts_vcsc_extend_settings_count" name="ts_vcsc_extend_settings_count" value="0" size="100">
	</span>

	<div class="wrapper ts-vcsc-settings-group-container">		
		<div class="ts-vcsc-settings-group-header">
			<div class="display_header">
				<h2><span class="dashicons dashicons-admin-generic"></span>Visual Composer Extensions v<?php 
echo TS_VCSC_GetPluginVersion();
?>
 - Options Panel</h2>
			</div>
			<div class="clear"></div>
		</div>
		<div class="ts-vcsc-settings-group-topbar ts-vcsc-settings-group-buttonbar">
			<a href="javascript:void(0);" class="ts-vcsc-settings-group-toggle">Expand</a>
			<div class="ts-vcsc-settings-group-actionbar">
				<input type="submit" name="Submit" id="ts_vcsc_extend_settings_submit_1" class="button button-primary" value="Save Settings">
			</div>
			<div class="clear"></div>
		</div>		
		<div id="v-nav" class="ts-vcsc-settings-group-tabs">
			<ul id="v-nav-main" data-type="settings">
				<li id="link-ts-settings-logo" class="first" style="border-bottom: 1px solid #DDD; height: 76px;">