jaj drupal5
Bocs nem figyeltem fel erre az aprosagra.
Itt van amit keresel:
/** * Theme the contents of e-mails sent by webform. *. * @param $form_values * An array of all form values submitted by the user. The array contains three * keys containing the following: * - submitted: All the submitted values in a single array keyed by webform * component IDs. Useful for simply looping over the values. * - submitted_tree: All the submitted values in a tree-structure array, keyed * by the Form Key values defined by the user. * @param $node * The complete node object for the webform. * @param $sid * The submission ID of the new submission. * @param $cid * If you desire to make different e-mails depending on the recipient, you can * check this component ID to output different content. This will be the ID * of the component that is a conditional e-mail recipient. For the normal * e-mails, it will have the value of 'default'.. */ function theme_webform_mail_message($form_values, $node, $sid, $cid) { global $user; $message = ''; $message .= t('Submitted on') .' '. format_date(time(), 'small') ."\n"; $ip_address = $_SERVER['REMOTE_ADDR']; if ($user->uid) { $message .= t('Submitted by user') .": $user->name [$ip_address]\n"; } else { $message .= t('Submitted by anonymous user') .": [$ip_address]\n"; } $message .= "\n"; $message .= t('Submitted values are:') ."\n\n"; $message .= theme('webform_mail_fields', 0, $form_values['submitted_tree'], $node); $message .= "\n\n"; $message .= t("The results of this submission may be viewed at:") ."\n"; $message .= url('node/'. $node->nid. "/submission/". $sid, NULL, NULL, TRUE); return $message; }
Ennek a fuggvenynek a tartalmat masold be a sajat fuggvenyedbe es modositsd ugy ahogy te szeretned.
- A hozzászóláshoz regisztráció és bejelentkezés szükséges
bodynak kéne osztályt adni a feltételek fennálásakor
nem ismerem az artisteert kicsit se szóval fogalmam sincs milyen a kimenete egy ilyen összekattintott sminknek, de egy rendesen kódolt sminkben így csinálnám:
ezt valósítom meg, hogy a bodynak osztályokat adhassak a tartalom típus alapján (vagy bármi alapján)..
http://api.drupal.org/api/function/phptemplate_body_class/6
template.php
function SMINKNEVE_body_class($left, $right) { $classes = array(); if ($left != '' && $right != '') { $classes[] = 'sidebars'; } else { if ($left != '') { $classes[] = 'sidebar-left'; } if ($right != '') { $classes[] = 'sidebar-right'; } } if (arg(0) == 'forum') { $classes[] = 'forum'; } if (arg(0) == 'node' && is_numeric(arg(1))) { $node = node_load(arg(1)); $classes[] = 'node-type' . $node->type; } if (!empty($classes)) { print ' class="'. implode(' ', $classes) .'"'; } }
ha minden stimmel, akkor egy szabályos phptemplate sminkben a body konténer így kerül be:
<body<?php print SMINKNEVE_body_class($left, $right); ?>> ... ..
lásd: http://api.drupal.org/api/drupal/themes--garland--page.tpl.php/6/source
a template.php -ban végzett módosításoknak hála, megfelelő osztályok kerülnek a body konténerre, ezek alapján könnyedén célozhatom cssben amit akarok, pl ha 'forum' típusú a node amit éppen nézek, akkor legyen a háttér a 42.png:
css:
body.node-type-forum #header { background-image: url(42.jpg); }
-
clear: both;
- A hozzászóláshoz regisztráció és bejelentkezés szükséges
Én mondtam, hogy dummy vagyok
Megpróbáltam a változtatásokkal.
Nem ment így sem. Az alapháttért betöltötte, de semmi többet.
A page.tpl.php így néz ki:
(a fejléckép igazából a header-inner háttere most, így ott is kipróbáltam)
Illetve kipróbáltam még a zen_random_header -el is), de semmi.
Van még tipped, hogy mi lehet?