dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
dbxContent_cms_image_alignment_test.php File Reference

Go to the source code of this file.

Classes

class  dbxObj
 Gemeinsame Basisklasse fuer dbXapp-System-, Modul- und Include-Objekte. More...

Variables

 $class = new ReflectionClass('dbx\\dbxContent_admin\\dbxContent_cms')
 $cms = $class->newInstanceWithoutConstructor()
 $sanitize = $class->getMethod('sanitize_content_html')
 $html
 $out = $sanitize->invoke($cms, $html)
if(strpos( $out, 'float:left;')===false||strpos( $out, 'margin-right:1.5rem;')===false) if(strpos($out, 'position:') !==false||strpos($out, 'color:') !==false) $bareImage
if(strpos($bareImage, 'float:left;')===false||strpos($bareImage, 'margin-right:1.5rem;')===false||strpos($bareImage, 'width:400px;')===false||strpos($bareImage, 'height:auto;')===false||strpos($bareImage, 'max-width:100%;')===false||strpos($bareImage, 'max-height:480px;')===false||strpos($bareImage, 'expression(') !==false) $centered
if(strpos($centered, 'display:block;')===false||strpos($centered, 'margin-left:auto;')===false||strpos($centered, 'margin-right:auto;')===false||strpos($centered, 'transform:') !==false) $ordinary = $sanitize->invoke($cms, '<div style="float: right; text-align: center;">Text</div>')
 if (strpos( $ordinary, 'float:') !==false||strpos( $ordinary, 'text-align:center;')===false)

Variable Documentation

◆ $bareImage

if(strpos($out, 'float:left;')===false||strpos($out, 'margin-right:1.5rem;')===false) if (strpos( $out, 'position:') !==false||strpos( $out, 'color:') !==false) $bareImage
Initial value:
= $sanitize->invoke(
'<img data-cms-media-id="108" class="dbxki-visual" src="index.php?dbx_modul=dbxContent&amp;dbx_run1=media&amp;dbx_mid=108" style="float: left; margin-right: 1.5rem; width: 400px; height: auto; max-width: 100%; max-height: 480px; width: expression(alert(1));">'
. '<p>Text rechts neben dem zweiten Bild.</p>'
)

Definition at line 26 of file dbxContent_cms_image_alignment_test.php.

◆ $centered

if (strpos( $bareImage, 'float:left;')===false||strpos( $bareImage, 'margin-right:1.5rem;')===false||strpos( $bareImage, 'width:400px;')===false||strpos( $bareImage, 'height:auto;')===false||strpos( $bareImage, 'max-width:100%;')===false||strpos( $bareImage, 'max-height:480px;')===false||strpos( $bareImage, 'expression(') !==false) $centered ( )
Initial value:
= $sanitize->invoke(
'<img src="bild.webp" style="display: block; margin-left: auto; margin-right: auto; transform: rotate(5deg);">'
)

Definition at line 42 of file dbxContent_cms_image_alignment_test.php.

◆ $class

$class = new ReflectionClass('dbx\\dbxContent_admin\\dbxContent_cms')

Definition at line 7 of file dbxContent_cms_image_alignment_test.php.

◆ $cms

$cms = $class->newInstanceWithoutConstructor()

Definition at line 8 of file dbxContent_cms_image_alignment_test.php.

◆ $html

$html
Initial value:
= '<p class="dbx-cms-inline-media" style="float: left; margin-right: 1.5rem; position: fixed; color: red;">'
. '<img data-cms-media-id="108" src="index.php?dbx_modul=dbxContent&amp;dbx_run1=media&amp;dbx_mid=108">'
. '</p><p>Text rechts neben dem Bild.</p>'

Definition at line 12 of file dbxContent_cms_image_alignment_test.php.

◆ $ordinary

if (strpos( $centered, 'display:block;')===false||strpos( $centered, 'margin-left:auto;')===false||strpos( $centered, 'margin-right:auto;')===false||strpos( $centered, 'transform:') !==false) $ordinary = $sanitize->invoke($cms, '<div style="float: right; text-align: center;">Text</div>')

Definition at line 54 of file dbxContent_cms_image_alignment_test.php.

◆ $out

$out = $sanitize->invoke($cms, $html)

Definition at line 15 of file dbxContent_cms_image_alignment_test.php.

◆ $sanitize

$sanitize = $class->getMethod('sanitize_content_html')

Definition at line 9 of file dbxContent_cms_image_alignment_test.php.

◆ if

if(strpos($ordinary, 'float:') !==false||strpos($ordinary, 'text-align:center;')===false) ( strpos($ordinary, 'float:') ! = = false || strpos($ordinary, 'text-align: center;') === false)