Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
target="_blank" rel="noopener"
Signed-off-by:Ivan Tcholakov <ivantcholakov@gmail.com>
  • Loading branch information
ivantcholakov committed Mar 4, 2018
1 parent 474ae6f commit dff13b2
Show file tree
Hide file tree
Showing 31 changed files with 182 additions and 184 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -369,7 +369,7 @@ echo $this->parser->parse_string($mustache_template, $data, true, 'mustache');
echo $this->parser->parse_string($content, null, true, array('markdown', 'auto_link'));

// The same chaining example, this time a configuration option of the second parser has been altered.
echo $this->parser->parse_string($content, null, true, array('markdown', 'auto_link' => array('attributes' => 'target="_blank"')));
echo $this->parser->parse_string($content, null, true, array('markdown', 'auto_link' => array('attributes' => 'target="_blank" rel="noopener"')));
```

Using parsers indirectly on rendering views:
Expand Down
Expand Up @@ -134,11 +134,11 @@ public function _formatter_actions($value, $item) {
$gmap_url = gmap_url($item['latitude'], $item['longitude'], 6);

if ($gmap_url != '') {
$result[] = '<a href="'.$gmap_url.'" class="compact ui icon button" title="'.$this->lang->line('ui_map').'" target="_blank"><i class="marker icon"></i></a>';
$result[] = '<a href="'.$gmap_url.'" class="compact ui icon button" title="'.$this->lang->line('ui_map').'" target="_blank" rel="noopener"><i class="marker icon"></i></a>';
}

if ($item['link'] != '') {
$result[] = '<a href="'.$item['link'].'" class="compact ui icon button" title="'.$this->lang->line('ui_information').'" target="_blank"><i class="external icon"></i></a>';
$result[] = '<a href="'.$item['link'].'" class="compact ui icon button" title="'.$this->lang->line('ui_information').'" target="_blank" rel="noopener"><i class="external icon"></i></a>';
}

$result[] = '<a href="javascript://" class="compact primary ui icon button" title="'.$this->lang->line('ui_edit').'"><i class="write icon"></i></a>';
Expand Down
Expand Up @@ -85,11 +85,11 @@ public function _formatter_actions($value, $item) {
$gmap_url = gmap_url($item['latitude'], $item['longitude'], 6);

if ($gmap_url != '') {
$result[] = '<a href="'.$gmap_url.'" class="compact ui icon button" title="'.$this->lang->line('ui_map').'" target="_blank"><i class="marker icon"></i></a>';
$result[] = '<a href="'.$gmap_url.'" class="compact ui icon button" title="'.$this->lang->line('ui_map').'" target="_blank" rel="noopener"><i class="marker icon"></i></a>';
}

if ($item['link'] != '') {
$result[] = '<a href="'.$item['link'].'" class="compact ui icon button" title="'.$this->lang->line('ui_information').'" target="_blank"><i class="external icon"></i></a>';
$result[] = '<a href="'.$item['link'].'" class="compact ui icon button" title="'.$this->lang->line('ui_information').'" target="_blank" rel="noopener"><i class="external icon"></i></a>';
}

$result[] = '<a href="javascript://" class="compact primary ui icon button" title="'.$this->lang->line('ui_edit').'"><i class="write icon"></i></a>';
Expand Down
Expand Up @@ -37,8 +37,8 @@ The MIT License, http://opensource.org/licenses/MIT
</style>

<p>
<a href="http://www.jacklmoore.com/colorbox/" target="_blank">http://www.jacklmoore.com/colorbox/</a>,
<a href="https://github.com/jackmoore/colorbox" target="_blank">https://github.com/jackmoore/colorbox</a>
<a href="http://www.jacklmoore.com/colorbox/" target="_blank" rel="noopener">http://www.jacklmoore.com/colorbox/</a>,
<a href="https://github.com/jackmoore/colorbox" target="_blank" rel="noopener">https://github.com/jackmoore/colorbox</a>
</p>

<h3>Colorbox - Default Mode</h3>
Expand Down
Expand Up @@ -59,7 +59,5 @@
<div class="ui hidden clearing divider"></div>

<div class="ui message">
<p>DataTables documentation: <a target="_blank" href="http://datatables.net">http://datatables.net</a></p>
<p>Integration for Bootstrap 3: <a target="_blank" href="https://github.com/DataTables/Plugins/tree/master/integration/bootstrap/3">https://github.com/DataTables/Plugins/tree/master/integration/bootstrap/3</a></p>
<p>Visual responsiveness support: <a target="_blank" href="https://github.com/Comanche/datatables-responsive">https://github.com/Comanche/datatables-responsive</a></p>
<p>DataTables documentation: <a target="_blank" rel="noopener" href="http://datatables.net">http://datatables.net</a></p>
</div>
Expand Up @@ -9,7 +9,7 @@ The MIT License, http://opensource.org/licenses/MIT

<h3>JavaScript Implementation</h3>

<p><a href="https://github.com/mdp/gibberish-aes" target="_blank">https://github.com/mdp/gibberish-aes</a></p>
<p><a href="https://github.com/mdp/gibberish-aes" target="_blank" rel="noopener">https://github.com/mdp/gibberish-aes</a></p>

{%
set source_1 = 'var pass = \'' ~ pass ~ '\';
Expand Down Expand Up @@ -75,7 +75,7 @@ GibberishAES.size(256); // Restore the default key size.'

<h3>PHP Implementation</h3>

<p><a href="https://github.com/ivantcholakov/gibberish-aes-php" target="_blank">https://github.com/ivantcholakov/gibberish-aes-php</a></p>
<p><a href="https://github.com/ivantcholakov/gibberish-aes-php" target="_blank" rel="noopener">https://github.com/ivantcholakov/gibberish-aes-php</a></p>

{%
set source_2 = '$pass = \'' ~ pass ~ '\'
Expand Down
Expand Up @@ -50,7 +50,7 @@ The MIT License, http://opensource.org/licenses/MIT
if (data.found) {
$('#larger_map').html('<a href="' + data.link + '" target="_blank">' + '{{ lang('ui_see_a_larger_map')|e('js') }}' + '</a>');
$('#larger_map').html('<a href="' + data.link + '" target="_blank" rel="noopener">' + '{{ lang('ui_see_a_larger_map')|e('js') }}' + '</a>');
$('#larger_map').show();
} else {
Expand Down
@@ -1,6 +1,6 @@

<p>Source repository: <a href="https://github.com/gudh/ihover" target="_blank">https://github.com/gudh/ihover</a></p>
<p>For a full set of examples see: <a href="http://gudh.github.io/ihover/dist/index.html" target="_blank">http://gudh.github.io/ihover/dist/index.html</a></p>
<p>Source repository: <a href="https://github.com/gudh/ihover" target="_blank" rel="noopener">https://github.com/gudh/ihover</a></p>
<p>For a full set of examples see: <a href="http://gudh.github.io/ihover/dist/index.html" target="_blank" rel="noopener">http://gudh.github.io/ihover/dist/index.html</a></p>

<h3>Demo - Circle, Hover Effect 1</h3>

Expand Down
Expand Up @@ -294,7 +294,7 @@
<tr>
<td>
<p>
<a href="{{ thumbnail(my_image) }}" target="_blank">
<a href="{{ thumbnail(my_image) }}" target="_blank" rel="noopener">
<img class="ui fluid image" src="{{ thumbnail(my_image) }}" />
</a>
<br />
Expand All @@ -303,7 +303,7 @@
</td>
<td>
<p>
<a href="{{ thumbnail(my_image, null, null, null, null, true) }}" target="_blank">
<a href="{{ thumbnail(my_image, null, null, null, null, true) }}" target="_blank" rel="noopener">
<img class="ui fluid image" src="{{ thumbnail(my_image, null, null, null, null, true) }}" />
</a>
<br />
Expand Down
Expand Up @@ -25,7 +25,7 @@

{{ /asset:css_inline }}

<p>See <a href="https://github.com/pyrocms/lex" target="_blank">https://github.com/pyrocms/lex</a></p>
<p>See <a href="https://github.com/pyrocms/lex" target="_blank" rel="noopener">https://github.com/pyrocms/lex</a></p>

<table class="ui celled fixed table">

Expand All @@ -51,7 +51,7 @@

<tr class="positive">
<td colspan="2" class="center aligned">
<h4>Syntax (Source: <a href="http://docs.pyrocms.com/2.2/manual/guides/pyrocms-tags" target="_blank">PyroCMS Tags</a>)</h4>
<h4>Syntax (Source: <a href="http://docs.pyrocms.com/2.2/manual/guides/pyrocms-tags" target="_blank" rel="noopener">PyroCMS Tags</a>)</h4>
</td>
</tr>

Expand Down Expand Up @@ -922,10 +922,10 @@ <h4>Helper Functions</h4>

<tr>
<td>
<pre><code>{{ noparse }}&lt;a href="{{ helper:<strong>gmap_url</strong> latitude='42.66667' longitude='25.25' zoom='6' show_marker='yes' }}" target="_blank"&gt;Bulgaria&lt;/a&gt;{{ /noparse }}</code></pre>
<pre><code>{{ noparse }}&lt;a href="{{ helper:<strong>gmap_url</strong> latitude='42.66667' longitude='25.25' zoom='6' show_marker='yes' }}" target="_blank" rel="noopener"&gt;Bulgaria&lt;/a&gt;{{ /noparse }}</code></pre>
</td>
<td>
<a href="{{ helper:gmap_url latitude='42.66667' longitude='25.25' zoom='6' show_marker='yes' }}" target="_blank">Bulgaria</a>
<a href="{{ helper:gmap_url latitude='42.66667' longitude='25.25' zoom='6' show_marker='yes' }}" target="_blank" rel="noopener">Bulgaria</a>
</td>
</tr>

Expand Down Expand Up @@ -2955,7 +2955,7 @@ <h4>Widgets</h4>

<tr class="positive">
<td colspan="2" class="center aligned">
<h4>Extending Layouts (See <a href="https://bitbucket.org/getunik/pyrocms-layout-module" target="_blank">Layout module for PyroCMS</a>)</h4>
<h4>Extending Layouts (See <a href="https://bitbucket.org/getunik/pyrocms-layout-module" target="_blank" rel="noopener">Layout module for PyroCMS</a>)</h4>
</td>
</tr>

Expand Down
@@ -1,6 +1,6 @@

<p>Source repository: <a href="https://github.com/desandro/masonry" target="_blank">https://github.com/desandro/masonry</a></p>
<p>This example is based on the article by Maria Antonietta Perna: <a href="https://www.sitepoint.com/bootstrap-tabs-play-nice-with-masonry" target="_blank">https://www.sitepoint.com/bootstrap-tabs-play-nice-with-masonry</a></p>
<p>Source repository: <a href="https://github.com/desandro/masonry" target="_blank" rel="noopener">https://github.com/desandro/masonry</a></p>
<p>This example is based on the article by Maria Antonietta Perna: <a href="https://www.sitepoint.com/bootstrap-tabs-play-nice-with-masonry" target="_blank" rel="noopener">https://www.sitepoint.com/bootstrap-tabs-play-nice-with-masonry</a></p>

<h2>Resize the browser window:</h2>

Expand Down
Expand Up @@ -4,10 +4,10 @@ The MIT License, http://opensource.org/licenses/MIT
#}

<p>
<a href="https://github.com/mervick/material-design-icons" target="_blank">https://github.com/mervick/material-design-icons</a>
<a href="https://github.com/mervick/material-design-icons" target="_blank" rel="noopener">https://github.com/mervick/material-design-icons</a>
<br />
<a href="http://google.github.io/material-design-icons/#icon-font-for-the-web" target="_blank">http://google.github.io/material-design-icons/#icon-font-for-the-web</a>,
<a href="https://www.google.com/design/icons/" target="_blank">https://www.google.com/design/icons/</a>
<a href="http://google.github.io/material-design-icons/#icon-font-for-the-web" target="_blank" rel="noopener">http://google.github.io/material-design-icons/#icon-font-for-the-web</a>,
<a href="https://www.google.com/design/icons/" target="_blank" rel="noopener">https://www.google.com/design/icons/</a>
</p>

{% if items is not empty %}
Expand Down
Expand Up @@ -19,7 +19,7 @@ The MIT License, http://opensource.org/licenses/MIT

<div class="ui 16:9 embed">{{ multiplayer.html(video)|raw }}</div>

<p><a href="{{ video|e('html_attr') }}" target="_blank">{{ video }}</a></p>
<p><a href="{{ video|e('html_attr') }}" target="_blank" rel="noopener">{{ video }}</a></p>

</div>

Expand Down
Expand Up @@ -17,6 +17,6 @@ The MIT License, http://opensource.org/licenses/MIT

<div class="ui 16:9 embed">{{ multiplayer.html(video)|raw }}</div>

<p><a href="{{ video|e('html_attr') }}" target="_blank">{{ video }}</a></p>
<p><a href="{{ video|e('html_attr') }}" target="_blank" rel="noopener">{{ video }}</a></p>

{% endif %}
Expand Up @@ -5,6 +5,6 @@ The MIT License, http://opensource.org/licenses/MIT

{{ partial('pjax_subnavbar') }}

<p>See <a href="https://github.com/defunkt/jquery-pjax" target="_blank">https://github.com/defunkt/jquery-pjax</a></p>
<p>See <a href="https://github.com/defunkt/jquery-pjax" target="_blank" rel="noopener">https://github.com/defunkt/jquery-pjax</a></p>

<p>Click on the links on the links on the sub-menu. The corresponding pages should load fast.</p>
Expand Up @@ -5,7 +5,7 @@ The MIT License, http://opensource.org/licenses/MIT


<p id="action_bar">
<a id="print" href="{{ http_build_url(constant('CURRENT_URL'), { 'query': http_build_query({ 'print': 1 }|array) }|array, constant('HTTP_URL_JOIN_QUERY')) }}" target="_blank" class="ui button"><i class="print icon"></i> {{ lang('ui_print') }}</a>
<a id="print" href="{{ http_build_url(constant('CURRENT_URL'), { 'query': http_build_query({ 'print': 1 }|array) }|array, constant('HTTP_URL_JOIN_QUERY')) }}" target="_blank" rel="noopener" class="ui button"><i class="print icon"></i> {{ lang('ui_print') }}</a>
</p>

<img src="{{ image_url('lib/ihover/1.jpg') }}" class="ui left floated image" />
Expand Down
Expand Up @@ -11,7 +11,7 @@

<p>
See the article
<a href="http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/" target="_blank">
<a href="http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/" target="_blank" rel="noopener">
http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/
</a>
</p>
Expand Down
Expand Up @@ -11,7 +11,7 @@

<p>
See the article
<a href="http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/" target="_blank">
<a href="http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/" target="_blank" rel="noopener">
http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/
</a>
</p>
Expand Down
4 changes: 2 additions & 2 deletions platform/application/modules/playground/views/rest/guzzle.php
Expand Up @@ -11,8 +11,8 @@

<p>
See
<a href="https://github.com/guzzle/guzzle" target="_blank">https://github.com/guzzle/guzzle</a>,
<a href="http://guzzlephp.org/" target="_blank">http://guzzlephp.org/</a>
<a href="https://github.com/guzzle/guzzle" target="_blank" rel="noopener">https://github.com/guzzle/guzzle</a>,
<a href="http://guzzlephp.org/" target="_blank" rel="noopener">http://guzzlephp.org/</a>
</p>

<h3>Code:</h3>
Expand Down
Expand Up @@ -11,8 +11,8 @@

<p>
See
<a href="https://github.com/php-http" target="_blank">https://github.com/php-http</a>,
<a href="http://httplug.io" target="_blank">http://httplug.io</a>
<a href="https://github.com/php-http" target="_blank" rel="noopener">https://github.com/php-http</a>,
<a href="http://httplug.io" target="_blank" rel="noopener">http://httplug.io</a>
</p>

<h3>Code:</h3>
Expand Down
Expand Up @@ -11,8 +11,8 @@

<p>
See
<a href="https://github.com/rmccue/Requests" target="_blank">https://github.com/rmccue/Requests</a>,
<a href="http://requests.ryanmccue.info" target="_blank">http://requests.ryanmccue.info</a>
<a href="https://github.com/rmccue/Requests" target="_blank" rel="noopener">https://github.com/rmccue/Requests</a>,
<a href="http://requests.ryanmccue.info" target="_blank" rel="noopener">http://requests.ryanmccue.info</a>
</p>

<h3>Code:</h3>
Expand Down
Expand Up @@ -10,7 +10,7 @@
?>

<p>
The article: <a href="http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/" target="_blank">http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/</a>
The article: <a href="http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/" target="_blank" rel="noopener">http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/</a>
</p>

<p>
Expand Down
4 changes: 2 additions & 2 deletions platform/application/modules/playground/views/slick.html.twig
Expand Up @@ -3,8 +3,8 @@

<p>
See
<a href="https://github.com/kenwheeler/slick" target="_blank">https://github.com/kenwheeler/slick</a>,
<a href="http://kenwheeler.github.io/slick/" target="_blank">http://kenwheeler.github.io/slick/</a>
<a href="https://github.com/kenwheeler/slick" target="_blank" rel="noopener">https://github.com/kenwheeler/slick</a>,
<a href="http://kenwheeler.github.io/slick/" target="_blank" rel="noopener">http://kenwheeler.github.io/slick/</a>
</p>

<div id="slideshow_test" class="slideshow">
Expand Down
Expand Up @@ -3,8 +3,8 @@

<p>
See
<a href="https://github.com/kenwheeler/slick" target="_blank">https://github.com/kenwheeler/slick</a>,
<a href="http://kenwheeler.github.io/slick/" target="_blank">http://kenwheeler.github.io/slick/</a>
<a href="https://github.com/kenwheeler/slick" target="_blank" rel="noopener">https://github.com/kenwheeler/slick</a>,
<a href="http://kenwheeler.github.io/slick/" target="_blank" rel="noopener">http://kenwheeler.github.io/slick/</a>
</p>

<div id="slideshow_test" class="slideshow">
Expand Down

0 comments on commit dff13b2

Please sign in to comment.