allow to hide readmore button with param : readmore:false
This commit is contained in:
parent
a7b5fb7e36
commit
b634ce33bc
|
|
@ -413,10 +413,12 @@ var tarteaucitron = {
|
|||
html += ' <div class="tarteaucitronName">';
|
||||
html += ' <b>' + service.name + '</b><br/>';
|
||||
html += ' <span id="tacCL' + service.key + '" class="tarteaucitronListCookies"></span><br/>';
|
||||
html += ' <a href="https://opt-out.ferank.eu/service/' + service.key + '/" target="_blank" rel="noopener">';
|
||||
html += ' ' + tarteaucitron.lang.more;
|
||||
html += ' </a>';
|
||||
html += ' - ';
|
||||
if(service.readmore !== undefined && service.readmore === false) {
|
||||
html += ' <a href="https://opt-out.ferank.eu/service/' + service.key + '/" target="_blank" rel="noopener">';
|
||||
html += ' ' + tarteaucitron.lang.more;
|
||||
html += ' </a>';
|
||||
html += ' - ';
|
||||
}
|
||||
html += ' <a href="' + service.uri + '" target="_blank" rel="noopener">';
|
||||
html += ' ' + tarteaucitron.lang.source;
|
||||
html += ' </a>';
|
||||
|
|
|
|||
Loading…
Reference in New Issue