Permalink
Browse files

Nuevo filtro t_em_filter_'. $action .'_style

  • Loading branch information...
rogertm committed Jan 14, 2019
1 parent 816d5be commit bde4316fbf6d4b7974cf317608349a1ce04c3933
Showing with 12 additions and 1 deletion.
  1. +12 −1 templates/call-actions.php
@@ -69,9 +69,20 @@ function t_em_call_action_bg(){
?><style type="text/css"><?php
foreach ( $actions as $action => $tag ) :
if ( t_em( $action .'_thumbnail_src' ) ) :
$style = array(
'background-image: url( '. t_em( $action .'_thumbnail_src' ) .' );',
);
/**
* Filter the current .call-action style. The dynamic portion of the hook name "$action"
* make reference to the current Action Call
*
* @param array $style CSS style in an array form
* @since Twenty'em 1.4.0
*/
$style = apply_filters( 't_em_filter_'. $action .'_style' , $style );
?>
#<?php echo $action ?>{
background-image: url( <?php echo t_em( $action .'_thumbnail_src' ); ?> );
<?php echo join( $style ) ?>
}
<?php
endif;

0 comments on commit bde4316

Please sign in to comment.