[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/templates/bulletproof/ -> plugin_contactform.tpl (source)

   1  {if $plugin_contactform_articleformat}
   2     <div class="serendipity_Entry_Date">
   3         <h3 class="serendipity_date">{$plugin_contactform_name}</h3>
   4         <div class="serendipity_entry">
   5             <div class="serendipity_entry_body">
   6  {/if}
   7  
   8  {if $is_contactform_error}
   9     <div class="serendipity_center serendipity_msg_important">{$plugin_contactform_error}</div>
  10     <!-- Needed for Captchas -->
  11     {foreach from=$comments_messagestack item="message"}
  12     <div class="serendipity_center serendipity_msg_important">{$message}</div>
  13     {/foreach}
  14  {/if}
  15  
  16  {if (empty($is_contactform_sent))}
  17     <div>{$plugin_contactform_preface}</div>
  18  {/if}
  19  
  20  {if $is_contactform_sent}
  21     <div class="serendipity_center serendipity_msg_notice">{$plugin_contactform_sent}</div>
  22  {else}
  23  
  24  <!-- This whole commentform style, including field names is needed -->
  25  <!-- for Captchas. The spamblock plugin relies on the field names  -->
  26  <!-- [name], [email], [url], [comment]!                            -->
  27  
  28  <div class="serendipityCommentForm">
  29      <a id="serendipity_CommentForm"></a>
  30      <form id="serendipity_comment_CommentForm" action="{$commentform_action}#feedback" method="post">
  31          <div>
  32              <input type="hidden" name="serendipity[subpage]" value="{$commentform_sname}" />
  33              <input type="hidden" name="serendipity[commentform]" value="true" />
  34         </div>
  35          <fieldset>
  36              <legend><a href="#">{$plugin_contactform_pagetitle}</a></legend>
  37              <dl>
  38                  <dt class="serendipity_commentsLabel"><label for="serendipity_commentform_name">{$CONST.NAME}</label></dt>
  39                      <dd class="serendipity_commentsValue"><input class="frm" type="text" id="serendipity_commentform_name" name="serendipity[name]" value="{$commentform_name}" size="30" /></dd>
  40                  <dt class="serendipity_commentsLabel"><label for="serendipity_commentform_email">{$CONST.EMAIL}</label></dt>
  41                      <dd class="serendipity_commentsValue"><input class="frm" type="text" id="serendipity_commentform_email" name="serendipity[email]" value="{$commentform_email}" /></dd>
  42                  <dt class="serendipity_commentsLabel"><label for="serendipity_commentform_url">{$CONST.HOMEPAGE}</label></dt>
  43                      <dd class="serendipity_commentsValue"><input class="frm" type="text" id="serendipity_commentform_url" name="serendipity[url]" value="{$commentform_url}" /></dd>
  44                  <dt class="serendipity_commentsLabel"><label for="serendipity_commentform_comment">{$plugin_contactform_message}</label></dt>
  45                      <dd class="serendipity_commentsValue">
  46                          <textarea class="frm" rows="10" cols="40" id="serendipity_commentform_comment" name="serendipity[comment]">{$commentform_data}</textarea>
  47  <!-- This is where the spamblock/Captcha plugin is called -->
  48                          {serendipity_hookPlugin hook="frontend_comment" data=$commentform_entry}
  49                      </dd>
  50                  <dt>&#160;</dt>
  51                  <dd>
  52                      <input class="frm" type="submit" name="serendipity[submit]" value="{$CONST.SUBMIT_COMMENT}" />
  53                  </dd>
  54              </dl>
  55          </fieldset>
  56      </form>
  57  </div>
  58  {/if}
  59  
  60  {if $plugin_contactform_articleformat}
  61              </div>
  62          </div>
  63      </div>
  64  {/if}


Généré le : Sat Nov 24 09:00:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics