This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(typeof(CKEDITOR) !== 'undefined') { | |
CKEDITOR.stylesSet.add( 'drupal', [ | |
// Block-level styles | |
{ name: 'Float Left', element: 'p', attributes: { 'class': 'left'} }, | |
{ name: 'Float Right' , element: 'p', attributes: { 'class': 'right'} }, | |
// Inline styles | |
{ name: 'Small Text', element: 'small' } | |
] ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
THEME_preprocess_node(&$variables, $hook) { | |
if ($variables['submitted']) { | |
$variables['submitted'] = t('Posted by !username !datetime', array('!username' => $variables['name'], '!datetime' => format_date($variables['node']->created, 'custom', 'F j, Y'))); | |
} | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implement hook_element_info_alter() | |
* Enable custom processing of a field in authoring form before it is rendered to the user | |
* | |
* @param array $elements | |
*/ | |
function my_module_element_info_alter(&$elements) { | |
array_unshift($elements['text_format']['#pre_render'], 'my_module_process_text_format'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<t:set id="pdate" value="year(date)" /><t:set id="pdate" value="concat(pdate, '-')" /><t:set id="temp1" value="month(date)+1" /> | |
<t:set id="pdate" value="concat(pdate, temp1)" /><t:set id="pdate" value="concat(pdate, '-')" /> | |
<t:set id="temp2" value="day(date)" /><t:set id="pdate" value="concat(pdate, temp2)" /> | |
<time datetime="${pdate}"><t:value id="date" format="5" /></time> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img src="[[?x0x::x[[S4]]x::http://www.myclodomain.com/images/wrpr/::../images/wrpr/]]logo.png" alt="My Organization" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<t:if test="year(start_date) != year(end_date)"><t:value id="start_date" format="5" /> - <t:value id="end_date" format="5" /></t:if> | |
<t:else> | |
<t:if test="month(start_date) == month(end_date)"><t:value id="start_date" format="MMMMMMMMMM d" /> - <t:value id="end_date" format="d, yyyy" /></t:if> | |
<t:else><t:value id="start_date" format="MMMMMMMMMM d" /> - <t:value id="end_date" format="5" /></t:else> | |
</t:else> | |
</t:if> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<t:if test="category-field-name.length > 0"> | |
<t:list id="category-field-name"> | |
<a href="list-page.html?category-field-name=${name}">${label}</a><t:if test="index != length">,</t:if> | |
</t:list> | |
</t:if> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<t:if test="title == 'Search Results' || matches(title, 'Send to Friend:.*')"> | |
<div id="maincol"><h1 class="title">${title}</h1> | |
</t:if> | |
<div class="templateComponent" id="body"></div> | |
<t:if test="title == 'Search Results' || matches(title, 'Send to Friend:.*')"> | |
</div> | |
</t:if> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
div.odd { background: #eee; } | |
div.even { background: #fff; } | |
</style> | |
<div class="striped"> | |
<t:list> | |
<t:if test="index%2 == 1"><div class="odd"></t:if> | |
<t:else><div class="even"></t:else> | |
${title} |
OlderNewer