mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-31 13:55:07 +03:00
[TwitterV2Bridge] noexternallink option to remove external stuff from the content_html output (#3041)
* [TwitterV2Bridge] noexternallink option to remove external stuff from the content_html output * Update bridges/TwitterV2Bridge.php * Update bridges/TwitterV2Bridge.php
This commit is contained in:
parent
a12152e8a5
commit
f660c16ca6
1 changed files with 6 additions and 1 deletions
|
@ -70,6 +70,11 @@ class TwitterV2Bridge extends BridgeAbstract
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'title' => 'Activate to display original sized images (no thumbnails)'
|
'title' => 'Activate to display original sized images (no thumbnails)'
|
||||||
],
|
],
|
||||||
|
'noexternallink' => [
|
||||||
|
'name' => 'Hide external link from content html',
|
||||||
|
'type' => 'checkbox',
|
||||||
|
'title' => 'Activate to hide the links from the content html field'
|
||||||
|
],
|
||||||
'idastitle' => [
|
'idastitle' => [
|
||||||
'name' => 'Use tweet id as title',
|
'name' => 'Use tweet id as title',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
|
@ -556,7 +561,7 @@ QUOTE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add External Link HTML, if relevant
|
// Add External Link HTML, if relevant
|
||||||
if (isset($extURL)) {
|
if (isset($extURL) && !$this->getInput('noexternallink')) {
|
||||||
Debug::log('Adding HTML for external link');
|
Debug::log('Adding HTML for external link');
|
||||||
$ext_html = <<<EXTERNAL
|
$ext_html = <<<EXTERNAL
|
||||||
<div style="display: table; border-style: solid; border-width: 1px; border-radius: 5px; padding: 5px;">
|
<div style="display: table; border-style: solid; border-width: 1px; border-radius: 5px; padding: 5px;">
|
||||||
|
|
Loading…
Add table
Reference in a new issue