Source for file data.addjstabs.php
Documentation is available at data.addjstabs.php
* Liberty Plugin - jstabs
* @copyright (c) 2015, bitweaver.org
* @author StarRider <starrrider@users.sourceforge.net>
* port to jstabs <lester@lsces.co.uk>
* @subpackage plugins_data
define( 'PLUGIN_GUID_DATAADDJSTABS', 'dataaddjstabs' );
'auto_activate' => FALSE,
'requires_pair' => FALSE,
'load_function' => 'data_addjstabs',
'help_page' => 'DataPluginAddJSTabs',
'description' => tra("Will join the contents from several sources in a Tabbed Interface."),
'help_function' => 'data_addjstabs_help',
'syntax' => "{ADDJSTABS tab1= tab2= tab3= . . . tab99= }",
'<table class="data help">'
. '<th>' . tra( "Key" ) . '</th>'
. '<th>' . tra( "Type" ) . '</th>'
. '<th>' . tra( "Comments" ) . '</th>'
. '<td>' . tra( "numeric") . '<br />' . tra("(optional)") . '</td>'
. '<td>' . tra( "Will create a Tab interface on a page using jstab format. The name on each tab is the name given to the imported page.The value sent with the TabX parameter is a Numeric Content Id. This allows blog posts, images, wiki pages . . . (and more) to be added.")
. tra("<br /><strong>Note 1:</strong> A listing of Content Id's can be found ")
. '<a href="'. LIBERTY_PKG_URL. 'list_content.php" title="Launch BitWeaver Content Browser in New Window" onkeypress="javascript:BitBase.popUpWin(this.href,\'standard\',800,800);" onclick="javascript:BitBase.popUpWin(this.href,\'standard\',800,800);return false;">' . tra( "Here" ) . '</a>'
. tra("<br /><strong>Note 2:</strong> The order used when the tabs are specified does not matter. The Tabname does - Tab1 is always first and Tab99 will always be last.</td>")
. tra("Example: ") . '{ADDJSTABS tab1=15 tab2=12 tab3=11}';
* @param array $params See help function for details
$gBitSmarty->loadPlugin( 'smarty_block_jstab' );
$gBitSmarty->loadPlugin( 'smarty_block_jstabs' );
for ($i = 1; $i <= 99; $i++ ) {
if( isset ( $ {'tab'. $i} ) ) {
$params['title'] = $obj->getTitle();
$html = tra("The plugin AddTabs requires valid parameters. Numeric content id numbers can use the parameter names 'tab1' thru 'tab99'");
|