echo Lang::txt('COM_TOOLS_WHATSNEXT_PUBLISH'); ?> <?php echo $hubShortURL; ?> </li> </ul> <?php break; // approved // approved case 6: ?> <p> <?php echo ucfirst(Lang::txt('COM_TOOLS_THE')) . ' ' . $sitename . ' ' . Lang::txt('COM_TOOLS_WHATSNEXT_APPROVED_TEAM_WILL_FINALIZE') . ' ' . Lang::txt('COM_TOOLS_WHATSNEXT_IT_HAS_BEEN') . ' ' . \Components\Tools\Helpers\Html::timeAgo($this->status['changed']) . ' ' . Lang::txt('COM_TOOLS_WHATSNEXT_APPROVED_SINCE') . ' ' . Lang::txt('COM_TOOLS_WHATSNEXT_APPROVED_WHAT_WILL_HAPPEN') . ' ' . $toolaccess; ?> . </p> <p> <?php echo Lang::txt('COM_TOOLS_WHATSNEXT_APPROVED_PLS_CLICK'); ?> <?php echo $sitename; ?> : <br /> <a class="view-tool" href="<?php echo Route::url('index.php?option=' . $this->option . '&app=' . $this->status['toolname']); ?> "><?php
<p><?php echo Lang::txt('COM_TOOLS_SIDE_TIPS_WIKIACCESS'); ?> </p> <label for="t_team"> <?php echo Lang::txt('COM_TOOLS_DEVELOPMENT_TEAM'); ?> : <span class="required"><?php echo Lang::txt('JOPTION_REQUIRED'); ?> </span> <input type="text" name="tool[developers]" id="t_team" value="<?php echo \Components\Tools\Helpers\Html::getDevTeam($this->defaults['developers'], $this->id); ?> " /> <span class="hint"><?php echo Config::get('sitename') . ' ' . Lang::txt('COM_TOOLS_HINT_TEAM'); ?> </span> </label> </fieldset> <p class="submit"> <input type="submit" class="btn btn-success" value="<?php echo !$this->id ? Lang::txt('COM_TOOLS_REGISTER_TOOL') : Lang::txt('COM_TOOLS_SAVE_CHANGES'); ?> " />
: </span><span class="desc"> <?php echo $this->status['vncGeometry']; ?> </span></p> <p><span class="heading"><?php echo Lang::txt('COM_TOOLS_DEVELOPERS'); ?> : </span><span class="desc"> <?php echo \Components\Tools\Helpers\Html::getDevTeam($this->status['developers']); ?> </span></p> <p><span class="heading"><?php echo Lang::txt('COM_TOOLS_AUTHORS'); ?> : </span><span class="desc"> <?php echo \Components\Tools\Helpers\Html::getDevTeam($this->status['authors']); ?> </span></p> <p><a href="<?php echo Route::url('index.php?option=com_resources&alias=' . $this->status['toolname'] . '&rev=dev'); ?> "><?php echo Lang::txt('COM_TOOLS_PREVIEW_RES_PAGE'); ?> </a></p> </div> </div> <?php if ($this->status['license']) { ?> <div class="col span-half omega">
: </span><span class="desc"><?php echo $t->title; ?> </span></p> <p><span class="heading"><?php echo ucfirst(Lang::txt('COM_TOOLS_DESCRIPTION')); ?> : </span><span class="desc"><?php echo $t->description; ?> </span></p> <p><span class="heading"><?php echo ucfirst(Lang::txt('COM_TOOLS_AUTHORS')); ?> : </span><span class="desc"><?php echo \Components\Tools\Helpers\Html::getDevTeam($t->authors); ?> </span></p> <p><span class="heading"><?php echo ucfirst(Lang::txt('COM_TOOLS_TOOL_ACCESS')); ?> : </span><span class="desc"><?php echo $toolaccess; ?> </span></p> <p><span class="heading"><?php echo ucfirst(Lang::txt('COM_TOOLS_CODE_ACCESS')); ?> : </span><span class="desc"><?php echo $codeaccess; ?>
" /> <input type="hidden" name="alias" value="<?php echo $this->escape($this->status['toolname']); ?> " /> <?php echo Html::input('token'); ?> </div> <div id="lic"> <label><?php echo Lang::txt('LICENSE_TEMPLATE'); ?> :</label> <?php echo \Components\Tools\Helpers\Html::formSelect('templates', 'templates', $licenseChoices, $this->license_choice['template'], 'shifted', ''); ?> </div> <div id="legendnotes"> <p> <?php echo Lang::txt('LICENSE_TEMPLATE_TIP'); ?> : <br />[<?php echo Lang::txt('YEAR'); ?> ] <br />[<?php echo Lang::txt('OWNER'); ?>
</a><br /> <span class="entry-details"> <span class="entry-time"><?php echo \Components\Tools\Helpers\Html::timeAgo($row->state_changed) . ' ' . Lang::txt('COM_TOOLS_AGO'); ?> </span> </span> </td> <td style="white-space: nowrap;" <?php if (!\Components\Tools\Helpers\Html::toolEstablished($row->state)) { echo ' class="disabled_links" '; } ?> > <?php if (!\Components\Tools\Helpers\Html::toolActive($row->state)) { ?> <span class="entry-page"> <?php echo Lang::txt('COM_TOOLS_RESOURCE'); ?> </span> <?php } else { ?> <a class="entry-page" href="<?php echo Route::url('index.php?option=' . $this->option . '&app=' . $row->toolname); ?> "> <?php echo Lang::txt('COM_TOOLS_RESOURCE');
/** * Cancel a tool contribution * * @return void */ public function cancelTask() { // get vars if (!$this->_toolid) { $this->_toolid = Request::getInt('toolid', 0); } // Create a Tool object $obj = new \Components\Tools\Tables\Tool($this->database); // do we have an alias? if ($this->_toolid == 0) { if ($alias = Request::getVar('app', '')) { $this->_toolid = $obj->getToolId($alias); } } // check access rights if (!$this->_checkAccess($this->_toolid)) { App::abort(403, Lang::txt('COM_TOOLS_ALERTNOTAUTH')); return; } // get tool status $obj->getToolStatus($this->_toolid, $this->_option, $status, 'dev'); if (!$status) { App::abort(404, Lang::txt('COM_TOOLS_ERR_EDIT_CANNOT_FIND')); return; } if ($status['state'] == \Components\Tools\Helpers\Html::getStatusNum('Abandoned')) { App::abort(404, Lang::txt('COM_TOOLS_ERR_ALREADY_CANCELLED')); return; } if ($status['published'] == 1) { App::abort(404, Lang::txt('COM_TOOLS_ERR_CANNOT_CANCEL_PUBLISHED_TOOL')); return; } // unpublish resource page include_once __DIR__ . DS . 'resource.php'; $resource = new Resource(); $resource->updatePage($status['resourceid'], $status, '4'); // change tool status to 'abandoned' and priority to 'lowest' $obj->updateTool($this->_toolid, \Components\Tools\Helpers\Html::getStatusNum('Abandoned'), 5); // add comment to ticket $this->_updateTicket($this->_toolid, '', '', Lang::txt('COM_TOOLS_NOTICE_TOOL_CANCELLED'), 0, 1, 5); // continue output App::redirect(Route::url('index.php?option=' . $this->_option . '&controller=' . $this->_controller . '&task=pipeline'), Lang::txt('COM_TOOLS_NOTICE_TOOL_CANCELLED')); }
} // figure out the file type so we can give it the appropriate CSS class $type = ''; $liclass = ''; $type = Filesystem::extension($url); $type = strlen($type) > 3 ? substr($type, 0, 3) : $type; if ($child->type == 12) { $liclass = ' class="ftitle html'; } else { $type = $type ? $type : 'html'; $liclass = ' class="ftitle ' . $type; } $out .= ' <tr>'; $out .= ' <td width="100%">'; if ($this->allowupload) { $out .= '<span' . $liclass . ' item:name id:' . $child->id . '" data-id="' . $child->id . '">' . $this->escape($child->title) . '</span><br /><span class="caption">(<a href="' . Route::url('index.php?option=com_resources&task=download&id=' . $child->id) . '" title="' . $child->title . '">' . \Components\Tools\Helpers\Html::getFileAttribs($url, $base) . '</a>)</span>'; } else { $out .= '<span><a href="' . Route::url('index.php?option=com_resources&task=download&id=' . $child->id) . '">' . $this->escape($child->title) . '</a></span>'; } $out .= '</td>'; if ($this->allowupload) { $out .= ' <td class="d">'; if ($i > 0 || $i + 0 > 0) { $out .= '<a href="' . $base . '/index.php?option=' . $this->option . '&controller=' . $this->controller . '&tmpl=component&pid=' . $this->resource->id . '&id=' . $child->id . '&task=reorder&move=up" class="order up" title="' . Lang::txt('COM_TOOLS_MOVE_UP') . '"><span>' . Lang::txt('COM_TOOLS_MOVE_UP') . '</span></a>'; } else { $out .= ' '; } $out .= '</td>'; $out .= ' <td class="u">'; if ($i < $n - 1 || $i + 0 < $n - 1) { $out .= '<a href="' . $base . '/index.php?option=' . $this->option . '&controller=' . $this->controller . '&tmpl=component&pid=' . $this->resource->id . '&id=' . $child->id . '&task=reorder&move=down" class="order down" title="' . Lang::txt('COM_TOOLS_MOVE_DOWN') . '"><span>' . Lang::txt('COM_TOOLS_MOVE_DOWN') . '</span></a>';