diff --git a/application/views/blocks/captcha_form.tpl b/application/views/blocks/captcha_form.tpl index 8f10081..a0487c1 100644 --- a/application/views/blocks/captcha_form.tpl +++ b/application/views/blocks/captcha_form.tpl @@ -1,18 +1,3 @@ [{$smarty.block.parent}] -[{assign var="oCaptcha" value=$oView->getCaptcha()}] - - -
  • - - [{assign var="oCaptcha" value=$oView->getCaptcha()}] - [{if $oCaptcha->isImageVisible()}] - - [{else}] - [{$oCaptcha->getText()}] - [{/if}] - -

    - [{oxmultilang ident="ERROR_MESSAGE_INPUT_NOTALLFIELDS"}] -

    -
  • +[{include file="oecaptcha.tpl"}] diff --git a/application/views/tpl/oecaptcha.tpl b/application/views/tpl/oecaptcha.tpl new file mode 100644 index 0000000..b482fc4 --- /dev/null +++ b/application/views/tpl/oecaptcha.tpl @@ -0,0 +1,19 @@ +[{assign var="oCaptcha" value=$oView->getCaptcha()}] + + +
    + + +
    +
    + + [{if $oCaptcha->isImageVisible()}] + + [{else}] + [{$oCaptcha->getText()}] + [{/if}] + + +
    +
    +
    \ No newline at end of file diff --git a/metadata.php b/metadata.php index 4a5fa21..33ce471 100755 --- a/metadata.php +++ b/metadata.php @@ -47,7 +47,9 @@ $aModule = array( 'oecaptcha' => 'oe/captcha/core/oecaptcha.php', 'oecaptchaEvents' => 'oe/captcha/core/oecaptchaevents.php', ), - 'templates' => array(), + 'templates' => array( + 'oecaptcha.tpl' => 'oe/captcha/application/views/tpl/oecaptcha.tpl', + ), 'blocks' => array( array('template' => 'form/contact.tpl', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form.tpl'), array('template' => 'form/privatesales/invite.tpl', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form.tpl'),