function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base); $enable_social = esc_attr($instance['enable_social']); $before_widget = '<div class="widget widget-text"><div class="textwidget">'; $after_widget = '</div></div>'; $tfuse_title = !empty($title) ? '<h3 class="widget-title">' . tfuse_qtranslate($title) . '</h3>' : ''; echo $before_widget; echo $tfuse_title; if ($instance['adress'] != '') { echo '<div class="address"> <h3 class="title">' . __('ADDRESS:', 'tfuse') . '</h3> <p>' . tfuse_qtranslate($instance['adress']) . '</p> </div>'; } if ($instance['hours'] != '') { echo '<div class="openning-hours"> <h3 class="title">' . __('OPENING HOURS', 'tfuse') . '</h3> <p>' . tfuse_qtranslate($instance['hours']) . '</p> </div>'; } if ($instance['phone'] != '') { echo '<div class="phone-number"> <h3 class="title">' . __('phone number', 'tfuse') . '</h3> <p>' . $instance['phone'] . '</p> </div>'; } if ($enable_social) { ?> <div class="social-links"> <?php tfuse_footer_social(); ?> </div> <?php } echo $after_widget; }
function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base); $enable_social = esc_attr($instance['enable_social']); $text = apply_filters('widget_text', $instance['text'], $instance); $tf_class = @$instance['nopadding'] ? 'class="widget widget-text nopadding"' : 'class="widget widget-text "'; $before_widget = '<div id="text-' . $args['widget_id'] . '" ' . $tf_class . '>'; $after_widget = '</div>'; $before_title = '<h3 class="widget-title">'; $after_title = '</h3>'; echo $before_widget; $title = tfuse_qtranslate($title); if (!empty($title)) { echo $before_title . $title . $after_title; } ?> <div class="aboutw"> <?php echo $instance['filter'] ? wpautop($text) : $text; ?> <?php if ($enable_social) { ?> <div class="social-links"> <?php tfuse_footer_social(); ?> </div> <?php } ?> </div> <?php echo $after_widget; }
<footer class="footer"> <div class="container"> <div class="row footer-nav"> <div class="col-lg-offset-3 col-md-offset-2 col-sm-offset-0 col-xs-offset-0"> <?php tfuse_menu('footer'); ?> <!--Footer Social--> <div class="footer-socials"> <?php tfuse_footer_social(); ?> </div> <!--Copyright--> <div class="copyright"> <?php echo tfuse_options('custom_copyright'); ?> </div> </div> </div> </div> </footer> <a class="anchor hidden" id="to-top" href="#page"><span class="tficon-row-up"></span></a> </div><!-- /#page--> <?php wp_footer(); ?> </body> </html>