Kopieren

function expand_shortcode($atts, $content = null) {
$default_class = "button bg-blue";
$a = shortcode_atts( array(
	'more'  => 'Mehr erfahren',
	'less'  => 'Text verbergen',
	'class' => '',
	'style' => '',
), $atts );
$html='

'.$content.'

 

'.$a['more'].'
'; return $html; } add_shortCode('expand', 'expand_shortcode');