Shlomi Fish avatar Shlomi Fish committed 4ab5f7a

Extract a common include.

Comments (0)

Files changed (3)

lib/jqui_tabs_multi_lang.wml

+#include "jqui_tabs.wml"
+
+<define-tag en endtag="required">
+{#EN#:%body:##}
+</define-tag>
+
+<define-tag he endtag="required">
+{#HE#:%body:##}
+</define-tag>
+
+<define-tag lip endtag="required">
+<li>
+<p>
+%body
+</p>
+</li>
+</define-tag>
+
+<define-tag both endtag="required">
+<en>%body</en><he>%body</he>
+</define-tag>
+
+<define-tag item_en endtag="required">
+<en>
+<lip>
+%body
+</lip>
+</en>
+</define-tag>
+
+<define-tag item_he endtag="required">
+<he>
+<lip>
+%body
+</lip>
+</he>
+</define-tag>
+
+<define-tag non_trans_en endtag="required">
+<en>%body</en>
+</define-tag>
+
+<define-tag non_trans_he endtag="required">
+<he>%body</he>
+</define-tag>

t2/humour/RoadToHeaven/abstract.xhtml.wml

 #include '../template.wml'
-#include "jqui_tabs.wml"
+#include "jqui_tabs_multi_lang.wml"
 
 <latemp_subject "Abstract of the Story “The Road to Heaven is Paved with Bad Intentions”" />
 <latemp_meta_desc "Abstract of the Story “The Road to Heaven is Paved with Bad Intentions” - a proposed sequel to “The Enemy and How I Helped to Fight it”." />
 
-<define-tag en endtag="required">
-{#EN#:%body:##}
-</define-tag>
-
-<define-tag he endtag="required">
-{#HE#:%body:##}
-</define-tag>
-
-<define-tag both endtag="required">
-<en>%body</en><he>%body</he>
-</define-tag>
-
-<define-tag item_en endtag="required">
-<en>
-<li>
-<p>
-%body
-</p>
-</li>
-</en>
-</define-tag>
-
-<define-tag item_he endtag="required">
-<he>
-<li>
-<p>
-%body
-</p>
-</li>
-</he>
-</define-tag>
-
 <en>
 <p style="margin-top: 4em">
 This is the sequel to the story “The Enemy and How I Helped to Fight it”.

t2/humour/bits/facts/Chuck-Norris/index.html.wml

 #include '../template.wml'
-#include "jqui_tabs.wml"
 #include "stories/facts.wml"
+#include "jqui_tabs_multi_lang.wml"
 
 <latemp_subject "Chuck Norris Facts" />
 <latemp_meta_desc "Additional Chuck Norris Factoids by Shlomi Fish and Friends. No one is as tough as Norris." />
 
-<define-tag en endtag="required">
-{#EN#:%body:##}
-</define-tag>
-
-<define-tag he endtag="required">
-{#HE#:%body:##}
-</define-tag>
-
-<define-tag lip endtag="required">
-<li>
-<p>
-%body
-</p>
-</li>
-</define-tag>
-
-<define-tag both endtag="required">
-<en>%body</en><he>%body</he>
-</define-tag>
-
-<define-tag item_en endtag="required">
-<en>
-<lip>
-%body
-</lip>
-</en>
-</define-tag>
-
-<define-tag item_he endtag="required">
-<he>
-<lip>
-%body
-</lip>
-</he>
-</define-tag>
-
 <p>
 These are additions to <a href="http://www.chucknorrisfacts.com/">the
 Chuck Norris facts</a> by my Internet friends and by me. Most of them are kinda
 
 
 
-<define-tag non_trans_en endtag="required">
-<en>%body</en>
-</define-tag>
-
-
-<define-tag non_trans_he endtag="required">
-<he>%body</he>
-</define-tag>
 
 <h2 id="facts">Chuck Norris Facts</h2>
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.