template out pagebuilder a bit, also delete pages when user is deleted
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
{# Clipart block template for editing/previewing #}
|
||||
<p>
|
||||
{% if state == "editing" %}
|
||||
<TABLE href="wtv-author:/edit-block?docName={{ page }}&blockNum={{ number }}&numOfBlocks={{ numofblocks }}" nocolor width="100%">
|
||||
{% else %}
|
||||
<TABLE nocolor width="100%">
|
||||
{% endif %}
|
||||
{% if thisblock.title %}
|
||||
<TR>
|
||||
<TD align="center">
|
||||
<font color="{{ headcol }}">
|
||||
<H3>{{ thisblock.title }}</H3>
|
||||
</font>
|
||||
</TD>
|
||||
</TR>
|
||||
{% endif %}
|
||||
<TR>
|
||||
<td>
|
||||
<CENTER>
|
||||
<IMG SRC="wtv-author:/{{ thisblock.photo | base64_decode }}">
|
||||
</CENTER>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD valign="top">
|
||||
{% if state == "editing" and (not thisblock.caption or thisblock.caption.length == 0) %}
|
||||
<i>Choose this to change the image or add an optional caption.</i>
|
||||
{% elif thisblock.caption %}
|
||||
{{ thisblock.caption }}
|
||||
{% endif %}
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</p>
|
||||
@@ -0,0 +1,28 @@
|
||||
{# Clipart block template for publishing #}
|
||||
<p>
|
||||
<TABLE nocolor width="100%">
|
||||
{% if thisblock.title %}
|
||||
<TR>
|
||||
<TD align="center">
|
||||
<font color="{{ headcol }}">
|
||||
<H3>{{ thisblock.title }}</H3>
|
||||
</font>
|
||||
</TD>
|
||||
</TR>
|
||||
{% endif %}
|
||||
<TR>
|
||||
<td>
|
||||
<CENTER>
|
||||
<IMG SRC="{{ thisblock.photo | base64_decode }}">
|
||||
</CENTER>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD valign="top">
|
||||
{% if thisblock.caption %}
|
||||
{{ thisblock.caption }}
|
||||
{% endif %}
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</p>
|
||||
@@ -0,0 +1,31 @@
|
||||
{# Heading block template #}
|
||||
<center>
|
||||
<h2>
|
||||
{% if state == "editing" %}
|
||||
<table href="wtv-author:/edit-block?docName={{ page }}&blockNum={{ number }}&numOfBlocks={{ numofblocks }}" frame="" width="90%" cellspacing="8" cellpadding="0" border="0">
|
||||
{% else %}
|
||||
<table frame="" width="90%" cellspacing="8" cellpadding="0" border="0">
|
||||
{% endif %}
|
||||
<tbody>
|
||||
<tr>
|
||||
{% if headerimgL %}
|
||||
<td>
|
||||
<img src="{{ headerimgL }}" width="{{ headerimgLwidth }}" height="{{ headerimgLheight }}">
|
||||
</td>
|
||||
{% endif %}
|
||||
<td center="">
|
||||
<font color="{{ headcol }}">
|
||||
{% if thisblock.dividerBefore == "on" %}
|
||||
<h2><hr></h2>
|
||||
{% endif %}
|
||||
<{{ thisblock.size }}>{{ thisblock.text }}</{{ thisblock.size }}>
|
||||
{% if thisblock.dividerAfter == "on" %}
|
||||
<h2><hr></h2>
|
||||
{% endif %}
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</h2>
|
||||
</center>
|
||||
@@ -0,0 +1,52 @@
|
||||
{# Link block template #}
|
||||
<center>
|
||||
{% if state == "editing" %}
|
||||
<table nocolor="" cellspacing="0" cellpadding="0" href="wtv-author:/edit-block?docName={{ page }}&blockNum={{ number }}&numOfBlocks={{ numofblocks }}">
|
||||
{% else %}
|
||||
<table nocolor="" cellspacing="0" cellpadding="0">
|
||||
{% endif %}
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<font color="{{ headcol }}">
|
||||
<h3>{{ thisblock.title }}</h3>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="0">
|
||||
<spacer type="block" width="80"> </spacer>
|
||||
</td>
|
||||
</tr>
|
||||
{% for item in thisblock.items %}
|
||||
<tr>
|
||||
{% if listcol1 %}
|
||||
{% if loop.index0 % 2 == 0 %}
|
||||
<td bgcolor="{{ listcol1 }}">
|
||||
{% else %}
|
||||
{% if listcol2 %}
|
||||
<td bgcolor="{{ listcol2 }}">
|
||||
{% else %}
|
||||
<td bgcolor="{{ listcol1 }}">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<td>
|
||||
{% endif %}
|
||||
<ul type="DISC">
|
||||
<li>
|
||||
<a href="{{ item.url }}">
|
||||
{% if item.name and item.name != "" %}
|
||||
{{ item.name }}
|
||||
{% else %}
|
||||
{{ item.url }}
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</center>
|
||||
@@ -0,0 +1,44 @@
|
||||
{# List block template #}
|
||||
<center>
|
||||
{% if state == "editing" %}
|
||||
<table nocolor="" cellspacing="0" cellpadding="0" href="wtv-author:/edit-block?docName={{ page }}&blockNum={{ number }}&numOfBlocks={{ numofblocks }}">
|
||||
{% else %}
|
||||
<table nocolor="" cellspacing="0" cellpadding="0">
|
||||
{% endif %}
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<font color="{{ headcol }}">
|
||||
<h3>{{ thisblock.title }}</h3>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="0">
|
||||
<spacer type="block" width="80"> </spacer>
|
||||
</td>
|
||||
</tr>
|
||||
{% for item in thisblock.items %}
|
||||
<tr>
|
||||
{% if listcol1 %}
|
||||
{% if loop.index0 % 2 == 0 %}
|
||||
<td bgcolor="{{ listcol1 }}">
|
||||
{% else %}
|
||||
{% if listcol2 %}
|
||||
<td bgcolor="{{ listcol2 }}">
|
||||
{% else %}
|
||||
<td bgcolor="{{ listcol1 }}">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<td>
|
||||
{% endif %}
|
||||
<ul type="DISC">
|
||||
<li>{{ item }}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</center>
|
||||
@@ -0,0 +1,46 @@
|
||||
{# Snapshot/Scrapbook block template for editing/previewing #}
|
||||
<font size="6" color="#ffffcc">
|
||||
<b>
|
||||
{% if state == "editing" %}
|
||||
<TABLE href="wtv-author:/edit-block?docName={{ page }}&blockNum={{ number }}&numOfBlocks={{ numofblocks }}" nocolor width="100%">
|
||||
{% else %}
|
||||
<TABLE nocolor width="100%">
|
||||
{% endif %}
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<center>
|
||||
{% if thisblock.title %}
|
||||
<TR>
|
||||
<TD align="center">
|
||||
<font color="{{ headcol }}">
|
||||
<H3>{{ thisblock.title }}</H3>
|
||||
</font>
|
||||
</TD>
|
||||
</TR>
|
||||
{% endif %}
|
||||
<TR>
|
||||
<TD>
|
||||
<CENTER>
|
||||
<IMG SRC="wtv-author:/get-photo?docName={{ page }}&blockNum={{ number }}">
|
||||
</CENTER>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD valign="top">
|
||||
{% if state == "editing" and (not thisblock.caption or thisblock.caption.length == 0) %}
|
||||
<i>Choose this to change the image or add an optional caption.</i>
|
||||
{% elif thisblock.caption %}
|
||||
{{ thisblock.caption }}
|
||||
{% endif %}
|
||||
</TD>
|
||||
</TR>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</b>
|
||||
</font>
|
||||
<p></p>
|
||||
<p> </p>
|
||||
@@ -0,0 +1,28 @@
|
||||
{# Snapshot block template for publishing #}
|
||||
<p>
|
||||
<TABLE nocolor width="100%">
|
||||
{% if thisblock.title %}
|
||||
<TR>
|
||||
<TD align="center">
|
||||
<font color="{{ headcol }}">
|
||||
<H3>{{ thisblock.title }}</H3>
|
||||
</font>
|
||||
</TD>
|
||||
</TR>
|
||||
{% endif %}
|
||||
<TR>
|
||||
<TD>
|
||||
<CENTER>
|
||||
<IMG SRC="media/captureA{{ number }}.jpg">
|
||||
</CENTER>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD valign="top">
|
||||
{% if thisblock.caption %}
|
||||
{{ thisblock.caption }}
|
||||
{% endif %}
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</p>
|
||||
@@ -0,0 +1,25 @@
|
||||
{# Text block template #}
|
||||
{% if state == "editing" %}
|
||||
<table href="wtv-author:/edit-block?docName={{ page }}&blockNum={{ number }}">
|
||||
{% else %}
|
||||
<table>
|
||||
{% endif %}
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<font color="{{ headcol }}">
|
||||
<h3 align="left">{{ thisblock.title }}</h3>
|
||||
</font>
|
||||
{% if thisblock.caption %}
|
||||
<p align="left">
|
||||
<font color="{{ text_color }}"{% if thisblock.size %} size="{{ thisblock.size }}"{% endif %}>
|
||||
{% if thisblock.style %}<{{ thisblock.style }}>{% endif %}
|
||||
{{ thisblock.caption }}
|
||||
{% if thisblock.style %}</{{ thisblock.style }}>{% endif %}
|
||||
</font>
|
||||
</p>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,25 @@
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<hr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30%" valign="middle">
|
||||
<font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
|
||||
<b>
|
||||
</b></font></td>
|
||||
<td width="30%" valign="middle">
|
||||
<center>
|
||||
<font size="-2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><i>
|
||||
<a href="http://{{ powered_by }}">Powered by {{ service_name }}</a>
|
||||
</i></font></center>
|
||||
</td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
<font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
|
||||
<b>
|
||||
</b></font></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<hr>
|
||||
@@ -0,0 +1,140 @@
|
||||
{# Pagination footer template for WTV Author pages #}
|
||||
{% if state != "editing" %}
|
||||
{% if page == 1 and pagedata.pagebreaks.length != 0 %}
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<hr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30%" valign="middle">
|
||||
<font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
|
||||
<b></b>
|
||||
</font>
|
||||
</td>
|
||||
<td width="30%" valign="middle">
|
||||
<center>
|
||||
<font size="-2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
|
||||
<i>
|
||||
<a href="http://{{ powered_by }}">Powered by {{ service_name }}</a>
|
||||
</i>
|
||||
</font>
|
||||
</center>
|
||||
</td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
<font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
|
||||
<b>
|
||||
<a href="{% if state == 'publishing' %}page{{ page + 1 }}.html{% else %}wtv-author:/preview?docName={{ pagenum }}&pageNum={{ page + 1 }}{% endif %}">next page</a>
|
||||
</b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<hr>
|
||||
</td>
|
||||
</tr>
|
||||
{% elif page != 1 and pagedata.pagebreaks.length + 1 == page %}
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<hr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30%" valign="middle">
|
||||
<font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
|
||||
<b>
|
||||
<a href="{% if state == 'publishing' %}{% if page == 2 %}index.html{% else %}page{{ page - 1 }}.html{% endif %}{% else %}wtv-author:/preview?docName={{ pagenum }}&pageNum={{ page - 1 }}{% endif %}">previous page</a>
|
||||
</b>
|
||||
</font>
|
||||
</td>
|
||||
<td width="30%" valign="middle">
|
||||
<center>
|
||||
<font size="-2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
|
||||
<i>
|
||||
<a href="http://{{ powered_by }}">Powered by {{ service_name }}</a>
|
||||
</i>
|
||||
</font>
|
||||
</center>
|
||||
</td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
<font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
|
||||
<b></b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<hr>
|
||||
</td>
|
||||
</tr>
|
||||
{% elif page != 1 and pagedata.pagebreaks.length + 1 > page %}
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<hr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30%" valign="middle">
|
||||
<font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
|
||||
<b>
|
||||
<a href="{% if state == 'previewing' %}wtv-author:/preview?docName={{ pagenum }}&pageNum={{ page - 1 }}{% elif state == 'publishing' %}{% if page == 2 %}index.html{% else %}page{{ page - 1 }}.html{% endif %}{% endif %}">previous page</a>
|
||||
</b>
|
||||
</font>
|
||||
</td>
|
||||
<td width="30%" valign="middle">
|
||||
<center>
|
||||
<font size="-2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
|
||||
<i>
|
||||
<a href="http://{{ powered_by }}">Powered by {{ service_name }}</a>
|
||||
</i>
|
||||
</font>
|
||||
</center>
|
||||
</td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
<font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
|
||||
<b>
|
||||
<a href="{% if state == 'previewing' %}wtv-author:/preview?docName={{ pagenum }}&pageNum={{ page + 1 }}{% elif state == 'publishing' %}page{{ page + 1 }}.html{% endif %}">next page</a>
|
||||
</b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<hr>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<hr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30%" valign="middle">
|
||||
<font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
|
||||
<b></b>
|
||||
</font>
|
||||
</td>
|
||||
<td width="30%" valign="middle">
|
||||
<center>
|
||||
<font size="-2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
|
||||
<i>
|
||||
<a href="http://{{ powered_by }}">Powered by {{ service_name }}</a>
|
||||
</i>
|
||||
</font>
|
||||
</center>
|
||||
</td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
<font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
|
||||
<b></b>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<hr>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user