Beispiel #1
0
 public function ajaxAdagencyGetImpression($adsId, $campaignId, $bannerId, $type)
 {
     if (CSystemHelper::isComponentExists('com_adagency') && JComponentHelper::getComponent('com_adagency', true)->enabled) {
         jimport('joomla.application.component.model');
         JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_adagency/models');
         $agencyModel = JModelLegacy::getInstance('Adagencyadvertisement', 'AdagencyModel');
         $agencyModel->increaseImpressions($adsId, $campaignId, $bannerId, $type);
         // call to increase impression
         die(json_encode(array('status' => true)));
     }
 }
Beispiel #2
0
 public function getProfileTypes()
 {
     static $types = false;
     if (!$types) {
         $path = JPATH_ROOT . '/components/com_community/libraries/fields/customfields.xml';
         $parser = new SimpleXMLElement($path, NULL, true);
         $fields = $parser->fields;
         //to accomodate xipt component
         $xipt = CSystemHelper::isComponentExists('com_xipt') ? JComponentHelper::getComponent('com_xipt', true)->enabled : false;
         $filterField = array('Profiletypes', 'Templates');
         foreach ($fields->children() as $field) {
             //if xipt component is not enabled, filter the field
             if (!$xipt && in_array($field->name, $filterField)) {
                 continue;
             }
             $data[(string) $field->type] = $field->name;
         }
         $types = $data;
     }
     return $types;
 }
Beispiel #3
0
    if ($my->id != 0) {
        ?>
    <script>
        joms_infinitescroll = +'<?php 
        echo $config->get("infinitescroll", 0);
        ?>
';
        joms_autoloadtrigger = +'<?php 
        echo $config->get("autoloadtrigger", 100);
        ?>
';
    </script>
    <?php 
    }
    ?>

    <?php 
}
?>

    <?php 
if ($my->id != 0 && !$isSingleActivity && CSystemHelper::isComponentExists('com_adagency') && JComponentHelper::getComponent('com_adagency', true)->enabled) {
    ?>
    <script>joms_adagency = 1;</script>
    <?php 
}
?>

</div>
<!-- end: .joms-stream__wrapper -->