update addons template dir layout
authorfabrixxm <fabrix.xm@gmail.com>
Tue, 23 Apr 2013 12:48:19 +0000 (08:48 -0400)
committerfabrixxm <fabrix.xm@gmail.com>
Tue, 23 Apr 2013 12:48:19 +0000 (08:48 -0400)
79 files changed:
altpager/templates/admin.tpl [new file with mode: 0644]
altpager/view/admin.tpl [deleted file]
altpager/view/admin.tpl.old [deleted file]
altpager/view/smarty3/admin.tpl [deleted file]
blackout/templates/admin.tpl [new file with mode: 0644]
blackout/view/admin.tpl [deleted file]
blackout/view/smarty3/admin.tpl [deleted file]
communityhome/templates/communityhome.tpl [new file with mode: 0644]
communityhome/templates/directory_item.tpl [new file with mode: 0644]
communityhome/view/communityhome.tpl [deleted file]
communityhome/view/directory_item.tpl [deleted file]
communityhome/view/smarty3/communityhome.tpl [deleted file]
communityhome/view/smarty3/directory_item.tpl [deleted file]
defaultfeatures/templates/admin.tpl [new file with mode: 0644]
defaultfeatures/view/admin.tpl [deleted file]
defaultfeatures/view/smarty3/admin.tpl [deleted file]
forumdirectory/templates/forumdirectory_item.tpl [new file with mode: 0644]
forumdirectory/view/forumdirectory_item.tpl [deleted file]
forumdirectory/view/smarty3/forumdirectory_item.tpl [deleted file]
gravatar/templates/admin.tpl [new file with mode: 0644]
gravatar/view/admin.tpl [deleted file]
gravatar/view/smarty3/admin.tpl [deleted file]
impressum/templates/admin.tpl [new file with mode: 0644]
impressum/view/admin.tpl [deleted file]
impressum/view/smarty3/admin.tpl [deleted file]
libravatar/templates/admin.tpl [new file with mode: 0644]
libravatar/view/admin.tpl [deleted file]
libravatar/view/smarty3/admin.tpl [deleted file]
mailstream/templates/admin.tpl [new file with mode: 0644]
mailstream/templates/mail.tpl [new file with mode: 0644]
mailstream/templates/settings.tpl [new file with mode: 0644]
mailstream/view/admin.tpl [deleted file]
mailstream/view/mail.tpl [deleted file]
mailstream/view/settings.tpl [deleted file]
mailstream/view/smarty3/admin.tpl [deleted file]
mailstream/view/smarty3/mail.tpl [deleted file]
mailstream/view/smarty3/settings.tpl [deleted file]
mathjax/templates/admin.tpl [new file with mode: 0644]
mathjax/view/admin.tpl [deleted file]
mathjax/view/smarty3/admin.tpl [deleted file]
openstreetmap/templates/admin.tpl [new file with mode: 0644]
openstreetmap/view/admin.tpl [deleted file]
openstreetmap/view/smarty3/admin.tpl [deleted file]
piwik/templates/admin.tpl [new file with mode: 0644]
piwik/view/admin.tpl [deleted file]
piwik/view/smarty3/admin.tpl [deleted file]
remote_permissions/templates/admin.tpl [new file with mode: 0644]
remote_permissions/templates/settings.tpl [new file with mode: 0644]
remote_permissions/view/admin.tpl [deleted file]
remote_permissions/view/settings.tpl [deleted file]
remote_permissions/view/smarty3/admin.tpl [deleted file]
remote_permissions/view/smarty3/settings.tpl [deleted file]
retriever/templates/extract.tpl [new file with mode: 0644]
retriever/templates/help.tpl [new file with mode: 0644]
retriever/templates/rule-config.tpl [new file with mode: 0644]
retriever/templates/settings.tpl [new file with mode: 0644]
retriever/view/extract.tpl [deleted file]
retriever/view/help.tpl [deleted file]
retriever/view/rule-config.tpl [deleted file]
retriever/view/settings.tpl [deleted file]
retriever/view/smarty3/extract.tpl [deleted file]
retriever/view/smarty3/help.tpl [deleted file]
retriever/view/smarty3/rule-config.tpl [deleted file]
retriever/view/smarty3/settings.tpl [deleted file]
statusnet/templates/admin.tpl [new file with mode: 0644]
statusnet/view/admin.tpl [deleted file]
statusnet/view/smarty3/admin.tpl [deleted file]
twitter/templates/admin.tpl [new file with mode: 0644]
twitter/view/admin.tpl [deleted file]
twitter/view/smarty3/admin.tpl [deleted file]
uhremotestorage/templates/settings.tpl [new file with mode: 0644]
uhremotestorage/view/settings.tpl [deleted file]
uhremotestorage/view/smarty3/settings.tpl [deleted file]
widgets/templates/settings.tpl [new file with mode: 0644]
widgets/templates/widget_like.tpl [new file with mode: 0644]
widgets/view/settings.tpl [deleted file]
widgets/view/smarty3/settings.tpl [deleted file]
widgets/view/smarty3/widget_like.tpl [deleted file]
widgets/view/widget_like.tpl [deleted file]

