mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +09:00
Merge branch 'develop' into next
This commit is contained in:
commit
818897fed4
8 changed files with 31 additions and 13 deletions
|
|
@ -206,26 +206,33 @@
|
||||||
for(var i=0;i<item.length;i++) {
|
for(var i=0;i<item.length;i++) {
|
||||||
var url = item[i].url;
|
var url = item[i].url;
|
||||||
var str = item[i].str;
|
var str = item[i].str;
|
||||||
|
var classname = item[i]['class'];
|
||||||
var icon = item[i].icon;
|
var icon = item[i].icon;
|
||||||
var target = item[i].target;
|
var target = item[i].target;
|
||||||
|
|
||||||
|
var actmatch = url.match(/\bact=(\w+)/) || url.match(/\b((?:disp|proc)\w+)/);
|
||||||
|
var act = actmatch ? actmatch[1] : null;
|
||||||
|
var classText = 'class="' + (classname ? classname : (act ? (act + ' ') : ''));
|
||||||
var styleText = "";
|
var styleText = "";
|
||||||
var click_str = "";
|
var click_str = "";
|
||||||
/* if(icon) styleText = " style=\"background-image:url('"+icon+"')\" "; */
|
/* if(icon) styleText = " style=\"background-image:url('"+icon+"')\" "; */
|
||||||
switch(target) {
|
switch(target) {
|
||||||
case "popup" :
|
case "popup" :
|
||||||
click_str = 'onclick="popopen(this.href, \''+target+'\'); return false;"';
|
click_str = 'onclick="popopen(this.href, \''+target+'\'); return false;"';
|
||||||
|
classText += 'popup ';
|
||||||
break;
|
break;
|
||||||
case "javascript" :
|
case "javascript" :
|
||||||
click_str = 'onclick="'+url+'; return false; "';
|
click_str = 'onclick="'+url+'; return false; "';
|
||||||
|
classText += 'script ';
|
||||||
url='#';
|
url='#';
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
click_str = 'target="_blank"';
|
click_str = 'target="_blank"';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
classText = classText.trim() + '" ';
|
||||||
|
|
||||||
html += '<li '+styleText+'><a href="'+url+'" '+click_str+'>'+str+'</a></li> ';
|
html += '<li '+classText+styleText+'><a href="'+url+'" '+click_str+'>'+str+'</a></li> ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -737,7 +737,7 @@ class boardController extends board
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = getUrl('', 'mid', $mid, 'member_srl', $obj->member_srl);
|
$url = getUrl('', 'mid', $mid, 'member_srl', $obj->member_srl);
|
||||||
getController('member')->addMemberPopupMenu($url, 'cmd_view_own_document', '');
|
getController('member')->addMemberPopupMenu($url, 'cmd_view_own_document', '', 'self', 'board_own_document');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1218,7 +1218,17 @@ class boardView extends board
|
||||||
}
|
}
|
||||||
|
|
||||||
$document_srl = Context::get('document_srl');
|
$document_srl = Context::get('document_srl');
|
||||||
|
if(!$document_srl)
|
||||||
|
{
|
||||||
|
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||||
|
}
|
||||||
|
|
||||||
$updatelog = DocumentModel::getDocumentUpdateLog($document_srl);
|
$updatelog = DocumentModel::getDocumentUpdateLog($document_srl);
|
||||||
|
if(!$updatelog->toBool())
|
||||||
|
{
|
||||||
|
return $updatelog;
|
||||||
|
}
|
||||||
|
|
||||||
Context::set('total_count', $updatelog->page_navigation->total_count);
|
Context::set('total_count', $updatelog->page_navigation->total_count);
|
||||||
Context::set('total_page', $updatelog->page_navigation->total_page);
|
Context::set('total_page', $updatelog->page_navigation->total_page);
|
||||||
Context::set('page', $updatelog->page);
|
Context::set('page', $updatelog->page);
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
str = String(str);
|
str = String(str);
|
||||||
str = str.replace(/<!--(.*?)-->/gs, '');
|
str = str.replace(/<!--(.*?)-->/gs, '');
|
||||||
str = str.replace(/<\/?(\?xml|meta|link|font|span|style|script|noscript|frame|noframes|(?:st1|o):[a-z0-9]+)\b[^>]*?>/ig, '');
|
str = str.replace(/<\/?(\?xml|meta|link|font|span|style|script|noscript|frame|noframes|(?:st1|o):[a-z0-9]+)\b[^>]*?>/ig, '');
|
||||||
str = str.replace(/(id|class|style|on(?:[a-z0-9]+)|Mso(?:[a-z0-9]+))="[^"]*"/ig, '');
|
str = str.replace(/\b(id|class|style|on(?:[a-z0-9]+)|Mso(?:[a-z0-9]+))="[^"]*"/ig, '');
|
||||||
str = str.replace(/(<\/?)div(\W)/g, '$1p$2');
|
str = str.replace(/(<\/?)div(\W)/g, '$1p$2');
|
||||||
if (!str.match(/<\/?p>/)) {
|
if (!str.match(/<\/?p>/)) {
|
||||||
str = '<p>' + str + '</p>';
|
str = '<p>' + str + '</p>';
|
||||||
|
|
@ -78,7 +78,7 @@
|
||||||
// Set editor sequence and other info to the form.
|
// Set editor sequence and other info to the form.
|
||||||
insert_form[0].setAttribute('editor_sequence', editor_sequence);
|
insert_form[0].setAttribute('editor_sequence', editor_sequence);
|
||||||
editorRelKeys[editor_sequence] = {};
|
editorRelKeys[editor_sequence] = {};
|
||||||
editorRelKeys[editor_sequence].primary = insert_form.find("input[name='" + primary_key + "']");
|
editorRelKeys[editor_sequence].primary = insert_form.find("input[name='" + primary_key + "']").get(0);
|
||||||
editorRelKeys[editor_sequence].content = content_input;
|
editorRelKeys[editor_sequence].content = content_input;
|
||||||
editorRelKeys[editor_sequence].func = editorGetContent;
|
editorRelKeys[editor_sequence].func = editorGetContent;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@
|
||||||
<!--@endforeach-->
|
<!--@endforeach-->
|
||||||
</select>
|
</select>
|
||||||
<select name="comment_editor_colorset" class="editor_colorset_selector">
|
<select name="comment_editor_colorset" class="editor_colorset_selector">
|
||||||
<!--@foreach($editor_skin_list[$editor_config->editor_skin]->colorset ?: [] as $colorset)-->
|
<!--@foreach($editor_skin_list[$editor_config->comment_editor_skin]->colorset ?: [] as $colorset)-->
|
||||||
<option value="{$colorset->name}" selected="selected"|cond="$colorset->name === $editor_config->comment_editor_colorset">{$colorset->title}</option>
|
<option value="{$colorset->name}" selected="selected"|cond="$colorset->name === $editor_config->comment_editor_colorset">{$colorset->title}</option>
|
||||||
<!--@endforeach-->
|
<!--@endforeach-->
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -134,7 +134,7 @@
|
||||||
<!--@endforeach-->
|
<!--@endforeach-->
|
||||||
</select>
|
</select>
|
||||||
<select name="mobile_comment_editor_colorset" class="editor_colorset_selector">
|
<select name="mobile_comment_editor_colorset" class="editor_colorset_selector">
|
||||||
<!--@foreach($editor_skin_list[$editor_config->mobile_editor_skin]->colorset ?: [] as $colorset)-->
|
<!--@foreach($editor_skin_list[$editor_config->mobile_comment_editor_skin]->colorset ?: [] as $colorset)-->
|
||||||
<option value="{$colorset->name}" selected="selected"|cond="$colorset->name === $editor_config->mobile_comment_editor_colorset">{$colorset->title}</option>
|
<option value="{$colorset->name}" selected="selected"|cond="$colorset->name === $editor_config->mobile_comment_editor_colorset">{$colorset->title}</option>
|
||||||
<!--@endforeach-->
|
<!--@endforeach-->
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
<!--@endforeach-->
|
<!--@endforeach-->
|
||||||
</select>
|
</select>
|
||||||
<select name="comment_editor_colorset" class="editor_colorset_selector">
|
<select name="comment_editor_colorset" class="editor_colorset_selector">
|
||||||
<!--@foreach($editor_skin_list[$editor_config->editor_skin]->colorset ?: [] as $colorset)-->
|
<!--@foreach($editor_skin_list[$editor_config->comment_editor_skin]->colorset ?: [] as $colorset)-->
|
||||||
<option value="{$colorset->name}" selected="selected"|cond="$colorset->name === $editor_config->comment_editor_colorset">{$colorset->title}</option>
|
<option value="{$colorset->name}" selected="selected"|cond="$colorset->name === $editor_config->comment_editor_colorset">{$colorset->title}</option>
|
||||||
<!--@endforeach-->
|
<!--@endforeach-->
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -117,7 +117,7 @@
|
||||||
<!--@endforeach-->
|
<!--@endforeach-->
|
||||||
</select>
|
</select>
|
||||||
<select name="mobile_comment_editor_colorset" class="editor_colorset_selector">
|
<select name="mobile_comment_editor_colorset" class="editor_colorset_selector">
|
||||||
<!--@foreach($editor_skin_list[$editor_config->mobile_editor_skin]->colorset ?: [] as $colorset)-->
|
<!--@foreach($editor_skin_list[$editor_config->mobile_comment_editor_skin]->colorset ?: [] as $colorset)-->
|
||||||
<option value="{$colorset->name}" selected="selected"|cond="$colorset->name === $editor_config->mobile_comment_editor_colorset">{$colorset->title}</option>
|
<option value="{$colorset->name}" selected="selected"|cond="$colorset->name === $editor_config->mobile_comment_editor_colorset">{$colorset->title}</option>
|
||||||
<!--@endforeach-->
|
<!--@endforeach-->
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -2566,7 +2566,7 @@ class memberController extends member
|
||||||
/**
|
/**
|
||||||
* Nickname and click Log In to add a pop-up menu that appears when the method
|
* Nickname and click Log In to add a pop-up menu that appears when the method
|
||||||
*/
|
*/
|
||||||
function addMemberPopupMenu($url, $str, $icon = '', $target = 'self')
|
function addMemberPopupMenu($url, $str, $icon = '', $target = 'self', $class = '')
|
||||||
{
|
{
|
||||||
$member_popup_menu_list = Context::get('member_popup_menu_list');
|
$member_popup_menu_list = Context::get('member_popup_menu_list');
|
||||||
if(!is_array($member_popup_menu_list)) $member_popup_menu_list = array();
|
if(!is_array($member_popup_menu_list)) $member_popup_menu_list = array();
|
||||||
|
|
@ -2574,7 +2574,8 @@ class memberController extends member
|
||||||
$obj = new stdClass;
|
$obj = new stdClass;
|
||||||
$obj->url = $url;
|
$obj->url = $url;
|
||||||
$obj->str = $str;
|
$obj->str = $str;
|
||||||
$obj->icon = $icon;
|
$obj->class = $class;
|
||||||
|
$obj->icon = $icon ?: null;
|
||||||
$obj->target = $target;
|
$obj->target = $target;
|
||||||
$member_popup_menu_list[] = $obj;
|
$member_popup_menu_list[] = $obj;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -212,13 +212,13 @@ class memberModel extends member
|
||||||
// View homepage info
|
// View homepage info
|
||||||
if($member_info->homepage && $homepage_is_public)
|
if($member_info->homepage && $homepage_is_public)
|
||||||
{
|
{
|
||||||
$oMemberController->addMemberPopupMenu(escape($member_info->homepage, false), 'homepage', '', 'blank');
|
$oMemberController->addMemberPopupMenu(escape($member_info->homepage, false), 'homepage', '', 'blank', 'homepage');
|
||||||
}
|
}
|
||||||
|
|
||||||
// View blog info
|
// View blog info
|
||||||
if($member_info->blog && $blog_is_public)
|
if($member_info->blog && $blog_is_public)
|
||||||
{
|
{
|
||||||
$oMemberController->addMemberPopupMenu(escape($member_info->blog, false), 'blog', '', 'blank');
|
$oMemberController->addMemberPopupMenu(escape($member_info->blog, false), 'blog', '', 'blank', 'blog');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Call a trigger (after)
|
// Call a trigger (after)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue