Changes to blocks and added basic framework for Newsletters
This commit is contained in:
@ -234,7 +234,7 @@ add_action( 'wp_footer', function() {
|
||||
|
||||
|
||||
|
||||
|
||||
// Register the settings page with tabs
|
||||
function render_lcp_theme_settings_page() {
|
||||
?>
|
||||
<div class="wrap">
|
||||
@ -244,26 +244,35 @@ function render_lcp_theme_settings_page() {
|
||||
<div class="tab-container">
|
||||
<!-- Tabs -->
|
||||
<ul class="tabs">
|
||||
<li class="tab-link active" data-tab="icons">Icons</li>
|
||||
<li class="tab-link active" data-tab="custom-meta">Custom Meta</li>
|
||||
<li class="tab-link" data-tab="icons">Icons</li>
|
||||
<li class="tab-link" data-tab="custom-code">Custom Code</li>
|
||||
</ul>
|
||||
|
||||
<!-- Tab Panes -->
|
||||
<div id="icons" class="tab-pane active">
|
||||
<!-- Icons Tab -->
|
||||
<div id="icons" class="tab-pane">
|
||||
<!-- Icons Tab Content -->
|
||||
<h2>Custom SVG Icons</h2>
|
||||
<form method="post" action="options.php">
|
||||
<?php
|
||||
// Output necessary settings fields for the 'Icons' tab
|
||||
settings_fields('lcp_theme_settings_group');
|
||||
do_settings_sections('lcp_theme_settings_page'); // This outputs all the fields defined by add_settings_field
|
||||
// This outputs all the fields defined by add_settings_field
|
||||
mytheme_display_icon_sets();
|
||||
?>
|
||||
|
||||
<?php submit_button(); ?>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Custom Meta Tab Pane -->
|
||||
<div id="custom-meta" class="tab-pane active">
|
||||
<?php
|
||||
settings_fields('lcp_theme_settings_group');
|
||||
do_settings_sections('lcp_theme_settings_page');
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div id="custom-code" class="tab-pane">
|
||||
<!-- Custom Code Tab Content -->
|
||||
<h2>Custom Code Settings</h2>
|
||||
@ -299,8 +308,9 @@ function render_lcp_theme_settings_page() {
|
||||
|
||||
|
||||
|
||||
// Hooks
|
||||
|
||||
/* HIGHLIGHT-TO-SHARE */
|
||||
// Render the highlight-to-share popup
|
||||
function highlight_to_share_popup() {
|
||||
echo "
|
||||
<div class=\"popup\" id=\"popup\">
|
||||
@ -311,6 +321,8 @@ function highlight_to_share_popup() {
|
||||
";
|
||||
}
|
||||
|
||||
/* HOOKS */
|
||||
//Move to custom hooks class or file in future
|
||||
function lcp_wp_head_hooks(){
|
||||
// Define lcp_theme_settings array from wp_options
|
||||
$options = get_option('lcp_theme_settings', array());
|
||||
|
||||
Reference in New Issue
Block a user