<a href="/Special:Userlogin" id="gatFCWidgetBottom" onclick='gatTrack("Browsing","Feat_contrib_cta","Feat_contrib_wgt");'><?php echo wfMsg('fc_action'); ?> </a> </p> <?php } ?> </div><!--end side_featured_contributor--> </div><!--end sidebox_shell--> <?php } ?> <?php if (class_exists('CTALinks') && CTALinks::isArticlePageTarget() && CTALinks::isLoggedIn()) { echo $likeDiv; echo wfMsg('like_test', $likeDivBottom); } ?> <div class="sidebox_shell"> <div class="sidebox"> <?php FollowWidget::showWidget(); ?> </div> </div> </div> </div> </div><!--end main-->
public function getFooterTail() { global $wgUser, $wgTitle, $wgRequest; $sk = new SkinWikihowskin(); //$footertail = WikiHowTemplate::getPostLoadedAdsHTML(); $trackData = array(); // Data analysis tracker if (class_exists('CTALinks') && trim(wfMsgForContent('data_analysis_feature')) == "on" && !CTALinks::isLoggedIn() && $wgTitle->getNamespace() == NS_MAIN) { // Ads test for logged out users on article pages $footertail .= wfMsg('data_analysis'); } $footertail .= wfMsg('client_data_analysis'); // Intro image on/off if (class_exists('CTALinks') && CTALinks::isArticlePageTarget()) { //$trackData[] = ($sk->hasIntroImage()) ? "introimg:yes" : "introimg:no"; } // Account type global $wgCookiePrefix; if (isset($_COOKIE[$wgCookiePrefix . 'acctTypeA'])) { // cookie value is "<userid>|<acct class>" $cookieVal = explode("|", $_COOKIE[$wgCookiePrefix . 'acctTypeA']); // Only track if user is logged in with same account the cookie was created for if ($wgUser->getID() == $cookieVal[0]) { $trackData[] = "accttype:class{$cookieVal[1]}"; } } // Another Cohort test. Only track cohorts after they return from initial account creation session if (isset($_COOKIE[$wgCookiePrefix . 'acctTypeB']) && !isset($_COOKIE[$wgCookiePrefix . 'acctSes'])) { // cookie value is "<userid>|<acct class>" $cookieVal = explode("|", $_COOKIE[$wgCookiePrefix . 'acctTypeB']); // Only track if user is logged in with same account the cookie was created for if ($wgUser->getID() == $cookieVal[0]) { $trackData[] = "acctret:{$cookieVal[1]}"; } } // Logged in/out $trackData[] = $wgUser->getId() > 0 ? "usertype:loggedin" : "usertype:loggedout"; $nsURLs = array(NS_USER => "/User", NS_USER_TALK => "/User_talk", NS_IMAGE => "/Image"); $gaqPage = $nsURLs[$wgTitle->getNamespace()]; $trackUrl = sizeof($gaqPage) ? $gaqPage : $wgTitle->getFullUrl(); $trackUrl = str_replace("{$wgServer}{$wgScriptPath}", "", $trackUrl); $trackUrl = str_replace("http://www.wikihow.com", "", $trackUrl); $trackUrl .= '::'; $trackUrl .= "," . implode(",", $trackData) . ","; $footertail .= "\n<script type=\"text/javascript\">\n\n var _gaq = _gaq || [];\n _gaq.push(['_setAccount', 'UA-2375655-1']);\n _gaq.push(['_setDomainName', '.wikihow.com']);\n _gaq.push(['_trackPageview']);\n _gaq.push(['_trackPageLoadTime']);\n\n (function() {\n var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n ga.src = \"" . wfGetPad('/extensions/min/f/skins/common/ga.js') . '?rev=' . WH_SITEREV . "\";\n var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n })();\n\n</script>\n<!-- Google Analytics Event Track -->\n<? //merged with other JS above: <script type=\"text/javascript\" src=\"" . wfGetPad('/extensions/min/f/skins/WikiHow/gaWHTracker.js') . "\"></script>?>\n<script type=\"text/javascript\">\nif (typeof Event =='undefined' || typeof Event.observe == 'undefined') {\n\tjQuery(window).load(gatStartObservers);\n} else {\n\tEvent.observe(window, 'load', gatStartObservers);\n}\n</script>\n<!-- END Google Analytics Event Track -->"; if (class_exists('CTALinks') && trim(wfMsgForContent('cta_feature')) == "on") { $footertail .= CTALinks::getGoogleControlTrackingScript(); $footertail .= CTALinks::getGoogleConversionScript(); } $footertail .= '<!-- LOAD EVENT LISTENERS -->'; /*if ($wgTitle->getPrefixedURL() == wfMsg('mainpage') && $wgLanguageCode == 'en') { $footertail .= " <script type=\"text/javascript\"> if (typeof Event =='undefined' || typeof Event.observe == 'undefined') { jQuery(window).load(initSA); } else { Event.observe(window, 'load', initSA); } </script>"; }*/ $footertail .= "<!-- LOAD EVENT LISTENERS ALL PAGES -->\n\t\t<div id='img-box'></div>"; /*if (class_exists('CTALinks') && trim(wfMsgForContent('cta_feature')) == "on") { $footertail .= CTALinks::getBlankCTA(); }*/ // QuickBounce test /*if (false && $sk->isQuickBounceUrl('ryo_urls')) { $footertail .= '<!-- Begin W3Counter Secure Tracking Code --> <script type="text/javascript" src="https://www.w3counter.com/securetracker.js"></script> <script type="text/javascript"> w3counter(55901); </script> <noscript> <div><a href="http://www.w3counter.com"><img src="https://www.w3counter.com/tracker.php?id=55901" style="border: 0" alt="W3Counter" /></a></div> </noscript> <!-- End W3Counter Secure Tracking Code-->'; }*/ //$footertail .= '</body>'; /*if (($wgRequest->getVal("action") == "edit" || $wgRequest->getVal("action") == "submit2") && $wgRequest->getVal('advanced', null) != 'true') { $footertail .= "<script type=\"text/javascript\"> if (document.getElementById('steps') && document.getElementById('wpTextbox1') == null) { InstallAC(document.editform,document.editform.q,document.editform.btnG,\"./".$wgLang->getNsText(NS_SPECIAL).":TitleSearch"."\",\"en\"); } </script>"; }*/ return $footertail; }