Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define( 'ACF_LITE' , true ); // turn of custom fields editable options
- if( !class_exists('acf') ){
- include_once('includes/advanced-custom-fields/acf.php' );
- }
- if( !class_exists('acf_repeater_plugin') ) {
- include_once('includes/acf-repeater/acf-repeater.php' );
- }
- if( !class_exists('acf_options_page_plugin') ) {
- include_once('includes/acf-options-page/acf-options-page.php' );
- }
- /// loading theme options fields
- include_once("includes/advanced-custom-fields/data.php");
- add_theme_support('menus');
- add_theme_support( 'post-thumbnails' );
- function image_function( $atts, $content ){
- $a = shortcode_atts( array( 'src' => '' ), $atts );
- $image = "";
- $image = $a['src'];
- $image ='<div class="half">
- <img src="'.$image.'" alt="mock" />
- '.$content.'
- </div>';
- return $image;
- }
- add_shortcode( 'image', 'image_function' );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement