|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /home/njnconst/public_html/wp-content/themes/minamaze/admin/main/options/ |
Upload File : |
<?php
/**
* Footer functions.
*
* @package ThinkUpThemes
*/
/* ----------------------------------------------------------------------------------
FOOTER WIDGETS LAYOUT
---------------------------------------------------------------------------------- */
/* Assign function for widget area 1 */
function thinkup_input_footerw1() {
echo '<div id="footer-col1" class="widget-area">';
if ( ! dynamic_sidebar( 'footer-w1' ) and current_user_can( 'edit_theme_options' ) ) {
echo '<h3 class="widget-title">' . esc_html__( 'Please Add Widgets', 'minamaze') . '</h3>',
'<div class="error-icon">',
'<p>' . esc_html__( 'Remove this message by adding widgets to Footer Widget Area 1.', 'minamaze') . '</p>',
'<a href="' . esc_url( admin_url( 'widgets.php' ) ) . '" title="' . esc_attr__( 'No Widgets Selected', 'minamaze' ) . '">' . esc_html__( 'Click here to go to Widget area.', 'minamaze') . '</a>',
'</div>';
};
echo '</div>';
}
/* Assign function for widget area 2 */
function thinkup_input_footerw2() {
echo '<div id="footer-col2" class="widget-area">';
if ( ! dynamic_sidebar( 'footer-w2' ) and current_user_can( 'edit_theme_options' ) ) {
echo '<h3 class="widget-title">' . esc_html__( 'Please Add Widgets', 'minamaze') . '</h3>',
'<div class="error-icon">',
'<p>' . esc_html__( 'Remove this message by adding widgets to Footer Widget Area 2.', 'minamaze') . '</p>',
'<a href="' . esc_url( admin_url( 'widgets.php' ) ) . '" title="' . esc_attr__( 'No Widgets Selected', 'minamaze' ) . '">' . esc_html__( 'Click here to go to Widget area.', 'minamaze') . '</a>',
'</div>';
};
echo '</div>';
}
/* Assign function for widget area 3 */
function thinkup_input_footerw3() {
echo '<div id="footer-col3" class="widget-area">';
if ( ! dynamic_sidebar( 'footer-w3' ) and current_user_can( 'edit_theme_options' ) ) {
echo '<h3 class="widget-title">' . esc_html__( 'Please Add Widgets', 'minamaze') . '</h3>',
'<div class="error-icon">',
'<p>' . esc_html__( 'Remove this message by adding widgets to Footer Widget Area 3.', 'minamaze') . '</p>',
'<a href="' . esc_url( admin_url( 'widgets.php' ) ) . '" title="' . esc_attr__( 'No Widgets Selected', 'minamaze' ) . '">' . esc_html__( 'Click here to go to Widget area.', 'minamaze') . '</a>',
'</div>';
};
echo '</div>';
}
/* Assign function for widget area 4 */
function thinkup_input_footerw4() {
echo '<div id="footer-col4" class="widget-area">';
if ( ! dynamic_sidebar( 'footer-w4' ) and current_user_can( 'edit_theme_options' ) ) {
echo '<h3 class="widget-title">' . esc_html__( 'Please Add Widgets', 'minamaze') . '</h3>',
'<div class="error-icon">',
'<p>' . esc_html__( 'Remove this message by adding widgets to Footer Widget Area 4.', 'minamaze') . '</p>',
'<a href="' . esc_url( admin_url( 'widgets.php' ) ) . '" title="' . esc_attr__( 'No Widgets Selected', 'minamaze' ) . '">' . esc_html__( 'Click here to go to Widget area.', 'minamaze') . '</a>',
'</div>';
};
echo '</div>';
}
/* Assign function for widget area 5 */
function thinkup_input_footerw5() {
echo '<div id="footer-col5" class="widget-area">';
if ( ! dynamic_sidebar( 'footer-w5' ) and current_user_can( 'edit_theme_options' ) ) {
echo '<h3 class="widget-title">' . esc_html__( 'Please Add Widgets', 'minamaze') . '</h3>',
'<div class="error-icon">',
'<p>' . esc_html__( 'Remove this message by adding widgets to Footer Widget Area 5.', 'minamaze') . '</p>',
'<a href="' . esc_url( admin_url( 'widgets.php' ) ) . '" title="' . esc_attr__( 'No Widgets Selected', 'minamaze' ) . '">' . esc_html__( 'Click here to go to Widget area.', 'minamaze') . '</a>',
'</div>';
};
echo '</div>';
}
/* Assign function for widget area 6 */
function thinkup_input_footerw6() {
echo '<div id="footer-col6" class="widget-area">';
if ( ! dynamic_sidebar( 'footer-w6' ) and current_user_can( 'edit_theme_options' ) ) {
echo '<h3 class="widget-title">' . esc_html__( 'Please Add Widgets', 'minamaze') . '</h3>',
'<div class="error-icon">',
'<p>' . esc_html__( 'Remove this message by adding widgets to Footer Widget Area 6.', 'minamaze') . '</p>',
'<a href="' . esc_url( admin_url( 'widgets.php' ) ) . '" title="' . esc_attr__( 'No Widgets Selected', 'minamaze' ) . '">' . esc_html__( 'Click here to go to Widget area.', 'minamaze') . '</a>',
'</div>';
};
echo '</div>';
}
/* Add Custom Footer Layout */
function thinkup_input_footerlayout() {
// Get theme options values.
$thinkup_footer_layout = thinkup_var ( 'thinkup_footer_layout' );
$thinkup_footer_widgetswitch = thinkup_var ( 'thinkup_footer_widgetswitch' );
if ( $thinkup_footer_widgetswitch != "1" and ! empty( $thinkup_footer_layout ) ) {
echo '<div id="footer">';
if ( $thinkup_footer_layout == "option1" ) {
echo '<div id="footer-core" class="option1">';
thinkup_input_footerw1();
echo '</div>';
} else if ( $thinkup_footer_layout == "option2" ) {
echo '<div id="footer-core" class="option2">';
thinkup_input_footerw1();
thinkup_input_footerw2();
echo '</div>';
} else if ( $thinkup_footer_layout == "option3" ) {
echo '<div id="footer-core" class="option3">';
thinkup_input_footerw1();
thinkup_input_footerw2();
thinkup_input_footerw3();
echo '</div>';
} else if ( $thinkup_footer_layout == "option4" ) {
echo '<div id="footer-core" class="option4">';
thinkup_input_footerw1();
thinkup_input_footerw2();
thinkup_input_footerw3();
thinkup_input_footerw4();
echo '</div>';
} else if ( $thinkup_footer_layout == "option5" ) {
echo '<div id="footer-core" class="option5">';
thinkup_input_footerw1();
thinkup_input_footerw2();
thinkup_input_footerw3();
thinkup_input_footerw4();
thinkup_input_footerw5();
echo '</div>';
} else if ( $thinkup_footer_layout == "option6" ) {
echo '<div id="footer-core" class="option6">';
thinkup_input_footerw1();
thinkup_input_footerw2();
thinkup_input_footerw3();
thinkup_input_footerw4();
thinkup_input_footerw5();
thinkup_input_footerw6();
echo '</div>';
} else if ( $thinkup_footer_layout == "option7" ) {
echo '<div id="footer-core" class="option7">';
thinkup_input_footerw1();
thinkup_input_footerw2();
echo '</div>';
} else if ( $thinkup_footer_layout == "option8" ) {
echo '<div id="footer-core" class="option8">';
thinkup_input_footerw1();
thinkup_input_footerw2();
echo '</div>';
} else if ( $thinkup_footer_layout == "option9" ) {
echo '<div id="footer-core" class="option9">';
thinkup_input_footerw1();
thinkup_input_footerw2();
echo '</div>';
} else if ( $thinkup_footer_layout == "option10" ) {
echo '<div id="footer-core" class="option10">';
thinkup_input_footerw1();
thinkup_input_footerw2();
echo '</div>';
} else if ( $thinkup_footer_layout == "option11" ) {
echo '<div id="footer-core" class="option11">';
thinkup_input_footerw1();
thinkup_input_footerw2();
echo '</div>';
} else if ( $thinkup_footer_layout == "option12" ) {
echo '<div id="footer-core" class="option12">';
thinkup_input_footerw1();
thinkup_input_footerw2();
echo '</div>';
} else if ( $thinkup_footer_layout == "option13" ) {
echo '<div id="footer-core" class="option13">';
thinkup_input_footerw1();
thinkup_input_footerw2();
thinkup_input_footerw3();
thinkup_input_footerw4();
echo '</div>';
} else if ( $thinkup_footer_layout == "option14" ) {
echo '<div id="footer-core" class="option14">';
thinkup_input_footerw1();
thinkup_input_footerw2();
thinkup_input_footerw3();
thinkup_input_footerw4();
echo '</div>';
} else if ( $thinkup_footer_layout == "option15" ) {
echo '<div id="footer-core" class="option15">';
thinkup_input_footerw1();
thinkup_input_footerw2();
thinkup_input_footerw3();
echo '</div>';
} else if ( $thinkup_footer_layout == "option16" ) {
echo '<div id="footer-core" class="option16">';
thinkup_input_footerw1();
thinkup_input_footerw2();
thinkup_input_footerw3();
echo '</div>';
} else if ( $thinkup_footer_layout == "option17" ) {
echo '<div id="footer-core" class="option17">';
thinkup_input_footerw1();
thinkup_input_footerw2();
thinkup_input_footerw3();
thinkup_input_footerw4();
thinkup_input_footerw5();
echo '</div>';
} else if ( $thinkup_footer_layout == "option18" ) {
echo '<div id="footer-core" class="option18">';
thinkup_input_footerw1();
thinkup_input_footerw2();
thinkup_input_footerw3();
thinkup_input_footerw4();
thinkup_input_footerw5();
echo '</div>';
}
echo '</div>';
}
}
/* ----------------------------------------------------------------------------------
COPYRIGHT TEXT
---------------------------------------------------------------------------------- */
function thinkup_input_copyright() {
printf( esc_html__( 'Theme by %1$s. Powered by %2$s.', 'minamaze' ), '<a href="https://www.thinkupthemes.com/" target="_blank">Think Up Themes Ltd</a>', '<a href="https://www.wordpress.org/" target="_blank">WordPress</a>' );
}
?>