diff --git a/altpager/templates/admin.tpl b/altpager/templates/admin.tpl
new file mode 100644 (file)
index 0000000..e67afd7
--- /dev/null
@@ -0,0 +1,3 @@
+{{include file="field_radio.tpl" field=$global}}
+{{include file="field_radio.tpl" field=$individual}}
+<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/altpager/view/admin.tpl b/altpager/view/admin.tpl
deleted file mode 100644 (file)
index 6055880..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-{{ inc field_radio.tpl with $field=$global }}{{ endinc }}
-{{ inc field_radio.tpl with $field=$individual }}{{ endinc }}
-<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
diff --git a/altpager/view/admin.tpl.old b/altpager/view/admin.tpl.old
deleted file mode 100755 (executable)
index 6055880..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-{{ inc field_radio.tpl with $field=$global }}{{ endinc }}
-{{ inc field_radio.tpl with $field=$individual }}{{ endinc }}
-<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
diff --git a/altpager/view/smarty3/admin.tpl b/altpager/view/smarty3/admin.tpl
deleted file mode 100644 (file)
index e67afd7..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-{{include file="field_radio.tpl" field=$global}}
-{{include file="field_radio.tpl" field=$individual}}
-<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/blackout/templates/admin.tpl b/blackout/templates/admin.tpl
new file mode 100644 (file)
index 0000000..11a4d91
--- /dev/null
@@ -0,0 +1,11 @@
+{{include file="field_input.tpl" field=$startdate}}
+{{include file="field_input.tpl" field=$enddate}}
+{{include file="field_input.tpl" field=$rurl}}
+
+<div style="border: 2px solid #f00; padding: 10px; margin:
+10px;font-size: 1.2em;"><strong>Note</strong>: The redirect will be active from the moment you
+press the submit button. Users currently logged in will <strong>not</strong> be
+thrown out but can't login again after logging out should the blackout is
+still in place.</div>
+
+<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/blackout/view/admin.tpl b/blackout/view/admin.tpl
deleted file mode 100644 (file)
index 2592219..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-{{ inc field_input.tpl with $field=$startdate }}{{ endinc }}
-{{ inc field_input.tpl with $field=$enddate }}{{ endinc }}
-{{ inc field_input.tpl with $field=$rurl }}{{ endinc }}
-
-<div style="border: 2px solid #f00; padding: 10px; margin:
-10px;font-size: 1.2em;"><strong>Note</strong>: The redirect will be active from the moment you
-press the submit button. Users currently logged in will <strong>not</strong> be
-thrown out but can't login again after logging out should the blackout is
-still in place.</div>
-
-<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
diff --git a/blackout/view/smarty3/admin.tpl b/blackout/view/smarty3/admin.tpl
deleted file mode 100644 (file)
index 11a4d91..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-{{include file="field_input.tpl" field=$startdate}}
-{{include file="field_input.tpl" field=$enddate}}
-{{include file="field_input.tpl" field=$rurl}}
-
-<div style="border: 2px solid #f00; padding: 10px; margin:
-10px;font-size: 1.2em;"><strong>Note</strong>: The redirect will be active from the moment you
-press the submit button. Users currently logged in will <strong>not</strong> be
-thrown out but can't login again after logging out should the blackout is
-still in place.</div>
-
-<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/communityhome/templates/communityhome.tpl b/communityhome/templates/communityhome.tpl
new file mode 100644 (file)
index 0000000..b8f8038
--- /dev/null
@@ -0,0 +1,70 @@
+<script>
+       $(function(){
+               $("#tab_1 a").click(function(e){
+                       $("#login_standard").show();
+                       $("#login_openid").hide();
+                       $("#tab_1").addClass("active");
+                       $("#tab_2").removeClass("active");
+                       e.preventDefault();
+                       return false;
+               });
+               $("#tab_2 a").click(function(e){
+                       $("#login_openid").show();
+                       $("#login_standard").hide();
+                       $("#tab_2").addClass("active");
+                       $("#tab_1").removeClass("active");
+                       e.preventDefault();
+                       return false;
+                       
+               });
+               
+       });
+</script>
+{{if $noOid}}
+       <h3>{{$login_title}}</h3>
+{{else}}
+<ul class="tabs">
+       <li id="tab_1" class="tab button active"><a href="#">{{$tab_1}}</a></li>
+       <li id="tab_2" class="tab button"><a href="#">{{$tab_2}}</a></li>
+</ul>
+{{/if}}
+{{$login_form}}
+
+
+{{if $lastusers_title}}
+<h3>{{$lastusers_title}}</h3>
+<div class='items-wrapper'>
+{{foreach $lastusers_items as $i}}
+       {{$i}}
+{{/foreach}}
+</div>
+{{/if}}
+
+
+{{if $activeusers_title}}
+<h3>{{$activeusers_title}}</h3>
+<div class='items-wrapper'>
+{{foreach $activeusers_items as $i}}
+       {{$i}}
+{{/foreach}}
+</div>
+{{/if}}
+
+{{if $photos_title}}
+<h3>{{$photos_title}}</h3>
+<div class='items-wrapper'>
+{{foreach $photos_items as $i}}
+       {{$i}}
+{{/foreach}}
+</div>
+{{/if}}
+
+
+{{if $like_title}}
+<h3>{{$like_title}}</h3>
+<ul id='likes'>
+{{foreach $like_items as $i}}
+       <li>{{$i}}</li>
+{{/foreach}}
+</ul>
+{{/if}}
diff --git a/communityhome/templates/directory_item.tpl b/communityhome/templates/directory_item.tpl
new file mode 100644 (file)
index 0000000..5fb1198
--- /dev/null
@@ -0,0 +1,10 @@
+
+<div class="directory-item" id="directory-item-{{$id}}" >
+       <div class="directory-photo-wrapper" id="directory-photo-wrapper-{{$id}}" > 
+               <div class="directory-photo" id="directory-photo-{{$id}}" >
+                       <a href="{{$profile}}-link" class="directory-profile-link" id="directory-profile-link-{{$id}}" >
+                               <img class="directory-photo-img" src="{{$photo}}" alt="{{$alt}}-text" title="{{$alt}}-text" />
+                       </a>
+               </div>
+       </div>
+</div>
diff --git a/communityhome/view/communityhome.tpl b/communityhome/view/communityhome.tpl
deleted file mode 100755 (executable)
index 8468780..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<script>
-       $(function(){
-               $("#tab_1 a").click(function(e){
-                       $("#login_standard").show();
-                       $("#login_openid").hide();
-                       $("#tab_1").addClass("active");
-                       $("#tab_2").removeClass("active");
-                       e.preventDefault();
-                       return false;
-               });
-               $("#tab_2 a").click(function(e){
-                       $("#login_openid").show();
-                       $("#login_standard").hide();
-                       $("#tab_2").addClass("active");
-                       $("#tab_1").removeClass("active");
-                       e.preventDefault();
-                       return false;
-                       
-               });
-               
-       });
-</script>
-{{ if $noOid }}
-       <h3>$login_title</h3>
-{{ else }}
-<ul class="tabs">
-       <li id="tab_1" class="tab button active"><a href="#">$tab_1</a></li>
-       <li id="tab_2" class="tab button"><a href="#">$tab_2</a></li>
-</ul>
-{{ endif }}
-$login_form
-
-
-{{ if $lastusers_title }}
-<h3>$lastusers_title</h3>
-<div class='items-wrapper'>
-{{ for $lastusers_items as $i }}
-       $i
-{{ endfor }}
-</div>
-{{ endif }}
-
-
-{{ if $activeusers_title }}
-<h3>$activeusers_title</h3>
-<div class='items-wrapper'>
-{{ for $activeusers_items as $i }}
-       $i
-{{ endfor }}
-</div>
-{{ endif }}
-
-{{ if $photos_title }}
-<h3>$photos_title</h3>
-<div class='items-wrapper'>
-{{ for $photos_items as $i }}
-       $i
-{{ endfor }}
-</div>
-{{ endif }}
-
-
-{{ if $like_title }}
-<h3>$like_title</h3>
-<ul id='likes'>
-{{ for $like_items as $i }}
-       <li>$i</li>
-{{ endfor }}
-</ul>
-{{ endif }}
diff --git a/communityhome/view/directory_item.tpl b/communityhome/view/directory_item.tpl
deleted file mode 100755 (executable)
index f32f5a4..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-
-<div class="directory-item" id="directory-item-$id" >
-       <div class="directory-photo-wrapper" id="directory-photo-wrapper-$id" > 
-               <div class="directory-photo" id="directory-photo-$id" >
-                       <a href="$profile_link" class="directory-profile-link" id="directory-profile-link-$id" >
-                               <img class="directory-photo-img" src="$photo" alt="$alt_text" title="$alt_text" />
-                       </a>
-               </div>
-       </div>
-</div>
diff --git a/communityhome/view/smarty3/communityhome.tpl b/communityhome/view/smarty3/communityhome.tpl
deleted file mode 100644 (file)
index b8f8038..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<script>
-       $(function(){
-               $("#tab_1 a").click(function(e){
-                       $("#login_standard").show();
-                       $("#login_openid").hide();
-                       $("#tab_1").addClass("active");
-                       $("#tab_2").removeClass("active");
-                       e.preventDefault();
-                       return false;
-               });
-               $("#tab_2 a").click(function(e){
-                       $("#login_openid").show();
-                       $("#login_standard").hide();
-                       $("#tab_2").addClass("active");
-                       $("#tab_1").removeClass("active");
-                       e.preventDefault();
-                       return false;
-                       
-               });
-               
-       });
-</script>
-{{if $noOid}}
-       <h3>{{$login_title}}</h3>
-{{else}}
-<ul class="tabs">
-       <li id="tab_1" class="tab button active"><a href="#">{{$tab_1}}</a></li>
-       <li id="tab_2" class="tab button"><a href="#">{{$tab_2}}</a></li>
-</ul>
-{{/if}}
-{{$login_form}}
-
-
-{{if $lastusers_title}}
-<h3>{{$lastusers_title}}</h3>
-<div class='items-wrapper'>
-{{foreach $lastusers_items as $i}}
-       {{$i}}
-{{/foreach}}
-</div>
-{{/if}}
-
-
-{{if $activeusers_title}}
-<h3>{{$activeusers_title}}</h3>
-<div class='items-wrapper'>
-{{foreach $activeusers_items as $i}}
-       {{$i}}
-{{/foreach}}
-</div>
-{{/if}}
-
-{{if $photos_title}}
-<h3>{{$photos_title}}</h3>
-<div class='items-wrapper'>
-{{foreach $photos_items as $i}}
-       {{$i}}
-{{/foreach}}
-</div>
-{{/if}}
-
-
-{{if $like_title}}
-<h3>{{$like_title}}</h3>
-<ul id='likes'>
-{{foreach $like_items as $i}}
-       <li>{{$i}}</li>
-{{/foreach}}
-</ul>
-{{/if}}
diff --git a/communityhome/view/smarty3/directory_item.tpl b/communityhome/view/smarty3/directory_item.tpl
deleted file mode 100644 (file)
index 5fb1198..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-
-<div class="directory-item" id="directory-item-{{$id}}" >
-       <div class="directory-photo-wrapper" id="directory-photo-wrapper-{{$id}}" > 
-               <div class="directory-photo" id="directory-photo-{{$id}}" >
-                       <a href="{{$profile}}-link" class="directory-profile-link" id="directory-profile-link-{{$id}}" >
-                               <img class="directory-photo-img" src="{{$photo}}" alt="{{$alt}}-text" title="{{$alt}}-text" />
-                       </a>
-               </div>
-       </div>
-</div>
diff --git a/defaultfeatures/templates/admin.tpl b/defaultfeatures/templates/admin.tpl
new file mode 100644 (file)
index 0000000..3fbda38
--- /dev/null
@@ -0,0 +1,14 @@
+{{*
+ *     AUTOMATICALLY GENERATED TEMPLATE
+ *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
+{{foreach $features as $f}}
+<h3 class="settings-heading">{{$f.0}}</h3>
+
+{{foreach $f.1 as $fcat}}
+       {{include file="field_yesno.tpl" field=$fcat}}
+{{/foreach}}
+{{/foreach}}
+<div class="submit"><input type="submit" name="defaultfeatures-submit" value="{{$submit}}" /></div>
diff --git a/defaultfeatures/view/admin.tpl b/defaultfeatures/view/admin.tpl
deleted file mode 100644 (file)
index e7793d3..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<input type='hidden' name='form_security_token' value='$form_security_token'>
-{{ for $features as $f }}
-<h3 class="settings-heading">$f.0</h3>
-
-{{ for $f.1 as $fcat }}
-       {{ inc field_yesno.tpl with $field=$fcat }}{{endinc}}
-{{ endfor }}
-{{ endfor }}
-<div class="submit"><input type="submit" name="defaultfeatures-submit" value="$submit" /></div>
diff --git a/defaultfeatures/view/smarty3/admin.tpl b/defaultfeatures/view/smarty3/admin.tpl
deleted file mode 100644 (file)
index 3fbda38..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-{{*
- *     AUTOMATICALLY GENERATED TEMPLATE
- *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
- *
- *}}
-<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
-{{foreach $features as $f}}
-<h3 class="settings-heading">{{$f.0}}</h3>
-
-{{foreach $f.1 as $fcat}}
-       {{include file="field_yesno.tpl" field=$fcat}}
-{{/foreach}}
-{{/foreach}}
-<div class="submit"><input type="submit" name="defaultfeatures-submit" value="{{$submit}}" /></div>
diff --git a/forumdirectory/templates/forumdirectory_item.tpl b/forumdirectory/templates/forumdirectory_item.tpl
new file mode 100644 (file)
index 0000000..66410ef
--- /dev/null
@@ -0,0 +1,42 @@
+
+<div class="forumdirectory-item" id="forumdirectory-item-{{$id}}" >
+       <div class="forumdirectory-photo-wrapper" id="forumdirectory-photo-wrapper-{{$id}}" > 
+               <div class="forumdirectory-photo" id="forumdirectory-photo-{{$id}}" >
+                       <a href="{{$profile_link}}" class="forumdirectory-profile-link" id="forumdirectory-profile-link-{{$id}}" >
+                               <img class="forumdirectory-photo-img photo" src="{{$photo}}" alt="{{$alt_text}}" title="{{$alt_text}}" />
+                       </a>
+               </div>
+       </div>
+       <div class="forumdirectory-profile-wrapper" id="forumdirectory-profile-wrapper-{{$id}}" >
+               <div class="contact-name" id="forumdirectory-name-{{$id}}">{{$name}}</div>
+               <div class="page-type">{{$page_type}}</div>
+               {{if $pdesc}}<div class="forumdirectory-profile-title">{{$profile.pdesc}}</div>{{/if}}
+       <div class="forumdirectory-detailcolumns-wrapper" id="forumdirectory-detailcolumns-wrapper-{{$id}}">
+               <div class="forumdirectory-detailscolumn-wrapper" id="forumdirectory-detailscolumn1-wrapper-{{$id}}">   
+                       {{if $location}}
+                           <dl class="location"><dt class="location-label">{{$location}}</dt>
+                               <dd class="adr">
+                                       {{if $profile.address}}<div class="street-address">{{$profile.address}}</div>{{/if}}
+                                       <span class="city-state-zip">
+                                               <span class="locality">{{$profile.locality}}</span>{{if $profile.locality}}, {{/if}}
+                                               <span class="region">{{$profile.region}}</span>
+                                               <span class="postal-code">{{$profile.postal-code}}</span>
+                                       </span>
+                                       {{if $profile.country-name}}<span class="country-name">{{$profile.country-name}}</span>{{/if}}
+                               </dd>
+                               </dl>
+                       {{/if}}
+
+                       {{if $gender}}<dl class="mf"><dt class="gender-label">{{$gender}}</dt> <dd class="x-gender">{{$profile.gender}}</dd></dl>{{/if}}
+                       </div>  
+                       <div class="forumdirectory-detailscolumn-wrapper" id="forumdirectory-detailscolumn2-wrapper-{{$id}}">   
+                               {{if $marital}}<dl class="marital"><dt class="marital-label"><span class="heart">&hearts;</span>{{$marital}}</dt><dd class="marital-text">{{$profile.marital}}</dd></dl>{{/if}}
+
+                               {{if $homepage}}<dl class="homepage"><dt class="homepage-label">{{$homepage}}</dt><dd class="homepage-url"><a href="{{$profile.homepage}}" target="external-link">{{$profile.homepage}}</a></dd></dl>{{/if}}
+                       </div>
+               </div>
+               <div class="forumdirectory-copy-wrapper" id="forumdirectory-copy-wrapper-{{$id}}" >
+                       {{if $about}}<dl class="forumdirectory-copy"><dt class="forumdirectory-copy-label">{{$about}}</dt><dd class="forumdirectory-copy-data">{{$profile.about}}</dd></dl>{{/if}}
+               </div>
+       </div>
+</div>
diff --git a/forumdirectory/view/forumdirectory_item.tpl b/forumdirectory/view/forumdirectory_item.tpl
deleted file mode 100755 (executable)
index e1bbffe..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-
-<div class="forumdirectory-item" id="forumdirectory-item-$id" >
-       <div class="forumdirectory-photo-wrapper" id="forumdirectory-photo-wrapper-$id" > 
-               <div class="forumdirectory-photo" id="forumdirectory-photo-$id" >
-                       <a href="$profile_link" class="forumdirectory-profile-link" id="forumdirectory-profile-link-$id" >
-                               <img class="forumdirectory-photo-img photo" src="$photo" alt="$alt_text" title="$alt_text" />
-                       </a>
-               </div>
-       </div>
-       <div class="forumdirectory-profile-wrapper" id="forumdirectory-profile-wrapper-$id" >
-               <div class="contact-name" id="forumdirectory-name-$id">$name</div>
-               <div class="page-type">$page_type</div>
-               {{ if $pdesc }}<div class="forumdirectory-profile-title">$profile.pdesc</div>{{ endif }}
-       <div class="forumdirectory-detailcolumns-wrapper" id="forumdirectory-detailcolumns-wrapper-$id">
-               <div class="forumdirectory-detailscolumn-wrapper" id="forumdirectory-detailscolumn1-wrapper-$id">       
-                       {{ if $location }}
-                           <dl class="location"><dt class="location-label">$location</dt>
-                               <dd class="adr">
-                                       {{ if $profile.address }}<div class="street-address">$profile.address</div>{{ endif }}
-                                       <span class="city-state-zip">
-                                               <span class="locality">$profile.locality</span>{{ if $profile.locality }}, {{ endif }}
-                                               <span class="region">$profile.region</span>
-                                               <span class="postal-code">$profile.postal-code</span>
-                                       </span>
-                                       {{ if $profile.country-name }}<span class="country-name">$profile.country-name</span>{{ endif }}
-                               </dd>
-                               </dl>
-                       {{ endif }}
-
-                       {{ if $gender }}<dl class="mf"><dt class="gender-label">$gender</dt> <dd class="x-gender">$profile.gender</dd></dl>{{ endif }}
-                       </div>  
-                       <div class="forumdirectory-detailscolumn-wrapper" id="forumdirectory-detailscolumn2-wrapper-$id">       
-                               {{ if $marital }}<dl class="marital"><dt class="marital-label"><span class="heart">&hearts;</span>$marital</dt><dd class="marital-text">$profile.marital</dd></dl>{{ endif }}
-
-                               {{ if $homepage }}<dl class="homepage"><dt class="homepage-label">$homepage</dt><dd class="homepage-url"><a href="$profile.homepage" target="external-link">$profile.homepage</a></dd></dl>{{ endif }}
-                       </div>
-               </div>
-               <div class="forumdirectory-copy-wrapper" id="forumdirectory-copy-wrapper-$id" >
-                       {{ if $about }}<dl class="forumdirectory-copy"><dt class="forumdirectory-copy-label">$about</dt><dd class="forumdirectory-copy-data">$profile.about</dd></dl>{{ endif }}
-               </div>
-       </div>
-</div>
diff --git a/forumdirectory/view/smarty3/forumdirectory_item.tpl b/forumdirectory/view/smarty3/forumdirectory_item.tpl
deleted file mode 100644 (file)
index 66410ef..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-
-<div class="forumdirectory-item" id="forumdirectory-item-{{$id}}" >
-       <div class="forumdirectory-photo-wrapper" id="forumdirectory-photo-wrapper-{{$id}}" > 
-               <div class="forumdirectory-photo" id="forumdirectory-photo-{{$id}}" >
-                       <a href="{{$profile_link}}" class="forumdirectory-profile-link" id="forumdirectory-profile-link-{{$id}}" >
-                               <img class="forumdirectory-photo-img photo" src="{{$photo}}" alt="{{$alt_text}}" title="{{$alt_text}}" />
-                       </a>
-               </div>
-       </div>
-       <div class="forumdirectory-profile-wrapper" id="forumdirectory-profile-wrapper-{{$id}}" >
-               <div class="contact-name" id="forumdirectory-name-{{$id}}">{{$name}}</div>
-               <div class="page-type">{{$page_type}}</div>
-               {{if $pdesc}}<div class="forumdirectory-profile-title">{{$profile.pdesc}}</div>{{/if}}
-       <div class="forumdirectory-detailcolumns-wrapper" id="forumdirectory-detailcolumns-wrapper-{{$id}}">
-               <div class="forumdirectory-detailscolumn-wrapper" id="forumdirectory-detailscolumn1-wrapper-{{$id}}">   
-                       {{if $location}}
-                           <dl class="location"><dt class="location-label">{{$location}}</dt>
-                               <dd class="adr">
-                                       {{if $profile.address}}<div class="street-address">{{$profile.address}}</div>{{/if}}
-                                       <span class="city-state-zip">
-                                               <span class="locality">{{$profile.locality}}</span>{{if $profile.locality}}, {{/if}}
-                                               <span class="region">{{$profile.region}}</span>
-                                               <span class="postal-code">{{$profile.postal-code}}</span>
-                                       </span>
-                                       {{if $profile.country-name}}<span class="country-name">{{$profile.country-name}}</span>{{/if}}
-                               </dd>
-                               </dl>
-                       {{/if}}
-
-                       {{if $gender}}<dl class="mf"><dt class="gender-label">{{$gender}}</dt> <dd class="x-gender">{{$profile.gender}}</dd></dl>{{/if}}
-                       </div>  
-                       <div class="forumdirectory-detailscolumn-wrapper" id="forumdirectory-detailscolumn2-wrapper-{{$id}}">   
-                               {{if $marital}}<dl class="marital"><dt class="marital-label"><span class="heart">&hearts;</span>{{$marital}}</dt><dd class="marital-text">{{$profile.marital}}</dd></dl>{{/if}}
-
-                               {{if $homepage}}<dl class="homepage"><dt class="homepage-label">{{$homepage}}</dt><dd class="homepage-url"><a href="{{$profile.homepage}}" target="external-link">{{$profile.homepage}}</a></dd></dl>{{/if}}
-                       </div>
-               </div>
-               <div class="forumdirectory-copy-wrapper" id="forumdirectory-copy-wrapper-{{$id}}" >
-                       {{if $about}}<dl class="forumdirectory-copy"><dt class="forumdirectory-copy-label">{{$about}}</dt><dd class="forumdirectory-copy-data">{{$profile.about}}</dd></dl>{{/if}}
-               </div>
-       </div>
-</div>
diff --git a/gravatar/templates/admin.tpl b/gravatar/templates/admin.tpl
new file mode 100644 (file)
index 0000000..5dfd448
--- /dev/null
@@ -0,0 +1,3 @@
+{{include file="field_select.tpl" field=$default_avatar}}
+{{include file="field_select.tpl" field=$rating}}
+<div class="submit"><input type="submit" value="{{$submit}}" /></div>
diff --git a/gravatar/view/admin.tpl b/gravatar/view/admin.tpl
deleted file mode 100644 (file)
index 83144e4..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-{{ inc field_select.tpl with $field=$default_avatar}}{{ endinc }}
-{{ inc field_select.tpl with $field=$rating }}{{ endinc }}
-<div class="submit"><input type="submit" value="$submit" /></div>
diff --git a/gravatar/view/smarty3/admin.tpl b/gravatar/view/smarty3/admin.tpl
deleted file mode 100644 (file)
index 5dfd448..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-{{include file="field_select.tpl" field=$default_avatar}}
-{{include file="field_select.tpl" field=$rating}}
-<div class="submit"><input type="submit" value="{{$submit}}" /></div>
diff --git a/impressum/templates/admin.tpl b/impressum/templates/admin.tpl
new file mode 100644 (file)
index 0000000..80b6782
--- /dev/null
@@ -0,0 +1,7 @@
+{{include file="field_input.tpl" field=$owner}}
+{{include file="field_input.tpl" field=$ownerprofile}}
+{{include file="field_textarea.tpl" field=$postal}}
+{{include file="field_textarea.tpl" field=$notes}}
+{{include file="field_input.tpl" field=$email}}
+{{include file="field_textarea.tpl" field=$footer_text}}
+<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/impressum/view/admin.tpl b/impressum/view/admin.tpl
deleted file mode 100644 (file)
index 901df73..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-{{ inc field_input.tpl with $field=$owner }}{{ endinc }}
-{{ inc field_input.tpl with $field=$ownerprofile }}{{ endinc }}
-{{ inc field_textarea.tpl with $field=$postal }}{{ endinc }}
-{{ inc field_textarea.tpl with $field=$notes }}{{ endinc }}
-{{ inc field_input.tpl with $field=$email }}{{ endinc }}
-{{ inc field_textarea.tpl with $field=$footer_text }}{{ endinc }}
-<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
diff --git a/impressum/view/smarty3/admin.tpl b/impressum/view/smarty3/admin.tpl
deleted file mode 100644 (file)
index 80b6782..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-{{include file="field_input.tpl" field=$owner}}
-{{include file="field_input.tpl" field=$ownerprofile}}
-{{include file="field_textarea.tpl" field=$postal}}
-{{include file="field_textarea.tpl" field=$notes}}
-{{include file="field_input.tpl" field=$email}}
-{{include file="field_textarea.tpl" field=$footer_text}}
-<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/libravatar/templates/admin.tpl b/libravatar/templates/admin.tpl
new file mode 100644 (file)
index 0000000..ee95828
--- /dev/null
@@ -0,0 +1,2 @@
+{{include file="field_select.tpl" field=$default_avatar}}
+<div class="submit"><input type="submit" value="{{$submit}}" /></div>
diff --git a/libravatar/view/admin.tpl b/libravatar/view/admin.tpl
deleted file mode 100644 (file)
index 814f4a4..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-{{ inc field_select.tpl with $field=$default_avatar}}{{ endinc }}
-<div class="submit"><input type="submit" value="$submit" /></div>
diff --git a/libravatar/view/smarty3/admin.tpl b/libravatar/view/smarty3/admin.tpl
deleted file mode 100644 (file)
index ee95828..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-{{include file="field_select.tpl" field=$default_avatar}}
-<div class="submit"><input type="submit" value="{{$submit}}" /></div>
diff --git a/mailstream/templates/admin.tpl b/mailstream/templates/admin.tpl
new file mode 100644 (file)
index 0000000..aa3d6d4
--- /dev/null
@@ -0,0 +1,8 @@
+{{*
+ *     AUTOMATICALLY GENERATED TEMPLATE
+ *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+{{include file="field_input.tpl" field=$frommail}}
+<div class="submit"><input type="submit" name="page_site" value="{{$submit}}"></div>
+
diff --git a/mailstream/templates/mail.tpl b/mailstream/templates/mail.tpl
new file mode 100644 (file)
index 0000000..a36729c
--- /dev/null
@@ -0,0 +1,10 @@
+{{*
+ *     AUTOMATICALLY GENERATED TEMPLATE
+ *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+<div class="mailstream-item-body">{{$item.body}}</div>
+{{if $item.plink}}
+<div>{{$upstream}}: <a class="mailstream-item-plink" href="{{$item.plink}}">{{$item.plink}}</a><div>
+<div>{{$local}}: <a class="mailstream-item-url" href="{{$item.url}}">{{$item.url}}</a></div>
+{{/if}}
diff --git a/mailstream/templates/settings.tpl b/mailstream/templates/settings.tpl
new file mode 100644 (file)
index 0000000..8729b7b
--- /dev/null
@@ -0,0 +1,11 @@
+{{*
+ *     AUTOMATICALLY GENERATED TEMPLATE
+ *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+<div class="settings-block">
+  <h3>{{$title}}</h3>
+{{include file="field_input.tpl" field=$address}}
+{{include file="field_checkbox.tpl" field=$enabled}}
+  <input type="submit" value="{{$submit}}">
+</div>
diff --git a/mailstream/view/admin.tpl b/mailstream/view/admin.tpl
deleted file mode 100644 (file)
index bf5e67a..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-{{ inc field_input.tpl with $field=$frommail }}{{ endinc }}
-<div class="submit"><input type="submit" name="page_site" value="$submit"></div>
-
diff --git a/mailstream/view/mail.tpl b/mailstream/view/mail.tpl
deleted file mode 100644 (file)
index 9eb7ff5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<div class="mailstream-item-body">$item.body</div>
-{{ if $item.plink }}
-<div>$upstream: <a class="mailstream-item-plink" href="$item.plink">$item.plink</a><div>
-<div>$local: <a class="mailstream-item-url" href="$item.url">$item.url</a></div>
-{{ endif }}
diff --git a/mailstream/view/settings.tpl b/mailstream/view/settings.tpl
deleted file mode 100644 (file)
index 45b0511..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<div class="settings-block">
-  <h3>$title</h3>
-{{ inc field_input.tpl with $field=$address }}{{ endinc }}
-{{ inc field_checkbox.tpl with $field=$enabled }}{{ endinc }}
-  <input type="submit" value="$submit">
-</div>
diff --git a/mailstream/view/smarty3/admin.tpl b/mailstream/view/smarty3/admin.tpl
deleted file mode 100644 (file)
index aa3d6d4..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-{{*
- *     AUTOMATICALLY GENERATED TEMPLATE
- *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
- *
- *}}
-{{include file="field_input.tpl" field=$frommail}}
-<div class="submit"><input type="submit" name="page_site" value="{{$submit}}"></div>
-
diff --git a/mailstream/view/smarty3/mail.tpl b/mailstream/view/smarty3/mail.tpl
deleted file mode 100644 (file)
index a36729c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-{{*
- *     AUTOMATICALLY GENERATED TEMPLATE
- *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
- *
- *}}
-<div class="mailstream-item-body">{{$item.body}}</div>
-{{if $item.plink}}
-<div>{{$upstream}}: <a class="mailstream-item-plink" href="{{$item.plink}}">{{$item.plink}}</a><div>
-<div>{{$local}}: <a class="mailstream-item-url" href="{{$item.url}}">{{$item.url}}</a></div>
-{{/if}}
diff --git a/mailstream/view/smarty3/settings.tpl b/mailstream/view/smarty3/settings.tpl
deleted file mode 100644 (file)
index 8729b7b..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-{{*
- *     AUTOMATICALLY GENERATED TEMPLATE
- *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
- *
- *}}
-<div class="settings-block">
-  <h3>{{$title}}</h3>
-{{include file="field_input.tpl" field=$address}}
-{{include file="field_checkbox.tpl" field=$enabled}}
-  <input type="submit" value="{{$submit}}">
-</div>
diff --git a/mathjax/templates/admin.tpl b/mathjax/templates/admin.tpl
new file mode 100644 (file)
index 0000000..f6ec03e
--- /dev/null
@@ -0,0 +1,2 @@
+{{include file="field_input.tpl" field=$baseurl}}
+<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/mathjax/view/admin.tpl b/mathjax/view/admin.tpl
deleted file mode 100644 (file)
index 1c723cd..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-{{ inc field_input.tpl with $field=$baseurl }}{{endinc }}
-<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
diff --git a/mathjax/view/smarty3/admin.tpl b/mathjax/view/smarty3/admin.tpl
deleted file mode 100644 (file)
index f6ec03e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-{{include file="field_input.tpl" field=$baseurl}}
-<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/openstreetmap/templates/admin.tpl b/openstreetmap/templates/admin.tpl
new file mode 100644 (file)
index 0000000..6ee0717
--- /dev/null
@@ -0,0 +1,3 @@
+{{include file="field_input.tpl" field=$tmsserver}}
+{{include file="field_input.tpl" field=$zoom}}
+<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/openstreetmap/view/admin.tpl b/openstreetmap/view/admin.tpl
deleted file mode 100644 (file)
index 75db9cd..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-{{ inc field_input.tpl with $field=$tmsserver }}{{ endinc }}
-{{ inc field_input.tpl with $field=$zoom }}{{ endinc }}
-<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
diff --git a/openstreetmap/view/smarty3/admin.tpl b/openstreetmap/view/smarty3/admin.tpl
deleted file mode 100644 (file)
index 6ee0717..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-{{include file="field_input.tpl" field=$tmsserver}}
-{{include file="field_input.tpl" field=$zoom}}
-<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/piwik/templates/admin.tpl b/piwik/templates/admin.tpl
new file mode 100644 (file)
index 0000000..bfe04aa
--- /dev/null
@@ -0,0 +1,5 @@
+{{include file="field_input.tpl" field=$baseurl}}
+{{include file="field_input.tpl" field=$siteid}}
+{{include file="field_checkbox.tpl" field=$optout}}
+{{include file="field_checkbox.tpl" field=$async}}
+<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/piwik/view/admin.tpl b/piwik/view/admin.tpl
deleted file mode 100644 (file)
index e57758a..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-{{ inc field_input.tpl with $field=$baseurl }}{{ endinc }}
-{{ inc field_input.tpl with $field=$siteid }}{{ endinc }}
-{{ inc field_checkbox.tpl with $field=$optout }}{{ endinc }}
-{{ inc field_checkbox.tpl with $field=$async }}{{ endinc }}
-<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
diff --git a/piwik/view/smarty3/admin.tpl b/piwik/view/smarty3/admin.tpl
deleted file mode 100644 (file)
index bfe04aa..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-{{include file="field_input.tpl" field=$baseurl}}
-{{include file="field_input.tpl" field=$siteid}}
-{{include file="field_checkbox.tpl" field=$optout}}
-{{include file="field_checkbox.tpl" field=$async}}
-<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/remote_permissions/templates/admin.tpl b/remote_permissions/templates/admin.tpl
new file mode 100644 (file)
index 0000000..e67afd7
--- /dev/null
@@ -0,0 +1,3 @@
+{{include file="field_radio.tpl" field=$global}}
+{{include file="field_radio.tpl" field=$individual}}
+<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/remote_permissions/templates/settings.tpl b/remote_permissions/templates/settings.tpl
new file mode 100644 (file)
index 0000000..df89a32
--- /dev/null
@@ -0,0 +1,8 @@
+       <div class="settings-block">
+       <h3>{{$remote_perms_title}}</h3>
+       <div id="remote-perms-wrapper">
+       <label id="remote-perms-label" for="remote-perms">{{$remote_perms_label}}</label>
+       <input id="remote-perms-input" type="checkbox" name="remote-perms" value="1" {{$checked}} />
+       </div><div class="clear"></div>
+       <div class="settings-submit-wrapper" ><input type="submit" name="remote-perms-submit" class="settings-submit" value="{{$submit}}" /></div></div>
+
diff --git a/remote_permissions/view/admin.tpl b/remote_permissions/view/admin.tpl
deleted file mode 100644 (file)
index 6055880..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-{{ inc field_radio.tpl with $field=$global }}{{ endinc }}
-{{ inc field_radio.tpl with $field=$individual }}{{ endinc }}
-<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
diff --git a/remote_permissions/view/settings.tpl b/remote_permissions/view/settings.tpl
deleted file mode 100644 (file)
index 9fd9895..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-       <div class="settings-block">
-       <h3>$remote_perms_title</h3>
-       <div id="remote-perms-wrapper">
-       <label id="remote-perms-label" for="remote-perms">$remote_perms_label</label>
-       <input id="remote-perms-input" type="checkbox" name="remote-perms" value="1" $checked />
-       </div><div class="clear"></div>
-       <div class="settings-submit-wrapper" ><input type="submit" name="remote-perms-submit" class="settings-submit" value="$submit" /></div></div>
-
diff --git a/remote_permissions/view/smarty3/admin.tpl b/remote_permissions/view/smarty3/admin.tpl
deleted file mode 100644 (file)
index e67afd7..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-{{include file="field_radio.tpl" field=$global}}
-{{include file="field_radio.tpl" field=$individual}}
-<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/remote_permissions/view/smarty3/settings.tpl b/remote_permissions/view/smarty3/settings.tpl
deleted file mode 100644 (file)
index df89a32..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-       <div class="settings-block">
-       <h3>{{$remote_perms_title}}</h3>
-       <div id="remote-perms-wrapper">
-       <label id="remote-perms-label" for="remote-perms">{{$remote_perms_label}}</label>
-       <input id="remote-perms-input" type="checkbox" name="remote-perms" value="1" {{$checked}} />
-       </div><div class="clear"></div>
-       <div class="settings-submit-wrapper" ><input type="submit" name="remote-perms-submit" class="settings-submit" value="{{$submit}}" /></div></div>
-
diff --git a/retriever/templates/extract.tpl b/retriever/templates/extract.tpl
new file mode 100644 (file)
index 0000000..36b9181
--- /dev/null
@@ -0,0 +1,41 @@
+{{*
+ *     AUTOMATICALLY GENERATED TEMPLATE
+ *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+  <xsl:template match="text()"/>
+
+  <xsl:template match="{{$include}}">
+    <xsl:copy>
+      <xsl:apply-templates select="node()|@*" mode="remove"/>
+    </xsl:copy>
+  </xsl:template>
+
+  <xsl:template match="node()|@*" mode="remove">
+    <xsl:copy>
+      <xsl:apply-templates select="node()|@*" mode="remove"/>
+    </xsl:copy>
+  </xsl:template>
+
+{{if $exclude}}
+  <xsl:template match="{{$exclude}}" mode="remove"/>
+{{/if}}
+
+  <!-- attempt to replace relative URLs with absolute URLs -->
+  <!-- http://stackoverflow.com/questions/3824631/replace-href-value-in-anchor-tags-of-html-using-xslt -->
+
+  <xsl:template match="*/@src[starts-with(.,'.')]" mode="remove">
+    <xsl:attribute name="src">
+      <xsl:value-of select="concat('{{$dirurl}}',.)"/>
+    </xsl:attribute>
+  </xsl:template>
+  <xsl:template match="*/@src[starts-with(.,'/')]" mode="remove">
+    <xsl:attribute name="src">
+      <xsl:value-of select="concat('{{$rooturl}}',.)"/>
+    </xsl:attribute>
+  </xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
diff --git a/retriever/templates/help.tpl b/retriever/templates/help.tpl
new file mode 100644 (file)
index 0000000..9e48118
--- /dev/null
@@ -0,0 +1,153 @@
+{{*
+ *     AUTOMATICALLY GENERATED TEMPLATE
+ *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+<h2>Retriever Plugin Help</h2>
+<p>
+This plugin replaces the short excerpts you normally get in RSS feeds
+with the full content of the article from the source website.  You
+specify which part of the page you're interested in with a set of
+rules.  When each item arrives, the plugin downloads the full page
+from the website, extracts content using the rules, and replaces the
+original article.
+</p>
+<p>
+There's a few reasons you may want to do this.  The source website
+might be slow or overloaded.  The source website might be
+untrustworthy, in which case using Friendica to scrub the HTML is a
+good idea.  You might be on a LAN that blacklists certain websites.
+It also works neatly with the mailstream plugin, allowing you to read
+a news stream comfortably without needing continuous Internet
+connectivity.
+</p>
+<p>
+However, setting up retriever can be quite tricky since it depends on
+the internal design of the website.  This was designed to make life
+easy for the website's developers, not for you.  You'll need to have
+some familiarity with HTML, and be willing to adapt when the website
+suddenly changes everything without notice.
+</p>
+<h3>Configuring Retriever for a feed</h3>
+<p>
+To set up retriever for an RSS feed, go to the "Contacts" page and
+find your feed.  Then click on the drop-down menu on the contact.
+Select "Retriever" to get to the retriever configuration.
+</p>
+<p>
+The "Include" configuration section specifies parts of the page to
+include in the article.  Each row has three components:
+</p>
+<ul>
+<li>An HTML tag (e.g. "div", "span", "p")</li>
+<li>An attribute (usually "class" or "id")</li>
+<li>A value for the attribute</li>
+</ul>
+<p>
+A simple case is when the article is wrapped in a "div" element:
+</p>
+<pre>
+    ...
+    &lt;div class="main-content"&gt;
+      &lt;h2&gt;Man Bites Dog&lt;/h2&gt;
+      &lt;img src="mbd.jpg"&gt;
+      &lt;p&gt;
+        Residents of the sleepy community of Nowheresville were
+        shocked yesterday by the sight of creepy local weirdo Jim
+        McOddman assaulting innocent local dog Snufflekins with his
+        false teeth.
+      &lt;/p&gt;
+      ...
+    &lt;/div&gt;
+    ...
+</pre>
+<p>
+You then specify the tag "div", attribute "class", and value
+"main-content".  Everything else in the page, such as navigation
+panels and menus and footers and so on, will be discarded.  If there
+is more than one section of the page you want to include, specify each
+one on a separate row.  If the matching section contains some sections
+you want to remove, specify those in the "Exclude" section in the same
+way.
+</p>
+<p>
+Once you've got a configuration that you think will work, you can try
+it out on some existing articles.  Type a number into the
+"Retrospectively Apply" box and click "Submit".  After a while
+(exactly how long depends on your system's cron configuration) the new
+articles should be available.
+</p>
+<h3>Techniques</h3>
+<p>
+You can leave the attribute and value blank to include all the
+corresponding elements with the specified tag name.  You can also use
+a tag name of "*", which will match any element type with the
+specified attribute regardless of the tag.
+</p>
+<p>
+Note that the "class" attribute is a special case.  Many web page
+templates will put multiple different classes in the same element,
+separated by spaces.  If you specify an attribute of "class" it will
+match an element if any of its classes matches the specified value.
+For example:
+</p>
+<pre>
+    &lt;div class="article breaking-news"&gt;
+</pre>
+<p>
+In this case you can specify a value of "article", or "breaking-news".
+You can also specify "article breaking-news", but that won't match if
+the website suddenly changes to "breaking-news article", so that's not
+recommended.
+</p>
+<p>
+One useful trick you can try is using the website's "print" pages.
+Many news sites have print versions of all their articles.  These are
+usually drastically simplified compared to the live website page.
+Sometimes this is a good way to get the whole article when it's
+normally split across multiple pages.
+</p>
+<p>
+Hopefully the URL for the print page is a predictable variant of the
+normal article URL.  For example, an article URL like:
+</p>
+<pre>
+    http://www.newssite.com/article-8636.html
+</pre>
+<p>
+...might have a print version at:
+</p>
+<pre>
+    http://www.newssite.com/print/article-8636.html
+</pre>
+<p>
+To change the URL used to retrieve the page, use the "URL Pattern" and
+"URL Replace" fields.  The pattern is a regular expression matching
+part of the URL to replace.  In this case, you might use a pattern of
+"/article" and a replace string of "/print/article".  A common pattern
+is simply "$", used to add the replace string to the end of the URL.
+</p>
+<h3>Background Processing</h3>
+<p>
+Note that retrieving and processing the articles can take some time,
+so it's done in the background.  Incoming articles will be marked as
+invisible while they're in the process of being downloaded.  If a URL
+fails, the plugin will keep trying at progressively longer intervals
+for up to a month, in case the website is temporarily overloaded or
+the network is down.
+</p>
+<h3>Retrieving Images</h3>
+<p>
+Retriever can also optionally download images and store them in the
+local Friendica instance.  Just check the "Download Images" box.  You
+can also download images in every item from your network, whether it's
+an RSS feed or not.  Go to the "Settings" page and
+click <a href="{{$config}}">"Plugin settings"</a>.  Then check the "All
+Photos" box in the "Retriever Settings" section and click "Submit".
+</p>
+<h2>Configure Feeds:</h2>
+<div>
+{{foreach $feeds as $feed}}
+{{include file="contact_template.tpl" contact=$feed}}
+{{/foreach}}
+</div>
diff --git a/retriever/templates/rule-config.tpl b/retriever/templates/rule-config.tpl
new file mode 100644 (file)
index 0000000..79add59
--- /dev/null
@@ -0,0 +1,116 @@
+{{*
+ *     AUTOMATICALLY GENERATED TEMPLATE
+ *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+<div class="settings-block">
+  <script language="javascript">
+function retriever_add_row(id)
+{
+    var tbody = document.getElementById(id);
+    var last = tbody.rows[tbody.childElementCount - 1];
+    var count = +last.id.replace(id + '-', '');
+    count++;
+    var row = document.createElement('tr');
+    row.id = id + '-' + count;
+    var cell1 = document.createElement('td');
+    var inptag = document.createElement('input');
+    inptag.name = row.id + '-element';
+    cell1.appendChild(inptag);
+    row.appendChild(cell1);
+    var cell2 = document.createElement('td');
+    var inpatt = document.createElement('input');
+    inpatt.name = row.id + '-attribute';
+    cell2.appendChild(inpatt);
+    row.appendChild(cell2);
+    var cell3 = document.createElement('td');
+    var inpval = document.createElement('input');
+    inpval.name = row.id + '-value';
+    cell3.appendChild(inpval);
+    row.appendChild(cell3);
+    var cell4 = document.createElement('td');
+    var butrem = document.createElement('input');
+    butrem.id = row.id + '-rem';
+    butrem.type = 'button';
+    butrem.onclick = function(){retriever_remove_row(id, count)};
+    butrem.value = '{{$remove_t}}';
+    cell4.appendChild(butrem);
+    row.appendChild(cell4);
+    tbody.appendChild(row);
+}
+
+function retriever_remove_row(id, number)
+{
+    var tbody = document.getElementById(id);
+    var row = document.getElementById(id + '-' + number);
+    tbody.removeChild(row);
+}
+  </script>
+  <h2>{{$title}}</h2>
+  <p><a href="{{$help}}">Get Help</a></p>
+  <form method="post">
+    <input type="hidden" name="id" value="{{$id}}">
+{{include file="field_checkbox.tpl" field=$enable}}
+{{include file="field_input.tpl" field=$pattern}}
+{{include file="field_input.tpl" field=$replace}}
+{{include file="field_checkbox.tpl" field=$images}}
+{{include file="field_input.tpl" field=$retrospective}}
+    <h3>{{$include_t}}:</h3>
+    <div>
+      <table>
+        <thead>
+          <tr><th>{{$tag_t}}</th><th>{{$attribute_t}}</th><th>{{$value_t}}</th></tr>
+        </thead>
+        <tbody id="retriever-include">
+{{if $include}}
+  {{foreach $include as $k=>$m}}
+          <tr id="retriever-include-{{$k}}">
+            <td><input name="retriever-include-{{$k}}-element" value="{{$m.element}}"></td>
+            <td><input name="retriever-include-{{$k}}-attribute" value="{{$m.attribute}}"></td>
+            <td><input name="retriever-include-{{$k}}-value" value="{{$m.value}}"></td>
+            <td><input id="retrieve-include-{{$k}}-rem" type="button" onclick="retriever_remove_row('retriever-include', {{$k}})" value="{{$remove_t}}"></td>
+          </tr>
+  {{/foreach}}
+{{else}}
+          <tr id="retriever-include-0">
+            <td><input name="retriever-include-0-element"></td>
+            <td><input name="retriever-include-0-attribute"></td>
+            <td><input name="retriever-include-0-value"></td>
+            <td><input id="retrieve-include-0-rem" type="button" onclick="retriever_remove_row('retriever-include', 0)" value="{{$remove_t}}"></td>
+          </tr>
+{{/if}}
+        </tbody>
+      </table>
+      <input type="button" onclick="retriever_add_row('retriever-include')" value="{{$add_t}}">
+    </div>
+    <h3>{{$exclude_t}}:</h3>
+    <div>
+      <table>
+        <thead>
+          <tr><th>Tag</th><th>Attribute</th><th>Value</th></tr>
+        </thead>
+        <tbody id="retriever-exclude">
+{{if $exclude}}
+  {{foreach $exclude as $k=>$r}}
+          <tr id="retriever-exclude-{{$k}}">
+            <td><input name="retriever-exclude-{{$k}}-element" value="{{$r.element}}"></td>
+            <td><input name="retriever-exclude-{{$k}}-attribute" value="{{$r.attribute}}"></td>
+            <td><input name="retriever-exclude-{{$k}}-value" value="{{$r.value}}"></td>
+            <td><input id="retrieve-exclude-{{$k}}-rem" type="button" onclick="retriever_remove_row('retriever-exclude', {{$k}})" value="{{$remove_t}}"></td>
+          </tr>
+  {{/foreach}}
+{{else}}
+          <tr id="retriever-exclude-0">
+            <td><input name="retriever-exclude-0-element"></td>
+            <td><input name="retriever-exclude-0-attribute"></td>
+            <td><input name="retriever-exclude-0-value"></td>
+            <td><input id="retrieve-exclude-0-rem" type="button" onclick="retriever_remove_row('retriever-exclude', 0)" value="{{$remove_t}}"></td>
+          </tr>
+{{/if}}
+        </tbody>
+      </table>
+      <input type="button" onclick="retriever_add_row('retriever-exclude')" value="{{$add_t}}">
+    </div>
+    <input type="submit" size="70" value="{{$submit}}">
+  </form>
+</div>
diff --git a/retriever/templates/settings.tpl b/retriever/templates/settings.tpl
new file mode 100644 (file)
index 0000000..3bc7155
--- /dev/null
@@ -0,0 +1,22 @@
+{{*
+ *     AUTOMATICALLY GENERATED TEMPLATE
+ *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+<div class="settings-block">
+  <h3>{{$title}}</h3>
+  <p>
+    <a href="{{$help}}">Get Help</a>
+  </p>
+  <table>
+    <tbody>
+      <tr>
+        <td>{{$all_photos_t}}:</td>
+        <td><input class="checkbox" type="checkbox" name="all_photos" {{$all_photos}}></td>
+      </tr>
+      <tr>
+        <td colspan="2"><input type="submit" value="{{$submit}}"></td>
+      </tr>
+    </tbody>
+  </table>
+</div>
diff --git a/retriever/view/extract.tpl b/retriever/view/extract.tpl
deleted file mode 100644 (file)
index e851ddb..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-
-  <xsl:template match="text()"/>
-
-  <xsl:template match="$include">
-    <xsl:copy>
-      <xsl:apply-templates select="node()|@*" mode="remove"/>
-    </xsl:copy>
-  </xsl:template>
-
-  <xsl:template match="node()|@*" mode="remove">
-    <xsl:copy>
-      <xsl:apply-templates select="node()|@*" mode="remove"/>
-    </xsl:copy>
-  </xsl:template>
-
-{{ if $exclude }}
-  <xsl:template match="$exclude" mode="remove"/>
-{{ endif }}
-
-  <!-- attempt to replace relative URLs with absolute URLs -->
-  <!-- http://stackoverflow.com/questions/3824631/replace-href-value-in-anchor-tags-of-html-using-xslt -->
-
-  <xsl:template match="*/@src[starts-with(.,'.')]" mode="remove">
-    <xsl:attribute name="src">
-      <xsl:value-of select="concat('$dirurl',.)"/>
-    </xsl:attribute>
-  </xsl:template>
-  <xsl:template match="*/@src[starts-with(.,'/')]" mode="remove">
-    <xsl:attribute name="src">
-      <xsl:value-of select="concat('$rooturl',.)"/>
-    </xsl:attribute>
-  </xsl:template>
-
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/retriever/view/help.tpl b/retriever/view/help.tpl
deleted file mode 100644 (file)
index 37789a5..0000000
+++ /dev/null
@@ -1,148 +0,0 @@
-<h2>Retriever Plugin Help</h2>
-<p>
-This plugin replaces the short excerpts you normally get in RSS feeds
-with the full content of the article from the source website.  You
-specify which part of the page you're interested in with a set of
-rules.  When each item arrives, the plugin downloads the full page
-from the website, extracts content using the rules, and replaces the
-original article.
-</p>
-<p>
-There's a few reasons you may want to do this.  The source website
-might be slow or overloaded.  The source website might be
-untrustworthy, in which case using Friendica to scrub the HTML is a
-good idea.  You might be on a LAN that blacklists certain websites.
-It also works neatly with the mailstream plugin, allowing you to read
-a news stream comfortably without needing continuous Internet
-connectivity.
-</p>
-<p>
-However, setting up retriever can be quite tricky since it depends on
-the internal design of the website.  This was designed to make life
-easy for the website's developers, not for you.  You'll need to have
-some familiarity with HTML, and be willing to adapt when the website
-suddenly changes everything without notice.
-</p>
-<h3>Configuring Retriever for a feed</h3>
-<p>
-To set up retriever for an RSS feed, go to the "Contacts" page and
-find your feed.  Then click on the drop-down menu on the contact.
-Select "Retriever" to get to the retriever configuration.
-</p>
-<p>
-The "Include" configuration section specifies parts of the page to
-include in the article.  Each row has three components:
-</p>
-<ul>
-<li>An HTML tag (e.g. "div", "span", "p")</li>
-<li>An attribute (usually "class" or "id")</li>
-<li>A value for the attribute</li>
-</ul>
-<p>
-A simple case is when the article is wrapped in a "div" element:
-</p>
-<pre>
-    ...
-    &lt;div class="main-content"&gt;
-      &lt;h2&gt;Man Bites Dog&lt;/h2&gt;
-      &lt;img src="mbd.jpg"&gt;
-      &lt;p&gt;
-        Residents of the sleepy community of Nowheresville were
-        shocked yesterday by the sight of creepy local weirdo Jim
-        McOddman assaulting innocent local dog Snufflekins with his
-        false teeth.
-      &lt;/p&gt;
-      ...
-    &lt;/div&gt;
-    ...
-</pre>
-<p>
-You then specify the tag "div", attribute "class", and value
-"main-content".  Everything else in the page, such as navigation
-panels and menus and footers and so on, will be discarded.  If there
-is more than one section of the page you want to include, specify each
-one on a separate row.  If the matching section contains some sections
-you want to remove, specify those in the "Exclude" section in the same
-way.
-</p>
-<p>
-Once you've got a configuration that you think will work, you can try
-it out on some existing articles.  Type a number into the
-"Retrospectively Apply" box and click "Submit".  After a while
-(exactly how long depends on your system's cron configuration) the new
-articles should be available.
-</p>
-<h3>Techniques</h3>
-<p>
-You can leave the attribute and value blank to include all the
-corresponding elements with the specified tag name.  You can also use
-a tag name of "*", which will match any element type with the
-specified attribute regardless of the tag.
-</p>
-<p>
-Note that the "class" attribute is a special case.  Many web page
-templates will put multiple different classes in the same element,
-separated by spaces.  If you specify an attribute of "class" it will
-match an element if any of its classes matches the specified value.
-For example:
-</p>
-<pre>
-    &lt;div class="article breaking-news"&gt;
-</pre>
-<p>
-In this case you can specify a value of "article", or "breaking-news".
-You can also specify "article breaking-news", but that won't match if
-the website suddenly changes to "breaking-news article", so that's not
-recommended.
-</p>
-<p>
-One useful trick you can try is using the website's "print" pages.
-Many news sites have print versions of all their articles.  These are
-usually drastically simplified compared to the live website page.
-Sometimes this is a good way to get the whole article when it's
-normally split across multiple pages.
-</p>
-<p>
-Hopefully the URL for the print page is a predictable variant of the
-normal article URL.  For example, an article URL like:
-</p>
-<pre>
-    http://www.newssite.com/article-8636.html
-</pre>
-<p>
-...might have a print version at:
-</p>
-<pre>
-    http://www.newssite.com/print/article-8636.html
-</pre>
-<p>
-To change the URL used to retrieve the page, use the "URL Pattern" and
-"URL Replace" fields.  The pattern is a regular expression matching
-part of the URL to replace.  In this case, you might use a pattern of
-"/article" and a replace string of "/print/article".  A common pattern
-is simply "$", used to add the replace string to the end of the URL.
-</p>
-<h3>Background Processing</h3>
-<p>
-Note that retrieving and processing the articles can take some time,
-so it's done in the background.  Incoming articles will be marked as
-invisible while they're in the process of being downloaded.  If a URL
-fails, the plugin will keep trying at progressively longer intervals
-for up to a month, in case the website is temporarily overloaded or
-the network is down.
-</p>
-<h3>Retrieving Images</h3>
-<p>
-Retriever can also optionally download images and store them in the
-local Friendica instance.  Just check the "Download Images" box.  You
-can also download images in every item from your network, whether it's
-an RSS feed or not.  Go to the "Settings" page and
-click <a href="$config">"Plugin settings"</a>.  Then check the "All
-Photos" box in the "Retriever Settings" section and click "Submit".
-</p>
-<h2>Configure Feeds:</h2>
-<div>
-{{ for $feeds as $feed }}
-{{ inc contact_template.tpl with $contact=$feed }}{{ endinc }}
-{{ endfor }}
-</div>
diff --git a/retriever/view/rule-config.tpl b/retriever/view/rule-config.tpl
deleted file mode 100644 (file)
index 3bd2bfc..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-<div class="settings-block">
-  <script language="javascript">
-function retriever_add_row(id)
-{
-    var tbody = document.getElementById(id);
-    var last = tbody.rows[tbody.childElementCount - 1];
-    var count = +last.id.replace(id + '-', '');
-    count++;
-    var row = document.createElement('tr');
-    row.id = id + '-' + count;
-    var cell1 = document.createElement('td');
-    var inptag = document.createElement('input');
-    inptag.name = row.id + '-element';
-    cell1.appendChild(inptag);
-    row.appendChild(cell1);
-    var cell2 = document.createElement('td');
-    var inpatt = document.createElement('input');
-    inpatt.name = row.id + '-attribute';
-    cell2.appendChild(inpatt);
-    row.appendChild(cell2);
-    var cell3 = document.createElement('td');
-    var inpval = document.createElement('input');
-    inpval.name = row.id + '-value';
-    cell3.appendChild(inpval);
-    row.appendChild(cell3);
-    var cell4 = document.createElement('td');
-    var butrem = document.createElement('input');
-    butrem.id = row.id + '-rem';
-    butrem.type = 'button';
-    butrem.onclick = function(){retriever_remove_row(id, count)};
-    butrem.value = '$remove_t';
-    cell4.appendChild(butrem);
-    row.appendChild(cell4);
-    tbody.appendChild(row);
-}
-
-function retriever_remove_row(id, number)
-{
-    var tbody = document.getElementById(id);
-    var row = document.getElementById(id + '-' + number);
-    tbody.removeChild(row);
-}
-  </script>
-  <h2>$title</h2>
-  <p><a href="$help">Get Help</a></p>
-  <form method="post">
-    <input type="hidden" name="id" value="$id">
-{{ inc field_checkbox.tpl with $field=$enable }}{{ endinc }}
-{{ inc field_input.tpl with $field=$pattern }}{{ endinc }}
-{{ inc field_input.tpl with $field=$replace }}{{ endinc }}
-{{ inc field_checkbox.tpl with $field=$images }}{{ endinc }}
-{{ inc field_input.tpl with $field=$retrospective }}{{ endinc }}
-    <h3>$include_t:</h3>
-    <div>
-      <table>
-        <thead>
-          <tr><th>$tag_t</th><th>$attribute_t</th><th>$value_t</th></tr>
-        </thead>
-        <tbody id="retriever-include">
-{{ if $include }}
-  {{ for $include as $k=>$m }}
-          <tr id="retriever-include-$k">
-            <td><input name="retriever-include-$k-element" value="$m.element"></td>
-            <td><input name="retriever-include-$k-attribute" value="$m.attribute"></td>
-            <td><input name="retriever-include-$k-value" value="$m.value"></td>
-            <td><input id="retrieve-include-$k-rem" type="button" onclick="retriever_remove_row('retriever-include', $k)" value="$remove_t"></td>
-          </tr>
-  {{ endfor }}
-{{ else }}
-          <tr id="retriever-include-0">
-            <td><input name="retriever-include-0-element"></td>
-            <td><input name="retriever-include-0-attribute"></td>
-            <td><input name="retriever-include-0-value"></td>
-            <td><input id="retrieve-include-0-rem" type="button" onclick="retriever_remove_row('retriever-include', 0)" value="$remove_t"></td>
-          </tr>
-{{ endif }}
-        </tbody>
-      </table>
-      <input type="button" onclick="retriever_add_row('retriever-include')" value="$add_t">
-    </div>
-    <h3>$exclude_t:</h3>
-    <div>
-      <table>
-        <thead>
-          <tr><th>Tag</th><th>Attribute</th><th>Value</th></tr>
-        </thead>
-        <tbody id="retriever-exclude">
-{{ if $exclude }}
-  {{ for $exclude as $k=>$r }}
-          <tr id="retriever-exclude-$k">
-            <td><input name="retriever-exclude-$k-element" value="$r.element"></td>
-            <td><input name="retriever-exclude-$k-attribute" value="$r.attribute"></td>
-            <td><input name="retriever-exclude-$k-value" value="$r.value"></td>
-            <td><input id="retrieve-exclude-$k-rem" type="button" onclick="retriever_remove_row('retriever-exclude', $k)" value="$remove_t"></td>
-          </tr>
-  {{ endfor }}
-{{ else }}
-          <tr id="retriever-exclude-0">
-            <td><input name="retriever-exclude-0-element"></td>
-            <td><input name="retriever-exclude-0-attribute"></td>
-            <td><input name="retriever-exclude-0-value"></td>
-            <td><input id="retrieve-exclude-0-rem" type="button" onclick="retriever_remove_row('retriever-exclude', 0)" value="$remove_t"></td>
-          </tr>
-{{ endif }}
-        </tbody>
-      </table>
-      <input type="button" onclick="retriever_add_row('retriever-exclude')" value="$add_t">
-    </div>
-    <input type="submit" size="70" value="$submit">
-  </form>
-</div>
diff --git a/retriever/view/settings.tpl b/retriever/view/settings.tpl
deleted file mode 100644 (file)
index 87b9528..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<div class="settings-block">
-  <h3>$title</h3>
-  <p>
-    <a href="$help">Get Help</a>
-  </p>
-  <table>
-    <tbody>
-      <tr>
-        <td>$all_photos_t:</td>
-        <td><input class="checkbox" type="checkbox" name="all_photos" $all_photos></td>
-      </tr>
-      <tr>
-        <td colspan="2"><input type="submit" value="$submit"></td>
-      </tr>
-    </tbody>
-  </table>
-</div>
diff --git a/retriever/view/smarty3/extract.tpl b/retriever/view/smarty3/extract.tpl
deleted file mode 100644 (file)
index 36b9181..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-{{*
- *     AUTOMATICALLY GENERATED TEMPLATE
- *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
- *
- *}}
-<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-
-  <xsl:template match="text()"/>
-
-  <xsl:template match="{{$include}}">
-    <xsl:copy>
-      <xsl:apply-templates select="node()|@*" mode="remove"/>
-    </xsl:copy>
-  </xsl:template>
-
-  <xsl:template match="node()|@*" mode="remove">
-    <xsl:copy>
-      <xsl:apply-templates select="node()|@*" mode="remove"/>
-    </xsl:copy>
-  </xsl:template>
-
-{{if $exclude}}
-  <xsl:template match="{{$exclude}}" mode="remove"/>
-{{/if}}
-
-  <!-- attempt to replace relative URLs with absolute URLs -->
-  <!-- http://stackoverflow.com/questions/3824631/replace-href-value-in-anchor-tags-of-html-using-xslt -->
-
-  <xsl:template match="*/@src[starts-with(.,'.')]" mode="remove">
-    <xsl:attribute name="src">
-      <xsl:value-of select="concat('{{$dirurl}}',.)"/>
-    </xsl:attribute>
-  </xsl:template>
-  <xsl:template match="*/@src[starts-with(.,'/')]" mode="remove">
-    <xsl:attribute name="src">
-      <xsl:value-of select="concat('{{$rooturl}}',.)"/>
-    </xsl:attribute>
-  </xsl:template>
-
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/retriever/view/smarty3/help.tpl b/retriever/view/smarty3/help.tpl
deleted file mode 100644 (file)
index 9e48118..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-{{*
- *     AUTOMATICALLY GENERATED TEMPLATE
- *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
- *
- *}}
-<h2>Retriever Plugin Help</h2>
-<p>
-This plugin replaces the short excerpts you normally get in RSS feeds
-with the full content of the article from the source website.  You
-specify which part of the page you're interested in with a set of
-rules.  When each item arrives, the plugin downloads the full page
-from the website, extracts content using the rules, and replaces the
-original article.
-</p>
-<p>
-There's a few reasons you may want to do this.  The source website
-might be slow or overloaded.  The source website might be
-untrustworthy, in which case using Friendica to scrub the HTML is a
-good idea.  You might be on a LAN that blacklists certain websites.
-It also works neatly with the mailstream plugin, allowing you to read
-a news stream comfortably without needing continuous Internet
-connectivity.
-</p>
-<p>
-However, setting up retriever can be quite tricky since it depends on
-the internal design of the website.  This was designed to make life
-easy for the website's developers, not for you.  You'll need to have
-some familiarity with HTML, and be willing to adapt when the website
-suddenly changes everything without notice.
-</p>
-<h3>Configuring Retriever for a feed</h3>
-<p>
-To set up retriever for an RSS feed, go to the "Contacts" page and
-find your feed.  Then click on the drop-down menu on the contact.
-Select "Retriever" to get to the retriever configuration.
-</p>
-<p>
-The "Include" configuration section specifies parts of the page to
-include in the article.  Each row has three components:
-</p>
-<ul>
-<li>An HTML tag (e.g. "div", "span", "p")</li>
-<li>An attribute (usually "class" or "id")</li>
-<li>A value for the attribute</li>
-</ul>
-<p>
-A simple case is when the article is wrapped in a "div" element:
-</p>
-<pre>
-    ...
-    &lt;div class="main-content"&gt;
-      &lt;h2&gt;Man Bites Dog&lt;/h2&gt;
-      &lt;img src="mbd.jpg"&gt;
-      &lt;p&gt;
-        Residents of the sleepy community of Nowheresville were
-        shocked yesterday by the sight of creepy local weirdo Jim
-        McOddman assaulting innocent local dog Snufflekins with his
-        false teeth.
-      &lt;/p&gt;
-      ...
-    &lt;/div&gt;
-    ...
-</pre>
-<p>
-You then specify the tag "div", attribute "class", and value
-"main-content".  Everything else in the page, such as navigation
-panels and menus and footers and so on, will be discarded.  If there
-is more than one section of the page you want to include, specify each
-one on a separate row.  If the matching section contains some sections
-you want to remove, specify those in the "Exclude" section in the same
-way.
-</p>
-<p>
-Once you've got a configuration that you think will work, you can try
-it out on some existing articles.  Type a number into the
-"Retrospectively Apply" box and click "Submit".  After a while
-(exactly how long depends on your system's cron configuration) the new
-articles should be available.
-</p>
-<h3>Techniques</h3>
-<p>
-You can leave the attribute and value blank to include all the
-corresponding elements with the specified tag name.  You can also use
-a tag name of "*", which will match any element type with the
-specified attribute regardless of the tag.
-</p>
-<p>
-Note that the "class" attribute is a special case.  Many web page
-templates will put multiple different classes in the same element,
-separated by spaces.  If you specify an attribute of "class" it will
-match an element if any of its classes matches the specified value.
-For example:
-</p>
-<pre>
-    &lt;div class="article breaking-news"&gt;
-</pre>
-<p>
-In this case you can specify a value of "article", or "breaking-news".
-You can also specify "article breaking-news", but that won't match if
-the website suddenly changes to "breaking-news article", so that's not
-recommended.
-</p>
-<p>
-One useful trick you can try is using the website's "print" pages.
-Many news sites have print versions of all their articles.  These are
-usually drastically simplified compared to the live website page.
-Sometimes this is a good way to get the whole article when it's
-normally split across multiple pages.
-</p>
-<p>
-Hopefully the URL for the print page is a predictable variant of the
-normal article URL.  For example, an article URL like:
-</p>
-<pre>
-    http://www.newssite.com/article-8636.html
-</pre>
-<p>
-...might have a print version at:
-</p>
-<pre>
-    http://www.newssite.com/print/article-8636.html
-</pre>
-<p>
-To change the URL used to retrieve the page, use the "URL Pattern" and
-"URL Replace" fields.  The pattern is a regular expression matching
-part of the URL to replace.  In this case, you might use a pattern of
-"/article" and a replace string of "/print/article".  A common pattern
-is simply "$", used to add the replace string to the end of the URL.
-</p>
-<h3>Background Processing</h3>
-<p>
-Note that retrieving and processing the articles can take some time,
-so it's done in the background.  Incoming articles will be marked as
-invisible while they're in the process of being downloaded.  If a URL
-fails, the plugin will keep trying at progressively longer intervals
-for up to a month, in case the website is temporarily overloaded or
-the network is down.
-</p>
-<h3>Retrieving Images</h3>
-<p>
-Retriever can also optionally download images and store them in the
-local Friendica instance.  Just check the "Download Images" box.  You
-can also download images in every item from your network, whether it's
-an RSS feed or not.  Go to the "Settings" page and
-click <a href="{{$config}}">"Plugin settings"</a>.  Then check the "All
-Photos" box in the "Retriever Settings" section and click "Submit".
-</p>
-<h2>Configure Feeds:</h2>
-<div>
-{{foreach $feeds as $feed}}
-{{include file="contact_template.tpl" contact=$feed}}
-{{/foreach}}
-</div>
diff --git a/retriever/view/smarty3/rule-config.tpl b/retriever/view/smarty3/rule-config.tpl
deleted file mode 100644 (file)
index 79add59..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-{{*
- *     AUTOMATICALLY GENERATED TEMPLATE
- *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
- *
- *}}
-<div class="settings-block">
-  <script language="javascript">
-function retriever_add_row(id)
-{
-    var tbody = document.getElementById(id);
-    var last = tbody.rows[tbody.childElementCount - 1];
-    var count = +last.id.replace(id + '-', '');
-    count++;
-    var row = document.createElement('tr');
-    row.id = id + '-' + count;
-    var cell1 = document.createElement('td');
-    var inptag = document.createElement('input');
-    inptag.name = row.id + '-element';
-    cell1.appendChild(inptag);
-    row.appendChild(cell1);
-    var cell2 = document.createElement('td');
-    var inpatt = document.createElement('input');
-    inpatt.name = row.id + '-attribute';
-    cell2.appendChild(inpatt);
-    row.appendChild(cell2);
-    var cell3 = document.createElement('td');
-    var inpval = document.createElement('input');
-    inpval.name = row.id + '-value';
-    cell3.appendChild(inpval);
-    row.appendChild(cell3);
-    var cell4 = document.createElement('td');
-    var butrem = document.createElement('input');
-    butrem.id = row.id + '-rem';
-    butrem.type = 'button';
-    butrem.onclick = function(){retriever_remove_row(id, count)};
-    butrem.value = '{{$remove_t}}';
-    cell4.appendChild(butrem);
-    row.appendChild(cell4);
-    tbody.appendChild(row);
-}
-
-function retriever_remove_row(id, number)
-{
-    var tbody = document.getElementById(id);
-    var row = document.getElementById(id + '-' + number);
-    tbody.removeChild(row);
-}
-  </script>
-  <h2>{{$title}}</h2>
-  <p><a href="{{$help}}">Get Help</a></p>
-  <form method="post">
-    <input type="hidden" name="id" value="{{$id}}">
-{{include file="field_checkbox.tpl" field=$enable}}
-{{include file="field_input.tpl" field=$pattern}}
-{{include file="field_input.tpl" field=$replace}}
-{{include file="field_checkbox.tpl" field=$images}}
-{{include file="field_input.tpl" field=$retrospective}}
-    <h3>{{$include_t}}:</h3>
-    <div>
-      <table>
-        <thead>
-          <tr><th>{{$tag_t}}</th><th>{{$attribute_t}}</th><th>{{$value_t}}</th></tr>
-        </thead>
-        <tbody id="retriever-include">
-{{if $include}}
-  {{foreach $include as $k=>$m}}
-          <tr id="retriever-include-{{$k}}">
-            <td><input name="retriever-include-{{$k}}-element" value="{{$m.element}}"></td>
-            <td><input name="retriever-include-{{$k}}-attribute" value="{{$m.attribute}}"></td>
-            <td><input name="retriever-include-{{$k}}-value" value="{{$m.value}}"></td>
-            <td><input id="retrieve-include-{{$k}}-rem" type="button" onclick="retriever_remove_row('retriever-include', {{$k}})" value="{{$remove_t}}"></td>
-          </tr>
-  {{/foreach}}
-{{else}}
-          <tr id="retriever-include-0">
-            <td><input name="retriever-include-0-element"></td>
-            <td><input name="retriever-include-0-attribute"></td>
-            <td><input name="retriever-include-0-value"></td>
-            <td><input id="retrieve-include-0-rem" type="button" onclick="retriever_remove_row('retriever-include', 0)" value="{{$remove_t}}"></td>
-          </tr>
-{{/if}}
-        </tbody>
-      </table>
-      <input type="button" onclick="retriever_add_row('retriever-include')" value="{{$add_t}}">
-    </div>
-    <h3>{{$exclude_t}}:</h3>
-    <div>
-      <table>
-        <thead>
-          <tr><th>Tag</th><th>Attribute</th><th>Value</th></tr>
-        </thead>
-        <tbody id="retriever-exclude">
-{{if $exclude}}
-  {{foreach $exclude as $k=>$r}}
-          <tr id="retriever-exclude-{{$k}}">
-            <td><input name="retriever-exclude-{{$k}}-element" value="{{$r.element}}"></td>
-            <td><input name="retriever-exclude-{{$k}}-attribute" value="{{$r.attribute}}"></td>
-            <td><input name="retriever-exclude-{{$k}}-value" value="{{$r.value}}"></td>
-            <td><input id="retrieve-exclude-{{$k}}-rem" type="button" onclick="retriever_remove_row('retriever-exclude', {{$k}})" value="{{$remove_t}}"></td>
-          </tr>
-  {{/foreach}}
-{{else}}
-          <tr id="retriever-exclude-0">
-            <td><input name="retriever-exclude-0-element"></td>
-            <td><input name="retriever-exclude-0-attribute"></td>
-            <td><input name="retriever-exclude-0-value"></td>
-            <td><input id="retrieve-exclude-0-rem" type="button" onclick="retriever_remove_row('retriever-exclude', 0)" value="{{$remove_t}}"></td>
-          </tr>
-{{/if}}
-        </tbody>
-      </table>
-      <input type="button" onclick="retriever_add_row('retriever-exclude')" value="{{$add_t}}">
-    </div>
-    <input type="submit" size="70" value="{{$submit}}">
-  </form>
-</div>
diff --git a/retriever/view/smarty3/settings.tpl b/retriever/view/smarty3/settings.tpl
deleted file mode 100644 (file)
index 3bc7155..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-{{*
- *     AUTOMATICALLY GENERATED TEMPLATE
- *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
- *
- *}}
-<div class="settings-block">
-  <h3>{{$title}}</h3>
-  <p>
-    <a href="{{$help}}">Get Help</a>
-  </p>
-  <table>
-    <tbody>
-      <tr>
-        <td>{{$all_photos_t}}:</td>
-        <td><input class="checkbox" type="checkbox" name="all_photos" {{$all_photos}}></td>
-      </tr>
-      <tr>
-        <td colspan="2"><input type="submit" value="{{$submit}}"></td>
-      </tr>
-    </tbody>
-  </table>
-</div>
diff --git a/statusnet/templates/admin.tpl b/statusnet/templates/admin.tpl
new file mode 100644 (file)
index 0000000..f8d14c6
--- /dev/null
@@ -0,0 +1,17 @@
+{{foreach $sites as $s}}
+       {{include file="field_input.tpl" field=$s.sitename}}
+       {{include file="field_input.tpl" field=$s.apiurl}}
+       {{include file="field_input.tpl" field=$s.secret}}
+       {{include file="field_input.tpl" field=$s.key}}
+       {{include file="field_input.tpl" field=$s.applicationname}}
+       {{if $s.delete}}
+               {{include file="field_checkbox.tpl" field=$s.delete}}
+               <hr>
+       {{else}}
+               <p>Fill this form to add a new site</p>
+       {{/if}}
+       
+{{/foreach}}
+
+
+<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/statusnet/view/admin.tpl b/statusnet/view/admin.tpl
deleted file mode 100644 (file)
index 686a4c7..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-{{ for $sites as $s }}
-       {{ inc field_input.tpl with $field=$s.sitename }}{{ endinc }}
-       {{ inc field_input.tpl with $field=$s.apiurl }}{{ endinc }}
-       {{ inc field_input.tpl with $field=$s.secret }}{{ endinc }}
-       {{ inc field_input.tpl with $field=$s.key }}{{ endinc }}
-       {{ inc field_input.tpl with $field=$s.applicationname }}{{ endinc }}
-       {{ if $s.delete }}
-               {{ inc field_checkbox.tpl with $field=$s.delete }}{{ endinc }}
-               <hr>
-       {{ else }}
-               <p>Fill this form to add a new site</p>
-       {{ endif }}
-       
-{{ endfor }}
-
-
-<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
diff --git a/statusnet/view/smarty3/admin.tpl b/statusnet/view/smarty3/admin.tpl
deleted file mode 100644 (file)
index f8d14c6..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-{{foreach $sites as $s}}
-       {{include file="field_input.tpl" field=$s.sitename}}
-       {{include file="field_input.tpl" field=$s.apiurl}}
-       {{include file="field_input.tpl" field=$s.secret}}
-       {{include file="field_input.tpl" field=$s.key}}
-       {{include file="field_input.tpl" field=$s.applicationname}}
-       {{if $s.delete}}
-               {{include file="field_checkbox.tpl" field=$s.delete}}
-               <hr>
-       {{else}}
-               <p>Fill this form to add a new site</p>
-       {{/if}}
-       
-{{/foreach}}
-
-
-<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/twitter/templates/admin.tpl b/twitter/templates/admin.tpl
new file mode 100644 (file)
index 0000000..554ed5a
--- /dev/null
@@ -0,0 +1,4 @@
+{{include file="field_input.tpl" field=$consumerkey}}
+{{include file="field_input.tpl" field=$consumersecret}}
+{{include file="field_input.tpl" field=$applicationname}}
+<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/twitter/view/admin.tpl b/twitter/view/admin.tpl
deleted file mode 100644 (file)
index b89f51b..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-{{ inc field_input.tpl with $field=$consumerkey }}{{ endinc }}
-{{ inc field_input.tpl with $field=$consumersecret }}{{ endinc }}
-{{ inc field_input.tpl with $field=$applicationname }}{{ endinc }}
-<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
diff --git a/twitter/view/smarty3/admin.tpl b/twitter/view/smarty3/admin.tpl
deleted file mode 100644 (file)
index 554ed5a..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-{{include file="field_input.tpl" field=$consumerkey}}
-{{include file="field_input.tpl" field=$consumersecret}}
-{{include file="field_input.tpl" field=$applicationname}}
-<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
diff --git a/uhremotestorage/templates/settings.tpl b/uhremotestorage/templates/settings.tpl
new file mode 100644 (file)
index 0000000..9a0a55f
--- /dev/null
@@ -0,0 +1,9 @@
+<div class="settings-block">
+       <h3>{{$title}}</h3>
+       <p>{{$desc}}</p>
+       {{include file="field_input.tpl" field=$url}}
+       {{include file="field_input.tpl" field=$auth}}
+       {{include file="field_select.tpl" field=$api}}
+       <div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>  
+
+</div>
diff --git a/uhremotestorage/view/settings.tpl b/uhremotestorage/view/settings.tpl
deleted file mode 100644 (file)
index 22d7d60..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<div class="settings-block">
-       <h3>$title</h3>
-       <p>$desc</p>
-       {{ inc field_input.tpl with $field=$url }}{{ endinc }}
-       {{ inc field_input.tpl with $field=$auth }}{{ endinc }}
-       {{ inc field_select.tpl with $field=$api }}{{ endinc }}
-       <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>      
-
-</div>
diff --git a/uhremotestorage/view/smarty3/settings.tpl b/uhremotestorage/view/smarty3/settings.tpl
deleted file mode 100644 (file)
index 9a0a55f..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<div class="settings-block">
-       <h3>{{$title}}</h3>
-       <p>{{$desc}}</p>
-       {{include file="field_input.tpl" field=$url}}
-       {{include file="field_input.tpl" field=$auth}}
-       {{include file="field_select.tpl" field=$api}}
-       <div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>  
-
-</div>
diff --git a/widgets/templates/settings.tpl b/widgets/templates/settings.tpl
new file mode 100644 (file)
index 0000000..017fa12
--- /dev/null
@@ -0,0 +1,19 @@
+<div class="settings-block">
+       <h3 class="settings-heading">{{$title}}</h3>
+       <div class='field noedit'>
+               <label>{{$label}}</label>
+               <tt>{{$key}}</tt>
+       </div>
+       
+       <div class="settings-submit-wrapper">
+               <input type="submit" value="{{$submit}}" class="settings-submit" name="widgets-submit" />
+       </div>
+       
+       <h4>{{$widgets_h}}</h4>
+       <ul>
+               {{foreach $widgets as $w}}
+                       <li><a href="{{$baseurl}}/widgets/{{$w.0}}/?k={{$key}}&p=1">{{$w.1}}</a></li>
+               {{/foreach}}
+       </ul>
+       
+</div>
diff --git a/widgets/templates/widget_like.tpl b/widgets/templates/widget_like.tpl
new file mode 100644 (file)
index 0000000..ad52957
--- /dev/null
@@ -0,0 +1,3 @@
+<style>body {font-size: 0.8em; margin: 0px; padding: 0px;}</style>
+<span class='f9k_like' title="{{$strlike}}">{{$like}} <img src="{{$baseurl}}/images/like.gif" alt="like"/></span> 
+<span class='f9k_dislike' title="{{$strdislike}}">{{$dislike}} <img src="{{$baseurl}}/images/dislike.gif" alt="dislike"/></span>
diff --git a/widgets/view/settings.tpl b/widgets/view/settings.tpl
deleted file mode 100755 (executable)
index 9d0f21d..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<div class="settings-block">
-       <h3 class="settings-heading">$title</h3>
-       <div class='field noedit'>
-               <label>$label</label>
-               <tt>$key</tt>
-       </div>
-       
-       <div class="settings-submit-wrapper">
-               <input type="submit" value="$submit" class="settings-submit" name="widgets-submit" />
-       </div>
-       
-       <h4>$widgets_h</h4>
-       <ul>
-               {{ for $widgets as $w }}
-                       <li><a href="$baseurl/widgets/$w.0/?k=$key&p=1">$w.1</a></li>
-               {{ endfor }}
-       </ul>
-       
-</div>
diff --git a/widgets/view/smarty3/settings.tpl b/widgets/view/smarty3/settings.tpl
deleted file mode 100644 (file)
index 017fa12..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<div class="settings-block">
-       <h3 class="settings-heading">{{$title}}</h3>
-       <div class='field noedit'>
-               <label>{{$label}}</label>
-               <tt>{{$key}}</tt>
-       </div>
-       
-       <div class="settings-submit-wrapper">
-               <input type="submit" value="{{$submit}}" class="settings-submit" name="widgets-submit" />
-       </div>
-       
-       <h4>{{$widgets_h}}</h4>
-       <ul>
-               {{foreach $widgets as $w}}
-                       <li><a href="{{$baseurl}}/widgets/{{$w.0}}/?k={{$key}}&p=1">{{$w.1}}</a></li>
-               {{/foreach}}
-       </ul>
-       
-</div>
diff --git a/widgets/view/smarty3/widget_like.tpl b/widgets/view/smarty3/widget_like.tpl
deleted file mode 100644 (file)
index ad52957..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<style>body {font-size: 0.8em; margin: 0px; padding: 0px;}</style>
-<span class='f9k_like' title="{{$strlike}}">{{$like}} <img src="{{$baseurl}}/images/like.gif" alt="like"/></span> 
-<span class='f9k_dislike' title="{{$strdislike}}">{{$dislike}} <img src="{{$baseurl}}/images/dislike.gif" alt="dislike"/></span>
diff --git a/widgets/view/widget_like.tpl b/widgets/view/widget_like.tpl
deleted file mode 100755 (executable)
index 3c26d1d..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<style>body {font-size: 0.8em; margin: 0px; padding: 0px;}</style>
-<span class='f9k_like' title="$strlike">$like <img src="$baseurl/images/like.gif" alt="like"/></span> 
-<span class='f9k_dislike' title="$strdislike">$dislike <img src="$baseurl/images/dislike.gif" alt="dislike"/></span>