1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 11:40:48 +03:00

добавлены хуки в шаблоны

This commit is contained in:
Mzhelskiy Maxim 2010-04-25 16:33:49 +00:00
parent adb22e7ab7
commit 73b511bfc9
24 changed files with 49 additions and 16 deletions

View file

@ -11,6 +11,7 @@
{/if}
<form action="" method="POST" enctype="multipart/form-data">
{hook run='form_add_blog_begin'}
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
<p><label for="blog_title">{$aLang.blog_create_title}:</label>
@ -44,7 +45,8 @@
{/if}
<label for="avatar">{$aLang.blog_create_avatar}:</label>
<input type="file" name="avatar" id="avatar"></p>
{hook run='form_add_blog_end'}
<p><input type="submit" name="submit_blog_add" value="{$aLang.blog_create_submit}">
<input type="hidden" name="blog_id" value="{$_aRequest.blog_id}"></p>
</form>

View file

@ -28,6 +28,7 @@ document.addEvent('domready', function() {
<form action="" method="POST" enctype="multipart/form-data">
{hook run='form_add_topic_link_begin'}
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
<p><label for="blog_id">{$aLang.topic_create_blog}</label>
@ -66,7 +67,7 @@ document.addEvent('domready', function() {
&mdash; {$aLang.topic_create_publish_index}</label>
<span class="form-note">{$aLang.topic_create_publish_index_notice}</span></p>
{/if}
{hook run='form_add_topic_link_end'}
<p class="buttons">
<input type="submit" name="submit_preview" value="{$aLang.topic_create_submit_preview}" onclick="$('text_preview').getParent('div').setStyle('display','block'); ajaxTextPreview('topic_text',false); return false;" />&nbsp;
<input type="submit" name="submit_topic_save" value="{$aLang.topic_create_submit_save}" />

View file

@ -5,7 +5,7 @@
<form action="{router page='login'}" method="POST">
<h3>{$aLang.user_authorization}</h3>
{hook run='form_login_begin'}
<label for="login-input">{$aLang.user_login}:</label>
<p><input type="text" name="login" id="login-input" class="input-text" /></p>
@ -14,7 +14,7 @@
<label for="" class="input-checkbox">
<input type="checkbox" name="remember" class="checkbox" checked />{$aLang.user_login_remember}</label><br />
{hook run='form_login_end'}
<input type="submit" name="submit_login" value="{$aLang.user_login_submit}" /><br /><br />
<a href="{router page='login'}reminder/">{$aLang.user_password_reminder}</a><br />

View file

@ -27,6 +27,7 @@ document.addEvent('domready', function() {
{/if}
<form action="" method="POST" enctype="multipart/form-data">
{hook run='form_add_topic_question_begin'}
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
@ -94,7 +95,7 @@ document.addEvent('domready', function() {
&mdash; {$aLang.topic_create_publish_index}</label>
<span class="form-note">{$aLang.topic_create_publish_index_notice}</span></p>
{/if}
{hook run='form_add_topic_question_end'}
<p>
<input type="submit" name="submit_preview" value="{$aLang.topic_create_submit_preview}" onclick="$('text_preview').getParent('div').setStyle('display','block'); ajaxTextPreview('topic_text',false); return false;" />&nbsp;
<input type="submit" name="submit_topic_save" value="{$aLang.topic_create_submit_save}" />

View file

@ -3,7 +3,7 @@
<div class="center-block">
<form action="{router page='registration'}" method="POST">
<h3>{$aLang.registration}</h3>
{hook run='form_registration_begin'}
<p><label for="login">{$aLang.registration_login}:</label>
<input type="text" name="login" id="login" class="input-text" value="{$_aRequest.login}" />
<span>{$aLang.registration_login_notice}</span></p>
@ -22,7 +22,7 @@
<p><label for="captcha">{$aLang.registration_captcha}:</label>
<img src="{cfg name='path.root.engine_lib'}/external/kcaptcha/index.php?{$_sPhpSessionName}={$_sPhpSessionId}" onclick="this.src='{cfg name='path.root.engine_lib'}/external/kcaptcha/index.php?{$_sPhpSessionName}={$_sPhpSessionId}&n='+Math.random();"><br />
<input type="text" name="captcha" id="captcha" maxlength="3" class="input-text captcha" value="" /></p>
{hook run='form_registration_end'}
<input type="submit" name="submit_register" value="{$aLang.registration_submit}" />
</form>
</div>

View file

@ -30,6 +30,7 @@ document.addEvent('domready', function() {
<h1>{$aLang.settings_profile_edit}</h1>
<form action="" method="POST" enctype="multipart/form-data">
{hook run='form_settings_profile_begin'}
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
<p><label for="profile_name">{$aLang.settings_profile_name}:</label>
@ -102,7 +103,7 @@ document.addEvent('domready', function() {
<label for="foto_delete"><input type="checkbox" id="foto_delete" name="foto_delete" value="on"> &mdash; {$aLang.settings_profile_foto_delete}</label><br />
{/if}
<p><label for="foto">{$aLang.settings_profile_foto}:</label><input type="file" id="foto" name="foto"/></p>
{hook run='form_settings_profile_end'}
<p><input type="submit" value="{$aLang.settings_profile_submit}" name="submit_profile_edit"/></p>
</form>

View file

@ -3,6 +3,7 @@
<h2>{$aLang.settings_tuning}</h2>
<strong>{$aLang.settings_tuning_notice}</strong>
<form action="{router page='settings'}tuning/" method="POST" enctype="multipart/form-data">
{hook run='form_settings_tuning_begin'}
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
<p>
<label for=""><input {if $oUserCurrent->getSettingsNoticeNewTopic()}checked{/if} type="checkbox" id="settings_notice_new_topic" name="settings_notice_new_topic" value="1" class="input-checkbox" /> &mdash; {$aLang.settings_tuning_notice_new_topic}</label>
@ -11,6 +12,7 @@
<label for=""><input {if $oUserCurrent->getSettingsNoticeReplyComment()}checked{/if} type="checkbox" id="settings_notice_reply_comment" name="settings_notice_reply_comment" value="1" class="input-checkbox" /> &mdash; {$aLang.settings_tuning_notice_reply_comment}</label>
<label for=""><input {if $oUserCurrent->getSettingsNoticeNewFriend()}checked{/if} type="checkbox" id="settings_notice_new_friend" name="settings_notice_new_friend" value="1" class="input-checkbox" /> &mdash; {$aLang.settings_tuning_notice_new_friend}</label>
</p>
{hook run='form_settings_tuning_end'}
<input type="submit" name="submit_settings_tuning" value="{$aLang.settings_tuning_submit}" />
</form>

View file

@ -65,6 +65,7 @@ document.addEvent('domready', function() {
{/if}
<form action="" method="POST" enctype="multipart/form-data">
{hook run='form_add_topic_topic_begin'}
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
<p><label for="blog_id">{$aLang.topic_create_blog}</label>
@ -126,7 +127,7 @@ document.addEvent('domready', function() {
&mdash; {$aLang.topic_create_publish_index}</label>
<span class="form-note">{$aLang.topic_create_publish_index_notice}</span></p>
{/if}
{hook run='form_add_topic_topic_end'}
<p>
<input type="submit" name="submit_preview" value="{$aLang.topic_create_submit_preview}" onclick="$('text_preview').getParent('div').setStyle('display','block'); ajaxTextPreview('topic_text',false); return false;" />&nbsp;
<input type="submit" name="submit_topic_save" value="{$aLang.topic_create_submit_save}" />

View file

@ -75,8 +75,10 @@
<a href="#" onclick="lsPanel.putTagAround('form_comment_text','code'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/code.gif" width="30" height="20" title="{$aLang.panel_code}"></a>
</div>
{/if}
<form action="" method="POST" id="form_comment" onsubmit="return false;" enctype="multipart/form-data">
<textarea name="comment_text" id="form_comment_text" style="width: 99%; height: 100px;"></textarea>
<form action="" method="POST" id="form_comment" onsubmit="return false;" enctype="multipart/form-data">
{hook run='form_add_comment_begin'}
<textarea name="comment_text" id="form_comment_text" style="width: 99%; height: 100px;"></textarea>
{hook run='form_add_comment_end'}
<input type="submit" name="submit_preview" value="{$aLang.comment_preview}" onclick="lsCmtTree.preview($('form_comment_reply').getProperty('value')); return false;" />&nbsp;
<input type="submit" name="submit_comment" value="{$aLang.comment_add}" onclick="lsCmtTree.addComment('form_comment',{$iTargetId},'{$sTargetType}'); return false;">
<input type="hidden" name="reply" value="" id="form_comment_reply">

View file

@ -1,3 +1,4 @@
</div>
{hook run='body_end'}
</body>
</html>

View file

@ -15,5 +15,6 @@
</div>
</div>
{hook run='body_end'}
</body>
</html>

View file

@ -13,6 +13,7 @@
</head>
<body>
{hook run='body_begin'}
<div id="container">
<div id="header">

View file

@ -81,6 +81,8 @@
<body onload="prettyPrint()">
{hook run='body_begin'}
<div id="debug" style="border: 2px #dd0000 solid; display: none;"></div>
<div id="container">

View file

@ -29,6 +29,7 @@
<li {if $sMenuHeadItemSelect=='blog'}class="active"{/if}><a href="{router page='blog'}">{$aLang.blogs}</a></li>
<li {if $sMenuHeadItemSelect=='people'}class="active"{/if}><a href="{router page='people'}">{$aLang.people}</a></li>
<li {if $sAction=='page' and $sEvent=='about'}class="active"{/if}><a href="{router page='page'}about/">{$aLang.page_about}</a></li>
{hook run='main_menu'}
</ul>

View file

@ -10,6 +10,7 @@
<h1>{$aLang.blog_admin}: <a href="{router page='blog'}{$oBlogEdit->getUrl()}/">{$oBlogEdit->getTitle()}</a></h1>
{/if}
<form action="" method="POST" enctype="multipart/form-data">
{hook run='form_add_blog_begin'}
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
<p><label for="blog_title">{$aLang.blog_create_title}:</label><br />
@ -43,7 +44,8 @@
{/if}
<label for="avatar">{$aLang.blog_create_avatar}:</label><br />
<input type="file" name="avatar" id="avatar"></p>
{hook run='form_add_blog_end'}
<p><input type="submit" name="submit_blog_add" value="{$aLang.blog_create_submit}">
<input type="hidden" name="blog_id" value="{$_aRequest.blog_id}"></p>

View file

@ -26,6 +26,7 @@ document.addEvent('domready', function() {
<h1>{$aLang.topic_link_edit}</h1>
{/if}
<form action="" method="POST" enctype="multipart/form-data">
{hook run='form_add_topic_link_begin'}
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
<p><label for="blog_id">{$aLang.topic_create_blog}</label>
@ -64,7 +65,7 @@ document.addEvent('domready', function() {
&mdash; {$aLang.topic_create_publish_index}</label><br />
<span class="form_note">{$aLang.topic_create_publish_index_notice}</span></p>
{/if}
{hook run='form_add_topic_link_end'}
<p class="buttons">
<input type="submit" name="submit_topic_publish" value="{$aLang.topic_create_submit_publish}" class="right" />
<input type="submit" name="submit_preview" value="{$aLang.topic_create_submit_preview}" onclick="$('text_preview').getParent('div').setStyle('display','block'); ajaxTextPreview('topic_text',false); return false;" />&nbsp;

View file

@ -8,6 +8,7 @@
<form action="{router page='login'}" method="POST">
<h3>{$aLang.user_authorization}</h3>
{hook run='form_login_begin'}
<div class="lite-note"><a href="{router page='registration'}">{$aLang.user_registration}</a><label for="login-input">{$aLang.user_login}</label></div>
<p><input type="text" class="input-text" name="login" tabindex="1" id="login-input"/></p>
<div class="lite-note"><a href="{router page='login'}reminder/" tabindex="-1">{$aLang.user_password_reminder}</a><label for="password-input">{$aLang.user_password}</label></div>
@ -16,6 +17,7 @@
<button type="submit" class="button"><span><em>{$aLang.user_login_submit}</em></span></button>
<label for="" class="input-checkbox"><input type="checkbox" name="remember" checked tabindex="3" >{$aLang.user_login_remember}</label>
</div>
{hook run='form_login_end'}
<input type="hidden" name="submit_login">
</form>

View file

@ -27,6 +27,7 @@ document.addEvent('domready', function() {
<h1>{$aLang.topic_question_edit}</h1>
{/if}
<form action="" method="POST" enctype="multipart/form-data">
{hook run='form_add_topic_question_begin'}
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
<p><label for="blog_id">{$aLang.topic_create_blog}</label>
@ -111,7 +112,7 @@ document.addEvent('domready', function() {
&mdash; {$aLang.topic_create_publish_index}</label><br />
<span class="form_note">{$aLang.topic_create_publish_index_notice}</span></p>
{/if}
{hook run='form_add_topic_question_end'}
<p class="buttons">
<input type="submit" name="submit_topic_publish" value="{$aLang.topic_create_submit_publish}" class="right" />
<input type="submit" name="submit_preview" value="{$aLang.topic_create_submit_preview}" onclick="$('text_preview').getParent('div').setStyle('display','block'); ajaxTextPreview('topic_text',false); return false;" />&nbsp;

View file

@ -4,6 +4,7 @@
<div class="lite-center register">
<form action="{router page='registration'}" method="POST">
<h3>{$aLang.registration}</h3>
{hook run='form_registration_begin'}
<label for="login">{$aLang.registration_login}:</label><br />
<p><input type="text" class="input-text" name="login" id="login" value="{$_aRequest.login}"/>
<span class="input-note">{$aLang.registration_login_notice}</span></p>
@ -22,6 +23,7 @@
{$aLang.registration_captcha}:<br />
<img src="{cfg name='path.root.engine_lib'}/external/kcaptcha/index.php?{$_sPhpSessionName}={$_sPhpSessionId}" onclick="this.src='{cfg name='path.root.engine_lib'}/external/kcaptcha/index.php?{$_sPhpSessionName}={$_sPhpSessionId}&n='+Math.random();">
<p><input type="text" class="input-text" style="width: 80px;" name="captcha" value="" maxlength=3 /></p>
{hook run='form_registration_end'}
<div class="lite-note">
<button type="submit" name="submit_register" class="button" style="float: none;"><span><em>{$aLang.registration_submit}</em></span></button>
</div>

View file

@ -29,6 +29,7 @@ document.addEvent('domready', function() {
<h1>{$aLang.settings_profile_edit}</h1>
<form action="" method="POST" enctype="multipart/form-data">
{hook run='form_settings_profile_begin'}
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
<p>
@ -107,6 +108,7 @@ document.addEvent('domready', function() {
{/if}
<p><label for="foto">{$aLang.settings_profile_foto}:</label><br /><input type="file" id="foto" name="foto"/></p>
{hook run='form_settings_profile_end'}
<p><input type="submit" value="{$aLang.settings_profile_submit}" name="submit_profile_edit"/></p>
</form>

View file

@ -3,6 +3,7 @@
<h1>{$aLang.settings_tuning}</h1>
<strong>{$aLang.settings_tuning_notice}</strong>
<form action="{router page='settings'}tuning/" method="POST" enctype="multipart/form-data">
{hook run='form_settings_tuning_begin'}
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
<p>
<label for=""><input {if $oUserCurrent->getSettingsNoticeNewTopic()}checked{/if} type="checkbox" id="settings_notice_new_topic" name="settings_notice_new_topic" value="1" class="checkbox" /> &mdash; {$aLang.settings_tuning_notice_new_topic}</label><br />
@ -12,6 +13,7 @@
<label for=""><input {if $oUserCurrent->getSettingsNoticeNewFriend()}checked{/if} type="checkbox" id="settings_notice_new_friend" name="settings_notice_new_friend" value="1" class="checkbox" /> &mdash; {$aLang.settings_tuning_notice_new_friend}</label>
</p>
<p><input type="submit" name="submit_settings_tuning" value="{$aLang.settings_tuning_submit}" /></p>
{hook run='form_settings_tuning_end'}
</form>
{include file='footer.tpl'}

View file

@ -64,6 +64,7 @@ tinyMCE.init({
<h1>{$aLang.topic_topic_edit}</h1>
{/if}
<form action="" method="POST" enctype="multipart/form-data">
{hook run='form_add_topic_topic_begin'}
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
<p><label for="blog_id">{$aLang.topic_create_blog}</label>
@ -127,6 +128,7 @@ tinyMCE.init({
<span class="form_note">{$aLang.topic_create_publish_index_notice}</span></p>
{/if}
{hook run='form_add_topic_topic_end'}
<p class="buttons">
<input type="submit" name="submit_topic_publish" value="{$aLang.topic_create_submit_publish}" class="right" />
<input type="submit" name="submit_preview" value="{$aLang.topic_create_submit_preview}" onclick="$('text_preview').getParent('div').setStyle('display','block'); ajaxTextPreview('topic_text',false); return false;" />&nbsp;

View file

@ -85,8 +85,10 @@
<a href="#" onclick="lsPanel.putTagAround('form_comment_text','code'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/code.gif" width="30" height="20" title="{$aLang.panel_code}"></a>
</div>
{/if}
<form action="" method="POST" id="form_comment" onsubmit="return false;" enctype="multipart/form-data">
<textarea name="comment_text" id="form_comment_text" style="width: 100%; height: 100px;"></textarea>
<form action="" method="POST" id="form_comment" onsubmit="return false;" enctype="multipart/form-data">
{hook run='form_add_comment_begin'}
<textarea name="comment_text" id="form_comment_text" style="width: 100%; height: 100px;"></textarea>
{hook run='form_add_comment_end'}
<input type="submit" name="submit_preview" value="{$aLang.comment_preview}" onclick="lsCmtTree.preview($('form_comment_reply').getProperty('value')); return false;" />&nbsp;
<input type="submit" name="submit_comment" value="{$aLang.comment_add}" onclick="lsCmtTree.addComment('form_comment',{$iTargetId},'{$sTargetType}'); return false;">
<input type="hidden" name="reply" value="" id="form_comment_reply">

View file

@ -26,6 +26,7 @@
<li {if $sMenuHeadItemSelect=='blog'}class="active"{/if}><a href="{router page='blog'}">{$aLang.blogs}</a></li>
<li {if $sMenuHeadItemSelect=='people'}class="active"{/if}><a href="{router page='people'}">{$aLang.people}</a></li>
<li {if $sAction=='page' and $sEvent=='about'}class="active"{/if}><a href="{router page='page'}about/">{$aLang.page_about}</a></li>
{hook run='main_menu'}
</ul>
{if $oUserCurrent}