diff --git a/config.php-dist b/config.php-dist index 85e682cca..a7ab86283 100644 --- a/config.php-dist +++ b/config.php-dist @@ -171,6 +171,9 @@ define('SPHINX_INDEX', 'ttrss'); // Index name in Sphinx configuration + define('ENABLE_TWEET_BUTTON', false); + // Enable 'tweet this' button for articles + define('CONFIG_VERSION', 20); // Expected config version. Please update this option in config.php // if necessary (after migrating all new options from this file). diff --git a/functions.php b/functions.php index 1db2d2738..9133c482a 100644 --- a/functions.php +++ b/functions.php @@ -4736,6 +4736,14 @@ print_article_enclosures($link, $id, $always_display_enclosures, $article_content); + $short_title = truncate_string(strip_tags($line['title']), 90); + + print "Tweet"; + print ""; print ""; @@ -5160,7 +5168,8 @@ onclick=\"return cdmClicked(event, $id);\" class=\"titleWrap$hlc_suffix\"> ".$line["title"]. + target=\"_blank\" href=\"". + htmlspecialchars($line["link"])."\">".$line["title"]. " $entry_author"; print $labels_str; @@ -5251,6 +5260,15 @@ print_article_enclosures($link, $id, $always_display_enclosures, $article_content); + $short_title = truncate_string( + strip_tags($line['title']), 90); + + print "Tweet"; + print ""; print "