I have a theme half done to work with Iphone

oskar_calvo's picture

Hello, I'm working in a theme to use with the Iphone.

I have download all the free software from Apple Store to check oll of it, and I have an idea how to make a theme and how to use the navigation bar.

In this moment, i'm building all the parts, but i have a problem.

I need to delete all the drupal css and them add the iphone css.

this is what i'mtrying:

<?php

function basic_preprocess_page(&$vars, $hook) {
unset (
$vars['styles']);
$vars['styles'] = $var['styles'] = drupal_add_css(path_to_theme() .'/css/iphone.css', 'theme');
}

?>

when I get this, the next step is re-write the page.tpl.php, there is a lot of job to do with it.

Thanks
Oskar

Login to post comments