Below this line not needed. This is just for demonstration purposes.
$function = '' . esc_html__( 'Function', 'your-textdomain-here' ) . ': ';
$example = esc_html__( 'Example output:', 'your-textdomain-here' ) . ' ';
Redux::set_section(
$opt_name,
array(
'customizer' => false,
'subsection' => true,
'title' => esc_html__( 'Shortcodes', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . 'docs.reduxframework.com/extensions/shortcodes',
'fields' => array(
array(
'id' => 'sc-bloginfo',
'title' => esc_html__( '[bloginfo data="name"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_bloginfo("name")',
'desc' => esc_html__( 'Displays the "Site Title" set in Settings > General. This data is retrieved from the "blogname" record in the wp_options table.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="name"]' ),
'full_width' => false,
),
array(
'id' => 'sc-description',
'title' => esc_html__( '[bloginfo data="description"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_bloginfo("description")',
'desc' => esc_html__( 'Displays the "Tagline" set in Settings > General. This data is retrieved from the "blogdescription" record in the wp_options table.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="description"]' ),
'full_width' => false,
),
array(
'id' => 'sc-wpurl',
'title' => esc_html__( '[bloginfo data="wpurl"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_bloginfo("wpurl")',
'desc' => esc_html__( 'Displays the "WordPress address (URL)" set in Settings > General. This data is retrieved from the "siteurl" record in the wp_options table. Consider using *root_url* instead, especially for multi-site configurations using paths instead of subdomains (it will return the root site not the current sub-site).', 'your-textdomain-here' ),
'type' => 'raw',
'markdown' => true,
'content' => $example . do_shortcode( '[bloginfo data="wpurl"]' ),
'full_width' => false,
),
array(
'id' => 'sc-rooturl',
'title' => esc_html__( '[bloginfo data="root_url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'site_url()',
'desc' => esc_html__( 'Return the root site, not the current sub-site.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="root_url"]' ),
'full_width' => false,
),
array(
'id' => 'sc-url',
'title' => esc_html__( '[bloginfo data="url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'home_url()',
'desc' => esc_html__( 'Displays the "Site address (URL)" set in Settings > General. This data is retrieved from the "home" record in the wp_options table.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="url"]' ),
'full_width' => false,
),
array(
'id' => 'sc-adminemail',
'title' => esc_html__( '[bloginfo data="admin_email"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_bloginfo("admin_email")',
'desc' => esc_html__( 'Displays the "E-mail address" set in Settings > General. This data is retrieved from the "admin_email" record in the wp_options table.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="admin_email"]' ),
'full_width' => false,
),
array(
'id' => 'sc-charset',
'title' => esc_html__( '[bloginfo data="charset"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_bloginfo("charset")',
'desc' => esc_html__( 'Displays the "Encoding for pages and feeds" set in Settings > Reading. This data is retrieved from the "blog_charset" record in the wp_options.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="charset"]' ),
'full_width' => false,
),
array(
'id' => 'sc-version',
'title' => esc_html__( '[bloginfo data="version"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_bloginfo("version")',
'desc' => esc_html__( 'Displays the WordPress Version you use. This data is retrieved from the $wp_version variable set in wp-includes/version.php.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="version"]' ),
'full_width' => false,
),
array(
'id' => 'sc-htmltype',
'title' => esc_html__( '[bloginfo data="html_type"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_bloginfo("html_type")',
'desc' => esc_html__( 'Displays the Content-Type of WordPress HTML pages (default: "text/html"). This data is retrieved from the "html_type" record in the wp_options table. Themes and plugins can override the default value using the pre_option_html_type filter.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="html_type"]' ),
'full_width' => false,
),
array(
'id' => 'sc-multi',
'title' => esc_html__( '[bloginfo data="is_multisite"]', 'your-textdomain-here' ),
'subtitle' => $function . 'is_multisite()',
'desc' => esc_html__( 'Displays true/false check if WordPress is running in multisite mode.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . ( do_shortcode( '[bloginfo data="is_multisite"]' ) ),
'full_width' => false,
),
array(
'id' => 'sc-rtl',
'title' => esc_html__( '[bloginfo data="text_direction"]', 'your-textdomain-here' ),
'subtitle' => $function . 'is_rtl()',
'desc' => esc_html__( 'Displays true/false check if the Text Direction of WordPress HTML pages is left instead of right.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . ( do_shortcode( '[bloginfo data="text_direction"]' ) ),
'full_width' => false,
),
array(
'id' => 'sc-lang',
'title' => esc_html__( '[bloginfo data="language"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_bloginfo("language")',
'desc' => esc_html__( 'Displays the language of WordPress.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="language"]' ),
'full_width' => false,
),
array(
'id' => 'sc-stylesheet-url',
'title' => esc_html__( '[bloginfo data="stylesheet_url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_stylesheet_uri()',
'desc' => esc_html__( 'Displays the primary CSS (usually style.css) file URL of the active theme.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="stylesheet_url"]' ),
'full_width' => false,
),
array(
'id' => 'sc-stylesheet-dir',
'title' => esc_html__( '[bloginfo data="stylesheet_directory"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_stylesheet_directory()',
'desc' => esc_html__( 'Displays the stylesheet directory of the active theme.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="stylesheet_directory"]' ),
'full_width' => false,
),
array(
'id' => 'sc-template-url',
'title' => esc_html__( '[bloginfo data="template_url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_template_directory_uri()',
'desc' => esc_html__( 'Displays the "Site Title" set in Settings > General. This data is retrieved from the "blogname" record in the wp_options table.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="template_url"]' ),
'full_width' => false,
),
array(
'id' => 'sc-child-template-url',
'title' => esc_html__( '[bloginfo data="child_template_url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_stylesheet_directory_uri()',
'desc' => esc_html__( 'Child template URI.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="child_template_url"]' ),
'full_width' => false,
),
array(
'id' => 'sc-template-dir',
'title' => esc_html__( '[bloginfo data="template_directory"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_template_directory()',
'desc' => esc_html__( 'Template directory.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="template_directory"]' ),
'full_width' => false,
),
array(
'id' => 'sc-child-template-dir',
'title' => esc_html__( '[bloginfo data="child_template_directory"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_stylesheet_directory()',
'desc' => esc_html__( 'Child template Directory.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="child_template_directory"]' ),
'full_width' => false,
),
array(
'id' => 'sc-pingback-url',
'title' => esc_html__( '[bloginfo data="pingback_url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_bloginfo("pingback_url")',
'desc' => esc_html__( 'Displays the Pingback XML-RPC file URL (xmlrpc.php).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="pingback_url"]' ),
'full_width' => false,
),
array(
'id' => 'sc-atom-url',
'title' => esc_html__( '[bloginfo data="atom_url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_bloginfo("atom_url")',
'desc' => esc_html__( 'Displays the Atom feed URL (/feed/atom).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="atom_url"]' ),
'full_width' => false,
),
array(
'id' => 'sc-rdf-url',
'title' => esc_html__( '[bloginfo data="rdf_url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_bloginfo("rdf_url")',
'desc' => esc_html__( 'Displays the RDF/RSS 1.0 feed URL (/feed/rfd).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="rdf_url"]' ),
'full_width' => false,
),
array(
'id' => 'sc-rss-url',
'title' => esc_html__( '[bloginfo data="rss_url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_bloginfo("rss_url")',
'desc' => esc_html__( 'Displays the RSS 0.92 feed URL (/feed/rss).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="rss_url"]' ),
'full_width' => false,
),
array(
'id' => 'sc-rss2-url',
'title' => esc_html__( '[bloginfo data="rss2_url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_bloginfo("rss2_url")',
'desc' => esc_html__( 'Displays the RSS 2.0 feed URL (/feed).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="rss2_url"]' ),
'full_width' => false,
),
array(
'id' => 'sc-comments-atom-url',
'title' => esc_html__( '[bloginfo data="comments_atom_url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_bloginfo("comments_atom_url")',
'desc' => esc_html__( 'Displays the comments Atom feed URL (/comments/feed).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="comments_atom_url"]' ),
'full_width' => false,
),
array(
'id' => 'sc-comments-rss2-url',
'title' => esc_html__( '[bloginfo data="comments_rss2_url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'get_bloginfo("comments_rss2_url")',
'desc' => esc_html__( 'Displays the comments RSS 2.0 feed URL (/comments/feed).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="comments_rss2_url"]' ),
'full_width' => false,
),
array(
'id' => 'sc-login-url',
'title' => esc_html__( '[bloginfo data="login_url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'wp_login_url()',
'desc' => esc_html__( 'Returns the WordPress login URL.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="login_url"]' ),
'full_width' => false,
),
array(
'id' => 'sc-logout-url',
'title' => esc_html__( '[bloginfo data="logout_url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'wp_logout_url()',
'desc' => esc_html__( 'Returns the WordPress logout URL.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="logout_url"]' ),
'full_width' => false,
),
array(
'id' => 'sc-register-url',
'title' => esc_html__( '[bloginfo data="register_url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'wp_registration_url()',
'desc' => esc_html__( 'Returns the WordPress register URL.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="register_url"]' ),
'full_width' => false,
),
array(
'id' => 'sc-lost-pw-url',
'title' => esc_html__( '[bloginfo data="lost_password_url"]', 'your-textdomain-here' ),
'subtitle' => $function . 'wp_lostpassword_url()',
'desc' => esc_html__( 'Returns the WordPress lost password URL.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[bloginfo data="lost_password_url"]' ),
'full_width' => false,
),
array(
'id' => 'opt-divide-1',
'type' => 'divide',
),
array(
'id' => 'sc-date',
'title' => esc_html__( '[date data="Y"]', 'your-textdomain-here' ),
'subtitle' => $function . 'date("Y")',
// translators: %1$s: PHP Date Format URL.
'desc' => sprintf( esc_html__( 'Returns the current year. Any date format characters as specified by the %1$s may be used.', 'your-textdomain-here' ), '' . esc_html__( 'PHP Date Format Table', 'your-textdomain-here' ) . '' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[date data="Y"]' ),
'full_width' => false,
),
array(
'id' => 'opt-divide-2',
'type' => 'divide',
),
array(
'id' => 'sc-theme-name',
'title' => esc_html__( '[themeinfo data="name"]', 'your-textdomain-here' ),
'subtitle' => $function . '$theme_info->get("Name")',
'desc' => esc_html__( 'Theme name as given in theme\'s style.css.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[themeinfo data="name"]' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-uri',
'title' => esc_html__( '[themeinfo data="theme_uri"]', 'your-textdomain-here' ),
'subtitle' => $function . '$theme_info->get("ThemeURI")',
'desc' => esc_html__( 'The URL to the theme\'s directory.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[themeinfo data="theme_uri"]' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-desc',
'title' => esc_html__( '[themeinfo data="description"]', 'your-textdomain-here' ),
'subtitle' => $function . '$theme_info->get("Description")',
'desc' => esc_html__( 'The description of the theme.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[themeinfo data="description"]' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-author',
'title' => esc_html__( '[themeinfo data="author"]', 'your-textdomain-here' ),
'subtitle' => $function . '$theme_info->get("Author")',
'desc' => esc_html__( 'The theme\'s author.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[themeinfo data="author"]' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-author-uri',
'title' => esc_html__( '[themeinfo data="author_uri"]', 'your-textdomain-here' ),
'subtitle' => $function . '$theme_info->get("AuthorURI")',
'desc' => esc_html__( 'The website of the theme author.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[themeinfo data="author_uri"]' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-version',
'title' => esc_html__( '[themeinfo data="version"]', 'your-textdomain-here' ),
'subtitle' => $function . '$theme_info->get("Version")',
'desc' => esc_html__( 'The version of the theme.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[themeinfo data="version"]' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-template',
'title' => esc_html__( '[themeinfo data="template"]', 'your-textdomain-here' ),
'subtitle' => $function . '$theme_info->get("Template")',
'desc' => esc_html__( 'The folder name of the current theme.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[themeinfo data="template"]' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-status',
'title' => esc_html__( '[themeinfo data="status"]', 'your-textdomain-here' ),
'subtitle' => $function . '$theme_info->get("Status")',
'desc' => esc_html__( 'If the theme is published.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[themeinfo data="status"]' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-tags',
'title' => esc_html__( '[themeinfo data="tags"]', 'your-textdomain-here' ),
'subtitle' => $function . '$theme_info->get("Tags")',
'desc' => esc_html__( 'Tags used to describe the theme.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[themeinfo data="tags"]' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-text-domain',
'title' => esc_html__( '[themeinfo data="text_domain"]', 'your-textdomain-here' ),
'subtitle' => $function . '$theme_info->get("TextDomain")',
'desc' => esc_html__( 'The text domain used in the theme for translation purposes.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[themeinfo data="text_domain"]' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-domain-path',
'title' => esc_html__( '[themeinfo data="domain_path"]', 'your-textdomain-here' ),
'subtitle' => $function . '$theme_info->get("DomainPath")',
'desc' => esc_html__( 'Path to the theme translation files.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[themeinfo data="domain_path"]' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-is-child',
'title' => esc_html__( '[themeinfo data="is_child"]', 'your-textdomain-here' ),
'subtitle' => $function . 'is_child_theme()',
'desc' => esc_html__( 'True/False return for child theme active check (Blank indicates False).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '[themeinfo data="is_child"]' ),
'full_width' => false,
),
),
)
);