meta ad nauseum

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

meta ad nauseum

Post by Vegan »

I snipped this from Forbes to discuss all of the components used, as I was wondering what I could learn from a larger shop

I noticed a lot of social network components that I still have not figured out how to use fully yet

Code: Select all

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
		<title>5 Things Every Business Owner Should Know (But Probably Doesn't) About Windows 10 - Forbes</title>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="viewport" content="width=device-width, maximum-scale=2.0" />
		<meta name="description" content="Smart business owners who are thinking ahead are starting to consider the effects that Windows 10 will have on their companies." />
		<meta name="keywords" content="Entrepreneurs,On Demand,Tech" />
		<meta name="author" content="Gene Marks" />
		<meta name="apple-itunes-app" content="app-id=588647136" />
		<meta property="author" content="Gene Marks" />
		<meta property="og:title" content="5 Things Every Business Owner Should Know (But Probably Doesn't) About Windows 10" />
		<meta property="og:site_name" content="Forbes" />
		<meta property="og:type" content="article" />
		<meta property="og:url" content="http://www.forbes.com/sites/quickerbettertech/2015/06/08/5-things-every-business-owner-should-know-but-probably-doesnt-about-windows-10/" />
		<meta property="og:image" content="http://specials-images.forbesimg.com/imageserve/7940e2509b8346d99074a9cfc3691d87/640x434.jpg?fit=scale" />
		<meta name="sailthru.image.full" content="http://specials-images.forbesimg.com/imageserve/7940e2509b8346d99074a9cfc3691d87/640x434.jpg?fit=scale" />
		<meta property="og:description" content="Smart business owners who are thinking ahead are starting to consider the effects that Windows 10 will have on their companies." />
		<meta property="fb:app_id" content="123694841080850" />
		<meta property="article:published_time" content="2015-06-08" />
		<meta name="date" content="2015-06-08" />
		<meta property="article:author" content="http://www.forbes.com/sites/quickerbettertech/" />
		<meta name="sailthru.author" content="Gene Marks" />
		<meta property="article:author" content="http://www.forbes.com/sites/quickerbettertech/" />
		<meta name="sailthru.author" content="Quicker Better Tech" />
		<meta property="article:section" content="Entrepreneurs" />
		<meta property="article:section" content="Cloud Computing" />
		<meta property="article:section" content="Tech" />
		<meta property="article:tag" content="Entrepreneurs" />
		<meta property="article:tag" content="On Demand" />
		<meta property="article:tag" content="Tech" />
		<meta name="twitter:card" content="summary" />
		<meta name="twitter:site" content="@forbes" />
		<meta name="twitter:creator" content="genemarks" />

		<meta name="sailthru.tags" content="Tech" />
		<meta name="sailthru.content_type" content="blog" />
		<meta name="sailthru.author_thumb" content="http://0.gravatar.com/avatar/afd61fc2d85b394c13c1c6b6bde439eb?s=40&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D40&amp;r=G" />
		<meta name="sailthru.author_profile_url" content="http://www.forbes.com/sites/quickerbettertech/" />
		<meta name="sailthru.author_type" content="Contributor" />
		<link rel="canonical"   href="http://www.forbes.com/sites/quickerbettertech/2015/06/08/5-things-every-business-owner-should-know-but-probably-doesnt-about-windows-10/" />
		<link rel="next"   href="http://www.forbes.com/sites/quickerbettertech/2015/06/08/5-things-every-business-owner-should-know-but-probably-doesnt-about-windows-10/2/" />
		<link rel="shortlink"   href="http://onforb.es/1F470N5" />
	<script type="text/javascript" src="http://images.forbes.com/scripts/js_options.js"></script>
		<script type="text/javascript">
			var forbes = forbes || {};
			forbes.gtm = {
		dfp_site : "fdc.forbes",
		dfp_zone : "article-new"
			}
		</script>
	<script type="text/javascript">
    	(function (){

			window.displayedChannel = 'technology';
			window.displayedSection = '';

			// Check if welcome ad is not disabled
			if(typeof forbes !== "undefined" && typeof forbes.js_options !== "undefined" && !forbes.js_options.welcome_ad_disable ){

				var midnight = new Date(),
					offset = -4 // if offset is not set, by default time is UTC 6:00am i.e EST 1am & EDT 12am for dailyWelcomeCookie expiration
				;

				if(midnight.getUTCHours() >= -offset)
					midnight.setUTCDate(midnight.getUTCDate()+1)
				;

				midnight.setUTCHours(-offset);
				midnight.setUTCMinutes(00);
				midnight.setUTCSeconds(00);


				var welcomeCookie = "welcomeAd=sessionCookie",
					interstitial_cookie = '_forbes_exit_interstitial_timer',
					tomorrow = new Date(),
					month = tomorrow.getMonth(),
					day = tomorrow.getDate(),
					dailyWelcomeCookie = 'dailyWelcomeCookie=dailyCookie',
					browser_user_agent = window.navigator.userAgent.toLowerCase(),
					page_type = 'article',
					swimlane = '',
					brand_voice = 'false'
				;

				if ((document.cookie.indexOf(welcomeCookie)==-1 || document.cookie.indexOf(dailyWelcomeCookie) == -1)
					&& (window.navigator.userAgent.indexOf("Mozilla")>-1)
					&& (browser_user_agent.indexOf("googlebot")==-1)
					&& (browser_user_agent.indexOf("google web preview")==-1)
                                        && (browser_user_agent.indexOf("ipad")==-1)
                                        && (browser_user_agent.indexOf("nexus")==-1)
					&& (window.location.host.indexOf("forbes.com")!=-1)
					&& (window.location.search.indexOf("partner=yahoo")==-1)
					&& (window.location.search.indexOf("partner=msn")==-1)
					&& (window.location.search.indexOf("partner=aol")==-1)
					&& (window.location.search.indexOf("partner=omg")==-1)
					&& (window.location.search.indexOf("partner=huffpo")==-1)
					&& (window.location.search.indexOf('nowelcome')==-1)
					&& (swimlane.indexOf("rico")!=0 || page_type != 'article')
					&& brand_voice==='false'){

					if(document.cookie.indexOf(welcomeCookie) == -1 ){
						document.cookie = welcomeCookie +'__welcome'+(month+1)+day+'; path=/; domain=.forbes.com';
					}

					if(document.cookie.indexOf(dailyWelcomeCookie) == -1){
						document.cookie = dailyWelcomeCookie+'_forDate'+(month+1)+day+'; path=/; domain=.forbes.com; expires=' + midnight.toGMTString();
					}

					// check if interstitial's cookie hasn't been set already
					if(document.cookie.indexOf( interstitial_cookie ) == -1){

						// it doesn't exist; let's create the interstitial cookie and set it
						// with the current timestamp

						var now = new Date(),
							now_time = now.getTime(),
							expiration_date = new Date()
						;

						expiration_date
							.setDate( expiration_date.getDate() + 365)
						;

						// set interstitial cookie to the current time
						document.cookie = interstitial_cookie + '='+ now_time +'; path=/; domain=.forbes.com; expires=' + expiration_date.toUTCString();
					}

					if (document.cookie.indexOf(welcomeCookie) != -1 || document.cookie.indexOf(dailyWelcomeCookie) != -1){

						// this cookie is used by interstitial_ad.js to determine if the user received a
						// welcome ad before viewing the current page.
						document.cookie="last_welcomead_url"+ "=" +escape(document.URL)+";path=/; domain=.forbes.com";
						document.cookie="referrer"+ "=" +escape(document.referrer)+";path=/; domain=.forbes.com";
						document.cookie="toURL"+ "=" +escape(document.URL)+";path=/; domain=.forbes.com";
						document.cookie="refURL"+ "=" +escape(document.referrer)+";path=/; domain=.forbes.com";
						this.location='http://www.forbes.com/fdc/welcome_mjx.shtml';
					}
				}

			}
		})();
	</script>
        <script type="text/javascript">
			var forbes = ( function( forbes_namespace ) {


				forbes_namespace.page_meta = {
		channel : "technology",
		primary_channel : "technology",
		preview : false,
		sitepage : "forbes.com/technology/sites/quickerbettertech/2015/06/08/5-things-every-business-owner-should-know-but-probably-doesnt-about-windows-10/",
		published : "2015-06-08T14:12:00Z",
		post_id : "2869",
		blog_id : "1217",
		natural_id : "blogAndPostId/blog/post/1217-2869",
		type : "blog",
		title : "5 Things Every Business Owner Should Know (But Probably Doesn\'t) About Windows 10",
		site_slug : "quickerbettertech",
		content_id : "content_55757ce7e4b01f0c1d93541a",
		blogtype : "individual",
		authorType : "individual",
		contribType : "Contributor",
		brandvoice : false,
		categories : ["Entrepreneurs","Cloud Computing","Tech"],

						 author: {
		natural_id : "blogAuthorId/blog/author/7860",
		user_id : "7860",
		display_name : "Gene Marks",
		type : "individual"
						},

						
						simple_reach: {
		iframe : true,
		pid : "50e4a8434240cf5c4b000009",
		url : "http://www.forbes.com/sites/quickerbettertech/2015/06/08/5-things-every-business-owner-should-know-but-probably-doesnt-about-windows-10/",
		title : "5 Things Every Business Owner Should Know (But Probably Doesn\'t) About Windows 10",
		date : "2015-06-08T14:12:00Z",
		authors : ["Gene Marks"],
		channels : ["technology"],
							tags: ["site::quickerbettertech", "slot::" ,"Entrepreneurs","On Demand","Tech"]
						}
				};
                return forbes_namespace;
            }( forbes || {} ) );
        </script>
	<script type='text/javascript'>

	var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
(function() {
  var gads = document.createElement('script');
  gads.async = true;
  gads.type = 'text/javascript';
  var useSSL = 'https:' == document.location.protocol;
  gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js';
  var node = document.getElementsByTagName('script')[0];
  node.parentNode.insertBefore(gads, node);
})();

	</script>
		<link rel="stylesheet" type="text/css" href="http://i.forbesimg.com/scripts/combined/css/global.b209a36a85484d80dca51a7ca91c145be71d9f4f.css" />
		<link rel="stylesheet" type="text/css" href="http://i.forbesimg.com/scripts/combined/css/article-responsive.ee6c9399f34075ec050f2c34dec209d2209a1dc5.css" />
		<script type="text/javascript" src="http://i.forbesimg.com/scripts/combined/js/head.15ef0631c34bf57fb449e90a962e92b01b4e3df6.js"></script>

	<script type="text/javascript" src="http://i.forbesimg.com/assets/js/forbes/polar/vest_pocket_article.js"></script>
	<script type="text/javascript" src="http://images.forbes.com/scripts/simple_reach.js"></script>


	<!--[if lte IE 8]>
		<link rel="stylesheet" type="text/css" href="//i.forbesimg.com/assets/css/forbes/article_responsive/article_ie_unbreaker.css">
	<![endif]-->


</head>
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
Post Reply