Youtube type added
This commit is contained in:
parent
028d58e87b
commit
042b9b9576
3 changed files with 5 additions and 5 deletions
|
@ -717,7 +717,7 @@ $css=' * { margin: 0; padding: 0; }
|
|||
#error { position: fixed; top: 0; left: 0; right: 0; padding: 1%; background: #fff; border-bottom: 2px solid red; color: darkred; }
|
||||
';
|
||||
|
||||
if($site_type == 'generic') // custom CSS for generic
|
||||
if($site_type == 'generic' || $site_type == 'youtube') // custom CSS for generic
|
||||
{
|
||||
$css = $css.'.header h1 a { color: #333;font-size:40pt;text-shadow: #ccc 0px 5px 5px;text-transform:uppercase; }
|
||||
.article .title h2 { margin: 0; color:#333; text-shadow: 1px 1px 1px #fff; }
|
||||
|
|
|
@ -184,9 +184,9 @@ function updateType($siteurl) {
|
|||
elseif( strpos( $siteurl, 'shaarli' ) !== FALSE ) {
|
||||
return array('type' => 'shaarli', 'name' => 'shaarli');
|
||||
}
|
||||
//elseif( strpos( $siteurl, 'youtube.com' ) !== FALSE ) {
|
||||
// return array('type' => 'youtube', 'name' => 'youtube');
|
||||
//}
|
||||
elseif( strpos( $siteurl, 'youtube.com' ) !== FALSE ) {
|
||||
return array('type' => 'youtube', 'name' => '');
|
||||
}
|
||||
else
|
||||
return array('type' => 'generic', 'name' => '');
|
||||
}
|
||||
|
|
|
@ -551,7 +551,7 @@ if( !empty($_POST['socialinstance']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLO
|
|||
$socialaccount = get_title_from_feed($rssurl);
|
||||
}
|
||||
elseif($socialinstance === 'youtube') {
|
||||
$sitetype = 'generic';
|
||||
$sitetype = 'youtube';
|
||||
$siteurl = 'https://www.youtube.com/user/'.$socialaccount;
|
||||
$rssurl = 'https://gdata.youtube.com/feeds/base/users/'.$socialaccount.'/uploads?alt=atom&orderby=published';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue