This forum is for assistance with theme development.

Template.php files

Where can I find a book or a site that explains about how to develop custom template.php files for themes in details, on Drupal 7?
'Cause there is a explanation about it on Drupal.org, but is not detailed, with examples, tips, etc.

Which is the function tha displays ol

Hello,

Normally the ordered list has the following structure:

<ol>
  <li>first</li>
  <li>second</li>
  <li>third</li>
</ol>

I would like it to have <span> inside <li> like this:

is there a specific hook that is triggered when user clicks 'save settings' on theme setting page??

I want some function to exucute when a user click on save settings button on theme setting page. Is there a hook for it?? If not, how can I do that??

Thanks

Convert php code to D7 from D6

Hi

i use this code to get cck field content dans i would to use it for D7 but i break my page actually...if someone can tell me how to do

thanks

$rows = array();
foreach($node->field_fichier_joint_rp as $file) {
  if ($file['view']) {
      $rows[] = array($file['view']);
    }
}
$output = theme_table(array(), $rows, array('class' => 'table-fichier_joint_rp'));
print $output;

Background full screen (back-stretch) images in Drupal 7

hello)

could you please help me)

i want to make Background full screen images in my theme, so i found this example and try it, also i used newest version of plugin 2.0.3. (in example it 1.2.8)

example

here is my code

html.tpl.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
  "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" version="XHTML+RDFa 1.0" dir="<?php print $language->dir; ?>"<?php print $rdf_namespaces; ?>>

<head profile="<?php print $grddl_profile; ?>">
  <?php print $head; ?>
  <title><?php print $head_title; ?></title>
  <?php print $styles; ?>
  <?php print $scripts; ?>
<script type="text/javascript">
$.backstretch("<?php print $backstretch_image; ?>");
</script>
</head>
<body class="<?php print $classes; ?>" <?php print $attributes;?>>
  <div id="skip-link">
    <a href="#main-content" class="element-invisible element-focusable"><?php print t('Skip to main content'); ?></a>
  </div>
  <?php print $page_top; ?>
  <?php print $page; ?>
  <?php print $page_bottom; ?>
</body>

template.php
<?php
function events_preprocess_html(&$variables) {

Developing a desgin in Drupal

Guys kindly can any one help me in theme development in drupal 6 and i am a starter in CMS in drupal have done CMS works other than theme development in drupal , So can any body? can you refer any thing on theme development in DRUPAL?

Pages

Subscribe with RSS Subscribe to RSS - Theme development