about acf added
This commit is contained in:
mzanni 2017-07-04 23:46:19 -07:00
Родитель dc29530a2d
Коммит 42957bd545
6 изменённых файлов: 415 добавлений и 33 удалений

Просмотреть файл

@ -0,0 +1,337 @@
{
"key": "group_59571ebce12de",
"title": "About Page",
"fields": [
{
"key": "field_59571fb0da285",
"label": "Sign Up",
"name": "sign_up",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
},
{
"key": "field_59571fb9da286",
"label": "Sign Up Url",
"name": "sign_up_url",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
},
{
"key": "field_595720e6f7b59",
"label": "Road Map Title",
"name": "road_map_title",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
},
{
"key": "field_595720f3f7b5a",
"label": "Road Map Items",
"name": "road_map_items",
"type": "repeater",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"min": 0,
"max": 0,
"layout": "table",
"button_label": "",
"collapsed": "",
"sub_fields": [
{
"key": "field_5957212bf7b5b",
"label": "Date",
"name": "date",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
},
{
"key": "field_5957213af7b5c",
"label": "Is Selected",
"name": "is_selected",
"type": "true_false",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": 0,
"message": "Selected",
"ui": 0,
"ui_on_text": "",
"ui_off_text": ""
},
{
"key": "field_595721bcf7b5d",
"label": "Copy",
"name": "copy",
"type": "textarea",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"new_lines": "",
"maxlength": "",
"placeholder": "",
"rows": 2
}
]
},
{
"key": "field_595733e07bced",
"label": "Extra Content",
"name": "extra_content",
"type": "wysiwyg",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"tabs": "all",
"toolbar": "basic",
"media_upload": 1,
"default_value": "",
"delay": 0
},
{
"key": "field_595c5bc15faa6",
"label": "Feature Reports",
"name": "feature_reports",
"type": "repeater",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"collapsed": "",
"min": 0,
"max": 0,
"layout": "block",
"button_label": "",
"sub_fields": [
{
"key": "field_595c5bc15faa7",
"label": "Image",
"name": "image",
"type": "image",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"return_format": "id",
"preview_size": "thumbnail",
"library": "all",
"min_width": "",
"min_height": "",
"min_size": "",
"max_width": "",
"max_height": "",
"max_size": "",
"mime_types": ""
},
{
"key": "field_595c5bfedbf09",
"label": "Year",
"name": "year",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_595c5bc15faa8",
"label": "Title",
"name": "title",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_595c5bc15faa9",
"label": "Excerpt",
"name": "excerpt",
"type": "textarea",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"maxlength": "",
"rows": 2,
"new_lines": ""
},
{
"key": "field_595c5bc15faaa",
"label": "CTA Text",
"name": "cta_text",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_595c5bc15faab",
"label": "Link",
"name": "link",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_595c5bc15faac",
"label": "New Window",
"name": "new_window",
"type": "true_false",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"message": "Open in new window",
"default_value": 0,
"ui": 0,
"ui_on_text": "",
"ui_off_text": ""
}
]
}
],
"location": [
[
{
"param": "post_template",
"operator": "==",
"value": "template-about.php"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": 1,
"description": "",
"modified": 1499229753
}

Просмотреть файл

@ -3,10 +3,14 @@
.container{
overflow:hidden;
//overflow:hidden;
height:95px;
position:relative;
padding:0 0 6px;
@include md-max{
height:auto;
overflow:hidden;//only because wpml widget is now position:fixed
}
.brand{
height:55px;
@ -73,5 +77,73 @@
display:block;
@include gradient-underline();
}
.widget{
position: absolute;
right: 0;
top: 38px;
@include font(opensans);
@include md-max{
top:6px;
position:fixed;
right:10px;
}
.wpml-ls-legacy-dropdown{
width:159px;
@include menu-max{
width:104px;
}
a{
font-size:16px;
padding:8px 10px;
border:1px solid #000;
@include md-max{
border:none;
padding:8px 18px 8px 5px;
font-size:14px;
text-align:right;
}
&.wpml-ls-item-toggle{
&:before{
content: '';
width:10px;
height:3px;
border:none;
position: absolute;
right: 15px;
background:#000;
top: 17px;
@include rotation(45deg);
@include md-max{
right:5px;
}
}
&:after{
content: '';
width:10px;
height:3px;
border:none;
position: absolute;
right: 10px;
background:#000;
top: 17px;
@include rotation(-45deg);
@include md-max{
right:0;
}
}
}
}
}
.wpml-ls-sub-menu{
a{
border-top:0;
}
}
}
}
}

Просмотреть файл

@ -15,11 +15,6 @@ function body_class($classes) {
}
}
// Add class if sidebar is active
if (Setup\display_sidebar()) {
$classes[] = 'sidebar-primary';
}
return $classes;
}
add_filter('body_class', __NAMESPACE__ . '\\body_class');

Просмотреть файл

@ -91,40 +91,16 @@ add_action('after_setup_theme', __NAMESPACE__ . '\\setup');
function widgets_init() {
register_sidebar([
'name' => __('Primary', 'sage'),
'id' => 'sidebar-primary',
'id' => 'topbar-primary',
'before_widget' => '<section class="widget %1$s %2$s">',
'after_widget' => '</section>',
'before_title' => '<h3>',
'after_title' => '</h3>'
]);
register_sidebar([
'name' => __('Footer', 'sage'),
'id' => 'sidebar-footer',
'before_widget' => '<section class="widget %1$s %2$s">',
'after_widget' => '</section>',
'before_title' => '<h3>',
'after_title' => '</h3>'
]);
}
add_action('widgets_init', __NAMESPACE__ . '\\widgets_init');
/**
* Determine which pages should NOT display the sidebar
*/
function display_sidebar() {
static $display;
isset($display) || $display = !in_array(true, [
// The sidebar will NOT be displayed if ANY of the following return true.
// @link https://codex.wordpress.org/Conditional_Tags
is_404(),
is_front_page(),
is_page_template('template-custom.php'),
]);
return apply_filters('sage/display_sidebar', $display);
}
/**
* Theme assets

Просмотреть файл

@ -9,6 +9,9 @@
?>
</nav>
<?php dynamic_sidebar('topbar-primary'); ?>
<?php
// insert wpml dropdown here
/*

Просмотреть файл

@ -1 +0,0 @@
<?php dynamic_sidebar('sidebar-primary'); ?>