* Update translation text domain * Escape everything that should be escaped. * Add nonce checks where needed. * Sanitize all inputs. * Apply Code style changes across the codebase. * Correct many deprecation notices. * Optimize load order of many filters. * Add Proper Build script * Use emojii flags * Fix i18n deprecation notice for translating too early * Put all scripts in footer and load async
87 lines
2.7 KiB
PHP
87 lines
2.7 KiB
PHP
<?php
|
|
/**
|
|
* Shortcodes view.
|
|
*
|
|
* @since 2.0.24
|
|
*/
|
|
?>
|
|
|
|
<div id="wp-ultimo-wrap" class="<?php wu_wrap_use_container(); ?> wrap">
|
|
|
|
<h1 class="wp-heading-inline"><?php esc_html_e('Available Shortcodes', 'wp-multisite-waas'); ?></h1>
|
|
|
|
<div id="poststuff">
|
|
<div id="post-body" class="">
|
|
<div id="post-body-content">
|
|
|
|
<?php foreach ($data as $shortcode) { ?>
|
|
|
|
<div class="metabox-holder">
|
|
<div class="postbox">
|
|
<div class="wu-w-full wu-box-border wu-m-0 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300 wu-border-solid">
|
|
|
|
<div class="wu-bg-gray-100 wu-py-4 wu-w-full wu-box-border wu-p-4 wu-py-5 wu-m-0 wu-border-b wu-border-l-0 wu-border-r-0 wu-border-t-0 wu-border-gray-300 wu-border-solid">
|
|
<a
|
|
href="<?php echo esc_url($shortcode['generator_form_url']); ?>"
|
|
class="wu-float-right wubox wu-no-underline wu-text-gray-600"
|
|
title="<?php esc_html_e('Generator', 'wp-multisite-waas'); ?>"
|
|
>
|
|
<span class="dashicons-wu-rocket"></span>
|
|
<?php esc_html_e('Generator', 'wp-multisite-waas'); ?>
|
|
</a>
|
|
<div class="wu-block">
|
|
<h3 class="wu-my-1 wu-text-base wu-text-gray-800">
|
|
<?php echo esc_html($shortcode['title']); ?> <code>[<?php echo esc_html($shortcode['shortcode']); ?>]</code>
|
|
</h3>
|
|
<p class="wu-mt-1 wu-mb-0 wu-text-gray-700">
|
|
<?php echo $shortcode['description']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="wu-w-full">
|
|
<table class="wu-table-auto striped wu-w-full">
|
|
<tr>
|
|
<th class="wu-px-4 wu-py-2 wu-w-3/12 wu-text-left">
|
|
<?php esc_html_e('Parameter', 'wp-multisite-waas'); ?>
|
|
</th>
|
|
<th class="wu-px-4 wu-py-2 wu-w-4/12 wu-text-left">
|
|
<?php esc_html_e('Description', 'wp-multisite-waas'); ?>
|
|
</th>
|
|
<th class="wu-px-4 wu-py-2 wu-w-3/12 wu-text-left">
|
|
<?php esc_html_e('Accepted Values', 'wp-multisite-waas'); ?>
|
|
</th>
|
|
<th class="wu-px-4 wu-py-2 wu-w-2/12 wu-text-left">
|
|
<?php esc_html_e('Default Value', 'wp-multisite-waas'); ?>
|
|
</th>
|
|
</tr>
|
|
<?php foreach ($shortcode['params'] as $param => $value) { ?>
|
|
<tr>
|
|
<td class="wu-px-4 wu-py-2 wu-text-left">
|
|
<?php echo esc_html($param); ?>
|
|
</td>
|
|
<td class="wu-px-4 wu-py-2 wu-text-left">
|
|
<?php echo $value['desc']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
|
</td>
|
|
<td class="wu-px-4 wu-py-2 wu-text-left">
|
|
<?php echo esc_html($value['options']); ?>
|
|
</td>
|
|
<td class="wu-px-4 wu-py-2 wu-text-left">
|
|
<?php echo esc_html($value['default']); ?>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|