[' => '[',
']
' => ']',
']
' => ']'
);
$content = strtr($content, $array);
return $content;
}
// TODO: reconstruct and rename to helpers.php
require_once( 'helpers_alpha.php' );
// TODO: delete in future
require_once( 'shortcodes_lib.php' );
// TinyMCE button class
require_once( 'includes/tinyMCE-button-class.php' );
// List of shortcodes folders to include
// All folders located in /include
$shortcodes = array(
'buttons',
'tooltips',
'toggle',
'slider',
'tabbed',
'accordion',
'highlight',
'benefits',
'framed-video',
'map',
'call-to-action',
'text-box',
'divider',
'layout-builder',
'widget-twitter',
'widget-small-photos',
'widget-popular-posts',
'widget-testimonials',
'widget-portfolio',
'widget-partners',
'widget-contactform',
);
foreach ( $shortcodes as $shortcode_dirname ) {
$file_path = dirname( __FILE__ ) . '/includes/' . $shortcode_dirname . '/functions.php';
if ( file_exists( $file_path ) ) {
require_once $file_path;
}
}
/* Scott you are real skot */