DrupalBin
Submit Code
About
Recent Posts
Code
1 hour 45 min
ago
weird filefield with mp3 embed object
2 hours 2 min
ago
D6 FAPI Examples
2 hours 30 min
ago
returning to the same code a second time doesn't have the $form_values argument set
6 hours 49 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
security scanner
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
template.php
Sample template.php
August 2, 2008 - 1:15pm — Anonymous
<?php
// $Id: template.php,v 1.16 2007/10/11 09:51:29 goba Exp $
drupal_add_js
(
path_to_theme
(
)
.
'/jscrollerx.js'
,
'theme'
)
;
/*drupal_add_js(path_to_theme().'/jscroller2-1.5.js', 'theme');*/
template.php
Read more
Fix for Customizing pager
July 15, 2008 - 7:27am — Anonymous
function
zen_pager
(
$tags
=
array
(
)
,
$limit
=
10
,
$element
=
0
,
$parameters
=
array
(
)
)
{
global
$pager_total
;
$output
=
''
;
if
(
$pager_total
[
$element
]
>
1
)
{
template.php
theme
Read more
Customizing pager
July 11, 2008 - 6:31am — Anonymous
function
zen_pager
(
$tags
=
array
(
)
,
$limit
=
10
,
$element
=
0
,
$parameters
=
array
(
)
)
{
global
$pager_total
;
$output
=
''
;
if
(
$pager_total
[
$element
]
>
1
)
{
template.php
theme
Read more
Individual menu classes on theme
June 18, 2008 - 10:36am — Anonymous
/*******individual menu classes******/
function
phptemplate_menu_item
(
$mid
,
$children
=
''
,
$leaf
=
TRUE
,
$extraclass
=
''
)
{
template
template.php
theme
theming
Read more
enable / disable TinyMCE via template.php (Login/Logout Fix)
March 25, 2008 - 1:20am —
Ricc
<?php
/**
* Customize a TinyMCE theme.
*
* @param init
* An array of settings TinyMCE should invoke a theme. You may override any
* of the TinyMCE settings. Details here:
*
template.php
TinyMCE
Read more
Fix for custom _phptemplate_variables()
February 21, 2008 - 9:56pm — Anonymous
// Modified by Michelle (custom)
function
_phptemplate_variables
(
$hook
,
$vars
)
{
if
(
module_exists
(
'advanced_profile'
)
)
{
$vars
= advanced_profile_addvars
(
$hook
,
$vars
)
;
}
template.php
Read more
custom _phptemplate_variables()
February 21, 2008 - 8:19pm — Anonymous
// Modified by Michelle (custom)
function
_phptemplate_variables
(
$hook
,
$vars
)
{
if
(
module_exists
(
'advanced_profile'
)
)
{
$vars
= advanced_profile_addvars
(
$hook
,
$vars
)
;
}
template.php
Read more
maybe a problem with accents on drupal 6 for theme-settings.php
February 21, 2008 - 10:34am — Anonymous
/**
* template.php
*/
<?php
/*
* Initialize theme settings
*/
if
(
is_null
(
theme_get_setting
(
'who_we_are_title'
)
)
)
{
global
$theme_key
;
/*
drupal6
template.php
theme-settings.php
Read more
Fix for maybe a problem with accents on drupal 6 for theme-settings.php
February 21, 2008 - 10:29am — Anonymous
/**
* template.php
*/
<?php
/*
* Initialize theme settings
*/
if
(
is_null
(
theme_get_setting
(
'who_we_are_title'
)
)
)
{
global
$theme_key
;
/*
drupal6
template.php
theme-settings.php
Read more
Fix for maybe a problem with accents on drupal 6 for theme-settings.php
February 21, 2008 - 10:25am — Anonymous
/**
* template.php
*/
<?php
/*
* Initialize theme settings
*/
if
(
is_null
(
theme_get_setting
(
'quem_somos_title'
)
)
)
{
global
$theme_key
;
/*
drupal6
template.php
theme-settings.php
Read more
1
2
next ›
last »