__('Primary','camp-school')
));
}
add_action('after_setup_theme','camp_school_theme_support');
add_filter( 'image_size_names_choose', 'camp_school_small_custom_sizes' );
function camp_school_small_custom_sizes( $sizes ) {
return array_merge( $sizes, array(
'small' => __( 'Small','camp-school' ),
) );
}
/**
* Add a sidebar.
*/
function camp_school_main_sidebar() {
register_sidebar( array(
'name' => __( 'Main Sidebar', 'camp-school' ),
'id' => 'main-sidebar',
'description' => __( 'Widgets in this area will be shown on all posts and pages.', 'camp-school' ),
'before_widget' => '
',
'after_widget' => '
',
) );
}
add_action( 'widgets_init', 'camp_school_main_sidebar' );
// Contact Form Match to Template.
add_action( 'wpcf7_init', 'custom_views_post_title' );
function custom_views_post_title() {
wpcf7_add_form_tag( 'custom_views_post_title', 'custom_views_post_title_shortcode_handler' );
}
function custom_views_post_title_shortcode_handler( $tag ) {
global $post;
$args = array( 'post_type' => 'post' );
$myposts = get_posts( $args );
$output = '";
return $output;
}
function mod_contact7_form_content( $template, $prop ) {
if ( 'form' == $prop ) {
return implode( '', array(
) );
} else {
return $template;
}
}
add_filter( 'use_block_editor_for_post', '__return_false' );
add_filter(
'wpcf7_default_template',
'mod_contact7_form_content',
10,
2
);
function mod_contact7_form_title( $template ) {
$template->set_title( 'Contact us now' );
return $template;
}
add_filter(
'wpcf7_contact_form_default_pack',
'mod_contact7_form_title'
);
function camp_school_shapeSpace_allowed_html() {
$allowed_tags = array(
'a' => array(
'class' => array(),
'href' => array(),
'rel' => array(),
'title' => array(),
),
'abbr' => array(
'title' => array(),
),
'b' => array(),
'blockquote' => array(
'cite' => array(),
),
'cite' => array(
'title' => array(),
),
'code' => array(),
'del' => array(
'datetime' => array(),
'title' => array(),
),
'dd' => array(),
'div' => array(
'class' => array(),
'title' => array(),
'style' => array(),
),
'dl' => array(),
'dt' => array(),
'em' => array(),
'h1' => array(),
'h2' => array(),
'h3' => array(),
'h4' => array(),
'h5' => array(),
'h6' => array(),
'i' => array(),
'img' => array(
'alt' => array(),
'class' => array(),
'height' => array(),
'src' => array(),
'width' => array(),
),
'li' => array(
'class' => array(),
),
'ol' => array(
'class' => array(),
),
'p' => array(
'i' => array(),
'class' => array(),
'a' => array(),
),
'q' => array(
'cite' => array(),
'title' => array(),
),
'span' => array(
'class' => array(),
'title' => array(),
'style' => array(),
),
'strike' => array(),
'strong' => array(),
'ul' => array(
'class' => array(),
),
);
return $allowed_tags;
}
/** Custom Meta Box for Author url **/
require get_template_directory().'/inc/tiny-pic.php';
require get_template_directory().'/inc/customizer-config.php';
/** TGM Plugin Activation **/
require_once get_template_directory().'/inc/class-tgm-plugin-activation.php';
require_once get_template_directory().'/inc/campschool-demo-content.php';
require get_template_directory().'/inc/install-plugins.php';