New style for shared links. Preparation for changes in some addons
This commit is contained in:
parent
3b4a20f987
commit
bae844e367
|
@ -23,7 +23,7 @@ function cleancss($input) {
|
||||||
if (($char >= "a") and ($char <= "z"))
|
if (($char >= "a") and ($char <= "z"))
|
||||||
$cleaned .= $char;
|
$cleaned .= $char;
|
||||||
|
|
||||||
if (!(strpos(" #;:0123456789", $char) === false))
|
if (!(strpos(" #;:0123456789-_", $char) === false))
|
||||||
$cleaned .= $char;
|
$cleaned .= $char;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,19 @@ function parseurl_getsiteinfo($url, $no_guessing = false) {
|
||||||
return($siteinfo);
|
return($siteinfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
require_once("include/oembed.php");
|
||||||
|
|
||||||
|
$oembed_data = oembed_fetch_url($url);
|
||||||
|
|
||||||
|
if ($oembed_data->type == "link") {
|
||||||
|
if (isset($oembed_data->title))
|
||||||
|
$siteinfo["title"] = $oembed_data->title;
|
||||||
|
if (isset($oembed_data->description))
|
||||||
|
$siteinfo["text"] = $oembed_data->description;
|
||||||
|
if (isset($oembed_data->thumbnail_url))
|
||||||
|
$siteinfo["image"] = $oembed_data->thumbnail_url;
|
||||||
|
}
|
||||||
|
|
||||||
// Fetch the first mentioned charset. Can be in body or header
|
// Fetch the first mentioned charset. Can be in body or header
|
||||||
if (preg_match('/charset=(.*?)['."'".'"\s\n]/', $header, $matches))
|
if (preg_match('/charset=(.*?)['."'".'"\s\n]/', $header, $matches))
|
||||||
$charset = trim(array_pop($matches));
|
$charset = trim(array_pop($matches));
|
||||||
|
|
|
@ -479,6 +479,11 @@ div.jGrowl div.info {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
padding-left: 58px;
|
padding-left: 58px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.jGrowl div.jGrowl-notification {
|
||||||
|
margin-top: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
/* header */
|
/* header */
|
||||||
header {
|
header {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
@ -1161,6 +1166,21 @@ border-bottom: 1px solid #D2D2D2;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wall-item-container .wall-item-content .type-link img,
|
||||||
|
.type-link img {
|
||||||
|
max-width: 160px;
|
||||||
|
max-height: 160px;
|
||||||
|
float: left;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
.type-link blockquote {
|
||||||
|
margin-left: 160px;
|
||||||
|
max-height: 160px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.type-link .oembed {
|
||||||
|
}
|
||||||
|
|
||||||
.wall-item-container .wall-item-content {
|
.wall-item-container .wall-item-content {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
max-width: 660px;
|
max-width: 660px;
|
||||||
|
@ -1659,22 +1679,27 @@ border-bottom: 1px solid #D2D2D2;
|
||||||
#profile-link-wrapper {
|
#profile-link-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
#profile-video-wrapper {
|
#profile-video-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
#profile-audio-wrapper {
|
#profile-audio-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
#profile-location-wrapper {
|
#profile-location-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
#profile-nolocation-wrapper {
|
#profile-nolocation-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
#jot-perms-icon {
|
#jot-perms-icon {
|
||||||
float: right;
|
float: right;
|
||||||
|
|
Loading…
Reference in a new issue