芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/wp-content/themes/odefy/templates/section-footer.php
* @since 1.0.0 */ class Odefy_Footer_Area { private $id; private $building_tool; private $footer_full_width; private $mb_footer_switch; private $mb_copyright_switch; function __construct() { $footer_options = apply_filters( 'wgl/footer/enable', true ); extract($footer_options); $footer_bg_color = WGL_Framework::get_option('footer_bg_color'); $style = ''; $this->id = get_queried_object_id(); $this->building_tool = WGL_Framework::get_mb_option('footer_building_tool', 'mb_footer_switch', 'on'); $this->footer_full_width = WGL_Framework::get_option('footer_full_width'); if ( class_exists('RWMB_Loader') && 0 !== $this->id ) { $this->mb_footer_switch = $mb_footer_switch; if ('on' == $this->mb_footer_switch) { $footer_bg_color = rwmb_meta('mb_footer_bg'); $footer_bg_color = !empty($footer_bg_color['color']) ? $footer_bg_color['color'] : ""; } $this->mb_copyright_switch = $mb_copyright_switch; } // Container style if ( 'widgets' === $this->building_tool && ($footer_switch || $copyright_switch) ) { $style = !empty($footer_bg_color) ? ' background-color :' . esc_attr($footer_bg_color) . ';' : ''; $style .= WGL_Framework::bg_render('footer', 'mb_footer_switch'); $style = $style ? ' style="' . esc_attr($style) . '"' : ''; } // Render echo ''; } private function render_widgets_html() { // Get footer vars $footer_vars = $this->get_footer_vars(); extract($footer_vars); echo "