Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F785284
advanced
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Feb 12, 8:50 AM
Size
20 KB
Mime Type
text/x-diff
Expires
Fri, Feb 14, 8:50 AM (1 d, 4 h)
Engine
blob
Format
Raw Data
Handle
564326
Attached To
rTADV Themes.Advanced
advanced
View Options
Index: platform/designs/default_design.des.tpl
===================================================================
--- platform/designs/default_design.des.tpl (revision 11609)
+++ platform/designs/default_design.des.tpl (revision 11610)
@@ -1,118 +1,121 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<inp2:m_CheckSSL/>
<inp2:m_include template="platform/elements/side_boxes.elm" strip_nl="1"/>
<inp2:m_include template="platform/elements/content_boxes.elm" strip_nl="1"/>
<inp2:m_include template="platform/elements/forms.elm" strip_nl="1"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<inp2:m_DefineElement name="cms_page_title">
<inp2:st_PageInfo type="htmlhead_title"/>
</inp2:m_DefineElement>
<title><inp2:m_GetConfig name="Site_Name"/> :: <inp2:m_RenderElement name="page_title" default_element="cms_page_title" no_editing="1"/></title>
<!--## Include module specific HEADER (META INFORMATION inside) template ##-->
<inp2:m_ModuleInclude template="elements/html_head.elm" in-portal_template="platform/elements/html_head.elm"/>
+ <inp2:st_EditingScripts/>
+
<inp2:m_Include template="platform/template_manager/html_head"/>
<!--## /Include module specific HEADER template ##-->
</head>
<body>
- <inp2:st_EditPage/>
- <div align="left">
- <div align="left" style="width:100%">
- <table class="fullwidth">
- <tr>
- <td>
- <inp2:m_include template="platform/elements/header.elm"/>
- </td>
- </tr>
- <tr>
- <td>
- <inp2:m_include template="platform/elements/menu.elm"/>
- </td>
- </tr>
- </table>
-
- <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt=""/><br />
- <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" alt=""/><br />
- <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt=""/><br />
-
- <table class="fullwidth">
- <tr>
- <!-- SIDEBAR -->
- <td style="width: 200px;" valign="top">
- <div class="groupWrapper">
- <inp2:m_DefineElement name="cms_sidebar">
- <div class="movable-element">
- <inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
- </div>
- <div class="movable-element">
- <inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
- </div>
- </inp2:m_DefineElement>
-
- <inp2:m_RenderElement name="sidebar" default_element="cms_sidebar" layout_view="1"/>
- </div>
- </td>
- <!-- /SIDEBAR -->
-
- <!-- SEPARATOR -->
- <td width="3" class="vertical-separator" style="width: 3px;">
- <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="3" height="1" alt=""/><br />
- </td>
- <!-- /SEPARATOR -->
-
- <!-- CONTENT -->
- <td style="width: auto;" valign="top">
- <div class="groupWrapper">
- <inp2:m_DefineElement name="cms_content">
- <div class="movable-element">
- <inp2:m_include template="platform/elements/navigation_bar.elm"/>
- </div>
-
- <div class="movable-element">
- <inp2:m_RenderElement design="content_box">
- <inp2:m_Capture to_var="header">
- <inp2:st_PageInfo type="title"/>
- </inp2:m_Capture>
-
- <inp2:st_ContentBlock num="1"/>
- </inp2:m_RenderElement>
- </div>
- </inp2:m_DefineElement>
-
- <inp2:m_RenderElement name="content" default_element="cms_content" layout_view="1"/>
- </div>
- <br />
- </td>
- <!-- /CONTENT -->
-
- <!--## REMOVE THIS LINE TO UNCOMMENT
- <!-- SEPARATOR -->
- <td width="3" class="vertical-separator">
- <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="3" height="1" alt=""/><br />
- </td>
- <!-- /SEPARATOR -->
-
- <!-- RIGHT-SIDEBAR WITH BANNER -->
- <td style="width: 200px;" valign="top">
- <inp2:m_include template="platform/elements/banners/banner_right.elm"/>
- </td>
- <!-- /RIGHT-SIDEBAR WITH BANNER -->
- REMOVE THIS LINE TO UNCOMMENT ##-->
- </tr>
- </table>
-
- <table class="fullwidth">
- <tr>
- <td >
- <inp2:m_include template="platform/elements/footer.elm"/>
- </td>
- </tr>
- </table>
- </div>
+ <inp2:st_EditPage mode="start"/>
+ <div align="left">
+ <div align="left" style="width:100%">
+ <table class="fullwidth">
+ <tr>
+ <td>
+ <inp2:m_include template="platform/elements/header.elm"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <inp2:m_include template="platform/elements/menu.elm"/>
+ </td>
+ </tr>
+ </table>
+
+ <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt=""/><br />
+ <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" alt=""/><br />
+ <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt=""/><br />
+
+ <table class="fullwidth">
+ <tr>
+ <!-- SIDEBAR -->
+ <td style="width: 200px;" valign="top">
+ <div class="groupWrapper">
+ <inp2:m_DefineElement name="cms_sidebar">
+ <div class="movable-element">
+ <inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
+ </div>
+ <div class="movable-element">
+ <inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
+ </div>
+ </inp2:m_DefineElement>
+
+ <inp2:m_RenderElement name="sidebar" default_element="cms_sidebar" layout_view="1"/>
+ </div>
+ </td>
+ <!-- /SIDEBAR -->
+
+ <!-- SEPARATOR -->
+ <td width="3" class="vertical-separator" style="width: 3px;">
+ <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="3" height="1" alt=""/><br />
+ </td>
+ <!-- /SEPARATOR -->
+
+ <!-- CONTENT -->
+ <td style="width: auto;" valign="top">
+ <div class="groupWrapper">
+ <inp2:m_DefineElement name="cms_content">
+ <div class="movable-element">
+ <inp2:m_include template="platform/elements/navigation_bar.elm"/>
+ </div>
+
+ <div class="movable-element">
+ <inp2:m_RenderElement design="content_box">
+ <inp2:m_Capture to_var="header">
+ <inp2:st_PageInfo type="title"/>
+ </inp2:m_Capture>
+
+ <inp2:st_ContentBlock num="1"/>
+ </inp2:m_RenderElement>
+ </div>
+ </inp2:m_DefineElement>
+
+ <inp2:m_RenderElement name="content" default_element="cms_content" layout_view="1"/>
+ </div>
+ <br />
+ </td>
+ <!-- /CONTENT -->
+
+ <!--## REMOVE THIS LINE TO UNCOMMENT
+ <!-- SEPARATOR -->
+ <td width="3" class="vertical-separator">
+ <img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="3" height="1" alt=""/><br />
+ </td>
+ <!-- /SEPARATOR -->
+
+ <!-- RIGHT-SIDEBAR WITH BANNER -->
+ <td style="width: 200px;" valign="top">
+ <inp2:m_include template="platform/elements/banners/banner_right.elm"/>
+ </td>
+ <!-- /RIGHT-SIDEBAR WITH BANNER -->
+ REMOVE THIS LINE TO UNCOMMENT ##-->
+ </tr>
+ </table>
+
+ <table class="fullwidth">
+ <tr>
+ <td >
+ <inp2:m_include template="platform/elements/footer.elm"/>
+ </td>
+ </tr>
+ </table>
</div>
+ </div>
+ <inp2:st_EditPage mode="end"/>
</body>
</html>
\ No newline at end of file
Property changes on: platform/designs/default_design.des.tpl
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.1.2.4
\ No newline at end of property
+1.1.2.5
\ No newline at end of property
Index: platform/designs/general.tpl
===================================================================
--- platform/designs/general.tpl (revision 11609)
+++ platform/designs/general.tpl (revision 11610)
@@ -1,54 +1,54 @@
<!--##
<NAME>General - Design</NAME>
<DESC>General - Design</DESC>
<SECTION>Platform</SECTION>
##-->
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:st_PageInfo type="title"/>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
</inp2:m_DefineElement>
<!--## //SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-element">
<inp2:m_include template="platform/elements/navigation_bar.elm"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:st_PageInfo type="title"/>
</inp2:m_Capture>
- <inp2:cms_ContentBlock num="1"/>
+ <inp2:st_ContentBlock num="1"/>
</inp2:m_RenderElement>
</div>
<!--## RELATED TO PAGE ITEMS ##-->
<!--##
<div class="movable-element">
<inp2:m_RenderElement design="content_box" related_to="Category" data_exists="1">
<inp2:m_Capture to_var="header">
<inp2:m_Phrase label="lu_title_RelatedItems"/>
</inp2:m_Capture>
<inp2:m_ModuleInclude template="elements/content_boxes/related_items" related_to="$related_to" />
</inp2:m_RenderElement>
</div>
##-->
<!--## // RELATED TO PAGE ITEMS ##-->
</inp2:m_DefineElement>
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
\ No newline at end of file
Property changes on: platform/designs/general.tpl
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.1.2.4
\ No newline at end of property
+1.1.2.5
\ No newline at end of property
Index: platform/template_manager/inc/template_manager.js
===================================================================
--- platform/template_manager/inc/template_manager.js (revision 11609)
+++ platform/template_manager/inc/template_manager.js (revision 11610)
@@ -1,174 +1,139 @@
function TemplateManager ($edit_url) {
this._editUrl = $edit_url;
this._blocks = {};
this._blockOrder = Array ();
$(document).ready(
function() {
aTemplateManager.searchBlocks();
}
);
}
TemplateManager.prototype.onBtnClick = function ($e, $element) {
var $id = $element.id.replace(/_btn$/, '');
var $block_info = this._blocks[$id];
var $url = this._editUrl.replace('#BLOCK#', $block_info.block_name + ':' + $block_info.function_name).replace('#EVENT#', '');
this.setFullscreen();
TB.show(
{
url: $url,
onDataReceived: TemplateManager.prototype.onDataReceived,
onAfterShow: function() {
TemplateManager.prototype.initEditor.call(this);
}
}
);
$e.stopPropagation();
}
TemplateManager.prototype.setFullscreen = function ($restore) {
getFrame('head').$FrameResizer.fullScreen($restore);
}
TemplateManager.prototype.saveBlock = function () {
var $url = this._editUrl.replace('#BLOCK#', $('#block').val() ).replace('#EVENT#', 'OnSaveBlock');
function_body.toggleEditor(); // disable editor (global variable from edit_template.tpl via ajax)
TB.show(
{
url: $url,
onDataReceived: TemplateManager.prototype.onDataReceived,
onAfterShow: function() {
TemplateManager.prototype.initEditor.call(this);
},
postParams: $('#template_editor_form').serializeArray()
}
);
}
TemplateManager.prototype.cancelEditing = function () {
TB.remove();
this.setFullscreen(true);
}
TemplateManager.prototype.onMouseOver = function ($e, $element) {
- if (!$element.className.match(/[ ]{0,1}block-container-over[ ]{0,1}/)) {
- $element.className += ' block-container-over';
- }
-
+ $($element).addClass('block-edit-btn-container-over');
$e.stopPropagation();
}
TemplateManager.prototype.onMouseOut = function ($e, $element) {
- $element.className = $element.className.replace(/[ ]{0,1}block-container-over[ ]{0,1}/, '');
-
+ $($element).removeClass('block-edit-btn-container-over');
$e.stopPropagation();
}
TemplateManager.prototype.searchBlocks = function () {
$('div').each (
function () {
- var $id = this.getAttribute('id');
- if (!$id || !$id.match(/parser_block\[.*\]/)) {
+ var $id = $(this).attr('id');
+
+ if (!$id || $id.match(/parser_block\[.*\].*_btn$/) || !$id.match(/parser_block\[.*\]/)) {
// skip other divs
return true;
}
TemplateManager.prototype.registerBlock.call(aTemplateManager, this);
}
);
}
TemplateManager.prototype.registerBlock = function ($element) {
var $params = $element.getAttribute('params').split(':');
this._blocks[$element.id] = {
block_name: $params[0],
function_name: $params[1]
};
var $btn = document.getElementById($element.id + '_btn');
$($btn).bind(
'click',
function(ev) {
TemplateManager.prototype.onBtnClick.call(aTemplateManager, ev, this);
}
);
$($element).bind(
'mouseover',
function(ev) {
TemplateManager.prototype.onMouseOver.call(aTemplateManager, ev, this);
}
);
$($element).bind(
'mouseout',
function(ev) {
TemplateManager.prototype.onMouseOut.call(aTemplateManager, ev, this);
}
);
this._blockOrder.push($element.id);
}
TemplateManager.prototype.onDataReceived = function ($data) {
if ($data == '0') {
TB.remove();
return false;
}
return true;
}
TemplateManager.prototype.initEditor = function () {
var $id = 'function_body';
var $textarea = document.getElementById($id);
$textarea.id += '_cp';
window[$id] = new CodePress($textarea);
$( window[$id] ).insertBefore($textarea);
-}
-
-function getFrame($name)
-{
- var $main_window = window;
-
- // 1. cycle through popups to get main window
- try {
- // will be error, when other site is opened in parent window
- var $i = 0;
- while ($main_window.opener) {
- if ($i == 10) {
- break;
- }
-
- $main_window = $main_window.opener;
- $i++;
- }
- }
- catch (err) {
- // catch Access/Permission Denied error
-// alert('getFrame.Error: [' + err.description + ']');
- return window;
- }
-
- var $frameset = $main_window.parent.frames;
- for ($i = 0; $i < $frameset.length; $i++) {
- if ($frameset[$i].name == $name) {
- return $frameset[$i];
- }
- }
- return $main_window.parent;
}
\ No newline at end of file
Property changes on: platform/template_manager/inc/template_manager.js
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.1.2.2
\ No newline at end of property
+1.1.2.3
\ No newline at end of property
Index: platform/template_manager/inc/template_manager.css
===================================================================
--- platform/template_manager/inc/template_manager.css (revision 11609)
+++ platform/template_manager/inc/template_manager.css (revision 11610)
@@ -1,25 +1,4 @@
-span.edit-block {
- font-family: Arial, Verdana;
- font-size: 9pt;
- width: auto;
- font-weight: normal;
- color: #0000FF;
- background-color: #F7C300;
- border: 1px solid #CE0031;
- padding: 1px 10px 1px 10px;
- cursor: pointer;
-}
-
-div.block-container {
- border: 1px dashed transparent;
- margin: 8px;
-}
-
-div.block-container-over {
- border-color: red;
-}
-
div.tm-editor, div.tm-editor td {
font-size: 14px;
font-family: serif;
}
\ No newline at end of file
Property changes on: platform/template_manager/inc/template_manager.css
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.1.2.1
\ No newline at end of property
+1.1.2.2
\ No newline at end of property
Index: platform/template_manager/edit_template.tpl
===================================================================
--- platform/template_manager/edit_template.tpl (revision 11609)
+++ platform/template_manager/edit_template.tpl (revision 11610)
@@ -1,60 +1,26 @@
<inp2:m_NoDebug/>
<div style="padding-top: 8px; padding-bottom: 8px;" class="tm-editor">
- <!--Block Name (in url): [<inp2:m_Get name="block"/>]<br/>
- Source (in url): [<inp2:m_Get name="source"/>]<br/>
- <br />
-
- <table>
- <tr>
- <td>block_name:</td>
- <td><inp2:st_BlockInfo name="block_name"/></td>
- </tr>
- <tr>
- <td>function_name:</td>
- <td><inp2:st_BlockInfo name="function_name"/></td>
- </tr>
- <tr>
- <td>template</td>
- <td><inp2:st_BlockInfo name="template"/></td>
- </tr>
- <tr>
- <td>file</td>
- <td><inp2:st_BlockInfo name="file"/></td>
- </tr>
- <tr>
- <td>starts at</td>
- <td><inp2:st_BlockInfo name="start_pos"/></td>
- </tr>
- <tr>
- <td>ends at</td>
- <td><inp2:st_BlockInfo name="end_pos"/></td>
- </tr>
- </table>
-
- <br />-->
-
<div style="text-align: center;">
<inp2:m_if check="m_Get" name="error_msg">
<div style="color: red; text-align: left;">
<inp2:m_Get name="error_msg"/>
</div>
<br />
</inp2:m_if>
<form id="template_editor_form" method="post">
<input type="hidden" id="block" name="block" value="<inp2:m_Get name='block'/>"/>
<textarea id="function_body" name="function_body" class="codepress html" style="width: 780px; height: 490px;"><inp2:st_BlockInfo name="content" html_escape="1"/></textarea>
</form>
<br /><br />
<div style="text-align: left;">
<input type="button" id="tm-save" class="button" value="<inp2:m_Phrase name='lu_btn_Update'/>" onclick="aTemplateManager.saveBlock();"/>
<input type="button" id="tm-cancel" class="button" value="<inp2:m_Phrase name='lu_btn_Cancel'/>" onclick="aTemplateManager.cancelEditing();"/>
</div>
</div>
</div>
<script type="text/javascript">
- $('#TB_ajaxWindowTitle').text('<inp2:st_TemplateEditorTitle phrase="lu_title_EditingTemplate"/>');
-
+ $('#' + TB.getId('TB_ajaxWindowTitle')).text('<inp2:st_TemplateEditorTitle phrase="lu_title_EditingTemplate"/>');
</script>
\ No newline at end of file
Property changes on: platform/template_manager/edit_template.tpl
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.1.2.1
\ No newline at end of property
+1.1.2.2
\ No newline at end of property
Index: index.tpl
===================================================================
--- index.tpl (revision 11609)
+++ index.tpl (revision 11610)
@@ -1,56 +1,56 @@
<!--##
<NAME>Home</NAME>
<DESC>Welcome page</DESC>
<SECTION></SECTION>
##-->
<!--## 0PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_phrase name="lu_title_WelcomeTitle"/>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/recommend_site.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/mailing_list.elm" design="blue_box"/>
</div>
</inp2:m_DefineElement>
<!--## /SIDE-BAR ELEMENT ##-->
<!--## MAIN CONTENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-element">
<inp2:m_include template="platform/elements/navigation_bar.elm"/>
</div>
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
- <inp2:m_phrase name="lu_title_WelcomeTitle"/><inp2:st_EditPage/>
+ <inp2:m_phrase name="lu_title_WelcomeTitle"/>
</inp2:m_Capture>
<div class="movable-element">
<inp2:st_ContentBlock num="1"/>
</div>
</inp2:m_RenderElement>
<div class="movable-element">
<!--## INCLUDE HOME PAGE ELEMENTS FOR EACH MODULE ##-->
<inp2:m_ModuleInclude template="elements/content_boxes/home_page_items.elm" data_exists="1"/>
<!--## /HOME PAGE ELEMENTS ##-->
</div>
</inp2:m_DefineElement>
<!--## /MAIN CONTENT ##-->
<!--## DESIGN TEMPLATE ##-->
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
<!--## /DESIGN TEMPLATE ##-->
\ No newline at end of file
Property changes on: index.tpl
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.1.2.12
\ No newline at end of property
+1.1.2.13
\ No newline at end of property
Event Timeline
Log In to Comment