mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 16:27:38 +02:00
- removed useless code from style.php
- added a view template cache mode to acp_styles - syntax highlighting for the acp css - completed refresh actions for themes and templates - fixed theme and template installation - use a function for generating database theme data - removed useless code from mcp_queue.php we might need to do some more tests of acp_styles with safe_mode on git-svn-id: file:///svn/phpbb/trunk@6007 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -244,6 +244,8 @@
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<a href="{U_BACK}" style="float: right">« {L_BACK}</a>
|
||||
|
||||
<h1>{L_EDIT_THEME}</h1>
|
||||
|
||||
<p>{L_EDIT_THEME_EXPLAIN}</p>
|
||||
@@ -374,6 +376,59 @@
|
||||
|
||||
</form>
|
||||
<!-- ENDIF -->
|
||||
<!-- ELSEIF S_CACHE -->
|
||||
<script language="Javascript" type="text/javascript">
|
||||
<!--
|
||||
|
||||
function viewsource(url)
|
||||
{
|
||||
window.open(url, '_source', 'HEIGHT=550,resizable=yes,scrollbars=yes,WIDTH=750');
|
||||
return false;
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<a href="{U_BACK}" style="float: right">« {L_BACK}</a>
|
||||
|
||||
<h1>{L_TEMPLATE_CACHE}</h1>
|
||||
|
||||
<p>{L_TEMPLATE_CACHE_EXPLAIN}</p>
|
||||
|
||||
<form name="acp_styles" method="post" action="{U_ACTION}">
|
||||
|
||||
<table cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{L_CACHE_FILENAME}</th>
|
||||
<th>{L_CACHE_FILESIZE}</th>
|
||||
<th>{L_CACHE_CACHED}</th>
|
||||
<th>{L_CACHE_MODIFIED}</th>
|
||||
<th>{L_MARK}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- BEGIN file -->
|
||||
<!-- IF file.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
|
||||
<td><a href="{file.U_VIEWSOURCE}" onclick="viewsource('{file.UA_VIEWSOURCE}');return false">{file.FILENAME}</a></td>
|
||||
<td>{file.FILESIZE}</td>
|
||||
<td>{file.CACHED}</td>
|
||||
<td>{file.MODIFIED}</td>
|
||||
<td><input type="checkbox" name="delete[]" value="{file.FILENAME}" /></td>
|
||||
</tr>
|
||||
<!-- BEGINELSE -->
|
||||
<tr class="row1">
|
||||
<td colspan="5">{L_TEMPLATE_CACHE_EMPTY}</td>
|
||||
</tr>
|
||||
<!-- END file -->
|
||||
</table>
|
||||
|
||||
<fieldset class="quick">
|
||||
<span class="small"><a href="javascript:marklist('acp_styles', 'delete', true);">Mark all</a> :: <a href="javascript:marklist('acp_styles', 'delete', false);">Unmark all</a></span><br />
|
||||
|
||||
<input class="button1" type="submit" id="submit" name="submit" value="{L_DELETE_MARKED}" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<!-- ELSEIF S_EXPORT -->
|
||||
|
||||
<a href="{U_BACK}" style="float: right">« {L_BACK}</a>
|
||||
|
@@ -915,3 +915,39 @@ table.pmask td.name {
|
||||
height: 1%;
|
||||
}
|
||||
/* End hide */
|
||||
|
||||
/* Syntax Highlighting
|
||||
---------------------------------------- */
|
||||
.sourcenum {
|
||||
color: gray;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 125%;
|
||||
font-weight: bold;
|
||||
line-height: 120%;
|
||||
text-align: right;
|
||||
padding: 0px;
|
||||
}
|
||||
.source {
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 125%;
|
||||
line-height: 120%;
|
||||
padding: 0px;
|
||||
}
|
||||
.syntaxbg {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.syntaxcomment {
|
||||
color: #FF8000;
|
||||
}
|
||||
.syntaxdefault {
|
||||
color: #0000BB;
|
||||
}
|
||||
.syntaxhtml {
|
||||
color: #000000;
|
||||
}
|
||||
.syntaxkeyword {
|
||||
color: #007700;
|
||||
}
|
||||
.syntaxstring {
|
||||
color: #DD0000;
|
||||
}
|
19
phpBB/adm/style/viewsource.html
Normal file
19
phpBB/adm/style/viewsource.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<!-- INCLUDE simple_header.html -->
|
||||
|
||||
<div class="panel" style="padding:10px">
|
||||
|
||||
<h1>{FILENAME}</h1>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<!-- BEGIN source -->
|
||||
<tr valign="top">
|
||||
<td class="sourcenum">{source.LINENUM} </td>
|
||||
<td class="source">{source.LINE}</td>
|
||||
</tr>
|
||||
<!-- END source -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- INCLUDE simple_footer.html -->
|
Reference in New Issue
Block a user