Use new code style
This commit is contained in:
@ -8,12 +8,16 @@
|
||||
|
||||
<?php if (empty($notes)) : ?>
|
||||
|
||||
<?php echo wu_render_empty_state(array(
|
||||
'message' => __("No notes yet.", 'wp-ultimo'),
|
||||
'sub_message' => __('Use the "Add new Note" to create the first one.', 'wp-ultimo'),
|
||||
'link_url' => false,
|
||||
'display_background_image' => false,
|
||||
)); ?>
|
||||
<?php
|
||||
echo wu_render_empty_state(
|
||||
array(
|
||||
'message' => __('No notes yet.', 'wp-ultimo'),
|
||||
'sub_message' => __('Use the "Add new Note" to create the first one.', 'wp-ultimo'),
|
||||
'link_url' => false,
|
||||
'display_background_image' => false,
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
@ -33,7 +37,21 @@
|
||||
|
||||
<div class="wu-flex wu-overflow-hidden wu-ml-3 wu-mt-1">
|
||||
|
||||
<?php echo wp_kses_post(get_avatar($note->author_id, 20, 'identicon', '', array('force_display' => true, 'class' => 'wu-rounded-full wu-mr-2'))); ?> <?php echo $user->display_name; ?>
|
||||
<?php
|
||||
echo wp_kses_post(
|
||||
get_avatar(
|
||||
$note->author_id,
|
||||
20,
|
||||
'identicon',
|
||||
'',
|
||||
array(
|
||||
'force_display' => true,
|
||||
'class' => 'wu-rounded-full wu-mr-2',
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
<?php echo $user->display_name; ?>
|
||||
|
||||
</div>
|
||||
|
||||
@ -47,12 +65,14 @@
|
||||
|
||||
<?php if (current_user_can('delete_notes')) : ?>
|
||||
|
||||
<?php $modal_atts = array(
|
||||
<?php
|
||||
$modal_atts = array(
|
||||
'object_id' => wu_request('id'),
|
||||
'model' => $model,
|
||||
'note_id' => $note->note_id,
|
||||
'height' => 306,
|
||||
); ?>
|
||||
);
|
||||
?>
|
||||
|
||||
<span class="wu-ml-2">
|
||||
|
||||
|
@ -7,46 +7,46 @@
|
||||
?>
|
||||
<div id="preview-stage">
|
||||
|
||||
<div v-show="preview">
|
||||
<div v-show="preview">
|
||||
|
||||
<div class="wu-block wu-flex wu-justify-center wu-p-4 wu-py-8 wu-bg-white wu-text-center wu-border wu-border-solid wu-rounded wu-border-gray-400 wu-h-screen">
|
||||
<div class="wu-block wu-flex wu-justify-center wu-p-4 wu-py-8 wu-bg-white wu-text-center wu-border wu-border-solid wu-rounded wu-border-gray-400 wu-h-screen">
|
||||
|
||||
<span class="wu-self-center wu-blinking-animation wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">
|
||||
<span class="wu-self-center wu-blinking-animation wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">
|
||||
|
||||
<?php echo _e('Loading Preview...', 'wp-ultimo'); ?>
|
||||
<?php echo _e('Loading Preview...', 'wp-ultimo'); ?>
|
||||
|
||||
</span>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-show="!preview" v-cloak>
|
||||
<div v-show="!preview" v-cloak>
|
||||
|
||||
<div id="wp-ultimo-list-table-add-new-1" class="postbox wu-mb-0">
|
||||
<div id="wp-ultimo-list-table-add-new-1" class="postbox wu-mb-0">
|
||||
|
||||
<div class="wu-bg-white wu-px-4 wu-py-3 wu-flex wu-items-center">
|
||||
<div class="wu-bg-white wu-px-4 wu-py-3 wu-flex wu-items-center">
|
||||
|
||||
<div class="wu-w-1/2">
|
||||
<div class="wu-w-1/2">
|
||||
|
||||
<span class="wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">
|
||||
<span class="wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">
|
||||
|
||||
<?php echo __('Template Preview', 'wp-ultimo'); ?>
|
||||
<?php echo __('Template Preview', 'wp-ultimo'); ?>
|
||||
|
||||
</span>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="preview_content" class="wu-block wu-bg-gray wu-text-center wu-mb-5 wu-border wu-border-t-0 wu-border-solid wu-rounded wu-border-gray-400">
|
||||
<div id="preview_content" class="wu-block wu-bg-gray wu-text-center wu-mb-5 wu-border wu-border-t-0 wu-border-solid wu-rounded wu-border-gray-400">
|
||||
|
||||
<iframe id="preview-stage-iframe" class="preview-stage-iframe" width="100%" style="height: <?php echo $preview_height; ?>;" frameborder="0" data-src="<?php echo esc_url($preview_iframe_url); ?>" src="<?php echo esc_url($preview_iframe_url); ?>"></iframe>
|
||||
<iframe id="preview-stage-iframe" class="preview-stage-iframe" width="100%" style="height: <?php echo $preview_height; ?>;" frameborder="0" data-src="<?php echo esc_url($preview_iframe_url); ?>" src="<?php echo esc_url($preview_iframe_url); ?>"></iframe>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -9,28 +9,28 @@
|
||||
|
||||
<?php if ($page->edit) : ?>
|
||||
|
||||
<div class="wu-advanced-filters wu-widget-list-table wu--m-3 wu--mt-1 wu--mb-3">
|
||||
<div class="wu-advanced-filters wu-widget-list-table wu--m-3 wu--mt-1 wu--mb-3">
|
||||
|
||||
<?php $table->prepare_items(); ?>
|
||||
<?php $table->prepare_items(); ?>
|
||||
|
||||
<!-- <form id="posts-filter" method="post"> -->
|
||||
<!-- <form id="posts-filter" method="post"> -->
|
||||
|
||||
<input type="hidden" name="page" value="<?php echo $page->get_id(); ?>">
|
||||
<input type="hidden" name="page" value="<?php echo $page->get_id(); ?>">
|
||||
|
||||
<?php $table->display(); ?>
|
||||
<?php $table->display(); ?>
|
||||
|
||||
<!-- </form> -->
|
||||
<!-- </form> -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<div class="wu-p-12 wu-h-12 wu--mt-1 wu--mx-3 wu--mb-3 wu-bg-gray-100 wu-text-gray-500 wu-text-xs wu-text-center">
|
||||
<span class="dashicons dashicons-warning wu-h-8 wu-w-8 wu-mx-auto wu-text-center wu-text-4xl wu-block"></span>
|
||||
<span class="wu-block wu-text-sm wu-mt-2">
|
||||
<?php printf(__('%s will show up here once this item is saved.', 'wp-ultimo'), $title); ?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="wu-p-12 wu-h-12 wu--mt-1 wu--mx-3 wu--mb-3 wu-bg-gray-100 wu-text-gray-500 wu-text-xs wu-text-center">
|
||||
<span class="dashicons dashicons-warning wu-h-8 wu-w-8 wu-mx-auto wu-text-center wu-text-4xl wu-block"></span>
|
||||
<span class="wu-block wu-text-sm wu-mt-2">
|
||||
<?php printf(__('%s will show up here once this item is saved.', 'wp-ultimo'), $title); ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
@ -5,18 +5,18 @@
|
||||
* @since 2.0.0
|
||||
*/
|
||||
?>
|
||||
<?php if (!empty($labels['save_description'])) : ?>
|
||||
<?php if ( ! empty($labels['save_description'])) : ?>
|
||||
|
||||
<p class="wu-mb-5">
|
||||
<?php echo $labels['save_description']; ?>
|
||||
</p>
|
||||
<p class="wu-mb-5">
|
||||
<?php echo $labels['save_description']; ?>
|
||||
</p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="wu-bg-gray-200 wu-p-4 wu--m-3 wu--mt-2 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-400 wu-border-solid">
|
||||
|
||||
<button type="submit" name="action" value="save" class="button button-primary wu-w-full">
|
||||
<?php echo $labels['save_button_label']; ?>
|
||||
</button>
|
||||
<button type="submit" name="action" value="save" class="button button-primary wu-w-full">
|
||||
<?php echo $labels['save_button_label']; ?>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
@ -6,114 +6,114 @@
|
||||
*/
|
||||
?>
|
||||
<div
|
||||
class="wu-m-0"
|
||||
data-wu-app="<?php echo esc_attr($html_attr['data-wu-app']); ?>"
|
||||
data-state="<?php echo htmlspecialchars(json_encode(($html_attr['data-state']))); ?>"
|
||||
<?php echo wu_get_isset($html_attr, 'data-on-load') ? 'data-on-load="'.esc_attr($html_attr['data-on-load']).'"' : ''; ?>
|
||||
class="wu-m-0"
|
||||
data-wu-app="<?php echo esc_attr($html_attr['data-wu-app']); ?>"
|
||||
data-state="<?php echo htmlspecialchars(json_encode(($html_attr['data-state']))); ?>"
|
||||
<?php echo wu_get_isset($html_attr, 'data-on-load') ? 'data-on-load="' . esc_attr($html_attr['data-on-load']) . '"' : ''; ?>
|
||||
>
|
||||
|
||||
<div
|
||||
class="wu-widget-inside md:wu-flex wu-flex-none md:wu--mx-3 md:wu--mb-3 wu--m-2"
|
||||
v-bind:class="display_all ? 'wu-display-all' : ''"
|
||||
>
|
||||
<div
|
||||
class="wu-widget-inside md:wu-flex wu-flex-none md:wu--mx-3 md:wu--mb-3 wu--m-2"
|
||||
v-bind:class="display_all ? 'wu-display-all' : ''"
|
||||
>
|
||||
|
||||
<div
|
||||
class="wu-block md:wu-px-3 wu-w-full md:wu-w-1/4 wu-bg-gray-100 md:wu-border-solid wu-border-gray-400 wu-border-t-0 wu-border-l-0 wu-border-b-0 wu-border-r"
|
||||
>
|
||||
<div
|
||||
class="wu-block md:wu-px-3 wu-w-full md:wu-w-1/4 wu-bg-gray-100 md:wu-border-solid wu-border-gray-400 wu-border-t-0 wu-border-l-0 wu-border-b-0 wu-border-r"
|
||||
>
|
||||
|
||||
<ul class="wu-text-sm">
|
||||
<ul class="wu-text-sm">
|
||||
|
||||
<ul>
|
||||
<ul>
|
||||
|
||||
<!-- Menu Item -->
|
||||
<li v-show="display_all" v-cloak>
|
||||
<!-- Menu Item -->
|
||||
<li v-show="display_all" v-cloak>
|
||||
|
||||
<!-- Menu Link -->
|
||||
<a class="wu-cursor-pointer wu-block wu-py-2 wu-px-4 wu-no-underline wu-rounded wu-bg-gray-300 wu-text-gray-800">
|
||||
<!-- Menu Link -->
|
||||
<a class="wu-cursor-pointer wu-block wu-py-2 wu-px-4 wu-no-underline wu-rounded wu-bg-gray-300 wu-text-gray-800">
|
||||
|
||||
<span class="wu-text-base wu-w-4 wu-h-4 wu-pt-2px wu-mr-1 dashicons dashicons-wu-chevron-with-circle-down"> </span>
|
||||
<span class="wu-text-base wu-w-4 wu-h-4 wu-pt-2px wu-mr-1 dashicons dashicons-wu-chevron-with-circle-down"> </span>
|
||||
|
||||
<?php _e('All Options', 'wp-ultimo'); ?>
|
||||
<?php _e('All Options', 'wp-ultimo'); ?>
|
||||
|
||||
</a>
|
||||
<!-- End Menu Link -->
|
||||
</a>
|
||||
<!-- End Menu Link -->
|
||||
|
||||
</li>
|
||||
<!-- End Menu Item -->
|
||||
</li>
|
||||
<!-- End Menu Item -->
|
||||
|
||||
<?php foreach ($sections as $section_id => $section) : ?>
|
||||
<?php foreach ($sections as $section_id => $section) : ?>
|
||||
|
||||
<!-- Menu Item -->
|
||||
<li v-show="!display_all && <?php echo esc_attr($section['v-show']); ?>">
|
||||
<!-- Menu Item -->
|
||||
<li v-show="!display_all && <?php echo esc_attr($section['v-show']); ?>">
|
||||
|
||||
<!-- Menu Link -->
|
||||
<a
|
||||
class="wu-cursor-pointer wu-block md:wu-py-2 md:wu-px-4 wu-p-4 wu-no-underline wu-rounded wu-text-gray-600"
|
||||
v-bind:class="section == '<?php echo esc_attr($section_id); ?>' ? 'wu-bg-gray-300 wu-text-gray-800' : ''"
|
||||
v-on:click.prevent="section = '<?php echo esc_attr($section_id); ?>'"
|
||||
>
|
||||
<!-- Menu Link -->
|
||||
<a
|
||||
class="wu-cursor-pointer wu-block md:wu-py-2 md:wu-px-4 wu-p-4 wu-no-underline wu-rounded wu-text-gray-600"
|
||||
v-bind:class="section == '<?php echo esc_attr($section_id); ?>' ? 'wu-bg-gray-300 wu-text-gray-800' : ''"
|
||||
v-on:click.prevent="section = '<?php echo esc_attr($section_id); ?>'"
|
||||
>
|
||||
|
||||
<?php if ($section['icon']) : ?>
|
||||
|
||||
<span class="wu-text-base wu-w-4 wu-h-4 wu-pt-2px wu-mr-1 dashicons <?php echo esc_attr($section['icon']); ?>"> </span>
|
||||
<span class="wu-text-base wu-w-4 wu-h-4 wu-pt-2px wu-mr-1 dashicons <?php echo esc_attr($section['icon']); ?>"> </span>
|
||||
|
||||
<?php else : ?>
|
||||
<?php else : ?>
|
||||
|
||||
<span class="wu-text-base wu-w-4 wu-h-4 wu-pt-2px wu-mr-1 dashicons dashicons-wu-sound-mix"> </span>
|
||||
<span class="wu-text-base wu-w-4 wu-h-4 wu-pt-2px wu-mr-1 dashicons dashicons-wu-sound-mix"> </span>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $section['title']; ?>
|
||||
|
||||
</a>
|
||||
<!-- End Menu Link -->
|
||||
</a>
|
||||
<!-- End Menu Link -->
|
||||
|
||||
</li>
|
||||
<!-- End Menu Item -->
|
||||
</li>
|
||||
<!-- End Menu Item -->
|
||||
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<a v-on:click="display_all = !display_all;" class="wu-cursor-pointer wu-block wu-py-2 wu-px-4 wu-pt-10 wu-no-underline wu-text-xs wu-rounded">
|
||||
<a v-on:click="display_all = !display_all;" class="wu-cursor-pointer wu-block wu-py-2 wu-px-4 wu-pt-10 wu-no-underline wu-text-xs wu-rounded">
|
||||
|
||||
<span v-show="!display_all">
|
||||
<span v-show="!display_all">
|
||||
|
||||
<?php _e('Display all fields', 'wp-ultimo'); ?>
|
||||
<?php _e('Display all fields', 'wp-ultimo'); ?>
|
||||
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<span v-cloak v-show="display_all">
|
||||
<span v-cloak v-show="display_all">
|
||||
|
||||
<?php _e('Hide other fields', 'wp-ultimo'); ?>
|
||||
<?php _e('Hide other fields', 'wp-ultimo'); ?>
|
||||
|
||||
</span>
|
||||
</span>
|
||||
|
||||
</a>
|
||||
</a>
|
||||
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="md:wu-w-3/4 wu-w-full">
|
||||
<div class="md:wu-w-3/4 wu-w-full">
|
||||
|
||||
<div v-show="false" class="wu-text-center wu-rounded wu-flex wu-items-center wu-justify-center wu-uppercase wu-font-semibold wu-text-xs wu-h-full wu-text-gray-700">
|
||||
<div v-show="false" class="wu-text-center wu-rounded wu-flex wu-items-center wu-justify-center wu-uppercase wu-font-semibold wu-text-xs wu-h-full wu-text-gray-700">
|
||||
|
||||
<span class="wu-blinking-animation">
|
||||
<span class="wu-blinking-animation">
|
||||
|
||||
<?php _e('Loading...', 'wp-ultimo'); ?>
|
||||
<?php _e('Loading...', 'wp-ultimo'); ?>
|
||||
|
||||
</span>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php foreach ($sections as $section_id => $section) : ?>
|
||||
<?php foreach ($sections as $section_id => $section) : ?>
|
||||
|
||||
<div
|
||||
class="wu-tab-content"
|
||||
v-cloak
|
||||
id="<?php echo esc_attr("wu_tab_$section_id"); ?>"
|
||||
>
|
||||
<div
|
||||
class="wu-tab-content"
|
||||
v-cloak
|
||||
id="<?php echo esc_attr("wu_tab_$section_id"); ?>"
|
||||
>
|
||||
|
||||
<?php
|
||||
|
||||
@ -124,14 +124,14 @@
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo $after; ?>
|
||||
<?php echo $after; ?>
|
||||
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user