group-compat.php
8 years ago
group-extra.php
8 years ago
group-fields.php
8 years ago
group-form.php
8 years ago
group-query.php
8 years ago
group-slideshow.php
7 years ago
group-style.php
8 years ago
option-background.php
8 years ago
option-boilerplate.php
9 years ago
option-category.php
8 years ago
option-classes.php
8 years ago
option-client-section.php
7 years ago
option-color.php
8 years ago
option-content.php
7 years ago
option-divi.php
8 years ago
option-form-ajax.php
9 years ago
option-form-category.php
8 years ago
option-id.php
8 years ago
option-layout.php
8 years ago
option-limit.php
8 years ago
option-order.php
8 years ago
option-pagination.php
8 years ago
option-read-more-page.php
8 years ago
option-select.php
8 years ago
option-slideshow-behavior.php
8 years ago
option-slideshow-breakpoints.php
7 years ago
option-slideshow-navigation.php
7 years ago
option-slideshow-num.php
7 years ago
option-slideshow-transition.php
7 years ago
option-slideshow-type.php
7 years ago
option-template-list.php
8 years ago
option-thumbnail.php
8 years ago
option-title.php
8 years ago
template-input.php
8 years ago
template-not-found.php
8 years ago
template-options.php
8 years ago
view-mode.php
8 years ago
view-name.php
9 years ago
view-shortcode.php
8 years ago
view-shortcode.php
33 lines
| 1 | <?php |
| 2 | // avoiding the tab character before the shortcode for better copy-n-paste |
| 3 | if ( 'edit' == $action ) { |
| 4 | $shortcode = '<div class="saved">'; |
| 5 | $shortcode .= '<input id="view-shortcode" type="text" value="[testimonial_view id="' . esc_attr( $view_id ) . '"]" readonly />'; |
| 6 | $shortcode .= '<input id="copy-shortcode" class="button small" type="button" value="' . esc_attr__( 'copy to clipboard', 'strong-testimonials' ) . '" data-copytarget="#view-shortcode" />'; |
| 7 | $shortcode .= '<span id="copy-message">copied</span>'; |
| 8 | $shortcode .= '</div>'; |
| 9 | } else { |
| 10 | $shortcode = '<div class="unsaved">' . _x( 'will be available after you save this', 'The shortcode for a new View.', 'strong-testimonials' ) . '</div>'; |
| 11 | } |
| 12 | |
| 13 | $then_classes = array( |
| 14 | 'then', |
| 15 | 'then_display', |
| 16 | 'then_form', |
| 17 | 'then_slideshow', |
| 18 | 'then_not_single_template', |
| 19 | apply_filters( 'wpmtst_view_section', '', 'shortcode' ), |
| 20 | ); |
| 21 | ?> |
| 22 | |
| 23 | <div class="table-row form-view-shortcode <?php echo esc_attr( join( array_filter( $then_classes ), ' ' ) ); ?>"> |
| 24 | <div class="table-cell"> |
| 25 | <label for="view-shortcode"> |
| 26 | <?php _e( 'Shortcode', 'strong-testimonials' ); ?> |
| 27 | </label> |
| 28 | </div> |
| 29 | <div class="table-cell"> |
| 30 | <?php echo $shortcode; ?> |
| 31 | </div> |
| 32 | </div> |
| 33 |