Merge https://github.com/redmatrix/redmatrix into pending_merge
This commit is contained in:
commit
9f35971860
@ -1233,7 +1233,8 @@ function status_editor($a, $x, $popup = false) {
|
|||||||
'$encrypt' => t('Encrypt text'),
|
'$encrypt' => t('Encrypt text'),
|
||||||
'$cipher' => $cipher,
|
'$cipher' => $cipher,
|
||||||
'$expiryModalOK' => t('OK'),
|
'$expiryModalOK' => t('OK'),
|
||||||
'$expiryModalCANCEL' => t('Cancel')
|
'$expiryModalCANCEL' => t('Cancel'),
|
||||||
|
'$expanded' => ((x($x, 'expanded')) ? $x['expanded'] : false),
|
||||||
));
|
));
|
||||||
|
|
||||||
if ($popup === true) {
|
if ($popup === true) {
|
||||||
|
@ -135,12 +135,7 @@ function editwebpage_content(&$a) {
|
|||||||
$layoutselect = '<input type="hidden" name="layout_mid" value="' . $layout . '" />';
|
$layoutselect = '<input type="hidden" name="layout_mid" value="' . $layout . '" />';
|
||||||
else
|
else
|
||||||
$layoutselect = layout_select($itm[0]['uid'],$itm[0]['layout_mid']);
|
$layoutselect = layout_select($itm[0]['uid'],$itm[0]['layout_mid']);
|
||||||
|
|
||||||
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
|
|
||||||
'$title' => t('Edit Webpage')
|
|
||||||
));
|
|
||||||
|
|
||||||
|
|
||||||
$a->page['htmlhead'] .= replace_macros(get_markup_template('jot-header.tpl'), array(
|
$a->page['htmlhead'] .= replace_macros(get_markup_template('jot-header.tpl'), array(
|
||||||
'$baseurl' => $a->get_baseurl(),
|
'$baseurl' => $a->get_baseurl(),
|
||||||
'$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),
|
'$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),
|
||||||
@ -150,7 +145,6 @@ function editwebpage_content(&$a) {
|
|||||||
'$confirmdelete' => t('Delete webpage?')
|
'$confirmdelete' => t('Delete webpage?')
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
$tpl = get_markup_template("jot.tpl");
|
$tpl = get_markup_template("jot.tpl");
|
||||||
|
|
||||||
$jotplugins = '';
|
$jotplugins = '';
|
||||||
@ -164,8 +158,9 @@ function editwebpage_content(&$a) {
|
|||||||
|
|
||||||
$rp = 'webpages/' . $which;
|
$rp = 'webpages/' . $which;
|
||||||
|
|
||||||
logger('canwrite: ' . (perm_is_allowed($owner, get_observer_hash(), 'post_photos') || perm_is_allowed($owner, get_observer_hash(), 'write_storage')));
|
logger('canwrite: ' . (perm_is_allowed($owner, get_observer_hash(), 'post_photos') || perm_is_allowed($owner, get_observer_hash(), 'write_storage')));
|
||||||
$o .= replace_macros($tpl,array(
|
|
||||||
|
$editor = replace_macros($tpl,array(
|
||||||
'$return_path' => $rp,
|
'$return_path' => $rp,
|
||||||
'$webpage' => ITEM_WEBPAGE,
|
'$webpage' => ITEM_WEBPAGE,
|
||||||
'$placeholdpagetitle' => t('Page link title'),
|
'$placeholdpagetitle' => t('Page link title'),
|
||||||
@ -218,8 +213,12 @@ logger('canwrite: ' . (perm_is_allowed($owner, get_observer_hash(), 'post_photos
|
|||||||
|
|
||||||
));
|
));
|
||||||
|
|
||||||
if(($itm[0]['author_xchan'] === $ob_hash) || ($itm[0]['owner_xchan'] === $ob_hash))
|
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
|
||||||
$o .= '<br /><br /><a class="page-delete-link" href="item/drop/' . $itm[0]['id'] . '" >' . t('Delete Webpage') . '</a><br />';
|
'$title' => t('Edit Webpage'),
|
||||||
|
'$delete' => ((($itm[0]['author_xchan'] === $ob_hash) || ($itm[0]['owner_xchan'] === $ob_hash)) ? t('Delete') : false),
|
||||||
|
'$editor' => $editor,
|
||||||
|
'$id' => $itm[0]['id']
|
||||||
|
));
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
|
@ -101,10 +101,6 @@ function rpost_content(&$a) {
|
|||||||
'deny_gid' => $channel['channel_deny_gid']
|
'deny_gid' => $channel['channel_deny_gid']
|
||||||
);
|
);
|
||||||
|
|
||||||
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
|
|
||||||
'$title' => t('Edit post')
|
|
||||||
));
|
|
||||||
|
|
||||||
if($_REQUEST['url']) {
|
if($_REQUEST['url']) {
|
||||||
$x = z_fetch_url(z_root() . '/parse_url?f=&url=' . urlencode($_REQUEST['url']));
|
$x = z_fetch_url(z_root() . '/parse_url?f=&url=' . urlencode($_REQUEST['url']));
|
||||||
if($x['success'])
|
if($x['success'])
|
||||||
@ -129,8 +125,12 @@ function rpost_content(&$a) {
|
|||||||
'return_path' => 'rpost/return'
|
'return_path' => 'rpost/return'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$editor = status_editor($a,$x);
|
||||||
|
|
||||||
$o .= status_editor($a,$x);
|
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
|
||||||
|
'$title' => t('Edit post'),
|
||||||
|
'$editor' => $editor
|
||||||
|
));
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
|
@ -115,6 +115,7 @@ function webpages_content(&$a) {
|
|||||||
'profile_uid' => intval($owner),
|
'profile_uid' => intval($owner),
|
||||||
'mimetype' => $mimetype,
|
'mimetype' => $mimetype,
|
||||||
'layout' => $layout,
|
'layout' => $layout,
|
||||||
|
'expanded' => true
|
||||||
);
|
);
|
||||||
|
|
||||||
if($_REQUEST['title'])
|
if($_REQUEST['title'])
|
||||||
|
@ -30,12 +30,3 @@
|
|||||||
.webpage-list-tool {
|
.webpage-list-tool {
|
||||||
padding: 7px 10px;
|
padding: 7px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this forces collapsed jot to appear expanded */
|
|
||||||
.jothidden {
|
|
||||||
display: block !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#profile-jot-text {
|
|
||||||
height: 200px;
|
|
||||||
}
|
|
||||||
|
@ -1586,11 +1586,14 @@ img.mail-list-sender-photo {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.jothidden >input, .jothidden >input {
|
.jothidden > input {
|
||||||
border: 1px solid #fff;
|
border: 1px solid $bgcolour;
|
||||||
|
background-color: $bgcolour;
|
||||||
}
|
}
|
||||||
.jothidden >input:hover, .jothidden >input:focus {
|
.jothidden > input:hover,
|
||||||
|
.jothidden > input:focus {
|
||||||
border: 1px solid #cccccc;
|
border: 1px solid #cccccc;
|
||||||
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#profile-jot-text {
|
#profile-jot-text {
|
||||||
@ -1723,7 +1726,8 @@ img.mail-list-sender-photo {
|
|||||||
font-size: 0.833em;
|
font-size: 0.833em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wall-item-content {
|
.wall-item-content,
|
||||||
|
.page-body {
|
||||||
font-size: $font_size;
|
font-size: $font_size;
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
@ -2210,8 +2214,8 @@ aside .nav > li > a:hover, aside .nav > li > a:focus {
|
|||||||
|
|
||||||
/* Modified original CSS to match input in Redbasic */
|
/* Modified original CSS to match input in Redbasic */
|
||||||
.jothidden .bootstrap-tagsinput {
|
.jothidden .bootstrap-tagsinput {
|
||||||
border-color:#fff;
|
border-color: $bgcolour;
|
||||||
background-color: #fff;
|
background-color: $bgcolour;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-radius: $radiuspx;
|
border-radius: $radiuspx;
|
||||||
@ -2225,7 +2229,8 @@ aside .nav > li > a:hover, aside .nav > li > a:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.jothidden .bootstrap-tagsinput:hover, .jothidden .bootstrap-tagsinput:focus {
|
.jothidden .bootstrap-tagsinput:hover, .jothidden .bootstrap-tagsinput:focus {
|
||||||
border: 1px solid #cccccc;
|
border: 1px solid #ccc;
|
||||||
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Abusing theme-green is less work than makeing a new new one */
|
/* Abusing theme-green is less work than makeing a new new one */
|
||||||
|
@ -1 +1,12 @@
|
|||||||
<h2>{{$title}}</h2>
|
<div class="section-title-wrapper">
|
||||||
|
{{if $delete}}
|
||||||
|
<div class="pull-right">
|
||||||
|
<a href="item/drop/{{$id}}" id="delete-btn" class="btn btn-xs btn-danger" onclick="return confirmDelete();"><i class="icon-trash"></i> {{$delete}}</a>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
<h2>{{$title}}</h2>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
<div id="webpage-editor" class="section-content-tools-wrapper">
|
||||||
|
{{$editor}}
|
||||||
|
</div>
|
||||||
|
@ -108,8 +108,6 @@ function enableOnUser(){
|
|||||||
$("#profile-jot-text").focus(enableOnUser);
|
$("#profile-jot-text").focus(enableOnUser);
|
||||||
$("#profile-jot-text").click(enableOnUser);
|
$("#profile-jot-text").click(enableOnUser);
|
||||||
|
|
||||||
if($("#jot-attachment").val()) enableOnUser();
|
|
||||||
|
|
||||||
var upload_title = $('#wall-image-upload').attr('title');
|
var upload_title = $('#wall-image-upload').attr('title');
|
||||||
var attach_title = $('#wall-file-upload').attr('title');
|
var attach_title = $('#wall-file-upload').attr('title');
|
||||||
try {
|
try {
|
||||||
|
@ -176,20 +176,7 @@
|
|||||||
</div><!-- /.modal-content -->
|
</div><!-- /.modal-content -->
|
||||||
</div><!-- /.modal-dialog -->
|
</div><!-- /.modal-dialog -->
|
||||||
</div><!-- /.modal -->
|
</div><!-- /.modal -->
|
||||||
<script type="text/javascript">
|
|
||||||
$(function() {
|
|
||||||
$('#datetimepicker1').datetimepicker({
|
|
||||||
language: 'us',
|
|
||||||
icons: {
|
|
||||||
time: "icon-time",
|
|
||||||
date: "icon-calendar",
|
|
||||||
up: "icon-arrow-up",
|
|
||||||
down: "icon-arrow-down"
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
{{if $content}}
|
{{if $content || $attachment || $expanded}}
|
||||||
<script>initEditor();</script>
|
<script>initEditor();</script>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
{{if $editor}}
|
{{if $editor}}
|
||||||
<div id="webpage-editor" class="section-content-tools-wrapper form-group">
|
<div id="webpage-editor" class="section-content-tools-wrapper">
|
||||||
{{$editor}}
|
{{$editor}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
Reference in New Issue
Block a user