Astra_Ext_Advanced_Hooks_Loader::layout_preview_template()
HTML Template for custom layout preview.
Description
Source
File: addons/advanced-hooks/classes/class-astra-ext-advanced-hooks-loader.php
public function layout_preview_template() { ?> <div class="ast-custom-layout-preview-wrapper"></div> <script type="text/template" id="tmpl-ast-modal-view-layout-details"> <div class="ast-layout-modal ast-data-preview"> <div class="ast-layout-modal-content"> <section class="ast-layout-modal-main" role="main"> <header class="ast-layout-modal-header"> <mark class="layout-status"><span>{{ data.layout_type }}</span></mark> <h1> {{ data.title }} </h1> <button id="modal-close-link" class="modal-close modal-close-link dashicons dashicons-no-alt"> <span class="screen-reader-text"><?php esc_html_e( 'Close modal panel', 'astra-addon' ); ?></span> </button> </header> <article> <?php do_action( 'astra_addon_custom_layout_preview_start' ); ?> <div class="ast-layout-preview-row"> <div class="ast-layout-preview-col"> <h3><?php esc_html_e( 'Display On:', 'astra-addon' ); ?></h3> </div> <div class="ast-layout-preview-col right"> {{{ data.display_rules }}} </div> <div class="ast-layout-preview-col"> <h3><?php esc_html_e( 'Do Not Display On:', 'astra-addon' ); ?></h3> </div> <div class="ast-layout-preview-col right"> {{{ data.exclusion_rules }}} </div> <div class="ast-layout-preview-col"> <h3><?php esc_html_e( 'Display for Users:', 'astra-addon' ); ?></h3> </div> <div class="ast-layout-preview-col right"> {{{ data.user_rules }}} </div> <div class="ast-layout-preview-col"> <h3><?php esc_html_e( 'Display on Devices:', 'astra-addon' ); ?></h3> </div> <div class="ast-layout-preview-col right"> {{{ data.display_devices_rules }}} </div> <div class="ast-layout-preview-col"> <h3><?php esc_html_e( 'Time Rule:', 'astra-addon' ); ?></h3> </div> <div class="ast-layout-preview-col right"> {{{ data.time_duration_rule }}} </div> </div> <?php do_action( 'astra_addon_custom_layout_preview_end' ); ?> </article> <footer> <div class="inner"> <div class="ast-layout-action-button-group"> <label> <strong> <?php esc_html_e( 'Status: ', 'astra-addon' ); ?> </strong> {{ data.status }} </label> | <label> <strong> <?php esc_html_e( 'Published date: ', 'astra-addon' ); ?> </strong> {{ data.post_date }} </label> </div> <a class="button button-primary button-large" aria-label="<?php esc_attr_e( 'Edit this layout', 'astra-addon' ); ?>" href="{{ data.edit_link }}"><?php esc_html_e( 'Edit Layout', 'astra-addon' ); ?></a> </div> </footer> </section> </div> </div> <div class="ast-layout-modal-backdrop modal-close"></div> </script> <?php }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.9.3 | Introduced. |