PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / frm-form-actions / _gated_content_shortcodes.php

_gated_content_shortcodes.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More trunk, at classes/views/frm-form-actions/_gated_content_shortcodes.php

55 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Gated Content shortcode reference section
4 *
5 * @package Formidable
6 *
7 * @since 6.33
8 *
9 * @var int $frm_gc_action_id Gated content action post ID.
10 */
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 die( 'You are not allowed to call this page directly.' );
14 }
15
16 $frm_gc_shortcodes = FrmGatedContentAction::get_shortcodes( $frm_gc_action_id );
17 ?>
18 <div class="frm_form_field frm_gc_shortcodes_section" style="margin-top: 20px;">
19 <h3 class="frm-mb-xs"><?php esc_html_e( 'Access Link Shortcodes', 'formidable' ); ?></h3>
20 <p class="frm_description">
21 <?php esc_html_e( 'Add these shortcodes to a Confirmation or Send Email action to include the access link.', 'formidable' ); ?>
22 </p>
23 <div class="frm_gc_shortcode_table">
24 <div class="frm_gc_shortcode_header frm_grid_container">
25 <div class="frm6"><?php esc_html_e( 'Shortcode', 'formidable' ); ?></div>
26 <div class="frm6"><?php esc_html_e( 'Output', 'formidable' ); ?></div>
27 </div>
28 <div class="frm_gc_shortcode_body">
29 <?php foreach ( $frm_gc_shortcodes as $frm_gc_shortcode ) : ?>
30 <div class="frm_gc_shortcode_row frm_grid_container">
31 <div class="frm6">
32 <code><?php echo esc_html( $frm_gc_shortcode['code'] ); ?></code>
33 <button
34 type="button"
35 class="frm_gc_copy_shortcode button-link"
36 data-frm-copy="<?php echo esc_attr( $frm_gc_shortcode['code'] ); ?>"
37 data-copied-label="<?php esc_attr_e( 'Copied!', 'formidable' ); ?>"
38 aria-label="<?php esc_attr_e( 'Copy shortcode', 'formidable' ); ?>"
39 >
40 <svg class="frmsvg frm_svg14 frm-gc-icon frm-gc-icon--copy" aria-hidden="true" focusable="false">
41 <use href="#frm_clone_icon"></use>
42 </svg>
43 <svg class="frmsvg frm_svg14 frm-gc-icon frm-gc-icon--check" aria-hidden="true" focusable="false">
44 <use href="#frm_checkmark_icon"></use>
45 </svg>
46 </button>
47 </div>
48 <div class="frm6"><?php echo esc_html( $frm_gc_shortcode['output'] ); ?></div>
49 </div>
50 <?php endforeach; ?>
51 </div>
52 </div><!-- .frm_gc_shortcode_table -->
53 </div><!-- .frm_gc_shortcodes_section -->
54 <?php unset( $frm_gc_shortcodes, $frm_gc_shortcode ); ?>
55