<?php $ad160_show = get_theme_mod('ac_enable_160px_ad', ''); $ad160_code = get_theme_mod('ac_enable_160px_code', ''); $ad160_title = get_theme_mod('ac_enable_160px_title', ''); $ad160_url = get_theme_mod('ac_enable_160px_link', ''); if ($ad160_show && $ad160_code != '') { ?> <div class="b160-wrap"> <div class="d160"> <?php if ($ad160_title != '') { echo '<h5 class="bsmall-title"><a href="' . esc_url($ad160_url) . '" id="mini-ad-title">' . esc_html($ad160_title) . '</a></h5>'; } if ($ad160_code != '') { echo ac_sanitize_ads($ad160_code); } ?> </div> </div> <?php } ?> </div><!-- END .wrap-over-1600 --> <?php do_action('ac_action_mini_sidebar_inside_bot'); // Mini sidebar inside bottom action ?> </section><!-- END .mini-sidebar -->
bloginfo('description'); ?> </h2> <?php } } ?> </div><!-- END .logo --> <?php if ($ad728_show && $ad728_code != '' && !$logocentered) { ?> <div class="advertising728"> <?php if ($ad728_code != '') { echo ac_sanitize_ads($ad728_code); } ?> </div><!-- END .advertising728 --> <?php } ?> </div><!-- END .top --> <?php do_action('ac_action_menu_wrap_before'); // Before main wrap action ?> <nav class="menu-wrap<?php
function form($instance) { // Parse $instance $instance_defaults = $this->defaults; $instance = wp_parse_args($instance, $instance_defaults); extract($instance, EXTR_SKIP); // $instance Defaults $css_nmt = isset($instance['css_no_mt']) ? (bool) $instance['css_no_mt'] : false; $css_nmb = isset($instance['css_no_mb']) ? (bool) $instance['css_no_mb'] : false; $css_nbg = isset($instance['css_no_bg']) ? (bool) $instance['css_no_bg'] : false; $css_bot = isset($instance['css_b_top']) ? (bool) $instance['css_b_top'] : false; $css_bob = isset($instance['css_b_bot']) ? (bool) $instance['css_b_bot'] : false; $css_pat = isset($instance['css_p_top']) ? (bool) $instance['css_p_top'] : false; $css_pab = isset($instance['css_p_bot']) ? (bool) $instance['css_p_bot'] : false; ?> <p> <label for="<?php echo $this->get_field_id('ad_code'); ?> "><?php _e('Ad code:', 'justwrite'); ?> </label> <textarea class="widefat" rows="8" cols="20" id="<?php echo $this->get_field_id('ad_code'); ?> " name="<?php echo $this->get_field_name('ad_code'); ?> "><?php echo ac_sanitize_ads($ad_code); ?> </textarea></p> <p> <b><?php _e('Styling options:', 'justwrite'); ?> </b><br /> <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('css_no_mt'); ?> " name="<?php echo $this->get_field_name('css_no_mt'); ?> "<?php checked($css_nmt); ?> /> <label for="<?php echo $this->get_field_id('css_no_mt'); ?> "><?php _e('Remove top margin', 'justwrite'); ?> </label><br /> <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('css_no_mb'); ?> " name="<?php echo $this->get_field_name('css_no_mb'); ?> "<?php checked($css_nmb); ?> /> <label for="<?php echo $this->get_field_id('css_no_mb'); ?> "><?php _e('Remove bottom margin', 'justwrite'); ?> </label><br /> <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('css_no_bg'); ?> " name="<?php echo $this->get_field_name('css_no_bg'); ?> "<?php checked($css_nbg); ?> /> <label for="<?php echo $this->get_field_id('css_no_bg'); ?> "><?php _e('Remove background-color', 'justwrite'); ?> </label><br /> <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('css_b_top'); ?> " name="<?php echo $this->get_field_name('css_b_top'); ?> "<?php checked($css_bot); ?> /> <label for="<?php echo $this->get_field_id('css_b_top'); ?> "><?php _e('Add border top', 'justwrite'); ?> </label><br /> <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('css_b_bot'); ?> " name="<?php echo $this->get_field_name('css_b_bot'); ?> "<?php checked($css_bob); ?> /> <label for="<?php echo $this->get_field_id('css_b_bot'); ?> "><?php _e('Add border bottom', 'justwrite'); ?> </label><br /> <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('css_p_top'); ?> " name="<?php echo $this->get_field_name('css_p_top'); ?> "<?php checked($css_pat); ?> /> <label for="<?php echo $this->get_field_id('css_p_top'); ?> "><?php _e('Add padding top', 'justwrite'); ?> </label><br /> <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('css_p_bot'); ?> " name="<?php echo $this->get_field_name('css_p_bot'); ?> "<?php checked($css_pab); ?> /> <label for="<?php echo $this->get_field_id('css_p_bot'); ?> "><?php _e('Add padding bottom', 'justwrite'); ?> </label> </p> <?php }