Facebook name Twitter name Google+ name
include_once( 'includes/pTemplate.php' );
$socials = array(
array(
'name' => 'Facebook',
'icon' => 'icon-facebook',
'url' => 'https://www.facebook.com/pages/PREscriptZ/1385919551647196',
'title' => 'Like us',
'text' => 'Like us to get chance for 80% DISCOUNT'),
array(
'name' => 'Twitter',
'icon' => 'icon-twitter',
'url' => 'https://twitter.com/PremiumScript',
'title' => 'Follow us',
'text' => 'Follow us to get chance for 80% DISCOUNT'),
array(
'name' => 'Google+',
'icon' => 'icon-google-plus',
'url' => 'https://plus.google.com/b/107963842839238880696/107963842839238880696/posts',
'title' => 'Plus now',
'text' => 'Plus now to get chance for 80% DISCOUNT'),
);
foreach( $socials as $social ) {
$pTemplate->assign_block_vars('social_list', array(
'NAME' => $social['name'],
'ICON' => $social['icon'],
'URL' => $social['url'],
'TITLE'=> $social['title'],
'TEXT' => $social['text'],
));
}
$pTemplate->add_file( 'templates/dataset_multiple_markups.html' );
$output = $pTemplate->pparse_file( 'templates/dataset_multiple_markups.html' );
echo $output;
exit;
Header
main content here