File : j06000dummy_third_party_plugin.class.php
<?php
// ################################################################
defined( '_JOMRES_INITCHECK' ) or die( '' );
// ################################################################
class j06000dummy_third_party_plugin {
function j06000dummy_third_party_plugin()
{
// This if ($MiniComponents->template_touch) code must be included in every Event/Mini-component otherwise you'll cause a fatal error in the Touch Templates feature of Jomres administrator
// If you're not including any text that you think that users would translate in Touch Templates, then it's safe to leave $this->template_touchable as false.
$MiniComponents =jomres_getSingleton('mcHandler');
if ($MiniComponents->template_touch)
{
$this->template_touchable=true; return;
}
$ePointFilepath = get_showtime('ePointFilepath');
$output = array();
$output['HELLO_WORLD']=jr_gettext('_JOMRES_CUSTOMTEXT_DUMMY_THIRD_PARTY_PLUGIN_DEFINE2',_JOMRES_CUSTOMTEXT_DUMMY_THIRD_PARTY_PLUGIN_DEFINE2);
$pageoutput[]=$output;
$tmpl = new patTemplate();
$tmpl->setRoot($ePointFilepath.'templates' );
$tmpl->readTemplatesFromInput( 'dummy_third_party_plugin_a.html' );
$tmpl->addRows( 'pageoutput', $pageoutput );
$tmpl->displayParsedTemplate();
}
// Outputs translateable code to the
function touch_template_language()
{
$output=array();
$output[]=jr_gettext('_JOMRES_CUSTOMTEXT_DUMMY_THIRD_PARTY_PLUGIN_DEFINE2',_JOMRES_CUSTOMTEXT_DUMMY_THIRD_PARTY_PLUGIN_DEFINE2);
foreach ($output as $o)
{
echo $o;
echo "<br/>";
}
}
/**
#
* Must be included in every mini-component
#
* Returns any settings the the mini-component wants to send back to the calling script. In addition to being returned to the calling script they are put into an array in the mcHandler object as eg. $mcHandler->miniComponentData[$ePoint][$eName]
#
*/
// This must be included in every Event/Mini-component
function getRetVals()
{
return null;
}
}
?>