Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: bug #329 - compress the plugin list on the friendica info page bug #346 - add oembed maxwidth to oembed request * master:
This commit is contained in:
commit
5bd4f62210
2 changed files with 15 additions and 9 deletions
|
@ -38,7 +38,8 @@ function oembed_fetch_url($embedurl){
|
|||
$entries = $xpath->query("//link[@type='application/json+oembed']");
|
||||
foreach($entries as $e){
|
||||
$href = $e->getAttributeNode("href")->nodeValue;
|
||||
$txt = fetch_url($href);
|
||||
$txt = fetch_url($href . '&maxwidth=425');
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -46,7 +47,7 @@ function oembed_fetch_url($embedurl){
|
|||
|
||||
if ($txt==false || $txt==""){
|
||||
// try oohembed service
|
||||
$ourl = "http://oohembed.com/oohembed/?url=".urlencode($embedurl);
|
||||
$ourl = "http://oohembed.com/oohembed/?url=".urlencode($embedurl).'&maxwidth=425';
|
||||
$txt = fetch_url($ourl);
|
||||
}
|
||||
|
||||
|
|
|
@ -51,15 +51,20 @@ function friendica_content(&$a) {
|
|||
$o .= '<p></p>';
|
||||
|
||||
if(count($a->plugins)) {
|
||||
$o .= '<p>' . t('Installed plugins/addons/apps') . '</p>';
|
||||
$o .= '<ul>';
|
||||
foreach($a->plugins as $p)
|
||||
if(strlen($p))
|
||||
$o .= '<li>' . $p . '</li>';
|
||||
$o .= '</ul>';
|
||||
$o .= '<p>' . t('Installed plugins/addons/apps:') . '</p>';
|
||||
$sorted = $a->plugins;
|
||||
$s = '';
|
||||
sort($sorted);
|
||||
foreach($sorted as $p) {
|
||||
if(strlen($p)) {
|
||||
if(strlen($s)) $s .= ', ';
|
||||
$s .= $p;
|
||||
}
|
||||
}
|
||||
$o .= '<div style="margin-left: 25px; margin-right: 25px;">' . $s . '</div>';
|
||||
}
|
||||
else
|
||||
$o .= '<p>' . t('No installed plugins/addons/apps');
|
||||
$o .= '<p>' . t('No installed plugins/addons/apps') . '</p>';
|
||||
|
||||
call_hooks('about_hook', $o);
|
||||
|
||||
|
|
Loading…
Reference in a new issue