Ignore:
Timestamp:
Apr 4, 2011, 2:51:28 PM (13 years ago)
Author:
plg
Message:

compatibility with Piwigo 2.2 (remove "adviser", get_comment_post_key()
replaced by get_ephemeral_key(), known_script replaced by combine_script
and use of combine_css)

textarea is no more "resizable" (useless and break CSS rules)

Location:
extensions/ContactForm/themes
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/themes/cf_button.tpl

    r8479 r10035  
    1 {html_head}
    2   {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}
    3 {/html_head}
    4 
    51<div class="cf-button">
    62<input type="button" value="{'cf_hide'|@translate}" onclick="hide('cf_messages');">
    73</div>
    8 {literal}
    9 <script type="text/javascript">
     4
     5{footer_script require="jquery"}{literal}
    106function hide(id) {
    117  var element = document.getElementById(id);
     
    1511  }
    1612}
    17 </script>
    18 {/literal}
     13{/literal}{/footer_script}
  • extensions/ContactForm/themes/cf_form.tpl

    r8479 r10035  
    1 {html_head}
    2   {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
    3   {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}
    4   {known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.resizable.packed.js"}
    5 {/html_head}
     1{combine_css path="plugins/ContactForm/include/contactform.css"}
     2{combine_script id="ContactForm" load="async" path="plugins/ContactForm/include/contactform.js"}
    63
    7 {literal}
    8 <script type="text/javascript">
    9 jQuery().ready(function(){
    10     // Resize possible for textarea
    11     jQuery("#cf_message").resizable({
    12         handles: "all",
    13         animate: true,
    14         animateDuration: "slow",
    15         animateEasing: "swing",
    16         preventDefault: true,
    17         preserveCursor: true,
    18         autoHide: true,
    19         ghost: true
    20       });
    21   });
    22 jQuery().ready(function(){
    23   // Resize possible for textarea
    24   jQuery(".cf-input").resizable({
    25         handles: "e",
    26         animate: true,
    27         animateDuration: "slow",
    28         animateEasing: "swing",
    29         preventDefault: true,
    30         preserveCursor: true,
    31         autoHide: true,
    32         ghost: true
    33       });
    34   });
    35 
     4{footer_script}{literal}
    365function cf_validate() {
    376  var items = new Array('cf_from_name','cf_from_mail','cf_subject','cf_message');
     
    5827  return true;
    5928}
    60 </script>
    61 {/literal}
     29{/literal}{/footer_script}
     30
    6231<div id="autre_content" class="contact-form">
    6332  <form  method="post" action="{$CF.F_ACTION}" class="filter" id="contactform" onsubmit="return cf_validate();">
  • extensions/ContactForm/themes/simple-black/cf_form.tpl

    r8479 r10035  
    1 {html_head}
    2   <!-- {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} -->
    3   {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}
    4   {known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.resizable.packed.js"}
    5 {/html_head}
     1{combine_css path="plugins/ContactForm/include/contactform.css"}
     2{combine_script id="ContactForm" load="async" path="plugins/ContactForm/include/contactform.js"}
    63
    7 {literal}
    8 <script type="text/javascript">
     4{footer_script}{literal}
    95jQuery().ready(function(){
    106    // Resize possible for textarea
     
    5854  return true;
    5955}
    60 </script>
    61 {/literal}
     56{/literal}{/footer_script}
     57
    6258<div id="subcontent" class="contact-form">
    6359  <form  method="post" action="{$CF.F_ACTION}" class="filter" id="contactform" onsubmit="return cf_validate();">
  • extensions/ContactForm/themes/simple-sunset/cf_form.tpl

    r8479 r10035  
    1 {html_head}
    2   <!-- {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} -->
    3   {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}
    4   {known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.resizable.packed.js"}
    5 {/html_head}
     1{combine_css path="plugins/ContactForm/include/contactform.css"}
     2{combine_script id="ContactForm" load="async" path="plugins/ContactForm/include/contactform.js"}
    63
    7 {literal}
    8 <script type="text/javascript">
     4{footer_script}{literal}
    95jQuery().ready(function(){
    106    // Resize possible for textarea
     
    5854  return true;
    5955}
    60 </script>
    61 {/literal}
     56{/literal}{/footer_script}
     57
    6258<div id="subcontent" class="contact-form">
    6359  <form  method="post" action="{$CF.F_ACTION}" class="filter" id="contactform" onsubmit="return cf_validate();">
  • extensions/ContactForm/themes/simple-white/cf_form.tpl

    r8479 r10035  
    1 {html_head}
    2   <!-- {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} -->
    3   {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}
    4   {known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.resizable.packed.js"}
    5 {/html_head}
     1{combine_css path="plugins/ContactForm/include/contactform.css"}
     2{combine_script id="ContactForm" load="async" path="plugins/ContactForm/include/contactform.js"}
    63
    7 {literal}
    8 <script type="text/javascript">
     4{footer_script}{literal}
    95jQuery().ready(function(){
    106    // Resize possible for textarea
     
    5854  return true;
    5955}
    60 </script>
    61 {/literal}
     56{/literal}{/footer_script}
     57
    6258<div id="subcontent" class="contact-form">
    6359  <form  method="post" action="{$CF.F_ACTION}" class="filter" id="contactform" onsubmit="return cf_validate();">
  • extensions/ContactForm/themes/simple/cf_form.tpl

    r8479 r10035  
    1 {html_head}
    2   <!-- {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} -->
    3   {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}
    4   {known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.resizable.packed.js"}
    5 {/html_head}
     1{combine_css path="plugins/ContactForm/include/contactform.css"}
     2{combine_script id="ContactForm" load="async" path="plugins/ContactForm/include/contactform.js"}
    63
    7 {literal}
    8 <script type="text/javascript">
     4{footer_script}{literal}
    95jQuery().ready(function(){
    106    // Resize possible for textarea
     
    5854  return true;
    5955}
    60 </script>
    61 {/literal}
     56{/literal}{/footer_script}
     57
    6258<div id="subcontent" class="contact-form">
    6359  <form  method="post" action="{$CF.F_ACTION}" class="filter" id="contactform" onsubmit="return cf_validate();">
  • extensions/ContactForm/themes/stripped/cf_form.tpl

    r8478 r10035  
    1 {html_head}
    2   <!-- {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} -->
    3   {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}
    4   {known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.resizable.packed.js"}
    5 {/html_head}
     1{combine_css path="plugins/ContactForm/include/contactform.css"}
     2{combine_script id="ContactForm" load="async" path="plugins/ContactForm/include/contactform.js"}
    63
    7 {literal}
    8 <script type="text/javascript">
     4{footer_script}{literal}
    95jQuery().ready(function(){
    106    // Resize possible for textarea
     
    5854  return true;
    5955}
    60 </script>
    61 {/literal}
     56{/literal}{/footer_script}
     57
    6258<div id="subcontent" class="contact-form">
    6359  <form  method="post" action="{$CF.F_ACTION}" class="filter" id="contactform" onsubmit="return cf_validate();">
Note: See TracChangeset for help on using the changeset viewer.