Initial Commit
This commit is contained in:
commit
e8f7955c1c
5432 files changed
+1397750
No files matched your search
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
/**
|
||||
* Branding footer view.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
||||
$logo = '<svg xmlns="http://www.w3.org/2000/svg" class="wu-fill-current wu-mx-1 wu-align-bottom" width="90" viewBox="0 0 371 76">
|
||||
<path d="M75.527,272.247 L75.527,235.533 C76.223,235.417 77.296,235.272 78.746,235.098 C80.196,234.924 81.588,234.837 82.922,234.837 C84.72,234.837 86.2425,235.0835 87.4895,235.5765 C88.7365,236.0695 89.7225,236.8525 90.4475,237.9255 C91.1725,238.9985 91.6945,240.3905 92.0135,242.1015 C92.3325,243.8125 92.492,245.886 92.492,248.322 L92.492,248.322 L92.492,272.247 L103.019,272.247 L103.019,246.669 C103.019,243.595 102.7145,240.7675 102.1055,238.1865 C101.4965,235.6055 100.4525,233.4015 98.9735,231.5745 C97.4945,229.7475 95.508,228.3265 93.014,227.3115 C90.52,226.2965 87.417,225.789 83.705,225.789 C79.761,225.789 76.165,226.05 72.917,226.572 C69.669,227.094 67.03,227.645 65,228.225 L65,228.225 L65,272.247 L75.527,272.247 Z M134.049419,273.378 C135.615419,273.378 137.152419,273.291 138.660419,273.117 C140.168419,272.943 141.574919,272.7255 142.879919,272.4645 C144.184919,272.2035 145.344919,271.9135 146.359919,271.5945 C147.374919,271.2755 148.172419,270.971 148.752419,270.681 L148.752419,270.681 L147.360419,262.068 C146.142419,262.59 144.474919,263.083 142.357919,263.547 C140.240919,264.011 137.906419,264.243 135.354419,264.243 C131.004419,264.243 127.683919,263.2425 125.392919,261.2415 C123.101919,259.2405 121.811419,256.413 121.521419,252.759 L121.521419,252.759 L151.536419,252.759 C151.594419,252.179 151.637919,251.5265 151.666919,250.8015 C151.695919,250.0765 151.710419,249.424 151.710419,248.844 C151.710419,241.13 149.955919,235.33 146.446919,231.444 C142.937919,227.558 138.051419,225.615 131.787419,225.615 C129.119419,225.615 126.509419,226.1225 123.957419,227.1375 C121.405419,228.1525 119.143419,229.6605 117.171419,231.6615 C115.199419,233.6625 113.618919,236.171 112.429919,239.187 C111.240919,242.203 110.646419,245.712 110.646419,249.714 C110.646419,253.136 111.110419,256.2825 112.038419,259.1535 C112.966419,262.0245 114.387419,264.5185 116.301419,266.6355 C118.215419,268.7525 120.651419,270.4055 123.609419,271.5945 C126.567419,272.7835 130.047419,273.378 134.049419,273.378 Z M141.183419,245.016 L121.608419,245.016 C121.782419,243.682 122.101419,242.377 122.565419,241.101 C123.029419,239.825 123.681919,238.694 124.522919,237.708 C125.363919,236.722 126.393419,235.9245 127.611419,235.3155 C128.829419,234.7065 130.250419,234.402 131.874419,234.402 C133.440419,234.402 134.788919,234.6775 135.919919,235.2285 C137.050919,235.7795 138.007919,236.5335 138.790919,237.4905 C139.573919,238.4475 140.168419,239.5785 140.574419,240.8835 C140.980419,242.1885 141.183419,243.566 141.183419,245.016 L141.183419,245.016 Z M165.340838,272.247 C166.616838,269.811 168.226338,267.0125 170.169338,263.8515 C172.112338,260.6905 174.098838,257.805 176.128838,255.195 C177.114838,256.529 178.129838,257.95 179.173838,259.458 C180.217838,260.966 181.218338,262.4885 182.175338,264.0255 C183.132338,265.5625 184.031338,267.0415 184.872338,268.4625 C185.713338,269.8835 186.394838,271.145 186.916838,272.247 L186.916838,272.247 L198.313838,272.247 C196.457838,268.593 194.094338,264.6925 191.223338,260.5455 C188.352338,256.3985 185.350838,252.295 182.218838,248.235 L182.218838,248.235 L197.182838,226.746 L186.133838,226.746 L176.476838,241.623 L166.819838,226.746 L155.248838,226.746 L170.299838,248.583 C168.849838,250.439 167.385338,252.3965 165.906338,254.4555 C164.427338,256.5145 162.991838,258.5735 161.599838,260.6325 C160.207838,262.6915 158.902838,264.707 157.684838,266.679 C156.466838,268.651 155.422838,270.507 154.552838,272.247 L154.552838,272.247 L165.340838,272.247 Z M219.687257,273.291 C222.355257,273.291 224.675257,273.0155 226.647257,272.4645 C228.619257,271.9135 230.214257,271.377 231.432257,270.855 L231.432257,270.855 L229.692257,262.503 C228.822257,262.851 227.647757,263.228 226.168757,263.634 C224.689757,264.04 222.993257,264.243 221.079257,264.243 C218.295257,264.243 216.323257,263.46 215.163257,261.894 C214.003257,260.328 213.423257,257.718 213.423257,254.064 L213.423257,254.064 L213.423257,235.533 L229.605257,235.533 L229.605257,226.746 L213.423257,226.746 L213.423257,213 L202.896257,214.74 L202.896257,254.151 C202.896257,257.167 203.157257,259.8495 203.679257,262.1985 C204.201257,264.5475 205.100257,266.5485 206.376257,268.2015 C207.652257,269.8545 209.377757,271.116 211.552757,271.986 C213.727757,272.856 216.439257,273.291 219.687257,273.291 Z M260.20743,250.516887 L251.175537,259.54878 L258.121138,259.54878 L269.700378,247.969539 L258.121138,236.390299 L251.175537,236.390299 L260.20743,245.422191 L240.1,245.422 L244.246676,228.138 C246.373343,227.5 248.780242,226.92292 251.467374,226.40676 L252.207176,226.2675 C255.194176,225.7165 258.427676,225.441 261.907676,225.441 C265.155676,225.441 267.954176,225.934 270.303176,226.92 C272.652176,227.906 274.580676,229.2545 276.088676,230.9655 C277.596676,232.6765 278.713176,234.6775 279.438176,236.9685 C280.163176,239.2595 280.525676,241.71 280.525676,244.32 C280.525676,248.554 279.829676,252.4255 278.437676,255.9345 C277.045676,259.4435 275.117176,262.474 272.652176,265.0
Line truncated
|
||||
</svg>
|
||||
';
|
||||
|
||||
?>
|
||||
|
||||
<div id="wp-ultimo-footer" class="wu-pt-6 wu-pb-1 wu--mx-5 wu-mb-0 wu-text-gray-500 wu-text-center wu-bg-gray-100 wu-border-0 wu-border-gray-300 wu-border-t wu-border-solid">
|
||||
|
||||
<span id="wu-tagline" class="wu-uppercase wu-text-xs wu-font-medium wu-tracking-wider">
|
||||
<?php printf(__('A <a class="wu-text-gray-500 hover:wu-text-gray-600 wu-no-underline" href="%1$s" target="_blank">%2$s</a> invention', 'wp-ultimo'), esc_url('https://nextpress.co/?utm_source=wp-admin&utm_medium=footer&utm_campaign=footer'), $logo); ?>
|
||||
</span>
|
||||
|
||||
<ul id="wu-footer-nav" class="wu-text-xs wu-pb-0">
|
||||
<li class="wu-inline-block wu-mx-1 wu-font-medium">
|
||||
<?php printf(__('Version %s', 'wp-ultimo'), wu_get_version()); ?>
|
||||
</li>
|
||||
|
||||
<?php if (WP_Ultimo()->is_loaded()) : ?>
|
||||
|
||||
<li class="wu-inline-block wu-mx-1">
|
||||
<a href="<?php echo wu_network_admin_url('wp-ultimo-system-info'); ?>" class="wu-text-gray-500 hover:wu-text-gray-600">
|
||||
<?php _e('System Info', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<li class="wu-inline-block wu-mx-1">
|
||||
<a href="<?php echo wu_network_admin_url('wp-ultimo-shortcodes'); ?>" class="wu-text-gray-500 hover:wu-text-gray-600">
|
||||
<?php _e('Available Shortcodes', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (WP_Ultimo()->is_loaded()) : ?>
|
||||
|
||||
<li class="wu-inline-block wu-mx-1">
|
||||
<a href="<?php echo wu_network_admin_url('wp-ultimo-settings'); ?>" class="wu-text-gray-500 hover:wu-text-gray-600">
|
||||
<?php _e('Settings', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (WP_Ultimo()->is_loaded()) : ?>
|
||||
|
||||
<li class="wu-inline-block wu-mx-1">
|
||||
<a href="<?php echo wu_network_admin_url('wp-ultimo-jobs'); ?>" class="wu-text-gray-500 hover:wu-text-gray-600">
|
||||
<?php _e('Job Queue', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php do_action('wu_footer_left'); ?>
|
||||
<li class="wu-inline-block wu-mx-2">
|
||||
•
|
||||
</li>
|
||||
<li class="wu-inline-block wu-mx-1">
|
||||
<a href="https://wpultimo.com/?utm_source=wp-admin&utm_medium=footer&utm_campaign=footer" target="_blank" class="wu-text-gray-500 hover:wu-text-gray-600">
|
||||
<?php _e('Homepage', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<li class="wu-inline-block wu-mx-1">
|
||||
<a href="https://wpultimo.com/contact-us-support/?utm_source=wp-admin&utm_medium=footer&utm_campaign=footer" target="_blank" class="wu-text-gray-500 hover:wu-text-gray-600">
|
||||
<?php _e('Support', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<li class="wu-inline-block wu-mx-1">
|
||||
<a href="https://help.wpultimo.com/?utm_source=wp-admin&utm_medium=footer&utm_campaign=footer" target="_blank" class="wu-text-gray-500 hover:wu-text-gray-600">
|
||||
<?php _e('Knowledge Base', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<li class="wu-inline-block wu-mx-1">
|
||||
<a href="https://community.wpultimo.com/home" target="_blank" class="wu-text-gray-500 hover:wu-text-gray-600">
|
||||
<?php _e('Community', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<li class="wu-inline-block wu-mx-1">
|
||||
<a href="http://wpultimo.com/changelog" target="_blank" class="wu-text-gray-500 hover:wu-text-gray-600">
|
||||
<?php _e('Changelog', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
/**
|
||||
* Branding header view.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
?>
|
||||
<div id="wp-ultimo-header" class="wu-px-4 wu--ml-5 wu-bg-white wu-border-0 wu-border-gray-300 wu-border-b wu-border-solid wu-pb-3 sm:wu-py-3 sm:wu-pt-3 wu-hidden sm:wu-flex">
|
||||
|
||||
<div class="wu-w-7/12 wu-self-center">
|
||||
|
||||
<span class="dashicons-before dashicons-wu-wp-ultimo"></span>
|
||||
|
||||
<div class="wu-text-gray-600 wu-uppercase wu-text-xs wu-font-bold wu-align-middle wu-ml-2 wu-hidden md:wu-inline-block">
|
||||
|
||||
<?php if (WP_Ultimo()->is_loaded()) : ?>
|
||||
|
||||
<div class="wu-hidden md:wu-inline-block">
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Allow plugin developers to add more elements on left header container.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param \WP_Ultimo\Admin_Pages\Base_Admin_Page $page WP Ultimo admin page instance.
|
||||
*/
|
||||
do_action('wu_header_left', $page);
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wu-w-5/12 wu-text-right wu-self-center">
|
||||
|
||||
<?php if (WP_Ultimo()->is_loaded()) : ?>
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Allow plugin developers to add more elements on right header container.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param \WP_Ultimo\Admin_Pages\Base_Admin_Page $page WP Ultimo admin page instance.
|
||||
*/
|
||||
do_action('wu_header_right', $page);
|
||||
|
||||
?>
|
||||
|
||||
<small class="wu-ticker-container wu-hidden md:wu-inline-block">
|
||||
<strong>
|
||||
<span class="wu-inline-block wu-bg-gray-200 wu-rounded-full wu-py-1 wu-pl-2 wu-pr-3 wu-uppercase">
|
||||
<span title="<?php esc_attr_e('Server Clock', 'wp-ultimo'); ?>" class="dashicons dashicons-wu-clock wu-text-sm wu-w-auto wu-h-auto wu-align-text-top wu-mr-1 wu-relative"></span>
|
||||
<span id="wu-ticker" class="wu-font-mono wu-font-normal">
|
||||
<?php echo gmdate('Y-m-d H:i:s', wu_get_current_time('timestamp')); ?>
|
||||
</span>
|
||||
</span>
|
||||
</strong>
|
||||
</small>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/**
|
||||
* Jumper trigger view.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
?>
|
||||
<small>
|
||||
<strong>
|
||||
<a id="wu-container-toggle" role="tooltip" aria-label='<?php _e('Toggle container', 'wp-ultimo'); ?>' href="#" class="wu-tooltip wu-inline-block wu-py-1 wu-pl-2 md:wu-pr-3 wu-uppercase wu-text-gray-600 wu-no-underline">
|
||||
|
||||
<span title="<?php esc_attr_e('Boxed', 'wp-ultimo'); ?>" class="wu-use-container dashicons dashicons-wu-arrow-with-circle-left wu-text-sm wu-w-auto wu-h-auto wu-align-text-bottom wu-relative"></span>
|
||||
<span class="wu-font-bold wu-use-container">
|
||||
<?php esc_attr_e('Boxed', 'wp-ultimo'); ?>
|
||||
</span>
|
||||
|
||||
<span title="<?php esc_attr_e('Boxed', 'wp-ultimo'); ?>" class="wu-no-container dashicons dashicons-wu-arrow-with-circle-right wu-text-sm wu-w-auto wu-h-auto wu-align-text-bottom wu-relative"></span>
|
||||
<span class="wu-font-bold wu-no-container">
|
||||
<?php esc_attr_e('Wide', 'wp-ultimo'); ?>
|
||||
</span>
|
||||
|
||||
</a>
|
||||
</strong>
|
||||
</small>
|
||||
|
||||
<style>
|
||||
body.has-wu-container .wu-no-container {
|
||||
display: none;
|
||||
}
|
||||
body:not(.has-wu-container) .wu-use-container {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
(function($) {
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#wu-container-toggle').on('click', function(e) {
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
wu_block_ui('#wpcontent');
|
||||
|
||||
$.ajax(ajaxurl + '?action=wu_toggle_container&nonce=<?php echo wp_create_nonce('wu_toggle_container'); ?>').done(function() {
|
||||
|
||||
$('.wrap').toggleClass('admin-lg:wu-container admin-lg:wu-mx-auto');
|
||||
|
||||
$('body').toggleClass('has-wu-container');
|
||||
|
||||
wu_block_ui('#wpcontent').unblock();
|
||||
|
||||
});;
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}(jQuery));
|
||||
</script>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Jumper trigger view.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
?>
|
||||
<small>
|
||||
<strong>
|
||||
<a id="wu-jumper-button-trigger" role="tooltip" aria-label='<?php echo esc_attr($jumper->add_jumper_footer_message('')); ?>' href="#" class="wu-tooltip wu-inline-block wu-py-1 wu-pl-2 md:wu-pr-3 wu-uppercase wu-text-gray-600 wu-no-underline">
|
||||
<span title="<?php esc_attr_e('Jumper', 'wp-ultimo'); ?>" class="dashicons dashicons-wu-flash wu-text-sm wu-w-auto wu-h-auto wu-align-text-top wu-relative wu--mr-1"></span>
|
||||
<span class="wu-font-bold">
|
||||
<?php esc_attr_e('Jumper', 'wp-ultimo'); ?>
|
||||
</span>
|
||||
</a>
|
||||
</strong>
|
||||
</small>
|
||||
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
/**
|
||||
* Displays the Jumper UI.
|
||||
*
|
||||
* @package WP_Ultimo/Views
|
||||
* @subpackage Jumper
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
||||
?>
|
||||
<div id="wu-jumper" style="display: none;" class="wu-styling">
|
||||
|
||||
<div class="wu-jumper-icon-container wu-relative wu-w-full wu-bg-gray-100 wu-rounded">
|
||||
|
||||
<select id="wu-jumper-select" data-placeholder="<?php esc_attr_e('Search Anything...', 'wp-ultimo'); ?>">
|
||||
|
||||
<option></option>
|
||||
|
||||
<?php if (!count($menu_groups)) : ?>
|
||||
|
||||
<option></option>
|
||||
|
||||
<optgroup label="<?php esc_attr_e('Error', 'wp-ultimo'); ?>">
|
||||
|
||||
<option value="<?php echo network_admin_url('?wu-rebuild-jumper=1'); ?>">
|
||||
|
||||
<?php _e('Click to rebuild menu list', 'wp-ultimo'); ?>
|
||||
|
||||
</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php foreach ($menu_groups as $optgroup => $menus) : ?>
|
||||
|
||||
<optgroup label="<?php esc_attr_e('Menu', 'wp-ultimo'); ?> - <?php echo esc_attr($optgroup); ?>" value="<?php esc_attr_e('Menu', 'wp-ultimo'); ?> - <?php echo esc_attr($optgroup); ?>">
|
||||
|
||||
<?php foreach ($menus as $url => $menu) : ?>
|
||||
|
||||
<option value="<?php echo esc_attr($url); ?>">
|
||||
|
||||
<?php echo $menu; ?>
|
||||
|
||||
</option>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
</optgroup>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
<optgroup label="<?php esc_attr_e('Settings', 'wp-ultimo'); ?>" value="setting"></optgroup>
|
||||
|
||||
<optgroup label="<?php esc_attr_e('Users', 'wp-ultimo'); ?>" value="user"></optgroup>
|
||||
|
||||
<optgroup label="<?php esc_attr_e('Customers', 'wp-ultimo'); ?>" value="customer"></optgroup>
|
||||
|
||||
<optgroup label="<?php esc_attr_e('Products', 'wp-ultimo'); ?>" value="product"></optgroup>
|
||||
|
||||
<optgroup label="<?php esc_attr_e('Domains', 'wp-ultimo'); ?>" value="domain"></optgroup>
|
||||
|
||||
<optgroup label="<?php esc_attr_e('Sites', 'wp-ultimo'); ?>" value="site"></optgroup>
|
||||
|
||||
<optgroup label="<?php esc_attr_e('Memberships', 'wp-ultimo'); ?>" value="membership"></optgroup>
|
||||
|
||||
<optgroup label="<?php esc_attr_e('Payments', 'wp-ultimo'); ?>" value="payment"></optgroup>
|
||||
|
||||
<optgroup label="<?php esc_attr_e('Discount Codes', 'wp-ultimo'); ?>" value="discount-code"></optgroup>
|
||||
|
||||
<optgroup label="<?php esc_attr_e('Webhooks', 'wp-ultimo'); ?>" value="webhook"></optgroup>
|
||||
|
||||
<optgroup label="<?php esc_attr_e('Broadcasts', 'wp-ultimo'); ?>" value="broadcast"></optgroup>
|
||||
|
||||
<optgroup label="<?php esc_attr_e('Checkout Forms', 'wp-ultimo'); ?>" value="checkout-form"></optgroup>
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Allow plugin developers to add new opt-groups.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
do_action('wu_jumper_options');
|
||||
|
||||
?>
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wu-jumper-redirecting wu-bg-gray-200">
|
||||
|
||||
<?php _e('Redirecting you to the target page...', 'wp-ultimo'); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wu-jumper-loading wu-bg-gray-200">
|
||||
|
||||
<?php _e('Searching Results...', 'wp-ultimo'); ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,344 @@
|
||||
<?php
|
||||
/**
|
||||
* Selectize templates view.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
?>
|
||||
<!-- WP User Template -->
|
||||
<script type="text/html" id="wu-template-user">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<div>
|
||||
|
||||
{{ typeof avatar !== 'undefined' ? avatar : '' }}
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-block">{{ display_name }} (#{{ ID }})</span>
|
||||
|
||||
<small>{{ typeof user_email !== 'undefined' ? user_email : '<?php _e('Undefined'); ?>' }}</small>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /WP User Template -->
|
||||
|
||||
<!-- Customer Template -->
|
||||
<script type="text/html" id="wu-template-customer">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<div>
|
||||
|
||||
{{ typeof avatar !== 'undefined' ? avatar : '' }}
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-block">{{ display_name }} (#{{ id }})</span>
|
||||
|
||||
<small>{{ typeof user_email !== 'undefined' ? user_email : '<?php _e('Undefined'); ?>' }}</small>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /Customer Template -->
|
||||
|
||||
<!-- Membership Template -->
|
||||
<script type="text/html" id="wu-template-membership">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<div>
|
||||
|
||||
{{ typeof customer.avatar !== 'undefined' ? customer.avatar : '' }}
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-block">{{ reference_code }} (#{{ id }})</span>
|
||||
|
||||
<small>Customer: {{ customer.display_name }}</small><br>
|
||||
|
||||
<small>{{ formatted_price }}</small>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /Membership Template -->
|
||||
|
||||
<!-- Site Template -->
|
||||
<script type="text/html" id="wu-template-site">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<div>
|
||||
|
||||
{{ typeof image !== 'undefined' ? image : '' }}
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-block">{{ title }}</span>
|
||||
|
||||
<small>{{ siteurl }}</small><br>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /Site Template -->
|
||||
|
||||
<!-- Setting Template -->
|
||||
<script type="text/html" id="wu-template-setting">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-block">{{ title }}</span>
|
||||
|
||||
<small>{{ section_title }}</small><br>
|
||||
|
||||
<small>{{ desc }}</small>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /Setting Template -->
|
||||
|
||||
<!-- Product Template -->
|
||||
<script type="text/html" id="wu-template-product">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<div>
|
||||
|
||||
{{ typeof image !== 'undefined' ? image : '' }}
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-block">{{ name }} ({{ type }})</span>
|
||||
|
||||
<small>{{ formatted_price }}</small>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /Product Template -->
|
||||
|
||||
<!-- Plan Template -->
|
||||
<script type="text/html" id="wu-template-plan">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<div>
|
||||
|
||||
{{ typeof image !== 'undefined' ? image : '' }}
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-block">{{ name }} ({{ type }})</span>
|
||||
|
||||
<small>{{ formatted_price }}</small>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /Plan Template -->
|
||||
|
||||
<!-- Jumper Link Template -->
|
||||
<script type="text/html" id="wu-template-jumper-link">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-block">{{ text }}</span>
|
||||
|
||||
<small><?php _e('Network Admin', 'wp-ultimo'); ?> → {{ group }}</small>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /Jumper Link Template -->
|
||||
|
||||
<!-- Discount Code Template -->
|
||||
<script type="text/html" id="wu-template-discount_code">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-block">{{ code }} (#{{ id }})</span>
|
||||
|
||||
<small>{{ discount_description }}</small>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /Discount Code Template -->
|
||||
|
||||
<!-- Domain Template -->
|
||||
<script type="text/html" id="wu-template-domain">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-block">{{ domain }}</span>
|
||||
|
||||
<small><?php _e('Mapped Domain', 'wp-ultimo'); ?></small>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /Domain Template -->
|
||||
|
||||
<!-- Webhook Template -->
|
||||
<script type="text/html" id="wu-template-webhook">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-block">{{ name }}</span>
|
||||
|
||||
<small>{{ webhook_url }}</small>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /Webhook Template -->
|
||||
|
||||
<!-- Broadcast Template -->
|
||||
<script type="text/html" id="wu-template-broadcast">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-block">{{ title }}</span>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /Broadcast Template -->
|
||||
|
||||
<!-- Checkout Form Template -->
|
||||
<script type="text/html" id="wu-template-checkout_form">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-block">{{ name }}</span>
|
||||
|
||||
<small>{{ slug }}</small>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /Checkout Form Template -->
|
||||
|
||||
<!-- Page Template -->
|
||||
<script type="text/html" id="wu-template-page">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-block">{{ post_title }} (#{{ ID }})</span>
|
||||
|
||||
<small>/{{ post_name }} - {{ post_status.charAt(0).toUpperCase() + post_status.slice(1) }}</small>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /Page Template -->
|
||||
|
||||
<!-- Default Template -->
|
||||
<script type="text/html" id="wu-template-default">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<div v-if="avatar">
|
||||
|
||||
{{ avatar }}
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-block">{{ label ?? id }} (#{{ id }})</span>
|
||||
|
||||
<small>{{ description ?? id }}</small>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /Default Template -->
|
||||
|
||||
<!-- Nothing Found Template -->
|
||||
<script type="text/html" id="wu-template-none">
|
||||
|
||||
<div class="wu-p-4 wu-block wu-flex wu-items-center">
|
||||
|
||||
<?php _e('Nothing Found...', 'wp-ultimo'); ?>
|
||||
|
||||
</div>
|
||||
|
||||
</script>
|
||||
<!-- /Nothing Found Template -->
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Allow plugin developers to add more selectize templates.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
*/
|
||||
do_action('wu_selectize_templates');
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,218 @@
|
||||
<?php
|
||||
/**
|
||||
* This is the template used for the Template Previewer.
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/wp-ultimo/signup/steps/step-template-previewer.php.
|
||||
*
|
||||
* HOWEVER, on occasion WP Ultimo will need to update template files and you
|
||||
* (the theme developer) will need to copy the new files to your theme to
|
||||
* maintain compatibility. We try to do this as little as possible, but it does
|
||||
* happen. When this occurs the version of the template file will be bumped and
|
||||
* the readme will list any important changes.
|
||||
*
|
||||
* @author NextPress
|
||||
* @package WP_Ultimo/Views
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
|
||||
exit; // Exit if accessed directly
|
||||
|
||||
} // end if;
|
||||
|
||||
/**
|
||||
* Allow developers to run code before the template previewer is loaded.
|
||||
*/
|
||||
do_action('wu_template_previewer_before');
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta charset="<?php bloginfo('charset'); ?>">
|
||||
|
||||
<?php wu_ignore_errors(function() {
|
||||
wp_head();
|
||||
}); ?>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="switcher">
|
||||
|
||||
<div class="center">
|
||||
|
||||
<div class="logo">
|
||||
|
||||
<a title="<?php echo get_network_option(null, 'site_name'); ?>" href="<?php echo network_home_url(); ?>" target="_blank">
|
||||
|
||||
<?php if ($use_custom_logo && $custom_logo) : ?>
|
||||
|
||||
<?php echo wp_get_attachment_image($custom_logo, 'full'); ?>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<img src="<?php echo $logo_url; ?>" alt="<?php echo get_network_option(null, 'site_name'); ?>">
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<ul id="theme_list_selector">
|
||||
|
||||
<li id="theme_list">
|
||||
|
||||
<?php if ($selected_template) : ?>
|
||||
|
||||
<a id="template_selector" href="#">
|
||||
|
||||
<?php echo $selected_template->get_title(); ?>
|
||||
|
||||
<span style="float: right; margin-top: -3px" class="dashicons dashicons-arrow-down-alt2"></span>
|
||||
|
||||
</a>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<a id="template_selector" href="#">
|
||||
|
||||
<?php _e('Select template...', 'wp-ultimo'); ?>
|
||||
|
||||
<span style="float: right; margin-top: -3px" class="dashicons dashicons-arrow-down-alt2"></span>
|
||||
|
||||
</a>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<ul id="test1a">
|
||||
|
||||
<?php foreach ($templates as $template) : ?>
|
||||
|
||||
<li>
|
||||
|
||||
<a
|
||||
href="<?php echo $tp->get_preview_url($template->get_id()); ?>"
|
||||
data-frame="<?php echo $template->get_active_site_url(); ?>"
|
||||
data-title="<?php echo $template->get_title(); ?>"
|
||||
data-id="<?php echo $template->get_id(); ?>"
|
||||
>
|
||||
|
||||
<?php echo $template->get_title(); ?>
|
||||
|
||||
</a>
|
||||
|
||||
<img alt="" class="preview" src="<?php echo $template->get_featured_image(); ?>">
|
||||
|
||||
</li>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<?php if ($display_responsive_controls) : ?>
|
||||
|
||||
<div class="responsive">
|
||||
|
||||
<a href="#" class="desktop active dashicons-before dashicons-desktop" title="<?php esc_attr_e('View Desktop Version', 'wp-ultimo'); ?>"></a>
|
||||
|
||||
<a href="#" class="tabletlandscape dashicons-before dashicons-tablet" title="<?php esc_attr_e('View Tablet Landscape (1024x768)', 'wp-ultimo'); ?>"></a>
|
||||
|
||||
<a href="#" class="tabletportrait dashicons-before dashicons-tablet" title="<?php esc_attr_e('View Tablet Portrait (768x1024)', 'wp-ultimo'); ?>"></a>
|
||||
|
||||
<a href="#" class="mobilelandscape dashicons-before dashicons-smartphone" title="<?php esc_attr_e('View Mobile Landscape (480x320)', 'wp-ultimo'); ?>"></a>
|
||||
|
||||
<a href="#" class="mobileportrait dashicons-before dashicons-smartphone" title="<?php esc_attr_e('View Mobile Portrait (320x480)', 'wp-ultimo'); ?>"></a>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if (!isset($_GET['switching'])) : ?>
|
||||
|
||||
<ul class="links">
|
||||
|
||||
<?php if (wu_request('open')) : ?>
|
||||
|
||||
<li class="select-template">
|
||||
|
||||
<a id="action-select" href="#"><?php echo $button_text; ?> →</a>
|
||||
|
||||
</li>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<li class="select-template">
|
||||
|
||||
<a id="action-select-link" href="<?php echo wu_get_registration_url('?template_selection='.$selected_template->get_id()); ?>"><?php echo $button_text; ?> →</a>
|
||||
|
||||
</li>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</ul>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<input type="hidden" id="template-selector" value="<?php echo esc_attr($_GET['template-preview']); ?>" />
|
||||
|
||||
</div>
|
||||
|
||||
<?php if (!isset($_GET['switching'])) : ?>
|
||||
|
||||
<div class="mobile-selector">
|
||||
|
||||
<?php if (wu_request('open')) : ?>
|
||||
|
||||
<a id="action-select2" href="#"><?php echo $button_text; ?> →</a>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<a id="action-select-link" href="<?php echo wu_get_registration_url('?template_id='.$selected_template->get_id()); ?>"><?php echo $button_text; ?> →</a>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!wu_request('customizer')) : ?>
|
||||
|
||||
<iframe id="iframe" src="<?php echo set_url_scheme(add_query_arg('wu-preview', '1', get_home_url($selected_template->get_id()))); ?>" width="100%" height="100%"></iframe>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<div class="wu-styling">
|
||||
|
||||
<div class="wu-w-full wu-text-center wu-relative wu-flex wu-justify-center wu-items-center wu-h-screen">
|
||||
|
||||
<div class="wu-text-xl wu-rounded wu-font-bold wu-uppercase wu-inline-block wu-p-8 wu-opacity-50" style="margin-top: 62px; background-color: #000; color: #666;">
|
||||
|
||||
<?php _e('Site Template Preview will go here!', 'wp-ultimo'); ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php wu_ignore_errors(function() {
|
||||
wp_footer();
|
||||
}); ?>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,121 @@
|
||||
<?php
|
||||
/**
|
||||
* Displays the Toolbox UI.
|
||||
*
|
||||
* @package WP_Ultimo/Views
|
||||
* @subpackage Toolbox
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<div id="wu-toolbox" class="wu-styling">
|
||||
|
||||
<div
|
||||
class="wu-fixed wu-bottom-0 wu-right-0 wu-mr-4 wu-mb-4 wu-bg-white wu-px-4 wu-py-2 wu-pl-2 wu-shadow-md wu-rounded-full wu-uppercase wu-text-xs wu-text-gray-700">
|
||||
|
||||
<ul class="wu-inline-block wu-m-0 wu-p-0 wu-align-middle wu-mx-1">
|
||||
<li class="wu-inline-block wu-m-0 wu-p-0">
|
||||
<span id="wu-toolbox-toggle" class="dashicons-before dashicons-wu-wp-ultimo" <?php echo wu_tooltip_text(__('Toggle Toolbox', 'wp-ultimo')); ?>></span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul id="wu-toolbox-links" class="wu-inline-block wu-m-0 wu-p-0 wu-align-middle wu-mx-1">
|
||||
|
||||
<li class="wu-inline-block wu-m-0 wu-p-0 wu-px-2">
|
||||
|
||||
<a href="<?php echo esc_attr(wu_network_admin_url('wp-ultimo-edit-site', array('id' => $current_site->get_id()))); ?>"
|
||||
class="wu-inline-block wu-uppercase wu-text-gray-600 wu-no-underline">
|
||||
<span title="<?php esc_attr_e('Current Site', 'wp-ultimo'); ?>"
|
||||
class="dashicons-wu-browser wu-text-sm wu-w-auto wu-h-auto wu-align-text-bottom wu-relative"></span>
|
||||
<span class="">
|
||||
<?php echo $current_site->get_title(); ?>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<?php if ($customer) : ?>
|
||||
|
||||
<li class="wu-inline-block wu-m-0 wu-p-0 wu-px-2">
|
||||
|
||||
<a href="<?php echo esc_attr(wu_network_admin_url('wp-ultimo-edit-customer', array('id' => $customer->get_id()))); ?>"
|
||||
class="wu-inline-block wu-uppercase wu-text-gray-600 wu-no-underline">
|
||||
<span title="<?php esc_attr_e('Current Site', 'wp-ultimo'); ?>"
|
||||
class="dashicons-wu-user wu-text-sm wu-w-auto wu-h-auto wu-align-text-bottom wu-relative"></span>
|
||||
<span class="">
|
||||
<?php echo $customer->get_display_name(); ?>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($membership) : ?>
|
||||
|
||||
<li class="wu-inline-block wu-m-0 wu-p-0 wu-px-2">
|
||||
|
||||
<a href="<?php echo esc_attr(wu_network_admin_url('wp-ultimo-edit-membership', array('id' => $membership->get_id()))); ?>"
|
||||
class="wu-inline-block wu-uppercase wu-text-gray-600 wu-no-underline">
|
||||
<span title="<?php esc_attr_e('Current Site', 'wp-ultimo'); ?>"
|
||||
class="dashicons-wu-circular-graph wu-text-sm wu-w-auto wu-h-auto wu-align-text-bottom wu-relative"></span>
|
||||
<span class="">
|
||||
<?php echo sprintf(__('Membership <Strong>%s</strong>', 'wp-ultimo'), $membership->get_hash()); ?>
|
||||
</span>
|
||||
<span id="wu-toolbox-membership-status" class="wu-inline-block wu-w-3 wu-h-3 wu-rounded-full wu-align-text-top <?php echo esc_attr($membership->get_status_class()); ?>" <?php echo wu_tooltip_text($membership->get_status_label()); ?>>
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</ul>
|
||||
|
||||
<ul class="wu-inline-block wu-m-0 wu-p-0 wu-align-middle wu-mx-1">
|
||||
<li class="wu-inline-block wu-m-0 wu-p-0">
|
||||
|
||||
<a id="wu-jumper-button-trigger" href="#"
|
||||
class="wu-inline-block wu-uppercase wu-text-gray-600 wu-no-underline">
|
||||
<span title="<?php esc_attr_e('Jumper', 'wp-ultimo'); ?>"
|
||||
class="dashicons dashicons-wu-flash wu-text-sm wu-w-auto wu-h-auto wu-align-text-top wu-relative wu--mr-1"></span>
|
||||
<span class="wu-font-bold">
|
||||
<?php esc_attr_e('Jumper', 'wp-ultimo'); ?>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
(function($) {
|
||||
$(document).ready(function() {
|
||||
$('body').on('click', '#wu-toolbox-toggle', function() {
|
||||
$(this).parents('#wu-toolbox').toggleClass('wu-toolbox-closed');
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
} // end if;
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#wu-toolbox-links {
|
||||
transition: width 2s;
|
||||
}
|
||||
.wu-toolbox-closed #wu-toolbox-links {
|
||||
transition: width 2s;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
}
|
||||
#wu-toolbox-membership-status {
|
||||
margin-top: 2px;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user