Dev-Umgebung: Kompatibilität für PHP 8.3 + Smarty 4.5.6
- Smarty 4.1.1 → 4.5.6 (behebt dynamic property deprecations) - Core-Klassen: #[\AllowDynamicProperties] für Admin_role, base, Config, Customer, Customer_group, CustomerGroups, Item, Structure, website - website.class.php: counts[parent_id] initialisieren vor ++ (PHP 8.1) - layout.class.php: HTTP_ACCEPT_LANGUAGE mit isset-Guard - website_init.php: session_status()-Check vor session_start - .htaccess: HTTPS-Redirect via X-Forwarded-Proto (statt SERVER_PORT) - themes/easyshop_advanced/media/: Parent-Theme-Assets nachgezogen - .gitignore: smarty.4.1.1.bak ausschließen
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
# {strip}
|
||||
|
||||
Many times web designers run into the issue where white space and
|
||||
carriage returns affect the output of the rendered HTML (browser
|
||||
"features"), so you must run all your tags together in the template to
|
||||
get the desired results. This usually ends up in unreadable or
|
||||
unmanageable templates.
|
||||
|
||||
Anything within `{strip}{/strip}` tags are stripped of the extra spaces
|
||||
or carriage returns at the beginnings and ends of the lines before they
|
||||
are displayed. This way you can keep your templates readable, and not
|
||||
worry about extra white space causing problems.
|
||||
|
||||
> **Note**
|
||||
>
|
||||
> `{strip}{/strip}` does not affect the contents of template variables,
|
||||
> see the [strip modifier](../language-modifiers/language-modifier-strip.md) instead.
|
||||
|
||||
```smarty
|
||||
{* the following will be all run into one line upon output *}
|
||||
{strip}
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#">
|
||||
This is a test
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/strip}
|
||||
```
|
||||
|
||||
The above example will output:
|
||||
|
||||
```html
|
||||
<table><tr><td><a href="#">This is a test</a></td></tr></table>
|
||||
```
|
||||
|
||||
Notice that in the above example, all the lines begin and end with HTML
|
||||
tags. Be aware that all the lines are run together. If you have plain
|
||||
text at the beginning or end of any line, they will be run together, and
|
||||
may not be desired results.
|
||||
|
||||
See also the [`strip`](../language-modifiers/language-modifier-strip.md) modifier.
|
||||
Reference in New Issue
Block a user