Friday, February 19, 2010

Standard module chrome styles

From Joomla! Documentation


  • none. Output the raw Module content with no wrapping.
  • table. Output the module in a table.
  • horz. Output the module as a table inside an outer table.
  • xhtml. Output the module wrapped in div tags.
  • rounded. Output the module wrapped in nested div tags to support rounded corners.
  • outline. Output the module wrapped with a preview border.

Applying custom module chrome

From Joomla! Documentation

To define custom Module chrome in your template you need to create a file called modules.php in your template html directory. For example, this might be PATH_TO_JOOMLA/templates/TEMPLATE_NAME/html/modules.php.

In this file you should define a function called modChrome_STYLE where 'STYLE' is the name of your custom Module chrome. This function will take three arguments, $module, &$params, and &$attribs, as shown:

<?php 
function modChrome_STYLE( $module, &$params, &$attribs )
{
/* chromed Module output goes here */
}
?>


Custom chrome attributes

It is also possible to pass further attributes into the Module chrome function using the same statement that sets the Module chrome. These additional attributes can be anything you like, and are stored in the $attribs array. Take the following example Module chrome function:

<?php
function modChrome_custom( $module, &$params, &$attribs ) {
if (isset( $attribs['headerLevel'] ))
{
$headerLevel = $attribs['headerLevel'];
} else {
$headerLevel = 3;
}

if (isset( $attribs['background'] ))
{
$background = $attribs['background'];
} else {
$background = 'blue';
}

echo '<div class="' .$params->get( 'moduleclass_sfx' ) .'" >';

if ($module->showtitle)
{
echo '<h' .$headerLevel .'>' .$module->title .'</h' .$headerLevel .'>';
}

echo '<div class="' .$background .'">';
echo $module->content;
echo '</div>';

echo '</div>';
}
?>

Thursday, February 18, 2010

Convert to ico format using free online sites

Customize Your Profile Widget

Put your updates anywhere or create a live stream for an event. Compatible with Facebook, MySpace, Blogger etc.

http://twitter.com/goodies/widget_profile?

Customize Your Profile Widget

Put your updates anywhere or create a live stream for an event. Compatible with Facebook, MySpace, Blogger etc.

http://twitter.com/goodies/widget_profile?

Wednesday, February 10, 2010

The History of Valentine s Day

How did February 14 become a day for romance? Legend has it that during the third century, Valentine, who was a devout Christian, would perform marriages for young couples. Emperor Claudius II, however, banned marriage because he did not want young men getting married. He believed that single young men made better soldiers than men who were married; therefore he did not want his potential crop of soldiers to be depleted.

Valentine defied Claudius ban on marriage and continued to perform marriages for young couples in secret. Once Claudius discovered what Valentine was doing, he ordered him put to death.

While Valentine was in jail awaiting his death, he left a goodbye note to a young girl who he was in love with. He signed the note, "From your Valentine," words that are often used today on Valentine s Day cards. It is widely believed that the young girl Valentine was in love with was also the daughter of Claudius. Valentine was put to death on February 14, 269 AD. Later, in 498 AD, Pope Gelasius declared Valentine to be the patron saint of lovers.

Over time, Valentine s Day became the day for couples to share messages of love with one another, as Valentine shared his message with the woman he loved. The day is celebrated with gifts, flowers, candy, and cards for our loved ones.

Thursday, February 4, 2010

joomla step by step