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
11 KiB
PHTML
42 lines
11 KiB
PHTML
8 months ago
|
<?php
|
||
|
/**
|
||
|
* Background Pattern Style - Ogees.
|
||
|
*
|
||
|
* @package Divi
|
||
|
* @sub-package Builder
|
||
|
* @since 4.15.0
|
||
|
*/
|
||
|
|
||
|
if ( ! defined( 'ABSPATH' ) ) {
|
||
|
die( 'Direct access forbidden.' );
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Class ET_Builder_Pattern_Ogees
|
||
|
*
|
||
|
* @since 4.15.0
|
||
|
*/
|
||
|
class ET_Builder_Pattern_Ogees extends ET_Builder_Background_Pattern_Style_Base {
|
||
|
/**
|
||
|
* Configuration.
|
||
|
*
|
||
|
* @return array
|
||
|
*/
|
||
|
public function settings() {
|
||
|
return array(
|
||
|
'label' => esc_html__( 'Ogees', 'et-builder' ),
|
||
|
'svgContent' => array(
|
||
|
'default' => '<path d="M11.27,27.67C17.9,33.35,23.62,38.26,23.62,48S17.9,62.66,11.27,68.34c-4,3.39-8.2,7-11.27,11.9H0V96H4.38c0-9.74,5.72-14.64,12.35-20.33,4-3.39,8.2-7,11.27-11.9,3.07,4.87,7.31,8.51,11.27,11.9C45.9,81.35,51.62,86.26,51.62,96H56V80.24c-3.07-4.87-7.31-8.51-11.27-11.91C38.1,62.65,32.38,57.74,32.38,48S38.1,33.35,44.73,27.67c4-3.39,8.2-7,11.27-11.91h0V0H51.62c0,9.74-5.72,14.65-12.35,20.33-4,3.4-8.2,7-11.27,11.91-3.07-4.87-7.31-8.51-11.27-11.9C10.1,14.65,4.38,9.74,4.38,0H0V15.76C3.07,20.64,7.31,24.28,11.27,27.67Z"/>',
|
||
|
'default-inverted' => '<path d="M0,80.24H0V15.76c3.07,4.88,7.31,8.52,11.27,11.91C17.9,33.35,23.62,38.26,23.62,48S17.9,62.66,11.27,68.34C7.31,71.73,3.07,75.37,0,80.24Zm39.27-4.57c-4-3.39-8.2-7-11.27-11.9-3.07,4.87-7.31,8.51-11.27,11.9C10.1,81.36,4.38,86.26,4.38,96H51.62C51.62,86.26,45.9,81.35,39.27,75.67ZM16.73,20.34c4,3.39,8.2,7,11.27,11.9,3.07-4.87,7.31-8.51,11.27-11.91C45.9,14.65,51.62,9.74,51.62,0H4.38C4.38,9.74,10.1,14.65,16.73,20.34Zm28,7.33C38.1,33.35,32.38,38.26,32.38,48S38.1,62.65,44.73,68.33c4,3.4,8.2,7,11.27,11.91V15.76h0C52.93,20.64,48.69,24.28,44.73,27.67Z"/>',
|
||
|
'rotated' => '<path d="M27.67,44.73C33.35,38.1,38.26,32.38,48,32.38S62.65,38.1,68.34,44.73c3.39,4,7,8.2,11.9,11.27H96V51.63c-9.74,0-14.65-5.73-20.33-12.36-3.39-4-7-8.2-11.91-11.27,4.88-3.07,8.51-7.31,11.91-11.27C81.35,10.1,86.26,4.38,96,4.38h0V0H80.24c-4.87,3.07-8.51,7.31-11.91,11.27C62.65,17.9,57.74,23.63,48,23.63S33.35,17.9,27.67,11.27c-3.4-4-7-8.2-11.91-11.27H0V4.38c9.74,0,14.65,5.72,20.33,12.35,3.4,4,7,8.21,11.91,11.27-4.87,3.07-8.51,7.31-11.91,11.27C14.65,45.9,9.74,51.63,0,51.63V56H15.76C20.64,52.93,24.28,48.69,27.67,44.73Z"/>',
|
||
|
'rotated-inverted' => '<path d="M80.24,56H15.76c4.88-3.07,8.52-7.31,11.91-11.27C33.35,38.1,38.26,32.38,48,32.38S62.65,38.1,68.34,44.73C71.73,48.69,75.37,52.93,80.24,56ZM75.67,16.73c-3.4,4-7,8.2-11.91,11.27,4.88,3.07,8.52,7.31,11.91,11.27C81.35,45.9,86.26,51.62,96,51.63V4.38h0C86.26,4.38,81.35,10.1,75.67,16.73ZM20.33,39.27c3.4-4,7-8.2,11.91-11.27-4.87-3.06-8.51-7.31-11.91-11.27C14.65,10.1,9.74,4.38,0,4.38V51.63C9.74,51.63,14.65,45.9,20.33,39.27Zm7.34-28C33.35,17.9,38.26,23.63,48,23.63S62.65,17.9,68.33,11.27c3.4-4,7-8.2,11.91-11.27H15.76C20.63,3.07,24.27,7.31,27.67,11.27Z"/>',
|
||
|
'thumbnail' => '<path d="M77.7,5.76A11,11,0,0,0,80,3.28h0V0h-.89c0,2-1.17,3.05-2.52,4.24a10.75,10.75,0,0,0-2.3,2.48A11.2,11.2,0,0,0,72,4.24C70.63,3.05,69.46,2,69.46,0H67.68c0,2-1.17,3.05-2.52,4.24a10.75,10.75,0,0,0-2.3,2.48,11,11,0,0,0-2.3-2.48C59.2,3.05,58,2,58,0H56.25c0,2-1.17,3.05-2.52,4.24a10.75,10.75,0,0,0-2.3,2.48,11,11,0,0,0-2.3-2.48C47.78,3.05,46.61,2,46.61,0H44.82c0,2-1.17,3.05-2.52,4.24A11,11,0,0,0,40,6.72a11,11,0,0,0-2.3-2.48C36.35,3.05,35.18,2,35.18,0H33.39c0,2-1.17,3.05-2.52,4.24a11,11,0,0,0-2.3,2.48,10.75,10.75,0,0,0-2.3-2.48C24.92,3.05,23.75,2,23.75,0H22c0,2-1.16,3.05-2.52,4.24a11,11,0,0,0-2.3,2.48,10.75,10.75,0,0,0-2.3-2.48C13.49,3.05,12.32,2,12.32,0H10.54c0,2-1.17,3.05-2.53,4.24a11.2,11.2,0,0,0-2.3,2.48,10.75,10.75,0,0,0-2.3-2.48C2.06,3.05.89,2,.89,0H0V3.28A11,11,0,0,0,2.3,5.76C3.65,7,4.82,8,4.82,10S3.65,13.05,2.3,14.24A11,11,0,0,0,0,16.72H0v6.56a11,11,0,0,0,2.3,2.48C3.65,27,4.82,28,4.82,30s-1.17,3-2.52,4.24A11,11,0,0,0,0,36.72H0v6.56a11,11,0,0,0,2.3,2.48C3.65,47,4.82,48,4.82,50s-1.17,3-2.52,4.24A11,11,0,0,0,0,56.72H0V60H.89c0-2,1.17-3,2.52-4.23a11,11,0,0,0,2.3-2.49A11.2,11.2,0,0,0,8,55.76C9.37,57,10.54,58,10.54,60h1.78c0-2,1.17-3,2.52-4.23a11,11,0,0,0,2.3-2.49,11,11,0,0,0,2.3,2.48C20.8,57,22,58,22,60h1.79c0-2,1.17-3,2.52-4.23a11,11,0,0,0,2.3-2.49,11,11,0,0,0,2.3,2.48C32.22,57,33.39,58,33.39,60h1.79c0-2,1.17-3,2.52-4.23A11.24,11.24,0,0,0,40,53.28a11,11,0,0,0,2.3,2.48C43.65,57,44.82,58,44.82,60h1.79c0-2,1.17-3,2.52-4.23a11.24,11.24,0,0,0,2.3-2.49,10.75,10.75,0,0,0,2.3,2.48C55.08,57,56.25,58,56.25,60H58c0-2,1.16-3,2.52-4.23a11.24,11.24,0,0,0,2.3-2.49,10.75,10.75,0,0,0,2.3,2.48C66.51,57,67.68,58,67.68,60h1.78c0-2,1.17-3,2.53-4.23a11.48,11.48,0,0,0,2.3-2.49,10.75,10.75,0,0,0,2.3,2.48C77.94,57,79.11,58,79.11,60H80V56.72a11,11,0,0,0-2.3-2.48C76.35,53.05,75.18,52,75.18,50s1.17-3,2.52-4.24A11,11,0,0,0,80,43.28h0V36.72a11,11,0,0,0-2.3-2.48C76.35,33.05,75.18,32,75.18,30S76.35,27,77.7,25.76A11,11,0,0,0,80,23.28h0V16.72a11,11,0,0,0-2.3-2.48C76.35,13.05,75.18,12,75.18,10S76.35,7,77.7,5.76Zm-11.43,0a10.75,10.75,0,0,0,2.3-2.48h0a11,11,0,0,0,2.3,2.48C72.22,7,73.39,8,73.39,10s-1.17,3.05-2.52,4.24a11,11,0,0,0-2.3,2.48h0a10.75,10.75,0,0,0-2.3-2.48C64.92,13.05,63.75,12,63.75,10S64.92,7,66.27,5.76Zm2.3,31a10.75,10.75,0,0,0-2.3-2.48C64.92,33.05,63.75,32,63.75,30s1.17-3.05,2.52-4.24a10.75,10.75,0,0,0,2.3-2.48h0a11,11,0,0,0,2.3,2.48C72.22,27,73.39,28,73.39,30s-1.17,3-2.52,4.24a11,11,0,0,0-2.3,2.48ZM62.86,13.28a10.75,10.75,0,0,0,2.3,2.48C66.51,17,67.68,18,67.68,20s-1.17,3.05-2.52,4.24a10.75,10.75,0,0,0-2.3,2.48,11,11,0,0,0-2.3-2.48C59.2,23.05,58,22,58,20S59.2,17,60.56,15.77A11.24,11.24,0,0,0,62.86,13.28ZM57.14,36.72a10.75,10.75,0,0,0-2.3-2.48C53.49,33.05,52.32,32,52.32,30s1.17-3.05,2.52-4.24a10.75,10.75,0,0,0,2.3-2.48h0a11,11,0,0,0,2.3,2.48C60.8,27,62,28,62,30s-1.16,3-2.52,4.24a11,11,0,0,0-2.3,2.48Zm-2.3-31a10.75,10.75,0,0,0,2.3-2.48h0a11,11,0,0,0,2.3,2.48C60.8,7,62,8,62,10s-1.16,3.05-2.52,4.24a11,11,0,0,0-2.3,2.48h0a10.75,10.75,0,0,0-2.3-2.48C53.49,13.05,52.32,12,52.32,10S53.49,7,54.84,5.76Zm-3.41,7.52a10.75,10.75,0,0,0,2.3,2.48C55.08,17,56.25,18,56.25,20s-1.17,3.05-2.52,4.24a10.75,10.75,0,0,0-2.3,2.48,11,11,0,0,0-2.3-2.48C47.78,23.05,46.61,22,46.61,20h0c0-2,1.17-3.05,2.52-4.23A11.24,11.24,0,0,0,51.43,13.28ZM45.71,36.72a10.75,10.75,0,0,0-2.3-2.48C42.06,33.05,40.89,32,40.89,30s1.17-3.05,2.52-4.24a10.75,10.75,0,0,0,2.3-2.48h0A11.2,11.2,0,0,0,48,25.76C49.37,27,50.54,28,50.54,30s-1.17,3-2.53,4.24a11.2,11.2,0,0,0-2.3,2.48Zm-2.3-31a10.75,10.75,0,0,0,2.3-2.48h0A11.2,11.2,0,0,0,48,5.76C49.37,7,50.54,8,50.54,10S49.37,13.05,48,14.24a11.2,11.2,0,0,0-2.3,2.48h0a10.75,10.75,0,0,0-2.3-2.48C42.06,13.05,40.89,12,40.89,10S42.06,7,43.41,5.76ZM40,13.28a11,11,0,0,0,2.3,2.48C43.65,17,44.82,18,44.82,20s-1.17,3.05-2.52,4.24A11,11,0,0,0,40,26.72a11,11,0,0,0-2.3-2.48C36.35,23.05,35.18,22,35.18,20h0c0-2,1.17-3.05,2.52-4.23A11.24,11.24,0,0,0,40,13.28ZM34.29,36.72A11.2,11.2,0,0,0,32,34.24C30.63,33.05,29.46,32,29.46,30S30.63,27,32,25.76a11.2,11.2,0,0,0,2.3-2.48h0a10.75,10.75,0,0,0,2.3,2.48C37.94,27,39.11,28,39.11,30s-1.17,3-2.52,4.24a10.75,10.7
|
||
|
),
|
||
|
'width' => '56px',
|
||
|
'height' => '96px',
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return new ET_Builder_Pattern_Ogees();
|