Beispiel #1
0
</span></p>
					<?php 
        }
    }
    ?>
					</p>
					<?php 
    $tags = $this->question->tags('array', 1);
    $resource = null;
    $publication = null;
    foreach ($tags as $tag) {
        if (!$tag) {
            continue;
        }
        if (!is_object($tag)) {
            $tag = new \Components\Tags\Models\Tag($tag);
        }
        if (preg_match('/^tool:/i', $tag->get('raw_tag'))) {
            $resource = 'alias=' . substr($tag->get('raw_tag'), strlen('tool:'));
        } else {
            if (preg_match('/^resource(\\d+)$/i', $tag->get('tag'))) {
                $resource = 'id=' . substr($tag->get('tag'), strlen('resource'));
            }
        }
        if ($resource) {
            ?>
							<p><?php 
            echo Lang::txt('COM_ANSWERS_QUESTION_ASKED_ON', '<a href="' . Route::url('index.php?option=com_resources&' . $resource) . '">' . Lang::txt('COM_ANSWERS_FOLLOWING_RESOURCE') . '</a>');
            ?>
</p>
							<?php 
Beispiel #2
0
}
?>
		</select>

		<input type="hidden" name="tagid" value="<?php 
echo $this->filters['tagid'];
?>
" />
	</fieldset>

	<table class="adminlist">
		<?php 
if ($this->filters['tagid']) {
    ?>
			<caption><?php 
    $tag = new \Components\Tags\Models\Tag($this->filters['tagid']);
    echo Lang::txt('COM_TAGS_TAG') . ': ' . $this->escape($tag->get('raw_tag')) . ' (' . $this->escape($tag->get('tag')) . ')';
    ?>
</caption>
		<?php 
}
?>
		<thead>
			<tr>
				<th scope="col"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php 
echo count($this->rows);
?>
);" /></th>
				<th scope="col" class="priority-5"><?php 
echo $this->grid('sort', 'COM_TAGS_COL_ID', 'id', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>