/** * Luo link-elementin, jonka rel-atribuutin arvo on "stylesheet". * Elementillä ei ole sisältöä. Parametrina annetaan tyylitiedoston osoite. * @param string $href Tyylitiedoston osoite. * @return string Html-koodi */ public static function luo_link_to_stylesheet($href) { $maar_array = array(); $maar_array2 = Attr::lisaa_maarite(Attr::rel("stylesheet"), $maar_array); $maar_array_final = Attr::lisaa_maarite(Attr::href($href), $maar_array2); return Html::luo_elem_1os("link", $maar_array_final); }
/** * Creates the html for copyright declaration. * @return type */ function create_copyright() { $text = Html::luo_a_linkto("http://creativecommons.org/licenses/by-sa/4.0/", Html::luo_img(array(Attr::alt("Creative Commons -licence"), Attr::style("border-width:0"), Attr::src("https://i.creativecommons.org/l/by-sa/4.0/88x31.png"))), array(Attr::rel("licence"), Attr::target_blank())) . Html::luo_span(Tekstit::$home_copyright_before_link, array()) . Html::luo_a_linkto("http://creativecommons.org/licenses/by-sa/4.0/", " Creative Commons Attribution-ShareAlike 4.0 International", array(Attr::rel("licence"), Attr::target_blank())) . Html::luo_span(Tekstit::$home_copyright_after_link, array()); return $text; }