apache
wp-content
mu-plugins
plugins
activitypub
audioigniter
authldap
companion-auto-update
easy-digital-downloads
gitium
gp-premium
backgrounds
blog
colors
copyright
disable-elements
dist
elements
general
hooks
inc
langs
library
menu-plus
page-header
secondary-nav
sections
functions
css
js
metaboxes
css
js
views
sections-template.php
sections.php
use-sections.php
metabox-functions.php
templates
generate-sections.php
generate-sections.php
site-library
spacing
typography
woocommerce
gp-premium.php
readme.txt
wpml-config.xml
jetpack-protect
menu-icons
simple-local-avatars
smtp-mailer
two-factor
w3-total-cache
wp-piwik
wp-webauthn
index.php
themes
w3tc-config
index.php
.dbsetup
.gitignore
htaccess
php.ini
18 lines
841 B
PHP
18 lines
841 B
PHP
<?php
|
|
// No direct access, please
|
|
if ( ! defined( 'ABSPATH' ) ) exit;
|
|
?>
|
|
<div class="generate_sections_control">
|
|
|
|
<?php
|
|
global $post;
|
|
$use_sections = get_post_meta( $post->ID, '_generate_use_sections', true );
|
|
//$use_sections = isset( $use_sections['use_sections'] ) && 'true' == $use_sections['use_sections'] ? true : false;
|
|
wp_nonce_field( 'generate_sections_use_sections_nonce', '_generate_sections_use_sections_nonce' );
|
|
?>
|
|
<label for="_generate_use_sections[use_sections]">
|
|
<input type="checkbox" class="use-sections-switch" name="_generate_use_sections[use_sections]" id="_generate_use_sections[use_sections]" value="true" <?php if ( isset ( $use_sections['use_sections'] ) ) checked( $use_sections['use_sections'], 'true', true );?> />
|
|
<?php _e( 'Use Sections', 'gp-premium' ); ?>
|
|
</label>
|
|
</div>
|