/** * change admin login logo */ public function _hw_nhp_custom_loginlogo() { $logo = hw_option('admin_logo', HW_HOANGWEB_URL . '/images/hw-logo.jpg'); echo '<style type="text/css"> h1 a {background-image: url(' . $logo . ') !important; } </style>'; }
/** * excerpt length customizing */ public function _hw_custom_excerpt_length($length) { $n = trim(hw_option('excerpt_leng', $length)); if (empty($n) && ($n != '0' || $n != null || $n != false)) { $n = $length; } //default return $n; }
/** * show images list with cpt plugin */ public static function hw_nhp_list_images_cpt() { $num = (int) hw_option('multi_images_num', 10); $picts = array(); //I only need two pictures for ($i = 1; $i <= $num; $i++) { $picts['image' . $i] = "_image{$i}"; //ie: to get image item using get_post_meta($id, '_image1',true); } return $picts; }
/** * Print out the contents in the front-end. * * Alternatively you may use the content_{instantiated class name} method. * @param $sContent * @param $aArguments * @param $aFormData */ public function content($sContent, $aArguments, $aFormData) { if (!empty($aFormData['use_default_slider'])) { //default metaslider echo do_shortcode('[metaslider id=' . hw_option('main_slider_id', 1) . ']'); } elseif (!empty($aFormData['slider'])) { return do_shortcode(hwml_generate_shortcode($aFormData['slider'])); } /*return $sContent . '<p>' . __( 'Hello world! This is a widget created by Admin Page Framework.', 'hwml' ) . '</p>' . AdminPageFramework_Debug::get( $aArguments ) . AdminPageFramework_Debug::get( $aFormData );*/ }
/** * do footer skin */ public static function do_footer_skin() { $footer_skin = hw_option('footer_skin'); //get footer skin if (isset($footer_skin['hash_skin']) && isset($footer_skin['hwskin_config']) && class_exists('APF_hw_skin_Selector_hwskin')) { $skin = APF_hw_skin_Selector_hwskin::resume_hwskin_instance($footer_skin); $config = $skin->instance->get_file_skin_resource('functions.php', $skin->hash_skin); if (file_exists($config)) { include_once $config; //load footer skin configuration } } }
/** * do debug mode */ public static function do_debug_mode() { //turn off/on debug mode if (hw_option('debug') && (!defined('WP_DEBUG') || !WP_DEBUG)) { if (function_exists('runkit_constant_remove') && defined('WP_DEBUG')) { runkit_constant_remove("WP_DEBUG"); } if (!defined('WP_DEBUG')) { define("WP_DEBUG", true); } //turn debug } if (defined('WP_DEBUG') && WP_DEBUG) { if (function_exists('runkit_constant_remove') && defined('WP_DEBUG')) { runkit_constant_remove("WP_DEBUG"); } if (!defined('WP_DEBUG')) { define("WP_DEBUG", false); } } }
function get_callbacks_data() { return hw_option('scroll2top_image_file'); }
/** * get content_classes option base current context * @param $field field to return value * @return mixed */ private function get_nhp__content_classes($field = 'post_class') { static $classes_page = null; if (!$classes_page) { $classes_page = hw_option('content_classes'); } //valid if (!in_array($field, array('post_class', 'body_class'))) { return; } if (is_array($classes_page)) { foreach ($classes_page as $page => $class) { if (HW__Template::check_template_page($page)) { return $class[$field]; break; } } } }
/** * display ads on the website */ public function _hw_footer_setup_flra() { if (function_exists('hwlib_load_library')) { $mobile_detect = hwlib_load_library('HW_Mobile_Detect'); // if ($mobile_detect->object->isMobile() && !hw_option('ads_active_mobile')) { return; //do not show ads on mobile device } } //show ads if (hw_option('enable_flra')) { $id = rand(); $id_left_ad = 'hw_divAdLeft_' . $id; $id_right_ad = 'hw_divAdRight_' . $id; $effect = hw_option('ads_effects'); $lad_width = hw_option('lad_width', 150); //left ad width $rad_width = hw_option('rad_width', 150); //right ad width $mcontent_div = hw_option('mcontent_div'); //div main wrapper #$mcontent_width = hw_option('mcontent_width', 1000); ?> <style> #<?php echo $id_right_ad; ?> , #<?php echo $id_left_ad; ?> { display: block;z-index: 1e+19;position: absolute; } .hw-side-ads{ position: absolute !important; width: <?php echo $lad_width; ?> px; display: none; top:0px; } <?php if ($effect == 'fixed_to_top') { ?> <?php if ($mcontent_div) { echo "\r\n {$mcontent_div} {position:relative !important;}\r\n "; } ?> #<?php echo $id_right_ad; ?> .hw-ad-right{ <?php if ($rad_width) { echo "width: {$rad_width}px"; } ?> } #<?php echo $id_left_ad; ?> .hw-ad-left{ left:-<?php echo $lad_width + 10; ?> px; <?php if ($rad_width) { echo "width: {$lad_width}px"; } ?> } <?php } ?> </style> <!-- banner truot 2 ben --> <div id="<?php echo $id_right_ad; ?> " style=""><!-- left: 286.5px; --> <div class="hw-side-ads hw-ad-right"><?php echo hw_option('ad_left'); ?> </div> </div> <div id="<?php echo $id_left_ad; ?> " style=""><!-- left: 1486.5px; --> <div class="hw-side-ads hw-ad-left"><?php echo hw_option('ad_right'); ?> </div> </div> <script> var hw_ads = { /** * return ads setting */ hw_ads_settings: function() { var mcontent_div = '<?php echo hw_option('mcontent_div', ''); ?> '; var MainContentW = 0; //for default var LeftBannerW = <?php echo hw_option('lad_width', 150); ?> ; var RightBannerW = <?php echo hw_option('rad_width', 150); ?> ; var LeftAdjust = 0; var RightAdjust = 0; var TopAdjust = <?php echo hw_option('top_adjust', 20); ?> ; return { mcontent_div: mcontent_div, MainContentW: MainContentW, LeftBannerW:LeftBannerW, RightBannerW:RightBannerW, LeftAdjust: LeftAdjust, RightAdjust: RightAdjust, TopAdjust : TopAdjust } }, /** * This will check if the element is entirely visible in the current viewport */ elementInViewport:function (el) { if(typeof el =='string') el = jQuery(el).get(0); return jQuery(el).visible(); /* var top = el.offsetTop; var left = el.offsetLeft; var width = el.offsetWidth; var height = el.offsetHeight; while(el.offsetParent) { el = el.offsetParent; top += el.offsetTop; left += el.offsetLeft; } return ( top >= window.pageYOffset && left >= window.pageXOffset && (top + height) <= (window.pageYOffset + window.innerHeight) && (left + width) <= (window.pageXOffset + window.innerWidth) ); */ }, /** * You could modify this simply to determine if any part of the element is visible in the viewport: * @param el * @returns {boolean} */ elementInViewport2: function(el) { if(typeof el =='string') el = jQuery(el).get(0); var top = el.offsetTop; var left = el.offsetLeft; var width = el.offsetWidth; var height = el.offsetHeight; while(el.offsetParent) { el = el.offsetParent; top += el.offsetTop; left += el.offsetLeft; } return ( top < (window.pageYOffset + window.innerHeight) && left < (window.pageXOffset + window.innerWidth) && (top + height) > window.pageYOffset && (left + width) > window.pageXOffset ); } }; jQuery(document).ready(function(){ hw_ads.ads_settings = hw_ads.hw_ads_settings(); //update MainContentW if(hw_ads.ads_settings.mcontent_div && jQuery(hw_ads.ads_settings.mcontent_div).length) { hw_ads.ads_settings.MainContentW = jQuery(hw_ads.ads_settings.mcontent_div).width(); hw_ads.ads_settings.ads_container = jQuery(hw_ads.ads_settings.mcontent_div); } else { var ads_container = jQuery('<div/>').addClass('hw-ads-container').css({ position: 'absolute',width:'100%',margin:'auto',top: hw_ads.ads_settings.TopAdjust + 'px'}); ads_container.appendTo('body:eq(0)'); hw_ads.ads_settings.MainContentW = ads_container.width(); //update main content width hw_ads.ads_settings.ads_container = ads_container; } }); </script> <?php //following scrollbar if ($effect == 'follow_scrollbar') { ?> <script> (function(){ /** * float top div */ function hw_FloatTopDiv() { startLX = ((document.body.clientWidth - hw_ads.ads_settings.MainContentW)/2)- hw_ads.ads_settings.LeftBannerW-hw_ads.ads_settings.LeftAdjust , startLY = hw_ads.ads_settings.TopAdjust+80; startRX = ((document.body.clientWidth - hw_ads.ads_settings.MainContentW)/2)+ hw_ads.ads_settings.MainContentW+ hw_ads.ads_settings.RightAdjust , startRY = hw_ads.ads_settings.TopAdjust+80; var d = document; function ml(id) { var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id]; el.sP=function(x,y){this.style.left=x + 'px';this.style.top=y + 'px';}; el.x = startRX; el.y = startRY; return el; } function m2(id) { var e2=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id]; e2.sP=function(x,y){this.style.left=x + 'px';this.style.top=y + 'px';}; e2.x = startLX; e2.y = startLY; return e2; } window.stayTopLeft=function() { if (document.documentElement && document.documentElement.scrollTop) var pY = document.documentElement.scrollTop; else if (document.body) var pY = document.body.scrollTop; if (document.body.scrollTop > 30){startLY = 3;startRY = 3;} else { startLY = hw_ads.ads_settings.TopAdjust; startRY = hw_ads.ads_settings.TopAdjust; }; ftlObj.y += (pY+startRY-ftlObj.y)/16; ftlObj.sP(ftlObj.x, ftlObj.y); ftlObj2.y += (pY+startLY-ftlObj2.y)/16; ftlObj2.sP(ftlObj2.x, ftlObj2.y); setTimeout("stayTopLeft()", 1); } ftlObj = ml("<?php echo $id_right_ad; ?> "); //stayTopLeft(); ftlObj2 = m2("<?php echo $id_left_ad; ?> "); stayTopLeft(); } /** * show ads div */ function hw_ShowAdDiv() { var objAdDivRight = document.getElementById("<?php echo $id_right_ad; ?> "); var objAdDivLeft = document.getElementById("<?php echo $id_left_ad; ?> "); if (document.body.clientWidth < hw_ads.ads_settings.MainContentW) { objAdDivRight.style.display = "none"; objAdDivLeft.style.display = "none"; } else { objAdDivRight.style.display = "block"; objAdDivLeft.style.display = "block"; hw_FloatTopDiv(); } } //events jQuery(document).ready(function(){ //show ad div hw_ShowAdDiv(); window.onresize=hw_ShowAdDiv; //show ads jQuery(".hw-side-ads").show(); }); })(); </script> <?php } elseif ($effect == 'fixed_to_top') { HW_Libraries::enqueue_jquery_libs('sticky'); ?> <script> jQuery(document).ready(function(){ var ads_container= null, ad_right =hw_ads.ads_settings.MainContentW+10, ad_left = hw_ads.ads_settings.LeftBannerW+10; //setting /*if(!hw_ads.elementInViewport('#<?php echo $id_right_ad; ?> ')) { }*/ hw_ads.ads_settings.ads_container.prepend(jQuery("#<?php echo $id_left_ad; ?> ")/*.html()*/); hw_ads.ads_settings.ads_container.prepend(jQuery("#<?php echo $id_right_ad; ?> ")/*.html()*/); //jQuery(hw_ads.ads_settings.mcontent_div).remove(); if(hw_ads.ads_settings.MainContentW < jQuery(window).width()) { ad_right +=hw_ads.ads_settings.RightBannerW; } jQuery('#<?php echo $id_right_ad; ?> .hw-ad-right').css({"right": - (ad_right)}); //fixed ad left setTimeout(function(){ console.log(hw_ads.elementInViewport('#<?php echo $id_left_ad; ?> .hw-side-ads'),ad_left); if(hw_ads.elementInViewport('#<?php echo $id_left_ad; ?> .hw-side-ads') == false){ ad_left = -10; } jQuery('#<?php echo $id_left_ad; ?> .hw-ad-left').css({"left": - (ad_left)}); },50); //show ads jQuery(".hw-side-ads").show(); jQuery("#<?php echo $id_right_ad; ?> ").sticky({topSpacing: hw_ads.ads_settings.TopAdjust}); jQuery("#<?php echo $id_left_ad; ?> ").sticky({topSpacing: hw_ads.ads_settings.TopAdjust}); }); </script> <?php } ?> <?php } }
/** * Returns the post types to skip for loading Envira metaboxes. * * @since 1.0.7 * * @return array Array of skipped posttypes. */ public function _hw_gallery_skipped_posttypes($posttypes) { $exclude = hw_option('hw_exclude_posttypes', array()); $posttypes = array_merge($posttypes, $exclude); return array_flip(array_flip($posttypes)); }
echo HW_SKIN::current()->get_skin_url('images/twitter.png'); ?> " alt="Twitter"></a></li> <li class="rss"><a href="#"><img src="<?php echo HW_SKIN::current()->get_skin_url('images/rss.png'); ?> " alt="Rss"></a></li> <li class="youtube"><a href="<?php echo hw_option('youtube_url'); ?> " target="_blank"><img src="<?php echo HW_SKIN::current()->get_skin_url('images/youtube.png'); ?> " alt="You Tube"></a></li> <li class="google-plus"><a href="<?php echo hw_option('gplus_url'); ?> " target="_blank"><img src="<?php echo HW_SKIN::current()->get_skin_url('images/gplus.png'); ?> " alt="Googel PLus"></a></li> </ul> </div> <div> <p><img src="<?php echo get_theme_mod('image_logo'); ?> " alt="home" width="94" height="47"> </p> </div>
/** * display socials icon * @param string $skin */ public static function do_social_skin($skin = '') { //valid //if(empty($skin)) $skin = 'default'; //get option $social = hw_option('social_skin'); if (!isset($social['all_skins'])) { printf('<em>Vui lòng nhấn Save changes <a href="%s">ở đây</a> trước khi sử dụng.</em>', admin_url('admin.php?page=hoangweb-theme-options&tab=socials-options')); return; } $data_skins = unserialize(base64_decode($social['all_skins'])); //get user skin if (empty($skin) && isset($social['hash_skin'])) { //default user selected skin $hash_skin = $social['hash_skin']; } elseif ($skin && isset($data_skins[$skin])) { //get any skin by name $hash_skin = $data_skins[$skin]; } if (!isset($hash_skin)) { return; } //validate if ($hash_skin && isset($social['hwskin_config']) && class_exists('APF_hw_skin_Selector_hwskin')) { $skin = APF_hw_skin_Selector_hwskin::resume_hwskin_instance($social); $file = $skin->instance->get_skin_file($hash_skin); //(new HW_SKIN)->get_skin_url(''); //get theme setting file $setting = $skin->instance->get_file_skin_setting(); if (file_exists($setting)) { include $setting; } //$skin_url = $skin->instance->get_skin_url(''); $skin_variables = $skin->instance->get_skin_variables(); if (file_exists($file)) { HW_HOANGWEB::load_class('HW_Twig_Template'); //get templates folder from skin if (isset($theme) && isset($theme['templates_folder'])) { $tpl = $theme['templates_folder']; } else { $tpl = ''; } //prepare data for template $data = array('facebook_url' => hw_option('fb_url'), 'googleplus_url' => hw_option('gplus_url'), 'twitter_url' => hw_option('twitter_url'), 'youtube_url' => hw_option('youtube_url'), 'skin_variables' => $skin_variables, 'SKIN_URL' => $skin_variables['url']); $twig = HW_Twig_Template::create($skin->instance->get_file_skin_resource($tpl)); $twig->set_template_data($data); //inject data to current twig for skin using $content = $skin->instance->render_skin_template($data, false); //data, return=false if ($content !== false) { echo $content; } if ($skin->instance->allow_skin_file()) { include $file; } //load footer skin configuration } //valid if (!isset($theme['styles'])) { $theme['styles'] = array(); } if (!isset($theme['scripts'])) { $theme['scripts'] = array(); } //put stuff from skin if (count($theme['styles']) || count($theme['scripts'])) { $skin->instance->enqueue_files_from_skin($theme['styles'], $theme['scripts']); } } }
/** * get footer, instead of calling get_footer() * @param $slug from get_footer() param */ public static function get_footer($slug = '') { $footer_skin = hw_option('footer_skin'); //get footer skin //skin options if (!empty($footer_skin) && !empty($footer_skin['skin_options'])) { $skin_options = $footer_skin['skin_options']; extract($skin_options); } if (isset($footer_skin['hash_skin']) && isset($footer_skin['hwskin_config'])) { $skin = APF_hw_skin_Selector_hwskin::resume_hwskin_instance($footer_skin); $file = $skin->instance->get_skin_file($skin->hash_skin); //get theme setting file $setting = $skin->instance->get_file_skin_setting(); //(new HW_SKIN); if (file_exists($setting)) { include $setting; } $skin->instance->render_skin_template(compact('col', 'col_1', 'col_2', 'col_3'), true); //render skin twig template //load footer template if ($skin->instance->allow_skin_file() && file_exists($file)) { include_once $file; } //valid if (!isset($theme['styles'])) { $theme['styles'] = array(); } if (!isset($theme['scripts'])) { $theme['scripts'] = array(); } //put stuff from skin /*if(count($theme['styles']) || count($theme['scripts'])) { $skin->instance->enqueue_files_from_skin($theme['styles'], $theme['scripts']); } */ if (isset($theme['filters'])) { $skin->instance->do_filters($theme['filters'], $theme); } //do skin filter/action //enqueue stuff from skin using new way HW_SKIN::enqueue_skin_assets(array_merge(array('skin_file' => $file, 'theme_settings' => $theme), (array) $skin)); } else { get_footer($slug); //include default footer-$slug.php } do_action('hw_get_footer'); //modify footer output, you can add close html tag for example to make fit your wp theme }
/** * add slider to position on frontend */ public function display_slider() { echo do_shortcode('[hw_metaslider id=' . hw_option('main_slider_id', 1) . ']'); }
/** * get qtranslate switcher */ public static function get_qtrans_switcher() { $mqtrans_skin = hw_option('mqtrans_skin'); //get mqtrans skin $other_service = hw_option('enable_googletranslate'); //use google translate? if (isset($mqtrans_skin['hash_skin']) && isset($mqtrans_skin['hwskin_config'])) { $skin = APF_hw_skin_Selector_hwskin::resume_hwskin_instance($mqtrans_skin); //skin options //$skin_options = $mqtrans_skin['skin_options']; $html = ''; //output $file = $skin->instance->get_skin_file($skin->hash_skin); //load footer template if (file_exists($file)) { HW_HOANGWEB::load_class('HW_String'); HW_HOANGWEB::load_class('HW_Twig_Template'); HW_HOANGWEB::load_class('HW_mqtranslate'); //get theme setting file $setting = $skin->instance->get_file_skin_setting(); //(new HW_SKIN); if (file_exists($setting)) { include $setting; } //skin options $skin_options_file = $skin->instance->get_file_skin_options(); //(new HW_SKIN)->enqueue_files_from_skin() $skin_options = isset($mqtrans_skin['skin_options']) ? $mqtrans_skin['skin_options'] : array(); //user options $skin_options = HW_SKIN::merge_skin_options_values($skin_options, $setting, $skin_options_file); $data = array(); //data send to twig template /*active google translate*/ if ($other_service) { $TranslateElement_opts = array('pageLanguage' => 'vi'); //layout $layout = self::get_googletrans_layout_param(isset($skin_options['display_mode']) ? $skin_options['display_mode'] : ''); if ($layout) { $TranslateElement_opts['layout'] = $layout; } //include languages if (!empty($skin_options['specific_langs']) && is_array($skin_options['specific_langs'])) { $TranslateElement_opts['includedLanguages'] = join($skin_options['specific_langs'], ','); } $data['google_translate_ID'] = !empty($skin_options['google_translate_ID']) ? $skin_options['google_translate_ID'] : HW_String::generateRandomString(); } else { //prepare data for template if (class_exists('HW_mqtranslate')) { // make sure use __autoload $data = HW_mqtranslate::generateLanguageSelectCode(); } } //get templates folder from skin if (isset($theme) && isset($theme['templates_folder'])) { $tpl = $theme['templates_folder']; } else { $tpl = ''; } if (class_exists('HW_Twig_Template')) { $twig = HW_Twig_Template::create($skin->instance->get_file_skin_resource($tpl)); if (isset($data)) { $twig->set_template_data($data); } //inject data to current twig for skin using } ob_start(); //google translate if (isset($TranslateElement_opts)) { $json = HW_SKIN_Option::build_json_options($TranslateElement_opts, null, 'layout'); echo '<script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement(' . $json . ', "' . $data['google_translate_ID'] . '"); } </script> '; } $content = $skin->instance->render_skin_template(compact('wrapper', 'active_langs', 'text'), false); //data, return=false if ($content !== false) { echo $content; } if ($skin->instance->allow_skin_file()) { include $file; } $html = ob_get_contents(); if ($html && ob_get_length()) { ob_end_clean(); } } //valid if (!isset($theme['styles'])) { $theme['styles'] = array(); } if (!isset($theme['scripts'])) { $theme['scripts'] = array(); } //put stuff from skin if (count($theme['styles']) || count($theme['scripts'])) { $skin->instance->enqueue_files_from_skin($theme['styles'], $theme['scripts']); } return $html; } }
/** * return fancybox global settings * @return mixed|string */ public static function get_global_options() { //get global fancybox setting return hw_option('fancybox_settings', array()); }
<?php /** * Plugin Name: default */ wp_enqueue_script('jquery-scroll-to-top', plugins_url('jss-script.js', __FILE__)); wp_enqueue_style('jquery-scroll-to-top-css', plugins_url('jss-style.css', __FILE__)); ?> <style> a#scroll-to-top { /* Background image, replace in images folder */ background: url(<?php echo hw_option('scroll2top_image_file'); ?> ) no-repeat center center; background-size:100% 100%; /* Match to background image size */ width: 50px; height: 50px; /* Postion on the page */ position: fixed; right: 30px; bottom: 30px; /* Hide link text */ text-indent: -9999px; font-size: 0; /* Other */
/** * cover from function qtrans_generateLanguageSelectCode at mqtranslate_widget.php * @param $style: extend param by mqtranslate function qtrans_generateLanguageSelectCode * @param $id: extend param by mqtranslate function qtrans_generateLanguageSelectCode * @param $tpl: twig template */ public static function qtrans_generateLanguageSelectCode() { $id = 'mqtranslate'; $style = hw_option('mqtrans_style'); //get class name switch ($style) { case 'image': $anchor_class = 'qtrans_flag'; break; case 'both': $anchor_class = 'qtrans_flag_and_text'; break; default: $anchor_class = ''; } if (function_exists('is_plugin_active') && is_plugin_active('qtranslate-slug/qtranslate-slug.php')) { qts_language_menu($style, array('id' => $id, 'short' => '')); } else { global $q_config; if ($style == '') { $style = 'text'; } if (is_bool($style) && $style) { $style = 'image'; } if (is_404()) { $url = get_option('home'); } else { $url = ''; } $id .= '-chooser'; $data = array(); $data['wrapper'] = array('id' => $id, 'class' => 'qtrans_language_chooser'); $data['active_langs'] = array(); //echo '<ul class="qtrans_language_chooser" id="'.$id.'">'; //qtrans_getSortedLanguages: //for mqtranslate & qtranslate-x plugin, note for qtranslate-x enable `Compatibility Functions` foreach (self::get_languages() as $language) { $item = array(); //li class $classes = array('lang-' . $language); if ($language == $q_config['language']) { //$item['class'] = 'active'; $classes[] = 'active'; } $item['class'] = implode(' ', $classes); $item['url'] = self::convertURL($url, $language); $item['anchor_class'] = 'qtrans_flag_' . $language . ' ' . $anchor_class; $item['title'] = $q_config['language_name'][$language]; $item['text'] = $q_config['language_name'][$language]; $data['active_langs'][] = $item; /*echo '<li'; if($language == $q_config['language']) echo ' class="active"'; echo '><a href="'.qtrans_convertURL($url, $language).'"'; echo ' class="qtrans_flag_'.$language.' qtrans_flag_and_text" title="'.$q_config['language_name'][$language].'"'; echo '><span>'.$q_config['language_name'][$language].'</span></a></li>';*/ } //echo "</ul><div class=\"qtrans_widget_end\"></div>"; return $data; } }
?> </div> <div id="copyright"> <div class="cotcopy" style="text-align:right; border-right:1px solid #fff;"> <img src="<?php echo get_theme_mod('image_logo'); ?> " width="150" height="48"><br> <span style="color:#fff">Copyright © 2014 <?php bloginfo('name'); ?> .</span> </div> <div class="cotcopy"> <?php echo hw_option('footer'); ?> </div> </div> </div> </div> <div id="contentbottom"> <?php //dynamic_sidebar('sidebar-footer') ?> </div> </div> </div> <?php