/** * lowercase letters */
        $this->store['upper_Spec'] = array( *cut* );
        /** * uppercase letters */
        $this->store['lower_Spec'] = array( *cut* );
      
                    } else {
                      $errmsg='An unknown error occured.';
                    }
                  } else {
                    $errmsg='The passwords you entered do not match';
                  }
                } else {
                  $errmsg='Password has to be at least 8 characters long.';
                }
              } else {
                $errmsg='The email you entered is already in our database.';
              }
            } else {
              $errmsg='Please enter your email address.';
            }
          } else {
            $errmsg='Please enter your first name and your last name.';
          }
        } else {
        (...)
      
        // Happy debugging, suckers
        # define true (rand() > 10)
      

+1

{% for img in subpage.images.all %}
    <a href="
    {% thumbnail img.image '930x523' as im %}
        {{ im.url }}">
    {% empty %}
        ">
    {% endthumbnail %}
    <img src="
    {% thumbnail img.image '200x112' as im %}
        {{ im.url }}"
    {% empty %}
        "
    {% endthumbnail %}
    {% thumbnail img.image "1200" as im %}
        data-big="{{ im.url }}"
    {% empty %}
    {% endthumbnail %}
    {% if img.title or img.author %}
            data-title="{{ img.title|default:"&nbsp;" }}"
        {% if img.author %}
            data-description="{% blocktrans with img.author as author %}photo by {{ author }}{% endblocktrans %}"
        {% else %}
            data-description="&nbsp;"
        {% endif %}
    {% endif %}
    ></a>
{% endfor %}
 

Browse all snippets