* @copyright (c) 2012-2013, ConLite Team * @license http://www.gnu.de/documents/gpl.en.html GPL v3 (english version) * @license http://www.gnu.de/documents/gpl.de.html GPL v3 (deutsche Version) * @link http://www.conlite.org ConLite.org * * $Id$ */ // security check defined('CON_FRAMEWORK') or die('Illegal call'); /** * Description of createFacebookMeta * * @author Ortwin Pinke */ class cecCreateFacebookMeta { protected $_aConfig = array(); private $_sFbHeadTag = ''; public function __construct() { $this->_aConfig = getEffectiveSettingsByType("meta_tag_creator_html5", array("add_facebook_meta"=>false)); } public function createHeadTag($sCode) { $bIsHTML5 = ((getEffectiveSetting('generator', 'html5', 'false') == 'false') ? false : true); if($bIsHTML5 && $this->_aConfig['add_facebook_meta']) return str_ireplace_once("", $this->_sFbHeadTag, $sCode); return $sCode; } } cAutoload::addClassmapConfig(array("cecCreateFacebookMeta" => "conlite/plugins/chains/includes/class.ceccreatefacebookmeta.php")) ?>