From: <pk...@us...> - 2008-11-03 22:31:04
|
Revision: 15492 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=15492&view=rev Author: pkdille Date: 2008-11-03 22:31:03 +0000 (Mon, 03 Nov 2008) Log Message: ----------- [MOD] buttons: deploy smarty plugin button Modified Paths: -------------- trunk/templates/tiki-admin-include-general.tpl trunk/templates/tiki-interactive_trans.tpl trunk/templates/tiki-mods.tpl trunk/templates/tiki-objectpermissions.tpl trunk/templates/tiki-register.tpl trunk/templates/tiki-upload_image.tpl trunk/templates/tiki-view_tracker_item.tpl Modified: trunk/templates/tiki-admin-include-general.tpl =================================================================== --- trunk/templates/tiki-admin-include-general.tpl 2008-11-03 21:28:04 UTC (rev 15491) +++ trunk/templates/tiki-admin-include-general.tpl 2008-11-03 22:31:03 UTC (rev 15492) @@ -52,7 +52,13 @@ <th colspan="2" align="center">{tr}General Preferences{/tr}</th> </tr> - <tr><td style="width:40%" class="form">{tr}Tikiwiki version{/tr} : </td><td class="form">{$tiki_version}<br /><span class="button2"><a href="tiki-install.php">{tr}Reset or upgrade your database{/tr}</a></span></td></tr> + <tr> + <td style="width:40%" class="form">{tr}Tikiwiki version{/tr} : </td> + <td class="form"> + {$tiki_version}<br /> + {button href="tiki-install.php" _text="{tr}Reset or upgrade your database{/tr}"} + </td> + </tr> <tr><td colspan="2"><hr /></td></tr> <tr> Modified: trunk/templates/tiki-interactive_trans.tpl =================================================================== --- trunk/templates/tiki-interactive_trans.tpl 2008-11-03 21:28:04 UTC (rev 15491) +++ trunk/templates/tiki-interactive_trans.tpl 2008-11-03 22:31:03 UTC (rev 15492) @@ -11,12 +11,14 @@ {if $update eq 'y'} {tr}has been updated{/tr} <p> - <span class="button2"><a href="#" onclick='window.opener.location.reload(); self.close(); return false'>{tr}Close this window{/tr}</a></span> - <span class="button2"><a href="#" onclick='history.go(-1);'>{tr}Go Back{/tr}</a></span> + {button href="#" _onclick="window.opener.location.reload(); self.close(); return false" _text="{tr}Close this window{/tr}"} + {button href="#" _onclick="history.go(-1);" _text="{tr}Go Back{/tr}"} </p> <p><small>*{tr}Clicking 'Close this window' will reload the main window from where it was opened{/tr}</small></p> {else} - <p><span class="button2"><a href="#" onclick='self.close();'>{tr}Close this window{/tr}</a></span></p> + <p> + {button href="#" _onclick="self.close();" _text="{tr}Close this window{/tr}"} + </p> <form><table class='normal'> {assign var=first value=""} @@ -41,4 +43,4 @@ </div> </body> -</html> \ No newline at end of file +</html> Modified: trunk/templates/tiki-mods.tpl =================================================================== --- trunk/templates/tiki-mods.tpl 2008-11-03 21:28:04 UTC (rev 15491) +++ trunk/templates/tiki-mods.tpl 2008-11-03 22:31:03 UTC (rev 15492) @@ -167,7 +167,8 @@ {foreach key=type item=i from=$display} <tr><td colspan="{if $prefs.feature_mods_provider eq 'y'}3{else}2{/if}"> -<span class="button2"><a href="tiki-mods.php?type={$type|escape:"url"}{$findarg}" title="{tr}Display only this type{/tr}">{$type}</a></span> + {assign var=thistype value=$type|escape:"url"} + {button href="tiki-mods.php?type=$thistype$findarg" _title="{tr}Display only this type{/tr}" _text=$type} </td><td colspan="7"> </td> </tr> {cycle values="odd,even" print=false} Modified: trunk/templates/tiki-objectpermissions.tpl =================================================================== --- trunk/templates/tiki-objectpermissions.tpl 2008-11-03 21:28:04 UTC (rev 15491) +++ trunk/templates/tiki-objectpermissions.tpl 2008-11-03 22:31:03 UTC (rev 15492) @@ -168,10 +168,9 @@ {tr}and also to all pages of the sub-structure:{/tr} <input name="assignstructure" type="checkbox" /> {/if} <br /><br /> -<div class="button2"> -<a href="#" onclick="javascript:flip('edithelpzone'); return false;">{tr}Perms Help{/tr}</a> -</div> +{button href="#" _onclick="javascript:flip('edithelpzone'); return false;" _text="{tr}Perms Help{/tr}"} + <div class="wiki-edithelp" id='edithelpzone' > {cycle print=false values="even,odd"} <table class="normal"> Modified: trunk/templates/tiki-register.tpl =================================================================== --- trunk/templates/tiki-register.tpl 2008-11-03 21:28:04 UTC (rev 15491) +++ trunk/templates/tiki-register.tpl 2008-11-03 22:31:03 UTC (rev 15492) @@ -78,10 +78,18 @@ {if $prefs.generate_password eq 'y'} - <p><div><span class="button2"><a href="#" onClick="genPass('genepass','pass1','pass2');runPassword(document.RegForm.genpass.value, 'mypassword');{if $prefs.feature_ajax eq 'y'}check_pass();{/if}">{tr}Generate a password{/tr}:</a></span><input id='genepass' name="genpass" type="text" /></div></p> + <p> + <div> + {if $prefs.feature_ajax eq 'y'} + {button href="#" _onclick="genPass('genepass','pass1','pass2');runPassword(document.RegForm.genpass.value, 'mypassword');check_pass();" _text="{tr}Generate a password:{/tr}"} + {else} + {button href="#" _onclick="genPass('genepass','pass1','pass2');runPassword(document.RegForm.genpass.value, 'mypassword');" _text="{tr}Generate a password:{/tr}"} + {/if} + <input id='genepass' name="genpass" type="text" /> + </div> + </p> {/if} - </td> </tr> Modified: trunk/templates/tiki-upload_image.tpl =================================================================== --- trunk/templates/tiki-upload_image.tpl 2008-11-03 21:28:04 UTC (rev 15491) +++ trunk/templates/tiki-upload_image.tpl 2008-11-03 22:31:03 UTC (rev 15492) @@ -3,19 +3,15 @@ {title help="Image+Galleries"}{tr}Upload Image{/tr}{/title} <div class="navbar"> - <span class="button2"> - {if $galleryId ne ''} - <a href="{$galleryId:sefurl:gallery}"> - {else} - <a href="tiki-galleries.php"> - {/if} - {tr}Browse gallery{/tr}</a> - </span> + {if $galleryId ne ''} + {button href="tiki-browse_gallery.php" _auto_args="galleryId" _text="{tr}Browse gallery{/tr}"} + {else} + {button href="tiki-galleries.php" _text="{tr}Browse gallery{/tr}"} + {/if} + {if $prefs.feature_gal_batch eq "y" and $tiki_p_batch_upload_image_dir eq 'y'} {if $tiki_p_admin_galleries eq 'y' or ($user and $user eq $owner) or $public eq 'y'} - <span class="button2"> - <a href="tiki-batch_upload.php{if $galleryId}?galleryId={$galleryId}{/if}">{tr}Directory batch{/tr}</a> - </span> + {button href="tiki-batch_upload.php" _auto_args="galleryId" _text="{tr}Directory batch{/tr}"} {/if} {/if} </div> Modified: trunk/templates/tiki-view_tracker_item.tpl =================================================================== --- trunk/templates/tiki-view_tracker_item.tpl 2008-11-03 21:28:04 UTC (rev 15491) +++ trunk/templates/tiki-view_tracker_item.tpl 2008-11-03 22:31:03 UTC (rev 15492) @@ -15,20 +15,18 @@ {/if} {if $tiki_p_list_trackers eq 'y' or $tiki_p_admin_trackers eq 'y'} - <span class="button2"><a href="tiki-list_trackers.php">{tr}List Trackers{/tr}</a></span> + {button href="tiki-list_trackers.php" _text="{tr}List Trackers{/tr}"} {/if} {if $tiki_p_view_trackers eq 'y'} - <span class="button2"> - <a href="tiki-view_tracker.php?trackerId={$trackerId}{if $status}&status={$status}{/if}{if $sort_mode}&sort_mode={$sort_mode}{/if}">{tr}View This Tracker's Items{/tr}</a> - </span> + {button href="tiki-view_tracker.php" _auto_args="trackerId,status,sort_mode" _text="{tr}View This Tracker's Items{/tr}"} {/if} {if $tiki_p_admin_trackers eq 'y'} - <span class="button2"><a href="tiki-admin_trackers.php">{tr}Admin Trackers{/tr}</a></span> - <span class="button2"><a href="tiki-admin_trackers.php?trackerId={$trackerId}">{tr}Edit This Tracker{/tr}</a></span> - <span class="button2"><a href="tiki-admin_tracker_fields.php?trackerId={$trackerId}">{tr}Edit Fields{/tr}</a></span> + {button href="tiki-admin_trackers.php" _text="{tr}Admin Trackers{/tr}"} + {button href="tiki-admin_trackers.php?trackerId=$trackerId" _text="{tr}Edit This Tracker{/tr}"} + {button href="tiki-admin_tracker_fields.php?trackerId=$trackerId" _text="{tr}Edit Fields{/tr}"} {/if} </div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |