berkes


Member since 11/27/2006

Name: Bèr Kessels

berkes

Location: Nijmegen, Netherlands

Website: http://webschuur.com

The way of the Hacker - Long term #Drupal developer - owner of webschuur.com - OpenSource lover - Long term #linux user - Rails user

8 snippets

14 profile views

View their favorites

Profile

All time reputation: 59

Achievement

first submission:submitting first snipplet

berkes's Recent SnippetsTagged theme



« Prev 1 Next »
  1. FAV

    Remove Drupal's search block "search this site" label.

    Wizzlern, a Dutch Drupal trainer, has a Dutch article online on how to remove the "search this site" label in the Drupal search-block.
    PHP saved by 6 people 3 views posted 10 years ago berkes
  2. FAV

    Allow per-region template overrides.

    A per-region override. ogt_blocks is ran for a region, if a region contains blocks, we search for a theme function named theme_region_regionname(). If exists, we run that, else we just return the concatenated blocks for that region.
    PHP saved by 3 people 1 views posted 12 years ago berkes
  3. FAV

    Override specific links in theme_links based on their class.

    Place the first function, phptemplate_links() in your template.php file. Alternatively (and IMO better) is to name the function your_theme_name_links() where your_theme_name is the name of your theme. From here on, you can add theme functions like...
    PHP saved by 6 people 1 views posted 12 years ago berkes
  4. FAV

    Drupal - Unset (not include) all core stylesheets - Theme variable overrides.

    Removes the core, and node styles from the $style variable. You most morbably already defined _phptemplate_variables($hook, $vars), in that case just add the two lines there. _sympal_theme.. is the name of the theme where we use this.
    PHP saved by 9 people 0 views posted 12 years ago berkes
  5. FAV

    Drupal - Shorten a string - general API

    Shortens a string, and adds a span with a title of the full string. Function is useful for listings where you don't want wraping; or for places where a long string liek a username can break the layout.
    PHP saved by 3 people 2 views posted 12 years ago berkes
  6. FAV

    Drupal - Theme table with columstriping

    This snipped adds columnstriping to cells. It works fine for most cases, but will behave strange when combined with colspan. Cells get an additional class 'even-col' or 'odd-col'
    PHP saved by 6 people 2 views posted 12 years ago berkes
  7. FAV

    Put classes around your body

    Put classes around your bodyy, to allow different colors for seperate pages and areas on your site. IT will simply add a css-safe version of the first argument in an url. Say the url is /about_us/our_company the class will be body.about-us Require...
    PHP saved by 12 people 2 views posted 12 years ago berkes
  8. FAV

    link images to their own node.

    This snippet is for use with image module, a small contributed module for image handling. (Yes: in Drupal you need a /contributed/ module for this o_O. The template snippet links the images to their own node.
    PHP saved by 10 people 3 views posted 12 years ago berkes
« Prev 1 Next »