theme

Trying to override theme_menu_item_link

  1. <?php
  2. function phptemplate_menu_item_link($link) {
  3.   if (empty($link['localized_options'])) {
  4.     $link['localized_options'] = array('html'=>TRUE);
  5.   }
  6.  
  7.   $thetitle = '<span>';
  8.   $thetitle .=

Fix for Trying to override theme_menu_item_link

  1. <?php
  2. function phptemplate_menu_item_link($link) {
  3.   if (empty($link['localized_options'])) {
  4.     $link['localized_options'] = array('html'=>TRUE);
  5.   }
  6.  
  7.   $thetitle = '<span>';
  8.   $thetitle .=

Trying to override theme_menu_item_link

  1. <?php
  2. function phptemplate_menu_item_link($link) {
  3.   if (empty($link['localized_options'])) {
  4.     $link['localized_options'] = array();
  5.   }
  6.  
  7.   $thetitle = '<span>';
  8.   $thetitle .= $link['titl

theme registery alter

  1. function ctcd_theme_registry_alter(&$theme_registry) {
  2.   ///dsm($theme_registry);
  3.   dsm('here in theme_registry_alter');
  4.   if(isset($theme_registry['table'])) {
  5.     $theme_registry['table']['funct

Fix for Twitter-like paging

  1. function joblist_views_mini_pager($tags = array(), $limit = 10, $element = 0, $parameters = array(), $quantity = 9) {
  2.   global $pager_page_array, $pager_total;
  3.  
  4.   // Calculate various markers withi

use a CCK field to switch node templates

  1.   // ----------------------------- node templates
  2.   // $vars['template_files'] holds an array of template suggestions,
  3.   // from most generic to most specific.
  4.   // Here we add our own suggestions

Them snippet causing problems with displaying a gmap on the same page

  1. function anglerschannel_preprocess_page(&$vars) {
  2.         if (arg(2)!='edit' && arg(1) !='add'){
  3.                 $vars['template_files'][] = "page-node-" .

Twitter-like paging

  1. function joblist_views_mini_pager($tags = array(), $limit = 10, $element = 0, $parameters = array(), $quantity = 9) {
  2.   global $pager_page_array, $pager_total;
  3.  
  4.   // Calculate various markers withi

theme_pager

  1. /**
  2.  * Format a query pager.
  3.  *
  4.  * Menu callbacks that display paged query results should call theme('pager') to
  5.  * retrieve a pager control so that users can view other results.
  6.  * Format a list

add span wrapper to primary links

  1. <?php
  2. function overeasy_theme(&$existing, $type, $theme, $path) {
  3.   $hooks = genesis_theme($existing, $type, $theme, $path);
  4.   $hooks['primary_links'] = array(
  5.     'arguments' => array('links' =>
Syndicate content