This repository has been archived on 2022-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
divi/includes/builder/feature/background-masks/mask/corner-pill.php

55 lines
2.6 KiB
PHP

<?php
/**
* Background Mask Style - Corner Pill.
*
* @package Divi
* @sub-package Builder
* @since 4.15.0
*/
if ( ! defined( 'ABSPATH' ) ) {
die( 'Direct access forbidden.' );
}
/**
* Class ET_Builder_Mask_Corner_Pill
*
* @since 4.15.0
*/
class ET_Builder_Mask_Corner_Pill extends ET_Builder_Background_Mask_Style_Base {
/**
* Configuration.
*
* @return array
*/
public function settings() {
return array(
'label' => esc_html__( 'Corner Pill', 'et-builder' ),
'svgContent' => array(
'default' => array(
'landscape' => '<path d="M1056.87,850.36h0c-112.36-168-67.24-395.33,100.78-507.7L1670.06,0H0V1440H1920V713.45L1564.57,951.14C1396.54,1063.51,1169.24,1018.39,1056.87,850.36Z"/>',
'portrait' => '<path d="M1003.61,1013.35h0c-126-188.46-75.42-443.4,113-569.43L1780.48,0H0V2560H1920V894.36l-347,232C1384.58,1252.42,1129.64,1201.81,1003.61,1013.35Z"/>',
'square' => '<path d="M1081.61,887.35h0c-126-188.46-75.42-443.4,113-569.43L1670.06,0H0V1920H1920V820.52l-269,179.87C1462.58,1126.42,1207.64,1075.81,1081.61,887.35Z"/>',
),
'default-inverted' => array(
'landscape' => '<path d="M1670.06,0,1157.65,342.66c-168,112.37-213.14,339.67-100.78,507.7h0c112.37,168,339.67,213.15,507.7,100.78L1920,713.45V0Z"/>',
'portrait' => '<path d="M1780.48,0,1116.65,443.92c-188.46,126-239.07,381-113,569.43h0c126,188.46,381,239.07,569.43,113l347-232V0Z"/>',
'square' => '<path d="M1670.06,0,1194.65,317.92c-188.46,126-239.07,381-113,569.43h0c126,188.46,381,239.07,569.43,113l269-179.87V0Z"/>',
),
'rotated' => array(
'landscape' => '<path d="M850.36,863.13h0c-168,112.36-395.33,67.24-507.7-100.78L0,249.94V1440H1920V0H713.45L951.14,355.43C1063.51,523.46,1018.39,750.76,850.36,863.13Z"/>',
'portrait' => '<path d="M0,139.52,443.92,803.35c126,188.46,381,239.07,569.43,113h0c188.46-126,239.07-381,113-569.43L894.36,0H1920V2560H0Z"/>',
'square' => '<path d="M0,249.94,317.92,725.35c126,188.46,381,239.07,569.43,113h0c188.46-126,239.07-381,113-569.43L820.52,0H1920V1920H0Z"/>',
),
'rotated-inverted' => array(
'landscape' => '<path d="M850.36,863.13h0c-168,112.36-395.33,67.24-507.7-100.78L0,249.94V0H713.45L951.14,355.43C1063.51,523.46,1018.39,750.76,850.36,863.13Z"/>',
'portrait' => '<path d="M0,139.52,443.92,803.35c126,188.46,381,239.07,569.43,113h0c188.46-126,239.07-381,113-569.43L894.36,0H0Z"/>',
'square' => '<path d="M0,249.94,317.92,725.35c126,188.46,381,239.07,569.43,113h0c188.46-126,239.07-381,113-569.43L820.52,0H0Z"/>',
),
),
);
}
}
return new ET_Builder_Mask_Corner_Pill();