Vous êtes ici

Drupal Theming Zen - Ajouter les Touch Icons Apple

Une petite fonction preprocess bien pratique.

template.php

function pfmzen_preprocess(&$vars, $hook){
    $vars['cheminsubthemezen'] = base_path() . path_to_theme(); //chemin du sous theme Zen
}

html.tpl.php

<link rel="apple-touch-icon-precomposed" href="<?php print $cheminsubthemezen; ?>/images/apple-touch-icon-precomposed-114x114.png" sizes="114x114" />
<link rel="apple-touch-icon-precomposed" href="<?php print $cheminsubthemezen; ?>/images/apple-touch-icon-precomposed.png" />
<link rel="apple-touch-icon-precomposed" href="<?php print $cheminsubthemezen; ?>/images/apple-touch-icon-precomposed-144x144.png" sizes="144x144" />
<link rel="apple-touch-icon-precomposed" href="<?php print $cheminsubthemezen; ?>/images/apple-touch-icon-precomposed-72x72.png" sizes="72x72" />

 

Pour créer vos icons touch : http://iconifier.net/

Samedi, Novembre 23, 2013

Ajouter un commentaire

You must have Javascript enabled to use this form.