aboutsummaryrefslogtreecommitdiffstats
path: root/library/Smarty/demo/templates/index.tpl
diff options
context:
space:
mode:
authorWave <wave72@users.noreply.github.com>2015-12-20 10:20:36 +0100
committerWave <wave72@users.noreply.github.com>2015-12-20 10:20:36 +0100
commit2aad4c2cf9c17a7532089aadfcc5feff6505ec74 (patch)
tree2082c8dc7ba090f610874b6e33b0f1092a2ff00c /library/Smarty/demo/templates/index.tpl
parent474a1267d73c1dcf00678dd15ed4e0e37496473d (diff)
parente2692a4baaf031bd0d9c0893c3762637b1f6b201 (diff)
downloadvolse-hubzilla-2aad4c2cf9c17a7532089aadfcc5feff6505ec74.tar.gz
volse-hubzilla-2aad4c2cf9c17a7532089aadfcc5feff6505ec74.tar.bz2
volse-hubzilla-2aad4c2cf9c17a7532089aadfcc5feff6505ec74.zip
Merge pull request #4 from redmatrix/master
Merge master into dev branch
Diffstat (limited to 'library/Smarty/demo/templates/index.tpl')
-rw-r--r--library/Smarty/demo/templates/index.tpl87
1 files changed, 0 insertions, 87 deletions
diff --git a/library/Smarty/demo/templates/index.tpl b/library/Smarty/demo/templates/index.tpl
deleted file mode 100644
index 1fbb6d379..000000000
--- a/library/Smarty/demo/templates/index.tpl
+++ /dev/null
@@ -1,87 +0,0 @@
-{config_load file="test.conf" section="setup"}
-{include file="header.tpl" title=foo}
-
-<PRE>
-
-{* bold and title are read from the config file *}
- {if #bold#}<b>{/if}
- {* capitalize the first letters of each word of the title *}
- Title: {#title#|capitalize}
- {if #bold#}</b>{/if}
-
- The current date and time is {$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}
-
- The value of global assigned variable $SCRIPT_NAME is {$SCRIPT_NAME}
-
- Example of accessing server environment variable SERVER_NAME: {$smarty.server.SERVER_NAME}
-
- The value of {ldelim}$Name{rdelim} is <b>{$Name}</b>
-
-variable modifier example of {ldelim}$Name|upper{rdelim}
-
-<b>{$Name|upper}</b>
-
-
-An example of a section loop:
-
- {section name=outer
- loop=$FirstName}
- {if $smarty.section.outer.index is odd by 2}
- {$smarty.section.outer.rownum} . {$FirstName[outer]} {$LastName[outer]}
- {else}
- {$smarty.section.outer.rownum} * {$FirstName[outer]} {$LastName[outer]}
- {/if}
- {sectionelse}
- none
- {/section}
-
- An example of section looped key values:
-
- {section name=sec1 loop=$contacts}
- phone: {$contacts[sec1].phone}
- <br>
-
- fax: {$contacts[sec1].fax}
- <br>
-
- cell: {$contacts[sec1].cell}
- <br>
- {/section}
- <p>
-
- testing strip tags
- {strip}
-<table border=0>
- <tr>
- <td>
- <A HREF="{$SCRIPT_NAME}">
- <font color="red">This is a test </font>
- </A>
- </td>
- </tr>
-</table>
- {/strip}
-
-</PRE>
-
-This is an example of the html_select_date function:
-
-<form>
- {html_select_date start_year=1998 end_year=2010}
-</form>
-
-This is an example of the html_select_time function:
-
-<form>
- {html_select_time use_24_hours=false}
-</form>
-
-This is an example of the html_options function:
-
-<form>
- <select name=states>
- {html_options values=$option_values selected=$option_selected output=$option_output}
- </select>
-</form>
-
-{include file="footer.tpl"}