Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi/includes/builder
File: functions.php
* Font icon list.
[500] Fix | Delete
*/
[501] Fix | Delete
function et_pb_get_font_icon_list() {
[502] Fix | Delete
$output = is_customize_preview() ? et_pb_get_font_icon_list_items() : '<%= window.et_builder.font_icon_list_template() %>';
[503] Fix | Delete
[504] Fix | Delete
$output = sprintf( '<ul class="et_font_icon">%1$s</ul>', et_core_esc_previously( $output ) );
[505] Fix | Delete
[506] Fix | Delete
return $output;
[507] Fix | Delete
}
[508] Fix | Delete
endif;
[509] Fix | Delete
[510] Fix | Delete
if ( ! function_exists( 'et_pb_get_svg_icons_list' ) ) :
[511] Fix | Delete
/**
[512] Fix | Delete
* Return svg icons list.
[513] Fix | Delete
*/
[514] Fix | Delete
function et_pb_get_svg_icons_list() {
[515] Fix | Delete
$all_icons = array(
[516] Fix | Delete
'add' =>
[517] Fix | Delete
'<g>
[518] Fix | Delete
<path d="M18 13h-3v-3a1 1 0 0 0-2 0v3h-3a1 1 0 0 0 0 2h3v3a1 1 0 0 0 2 0v-3h3a1 1 0 0 0 0-2z" fillRule="evenodd" />
[519] Fix | Delete
</g>',
[520] Fix | Delete
'delete' =>
[521] Fix | Delete
'<g>
[522] Fix | Delete
<path d="M19 9h-3V8a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v1H9a1 1 0 1 0 0 2h10a1 1 0 0 0 .004-2H19zM9 20c.021.543.457.979 1 1h8c.55-.004.996-.45 1-1v-7H9v7zm2.02-4.985h2v4h-2v-4zm4 0h2v4h-2v-4z" fillRule="evenodd" />
[523] Fix | Delete
</g>',
[524] Fix | Delete
'setting' =>
[525] Fix | Delete
'<g>
[526] Fix | Delete
<path d="M20.426 13.088l-1.383-.362a.874.874 0 0 1-.589-.514l-.043-.107a.871.871 0 0 1 .053-.779l.721-1.234a.766.766 0 0 0-.116-.917 6.682 6.682 0 0 0-.252-.253.768.768 0 0 0-.917-.116l-1.234.722a.877.877 0 0 1-.779.053l-.107-.044a.87.87 0 0 1-.513-.587l-.362-1.383a.767.767 0 0 0-.73-.567h-.358a.768.768 0 0 0-.73.567l-.362 1.383a.878.878 0 0 1-.513.589l-.107.044a.875.875 0 0 1-.778-.054l-1.234-.722a.769.769 0 0 0-.918.117c-.086.082-.17.166-.253.253a.766.766 0 0 0-.115.916l.721 1.234a.87.87 0 0 1 .053.779l-.043.106a.874.874 0 0 1-.589.514l-1.382.362a.766.766 0 0 0-.567.731v.357a.766.766 0 0 0 .567.731l1.383.362c.266.07.483.26.588.513l.043.107a.87.87 0 0 1-.053.779l-.721 1.233a.767.767 0 0 0 .115.917c.083.087.167.171.253.253a.77.77 0 0 0 .918.116l1.234-.721a.87.87 0 0 1 .779-.054l.107.044a.878.878 0 0 1 .513.589l.362 1.383a.77.77 0 0 0 .731.567h.356a.766.766 0 0 0 .73-.567l.362-1.383a.878.878 0 0 1 .515-.589l.107-.044a.875.875 0 0 1 .778.054l1.234.721c.297.17.672.123.917-.117.087-.082.171-.166.253-.253a.766.766 0 0 0 .116-.917l-.721-1.234a.874.874 0 0 1-.054-.779l.044-.107a.88.88 0 0 1 .589-.513l1.383-.362a.77.77 0 0 0 .567-.731v-.357a.772.772 0 0 0-.569-.724v-.005zm-6.43 3.9a2.986 2.986 0 1 1 2.985-2.986 3 3 0 0 1-2.985 2.987v-.001z" fillRule="evenodd" />
[527] Fix | Delete
</g>',
[528] Fix | Delete
'background-color' =>
[529] Fix | Delete
'<g>
[530] Fix | Delete
<path d="M19.4 14.6c0 0-1.5 3.1-1.5 4.4 0 0.9 0.7 1.6 1.5 1.6 0.8 0 1.5-0.7 1.5-1.6C20.9 17.6 19.4 14.6 19.4 14.6zM19.3 12.8l-4.8-4.8c-0.2-0.2-0.4-0.3-0.6-0.3 -0.3 0-0.5 0.1-0.7 0.3l-1.6 1.6L9.8 7.8c-0.4-0.4-1-0.4-1.4 0C8 8.1 8 8.8 8.4 9.1l1.8 1.8 -2.8 2.8c-0.4 0.4-0.4 1-0.1 1.4l4.6 4.6c0.2 0.2 0.4 0.3 0.6 0.3 0.3 0 0.5-0.1 0.7-0.3l6.1-6.1C19.5 13.4 19.5 13.1 19.3 12.8zM15.6 14.6c-1.7 1.7-4.5 1.7-6.2 0l2.1-2.1 1 1c0.4 0.4 1 0.4 1.4 0 0.4-0.4 0.4-1 0-1.4l-1-1 0.9-0.9 3.1 3.1L15.6 14.6z" fillRule="evenodd"/>
[531] Fix | Delete
</g>',
[532] Fix | Delete
'background-image' =>
[533] Fix | Delete
'<g>
[534] Fix | Delete
<path d="M22.9 7.5c-0.1-0.3-0.5-0.6-0.8-0.6H5.9c-0.4 0-0.7 0.2-0.8 0.6C5.1 7.6 5 7.7 5 7.9v12.2c0 0.1 0 0.2 0.1 0.4 0.1 0.3 0.5 0.5 0.8 0.6h16.2c0.4 0 0.7-0.2 0.8-0.6 0-0.1 0.1-0.2 0.1-0.4V7.9C23 7.7 23 7.6 22.9 7.5zM21 18.9H7v-10h14V18.9z" fillRule="evenodd"/>
[535] Fix | Delete
<circle cx="10.5" cy="12.4" r="1.5"/>
[536] Fix | Delete
<polygon points="15 16.9 13 13.9 11 16.9 "/>
[537] Fix | Delete
<polygon points="17 10.9 15 16.9 19 16.9 "/>
[538] Fix | Delete
</g>',
[539] Fix | Delete
'background-gradient' =>
[540] Fix | Delete
'<g>
[541] Fix | Delete
<path d="M22.9 7.5c-0.1-0.3-0.5-0.6-0.8-0.6H5.9c-0.4 0-0.7 0.2-0.8 0.6C5.1 7.6 5 7.7 5 7.9v12.2c0 0.1 0 0.2 0.1 0.4 0.1 0.3 0.5 0.5 0.8 0.6h16.2c0.4 0 0.7-0.2 0.8-0.6 0-0.1 0.1-0.2 0.1-0.4V7.9C23 7.7 23 7.6 22.9 7.5zM21 18.9L7 8.9h14V18.9z" fillRule="evenodd"/>
[542] Fix | Delete
</g>',
[543] Fix | Delete
'background-video' =>
[544] Fix | Delete
'<g>
[545] Fix | Delete
<path d="M22.9 7.5c-0.1-0.3-0.5-0.6-0.8-0.6H5.9c-0.4 0-0.7 0.2-0.8 0.6C5.1 7.6 5 7.7 5 7.9v12.2c0 0.1 0 0.2 0.1 0.4 0.1 0.3 0.5 0.5 0.8 0.6h16.2c0.4 0 0.7-0.2 0.8-0.6 0-0.1 0.1-0.2 0.1-0.4V7.9C23 7.7 23 7.6 22.9 7.5zM21 18.9H7v-10h14V18.9z" fillRule="evenodd"/>
[546] Fix | Delete
<polygon points="13 10.9 13 16.9 17 13.9 "/>
[547] Fix | Delete
</g>',
[548] Fix | Delete
'swap' =>
[549] Fix | Delete
'<g>
[550] Fix | Delete
<path d="M19 12h-3V9c0-0.5-0.5-1-1-1H8C7.5 8 7 8.5 7 9v7c0 0.5 0.5 1 1 1h3v3c0 0.5 0.5 1 1 1h7c0.5 0 1-0.5 1-1v-7C20 12.5 19.5 12 19 12zM18 19h-5v-2h2c0.5 0 1-0.5 1-1v-2h2V19z" fillRule="evenodd"/>
[551] Fix | Delete
</g>',
[552] Fix | Delete
'none' =>
[553] Fix | Delete
'<g>
[554] Fix | Delete
<path d="M14 24c5.5 0 10-4.5 10-10S19.5 4 14 4 4 8.5 4 14s4.5 10 10 10zm0-17.5c4.1 0 7.5 3.4 7.5 7.5 0 1.5-.5 2.9-1.2 4.1L9.9 7.7c1.2-.7 2.6-1.2 4.1-1.2zM7.7 9.9l10.4 10.4c-1.2.8-2.6 1.2-4.1 1.2-4.1 0-7.5-3.4-7.5-7.5 0-1.5.5-2.9 1.2-4.1z"/>
[555] Fix | Delete
</g>',
[556] Fix | Delete
'animation-none' =>
[557] Fix | Delete
'<g>
[558] Fix | Delete
<path d="M14 24c5.5 0 10-4.5 10-10S19.5 4 14 4 4 8.5 4 14s4.5 10 10 10zm0-17.5c4.1 0 7.5 3.4 7.5 7.5 0 1.5-.5 2.9-1.2 4.1L9.9 7.7c1.2-.7 2.6-1.2 4.1-1.2zM7.7 9.9l10.4 10.4c-1.2.8-2.6 1.2-4.1 1.2-4.1 0-7.5-3.4-7.5-7.5 0-1.5.5-2.9 1.2-4.1z"/>
[559] Fix | Delete
</g>',
[560] Fix | Delete
'animation-fade' =>
[561] Fix | Delete
'<g>
[562] Fix | Delete
<circle cx="8.5" cy="19.5" r="1.5"/>
[563] Fix | Delete
<circle cx="8.5" cy="14.5" r="1.5"/>
[564] Fix | Delete
<circle cx="5" cy="12" r="1"/>
[565] Fix | Delete
<circle cx="5" cy="17" r="1"/>
[566] Fix | Delete
<circle cx="8.5" cy="9.5" r="1.5"/>
[567] Fix | Delete
<path d="M15.7 4c-.4 0-.8.1-1.2.3-.6.3-.5.7-1.5.7-1.1 0-2 .9-2 2s.9 2 2 2c.3 0 .5.2.5.5s-.2.5-.5.5c-1.1 0-2 .9-2 2s.9 2 2 2c.3 0 .5.2.5.5s-.2.5-.5.5c-1.1 0-2 .9-2 2s.9 2 2 2c.3 0 .5.2.5.5s-.2.5-.5.5c-1.1 0-2 .9-2 2s.9 2 2 2c1 0 .9.4 1.4.7.4.2.8.3 1.2.3 4.3-.4 8.3-5.3 8.3-10.5s-4-10-8.2-10.5z"/>
[568] Fix | Delete
</g>',
[569] Fix | Delete
'animation-slide' =>
[570] Fix | Delete
'<g>
[571] Fix | Delete
<path d="M22 4h-5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h5c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM10 14c0 .6.4 1 1 1h.6L10 16.6c-.4.4-.4 1 0 1.4.4.4 1 .4 1.4 0l3.3-3.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7L11.4 10c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4l1.6 1.6H11c-.6 0-1 .4-1 1z"/>
[572] Fix | Delete
<circle cx="7" cy="14" r="1.5"/>
[573] Fix | Delete
<circle cx="3" cy="14" r="1"/>
[574] Fix | Delete
</g>',
[575] Fix | Delete
'animation-bounce' =>
[576] Fix | Delete
'<g>
[577] Fix | Delete
<circle cx="21.5" cy="8.5" r="3.5"/>
[578] Fix | Delete
<circle cx="16" cy="12" r="1.7"/>
[579] Fix | Delete
<circle cx="13" cy="15" r="1.2"/>
[580] Fix | Delete
<circle cx="11" cy="18" r="1"/>
[581] Fix | Delete
<circle cx="9" cy="22" r="1"/>
[582] Fix | Delete
<circle cx="7" cy="19" r="1"/>
[583] Fix | Delete
<circle cx="4" cy="17" r="1"/>
[584] Fix | Delete
</g>',
[585] Fix | Delete
'animation-zoom' =>
[586] Fix | Delete
'<g>
[587] Fix | Delete
<path d="M23.7 4.3c-.1-.1-.2-.2-.3-.2-.1-.1-.3-.1-.4-.1h-5c-.6 0-1 .4-1 1s.4 1 1 1h2.6l-3.1 3.1c-.2-.1-.3-.1-.5-.1h-6c-.2 0-.3 0-.5.1L7.4 6H10c.6 0 1-.4 1-1s-.4-1-1-1H5c-.1 0-.3 0-.4.1-.2.1-.4.3-.5.5-.1.1-.1.3-.1.4v5c0 .6.4 1 1 1s1-.4 1-1V7.4l3.1 3.1c-.1.2-.1.3-.1.5v6c0 .2 0 .3.1.5L6 20.6V18c0-.6-.4-1-1-1s-1 .4-1 1v5c0 .1 0 .3.1.4.1.2.3.4.5.5.1.1.3.1.4.1h5c.6 0 1-.4 1-1s-.4-1-1-1H7.4l3.1-3.1c.2 0 .3.1.5.1h6c.2 0 .3 0 .5-.1l3.1 3.1H18c-.6 0-1 .4-1 1s.4 1 1 1h5c.1 0 .3 0 .4-.1.2-.1.4-.3.5-.5.1-.1.1-.3.1-.4v-5c0-.6-.4-1-1-1s-1 .4-1 1v2.6l-3.1-3.1c0-.2.1-.3.1-.5v-6c0-.2 0-.3-.1-.5L22 7.4V10c0 .6.4 1 1 1s1-.4 1-1V5c0-.1 0-.3-.1-.4 0-.1-.1-.2-.2-.3z"/>
[588] Fix | Delete
</g>',
[589] Fix | Delete
'animation-flip' =>
[590] Fix | Delete
'<g>
[591] Fix | Delete
<path d="M22 2.4l-7 2.9V7h-2v-.8L7.6 8.7c-.4.2-.6.5-.6.9v8.7c0 .4.2.7.6.9l5.4 2.5V21h2v1.7l7 2.9c.5.2 1-.2 1-.7V3.1c0-.5-.5-.9-1-.7zM15 19h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zM13 2h2v2.5h-2zM13 23.5h2V26h-2z"/>
[592] Fix | Delete
</g>',
[593] Fix | Delete
'animation-fold' =>
[594] Fix | Delete
'<g>
[595] Fix | Delete
<path d="M24 7h-4V3.4c0-.8-.6-1.4-1.3-1.4-.2 0-.5.1-.7.2l-6.5 3.9c-.9.6-1.5 1.6-1.5 2.6V23c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm-6 10.5c0 .2-.1.4-.3.5L12 21.5V8.7c0-.4.2-.7.5-.9L18 4.5v13zM6 7h2v2H6zM6 23h2v2H6zM2.6 7.1c-.1 0-.1.1-.2.1v.1l-.1.1-.1.1c-.1.1-.2.3-.2.5v1h2V7H3c-.1 0-.2 0-.4.1zM2 23v1c0 .4.3.8.7.9.1.1.2.1.3.1h1v-2H2zM2 11h2v2H2zM2 19h2v2H2zM2 15h2v2H2z"/>
[596] Fix | Delete
</g>',
[597] Fix | Delete
'animation-roll' =>
[598] Fix | Delete
'<g>
[599] Fix | Delete
<path d="M18.8 5c-5.3-2.7-11.8.2-14 5.6-1.1 2.8-1 6 .2 8.8.4 1 3.9 6.5 5 3.6.5-1.2-1.3-2.2-1.9-3-.8-1.2-1.4-2.5-1.6-3.9-.4-2.7.5-5.5 2.4-7.4 4-4 11.6-2.5 12.6 3.4.4 2.7-.9 5.5-3.4 6.6-2.6 1.1-6 0-6.8-2.8-.7-2.4 1.2-5.7 4-4.8 1.1.3 2 1.5 1.5 2.7-.3.7-1.7 1.2-1.6.1 0-.3.2-.4.2-.8-.1-.4-.5-.6-.9-.6-1.1.1-1.6 1.6-1.3 2.5.3 1.2 1.5 1.9 2.7 1.9 2.9 0 4.2-3.4 3.1-5.7-1.2-2.6-4.6-3.4-7-2.2-2.6 1.3-3.8 4.4-3.1 7.2 1.6 5.9 9.3 6.8 13.1 2.5 3.8-4.2 1.9-11.1-3.2-13.7z"/>
[600] Fix | Delete
</g>',
[601] Fix | Delete
'border-link' =>
[602] Fix | Delete
'<g>
[603] Fix | Delete
<path d="M14.71 17.71a3 3 0 0 1-2.12-.88l-.71-.71a1 1 0 0 1 1.41-1.41l.71.71a1 1 0 0 0 1.41 0l5-4.95a1 1 0 0 0 0-1.41l-1.46-1.42a1 1 0 0 0-1.41 0L16.1 9.07a1 1 0 0 1-1.41-1.41l1.43-1.43a3.07 3.07 0 0 1 4.24 0l1.41 1.41a3 3 0 0 1 0 4.24l-5 4.95a3 3 0 0 1-2.06.88z"/>
[604] Fix | Delete
<path d="M9.76 22.66a3 3 0 0 1-2.12-.88l-1.42-1.42a3 3 0 0 1 0-4.24l5-4.95a3.07 3.07 0 0 1 4.24 0l.71.71a1 1 0 0 1-1.41 1.41l-.76-.7a1 1 0 0 0-1.41 0l-5 4.95a1 1 0 0 0 0 1.41L9 20.36a1 1 0 0 0 1.41 0L11.82 19a1 1 0 0 1 1.41 1.41l-1.36 1.36a3 3 0 0 1-2.11.89z"/>
[605] Fix | Delete
</g>',
[606] Fix | Delete
'border-all' =>
[607] Fix | Delete
'<g>
[608] Fix | Delete
<path d="M22 5H6a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1zm-2 15H8V8h12z"/>
[609] Fix | Delete
</g>',
[610] Fix | Delete
'border-top' =>
[611] Fix | Delete
'<g>
[612] Fix | Delete
<path d="M17 21h2v2h-2zM5 9h2v2H5zM21 17h2v2h-2zM21 9h2v2h-2zM21 13h2v2h-2zM21 23h1a1 1 0 0 0 1-1v-1h-2zM5 17h2v2H5zM5 13h2v2H5zM13 21h2v2h-2zM9 21h2v2H9zM5 21v1a1 1 0 0 0 1 1h1v-2zM22 5H6a1 1 0 0 0-1 1v2h18V6a1 1 0 0 0-1-1z"/>
[613] Fix | Delete
</g>',
[614] Fix | Delete
'border-right' =>
[615] Fix | Delete
'<g>
[616] Fix | Delete
<path d="M13 5h2v2h-2zM5 9h2v2H5zM9 5h2v2H9zM7 5H6a1 1 0 0 0-1 1v1h2zM5 13h2v2H5zM13 21h2v2h-2zM5 17h2v2H5zM9 21h2v2H9zM17 5h2v2h-2zM5 21v1a1 1 0 0 0 1 1h1v-2zM22 5h-2v18h2a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1zM17 21h2v2h-2z"/>
[617] Fix | Delete
</g>',
[618] Fix | Delete
'border-bottom' =>
[619] Fix | Delete
'<g>
[620] Fix | Delete
<path d="M9 5h2v2H9zM7 20H5v2a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-2H7zM17 5h2v2h-2zM5 13h2v2H5zM5 9h2v2H5zM13 5h2v2h-2zM5 17h2v2H5zM21 9h2v2h-2zM21 17h2v2h-2zM22 5h-1v2h2V6a1 1 0 0 0-1-1zM21 13h2v2h-2zM7 5H6a1 1 0 0 0-1 1v1h2z"/>
[621] Fix | Delete
</g>',
[622] Fix | Delete
'border-left' =>
[623] Fix | Delete
'<g>
[624] Fix | Delete
<path d="M22 5h-1v2h2V6a1 1 0 0 0-1-1zM9 21h2v2H9zM21 17h2v2h-2zM13 21h2v2h-2zM21 13h2v2h-2zM9 5h2v2H9zM17 21h2v2h-2zM17 5h2v2h-2zM21 9h2v2h-2zM8 7V5H6a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h2V7zM21 23h1a1 1 0 0 0 1-1v-1h-2zM13 5h2v2h-2z"/>
[625] Fix | Delete
</g>',
[626] Fix | Delete
'lock' =>
[627] Fix | Delete
'<g>
[628] Fix | Delete
<path d="M20 12C19.9 11.7 19.3 11 19 11L18 11C18 8.1 16.2 6 14 6 11.8 6 10 8.1 10 11L9 11C8.6 11 8.1 11.6 8 12L8 13 8 19 8 20C8.1 20.3 8.7 20.9 9 21L19 21C19.4 21 19.9 20.4 20 20L20 19 20 14 20 12 20 12ZM14 8C15.1 8 16 9.4 16 11.1L12 11.1C12 9.4 12.9 8 14 8L14 8ZM18 19L10 19 10 13 18 13 18 19 18 19Z" fillRule="evenodd"/>
[629] Fix | Delete
<path d="M14 18C14.6 18 15 17.6 15 17L15 15C15 14.4 14.6 14 14 14 13.4 14 13 14.4 13 15L13 15 13 17C13 17.6 13.4 18 14 18L14 18Z" fillRule="evenodd"/>
[630] Fix | Delete
</g>',
[631] Fix | Delete
);
[632] Fix | Delete
return $all_icons;
[633] Fix | Delete
}
[634] Fix | Delete
endif;
[635] Fix | Delete
[636] Fix | Delete
if ( ! function_exists( 'et_pb_get_font_icon_list_items' ) ) :
[637] Fix | Delete
/**
[638] Fix | Delete
* Return Font icon list items.
[639] Fix | Delete
*/
[640] Fix | Delete
function et_pb_get_font_icon_list_items() {
[641] Fix | Delete
$output = '';
[642] Fix | Delete
[643] Fix | Delete
$symbols = et_pb_get_font_icon_symbols();
[644] Fix | Delete
[645] Fix | Delete
foreach ( $symbols as $symbol ) {
[646] Fix | Delete
$output .= sprintf( '<li data-icon=\'%1$s\'></li>', esc_attr( $symbol ) );
[647] Fix | Delete
}
[648] Fix | Delete
[649] Fix | Delete
return $output;
[650] Fix | Delete
}
[651] Fix | Delete
endif;
[652] Fix | Delete
[653] Fix | Delete
if ( ! function_exists( 'et_pb_font_icon_list' ) ) :
[654] Fix | Delete
/**
[655] Fix | Delete
* Display font icon list.
[656] Fix | Delete
*/
[657] Fix | Delete
function et_pb_font_icon_list() {
[658] Fix | Delete
echo et_core_esc_previously( et_pb_get_font_icon_list() );
[659] Fix | Delete
}
[660] Fix | Delete
endif;
[661] Fix | Delete
[662] Fix | Delete
if ( ! function_exists( 'et_pb_get_font_down_icon_symbols' ) ) :
[663] Fix | Delete
/**
[664] Fix | Delete
* Return icon to display for the scroll down button.
[665] Fix | Delete
*/
[666] Fix | Delete
function et_pb_get_font_down_icon_symbols() {
[667] Fix | Delete
$symbols = array( '&amp;#x22;', '&amp;#x33;', '&amp;#x37;', '&amp;#x3b;', '&amp;#x3f;', '&amp;#x43;', '&amp;#x47;', '&amp;#xe03a;', '&amp;#xe044;', '&amp;#xe048;', '&amp;#xe04c;' );
[668] Fix | Delete
[669] Fix | Delete
return $symbols;
[670] Fix | Delete
}
[671] Fix | Delete
endif;
[672] Fix | Delete
[673] Fix | Delete
if ( ! function_exists( 'et_pb_get_font_down_icon_list' ) ) :
[674] Fix | Delete
/**
[675] Fix | Delete
* Return font down icon list.
[676] Fix | Delete
*/
[677] Fix | Delete
function et_pb_get_font_down_icon_list() {
[678] Fix | Delete
$output = is_customize_preview() ? et_pb_get_font_down_icon_list_items() : '<%= window.et_builder.font_down_icon_list_template() %>';
[679] Fix | Delete
[680] Fix | Delete
$output = sprintf( '<ul class="et_font_icon">%1$s</ul>', et_core_esc_previously( $output ) );
[681] Fix | Delete
[682] Fix | Delete
return $output;
[683] Fix | Delete
}
[684] Fix | Delete
endif;
[685] Fix | Delete
[686] Fix | Delete
if ( ! function_exists( 'et_pb_get_font_down_icon_list_items' ) ) :
[687] Fix | Delete
/**
[688] Fix | Delete
* Return font down icon list items.
[689] Fix | Delete
*/
[690] Fix | Delete
function et_pb_get_font_down_icon_list_items() {
[691] Fix | Delete
$output = '';
[692] Fix | Delete
[693] Fix | Delete
$symbols = et_pb_get_font_down_icon_symbols();
[694] Fix | Delete
[695] Fix | Delete
foreach ( $symbols as $symbol ) {
[696] Fix | Delete
$output .= sprintf( '<li data-icon="%1$s"></li>', esc_attr( $symbol ) );
[697] Fix | Delete
}
[698] Fix | Delete
[699] Fix | Delete
return $output;
[700] Fix | Delete
}
[701] Fix | Delete
endif;
[702] Fix | Delete
[703] Fix | Delete
if ( ! function_exists( 'et_pb_font_down_icon_list' ) ) :
[704] Fix | Delete
/**
[705] Fix | Delete
* Return icon to display for the scroll down button.
[706] Fix | Delete
*/
[707] Fix | Delete
function et_pb_font_down_icon_list() {
[708] Fix | Delete
echo et_core_esc_previously( et_pb_get_font_down_icon_list() );
[709] Fix | Delete
}
[710] Fix | Delete
endif;
[711] Fix | Delete
[712] Fix | Delete
[713] Fix | Delete
if ( ! function_exists( 'et_pb_process_font_icon' ) ) :
[714] Fix | Delete
/**
[715] Fix | Delete
* Processes font icon value for use on front-end
[716] Fix | Delete
*
[717] Fix | Delete
* @param string $font_icon Font Icon ( exact value or in %%index_number%% format ).
[718] Fix | Delete
* @param string $symbols_function Optional. Name of the function that gets an array of font icon values.
[719] Fix | Delete
* et_pb_get_font_icon_symbols function is used by default.
[720] Fix | Delete
* @return string $font_icon Font Icon value
[721] Fix | Delete
*/
[722] Fix | Delete
function et_pb_process_font_icon( $font_icon, $symbols_function = 'default' ) {
[723] Fix | Delete
// the exact font icon value is saved.
[724] Fix | Delete
if ( 1 !== preg_match( '/^%%/', trim( $font_icon ) ) ) {
[725] Fix | Delete
return $font_icon;
[726] Fix | Delete
}
[727] Fix | Delete
[728] Fix | Delete
// the font icon value is saved in the following format: %%index_number%%.
[729] Fix | Delete
$icon_index = (int) str_replace( '%', '', $font_icon );
[730] Fix | Delete
$icon_symbols = 'default' === $symbols_function ? et_pb_get_font_icon_symbols() : call_user_func( $symbols_function );
[731] Fix | Delete
$font_icon = isset( $icon_symbols[ $icon_index ] ) ? $icon_symbols[ $icon_index ] : '';
[732] Fix | Delete
[733] Fix | Delete
return $font_icon;
[734] Fix | Delete
}
[735] Fix | Delete
endif;
[736] Fix | Delete
[737] Fix | Delete
if ( ! function_exists( 'et_builder_accent_color' ) ) :
[738] Fix | Delete
/**
[739] Fix | Delete
* Return an accent color.
[740] Fix | Delete
*
[741] Fix | Delete
* @param string $default_color Default color.
[742] Fix | Delete
*/
[743] Fix | Delete
function et_builder_accent_color( $default_color = '#7EBEC5' ) {
[744] Fix | Delete
// Accent color option exists in Divi theme only. Use default color in plugin.
[745] Fix | Delete
$accent_color = ! et_is_builder_plugin_active() ? et_get_option( 'accent_color', $default_color ) : $default_color;
[746] Fix | Delete
[747] Fix | Delete
return apply_filters( 'et_builder_accent_color', $accent_color );
[748] Fix | Delete
}
[749] Fix | Delete
endif;
[750] Fix | Delete
[751] Fix | Delete
if ( ! function_exists( 'et_pb_process_header_level' ) ) :
[752] Fix | Delete
/**
[753] Fix | Delete
* Process header level.
[754] Fix | Delete
*
[755] Fix | Delete
* @param string $new_level Header level.
[756] Fix | Delete
* @param string $default Default header level.
[757] Fix | Delete
*
[758] Fix | Delete
* @return string
[759] Fix | Delete
*/
[760] Fix | Delete
function et_pb_process_header_level( $new_level, $default ) {
[761] Fix | Delete
[762] Fix | Delete
$valid_header_levels = array( 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' );
[763] Fix | Delete
[764] Fix | Delete
// return the new header level if exists in the list of valid header levels.
[765] Fix | Delete
if ( in_array( $new_level, $valid_header_levels, true ) ) {
[766] Fix | Delete
return $new_level;
[767] Fix | Delete
}
[768] Fix | Delete
[769] Fix | Delete
// return default if defined. Fallback to h2 otherwise.
[770] Fix | Delete
return isset( $default ) ? $default : 'h2';
[771] Fix | Delete
}
[772] Fix | Delete
endif;
[773] Fix | Delete
[774] Fix | Delete
if ( ! function_exists( 'et_pb_get_alignment' ) ) {
[775] Fix | Delete
/**
[776] Fix | Delete
* Return an alignment value from alignment key.
[777] Fix | Delete
*
[778] Fix | Delete
* @param string $key Alignment key.
[779] Fix | Delete
*
[780] Fix | Delete
* @return string
[781] Fix | Delete
*/
[782] Fix | Delete
function et_pb_get_alignment( $key ) {
[783] Fix | Delete
if ( is_rtl() && 'left' === $key ) {
[784] Fix | Delete
$key = 'right';
[785] Fix | Delete
}
[786] Fix | Delete
[787] Fix | Delete
switch ( $key ) {
[788] Fix | Delete
case 'force_left':
[789] Fix | Delete
return 'left';
[790] Fix | Delete
case 'justified':
[791] Fix | Delete
return 'justify';
[792] Fix | Delete
default:
[793] Fix | Delete
return $key;
[794] Fix | Delete
}
[795] Fix | Delete
}
[796] Fix | Delete
}
[797] Fix | Delete
[798] Fix | Delete
if ( ! function_exists( 'et_builder_get_text_orientation_options' ) ) :
[799] Fix | Delete
/**
[800] Fix | Delete
* Return text orientation options to use in dropdown.
[801] Fix | Delete
*
[802] Fix | Delete
* @param array $exclude_options Options to be excluded.
[803] Fix | Delete
* @param array $include_options Options to be included.
[804] Fix | Delete
*/
[805] Fix | Delete
function et_builder_get_text_orientation_options( $exclude_options = array(), $include_options = array() ) {
[806] Fix | Delete
$text_orientation_options = array(
[807] Fix | Delete
'left' => et_builder_i18n( 'Left' ),
[808] Fix | Delete
'center' => et_builder_i18n( 'Center' ),
[809] Fix | Delete
'right' => et_builder_i18n( 'Right' ),
[810] Fix | Delete
'justified' => et_builder_i18n( 'Justified' ),
[811] Fix | Delete
);
[812] Fix | Delete
[813] Fix | Delete
if ( is_rtl() ) {
[814] Fix | Delete
$text_orientation_options = array(
[815] Fix | Delete
'right' => et_builder_i18n( 'Right' ),
[816] Fix | Delete
'center' => et_builder_i18n( 'Center' ),
[817] Fix | Delete
'force_left' => et_builder_i18n( 'Left' ),
[818] Fix | Delete
);
[819] Fix | Delete
}
[820] Fix | Delete
[821] Fix | Delete
// Exclude some options if needed.
[822] Fix | Delete
if ( ! empty( $exclude_options ) ) {
[823] Fix | Delete
foreach ( $exclude_options as $exclude ) {
[824] Fix | Delete
unset( $text_orientation_options[ $exclude ] );
[825] Fix | Delete
}
[826] Fix | Delete
}
[827] Fix | Delete
[828] Fix | Delete
// Include some options if needed.
[829] Fix | Delete
if ( ! empty( $include_options ) ) {
[830] Fix | Delete
$text_orientation_options = wp_parse_args( $include_options, $text_orientation_options );
[831] Fix | Delete
}
[832] Fix | Delete
[833] Fix | Delete
return apply_filters( 'et_builder_text_orientation_options', $text_orientation_options );
[834] Fix | Delete
}
[835] Fix | Delete
endif;
[836] Fix | Delete
[837] Fix | Delete
if ( ! function_exists( 'et_builder_get_gallery_settings' ) ) :
[838] Fix | Delete
/**
[839] Fix | Delete
* Return gallery button.
[840] Fix | Delete
*/
[841] Fix | Delete
function et_builder_get_gallery_settings() {
[842] Fix | Delete
$output = sprintf(
[843] Fix | Delete
'<input type="button" class="button button-upload et-pb-gallery-button" value="%1$s" />',
[844] Fix | Delete
esc_attr__( 'Update Gallery', 'et_builder' )
[845] Fix | Delete
);
[846] Fix | Delete
[847] Fix | Delete
return $output;
[848] Fix | Delete
}
[849] Fix | Delete
endif;
[850] Fix | Delete
[851] Fix | Delete
if ( ! function_exists( 'et_builder_get_nav_menus_options' ) ) :
[852] Fix | Delete
/**
[853] Fix | Delete
* Return navigation menus options.
[854] Fix | Delete
*/
[855] Fix | Delete
function et_builder_get_nav_menus_options() {
[856] Fix | Delete
$nav_menus_options = array( 'none' => esc_html__( 'Select a menu', 'et_builder' ) );
[857] Fix | Delete
[858] Fix | Delete
$nav_menus = wp_get_nav_menus( array( 'orderby' => 'name' ) );
[859] Fix | Delete
foreach ( (array) $nav_menus as $_nav_menu ) {
[860] Fix | Delete
$nav_menus_options[ $_nav_menu->term_id ] = $_nav_menu->name;
[861] Fix | Delete
}
[862] Fix | Delete
[863] Fix | Delete
return apply_filters( 'et_builder_nav_menus_options', $nav_menus_options );
[864] Fix | Delete
}
[865] Fix | Delete
endif;
[866] Fix | Delete
[867] Fix | Delete
if ( ! function_exists( 'et_builder_generate_center_map_setting' ) ) :
[868] Fix | Delete
/**
[869] Fix | Delete
* Return center map div.
[870] Fix | Delete
*/
[871] Fix | Delete
function et_builder_generate_center_map_setting() {
[872] Fix | Delete
return '<div id="et_pb_map_center_map" class="et-pb-map et_pb_map_center_map"></div>';
[873] Fix | Delete
}
[874] Fix | Delete
endif;
[875] Fix | Delete
[876] Fix | Delete
if ( ! function_exists( 'et_builder_generate_pin_zoom_level_input' ) ) :
[877] Fix | Delete
/**
[878] Fix | Delete
* Return map's pin zoom level input element.
[879] Fix | Delete
*/
[880] Fix | Delete
function et_builder_generate_pin_zoom_level_input() {
[881] Fix | Delete
return '<input class="et_pb_zoom_level" type="hidden" value="18" />';
[882] Fix | Delete
}
[883] Fix | Delete
endif;
[884] Fix | Delete
[885] Fix | Delete
/**
[886] Fix | Delete
* Define conditional tags needed for component's backend parser. This is used for FB's public facing update
[887] Fix | Delete
* mechanism to pass conditional tag to admin-ajax.php for component which relies to backend parsing. Backend
[888] Fix | Delete
* uses this conditional tags' key as well for sanitization
[889] Fix | Delete
*
[890] Fix | Delete
* @return array
[891] Fix | Delete
*/
[892] Fix | Delete
function et_fb_conditional_tag_params() {
[893] Fix | Delete
global $post;
[894] Fix | Delete
[895] Fix | Delete
$post_type = isset( $post->post_type ) ? $post->post_type : false;
[896] Fix | Delete
[897] Fix | Delete
$conditional_tags = array(
[898] Fix | Delete
'is_limited_mode' => et_builder_is_limited_mode(),
[899] Fix | Delete
'is_bfb' => et_builder_bfb_enabled(),
[900] Fix | Delete
'is_bfb_activated' => et_builder_bfb_activated(),
[901] Fix | Delete
'is_tb' => et_builder_tb_enabled(),
[902] Fix | Delete
'is_front_page' => is_front_page(),
[903] Fix | Delete
'is_home_page' => is_home() || is_front_page(),
[904] Fix | Delete
'is_search' => is_search(),
[905] Fix | Delete
'is_single' => is_single(),
[906] Fix | Delete
'is_singular' => is_singular(),
[907] Fix | Delete
'is_singular_project' => is_singular( 'project' ),
[908] Fix | Delete
'is_rtl' => is_rtl(),
[909] Fix | Delete
'is_no_rtl' => 'on' === et_get_option( 'divi_disable_translations', 'off' ),
[910] Fix | Delete
'et_is_builder_plugin_active' => et_is_builder_plugin_active(),
[911] Fix | Delete
'is_user_logged_in' => is_user_logged_in(),
[912] Fix | Delete
'et_is_ab_testing_active' => et_is_ab_testing_active() ? 'yes' : 'no',
[913] Fix | Delete
'is_wrapped_styles' => et_builder_has_limitation( 'use_wrapped_styles' ),
[914] Fix | Delete
'is_gutenberg' => et_core_is_gutenberg_active(),
[915] Fix | Delete
'is_custom_post_type' => et_builder_is_post_type_custom( $post_type ),
[916] Fix | Delete
'is_layout_post_type' => et_theme_builder_is_layout_post_type( $post_type ),
[917] Fix | Delete
'is_rich_editor' => 'true' === apply_filters( 'user_can_richedit', get_user_option( 'rich_editing' ) ) ? 'yes' : 'no',
[918] Fix | Delete
[919] Fix | Delete
// Pass falsey as empty string so it remains falsey when conditionalTags is fetched and
[920] Fix | Delete
// passed string as AJAX payload (on AJAX string, false bool becomes 'false' string).
[921] Fix | Delete
'is_layout_block' => ET_GB_Block_Layout::is_layout_block_preview() ? true : '',
[922] Fix | Delete
);
[923] Fix | Delete
[924] Fix | Delete
return apply_filters( 'et_fb_conditional_tag_params', $conditional_tags );
[925] Fix | Delete
}
[926] Fix | Delete
[927] Fix | Delete
if ( ! function_exists( 'et_builder_page_creation_options' ) ) :
[928] Fix | Delete
/**
[929] Fix | Delete
* Get Page Creation flow options
[930] Fix | Delete
*
[931] Fix | Delete
* @since 4.2
[932] Fix | Delete
*
[933] Fix | Delete
* @return array
[934] Fix | Delete
*/
[935] Fix | Delete
function et_builder_page_creation_options() {
[936] Fix | Delete
return array(
[937] Fix | Delete
'build_from_scratch' => array(
[938] Fix | Delete
'className' => 'accent-blue',
[939] Fix | Delete
'imgSrc' => 'scratch.png',
[940] Fix | Delete
'imgSrcHover' => 'scratch.gif',
[941] Fix | Delete
'titleText' => esc_html__( 'Build From Scratch', 'et_builder' ),
[942] Fix | Delete
'descriptionText' => esc_html__( 'Build your page from the ground up. Don’t worry, you can access our premade layouts at any time.', 'et_builder' ),
[943] Fix | Delete
'buttonText' => esc_html__( 'Start Building', 'et_builder' ),
[944] Fix | Delete
'permission' => array( 'add_module' ),
[945] Fix | Delete
'setting' => array(
[946] Fix | Delete
'value_index' => 1,
[947] Fix | Delete
),
[948] Fix | Delete
),
[949] Fix | Delete
'use_existing_content' => array(
[950] Fix | Delete
'className' => 'accent-blue',
[951] Fix | Delete
'imgSrc' => 'existing.png',
[952] Fix | Delete
'imgSrcHover' => 'existing.gif',
[953] Fix | Delete
'titleText' => esc_html__( 'Use Existing Content', 'et_builder' ),
[954] Fix | Delete
'descriptionText' => esc_html__( 'Use the Divi Builder while retaining your existing page content.', 'et_builder' ),
[955] Fix | Delete
'buttonText' => esc_html__( 'Start Building', 'et_builder' ),
[956] Fix | Delete
'permission' => array( 'edit_module' ),
[957] Fix | Delete
'setting' => false,
[958] Fix | Delete
),
[959] Fix | Delete
'choose_premade_layout' => array(
[960] Fix | Delete
'className' => 'accent-purple',
[961] Fix | Delete
'imgSrc' => 'premade.png',
[962] Fix | Delete
'imgSrcHover' => 'premade.gif',
[963] Fix | Delete
'titleText' => esc_html__( 'Choose a premade Layout', 'et_builder' ),
[964] Fix | Delete
'descriptionText' => esc_html__( 'Choose from hundreds of world-class premade layouts or start from any of your existing saved layouts.', 'et_builder' ),
[965] Fix | Delete
'buttonText' => esc_html__( 'Browse Layouts', 'et_builder' ),
[966] Fix | Delete
'permission' => array( 'load_layout', 'divi_library' ),
[967] Fix | Delete
'setting' => array(
[968] Fix | Delete
'label' => esc_html__( 'Load Premade Layout', 'et_builder' ),
[969] Fix | Delete
'value_index' => 2,
[970] Fix | Delete
),
[971] Fix | Delete
),
[972] Fix | Delete
'clone_existing_page' => array(
[973] Fix | Delete
'className' => 'accent-green',
[974] Fix | Delete
'imgSrc' => 'clone.png',
[975] Fix | Delete
'imgSrcHover' => 'clone.gif',
[976] Fix | Delete
'titleText' => esc_html__( 'Clone Existing page', 'et_builder' ),
[977] Fix | Delete
'descriptionText' => esc_html__( 'Jump start your layout design by duplicating another page that you’ve already built.', 'et_builder' ),
[978] Fix | Delete
'buttonText' => esc_html__( 'Choose Page', 'et_builder' ),
[979] Fix | Delete
'permission' => array( 'load_layout', 'divi_library', 'edit_module' ),
[980] Fix | Delete
'setting' => array(
[981] Fix | Delete
'value_index' => 3,
[982] Fix | Delete
),
[983] Fix | Delete
),
[984] Fix | Delete
);
[985] Fix | Delete
}
[986] Fix | Delete
endif;
[987] Fix | Delete
[988] Fix | Delete
if ( ! function_exists( 'et_builder_page_creation_settings' ) ) :
[989] Fix | Delete
/**
[990] Fix | Delete
* Get Page Creation flow setting options
[991] Fix | Delete
*
[992] Fix | Delete
* @since 4.2
[993] Fix | Delete
*
[994] Fix | Delete
* @param bool $value_as_index Flag to set the options value as numeric index.
[995] Fix | Delete
*
[996] Fix | Delete
* @return array
[997] Fix | Delete
*/
[998] Fix | Delete
function et_builder_page_creation_settings( $value_as_index = false ) {
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function