Exemplo n.º 1
0
    if (isset($pluginParams->points)) {
        if ($pluginParams->points == 'point') {
            $points1 = 1;
            //$points1=$this->get('JomSocialPoints');
            $this->assignRef('ad_points', $points1);
            $this->assignRef('ad_jconver', $pluginParams->conversion);
        }
    }
}
//if ends
// get ad preview
// get payment HTML
//JLoader::import('showad',JPATH_SITE.DS.'components'.DS.'com_socialads'.DS.'models');
JLoader::import('showad', JPATH_SITE . DS . 'components' . DS . 'com_socialads' . DS . 'models');
$showadmodel = new socialadsModelShowad();
$preview = $showadmodel->getAds($adDetail['ad_id']);
$this->preview = $preview;
// getting payment list START
$selected_gateways = $socialads_config['gateways'];
//getting GETWAYS
$dispatcher = JDispatcher::getInstance();
JPluginHelper::importPlugin('payment');
if (!is_array($selected_gateways)) {
    $gateway_param[] = $selected_gateways;
} else {
    $gateway_param = $selected_gateways;
}
if (!empty($gateway_param)) {
    $gateways = $dispatcher->trigger('onTP_GetInfo', array($gateway_param));
}
$this->ad_gateways = $gateways;
Exemplo n.º 2
0
<?php

// no direct access
defined('_JEXEC') or die(';)');
JHtml::_('behavior.formvalidation');
$document = JFactory::getDocument();
// get ad preview
// get payment HTML
//JLoader::import('showad',JPATH_SITE.DS.'components'.DS.'com_socialads'.DS.'models');
JLoader::import('showad', JPATH_SITE . DS . 'components' . DS . 'com_socialads' . DS . 'models');
$showadmodel = new socialadsModelShowad();
$preview = $showadmodel->getAds($ad_id);
$this->preview = $preview;
?>

<div class="techjoomla-bootstarp ad_reviewAdmainContainer">
<?php 
$user = JFactory::getUser();
if (!$user->id) {
    ?>
	<div class="alert alert-success">
		<?php 
    echo JText::_('BUILD_LOGIN');
    ?>
	</div>

</div><!--techjoomla bootstrap ends if not logged in-->
	<?php 
    return false;
}
require JPATH_SITE . DS . "administrator" . DS . "components" . DS . "com_socialads" . DS . "config" . DS . "config.php";