PHP Classes

File: data.inc.php

Recommend this page to a friend!
  Packages of Guillermina Gonjon   PHP Open Graph Meta Tags   data.inc.php   Download  
File: data.inc.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Open Graph Meta Tags
Generate HTML to insert Open Graph tag attributes
Author: By
Last change:
Date: 6 years ago
Size: 3,969 bytes
 

 

Contents

Class file image Download
<?php
$meta_names = array(
                            "generator"=>"HTML-Editor",
                            "abstract"=>"The name of this page",
                            "reply-to"=>"submit-your-website@metatags.org",
                            "rating"=>"general | mature | restricted | 14 years | safe for kids",
                            "date"=>"2018-08-06T21:17:13-0400",
                            "identifier-url"=>"http://localhost",
                            "author"=>"Guillermina Gonjon", 
                            "contact"=>"Mr. John Doe",
                            "revisit-after"=>"15 days",
                            "language"=>"en",
                            "slurp"=>"NOYDIR",
                            "viewport"=>"width=device-width, initial-scale=1.0",
                            "webauthor"=>"GManon",
                            "googlebot"=>"Alex",
                            "copyright"=>"Open Source",
                            "distribution"=>"catalog",
                            "expires"=>"2018-08-06T21:17:13-0400",
                            "keywords"=>"The maxim, the best, we are",
                            "description"=>"This is the best website you could ever visit",
                            "ROBOTS"=>"NOINDEX, NOFOLLOW"
                            );
                            
$meta_http_equiv = array(
                                    "content-type"=>"text/html; charset=UTF-8",
                                    "Set-Cookie"=>"ACCOUNT=9983373;path=/; expires=Thursday, 20-May-09 00:15:00 GMT",
                                    "content-style-type"=>"text/css | text/html; charset-UTF-8",
                                    "resource-type"=>"",
                                    "script-type"=>"",
                                    "style-type"=>"text/css",
                                    "expires"=>"0", 
                                    "default-style"=>"the document's preferred stylesheet",
                                    "refresh"=>"300",
                                    "pragma"=>"no-cache",
                                    "cache-control"=>"",
                                    "ms theme"=>"",
                                    "pics-label"=>"",
                                    "Content-Security-Policy"=>"default-src https:",
                                    "window-target"=>"_top",
                                    "imagetoolbar"=>"yes",
                                    "content-disposition"=>"inline; filename=openinexcel.csv"
                                    );
                    
                    // Link order href rel type sizes media                
$link_header = array(
                                    "main.css"=>"stylesheet",
                                    "icon"=>"favicon.ico",
                                    "apple-icon-114.png"=>"aple-touch-icon-precomposed, 114x114, image/png",
                                    "mobible.css"=>"stylesheet, media='screen and {max-width:600px;'", 
                                    "myfont-woff2"=>"preload, type='font/woff2'",
                                    "refresh"=>"300",
                                    "pragma"=>"no-cache",
                                    "Content-Security-Policy"=>"default-src https:",
                                    "window-target"=>"",
                                    "imagetoolbar"=>"",
                                    "content-disposition"=>""
                                    );
                                    
$base_meta = array (
                                "href","http://www.example.com/page.html",
                                "target='_blank'"=>"href='http://example.com/thunbnail.jpg'"
                         );
                         
$opengraph_name = array(
                                    "og:title"=>"The Rock",
                                    "og:type"=>"movie",
                                    "og:url"=>"http://www.imdb.com/title/tt0117500/",
                                    "og:image"=>"http://ia.media-imdb.com/rock.jpg",
                                    "og:site_name"=>"IMDb",
                                    "og:description"=>"A group of U.S. Marines, under command of...",
                                    "fb:page_id"=>"id-number-here" ,
                                    "og:email"=>"me@example.com",
                                    "og:phone_number"=>"phone-number-here",
                                    "og:fax_number"=>"fax-number-here",
                                    "og:latitude"=>"latitud numerical position here",    
                                    "og:longitude"=>"numerical lopngitude",
                                    "og:street-address"=>"1601 S California Ave",
                                    "og:locality"=>"Palo Alto",
                                    "og:region"=>"CA",
                                    "og:postal-code"=>"94304",
                                    "og:country-name"=>"USA"
                                    );
                                    
                                    
$opengraph_graph = array(
                                    "og:type"=>"game.achievement",
                                    "og:points"=>"POINTS_FOR_ACHIEVEMENT",
                                    "og:video"=>"http://example.com/awesome.swf",
                                    "og:video:height"=>"640",
                                    "og:video:width"=>"385",
                                    "og:video:type"=>"application/x-shockwave-flash",
                                    "og:video"=>"http://example.com/html5.mp4",
                                    "og:video:type"=>"video/mp4",
                                    "og:video"=>"http://example.com/fallback.vid",
                                    "og:video:type"=>"text/html",
                                    "og:audio"=>"http://example.com/amazing.mp3",
                                    "og:audio:title"=>"Amazing Song",
                                    "og:audio:artist"=>"Amazing Band",
                                    "og:audio:album"=>"Amazing Album",
                                    "og:audio:type"=>"application/mp3",

);
                                    
                                    ?>