function smarty_comments_popup_script($params) { $width = 400; $height = 400; $file = 'wp-comments-popup.php'; extract($params); return comments_popup_script($width, $height, $file); }
/** * Filter to load JavaScript at appropriate time * * @since 0.1 * @filter * @hook hybrid_head() */ function hybrid_enqueue_script() { global $hybrid_settings; /* * Common JS files * jQuery pullquotes */ if ($hybrid_settings['common_js']) { wp_enqueue_script('hybrid_common', HYBRID_JS . '/common.js', array('jquery'), 0.3); } else { if ($hybrid_settings['pullquotes_js']) { wp_enqueue_script('hybrid_pullquotes', HYBRID_JS . '/pullquotes.js', array('jquery'), 0.3); } } /* * Comment reply (WP 2.7) */ if (function_exists('is_singular')) { if (is_singular()) { if (get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } } } /* * Comments popup script if selected */ if ($hybrid_settings['comments_popup'] && is_page_template('blog.php')) { comments_popup_script(620, 400); } elseif ($hybrid_settings['comments_popup'] && (is_archive() || is_search() || is_home() || is_front_page())) { comments_popup_script(620, 400); } /* * Flash video embed */ if (is_attachment() && get_post_mime_type() == 'application/octet-stream') { if (preg_match('/\\.flv$/', wp_get_attachment_url())) { wp_enqueue_script('flash_embed', HYBRID_JS . '/flash-embed.js', false, 0.1); } } $script = false; echo apply_filters('hybrid_enqueue_script', $script); }
<meta http-equiv="imagetoolbar" content="no" /> <meta content="TRUE" name="MSSmartTagsPreventParsing" /> <link rel="alternate" type="application/rdf+xml" title="RDF" href="<?php bloginfo('rdf_url'); ?> " /> <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php bloginfo('rss2_url'); ?> " /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?> " /> <?php comments_popup_script(); ?> </head> <body> <!-- // b2 loop start --> <?php while ($row = mysql_fetch_object($result)) { start_b2(); ?> <?php the_date("d.m.y", "<h1>", "</h1>"); ?>
<meta name="viewport" content="width=device-width, initial-scale=1"> <title><?php wp_title('|', true, 'right'); ?> </title> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?> "> <link href='http://fonts.googleapis.com/css?family=Alegreya+Sans' rel='stylesheet' type='text/css'> <?php wp_head(); comments_popup_script(420, 500); ?> </head> <body <?php body_class(); ?> > <div id="page" class="hfeed site"> <a class="skip-link screen-reader-text" href="#content"><?php _e('Skip to content', 'horizontal'); ?> </a> <header id="masthead" class="site-header" role="banner"> <div class="site-branding">