SproutCMS

This is the code documentation for the SproutCMS project

class Tags

No description yet.

Source code (31 results)

/skin/default/inner.php   Highlighted file source

Line 10: use Sprout\Helpers\Tags;
Line 72: <?php Tags::getList(@$tags); ?>

/skin/default/inner.php   Highlighted file source

Line 10: use Sprout\Helpers\Tags;
Line 72: <?php Tags::getList(@$tags); ?>

/skin/default/wide.php   Highlighted file source

Line 10: use Sprout\Helpers\Tags;
Line 68: <?php Tags::getList(@$tags); ?>

/skin/default/wide.php   Highlighted file source

Line 10: use Sprout\Helpers\Tags;
Line 68: <?php Tags::getList(@$tags); ?>

/sprout/Controllers/Admin/ManagedAdminController.php   Highlighted file source

Line 42: use Sprout\Helpers\Tags;
Line 204: $this->refine_bar->addWidget(new RefineWidgetTextbox('_all_tag', 'All the tags'));
Line 205: $this->refine_bar->addWidget(new RefineWidgetTextbox('_any_tag', 'Any of the tags'));
Line 819: $tags = Tags::splitupTags($val);
Line 820: $tagwhere = implode(',', str_split(str_repeat('?', count($tags))));
Line 864: $query_params = array_merge($query_params, $tags);
Line 865: return "(SELECT COUNT(id) FROM sprout_tags WHERE record_table = ? AND record_id = item.id AND name IN ({$tagwhere})) = " . count($tags);
Line 869: $query_params = array_merge($query_params, $tags);
Line 870: return "(SELECT COUNT(id) FROM sprout_tags WHERE record_table = ? AND record_id = item.id AND name IN ({$tagwhere})) >= 1";
Line 1869: $_POST['tags'] = trim($_POST['tags']);
Line 1870: if ($_POST['tags'] == '') {
Line 1871: Json::error('No tags entered');
Line 1874: $new_tags = Tags::splitupTags($_POST['tags']);
Line 1876: Tags::update($this->table_name, $item_id, $new_tags, false);

/sprout/Controllers/Admin/ManagedAdminController.php   Highlighted file source

Line 42: use Sprout\Helpers\Tags;
Line 204: $this->refine_bar->addWidget(new RefineWidgetTextbox('_all_tag', 'All the tags'));
Line 205: $this->refine_bar->addWidget(new RefineWidgetTextbox('_any_tag', 'Any of the tags'));
Line 819: $tags = Tags::splitupTags($val);
Line 820: $tagwhere = implode(',', str_split(str_repeat('?', count($tags))));
Line 864: $query_params = array_merge($query_params, $tags);
Line 865: return "(SELECT COUNT(id) FROM sprout_tags WHERE record_table = ? AND record_id = item.id AND name IN ({$tagwhere})) = " . count($tags);
Line 869: $query_params = array_merge($query_params, $tags);
Line 870: return "(SELECT COUNT(id) FROM sprout_tags WHERE record_table = ? AND record_id = item.id AND name IN ({$tagwhere})) >= 1";
Line 1869: $_POST['tags'] = trim($_POST['tags']);
Line 1870: if ($_POST['tags'] == '') {
Line 1871: Json::error('No tags entered');
Line 1874: $new_tags = Tags::splitupTags($_POST['tags']);
Line 1876: Tags::update($this->table_name, $item_id, $new_tags, false);

/sprout/Controllers/AdminAjaxController.php   Highlighted file source

Line 38: use Sprout\Helpers\Tags;
Line 237: public function getTagSuggestions($table = null)
Line 241: $ret = Tags::suggestTags($table, $_GET['prefix']);

/sprout/Controllers/AdminAjaxController.php   Highlighted file source

Line 38: use Sprout\Helpers\Tags;
Line 237: public function getTagSuggestions($table = null)
Line 241: $ret = Tags::suggestTags($table, $_GET['prefix']);

/sprout/Controllers/AdminController.php   Highlighted file source

Line 55: use Sprout\Helpers\Tags;
Line 494: $view->browser_title = strip_tags($main['title']);
Line 531: $view->browser_title = strip_tags($main['title']);
Line 566: $view->browser_title = strip_tags($main['title']);
Line 637: $view->browser_title = strip_tags($title);
Line 740: $view->browser_title = strip_tags($main['title']);
Line 894: * Ensure 'active' flag and 'tags' POST fields have values set, if they are nonexistant
Line 900: if (!isset($_POST['tags'])) {
Line 901: $_POST['tags'] = '';
Line 1097: // Create tags area, and inject it into content after the <form> tag
Line 1098: $tags = new View('sprout/admin/main_tags');
Line 1099: $tags->type = $type;
Line 1100: $tags->suggestions = Tags::suggestTags($ctlr->getTableName());
Line 1101: $tags->table = $ctlr->getTableName();
Line 1103: $tags->current_tags = @$_SESSION['admin']['tags'];
Line 1104: unset ($_SESSION['admin']['tags']);
Line 1112: $content .= $tags->render();
Line 1160: $view->browser_title = strip_tags($main['title']);
Line 1163: $view->has_tags = true;
Line 1185: $_SESSION['admin']['tags'] = $_POST['tags'];
Line 1209: $new_tags = Tags::splitupTags($_POST['tags']);
Line 1210: $tag_result = Tags::update($ctlr->getTableName(), $id, $new_tags);
Line 1211: unset ($_SESSION['admin']['tags']);
Line 1214: Notification::error('There was an error updating the tags for this item');
Line 1248: $view->has_tags = true;
Line 1271: // Create tags area, and inject it into content after the <form> tag
Line 1272: $tags = new View('sprout/admin/main_tags');
Line 1273: $tags->suggestions = Tags::suggestTags($ctlr->getTableName());
Line 1274: $tags->table = $ctlr->getTableName();
Line 1276: $tags->current_tags = @$_SESSION['admin']['tags'];
Line 1277: if (empty($_SESSION['admin']['tags'])) {
Line 1278: $tags->current_tags = implode(', ', Tags::byRecord($ctlr->getTableName(), $id));
Line 1280: unset ($_SESSION['admin']['tags']);
Line 1290: $content .= $tags->render();
Line 1340: $view->browser_title = Text::limitChars(strip_tags($main['title']), 50, '...');
Line 1374: $_SESSION['admin']['tags'] = $_POST['tags'];
Line 1394: $new_tags = Tags::splitupTags($_POST['tags']);
Line 1395: $tag_result = Tags::update($ctlr->getTableName(), $id, $new_tags);
Line 1396: unset ($_SESSION['admin']['tags']);
Line 1399: Notification::error('There was an error updating the tags for this item');
Line 1475: $view->browser_title = Text::limitChars(strip_tags($main['title']), 50, '...');
Line 1516: $tag_result = Tags::update($ctlr->getTableName(), $id, array());
Line 1556: $view->has_tags = true;
Line 1582: // Create tags area, and inject it into content after the <form> tag
Line 1583: $tags = new View('sprout/admin/main_tags');
Line 1584: $tags->suggestions = Tags::suggestTags($ctlr->getTableName());
Line 1585: $tags->table = $ctlr->getTableName();
Line 1587: // Inject tags UI
Line 1588: $tags->current_tags = @$_SESSION['admin']['tags'];
Line 1589: if (empty($_SESSION['admin']['tags'])) {
Line 1590: $tags->current_tags = implode(', ', Tags::byRecord($ctlr->getTableName(), $id));
Line 1592: unset ($_SESSION['admin']['tags']);
Line 1606: $content .= $tags->render();
Line 1647: $view->browser_title = Text::limitChars(strip_tags($main['title']), 50, '...');
Line 1675: $_SESSION['admin']['tags'] = $_POST['tags'];
Line 1731: $new_tags = Tags::splitupTags($_POST['tags']);
Line 1732: $tag_result = Tags::update($ctlr->getTableName(), $id, $new_tags);
Line 1733: unset ($_SESSION['admin']['tags']);
Line 1736: Notification::error('There was an error updating the tags for this item');
Line 1922: $view->browser_title = strip_tags($main['title']);

/sprout/Controllers/AdminController.php   Highlighted file source

Line 55: use Sprout\Helpers\Tags;
Line 494: $view->browser_title = strip_tags($main['title']);
Line 531: $view->browser_title = strip_tags($main['title']);
Line 566: $view->browser_title = strip_tags($main['title']);
Line 637: $view->browser_title = strip_tags($title);
Line 740: $view->browser_title = strip_tags($main['title']);
Line 894: * Ensure 'active' flag and 'tags' POST fields have values set, if they are nonexistant
Line 900: if (!isset($_POST['tags'])) {
Line 901: $_POST['tags'] = '';
Line 1097: // Create tags area, and inject it into content after the <form> tag
Line 1098: $tags = new View('sprout/admin/main_tags');
Line 1099: $tags->type = $type;
Line 1100: $tags->suggestions = Tags::suggestTags($ctlr->getTableName());
Line 1101: $tags->table = $ctlr->getTableName();
Line 1103: $tags->current_tags = @$_SESSION['admin']['tags'];
Line 1104: unset ($_SESSION['admin']['tags']);
Line 1112: $content .= $tags->render();
Line 1160: $view->browser_title = strip_tags($main['title']);
Line 1163: $view->has_tags = true;
Line 1185: $_SESSION['admin']['tags'] = $_POST['tags'];
Line 1209: $new_tags = Tags::splitupTags($_POST['tags']);
Line 1210: $tag_result = Tags::update($ctlr->getTableName(), $id, $new_tags);
Line 1211: unset ($_SESSION['admin']['tags']);
Line 1214: Notification::error('There was an error updating the tags for this item');
Line 1248: $view->has_tags = true;
Line 1271: // Create tags area, and inject it into content after the <form> tag
Line 1272: $tags = new View('sprout/admin/main_tags');
Line 1273: $tags->suggestions = Tags::suggestTags($ctlr->getTableName());
Line 1274: $tags->table = $ctlr->getTableName();
Line 1276: $tags->current_tags = @$_SESSION['admin']['tags'];
Line 1277: if (empty($_SESSION['admin']['tags'])) {
Line 1278: $tags->current_tags = implode(', ', Tags::byRecord($ctlr->getTableName(), $id));
Line 1280: unset ($_SESSION['admin']['tags']);
Line 1290: $content .= $tags->render();
Line 1340: $view->browser_title = Text::limitChars(strip_tags($main['title']), 50, '...');
Line 1374: $_SESSION['admin']['tags'] = $_POST['tags'];
Line 1394: $new_tags = Tags::splitupTags($_POST['tags']);
Line 1395: $tag_result = Tags::update($ctlr->getTableName(), $id, $new_tags);
Line 1396: unset ($_SESSION['admin']['tags']);
Line 1399: Notification::error('There was an error updating the tags for this item');
Line 1475: $view->browser_title = Text::limitChars(strip_tags($main['title']), 50, '...');
Line 1516: $tag_result = Tags::update($ctlr->getTableName(), $id, array());
Line 1556: $view->has_tags = true;
Line 1582: // Create tags area, and inject it into content after the <form> tag
Line 1583: $tags = new View('sprout/admin/main_tags');
Line 1584: $tags->suggestions = Tags::suggestTags($ctlr->getTableName());
Line 1585: $tags->table = $ctlr->getTableName();
Line 1587: // Inject tags UI
Line 1588: $tags->current_tags = @$_SESSION['admin']['tags'];
Line 1589: if (empty($_SESSION['admin']['tags'])) {
Line 1590: $tags->current_tags = implode(', ', Tags::byRecord($ctlr->getTableName(), $id));
Line 1592: unset ($_SESSION['admin']['tags']);
Line 1606: $content .= $tags->render();
Line 1647: $view->browser_title = Text::limitChars(strip_tags($main['title']), 50, '...');
Line 1675: $_SESSION['admin']['tags'] = $_POST['tags'];
Line 1731: $new_tags = Tags::splitupTags($_POST['tags']);
Line 1732: $tag_result = Tags::update($ctlr->getTableName(), $id, $new_tags);
Line 1733: unset ($_SESSION['admin']['tags']);
Line 1736: Notification::error('There was an error updating the tags for this item');
Line 1922: $view->browser_title = strip_tags($main['title']);

/sprout/Controllers/AdvancedSearchController.php   Highlighted file source

Line 28: use Sprout\Helpers\Tags;
Line 144: // Work out the WHERE for tags
Line 147: $tags = Tags::splitupTags($_GET['tag']);
Line 149: foreach ($tags as $t) {
Line 164: $ch->addJoin("INNER JOIN ~tags AS tags ON tags.record_table = '{$ch->getMainTable()}' AND tags.record_id = main.id");
Line 166: $ch->addWhere('tags.name IN (' . implode(', ', $tagwhere) . ')');
Line 169: $ch->addHaving('COUNT(tags.name) = ' . count($tagwhere));
Line 252: echo json_encode(Tags::beginsWith($_GET['q']));

/sprout/Controllers/AdvancedSearchController.php   Highlighted file source

Line 28: use Sprout\Helpers\Tags;
Line 144: // Work out the WHERE for tags
Line 147: $tags = Tags::splitupTags($_GET['tag']);
Line 149: foreach ($tags as $t) {
Line 164: $ch->addJoin("INNER JOIN ~tags AS tags ON tags.record_table = '{$ch->getMainTable()}' AND tags.record_id = main.id");
Line 166: $ch->addWhere('tags.name IN (' . implode(', ', $tagwhere) . ')');
Line 169: $ch->addHaving('COUNT(tags.name) = ' . count($tagwhere));
Line 252: echo json_encode(Tags::beginsWith($_GET['q']));

/sprout/Controllers/PageController.php   Highlighted file source

Line 40: use Sprout\Helpers\Tags;
Line 308: $page_view->tags = Tags::byRecord('pages', $page['id']);

/sprout/Controllers/PageController.php   Highlighted file source

Line 40: use Sprout\Helpers\Tags;
Line 308: $page_view->tags = Tags::byRecord('pages', $page['id']);

/sprout/Helpers/Cache.php   Highlighted file source

Line 147: * Set a cache item by id. Tags may also be added and a custom lifetime
Line 152: * @param array|string tags for this item
Line 156: function set($id, $data, $tags = NULL, $lifetime = NULL)
Line 170: return $this->driver->set($id, $data, (array) $tags, $lifetime);

/sprout/Helpers/Drivers/Cache/Memcache.php   Highlighted file source

Line 30: const TAGS_KEY = 'memcache_tags_array';
Line 36: // Tags array
Line 37: protected static $tags;
Line 39: // Have the tags been changed?
Line 40: protected static $tags_changed = FALSE;
Line 62: // Load tags
Line 63: self::$tags = $this->backend->get(self::TAGS_KEY);
Line 65: if ( ! is_array(self::$tags))
Line 67: // Create a new tags array
Line 68: self::$tags = array();
Line 70: // Tags have been created
Line 71: self::$tags_changed = TRUE;
Line 77: if (self::$tags_changed === TRUE)
Line 79: // Save the tags
Line 80: $this->backend->set(self::TAGS_KEY, self::$tags, $this->flags, 0);
Line 82: // Tags are now unchanged
Line 83: self::$tags_changed = FALSE;
Line 89: if (isset(self::$tags[$tag]) AND $results = $this->backend->get(self::$tags[$tag]))
Line 96: // No matching tags
Line 106: public function set($id, $data, array $tags = NULL, $lifetime)
Line 108: if ( ! empty($tags))
Line 110: // Tags will be changed
Line 111: self::$tags_changed = TRUE;
Line 113: foreach ($tags as $tag)
Line 116: self::$tags[$tag][$id] = $id;
Line 132: // Tags will be changed
Line 133: self::$tags_changed = TRUE;
Line 139: // Remove all tags, all items have been deleted
Line 140: self::$tags = array();
Line 151: if (isset(self::$tags[$id]))
Line 153: foreach (self::$tags[$id] as $_id)
Line 160: unset(self::$tags[$id]);
Line 167: foreach (self::$tags as $tag => $_ids)
Line 169: if (isset(self::$tags[$tag][$id]))
Line 171: // Remove the id from the tags
Line 172: unset(self::$tags[$tag][$id]);
Line 182: // Tags will be changed
Line 183: self::$tags_changed = TRUE;
Line 185: foreach (self::$tags as $tag => $_ids)
Line 191: // This id has disappeared, delete it from the tags
Line 192: unset(self::$tags[$tag][$id]);
Line 196: if (empty(self::$tags[$tag]))
Line 199: unset(self::$tags[$tag]);

/sprout/Helpers/Drivers/Cache/Memcache.php   Highlighted file source

Line 30: const TAGS_KEY = 'memcache_tags_array';
Line 36: // Tags array
Line 37: protected static $tags;
Line 39: // Have the tags been changed?
Line 40: protected static $tags_changed = FALSE;
Line 62: // Load tags
Line 63: self::$tags = $this->backend->get(self::TAGS_KEY);
Line 65: if ( ! is_array(self::$tags))
Line 67: // Create a new tags array
Line 68: self::$tags = array();
Line 70: // Tags have been created
Line 71: self::$tags_changed = TRUE;
Line 77: if (self::$tags_changed === TRUE)
Line 79: // Save the tags
Line 80: $this->backend->set(self::TAGS_KEY, self::$tags, $this->flags, 0);
Line 82: // Tags are now unchanged
Line 83: self::$tags_changed = FALSE;
Line 89: if (isset(self::$tags[$tag]) AND $results = $this->backend->get(self::$tags[$tag]))
Line 96: // No matching tags
Line 106: public function set($id, $data, array $tags = NULL, $lifetime)
Line 108: if ( ! empty($tags))
Line 110: // Tags will be changed
Line 111: self::$tags_changed = TRUE;
Line 113: foreach ($tags as $tag)
Line 116: self::$tags[$tag][$id] = $id;
Line 132: // Tags will be changed
Line 133: self::$tags_changed = TRUE;
Line 139: // Remove all tags, all items have been deleted
Line 140: self::$tags = array();
Line 151: if (isset(self::$tags[$id]))
Line 153: foreach (self::$tags[$id] as $_id)
Line 160: unset(self::$tags[$id]);
Line 167: foreach (self::$tags as $tag => $_ids)
Line 169: if (isset(self::$tags[$tag][$id]))
Line 171: // Remove the id from the tags
Line 172: unset(self::$tags[$tag][$id]);
Line 182: // Tags will be changed
Line 183: self::$tags_changed = TRUE;
Line 185: foreach (self::$tags as $tag => $_ids)
Line 191: // This id has disappeared, delete it from the tags
Line 192: unset(self::$tags[$tag][$id]);
Line 196: if (empty(self::$tags[$tag]))
Line 199: unset(self::$tags[$tag]);

/sprout/Helpers/SocialMeta.php   Highlighted file source

Line 22: * Management of social meta data tags, such as Facebook OpenGraph and Twitter Cards
Line 27: * Tags of the form <meta property=":key" content=":val">
Line 32: * Tags of the form <meta name=":key" content=":val">

/sprout/Helpers/SocialMeta.php   Highlighted file source

Line 22: * Management of social meta data tags, such as Facebook OpenGraph and Twitter Cards
Line 27: * Tags of the form <meta property=":key" content=":val">
Line 32: * Tags of the form <meta name=":key" content=":val">

/sprout/Helpers/Sprout.php   Highlighted file source

Line 526: * Takes two strings of text (which will be stripped of HTML tags)
Line 533: file_put_contents($tmp_name1, trim(strip_tags($orig)) . "\n");
Line 536: file_put_contents($tmp_name2, trim(strip_tags($new)) . "\n");
Line 593: * ETags should be something which is unique for that version of the URL. They should use

/sprout/Helpers/Tags.php   Highlighted file source

Line 22: class Tags
Line 26: * Returns all of the tags for a given record
Line 30: * @return array Tags
Line 36: FROM ~tags
Line 45: * Returns all of the tags for a given table
Line 48: * @return array Tags
Line 54: FROM ~tags
Line 72: FROM ~tags
Line 80: * Return the tags for a table, along with the number of records for each tag
Line 83: * $tags = Tags::recordCounts('blog_posts', 50);
Line 84: * foreach ($tags as $tag => $count) {
Line 89: * @param int $limit Maximum number of tags to return. Use 999999 for "unlimited".
Line 97: FROM ~tags AS tag
Line 108: * Return the tags for a table, along with the number of records for each tag
Line 112: * $tags = Tags::recordCountsPerSubsite('blog_posts', 50, SubsiteSelector::$subsite_id);
Line 113: * foreach ($tags as $tag => $count) {
Line 118: * @param int $limit Maximum number of tags to return. Use 999999 for "unlimited".
Line 131: FROM ~tags AS tag
Line 143: * Returns all tags which begin with a given string
Line 146: * @return array Tags
Line 152: FROM ~tags
Line 160: * Returns common tags. Typically tags are returned from the provided table, but not necessarily.
Line 165: * @return array Tags
Line 168: public static function suggestTags($table = null, $prefix = '', $number = 10)
Line 172: $tags = [];
Line 181: // Load tags from this table
Line 185: FROM ~tags
Line 190: $tags = Pdb::q($q, $values, 'col');
Line 196: if (count($tags) < $number) {
Line 198: FROM ~tags
Line 203: $tags = array_merge($tags, Pdb::q($q, $values, 'col'));
Line 206: $tags = array_unique($tags);
Line 207: $tags = array_slice($tags, 0, $number);
Line 209: return $tags;
Line 214: * Updates tags for a given record
Line 218: * @param array $new_tags Array of tag names of the new tags
Line 219: * @param bool $remove Should removals be processed? Set to FALSE to only add tags. Default true.
Line 223: public static function update($table, $record_id, array $new_tags, $remove = true)
Line 231: // Determine which tags need adding and removing
Line 232: $current_tags = Tags::byRecord($table, $record_id);
Line 233: $add_tags = array_diff($new_tags, $current_tags);
Line 234: $del_tags = array_diff($current_tags, $new_tags);
Line 236: // Add tags that should be added
Line 237: foreach ($add_tags as $tag) {
Line 238: Pdb::insert('tags', ['record_table' => $table, 'record_id' => $record_id, 'name' => $tag]);
Line 241: // Remove tags that should be added
Line 242: if ($remove and count($del_tags) > 0) {
Line 243: Pdb::delete('tags', ['record_table' => $table, 'record_id' => $record_id, ['name', 'IN', $del_tags]]);
Line 257: * Converts a comma-separated string into a list of tags
Line 260: * @return array Tags
Line 262: public static function splitupTags($string)
Line 270: $tags = preg_split('/ *, */', $string);
Line 271: $tags = array_filter($tags);
Line 272: $tags = array_unique($tags);
Line 274: return array_merge($tags);
Line 281: * @param array $tags
Line 284: public static function getList(array $tags = null)
Line 286: if (empty($tags)) return null;
Line 288: sort($tags);
Line 291: $view->tags = $tags;

/sprout/tests/tagsTest.php   Highlighted file source

Line 14: use Sprout\Helpers\Tags;
Line 17: class tagsTest extends PHPUnit_Framework_TestCase
Line 20: public function dataSplitupTags()
Line 40: * @dataProvider dataSplitupTags
Line 42: public function testSplitupTags($string, $expect)
Line 44: $this->assertEquals($expect, Tags::splitupTags($string));

/sprout/tests/tagsTest.php   Highlighted file source

Line 14: use Sprout\Helpers\Tags;
Line 17: class tagsTest extends PHPUnit_Framework_TestCase
Line 20: public function dataSplitupTags()
Line 40: * @dataProvider dataSplitupTags
Line 42: public function testSplitupTags($string, $expect)
Line 44: $this->assertEquals($expect, Tags::splitupTags($string));

/sprout/views/admin/main_layout.php   Highlighted file source

Line 252: <?php if (!empty($has_tags)) : ?>
Line 253: <button type="button" class="button button-grey button-small icon-after icon-local_offer tags-button page-edit-tab-button" data-target="tags-wrapper">Tags</button>
Line 259: // Encode the title, but preserve STRONG tags as they mark the actual name of the item being edited

/sprout/views/admin/main_layout.php   Highlighted file source

Line 252: <?php if (!empty($has_tags)) : ?>
Line 253: <button type="button" class="button button-grey button-small icon-after icon-local_offer tags-button page-edit-tab-button" data-target="tags-wrapper">Tags</button>
Line 259: // Encode the title, but preserve STRONG tags as they mark the actual name of the item being edited

/sprout/views/admin/main_tags.php   Highlighted file source

Line 20: Needs::fileGroup('tags_ui');
Line 28: <div id="tags-wrapper" class="page-edit-tab">
Line 30: <button class="button button-small button-grey icon-close icon-after page-edit-tab-close" type="button" data-target="tags-wrapper">Close</button>
Line 31: <h3 class="h2 icon-before icon-local_offer">Tags</h3>
Line 37: <label for="tags-text">Tags</label>
Line 43: <input type="text" name="tags" class="textbox" value="<?php echo Enc::html($current_tags); ?>" id="tags-text" autocomplete="off">
Line 49: <p class="tags-suggest">
Line 52: if (strpos($current_tags, $tag) === false) {

/sprout/views/admin/main_tags.php   Highlighted file source

Line 20: Needs::fileGroup('tags_ui');
Line 28: <div id="tags-wrapper" class="page-edit-tab">
Line 30: <button class="button button-small button-grey icon-close icon-after page-edit-tab-close" type="button" data-target="tags-wrapper">Close</button>
Line 31: <h3 class="h2 icon-before icon-local_offer">Tags</h3>
Line 37: <label for="tags-text">Tags</label>
Line 43: <input type="text" name="tags" class="textbox" value="<?php echo Enc::html($current_tags); ?>" id="tags-text" autocomplete="off">
Line 49: <p class="tags-suggest">
Line 52: if (strpos($current_tags, $tag) === false) {

/sprout/views/advanced_search_form.php   Highlighted file source

Line 22: use Sprout\Helpers\Tags;
Line 26: Needs::fileGroup('tags_ui');
Line 44: <?php Form::nextFieldDetails('Tags', false); ?>
Line 45: <?= Form::text('tag', ['id' => 'tags-text', 'autocomplete' => 'off']); ?>
Line 46: <p class="tags-suggest">
Line 48: $suggestions = Tags::suggestTags();

/sprout/views/advanced_search_form.php   Highlighted file source

Line 22: use Sprout\Helpers\Tags;
Line 26: Needs::fileGroup('tags_ui');
Line 44: <?php Form::nextFieldDetails('Tags', false); ?>
Line 45: <?= Form::text('tag', ['id' => 'tags-text', 'autocomplete' => 'off']); ?>
Line 46: <p class="tags-suggest">
Line 48: $suggestions = Tags::suggestTags();

/sprout/views/tag_list.php   Highlighted file source

Line 21: <h4>Tags:</h4>
Line 24: <?php foreach ($tags as $t): ?>

/sprout/views/tag_list.php   Highlighted file source

Line 21: <h4>Tags:</h4>
Line 24: <?php foreach ($tags as $t): ?>

A total of 392 lines in 31 files were found