forked from bricoleurs/templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathquote.mc
54 lines (44 loc) · 2.05 KB
/
quote.mc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<%doc>
=head1 NAME
quote.mc = Very simple pull quote element
=head1 DESCRIPTION
This will create a 1 pixel outline box to include quotes in.
=head1 USAGE
Create an element of type insets, called StoryQuote or whatever you like. Make
it a subelement of your page element. In the StoryQuote element, create two
custom fields called Quote and WhosQuote. Make Quote a text area and WhosQuote
a text box, set the parameters to whatever you think you'll need. Now create a
template for StoryQuote using the code below and when you need a quote in your
story, just include the StoryQuote element in your page.
=head1 AUTHOR
Dave Dambacher
=cut
</%doc>
<table align="right" cellspacing="0" cellpadding="0" width="150" border="0">
<tr>
<td bgcolor="#cccccc" colspan="5"><img height="1" src="http://www.yourdomain.com/images/transp.gif" width="1"></td>
</tr>
<tr>
<td bgcolor="#cccccc"><img height="1" src="http://www.yourdomain.com/images/transp.gif" width="1"></td>
<td valign="top" colspan="3"><img height="4" src="http://www.yourdomain.com/images/transp.gif" width="1"></td>
<td bgcolor="#cccccc"><img height="1" src="http://www.yourdomain.com/images/transp.gif" width="1"></td>
<td bgcolor="#ffffff"><img height="1" src="http://www.yourdomain.com/images/transp.gif" width="3"></td>
</tr>
<tr>
<td bgcolor="#cccccc"><img height="1" src="http://www.yourdomain.com/images/transp.gif" width="1"></td>
<td> </td>
<td valign="top">
<br /><br />"<% $element->get_data('quote') %>"
<br /><br />- <% $element->get_data('whosquote') %>
<br />
<img height="1" src="http://www.yourdomain.com/images/transp.gif" width="125">
</td>
<td> </td>
<td bgcolor="#cccccc"><img height="1" src="http://www.yourdomain.com/images/transp.gif" width="1"></td>
<td> </td>
</tr>
<tr>
<td bgcolor="#cccccc" colspan="5"><img height="1" src="http://www.yourdomain.com/images/transp.gif" width="1"></td>
<td><img height="1" src="http://www.yourdomain.com/images/transp.gif" width="3"></td>
</tr>
</table>