You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
3.5 KiB
PHTML
42 lines
3.5 KiB
PHTML
8 months ago
|
<?php
|
||
|
/**
|
||
|
* Background Pattern Style - Polka Dots.
|
||
|
*
|
||
|
* @package Divi
|
||
|
* @sub-package Builder
|
||
|
* @since 4.15.0
|
||
|
*/
|
||
|
|
||
|
if ( ! defined( 'ABSPATH' ) ) {
|
||
|
die( 'Direct access forbidden.' );
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Class ET_Builder_Pattern_Polka_Dots
|
||
|
*
|
||
|
* @since 4.15.0
|
||
|
*/
|
||
|
class ET_Builder_Pattern_Polka_Dots extends ET_Builder_Background_Pattern_Style_Base {
|
||
|
/**
|
||
|
* Configuration.
|
||
|
*
|
||
|
* @return array
|
||
|
*/
|
||
|
public function settings() {
|
||
|
return array(
|
||
|
'label' => esc_html__( 'Polka Dots', 'et-builder' ),
|
||
|
'svgContent' => array(
|
||
|
'default' => '<path d="M0,8V0H8A8,8,0,0,1,0,8ZM80,8V0H72A8,8,0,0,0,80,8ZM0,72v8H8A8,8,0,0,0,0,72ZM40,32a8,8,0,1,0,8,8A8,8,0,0,0,40,32ZM80,72a8,8,0,0,0-8,8h8Z"/>',
|
||
|
'default-inverted' => '<path d="M80,72V8a8,8,0,0,1-8-8H8A8,8,0,0,1,0,8V72a8,8,0,0,1,8,8H72A8,8,0,0,1,80,72ZM40,48a8,8,0,1,1,8-8A8,8,0,0,1,40,48Z"/>',
|
||
|
'rotated' => '<path d="M0,8V0H8A8,8,0,0,1,0,8ZM80,8V0H72A8,8,0,0,0,80,8ZM0,72v8H8A8,8,0,0,0,0,72ZM40,32a8,8,0,1,0,8,8A8,8,0,0,0,40,32ZM80,72a8,8,0,0,0-8,8h8Z"/>',
|
||
|
'rotated-inverted' => '<path d="M80,72V8a8,8,0,0,1-8-8H8A8,8,0,0,1,0,8V72a8,8,0,0,1,8,8H72A8,8,0,0,1,80,72ZM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6,56,1.6,1.6,0,0,0,56,54.4Zm16,0A1.6,1.6,0,1,0,73.6,56,1.6,1.6,0,0,0,72,54.4Z"/>',
|
||
|
),
|
||
|
'width' => '80px',
|
||
|
'height' => '80px',
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return new ET_Builder_Pattern_Polka_Dots();
|