Customization
You can add parameters in the normal plugin way. For example, if your skin doesn't use the bSideItem class for blocks in your sidebar, then you would want to do this:
PHP:
<?php $Plugins->call_by_code( 'am_Deadline', array(
'block_start' => '<div class="yourClass">',
) ); ?>
Here is a full list of the available parameters:
<strong>block_start</strong> => '<div class="bSideItem">'// This is what will enclose the block in the skin
<strong>block_end</strong> => "</div>\n"; // This is what will enclose the block in the skin
<strong>title</strong> => '<h3>'.T_('Deadline near').'</h3>'; // Title
<strong>list_start</strong> => '<ul>'; // This is what will begin the list
<strong>list_end</strong> => "</ul>\n"; // This is what will end the list
<strong>line_start </strong> => '<li>'; // This is what will separate the links
<strong>line_end'</strong> => "</li>\n"; // This is what will separate the links
<strong>statusarray</strong> => array('published', 'protected', 'draft'); // What statusses do we look at ?
<strong>cat</strong> => ''; // List of cats to restrict to
<strong>catarray</strong> => array(); // Array of cats to restrict to
<strong>author</strong> => ''; // List of authors to restrict to
<strong>order</strong> => 'ASC'; // oldest to newest
<strong>orderby</strong> => 'datedeadline'; // Field to order by
<strong>limit</strong> => 12; // Number of entries to display:
<strong>timestampmin</strong> => 'now'; // Do not show posts before this timestamp
<strong>timestampmax</strong> => '// Do not show posts after this timestamp
Comments are closed for this post.
Original b2evolution template design by AstonishMe
Recent comments