| Server IP : 188.114.96.2 / Your IP : 104.23.243.200 Web Server : Apache/2.4.59 (Debian) System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64 User : edlftp ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/nicolasj/temp/fusion-builder/shortcodes/ |
Upload File : |
<?php
/**
* Add an element to fusion-builder.
*
* @package fusion-builder
* @since 1.0
*/
/**
* Row shortcode
*
* @param array $atts The attributes array.
* @param string $content The content.
* @return string
*/
function fusion_builder_row( $atts, $content = '' ) {
extract(
shortcode_atts(
[
'id' => '',
'class' => '',
],
$atts,
'fusion_builder_row'
)
);
return '<div' . ( '' !== $id ? ' id="' . esc_attr( $id ) . '"' : '' ) . ' class="fusion-builder-row fusion-row ' . esc_attr( $class ) . ( '' !== $class ? esc_attr( $class ) : '' ) . '">' . do_shortcode( fusion_builder_fix_shortcodes( $content ) ) . '</div>';
}
add_shortcode( 'fusion_builder_row', 'fusion_builder_row' );
/**
* Map Row shortcode to Fusion Builder
*/
function fusion_element_row() {
fusion_builder_map(
[
'name' => esc_attr__( 'Row', 'fusion-builder' ),
'shortcode' => 'fusion_builder_row',
'hide_from_builder' => true,
]
);
}
add_action( 'fusion_builder_before_init', 'fusion_element_row' );