Login
Electron Meat
Blake
_readme
_prototypes
_readme
_config
_navigation
_templates_config
_templates_content
_templates_lua
_style
_style2
Edit
|
History
|
Content page templates
Don't put anything here
Don't put anything here
Don't put anything here
Don't put anything here
Page Parameters
Page Name (for URL)
Page Title
Don't put anything here
Don't put anything here
Show Advanced Options
Category
Prototype
Templates
Translations
Permissions
Actions
Config
Fields
Edit UI
Page Content
--- this is the template that generates the outer tags of the page --- TRANSLATIONS = "Translations:Main" -------------------------------------------------------------------------------- ------- BASIC TEMPLATES -------------------------------------------------------- -------------------------------------------------------------------------------- MAIN = [===[ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> $if_no_index[[ <meta name="ROBOTS" content="NOINDEX, NOFOLLOW"/> ]] <title>$site_title: $title</title> ]===]--[===[ $do_stylesheets[[ <!--<link type="text/css" rel="stylesheet" href="$url" />--> ]] ]===]..[===[ <link type="text/css" rel="stylesheet" href="]===]..NICE_URL..[===[_style.css" /> <link type="text/css" rel="stylesheet" href="]===]..NICE_URL..[===[_style2.css" /> <link rel="alternate" type="application/rss+xml" title="_(RECENT_EDITS_TO_SITE)" $site_rss_link/> <link rel="alternate" type="application/rss+xml" title="_(RECENT_EDITS_TO_node)" $node_rss_link/> <link rel="icon" href="/favicon.ico" type="image/x-icon" /> </head> <body> <div id="top"> <h1> </h1> </div> <div id="page"> <div id="wrapper3col"> <div id="main"> <div id="content"> <div class="post"> <h2 class="post-title">$title</h2> $content <p class="post-info"> ]===]--[===[ Par Doub | mardi 29 janvier 2008 à 02:58 | <a href="/doub/index.php?Electron-meat">Electron Meat</a> | <a href="/doub/index.php?2008/01/29/210-optimisations" title="Lien permanent vers : Optimisations"><img src="/doub/themes/doub19th/img/permalien.png" alt="Permalien" /></a> | <a href="/doub/rss.php?type=co&post=210" title="fil RSS des commentaires de : Optimisations"><img src="/doub/themes/doub19th/img/rss_comment.png" alt="RSS" /></a> | <a $node_rss_link><img src="$icons_url/feed-icon-12x12.png" class="rss_icon" title="RSS for edits to this node" alt="Small RSS Icon" /></a> ]===]..[===[ <a $edit_link>_(EDIT)</a> | <a $history_link>_(HISTORY)</a> | <a $node_rss_link><img src="/img/rss_comment.png" class="rss_icon" title="RSS for edits to this node" alt="Small RSS Icon" /></a> </p> ]===]--[===[ <div id='doc2' class='yui-t4'> <div id="login"> <!--login and search (in the upper right corner) --> $if_search[[<form action="$base_url" style="margin-right: 0px; padding-right: 0px;"> <input class="hidden" type="hidden" name="p" value="_search"/> <input class="search_box" type="text" name="q" size="16" value="$search_box_content"/> <input class="small_submit" type="submit" name="Search" value="_(SEARCH)" title="_(TOOLTIP_FOR_SEARCH)"/></form><br/>]] $if_logged_in[[ _(HI_USER) (<a $logout_link>_(LOGOUT)</a>) ]] $if_not_logged_in[[<a $login_link>_(LOGIN)</a>]] <a $site_rss_link><img src="$icons_url/feed-icon-12x12.png" id="rss_icon" title="RSS for edits to this wiki" alt="Small RSS Icon" /></a> </div> <!-- <div id="logo"> <a class="logo" href="$home_page_url"> <img src="$logo_url" alt="_(LOGO)" /> </a> </div> --> <div id='hd'><!--navigation bar -->$nav_bar</div> <div id='bd'><!--the body, consisting of the page and the sidebar--> <div id="yui-main" $if_old_version[[style='background-color:#ddd;']]><!--this just marks the page as "main" --> <div class="yui-b" id='page'> <span class="toolbar"> <a $edit_link >_(EDIT)</a> | <a $history_link>_(HISTORY)</a> | <a $node_rss_link><img src="$icons_url/feed-icon-12x12.png" class="rss_icon" title="RSS for edits to this node" alt="Small RSS Icon" /></a> </span> <h1 class="title"><a $show_link >$title</a> $if_old_version[[<span class="from_version">($version)</span>]]</h1> <div class='content'>$content</div> </div> <!-- end of div .yui-b#page --> </div> <!-- end of div #yui-main (end of body)--> <div class="yui-b" id="sidebar">$sidebar</div> </div> <!-- end of div #bd --> _(POWERED_BY_SPUTNIK) </div> <!-- end of div.yui-t4#doc2 --> <br/> ]===]..[===[ </div> ]===]--[===[ <div id="comments"> <h3 id="co">Comments</h3> <p>No comment yet.</p> <h3>Add a comment</h3> </div> <div id="trackbacks"> <h3 id="tb">Trackbacks</h3> <p>Aucun trackback.</p> <p>Pour faire un tracback sur ce billet : http://blogs.lifelongvirgins.net/doub/tb.php?id=208</p> </div> ]===]..[===[ </div> </div> <div class="sidebar" id="sidebar2"> <div id="sidebarheader"></div> <div class="sidebar" id="sidebar3"> <div id="login"> $if_logged_in[[ _(HI_USER) (<a $logout_link>_(LOGOUT)</a>) ]] $if_not_logged_in[[<a $login_link>_(LOGIN)</a>]] <!-- <a $site_rss_link><img src="$icons_url/feed-icon-12x12.png" id="rss_icon" title="RSS for edits to this site" alt="Small RSS Icon" /></a>--> </div> <div id="search"> <h2><label for="q">Search</label></h2> <form action="/doub/index.php" method="get"> <p class="field"> <input name="q" id="q" type="text" size="15" value="" accesskey="4" /> <input type="submit" class="submit" value="ok" /> </p> </form> $if_search[[ <form action="$base_url" style="margin-right: 0px; padding-right: 0px;"> <input class="hidden" type="hidden" name="p" value="_search"/> <input class="search_box" type="text" name="q" size="16" value="$search_box_content"/> <input class="small_submit" type="submit" name="Search" value="_(SEARCH)" title="_(TOOLTIP_FOR_SEARCH)"/> </form><br/> ]] </div> <div id="syndicate"> <!-- <h2>Coulisses</h2>--> <ul> <li><a $site_rss_link><img src="/img/rss_1.png" alt="fil RSS 1.0" /></a></li> <!-- <li><a href="/doub/rss.php?type=co"><img src="/doub/themes/doub19th/img/rss_co.png" alt="fil RSS Commentaires" /></a></li> <li><a href="/doub/atom.php"><img src="/doub/themes/doub19th/img/atom_03.png" alt="fil Atom 0.3" /></a></li> <li><a href="/doub/atom.php?type=co"><img src="/doub/themes/doub19th/img/atom_co.png" alt="fil Atom Commentaires" /></a></li> <li><a href="http://www.mozilla.org/projects/seamonkey/"><img src="/doub/themes/doub19th/img/seamonkey.png" alt="Get Seamonkey!" /></a></li> <li><a href="http://www.mozilla-europe.org/fr/products/firefox/"><img src="/doub/themes/doub19th/img/firefox.png" alt="Get Firefox!" /></a></li> <li><a href="http://httpd.apache.org/"><img src="/doub/themes/doub19th/img/apache.png" alt="Powered by Apache" /></a></li> <li><a href="http://www.mysql.com/"><img src="/doub/themes/doub19th/img/mysql.png" alt="Powered by MySQL" /></a></li> <li><a href="http://www.php.net/"><img src="/doub/themes/doub19th/img/php.png" alt="Powered by PHP" /></a></li> <li><a href="http://www.dotclear.net/"><img src="/doub/themes/doub19th/img/dotclear.png" alt="propulsé par DotClear" /></a></li> --> <li><a href="http://www.arvixe.com"><img src="/img/arvixe.png" alt="Arvixe Web Hosting" /></a></li> </ul> </div> </div> </div> </div> <!-- id="wrapper3col" --> <div class="sidebar" id="sidebar"> <div id="navigation"> $flat_nav_bar </div> </div> <hr class="invisible" /> </div> <!-- end #page --> <p id="footer"> _(POWERED_BY_SPUTNIK) </p> </body> </html> ]===] NAV_BAR = [===[ <h2>Sections</h2> <ul id='menu'> $do_sections[[ <li class='$class' id='$id'><a $link>$label</a></li> ]] </ul> <h2>Sub-sections</h2> <ul id='submenu'> $do_subsections[[ <li class='$class'><a $link>$label</a></li> ]] </ul> ]===] FLAT_NAV_BAR = [===[ $do_sections[=[ <h2 id='$id'>$label</h2> <ul id='$id'> $do_subsections[[ <li class='$class'><a $link>$label</a></li> ]] </ul> ]=]]===] LOGGED_OUT = [===[_(YOU_ARE_NOW_LOGGED_OUT)]===] -------------------------------------------------------------------------------- ------- HISTORY, ETC ----------------------------------------------------------- -------------------------------------------------------------------------------- DATE_SELECTOR = [===[ <div id="date_selector" style="border:1px solid #bbb; background: #eee8aa; padding: 5 5 5 5"> _(CHANGES_BY_DATE) ($current_month): <span class="history_dates"> $do_dates[=[$if_current_date[[$date]]|[[<a $date_link>$date</a>]] ]=] </span> <br/> _(CHOOSE_ANOTHER_MONTH) ($current_year) : <span class="history_months"> $do_months[=[$if_current_month[[$month]]$if_other_month[[<a $month_link>$month</a>]] ]=] </span> <br/> </div> <!-- end of "date_selector" div--> <br/> ]===] HISTORY = [===[ <form action="$base_url"> <input type="hidden" class="hidden" name="p" value="$node_name.diff"/> <input type="submit" value="_(DIFF_SELECTED_VERSIONS)"/> <table width="100%"> <tbody> $do_revisions[==[ <tr> <td width="100px" $if_minor[[bgcolor="#f0f0f0"]]> <a $version_link>$version</a> </td> <td width="5px" $if_minor[[bgcolor="#f0f0f0"]]> <input class="diff_radio" type="radio" value="$version" name="other"/> </td> <td width="5px" $if_minor[[bgcolor="#f0f0f0"]]> <input class="diff_radio" type="radio" value="$version" name="version"/> </td> <td width="50%" $if_minor[[bgcolor="#f0f0f0"]]> _(BY_AUTHOR) $if_summary[[<ul><li>$summary</li></ul>]] </td> </tr> ]==] </tbody> </table> </form> ]===] COMPLETE_HISTORY = [===[ <table width="100%"> <tbody> $do_revisions[==[ <tr> <td width="50px" $if_stale[[style="display:none"]] rowspan="$row_span"> <a $latest_link>$title</a> <a class="help" $history_link>_(HISTORY)</a> </td> <td width="100px" $if_minor[[bgcolor="#f0f0f0"]]> <a $version_link>$version</a> <a class="help" $diff_link>_(DIFF)</a> </td> <td width="50%" $if_minor[[bgcolor="#f0f0f0"]]> _(BY_AUTHOR) $if_summary[[<ul><li>$summary</li></ul>]] </td> </tr> ]==] </tbody> </table> ]===] DIFF = [===[ <ul> <li><a $link1><ins class='diffmod'>$version1</ins></a>_(BY_AUTHOR1)</li> <li><a $link2><del class='diffmod'>$version2</del></a>_(BY_AUTHOR2)</li> </ul> $diff ]===] RSS = [===[<rss version="2.0"> <channel> <title>$title</title> <description/> <link>$baseurl</link> $items[[ <item> <link>$link</link> <title>$title</title> <guid isPermalink="$ispermalink">$guid</guid> <description>$summary</description> </item>]] </channel> </rss> ]===] LIST_OF_ALL_PAGES = [===[ <H2>Regular Nodes</H2> $do_regular_nodes[[<a href="$url">$name</a><br/>]] <H2>Special Nodes</H2> $do_special_nodes[[<a href="$url">$name</a><br/>]] ]===] SITEMAP_XML = [===[<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> $do_urls[[<url> <loc>$url</loc> <lastmod>$lastmod</lastmod> <changefreq>$changefreq</changefreq> <priority>$priority</priority> </url>]] </urlset> ]===] -------------------------------------------------------------------------------- ------- MISCELLANEOUS ---------------------------------------------------------- -------------------------------------------------------------------------------- EDIT = [===[ $if_try_again[[ <br/><font color='red'><b>$alert</b></font><br/><br/> ]] <form method="post" action="$action_url"> <script type="text/javascript"> function toggleElements(class_name) { var re = new RegExp('\\b' + "advanced_field" + '\\b'); var els = document.getElementsByTagName("div"); for(var i=0,j=els.length; i<j; i++) { var elem = els[i]; if(re.test(elem.className)) { if (elem.style.display=="block") { elem.style.display = "none"; document.getElementById("toggle_advanced_fields").innerHTML="_(SHOW_ADVANCED_OPTIONS)" } else { elem.style.display = "block"; document.getElementById("toggle_advanced_fields").innerHTML="_(HIDE_ADVANCED_OPTIONS)" } } } } function expandTextArea() { var elem = document.getElementById("main_text_area"); elem.style.width="915px"; elem.style.height="800px"; elem.style.margin="10px 10px 10px -205px"; } </script> <input class="hidden" type="hidden" name="p" value="$node_name.post"/> <input class="hidden" type="hidden" name="post_token" value="$post_token"/> <input class="hidden" type="hidden" name="post_timestamp" value="$post_timestamp"/> <input class="hidden" type="hidden" name="post_fields" value="$post_fields"/> $if_preview[[ <h2>_(PREVIEWING_UNSAVED_CHANGES)</h2> <div class="preview">$preview</div> <a href="#new_page_content_header" class="button">_(CHANGE)</a> <input class="submit" type="submit" accesskey="s" name="action_save" value="_(SAVE)"/> <input class="submit" type="submit" accesskey="c" name="action_show" value="_(CANCEL)"/> <br/> ]] $html_for_fields <input class="submit" type="submit" accesskey="s" name="action_save" value="_(SAVE)"/> <input class="submit" type="submit" accesskey="p" name="action_preview" value="_(PREVIEW)"/> <input class="submit" type="submit" accesskey="c" name="action_show" value="_(CANCEL)"/> </form> ]===] EDIT_FORM_HEADER = [[<a name="$anchor"></a><h2>$label</h2>]] EDIT_FORM_NOTE = [[<h3>$label</h3>]] EDIT_FORM_LABEL = [[<label>$label</label>]] EDIT_FORM_HONEYPOT = [[<input type="text" value="$value" name="$name"/>]] EDIT_FORM_TEXT_FIELD = [[<input type="text" value="$value" name="$name"/>]] EDIT_FORM_READONLY_TEXT = [[<input type="text" value="$value" name="$name" class="readonly" readonly="readonly" />]] EDIT_FORM_PASSWORD = [[<input type="password" value="$value" name="$name" size="20"></input>]] --EDIT_FORM_TEXTAREA = [[<textarea class="small" name="$name" rows="$rows">$value</textarea>]] EDIT_FORM_TEXTAREA = [[<textarea class="small" name="$name">$value</textarea>]] --EDIT_FORM_BIG_TEXTAREA = [[<textarea name="$name" id="main_text_area" rows="$rows" wrap="off">$value</textarea><br/> -- <a href="#" onclick="expandTextArea(); return false;">expand</a>]] EDIT_FORM_BIG_TEXTAREA = [[<textarea name="$name" id="main_text_area" rows="$rows">$value</textarea><br/> <a href="#" onclick="expandTextArea(); return false;">expand</a>]] EDIT_FORM_CHECKBOX = [[<input class="checkbox" style="border:1px solid black" type="checkbox" name="$name" value="yes" $if_checked[=[checked="checked"]=] /><br/>]] EDIT_FORM_SELECT = [[<select name="$name"> $do_options[===[<option $if_selected[=[selected="yes"]=]>$option</option>]===] </select>]] EDIT_FORM_SHOW_ADVANCED = [[<a id="more_fields" href="#" class="local" onclick="toggleElements('advanced_field')"> <div id="toggle_advanced_fields">_(SHOW_ADVANCED_OPTIONS)</div></a>]] LOGIN_FORM = [===[ $if_try_again[[ <br/><font color='red'><b>$alert</b></font><br/><br/> ]] <form method="post" action="$action_url"> <input class="hidden" type="hidden" name="p" value="$node_name.post"/> <input class="hidden" type="hidden" name="post_token" value="$post_token"/> <input class="hidden" type="hidden" name="post_timestamp" value="$post_timestamp"/> <input class="hidden" type="hidden" name="post_fields" value="$post_fields"/> $html_for_fields <input class="submit" type="submit" accesskey="c" name="action_show_login_form" value="_(LOGIN)"/> </form> ]===] -------------------------------------------------------------------------------- ------- DEALING WITH LUA CODE -------------------------------------------------- -------------------------------------------------------------------------------- LUA_CODE = [===[ $if_ok[[<font color="green">_(THIS_LUA_CODE_PARSES_CORRECTLY)</font>]] $if_errors[[ <font color='red'> <p><b>_(THIS_LUA_CODE_HAS_PROBLEMS)</b></p> <code> $errors </code> </font>]] <div width="100%"> <style> table.code { width: 100%; border-collapse: collapse background: red; border-style: none; } table.body { background: yellow; } table.code tbody th { font-size: 90%; } table.code tbody th a{ text-decoration: none; color: white; } table.code th.lineno { width: 4em; } table.code th.bad { background: red; } table.code tbody td { //font: normal 120% monospace; border: none; //color: black; } table.code tbody td code { background: white; } table.code tbody td code.bad{ background: yellow; } </style> <table class="code"> <tbody> $do_lines[[ <tr> <th id="L$i" class="$class"><a href="#L$i">$i</a></th> <td><code class="$class">$line</code></td> </tr> ]] </tbody> </table> </div> ]===] ACTION_NOT_FOUND = [===[ <div class="error_message"> <p>_(PAGE_DOES_NOT_SUPPORT_ACTION)</p> $if_custom_actions[[ <p>_(THIS_PAGE_DEFINED_THE_FOLLOWING_ACTIONS)</p> <pre><code>$actions</code></pre> ]] </div> ]===]
expand
About this Edit
Minor Edit
Edit Summary
Login or create a new user
User
Password
Powered by
Sputnik