/** * Migrate Option Panel To Customizer */ function squirrel_migrate_option() { if (get_option('squirrel_options') && !get_option('squirrel_option_migrate')) { $theme_options = array('squirrel_logo', 'squirrel_favicon', '', 'squirrel_image1'); $wp_upload_dir = wp_upload_dir(); require ABSPATH . 'wp-admin/includes/image.php'; foreach ($theme_options as $option) { $option_value = squirrel_get_option($option); if ($option_value && $option_value != '') { $filetype = wp_check_filetype(basename($option_value), null); $image_name = preg_replace('/\\.[^.]+$/', '', basename($option_value)); $new_image_url = $wp_upload_dir['path'] . '/' . $image_name . '.' . $filetype['ext']; squirrel_import_file($new_image_url); } } update_option('squirrel_option_migrate', true); } }
function squirrel_of_head_css() { $output = ''; $custom_css = squirrel_get_option('squirrel_customcss'); if ($custom_css != '') { $output .= $custom_css . "\n"; } // Output styles if ($output != '') { $output = "<!-- Custom Styling -->\n<style type=\"text/css\">\n" . $output . "</style>\n"; echo $output; } }
<?php /* A sidebar in the footer? Yep. You can can customize * your footer with four columns of widgets. */ get_sidebar('footer'); ?> </div> <div class="footer-strip"></div> <!--Start footer bottom inner--> <div class="bottom-footer"> <div class="footer_bottom_inner"> <?php if (squirrel_get_option('squirrel_cright') != '') { ?> <span class="copyright"><?php echo squirrel_get_option('squirrel_cright'); ?> </span> <?php } else { ?> <?php printf('<span class="copyright"><a href="' . esc_url('http://www.inkthemes.com') . '">Squirrel Theme</a> powered by <a href="' . esc_url('http://www.wordpress.org') . '">WordPress</a></span>'); ?> <?php } ?> </div> </div> <!--End Footer bottom inner--> <!--End Footer bottom-->
} else { } ?> " > <div class="main-container"> <div class="container_24"> <div class="grid_24"> <div class="main-content"> <!--Start Header--> <div class="header"> <div class="logo"> <a href="<?php echo esc_url(home_url()); ?> "><img src="<?php if (squirrel_get_option('squirrel_logo') != '') { echo squirrel_get_option('squirrel_logo'); } else { echo get_template_directory_uri(); ?> /images/logo.png<?php } ?> " alt="<?php bloginfo('name'); ?> " /></a></div> </div> <!--End Header--> <div class="clear"></div> <!--Start Menu wrapper--> <div class="menu_wrapper">
<?php } else { ?> <h3><?php _e('Google Apps & Ms Exchange', 'squirrel'); ?> </h3> <?php } ?> <?php if (squirrel_get_option('squirrel_fullcoldesc') != '') { ?> <p><?php echo stripslashes(squirrel_get_option('squirrel_fullcoldesc')); ?> </p> <?php } else { ?> <p><?php _e("Product Developers/ Internet Marketer make more sales when they can easily display their products with the buy links in the perfect location. Products with the buy link.My husband and I are either goinuy a dog or have a child. We can't decide whether to ruin our carpets or ruin our lives. ", 'squirrel'); ?> </p> <?php } ?> </div> </div>