print headerHelper( 'Title', 'Description', 'Keywords', 'Type of the page', 'Full url to the image', 'Full url to the image', 'Robots index', 'Css array');
<meta name="title" content="SomeTitle">
<meta property="og:title" content="SomeTitle">
<meta itemprop="name" content="SomeTitle">
<meta name="twitter:title" content="SomeTitle">
<meta name="description" content="SomeDescription">
<meta itemprop="description" content="SomeDescription">
<meta property="og:description" content="SomeDescription">
<meta name="twitter:description" content="SomeDescription">
<meta name="keywords" content="keyword1, keyword2">
<meta property="og:keywords" content="keyword1, keyword2">
<meta property="og:type" content="website">
<meta property="og:image" content="https://example.com/images/image.jpg">
<meta property="image" content="https://example.com/images/image.jpg">
<meta property="twitter:image" content="https://example.com/images/image.jpg">
<meta property="og:url" content="https://example.com/index.php?123123">
<meta name="twitter:url" content="https://example.com/index.php?123123">
<meta name="twitter:card" content="summary">
<meta name="robots" content="index, follow">
<title>title</title>
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/css/style.css">
<link rel="stylesheet" type="text/css" href="/css/style2.css">
- Title is a string
- Description is a string
- Keywords are list of your keywords. Example "keywords, keyword2, etc"
- Type is type of the page check out this.
- Image is full url for the image. Example: https://example.com/images/image.jpg
- If you do not provide URL, it wil be self generated. But you must declare it like null. If you want to have some custom URL, just declare it like string.
noindex, follow
index, nofollow
noindex, nofollow
index, follow
etc....
- You can also manage css files from this function. But you must use an array in a function. So the best solution is to declare an array. Then to use it in a function.
$css = array(
'/css/bootstrap.min.css',
'/css/style.css',
'/css/style2.css',
'.... etc'
);