Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
websites
Manage
Activity
Members
Labels
Plan
Issues
25
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN organization
websites
Commits
538e1638
Commit
538e1638
authored
8 years ago
by
Christoph Miebach
Browse files
Options
Downloads
Patches
Plain Diff
tweets are mostly english, but not always
parent
d6227c34
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
www.videolan.org/index.php
+3
-1
3 additions, 1 deletion
www.videolan.org/index.php
with
3 additions
and
1 deletion
www.videolan.org/index.php
+
3
−
1
View file @
538e1638
...
...
@@ -259,6 +259,7 @@ include($_SERVER["DOCUMENT_ROOT"] . "/include/magpierss/rss_fetch.inc");
</a>
</span>
</h1>
<span
lang=
""
>
<!-- tweets are often english, but some are french and we even retweeted arabic or similar, so the empty lang is intentional -->
<?php
$rss
=
fetch_rss
(
"http://www.videolan.org/_twitter/userrss.php?xrt=0&xrp=1&c=40"
);
$i
=
0
;
...
...
@@ -266,7 +267,7 @@ include($_SERVER["DOCUMENT_ROOT"] . "/include/magpierss/rss_fetch.inc");
$entries_per_column
=
5
;
$columns
=
1
;
foreach
(
$rss
->
items
as
$item
)
{
echo
'<p style="border-bottom: 1px dashed #CCC;padding-bottom:5px;margin-bottom:5px;
direction:ltr;
text-align: left;">'
;
echo
'<p
dir='
ltr
'
style="border-bottom: 1px dashed #CCC;padding-bottom:5px;margin-bottom:5px; text-align: left;">'
;
echo
preg_replace
(
array
(
'^(http://\S+)^is'
,
'^(https://\S+)^is'
),
'<a href="$1">$1</a>'
,
str_replace
(
"videolan:"
,
"<b>"
.
date
(
"Y-m-d h:i"
,
strtotime
(
$item
[
'pubdate'
]))
.
"</b>"
,
$item
[
'title'
]));
echo
"</p>"
;
$i
++
;
...
...
@@ -274,6 +275,7 @@ include($_SERVER["DOCUMENT_ROOT"] . "/include/magpierss/rss_fetch.inc");
if
(
$i
%
$entries_per_column
==
0
)
echo
"</td><td>"
;
}
?>
</span>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment