function search_widget() { ?> <li id="search_widget" class="widget widget_search"> <?php if (!is_dynamic_sidebar()) { ?> <h2><?php _e('Etc', 'depo-masthead'); ?> </h2><?php } ?> <form method="get" id="searchform" action="<?php bloginfo('url'); ?> /"> <label class="hidden" for="s"><?php _e('Search for:'); ?> </label> <div><input type="text" value="<?php the_search_query(); ?> " name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </div> </form></li><?php }
function kiyomizu_the_content_filter($content) { if (is_home() || is_archive()) { $content = kiyomizu_make_excerpt($content); } elseif (is_page() || is_single()) { if (is_dynamic_sidebar('Kiyomizu Content Widget')) { echo "<ul class='kiyomizu-content-top-widget'>"; dynamic_sidebar('Kiyomizu Content Widget'); echo "</ul>"; } } return $content; }
/** * Frontend Shortcode Handler * * @param array $atts array of attributes * @param string $content text within enclosing form of shortcode element * @param string $shortcodename the shortcode found, when == callback name * @return string $output returns the modified html string */ function shortcode_handler($atts, $content = "", $shortcodename = "", $meta = "") { $output = ""; if (!isset($atts['widget_area'])) { return $output; } if (is_dynamic_sidebar($atts['widget_area'])) { ob_start(); dynamic_sidebar($atts['widget_area']); $output = ShortcodeHelper::avia_remove_autop(ob_get_clean(), true); if ($output) { $output = "<div class='avia-builder-widget-area clearfix " . $meta['el_class'] . "'>" . $output . "</div>"; } } return $output; }
/** * Frontend Shortcode Handle. * @param array $atts Array of attributes. * @param string $content Text within enclosing form of shortcode element. * @param string $shortcode The shortcode found, when == callback name. * @param string $meta Meta data. * @return string Returns the modified html string. */ public function shortcode_handle($atts, $content = '', $shortcode = '', $meta = '') { if (!isset($atts['widget_area'])) { return; } ob_start(); ?> <div class="axiscomposer ac-sidebar clearfix"><?php if (is_dynamic_sidebar($atts['widget_area'])) { dynamic_sidebar($atts['widget_area']); } ?> </div> <?php return ob_get_clean(); }
/** * Widget Area Shortcode Handler */ function youxi_shortcode_widget_area_cb($atts, $content, $tag) { $o = ''; if (is_dynamic_sidebar($atts['id'])) { ob_start(); dynamic_sidebar($atts['id']); $o = ob_get_clean(); } return $o; }
?> <ul class="xoxo"> <?php if ($parabola_socialsdisplay2) { ?> <li id="socials-left" class="widget-container"> <?php parabola_smenur_socials(); ?> </li> <?php } ?> <?php if (is_dynamic_sidebar('right-widget-area')) { dynamic_sidebar('right-widget-area'); } else { ?> <li class="widget-container widget-placeholder"> <h3 class="widget-title"><?php _e('Right Sidebar', 'parabola'); ?> </h3> <p><?php printf(__('You currently have no widgets set in the right sidebar. You can add widgets via the <a href="%s">Dasboard</a>.', 'parabola'), esc_url(admin_url() . "widgets.php")); echo "<br/>"; printf(__('To hide this sidebar, switch to a different Layout via the <a href="%s">Theme Settings</a>.', 'parabola'), esc_url(admin_url() . "themes.php?page=parabola-page")); ?> </p> </li>
public static function add_sidebar() { if (is_dynamic_sidebar()) { $slug = sanitize_title('qsot-calendar'); global $wp_registered_sidebars; if (!isset($wp_registered_sidebars[$slug])) { $a = array('id' => $slug, 'name' => __('Non-JS Calendar Page', 'opentickets-community-edition'), 'description' => __('Widget area on calendar template that shows when a user does not have javascript enabled.', 'opentickets-community-edition'), 'before_widget' => '<div id="%1$s" class="widget %SPAN% %2$s"><div class="widget-inner">', 'after_widget' => '</div><div class="clear"></div></div>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>'); register_sidebar($a); } /* @@@ NICE TO HAVE - get widget auto assignment to work $default_widget_class = 'qsot_upcoming_shows_widget'; global $wp_registered_widgets, $sidebars_widgets; if (true || !isset($sidebars_widgets[$slug])) { $pos = array(); foreach (array_keys($wp_registered_widgets) as $key) { if (($name = preg_replace('#^'.$default_widget_class.'(.*)$#', '\1', $key)) != $key) { $pos[] = empty($name) ? '-1' : $name; } } $pos = array_filter($pos); $wslug = $default_widget_class; if (!empty($pos)) { $wslug .= (min($pos)-1); } die(__log($sidebars_widgets[$slug], $wp_registered_widgets[$sidebars_widgets[$slug][0]])); } */ } }
function blogsixteen_sidebar_body_class($classes) { $classes[] = is_dynamic_sidebar('sidebar-1') ? 'has-sidebar' : 'no-sidebar'; return $classes; }
<?php //footer dynamic sidebar 1-4 if (is_dynamic_sidebar('footer-left')) { ?> <div class="bluebox-heading"> <h3>Contact</h3> </div> <?php dynamic_sidebar('footer-left'); } ?> </div> <div class="col-md-4"> <?php //footer dynamic sidebar 1-4 if (is_dynamic_sidebar('footer-center')) { dynamic_sidebar('footer-center'); } ?> </div> <div class="col-md-4"> <div class="bluebox-heading"> <h3>Réseaux Sociaux</h3> </div> <div class="social-widget"> <ul> <li> <a href="#"> <span><i class="fa fa-facebook"></i></span> <span><i class="fa fa-facebook"></i></span> </a>
<?php if ($footer_top_bar) { echo '<div class="float_left">' . $footer_top_bar . '</div>'; } ?> <div class="float_right"> <a class="back-to-top" id="smooth-scroll" title="Back to top"> Back to Top <span class="icon-arrow-up"></span> </a> </div> <div class="clearfix"></div> </div> <!-- container --> </div> <!-- topbar --> <?php if (is_dynamic_sidebar('sidebar-footer')) { ?> <div class="mid_bar"> <div class="container"> <?php dynamic_sidebar('sidebar-footer'); ?> </div> <!-- container --> </div> <!-- midbar --> <?php } ?> <?php if ($footer_links || $get_footer_site_info || $footer_logo) { ?>
?> <div class="widgets"> <div class="widgetstitle">关于本站</div> <div class="about"><?php echo get_option('blog_about'); ?> </div> </div> <?php } ?> <?php } ?> <?php if (is_dynamic_sidebar()) { dynamic_sidebar('right_sidebar'); } ?> <div class="widgets" id="float"> <div class="adbox"> <div class="adimg"> <ul> <?php if (get_option('blog_ad1') != "") { ?> <li><?php echo get_option('blog_ad1'); ?> </li><?php }
* @package Nonprofit_Organization */ ?> </div><!-- #content --> <footer id="colophon" class="site-footer" role="contentinfo"> <div class="footer-logo"> <a href="#" onclick="return false;"><img alt="footer-logo-1" src="http://localhost/nonprofit-org/wp-content/themes/nonprofit-org/images/footer/footer-logo-1.png"></a> <a href="#" onclick="return false;"><img alt="footer-logo-2" src="http://localhost/nonprofit-org/wp-content/themes/nonprofit-org/images/footer/footer-logo-2.png"></a> <a href="#" onclick="return false;"><img alt="footer-logo-3" src="http://localhost/nonprofit-org/wp-content/themes/nonprofit-org/images/footer/footer-logo-3.png"></a> </div> <div class="footer-content"> <div class="footer-newsletter"> <?php if (is_dynamic_sidebar('footer-newsletter')) { dynamic_sidebar('footer-newsletter'); } ?> </div> <hr> <div class="footer-company-information-and-social-media"> <div class="footer-company-information"> <a href="http://localhost/nonprofit-org/sitemap/">SITEMAP</a> | <a href="#" onclick="return false;">PRIVACY POLICY</a><br/> COPYRIGHT <?php echo date('Y'); ?> NONPROFIT ORGANIZATION </div>
<?php if (is_dynamic_sidebar('right-sidebar')) { dynamic_sidebar('right-sidebar'); }
<h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?> " rel="home"><?php bloginfo('name'); ?> </a></h1> <h2 class="site-description"><?php bloginfo('description'); ?> </h2> </div><!-- .site-branding --> <nav id="site-navigation" class="main-navigation" role="navigation"> <h1 class="screen-reader-text">Main Navigation</h1> <div class="navicon closed"><i class="fa fa-navicon"></i></div> <?php wp_nav_menu(array('theme_location' => 'primary', 'depth' => 2)); ?> </nav><!-- #site-navigation --> </header><!-- #masthead --> <?php if (is_front_page() && !is_paged() && is_dynamic_sidebar('abovecontent')) { dynamic_sidebar('abovecontent'); } ?> <!-- Widget location to hold slider --> <div id="content" class="site-content">
function chatControl() { global $wp_scripts; $div = ''; //$div = '<pre>'.var_dump($wp_scripts->registered[jquery]).'</pre>'; //$div .= '<!-- BEGIN ProvideSupport.com Graphics Chat Button Code --><div id="cidamJ" style="z-index:100;position:absolute"></div><div id="scdamJ" style="display:inline;position:fixed;z-index:9999;"></div><div id="sddamJ" style="display:none"></div><script type="text/javascript">var sedamJ=document.createElement("script");sedamJ.type="text/javascript";var sedamJs="http://image.providesupport.com/js/1juqehp49gth61id9fcm54gon9/safe-standard.js?ps_h=damJ&ps_t="+new Date().getTime();setTimeout("sedamJ.src=sedamJs;document.getElementById(\"sddamJ\").appendChild(sedamJ)",1)</script><noscript><div style="display:inline"><a href="http://www.providesupport.com?messenger=1juqehp49gth61id9fcm54gon9">Чат службы поддержки</a></div></noscript><!-- END ProvideSupport.com Graphics Chat Button Code --> '; //$div .= var_dump($GLOBALS['wp_scripts']->registered['jquery']); //$div .= menu_page_url( 'widgets',false ); $div .= '<div id="f7main">'; /*$div .= '<div id="f7title" style="background:#B4DBA7">'; $div .= 'Your PHP Version is: '.phpversion(); $div .= '</div>';*/ $div .= '<div id="f7title">'; $div .= '<div id="support_logo"><img src="' . plugins_url('/etc/img/provide-support_logo.png', __FILE__) . '" > </div>'; $div .= 'Welcome to Provide Support Live Chat plugin settings page.<br/>Visit our website <a href="http://www.providesupport.com?utm_source=wp-plugin&utm_medium=settings&utm_campaign=Plugins" target="_blank">www.providesupport.com</a> to find more information about our Live Chat system.'; $div .= '</div>'; $div .= '<div id="f7message">'; $div .= ''; $div .= '</div>'; $div .= '<div id="f7accountInfo"></div>'; $div .= '<div id="f7account">'; $div .= '<div id="f7buttonE" class="f7buttonNoBorder">Existing Account</div>'; $div .= '<div id="f7buttonN">New Account</div>'; $div .= '<div id="f7accountE">'; $div .= '<div class="f7fields">'; $div .= '<div class="f7label">'; $div .= 'Your Provide Support account name:'; $div .= '</div>'; $div .= '<div class="f7field">'; $div .= '<input type="text">'; $div .= '</div>'; $div .= '</div>'; $div .= '<div class="f7fields">'; $div .= '<div class="f7label">'; $div .= 'Your Provide Support account password:'******'</div>'; $div .= '<div class="f7field">'; $div .= '<input type="password">'; $div .= '</div>'; $div .= '</div>'; $div .= '<div class="f7fields" style="display:none">'; $div .= '<div class="f7label">'; $div .= 'Your email:'; $div .= '</div>'; $div .= '<div class="f7field">'; $div .= '<input type="email">'; $div .= '</div>'; $div .= '</div>'; $div .= '<div class="f7fields">'; $div .= '<div class="f7field">'; $div .= '<div id="f7accountSubmit">Connect to Account</div>'; $div .= '</div>'; $div .= '</div>'; $div .= '</div>'; $div .= '</div>'; $div .= '<div id="settings_edition">Live Chat plugin settings</div>'; $div .= '<div class="setting f7control">'; $div .= '<input type="checkbox" id="f7pluginEnabled" class="f7pluginEnabled">Enable Live Chat plugin'; $div .= '</div>'; $div .= '<div id="wrapper">'; $div .= '<div id="wrapper_img">'; $div .= '<div id="f7monitor">'; $div .= '<div id="kant">'; $div .= '<div id="f7livePreview"></div>'; $div .= '</div>'; $div .= '</div>'; $div .= '</div>'; $div .= '</div>'; $div .= '<div id="f7settings" style="display:none">'; $div .= '<div id="wrapper_settings">'; $div .= '<div class="f7separator"><div class="f7inner">Select chat button type</div></div>'; $div .= '<div class="setting">'; $div .= '<input type="radio" name="buttonAppearance" id="buttonImageType" class="f7button1">Graphics chat button'; $div .= '<div class="settingInt">'; $div .= '<input type="radio" name="customImages" id="buttonImageSource" class="f7button3">Use images selected in your account setings <span f7title="Images uploaded to Account Settings / Images page of your Provide Support account Control Panel will be used" class="f7tooltip-sign">?</span>'; $div .= '<div class="settingIntInt" style="font-size: 11px; color: #888;">'; $div .= ''; $div .= '</div>'; $div .= '</div>'; $div .= '<div class="settingInt">'; $div .= '<input type="radio" name="customImages" class="f7button4">Use custom images <span f7title="You can specify here actual links to images stored on your server. If you use your Live Chat account on several websites, this feature lets you display your custom chat icons, different from the ones uploaded to your Provide Support account" class="f7tooltip-sign">?</span>'; $div .= '<div class="settingIntInt">'; $div .= 'Online image URL <input type="text" id="buttonImageUrlOnline">'; $div .= '</div>'; $div .= '<div class="settingIntInt">'; $div .= 'Offline image URL <input type="text" id="buttonImageUrlOffline">'; $div .= '</div>'; $div .= '</div>'; $div .= '</div>'; $div .= '<div class="setting">'; $div .= '<input type="radio" class="f7button2" name="buttonAppearance">Text chat link <span f7title="HTML formatting is supported for Chat Link texts" class="f7tooltip-sign">?</span>'; $div .= '<div class="settingInt">'; $div .= 'Online Chat Link text <input type="text" id="buttonImageTextOnline">'; $div .= '</div>'; $div .= '<div class="settingInt">'; $div .= 'Offline Chat Link text <input type="text" id="buttonImageTextOffline">'; $div .= '</div>'; $div .= '</div>'; $div .= '<div class="f7separator"><div class="f7inner">Chat button position</div></div>'; $div .= '<div class="setting">'; $disDisabled = ''; if (!is_dynamic_sidebar()) { $disDisabled = ' disabled="disabled" '; } $div .= '<input type="radio" location="widget" name="buttonLocation"' . $disDisabled . '>Show Chat Button as a widget <a target="blank" href="/wp-admin/widgets.php" style="display:none">Open widget settings</a> <span f7title="Your Live Chat button will be displayed in your sidebar, click Open widget settings to specify the position and alignment options for it. If your website does not have any sidebar, consider using \'Show Сhat Button at a fixed position on the browser window\' option." class="f7tooltip-sign">?</span>'; $div .= '<div class="settingInt" style="font-size:11px; color:#888; line-height:13px;">'; $div .= ''; $div .= '</div>'; $div .= '</div>'; $div .= '<div class="setting">'; $div .= '<input type="radio" location="fixed" name="buttonLocation">Show Сhat Button at a fixed position on the browser window <span f7title="Specify vertical and horizontal position in pixels or percent for your Chat Button" class="f7tooltip-sign">?</span>'; $div .= '<div class="settingInt" style="font-size: 11px; color: #888;">'; $div .= ''; $div .= '</div>'; $div .= '<div class="settingInt" style="padding-top: 0px; margin-bottom: 10px;">'; $div .= '<div class="f7part1">'; $div .= 'Vertical'; $div .= '</div>'; $div .= '<div class="f7part2">'; $div .= '<input type="text" id="buttonLocationVerticalValue" value=50>'; $div .= '</div>'; $div .= '<div class="f7part3">'; $div .= '<input type="radio" class="f7button5" name="specVerticalPx" id="buttonLocationVerticalBy">px'; $div .= '<br />'; $div .= '<input type="radio" class="f7button6" name="specVerticalPx" checked>%'; $div .= '</div>'; $div .= '<div class="f7part4">'; $div .= '<input type="radio" class="f7button9" name="specVerticalFrom" id="buttonLocationVerticalFrom">from top'; $div .= '<br />'; $div .= '<input type="radio" class="f7button10" name="specVerticalFrom" checked>from bottom'; $div .= '</div>'; $div .= '</div>'; $div .= '<div class="settingInt" style=" padding-top: 0px; ">'; $div .= '<div class="f7part1">'; $div .= 'Horizontal'; $div .= '</div>'; $div .= '<div class="f7part2">'; $div .= '<input type="text" id="buttonLocationHorizontalValue" value=0>'; $div .= '</div>'; $div .= '<div class="f7part3">'; $div .= '<input type="radio" class="f7button7" name="specHorizontalPx" id="buttonLocationHorizontalBy">px'; $div .= '<br />'; $div .= '<input type="radio" class="f7button8" name="specHorizontalPx" checked>%'; $div .= '</div>'; $div .= '<div class="f7part4">'; $div .= '<input type="radio" class="f7button11" name="specHorizontalFrom" id="buttonLocationHorizontalFrom">from left'; $div .= '<br />'; $div .= '<input type="radio" class="f7button12" name="specHorizontalFrom" checked>from right'; $div .= '</div>'; $div .= '</div>'; $div .= '</div>'; $div .= '<div class="setting">'; $div .= '<input type="radio" location="shortcode" name="buttonLocation">By shortcode (for advanced users) <span f7title="Add <b>[' . f7config::$SHORTCODE . ']</b> shortcode to your posts or pages, or <b>echo do_shortcode(\'[' . f7config::$SHORTCODE . ']\')</b> to your website source code. The Chat Button uploaded to your Provide Support account Control Panel will be displayed in the posts or pages where the shortcode has been inserted." class="f7tooltip-sign">?</span>'; $div .= '<div class="settingInt" style="font-size:11px; color:#888;">'; $div .= ''; $div .= '</div>'; $div .= '</div>'; $div .= '<div class="f7separator"><div class="f7inner shortcodeSeparator">Display chat button at</div></div>'; $div .= '<div class="setting">'; $div .= '<input type="checkbox" id="buttonAvailableMain">Main page'; $div .= '</div>'; $div .= '<div class="setting selectPagesToggle">'; $div .= '<input type="checkbox" id="buttonAvailablePages">Pages'; $div .= '<div class="settingInt">'; $div .= '<input type="radio" class="f7button13" name="optionPages" id="buttonAvailablePagesWhich">All'; $div .= '</div>'; $div .= '<div class="settingInt">'; $div .= '<input type="radio" class="f7button14" name="optionPages">Selected'; $f7pages = get_pages(); if (count($f7pages) > 0) { $div .= '<div id="selectPages">'; foreach ($f7pages as $f7page) { $div .= '<input type="checkbox" pageid="' . $f7page->ID . '">' . $f7page->post_title . '<br />'; } //$div .= '<div id="f7pagesSubmit">Confirm</div>'; $div .= '</div>'; } $div .= '</div>'; $div .= '</div>'; $div .= '<div class="setting">'; $div .= '<input type="checkbox" id="buttonAvailablePosts">Posts'; $div .= '</div>'; $div .= '<div class="setting">'; $div .= '<input type="checkbox" id="buttonAvailableOther">Other pages'; $div .= '</div>'; $div .= '<div class="setting">'; $div .= '<input type="checkbox" id="buttonAvailableWhole">Monitor the whole website <span f7title="Use this option to ensure that all pages of your website are monitored even if the Chat Button has not been added to them" class="f7tooltip-sign">?</span>'; $div .= '<div class="settingInt" style="font-size: 11px; color: #888;">'; $div .= ''; $div .= '</div>'; $div .= '</div>'; $div .= '</div>'; $div .= '<div id="f7wait" style="margin:4px auto;width:33px;"></div>'; $div .= '</div>'; $div .= '<div id="f7submit" class="button button-primary button-large f7submit">Update Settings</div>'; $div .= '</div>'; echo $div; }
function _mltlngg_delete_options() { global $wpdb; $mltlngg_table_translate = $wpdb->prefix . 'mltlngg_translate'; $mltlngg_terms_table_translate = $wpdb->prefix . 'mltlngg_terms_translate'; $mltlngg_sql = "DROP TABLE `" . $mltlngg_table_translate . "`, `" . $mltlngg_terms_table_translate . "`;"; $wpdb->query($mltlngg_sql); /* Delete widget from database */ if (is_dynamic_sidebar()) { /* If there is an active sidebar */ $mltlngg_available_sidebars = get_option('sidebars_widgets'); /* Get all active sidebars and widgets */ foreach ($mltlngg_available_sidebars as $key1 => $one_sidebar) { if ($key1 != 'array_version' && isset($one_sidebar)) { $widget_exist = preg_grep('/multi_language_widget-?\\d*/', $one_sidebar); if (isset($widget_exist)) { foreach ($widget_exist as $key2 => $one_widget) { unset($mltlngg_available_sidebars[$key1][$key2]); } } } } update_option('sidebars_widgets', $mltlngg_available_sidebars); } delete_option('mltlngg_options'); delete_option('widget_multi_language_widget'); flush_rewrite_rules(); }
?> <ul class="xoxo"> <?php if ($parabola_socialsdisplay1) { ?> <li id="socials-left" class="widget-container"> <?php parabola_smenul_socials(); ?> </li> <?php } ?> <?php if (is_dynamic_sidebar('left-widget-area')) { dynamic_sidebar('left-widget-area'); } else { ?> <li class="widget-container widget-placeholder"> <h3 class="widget-title"><?php _e('Left Sidebar', 'parabola'); ?> </h3> <p><?php printf(__('You currently have no widgets set in the left sidebar. You can add widgets via the <a href="%s">Dasboard</a>.', 'parabola'), esc_url(admin_url() . "widgets.php")); echo "<br/>"; printf(__('To hide this sidebar, switch to a different Layout via the <a href="%s">Theme Settings</a>.', 'parabola'), esc_url(admin_url() . "themes.php?page=parabola-page")); ?> </p> </li>
<!-- <div class="col-md-6"> <?php if (is_dynamic_sidebar('main-content-left')) { ?> <?php dynamic_sidebar('main-content-left'); ?> <?php } ?> <span class="clear"></span> </div> <div class="col-md-6"> <?php if (is_dynamic_sidebar('main-content-right')) { ?> <?php dynamic_sidebar('main-content-right'); ?> <?php } ?> </div> --> </content> </div><!-- end_of_md-8 --> <!-- END content --> <!-- BEGIN sidebar --> <div class="col-md-4"> <?php
?> </span> <?php } $member_menu_defaults = array('theme_location' => 'member', 'container' => 'nav', 'container_id' => 'member-navigation', 'container_class' => 'member-navigation', 'fallback_cb' => 'memberlite_member_menu_cb', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>'); wp_nav_menu($member_menu_defaults); ?> </aside> </div><!-- #meta-member --> <?php } if (has_nav_menu('meta')) { $meta_defaults = array('theme_location' => 'meta', 'container' => 'nav', 'container_id' => 'meta-navigation', 'container_class' => 'meta-navigation', 'fallback_cb' => false); wp_nav_menu($meta_defaults); } if (is_dynamic_sidebar('sidebar-3')) { dynamic_sidebar('sidebar-3'); } ?> </div><!-- .column8 --> <?php } ?> </div><!-- .row --> </header><!-- #masthead --> <?php do_action('before_site_navigation'); ?> <?php if (!is_page_template('templates/interstitial.php')) { ?>
<?php if (is_dynamic_sidebar('main-sidebar')) { ?> <aside id="secondary" class="widget-area well" role="complementary"> <?php dynamic_sidebar('main-sidebar'); ?> </aside><!-- #secondary .widget-area --> <?php }
<div id="sidebar"> <?php if (dopt('d_same_sidebar_b') != '') { if (is_dynamic_sidebar()) { dynamic_sidebar('index_sidebar'); } } else { if (is_dynamic_sidebar() && is_home()) { dynamic_sidebar('index_sidebar'); } elseif (is_dynamic_sidebar() && is_single()) { dynamic_sidebar('single_sidebar'); } else { dynamic_sidebar('page_sidebar'); } } ?> </div>
<?php if (is_dynamic_sidebar('left-sidebar')) { dynamic_sidebar('left-sidebar'); }
<?php /** * @package WordPress * @subpackage Industrial * @since Industrial 2.0 * * Sidebar Template * Created by CMSMasters * */ $cmsms_option = cmsms_get_global_options(); if ((class_exists('woocommerce') && !is_shop() || !class_exists('woocommerce')) && is_archive()) { $sidebar_id = $cmsms_option[CMSMS_SHORTNAME . '_archive_right_left_sidebar']; } elseif (is_search()) { $sidebar_id = $cmsms_option[CMSMS_SHORTNAME . '_search_right_left_sidebar']; } elseif (!is_404() && !is_home()) { if (class_exists('woocommerce') && is_shop()) { $cmsms_page_id = woocommerce_get_page_id('shop'); } else { $cmsms_page_id = get_the_ID(); } $sidebar_id = get_post_meta($cmsms_page_id, 'cmsms_sidebar_id', true); } if (isset($sidebar_id) && is_dynamic_sidebar($sidebar_id) && is_active_sidebar($sidebar_id)) { dynamic_sidebar($sidebar_id); } elseif (is_active_sidebar('sidebar_default')) { dynamic_sidebar('sidebar_default'); } else { sidebarDefaultText(); }
<div style="display:none;"><script>if(window_width <= _options_.response_phone_width)document.write('<script class="not-load-sidebar"><noscript>\x3C/script>');</script></div> <div id="sidebar"> <?php if (is_active_sidebar('sidebar-1')) { dynamic_sidebar('sidebar-1'); } if (is_active_sidebar('sidebar-2') && (is_home() || is_front_page()) && !is_paged()) { dynamic_sidebar('sidebar-2'); } if (is_active_sidebar('sidebar-3') && is_singular()) { dynamic_sidebar('sidebar-3'); } if (is_active_sidebar('sidebar-4')) { dynamic_sidebar('sidebar-4'); } if (is_dynamic_sidebar('sidebar-fixed')) { ?> <div id="fixed-sidebar"><?php dynamic_sidebar('sidebar-fixed'); ?> </div> <?php } ?> </div> <div style="display:none;"><script>if(window_width <= _options_.response_phone_width)document.write('<script class="not-load-sidebar">\x3C/noscript>\x3C/script>');</script></div>
<?php /** * @package anno * This file is part of the Annotum theme for WordPress * Built on the Carrington theme framework <http://carringtontheme.com> * * Copyright 2008-2015 Crowd Favorite, Ltd. All rights reserved. <http://crowdfavorite.com> * Released under the GPL license * http://www.opensource.org/licenses/gpl-license.php */ if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die; } if (CFCT_DEBUG) { cfct_banner(__FILE__); } $sidebar = 'default'; if (is_page()) { $sidebar = 'sidebar-page'; } else { if (is_singular() && get_post_type() == 'article') { $sidebar = 'sidebar-article'; } } if (is_dynamic_sidebar($sidebar)) { dynamic_sidebar($sidebar); } else { anno_default_widgets(); }
?> <?php dynamic_sidebar('sidebar-annuaire'); ?> <?php } ?> </div> <?php } ?> <?php if (is_tax('region-focus')) { ?> <div class="widgets"> <?php if (is_dynamic_sidebar('sidebar-focus')) { ?> <?php dynamic_sidebar('sidebar-focus'); ?> <?php } ?> </div> <?php } ?> </aside>
function child_before_content() { // Set the default if (empty($columns)) { $columns = 'nine'; } else { // Check the function for a returned variable $columns = $columns; } // force wide on onecolumn-page template if (is_page_template('onecolumn-page.php')) { $columns = 'fourteen'; } // force wide on bbPress pages if (class_exists('bbPress')) { if (is_bbpress()) { $columns = 'fourteen'; } // unless it's the member profile if (bbp_is_user_home()) { $columns = 'nine'; } } // bbPress // Apply the markup echo "<a name=\"top\" id=\"top\"></a>"; // detect the page layout $sidebar_position = of_get_option('page_layout'); //sidebar positon left and not a wide page if ($sidebar_position == "left" && !is_page_template('onecolumn-page.php') && is_dynamic_sidebar()) { echo "<div id=\"content\" class=\"{$columns} columns left omega\">"; // sidebar right and } elseif ($sidebar_position == "right" && !is_page_template('onecolumn-page.php') && is_dynamic_sidebar()) { echo "<div id=\"content\" class=\"{$columns} columns offset-by-one\">"; } else { echo "<div id=\"content\" class=\"{$columns} columns wide\">"; } }
function regulus_theme_page() { // -------------------------- // regulus theme page content // -------------------------- if ($_REQUEST['saved']) { echo '<div id="message" class="updated fade"><p><strong>Settings saved.</strong></p></div>'; } if ($_REQUEST['reset']) { echo '<div id="message" class="updated fade"><p><strong>Settings reset.</strong></p></div>'; } if ($_REQUEST['super']) { $superUser = true; } else { $superUser = false; } ?> <div class="wrap"> <h2>Regulus 2.1</h2> <p>Developed by Ben Gillbanks at Binary Moon. Check the <a href="http://www.binarymoon.co.uk/projects/regulus/">Regulus page for updates</a></p> <form method="post"> <!-- blog layout options --> <style type="text/css"> #colourSchemePreview { display:block; width:60%; height:40px; border:1px solid #000; } .CS_orange { background-color:#fc0; } .CS_green { background-color:#5f7; } .CS_blue { background-color:#bbf; } .CS_pink { background-color:#f9c; } .CS_white { background-color:#fff; } .CS_blend { background-color:#eef; } </style> <script> function updateHeaderImage( newpic ) { newimage = "<?php bloginfo('template_url'); ?> /images/bg_" + newpic.value + ".jpg"; document.getElementById( 'placeholder' ).src = newimage; return true; } function updateColour( newcolour ) { document.getElementById( 'colourSchemePreview' ).className = "CS_" + newcolour.value; } function updateHeaderImageSelect( form ) { text = form.r_headerImageURL.value; if ( text == "" ) { newpic = form.r_headerImage.value; newimage = "<?php bloginfo('template_url'); ?> /images/bg_" + newpic + ".jpg"; form.r_headerImage.disabled = 0; } else { newimage = form.r_headerImageURL.value; form.r_headerImage.disabled = 1; } document.getElementById( 'placeholder' ).src = newimage; } function defaultImage() { newimage = "<?php bloginfo('template_url'); ?> /images/bg_disabled.jpg"; document.getElementById( 'placeholder' ).src = newimage; } </script> <fieldset class="options"> <legend>Header settings</legend> <p>To use your own header image enter the <strong>complete</strong> url into the Header Image URL box below - eg "http://www.yoursite.com/yourfile.jpg". To fill the header area completely you should make the image <strong>730</strong> pixels wide by <strong>140</strong> pixels high. Any smaller and the image will tile. To use one of the supplied images simply leave this box blank and select the image from the drop down.</p> <table width="100%" cellspacing="2" cellpadding="5" class="editform"> <?php regulus_th("Header Image URL"); regulus_input("r_headerImageURL", "text", "", get_settings('regulus_headerImageURL'), "", "updateHeaderImageSelect( this.form )"); regulus_cth(); $value = get_settings('regulus_headerImage'); if (get_settings('regulus_headerImageURL') != "") { $disabled = true; } regulus_th("Header Image"); if ($disabled == true) { echo "<select name=\"r_headerImage\" style=\"width:60%;\" onchange=\"updateHeaderImage( this )\" disabled=\"true\">"; } else { echo "<select name=\"r_headerImage\" style=\"width:60%;\" onchange=\"updateHeaderImage( this )\">"; } regulus_input("r_headerImage", "option", "Regulus Classic", "1", $value); regulus_input("r_headerImage", "option", "Electric Swirl", "2", $value); regulus_input("r_headerImage", "option", "Smooth", "3", $value); regulus_input("r_headerImage", "option", "Piece of the Puzzle", "4", $value); regulus_input("r_headerImage", "option", "Skyline", "5", $value); regulus_input("r_headerImage", "option", "Tech Style", "6", $value); regulus_input("r_headerImage", "option", "Old and New", "7", $value); regulus_input("r_headerImage", "option", "Bloom", "8", $value); // regulus_input( "r_headerImage", "option", "Random", "random", $value ); echo "</select>"; echo "<img id=\"placeholder\" onError=\"defaultImage();\" src=\""; bloginfo('template_url'); if ($disabled == true) { echo "/images/bg_disabled.jpg\" width=\"60%\" />"; } else { echo "/images/bg_{$value}.jpg\" width=\"60%\" />"; } regulus_cth(); regulus_th("Header Text"); regulus_input("r_heading", "checkbox", "Hide blog title and description? (Useful if you use the custom header image)", "1", get_settings('regulus_heading')); regulus_cth(); ?> </table> </fieldset> <fieldset class="options"> <legend>Blog Settings</legend> <p>Change the way your blog looks and acts with the many blog settings below</p> <table width="100%" cellspacing="2" cellpadding="5" class="editform"> <?php $value = get_settings('regulus_colourScheme'); regulus_th("Colour Scheme"); echo "<select name=\"r_colourScheme\" style=\"width:60%;\" onchange=\"updateColour( this )\">"; regulus_input("r_colourScheme", "option", "Orange Spice", "orange", $value); regulus_input("r_colourScheme", "option", "Green Peace", "green", $value); regulus_input("r_colourScheme", "option", "Calm Blue", "blue", $value); regulus_input("r_colourScheme", "option", "Passionate Pink", "pink", $value); regulus_input("r_colourScheme", "option", "Whitewash", "white", $value); regulus_input("r_colourScheme", "option", "Blend it in", "blend", $value); echo "</select>"; echo "<div id=\"colourSchemePreview\" class=\"CS_" . $value . "\"></div>"; regulus_cth(); if ($superUser == true) { regulus_th("Post Options"); regulus_input("r_excerpt", "checkbox", "Show Excerpts on the homepage (removes images and some other tags)?", "1", get_settings('regulus_excerpt')); // regulus_input( "r_author", "checkbox", "Show Post Author on the homepage?", "1", get_settings( 'regulus_author' ) ); regulus_cth(); } $display_regulus_sidebar = false; regulus_th("Sidebar Options"); // if plugin installed if (!function_exists('is_dynamic_sidebar')) { $display_regulus_sidebar = true; } else { //plugin installed - is it used? if (is_dynamic_sidebar() == false) { $display_regulus_sidebar = true; } } // display regulus sidebar settings if ($display_regulus_sidebar == true) { regulus_input("r_calendar", "checkbox", "Show Calendar?", "1", get_settings('regulus_calendar')); regulus_input("r_meta", "checkbox", "Show meta content (login, site admin etc)?", "1", get_settings('regulus_meta')); regulus_input("r_posts", "checkbox", "Show Recent Posts", "1", get_settings('regulus_posts')); regulus_input("r_months", "checkbox", "Show all archive months", "1", get_settings('regulus_months')); regulus_input("r_linkcat", "checkbox", "Use Link categories in blog roll?", "1", get_settings('regulus_linkcat')); } //if ( $superUser == true ) regulus_input( "r_admin", "checkbox", "Display Admin options (only for admin user when logged in)", "1", get_settings( 'regulus_admin' ) ); regulus_input("r_admin", "checkbox", "Display Admin options (only for admin user when logged in)", "1", get_settings('regulus_admin')); regulus_input("r_sidealign", "checkbox", "Align sidebar to the left?", "1", get_settings('regulus_sidealign')); regulus_cth(); ?> </table> </fieldset> <!-- personal options --> <fieldset class="options"> <legend>Personal Information</legend> <p>The name and email address are used to highlight the comments you post. The about information will appear at the top of the right hand column (optional)</p> <table width="100%" cellspacing="2" cellpadding="5" class="editform"> <?php regulus_th("Your Name"); regulus_input("r_name", "text", "", get_settings('regulus_name')); regulus_cth(); regulus_th("Your Email Address"); regulus_input("r_email", "text", "", get_settings('regulus_email')); regulus_cth(); regulus_th("About You"); regulus_input("r_about", "textarea", "", get_settings('regulus_about')); regulus_cth(); ?> </table> </fieldset> <?php regulus_input("save", "submit", "", "Save Settings"); ?> <input type="hidden" name="action" value="save" /> </form> <form method="post"> <fieldset class="options"> <legend>Reset</legend> <p>If for some reason you want to uninstall Regulus then press the reset button to clean things up in the database.</p> <?php regulus_input("reset", "submit", "", "Reset Settings"); ?> </div> <input type="hidden" name="action" value="reset" /> </form> <?php }
function avia_sidebar_menu_additions() { $settings = avia_header_setting(); $output = ""; if ($settings['header_position'] != "header_top") { /*add social icons*/ if ($settings['sidebarmenu_social'] != "disabled") { $social_args = array('outside' => 'ul', 'inside' => 'li', 'append' => ''); $social = avia_social_media_icons($social_args, false); if ($social) { $output .= "<div class='av-sidebar-social-container'>" . $social . "</div>"; } } /*add widgets*/ if (!empty($settings['sidebarmenu_widgets'])) { if ('av-auto-widget-logic' == $settings['sidebarmenu_widgets']) { } else { if (is_dynamic_sidebar($settings['sidebarmenu_widgets'])) { ob_start(); dynamic_sidebar($settings['sidebarmenu_widgets']); $output .= ob_get_clean(); $output = "<aside class='avia-custom-sidebar-widget-area sidebar sidebar_right'>" . $output . "</aside>"; } } } } echo $output; }
</div><!-- .site-info --> </div> <div class="col-sm-4"> <?php if (is_dynamic_sidebar('footer')) { dynamic_sidebar('footer'); } ?> <!-- Widget location to hold social icons --> </div> <div class="col-sm-4"> <?php if (is_dynamic_sidebar('footer-2')) { dynamic_sidebar('footer-2'); } ?> <!-- Widget location to hold social icons --> </div> </div> </div><!-- .container --> </footer><!-- #colophon --> </div><!-- #page -->