%s', __( 'Used', SH_CD_SLUG ), sh_cd_db_shortcodes_count(), __( 'of', SH_CD_SLUG ), sh_cd_get_free_limit(), __( 'shortcodes', SH_CD_SLUG ), sh_cd_license_upgrade_link(), __( 'Go unlimited!', SH_CD_SLUG ) ); } ?>

%7$s ', __( 'Slug', SH_CD_SLUG ), __( 'Add', SH_CD_SLUG ), __( 'Clear form after save', SH_CD_SLUG ), __( 'Your Shortcode has been added. Please refresh the page to edit it.', SH_CD_SLUG ), ( false === sh_cd_is_premium() ) ? ' disabled="disabled"' : '', SH_CD_SHORTCODE, sh_cd_is_multisite_enabled() ? '' : '' ); $current_shortcodes = sh_cd_db_shortcodes_all(); if ( false === empty( $current_shortcodes ) ) { $class = ''; $link = sh_cd_link_your_shortcodes(); $is_premium = sh_cd_is_premium(); foreach ( $current_shortcodes as $shortcode ) { $class = ($class == 'alternate') ? '' : 'alternate'; $id = (int) $shortcode['id']; $icons = ( $is_premium ) ? sh_cd_icons_for_shortcode( $shortcode ) : ''; $multisite_column = ''; if ( true === sh_cd_is_multisite_enabled() ) { $multisite_column = sprintf ( '', ( false === $is_premium ) ? 'disabled' : '', $id, __( 'Enable this shortcode for use across all sites within your WordPress multisite network.', SH_CD_SLUG ), ( 1 === (int) $shortcode['multisite'] ) ? 'fa-check' : 'fa-times' ); } printf( ' %15$s ', $class, $link . '&action=edit&id=' . $id, esc_html( $shortcode['slug'] ), SH_CD_SHORTCODE, ( $is_premium ) ? esc_html( stripslashes( $shortcode['data'] ) ) : __( 'Upgrade for inline editing and toggles.', SH_CD_SLUG ), ( 1 === (int) $shortcode['disabled'] ) ? 'fa-times' : 'fa-check', $id, ( $is_premium ) ? wp_nonce_url( $link . '&action=clone&id=' . $id, 'sh-cd-clone-shortcode' ) : sh_cd_license_upgrade_link(), __( 'Save', SH_CD_SLUG ), ( false === $is_premium ) ? 'disabled' : '', __( 'Use the full Visual or Code editor to edit this shortcode.', SH_CD_SLUG ), __( 'Permanently delete and remove this shortcode.', SH_CD_SLUG ), __( 'Clone this shortcode to create an identical copy for editing', SH_CD_SLUG ), __( 'Enable or disable a shortcode. When enabled, the shortcode will not be rendered on the website\'s public facing side.', SH_CD_SLUG ), $multisite_column, __( 'Copy to clipboard', SH_CD_SLUG ), wp_kses( $icons, [ 'i' => [ 'class' => [], 'title' => [] ] ] ) ); } } else { printf( '', __( 'You haven\'t created any shortcodes yet', SH_CD_SLUG ), sh_cd_link_your_shortcodes_add(), __( 'Add one now!', SH_CD_SLUG ) ); } ?>

[%6$s slug=""]

%2$s

%4$s

[%4$s slug="%3$s"]
%17$s %9$s
%1$s. %3$s

%1$s', __( 'Quick Add', SH_CD_SLUG ) ); } printf( '  %2$s', ( false === $limit_reached ) ? sh_cd_link_your_shortcodes_add() : sh_cd_license_upgrade_link(), ( false === $limit_reached ) ? __( 'Add via full editor', SH_CD_SLUG ) : __( 'You must upgrade to add more shortcodes', SH_CD_SLUG ), __( 'Use the full Visual or Code editor to add a new shortcode.', SH_CD_SLUG ) ); }