A couple of tweaks to get the comment owner to display properly
[elgg.git] / units / templates / default_template.php
blob669e1cc5b98d08c6fe071ea08f879bc5b87cb616
1 <?php
2 global $CFG;
3 global $template;
4 global $template_definition;
5 $sitename = $CFG->sitename;
7 $template_definition[] = array(
8 'id' => 'css',
9 'name' => gettext("Stylesheet"),
10 'description' => gettext("The Cascading Style Sheet for the template."),
11 'glossary' => array(),
12 'display' => 1,
15 $template['css'] = <<< END
17 CSS for Elgg default
20 body{
21 padding: 0;
22 font-family: arial, verdana, helvetica, sans-serif;
23 color: #333;
24 background: #eee;
25 width:97%;
26 margin:auto;
27 font-size:80%;
30 a {
31 text-decoration: none;
32 color: #7289AF;
33 background: #fff;
34 font-family:verdana, arial, helvetica, sans-serif;
35 font-size:100%;
39 p {
40 font-size: 100%;
43 h1 {
44 margin:0px 0px 15px 0px;
45 padding:0px;
46 font-size:120%;
47 font-weight:900;
51 h2 {
52 margin:0px 0px 5px 0px;
53 padding:0px;
54 font-size:100%
58 h3 {
59 margin:0px 0px 5px 0px;
60 padding:0px;
61 font-size:100%
64 h4 {
65 margin:0px 0px 5px 0px;
66 padding:0px;
67 font-size:100%
70 h5 {
71 margin:0px 0px 5px 0px;
72 padding:0px;
73 color:#1181AA;
74 background:#fff;
75 font-size:100%
78 blockquote {
79 padding: 0 1pc 1pc 1pc;
80 border: 1px solid #ddd;
81 background-color: #F0F0F0;
82 color:#000;
83 background-image: url("{$CFG->wwwroot}_templates/double-quotes.png");
84 background-repeat: no-repeat;
85 background-position: -10px -7px;
88 /*---------------------------------------
89 Wraps the entire page
90 -----------------------------------------*/
92 #container {
93 margin: 0 auto;
94 text-align: center;
95 width: 100%;
96 min-width: 750px;
100 /*-----------------------------------------
101 TOP STATUS BAR
102 -------------------------------------------*/
104 #statusbar {
105 padding: 3px 0px 2px 0;
106 margin: 0px;
107 height:19px;
108 background:#eee;
109 color: #333;
110 font-size:85%;
113 #statusbar a {
114 color: #666;
115 background:#eee;
118 #welcome {
119 float: left;
122 #welcome p{
123 font-weight:bold;
124 font-size:110%;
125 padding:0 0 0 4px;
126 margin:0px;
129 #global_menuoptions {
130 text-align: right;
131 padding:0px;
132 margin:0px;
133 float:right;
136 #global_menuoptions ul {
137 margin: 0;
138 padding: 0;
141 #global_menuoptions li {
142 margin: 0;
143 padding: 0 8px 0 0;
144 display: inline;
145 list-style-type: none;
146 border: none;
149 #global_menuoptions a {
150 text-decoration: none;
153 #global_menuoptions a:hover{
154 text-decoration:underline;
158 /*---------------------------------------------
159 HEADER
160 ------------------------------------------------*/
162 #header {
163 width: 100%;
164 background: #1181AA;
165 color:#fff;
166 border: 1px solid #ccc;
167 border-bottom: none;
168 padding: 0px;
169 margin: 0px;
170 text-align: left;
173 #header h1 {
174 padding: 0 0 4px 0;
175 margin: 7px 0 0 20px;
176 color: #FAC83D;
177 background: #1181AA;
178 text-align: left;
179 font-size:140%;
180 font-weight:normal;
183 #header h2 {
184 padding: 0 0 7px 0;
185 margin: 0 0 0 20px;
186 font-weight: normal;
187 color: #fff;
188 background: #1181AA;
189 border: none;
190 font-family: "Lucida Grande", arial, sans-serif;
191 font-size:120%;
194 /*--------------------------------------------
195 NAVIGATION
196 ----------------------------------------------*/
198 #navigation {
199 height: 19px;
200 margin: 0;
201 padding-left: 20px;
202 text-align:left;
205 #navigation li {
206 margin: 0;
207 padding: 0;
208 display: inline;
209 list-style-type: none;
210 border: none;
213 #navigation a:link, #navigation a:visited {
215 background: #eaeac7;
216 font-weight: normal;
217 padding: 5px;
218 margin: 0 2px 0 0;
219 border: 0px solid #036;
220 text-decoration: none;
221 color: #333;
222 font-size:85%;
225 #navigation a:link.selected, #navigation a:visited.selected {
226 border-bottom: 1px solid #fff;
227 background: #fff;
228 color: #393;
229 font-weight: bold;
232 #navigation a:hover {
233 color: #000;
234 background: #ffc;
237 #navigation li a:hover{
238 background:#FCD63F;
239 color: #000;
243 /*-----------------------------------------------
244 SITE CONTENT WRAPPER
245 -------------------------------------------------*/
247 #content_holder {
248 margin: 0;
249 padding: 20px 0;
250 width: 100%;
251 text-align: left;
252 float: left;
253 border: 1px solid #ccc;
254 border-top: none;
255 background-color: #fff;
256 color:#000;
259 /*-------------------------------------------------
260 HOLDS THE MAIN CONTENT E.G. BLOG, PROFILE ETC
261 ----------------------------------------------------*/
263 #maincontent_container {
264 margin: 0;
265 padding: 5px;
266 text-align: left;
267 width: 65%;
268 float: left;
271 #maincontent_container h2 {
272 padding-bottom: 5px;
273 padding-top: 5px;
274 margin: 0;
275 /*color: #666;
276 background-color:#fff;*/
279 #maincontent_container h1 {
280 padding-bottom: 5px;
281 padding-top: 5px;
282 margin: 0;
283 color: #666;
284 background-color:#fff;
287 #maincontent_container h3 {
288 padding-bottom: 5px;
289 padding-top: 5px;
290 margin: 0;
291 /*color: #666;
292 background-color:#fff;*/
295 #Footer .performanceinfo {
296 color: #000;
299 /*-------------------------------------------------------------
300 THIS DISPLAYS THE ACTUAL CONTENT WITHIN maincontent_container
301 --------------------------------------------------------------*/
303 #maincontent_display {
304 margin: 0;
305 padding: 0 0 20px 20px;
306 width: 100%;
307 text-align: left;
308 float: left;
309 background-color: #fff;
310 color:#000;
313 #maincontent_display h1 {
314 padding-bottom: 2px;
315 border-bottom: 1px solid #666;
316 margin: 0;
317 font-size:130%;
318 color: #666;
319 background-color: #fff;
322 /*---- Sub Menu attributes ----*/
324 #maincontent_display #sub_menu {
325 font-family: verdana;
326 padding: 0px;
327 margin: 5px 0 20px 0;
328 color: #000;
329 background-color:#fff;
332 #maincontent_display #sub_menu a {
333 font-weight:bold;
334 margin:0px;
335 padding:0px;
338 #maincontent_display #sub_menu a:hover {
339 text-decoration: underline;
342 #maincontent_display #sub_menu p {
343 margin:0px;
344 padding:0px;
347 /*-----------------------------------------------------------------------
348 DIV's to help control look and feel - infoholder holds all the profile data
349 and is always located in within 'maincontentdisplay'
351 -------------------------------------------------------------------------*/
353 /*------ holds profile data -------*/
354 .infoholder {
355 border:1px;
356 border-color:#eee;
357 border-style:solid;
358 margin:0 0 5px 0;
361 .infoholder p {
362 padding:0 0 0 5px;
365 .infoholder .fieldname h2 {
366 border:0;
367 border-bottom:1px;
368 border-color:#eee;
369 border-style:solid;
370 padding:5px;
371 color:#666;
372 background:#fff;
375 .infoholder_twocolumn {
376 padding:4px;
377 border:1px;
378 border-color:#eee;
379 border-style:solid;
380 margin:0 0 10px 0;
383 .infoholder_twocolumn .fieldname h3{
384 color:#666;
385 background:#fff;
386 border:0px;
387 border-bottom:1px;
388 border-color:#eee;
389 border-style:solid;
392 /*----------- holds administration data---------*/
394 .admin_datatable {
395 border:1px;
396 border-color:#eee;
397 border-style:solid;
398 margin:0 0 5px 0;
401 .admin_datatable p {
402 padding:0px;
403 margin:0px;
406 .admin_datatable a {
411 .admin_datatable td {
412 text-align:left;
415 .admin_datatable h3{
416 color:#666;
417 background:#fff;
420 .admin_datatable h4 {
423 /*---- header plus one row of content ------*/
425 .databox_vertical {
426 background-color: #F9F9F9;
427 color:#000;
428 border:1px;
429 border-style:solid;
430 border-color:#DDD;
431 margin:0 0 5px 0;
432 padding:5px;
435 .databox_vertical p{
436 padding:0px;
437 margin:0px;
438 color:#1181AA;
439 background:#fff;
442 .databox_vertical .fieldname h3 {
443 padding:0px;
444 margin:0px;
445 color:#1181AA;
446 background:#fff;
449 /*------- holds file content ----*/
451 .filetable {
452 background-color: #F9F9F9;
453 color:#000;
454 border:1px;
455 border-style:solid;
456 border-color:#DDD;
457 margin:0 0 5px 0;
458 width:100%;
461 .filetable p{
462 padding:0px;
463 margin:0px;
464 color:#000; /*#1181AA;*/
465 background:#fff;
468 .filetable a{
473 .filetable table {
474 text-align:left;
477 #edit_files h4 {
482 /*------- holds fodler content ------*/
484 .foldertable {
485 background-color: #F9F9F9;
486 color:#000;
487 border:1px;
488 border-style:solid;
489 border-color:#DDD;
490 margin:0 0 5px 0;
491 width:100%;
494 .foldertable a{
498 .foldertable p{
499 padding:0px;
500 margin:0px;
501 color:#1181AA;
502 background:#fff;
505 .foldertable table {
506 text-align:left;
509 /*------- holds network data ------*/
511 .networktable {
516 /*-------------------------------------------
517 SIDEBAR CONTAINER
518 ---------------------------------------------*/
520 #sidebar_container {
521 margin: 0px;
522 text-align: left;
523 float: right;
524 width: 26%;
525 min-width: 100px;
526 border-left: 1px dotted #dcdcdc;
527 padding: 0 10px;
528 /*width:220px;*/
529 /*overflow: hidden;*/
532 /*-----------------------------------------
533 ACTUAL SIDEBAR CONTENT
534 -------------------------------------------*/
536 #sidebar {
537 min-width: 100px;
538 padding: 0 10px;
541 #sidebar ul {
542 margin: 0;
543 padding: 0;
544 list-style: none;
547 #sidebar ul li ul {
551 #sidebar ul li {
552 margin: 10px 0;
553 padding-left: 5px;
557 #sidebar h2 {
558 font-family: "Lucida Grande", arial, sans-serif;
559 font-weight: bold;
560 color: #333;
561 background:#fff;
562 margin: 20px 0 3px 0;
563 padding: 0;
564 border: none;
567 #sidebar h2 {
568 border-bottom: 1px solid #666;
571 /*-------------------------------------------
572 SIDEBAR DISPLAY COMPONENTS
573 ----------------------------------------------*/
575 #sidebar_user {
578 #recent_activity {
581 #community_owned {
584 #community_membership {
587 #sidebar_friends {
590 #search {
593 #me {
594 padding: 0 3px 3px 3px;
595 background-color:#FAC83D;
596 min-height: 71px;
599 #me a {
600 background-color:#FAC83D;
601 color: #7289AF;
604 #me #icon {
605 margin:3px 0 0 0;
606 float: left;
607 width: 70px;
610 #me #contents {
611 margin: 0 0 0 75px;
612 text-align: left;
616 /*--- extra div's when looking at someone else's page ---*/
618 #sidebar_weblog {
621 #sidebar_files {
626 /*------------------------------------------
627 FOOTER
628 ------------------------------------------*/
630 #footer {
631 margin: 10px 0 20px 20px;
632 text-align: center;
633 padding:5px;
636 #footer a:link, #footer a:visited {
637 text-align:right;
641 /*-------------------------------------------
642 INDIVIDUAL BLOG POSTS
643 -------------------------------------------*/
646 /*------ wraps all blog components ------*/
648 .weblog_posts {
651 .weblog_posts .entry h3 {
652 color:#1181AA;
653 background:#fff;
654 padding: 0 0 10px 110px;
657 .user {
658 float: left;
659 margin: 0px;
660 padding:0 0 5px 0;
661 width: 105px;
662 text-align: left;
665 .user a {
669 .post {
670 margin: 0 0 10px 0;
671 padding: 0 0 20px 110px;
672 font-family: arial;
675 .post p {
676 padding: 0;
677 margin: 3px 0 10px 0;
678 line-height: 16px;
681 .post ol, .post ul {
682 margin: 3px 0 10px 0;
683 padding: 0;
686 .post li {
687 margin: 0 0 0 30px;
688 line-height: 16px;
691 .post ul li {
692 list-style-type: square;
695 .post .blog_edit_functions p {
699 .post .blog_edit_functions a {
703 .post .weblog_keywords p {
707 .post .weblog_keywords a {
711 .info p {
712 padding: 0px;
713 margin: 0 0 5px 0;
714 color: #666;
715 background:#fff;
716 font-family: verdana;
717 font-weight: normal;
718 line-height: 14px;
719 text-align: left;
722 .info p a {
723 color: #666;
724 background:#fff;
725 text-decoration: none;
726 border-bottom: 1px dotted #666;
727 padding-bottom: 0;
730 #comments ol, #comments ul {
731 margin: 3px 0 10px 0;
732 padding: 0;
735 #comments li {
736 margin: 10px 0 10px 30px;
737 line-height: 16px;
740 #comments ul li {
741 list-style-type: square;
744 #comments h4 {
745 color:#1181AA;
748 .comment_owner {
749 border:1px solid #eee;
750 background:#f2f7fb;
751 padding:5px;
752 height:50px;
755 .comment_owner img {
756 margin:0px 5px 0px 0px;
759 .comment_owner a {
760 background:#f2f7fb;
763 .comment_owner p {
764 padding:0;
765 margin:0 0 10px 0;
768 .weblog_dateheader {
769 padding: 0px;
770 margin: 0 0 5px 0;
771 color: #333;
772 background:#fff;
773 font-weight: normal;
774 font-style: italic;
775 line-height: 12px;
776 border:0px;
777 border-bottom: 1px solid #ccc;
780 .clearing{clear:both;}
782 /*---------------------------------------------
783 Your Resources
784 -----------------------------------------------*/
786 .feeds {
787 border-bottom: 1px dotted #aaaaaa;
788 background: transparent url("{$CFG->wwwroot}_templates/sunflower.jpg") bottom right no-repeat;
791 .feed_content a {
792 color:black;
793 border:0px;
794 border-bottom:1px;
795 border-style:dotted;
796 border-color:#eee;
799 .feed_content a:hover{
800 background:#fff;
803 .feed_content img {
804 border: 1px solid #666666;
805 padding:5px;
808 .feed_content h3 {
809 padding:0 0 4px 0;
810 margin:0px;
813 .feed_content h3 a{
814 color:black;
815 border:0px;
816 border-bottom:1px;
817 border-style:dotted;
818 border-color:#eee;
821 .feed_content h3 a:hover{
822 background:#FCD63F;
823 color:#000;
826 .feed_date h2 {
827 font-size:13px;
828 line-height: 21px;
829 font-weight: bold;
830 padding: 5px 10px 5px 5px;
831 background: #D0DEDF;
832 color:#000;
833 text-decoration:none;
836 .via a {
837 font-size:80%;
838 color:#1181AA;
839 background:#fff;
840 border:0px;
841 border-bottom:1px;
842 border-style:dashed;
843 border-color:#ebebeb;
846 .via a:hover {
847 background:#ffc;
848 color:#1181AA;
852 /*---------------------------------------
853 SYSTEM MESSAGES
854 ---------------------------------------*/
856 #system_message{
857 border:1px solid #D3322A;
858 background:#F7DAD8;
859 color:#000;
860 padding:3px 50px;
861 margin:0 0 0 20px;
864 #system_message p{
865 padding:0px;
866 margin:2px;
870 /* ------------- help files -------------*/
872 .helpfiles ul {
873 font-family: arial, helvetica, Tahoma;
874 color: #000000;
875 background:#fff;
878 .helpfiles h4 {
882 /*------ site news for home.php ---------*/
884 .sitenews {
885 background:#ebebeb;
886 color:#000;
889 .sitenews h2 {
890 background:#1181AA;
891 color:#FAC83D;
892 padding:0 0 5px 0;
895 /*-------------------------------------
896 Input forms
897 --------------------------------------*/
899 .textarea {
900 border: 1px solid #7F9DB9;
901 color:#71717B;
902 width: 95%;
903 height:200px;
904 padding:3px;
907 .medium_textarea {
908 width:95%;
909 height:100px;
912 .small_textarea {
913 width:95%;
916 .keywords_textarea {
917 width:95%;
918 height:100px;
922 /*--------------------------------------
923 MISC
924 --------------------------------------*/
926 .clearall {
927 padding: 0px;
928 clear: both;
929 font-size: 0px;
932 .flagcontent {
933 background:#eee;
934 color:#000;
935 border:1px;
936 border-color:#000;
937 border-style:solid;
938 padding:3px;
941 .flagcontent h5 {
942 background:#eee;
943 color:#1181AA;
946 END;
948 $template_definition[] = array(
949 'id' => 'pageshell',
950 'name' => gettext("Page Shell"),
951 'description' => gettext("The main page shell, including headers and footers."),
952 'display' => 1,
953 'glossary' => array(
954 '{{metatags}}' => gettext("Page metatags (mandatory) - must be in the 'head' portion of the page"),
955 '{{title}}' => gettext("Page title"),
956 '{{menu}}' => gettext("Menu"),
957 '{{topmenu}}' => gettext("Status menu"),
958 '{{mainbody}}' => gettext("Main body"),
959 '{{sidebar}}' => gettext("Sidebar")
963 $welcome = gettext("Welcome"); // gettext variable
965 $template['pageshell'] = <<< END
967 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
968 <html xmlns="http://www.w3.org/1999/xhtml">
969 <head>
970 <title>{{title}}</title>
971 {{metatags}}
972 </head>
973 <body>
974 <!-- elgg banner and logo -->
975 <div id="container"><!-- start container -->
976 <div id="statusbar"><!-- start statusbar -->
977 <div id="welcome"><!-- start welcome -->
978 <p>$welcome {{userfullname}}</p>
979 </div><!-- end welcome -->
980 {{topmenu}}
981 </div><!-- end statusbar -->
982 <div id="header"><!-- start header -->
983 <h1>$sitename</h1>
984 <h2>Personal Learning Landscape</h2>
985 <ul id="navigation">
986 {{menu}}
987 </ul>
988 </div><!-- end header -->
989 <div id="content_holder"><!-- start contentholder -->
990 <div id="maincontent_container"><!-- start main content -->
991 {{messageshell}}
992 {{mainbody}}
993 </div><!-- end main content -->
994 <div id="sidebar_container">
995 <div id="sidebar"><!-- start sidebar -->
996 <ul><!-- open sidebar lists -->
997 {{sidebar}}
998 </ul>
999 </div><!-- end sidebar -->
1000 </div><!-- end sidebar_container -->
1001 </div><!-- end contentholder -->
1002 <div class="clearall" />
1003 <div id="footer"><!-- start footer -->
1004 <a href="http://elgg.net/"><img src="{$CFG->wwwroot}_templates/elgg_powered.png" alt="Powered by Elgg" title="Powered by Elgg" border="0" /></a>
1005 </div><!-- end footer -->
1006 </div><!-- end container -->
1007 </body>
1008 </html>
1010 END;
1012 $template_definition[] = array(
1013 'id' => 'contentholder',
1014 'name' => gettext("Content holder"),
1015 'description' => gettext("Contains the main content for a page (as opposed to the sidebar or the title)."),
1016 'glossary' => array(
1017 '{{title}}' => gettext("The title"),
1018 '{{submenu}}' => gettext("The page submenu"),
1019 '{{body}}' => gettext("The body of the page")
1023 $template['contentholder'] = <<< END
1025 <div id="maincontent_display">
1027 <h1>{{title}}</h1>
1028 {{submenu}}
1029 {{body}}
1030 </div>
1032 END;
1034 $template_definition[] = array(
1035 'id' => 'sidebarholder',
1036 'name' => gettext("Sidebar section holder"),
1037 'description' => gettext("Contains the sidebar section titles"),
1038 'glossary' => array(
1039 '{{title}}' => gettext("The header"),
1040 '{{body}}' => gettext("The body of the page")
1045 $template['sidebarholder'] = <<< END
1047 <h2>{{title}}</h2>
1048 {{body}}
1050 END;
1052 $template_definition[] = array(
1053 'id' => 'ownerbox',
1054 'name' => gettext("Owner box"),
1055 'description' => gettext("A box containing a description of the owner of the current profile."),
1056 'glossary' => array(
1057 '{{name}}' => gettext("The user's name"),
1058 '{{profileurl}}' => gettext("The URL of the user's profile page, including terminating slash"),
1059 '{{usericon}}' => gettext("The user's icon, if it exists"),
1060 '{{tagline}}' => gettext("A short blurb about the user"),
1061 '{{usermenu}}' => gettext("Links to friend / unfriend a user"),
1062 '{{lmshosts}}' => gettext("Links to any lms hosts the user is attached to"),
1067 $tags = gettext("Tags");
1068 $resources = gettext("Resources");
1069 $template['ownerbox'] = <<< END
1071 <div id="me">
1072 <div id="icon"><a href="{{profileurl}}">{{usericon}}</a></div>
1073 <div id="contents" ><p>
1074 <span class="userdetails">{{name}}<br /><a href="{{profileurl}}rss/">RSS</a> | <a href="{{profileurl}}tags/">$tags</a> | <a href="{{profileurl}}newsclient/">$resources</a></span></p>
1075 <p>{{tagline}}</p>
1076 <p>{{lmshosts}}</p>
1077 <p class="usermenu">{{usermenu}}</p>
1078 </div>
1079 </div>
1081 END;
1083 $template_definition[] = array(
1084 'id' => 'messageshell',
1085 'name' => gettext("System message shell"),
1086 'description' => gettext("A list of system messages will be placed within the message shell."),
1087 'glossary' => array(
1088 '{{messages}}' => gettext("The messages")
1092 $template['messageshell'] = <<< END
1094 <div id="system_message">{{messages}}</div><br />
1096 END;
1098 $template_definition[] = array(
1099 'id' => 'messages',
1100 'name' => gettext("Individual system messages"),
1101 'description' => gettext("Each individual system message."),
1102 'glossary' => array(
1103 '{{message}}' => gettext("The system message")
1107 $template['messages'] = <<< END
1110 {{message}}
1111 </p>
1113 END;
1116 $template_definition[] = array(
1117 'id' => 'menu',
1118 'name' => gettext("Main menu shell"),
1119 'description' => gettext("A list of main menu items will be placed within the menubar shell."),
1120 'glossary' => array(
1121 '{{menuitems}}' => gettext("The menu items")
1125 $template['menu'] = <<< END
1127 {{menuitems}}
1128 END;
1130 $template_definition[] = array(
1131 'id' => 'menuitem',
1132 'name' => gettext("Individual main menu item"),
1133 'description' => gettext("This is the template for each individual main menu item. A series of these is placed within the menubar shell template."),
1134 'glossary' => array(
1135 '{{location}}' => gettext("The URL of the menu item"),
1136 '{{name}}' => gettext("The menu item's name")
1140 $template['menuitem'] = <<< END
1142 <li><a href="{{location}}">{{name}}</a></li>
1144 END;
1146 $template_definition[] = array(
1147 'id' => 'selectedmenuitem',
1148 'name' => gettext("Selected individual main menu item"),
1149 'description' => gettext("This is the template for an individual main menu item if it is selected."),
1150 'glossary' => array(
1151 '{{location}}' => gettext("The URL of the menu item"),
1152 '{{name}}' => gettext("The menu item's name")
1156 $template['selectedmenuitem'] = <<< END
1158 <li><a class="current" href="{{location}}">{{name}}</a></li>
1160 END;
1162 $template_definition[] = array(
1163 'id' => 'submenu',
1164 'name' => gettext("Sub-menubar shell"),
1165 'description' => gettext("A list of sub-menu items will be placed within the menubar shell."),
1166 'glossary' => array(
1167 '{{submenuitems}}' => gettext("The menu items")
1171 $template['submenu'] = <<< END
1173 <div id="sub_menu">
1175 {{submenuitems}}
1176 </p>
1177 </div>
1178 END;
1180 $template_definition[] = array(
1181 'id' => 'submenuitem',
1182 'name' => gettext("Individual sub-menu item"),
1183 'description' => gettext("This is the template for each individual sub-menu item. A series of these is placed within the sub-menubar shell template."),
1184 'glossary' => array(
1185 '{{location}}' => gettext("The URL of the menu item"),
1186 '{{menu}}' => gettext("The menu item's name")
1190 $template['submenuitem'] = <<< END
1192 <a href="{{location}}">{{name}}</a>&nbsp;|
1194 END;
1196 $template_definition[] = array(
1197 'id' => 'topmenu',
1198 'name' => gettext("Status menubar shell"),
1199 'description' => gettext("A list of statusbar menu items will be placed within the status menubar shell."),
1200 'glossary' => array(
1201 '{{topmenuitems}}' => gettext("The menu items")
1205 $template['topmenu'] = <<< END
1207 <ul id="global_menuoptions">
1208 {{topmenuitems}}
1209 </ul>
1211 END;
1213 $template_definition[] = array(
1214 'id' => 'topmenuitem',
1215 'name' => gettext("Individual statusbar menu item"),
1216 'description' => gettext("This is the template for each individual statusbar menu item. A series of these is placed within the status menubar shell template."),
1217 'glossary' => array(
1218 '{{location}}' => gettext("The URL of the menu item"),
1219 '{{menu}}' => gettext("The menu item's name")
1223 $template['topmenuitem'] = <<< END
1225 <li><a href="{{location}}">[{{name}}]</a></li>
1227 END;
1229 $template_definition[] = array(
1230 'id' => 'databox',
1231 'name' => gettext("Data input box (two columns)"),
1232 'description' => gettext("This is mostly used whenever some input is taken from the user. For example, each of the fields in the profile edit screen is a data input box."),
1233 'glossary' => array(
1234 '{{name}}' => gettext("The name for the data we're inputting"),
1235 '{{column1}}' => gettext("The first item of data"),
1236 '{{column2}}' => gettext("The second item of data")
1240 $template['databox'] = <<< END
1242 <div class="infoholder_twocolumn">
1243 <div class="fieldname">
1244 <h3>{{name}}</h3>
1245 </div>
1246 <p>{{column1}}</p>
1247 <p>{{column2}}</p>
1248 </div>
1250 END;
1252 $template_definition[] = array(
1253 'id' => 'databox1',
1254 'name' => gettext("Data input box (one column)"),
1255 'description' => gettext("A single-column version of the data box."),
1256 'glossary' => array(
1257 '{{name}}' => gettext("The name of the data we're inputting"),
1258 '{{column1}}' => gettext("The data itself")
1262 $template['databox1'] = <<< END
1264 <div class="infoholder">
1265 <div class="fieldname">
1266 <h2>{{name}}</h2>
1267 </div>
1268 <p>{{column1}}</p>
1269 </div>
1271 END;
1273 $template_definition[] = array(
1274 'id' => 'adminTable',
1275 'name' => gettext("adminTable"),
1276 'description' => gettext("This table is used to house stats and administration details until a good CSS solution can be applied."),
1277 'glossary' => array(
1278 '{{name}}' => gettext("Column One"),
1279 '{{column1}}' => gettext("Column Two"),
1280 '{{column2}}' => gettext("Column Three")
1284 $template['adminTable'] = <<< END
1286 <div class="admin_datatable">
1287 <table width="80%">
1288 <tr>
1289 <td width="25%" valign="top">
1290 {{name}}
1291 </td>
1292 <td width="45%" valign="top">
1293 {{column1}}
1294 </td>
1295 <td width="30%" valign="top">
1296 {{column2}}
1297 </td>
1298 </tr>
1299 </table>
1300 </div>
1302 END;
1304 $template_definition[] = array(
1305 'id' => 'flagContent',
1306 'name' => gettext("flagContent"),
1307 'description' => gettext("This holds the flag content function throughout Elgg"),
1308 'glossary' => array(
1309 '{{name}}' => gettext("Column One"),
1310 '{{column1}}' => gettext("Column Two"),
1311 '{{column2}}' => gettext("Column Three")
1315 $template['flagContent'] = <<< END
1317 <div class="flagcontent">
1318 {{name}}
1319 {{column1}}
1320 {{column2}}
1321 </div>
1323 END;
1325 $template_definition[] = array(
1326 'id' => 'databoxvertical',
1327 'name' => gettext("Data input box (vertical)"),
1328 'description' => gettext("A slightly different version of the data box, used on this edit page amongst other places."),
1329 'glossary' => array(
1330 '{{name}}' => gettext("Name of the data we\'re inputting"),
1331 '{{contents}}' => gettext("The data itself")
1335 $template['databoxvertical'] = <<< END
1336 <div class="databox_vertical">
1337 <div class="fieldname">
1338 <h3>{{name}}</h3>
1339 </div>
1340 <p>{{contents}}</p>
1341 </div>
1343 END;