@@ -0,0 +1,150 @@
{
"key": "group_5b778ca2828b4",
"title": "Directors",
"fields": [
{
"key": "field_5b778ca9df2b4",
"label": "Staff Member",
"name": "staff_member",
"type": "repeater",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"collapsed": "",
"min": 0,
"max": 0,
"layout": "row",
"button_label": "Add Director",
"sub_fields": [
{
"key": "field_5b778e28df2b9",
"label": "Picture",
"name": "picture",
"type": "image",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"return_format": "url",
"preview_size": "thumbnail",
"library": "all",
"min_width": "",
"min_height": "",
"min_size": "",
"max_width": "",
"max_height": "",
"max_size": "",
"mime_types": ""
},
{
"key": "field_5b778ce3df2b5",
"label": "Name",
"name": "name",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5b778e08df2b8",
"label": "Title",
"name": "title",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5b778d40df2b6",
"label": "Education",
"name": "education",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5b778e3cdf2ba",
"label": "Description",
"name": "description",
"type": "textarea",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"maxlength": "",
"rows": "",
"new_lines": ""
}
]
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "staff"
},
{
"param": "post",
"operator": "==",
"value": "166"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": 1,
"description": "",
"modified": 1534716128
}
@@ -0,0 +1,190 @@
{
"key": "group_5b778e77448ab",
"title": "Teachers",
"fields": [
{
"key": "field_5b778e774724b",
"label": "Staff Member",
"name": "staff_member",
"type": "repeater",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"collapsed": "",
"min": 0,
"max": 0,
"layout": "row",
"button_label": "Add Teacher",
"sub_fields": [
{
"key": "field_5b778e7748285",
"label": "Picture",
"name": "picture",
"type": "image",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"return_format": "url",
"preview_size": "thumbnail",
"library": "all",
"min_width": "",
"min_height": "",
"min_size": "",
"max_width": "",
"max_height": "",
"max_size": "",
"mime_types": ""
},
{
"key": "field_5b778e77482c3",
"label": "Name",
"name": "name",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5b778e77482fe",
"label": "Title",
"name": "title",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5b778eff2a883",
"label": "Credentials",
"name": "credentials",
"type": "repeater",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"collapsed": "",
"min": 0,
"max": 0,
"layout": "table",
"button_label": "Add Credential",
"sub_fields": [
{
"key": "field_5b778f402a884",
"label": "Credential",
"name": "credential",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
}
]
},
{
"key": "field_5b778e7748338",
"label": "Education",
"name": "education",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5b778e7748372",
"label": "Description",
"name": "description",
"type": "textarea",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"maxlength": "",
"rows": "",
"new_lines": ""
}
]
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "staff"
},
{
"param": "post",
"operator": "==",
"value": "167"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": 1,
"description": "",
"modified": 1534716181
}
@@ -0,0 +1,190 @@
{
"key": "group_5b7791d7af530",
"title": "Contact",
"fields": [
{
"key": "field_5b7791f9573e5",
"label": "Contact Map",
"name": "contact_map",
"type": "google_map",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"center_lat": "43.8468124",
"center_lng": "-79.3845446",
"zoom": "",
"height": ""
},
{
"key": "field_5b779270573e6",
"label": "Contact Form",
"name": "contact_form",
"type": "wysiwyg",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"tabs": "all",
"toolbar": "full",
"media_upload": 1,
"delay": 0
},
{
"key": "field_5b77928b573e7",
"label": "Contact Social",
"name": "contact_social",
"type": "repeater",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"collapsed": "",
"min": 0,
"max": 0,
"layout": "row",
"button_label": "Add Social Link",
"sub_fields": [
{
"key": "field_5b77930f4d426",
"label": "Social Icon",
"name": "social_icon",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5b77932b4d427",
"label": "Social Url",
"name": "social_url",
"type": "url",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": ""
}
]
},
{
"key": "field_5b7793ca4d428",
"label": "Contact Info",
"name": "contact_info",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_5b7793dc4d429",
"label": "Phone",
"name": "phone",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5b7794054d42a",
"label": "Email",
"name": "email",
"type": "email",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": ""
},
{
"key": "field_5b7794114d42b",
"label": "Address",
"name": "address",
"type": "textarea",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"maxlength": "",
"rows": "",
"new_lines": ""
}
]
}
],
"location": [
[
{
"param": "page",
"operator": "==",
"value": "19"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": 1,
"description": "",
"modified": 1534716113
}
@@ -0,0 +1,94 @@
{
"key": "group_5b77951c94b3c",
"title": "Homepage",
"fields": [
{
"key": "field_5b79ea08d8e71",
"label": "Home Hero Section",
"name": "home_hero_section",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "block",
"sub_fields": [
{
"key": "field_5b79ea83d8e72",
"label": "Hero Title",
"name": "hero_title",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5b79ea8fd8e73",
"label": "Hero Subheading",
"name": "hero_subheading",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5b79eab1d8e74",
"label": "Hero CTA Button",
"name": "hero_cta_button",
"type": "link",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"return_format": "url"
}
]
}
],
"location": [
[
{
"param": "page_template",
"operator": "==",
"value": "home.php"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": 1,
"description": "",
"modified": 1534717132
}

Large diffs are not rendered by default.

@@ -24,19 +24,12 @@
<footer class="site-footer" id="colophon">

<div class="site-info">

<a href="<?php echo esc_url( __( 'http://wordpress.org/','understrap' ) ); ?>"><?php printf(
/* translators:*/
esc_html__( 'Proudly powered by %s', 'understrap' ),'WordPress' ); ?></a>
<span class="sep"> | </span>

<?php printf( // WPCS: XSS ok.
/* translators:*/
esc_html__( 'Theme: %1$s by %2$s.', 'understrap' ), $the_theme->get( 'Name' ), '<a href="'.esc_url( __('http://understrap.com', 'understrap')).'">understrap.com</a>' ); ?>
<small>
&copy;<?php echo date("Y"); ?> Arc Education Centre
<span class="sep"> | </span>
Developed By <a href="http://adrianluk.com">Adrian Luk</a>
</small>

(<?php printf( // WPCS: XSS ok.
/* translators:*/
esc_html__( 'Version: %1$s', 'understrap' ), $the_theme->get( 'Version' ) ); ?>)
</div><!-- .site-info -->

</footer><!-- #colophon -->
@@ -82,26 +82,26 @@ public function __construct(){

public function cpt_register($cpt, $cpt_name, $icon = 'dashicons-businessman', $supports = array()){
$labels = array(
'name' => _x( $cpt . 's', $cpt . 's', 'Schoolhouse' ),
'singular_name' => _x( $cpt, $cpt, 'Schoolhouse' ),
'menu_name' => _x( $cpt . 's', 'admin menu', 'Schoolhouse' ),
'name_admin_bar' => _x( $cpt, 'add new on admin bar', 'Schoolhouse' ),
'add_new' => _x( 'Add New', $cpt, 'Schoolhouse' ),
'add_new_item' => __( 'Add New ' . $cpt, 'Schoolhouse' ),
'new_item' => __( 'New '. $cpt, 'Schoolhouse' ),
'edit_item' => __( 'Edit '.$cpt, 'Schoolhouse' ),
'view_item' => __( 'View '.$cpt, 'Schoolhouse' ),
'all_items' => __( 'All ' . $cpt . 's', 'Schoolhouse' ),
'search_items' => __( 'Search ' .$cpt . 's', 'Schoolhouse' ),
'parent_item_colon' => __( 'Parent ' .$cpt . 's:', 'Schoolhouse' ),
'not_found' => __( 'No ' .$cpt . 's found.', 'Schoolhouse' ),
'not_found_in_trash' => __( 'No ' .$cpt . 's found in Trash.', 'Provisus' )
'name' => _x( $cpt . 's', $cpt . 's', 'Arc' ),
'singular_name' => _x( $cpt, $cpt, 'Arc' ),
'menu_name' => _x( $cpt . 's', 'admin menu', 'Arc' ),
'name_admin_bar' => _x( $cpt, 'add new on admin bar', 'Arc' ),
'add_new' => _x( 'Add New', $cpt, 'Arc' ),
'add_new_item' => __( 'Add New ' . $cpt, 'Arc' ),
'new_item' => __( 'New '. $cpt, 'Arc' ),
'edit_item' => __( 'Edit '.$cpt, 'Arc' ),
'view_item' => __( 'View '.$cpt, 'Arc' ),
'all_items' => __( 'All ' . $cpt . 's', 'Arc' ),
'search_items' => __( 'Search ' .$cpt . 's', 'Arc' ),
'parent_item_colon' => __( 'Parent ' .$cpt . 's:', 'Arc' ),
'not_found' => __( 'No ' .$cpt . 's found.', 'Arc' ),
'not_found_in_trash' => __( 'No ' .$cpt . 's found in Trash.', 'Arc' )
);

$args = array(
'labels' => $labels,
'hierarchical' => false,
'description' => __( 'You can add '.$cpt.' here!.', 'Provisus' ),
'description' => __( 'You can add '.$cpt.' here!.', 'Arc' ),
'taxonomies' => array(),
'public' => true,
'show_ui' => true,
@@ -116,7 +116,7 @@ public function cpt_register($cpt, $cpt_name, $icon = 'dashicons-businessman', $
'query_var' => true,
'can_export' => true,
'rewrite' => true,
'capability_type' => 'post',
'capability_type' => 'page',
'supports' => $supports
);
register_post_type($cpt_name,$args);
@@ -0,0 +1,13 @@
<?php
/**
* Template Name: Home
*/

get_header();

?>

<?php

get_footer();
?>
@@ -15,13 +15,15 @@ function understrap_scripts() {
$theme_version = $the_theme->get( 'Version' );

$css_version = $theme_version . '.' . filemtime(get_template_directory() . '/css/theme.min.css');
wp_enqueue_style('swiper-styles', get_stylesheet_directory_uri() . '/css/swiper.min.css', array(), $css_version);
wp_enqueue_style( 'understrap-styles', get_stylesheet_directory_uri() . '/css/theme.min.css', array(), $css_version );

wp_enqueue_script( 'jquery');
wp_enqueue_script( 'popper-scripts', get_template_directory_uri() . '/js/popper.min.js', array(), $theme_version, true);

$js_version = $theme_version . '.' . filemtime(get_template_directory() . '/js/theme.min.js');
wp_enqueue_script( 'understrap-scripts', get_template_directory_uri() . '/js/theme.min.js', array(), $js_version, true );
wp_enqueue_script( 'swiper-scripts', get_template_directory_uri() . '/js/swiper.min.js', array(), $js_version, true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}

Large diffs are not rendered by default.

@@ -14,7 +14,6 @@
<div class="wrapper" id="full-width-page-wrapper">

<div class="<?php echo esc_attr( $container ); ?>" id="content">

<div class="row">

<div class="col-md-12 content-area" id="primary">