public function setMeta(Meta $meta) { $this->setTitle($meta->getTitle()); $this->setDescription($meta->getDescription()); $this->setKeywords($meta->getKeywords()); }
<?php include 'common/dynamicHTML.php'; include 'common/meta.php'; $html = new HTML(); $meta = new Meta(); ?> <!doctype html> <html> <head> <meta http-equiv="x-ua-compatible" content="IE=Edge"/> <title><?php echo $meta->getTitle(); ?> </title> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <meta name="description" content="<?php echo $meta->getMetaDesc(); ?> " /> <link rel="shortcut icon" type="image/x-icon" href="http://allearter.dk/grafik/images/favicons/favicon_fa.ico" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script> <script type="text/javascript" language="javascript" src="DataTables-1.9.1/media/js/jquery.dataTables.js"></script> <link rel="stylesheet" href="DataTables-1.9.1/media/css/jquery.dataTables.css" type="text/css" media="screen" /> <link rel="stylesheet" href="DataTables-1.9.1/media/css/jquery.dataTables_themeroller.css" type="text/css" media="screen" /> <script type="text/javascript" src="DataTables-1.9.1/extras/TableTools/media/js/TableTools.min.js"></script> <script type="text/javascript" src="DataTables-1.9.1/extras/ColReorder/media/js/ColReorder.js"></script> <script type="text/javascript" src="DataTables-1.9.1/extras/ColVis/media/js/ColVis.js"></script> <link rel="stylesheet" href="DataTables-1.9.1/extras/ColReorder/media/css/ColReorder.css" type="text/css" media="screen" />