<?php
$social_array = array(
"facebook" => array(
'class' => "facebook",
'url' => 'https://www.facebook.com/',
'handle' => 'Mage::getStoreConfig(\'social_code/social_group/twitter_field\')'
),
"twitter" => array(
'class' => "facebook",
'url' => 'https://www.facebook.com/',
'handle' => 'Mage::getStoreConfig(\'social_code/social_group/twitter_field\')'
),
"linked-in" => array(
'class' => "facebook",
'url' => 'https://www.facebook.com/',
'handle' => 'Mage::getStoreConfig(\'social_code/social_group/twitter_field\')'
),
"google-plus" => array(
'class' => "facebook",
'url' => 'https://www.facebook.com/',
'handle' => 'Mage::getStoreConfig(\'social_code/social_group/twitter_field\')'
)
);
$html = '<ul>';
foreach ($social_array as $name => $group_array){
foreach ($group_array as $className => $class_array){
//<li><a href="<?php echo ($url);?><?php echo ($handle);?>" class="<?php echo ($class); ?>"><?php echo $name; ?></a></li>
$html .= '<li><a href="' . $class_array['url'] . $class_array['handle'] .'" class=" . $class_array['class']. '">'.$name.'</a></li>';
}
}
$html . = '</ul>'
print $html;
?>
- Output for 5.4.0 - 5.4.19
- Parse error: syntax error, unexpected end of file in /in/B2m81 on line 37
Process exited with code 255. - Output for 5.3.0 - 5.3.27
- Parse error: syntax error, unexpected $end in /in/B2m81 on line 37
Process exited with code 255.
preferences:
197.03 ms | 1395 KiB | 55 Q