" data-gathering-item-batch-timestamp="<?php echo $item->getGatheringItemBatchTimestamp(); ?> " data-gathering-item-id="<?php echo $item->getGatheringItemID(); ?> " class="ccm-gathering-item h<?php echo $item->getGatheringItemSlotHeight(); ?> w<?php echo $item->getGatheringItemSlotWidth(); ?> "> <div class="ccm-gathering-item-inner"> <?php if ($showTileControls && $ap->canEditGatheringItems()) { ?> <div class="ccm-ui"> <ul class="ccm-gathering-item-inline-commands ccm-ui"> <li class="ccm-gathering-item-inline-move"><a data-inline-command="move-tile" href="#"><i class="fa fa-arrows"></i></a></li> <li class="ccm-gathering-item-inline-options"><a data-inline-command="options-tile" href="#" data-launch-menu="gathering-menu-<?php echo $item->getGatheringItemID(); ?> "><i class="fa fa-cog"></i></a></li> </ul> <div class="popover fade" data-menu="gathering-menu-<?php echo $item->getGatheringItemID(); ?> "> <div class="arrow"></div>
<?php defined('C5_EXECUTE') or die("Access Denied."); $nh = Loader::helper('validation/numbers'); $form = Loader::helper('form'); $gaiID = intval($_REQUEST['gaiID']); $gatTypeID = intval($_REQUEST['gatTypeID']); $type = GatheringItemTemplateType::getByID($gatTypeID); $nh = Loader::helper('validation/numbers'); $item = GatheringItem::getByID($gaiID); if (is_object($item) && is_object($type)) { $gathering = $item->getGatheringObject(); $agp = new Permissions($gathering); if ($agp->canEditGatheringItems() && Loader::helper('validation/token')->validate('edit_gathering_item_template', $_REQUEST['token'])) { $reloadItemTile = false; if ($type->getGatheringItemTemplateTypeHandle() == 'tile') { $reloadItemTile = true; } if ($_POST['task'] == 'update_item_template') { $template = GatheringItemTemplate::getByID($_POST['gatID']); $item->setGatheringItemTemplate($type, $template); if ($reloadItemTile) { $item->render($type); } exit; } $assignments = GatheringItemFeatureAssignment::getList($item); $features = array(); foreach ($assignments as $as) { $f = $as->getFeatureObject(); if (is_object($f)) {
<?php defined('C5_EXECUTE') or die("Access Denied."); $nh = Loader::helper('validation/numbers'); if ($_POST['gaID'] && $nh->integer($_POST['gaID'])) { $gathering = Gathering::getByID($_POST['gaID']); if (is_object($gathering) && Loader::helper('validation/token')->validate('update_gathering_items', $_POST['editToken'])) { $agp = new Permissions($gathering); if ($agp->canEditGatheringItems()) { switch ($_POST['task']) { case 'resize': $agi = GatheringItem::getByID($_POST['gaiID']); $sw = intval($_POST['gaiSlotWidth']); $sh = intval($_POST['gaiSlotHeight']); if (!$sw) { $sw = 1; } if (!$sh) { $sh = 1; } $agi->setGatheringItemSlotWidth($sw); $agi->setGatheringItemSlotHeight($sh); break; case 'update_display_order': $displayOrder = 0; $batch = time(); foreach ($_POST['gaiID'] as $gaiID) { $agi = GatheringItem::getByID($gaiID); $agi->setGatheringItemBatchTimestamp($batch); $agi->setGatheringItemBatchDisplayOrder($displayOrder); ++$displayOrder;