Skip to content

Commit

Permalink
remove publisher specific functionality
Browse files Browse the repository at this point in the history
Keeping EA-Genesis-Child lean and applicable for all projects
  • Loading branch information
billerickson committed Nov 29, 2019
1 parent 3c35469 commit 1b78b9c
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 805 deletions.
120 changes: 0 additions & 120 deletions acf-json/group_5dd48fe1660cb.json

This file was deleted.

2 changes: 1 addition & 1 deletion assets/css/editor-style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/main.css.map

Large diffs are not rendered by default.

80 changes: 0 additions & 80 deletions assets/scss/partials/_blocks-custom.scss
Original file line number Diff line number Diff line change
@@ -1,80 +0,0 @@
/* Post Listing
--------------------------------------------- */

.post-listing-block {

header, footer {
grid-column: 1 / -1;
width: 100%;
@include clearfix;
}

footer {
position: relative;
margin-top: -20px;

a {
color: $highlight;
display: inline-block;
font-size: 18px;
font-weight: 700;
letter-spacing: .5px;
text-decoration: none;
text-transform: uppercase;
position: relative;
z-index: 2;
}
}

@supports( display: $grid ) {

&.layout3 {
@include media(">=tablet") {
display: grid;
grid-template-columns: repeat( 3, 1fr );
grid-column-gap: $grid-gap;
}
}

&.layout4 {
@include media(">=tablet") {
display: grid;
grid-template-columns: repeat( 2, 1fr );
grid-column-gap: $grid-gap;
}
@include media(">=medium") {
grid-template-columns: repeat( 4, 1fr );
}
}

&.layout2x2 {
display: grid;
grid-template-columns: repeat( 2, 1fr );
grid-column-gap: 16px;
@include media(">=tablet") {
grid-column-gap: $grid-gap;
}
}

&.layout1x3 {
@include media(">=tablet") {
display: grid;
grid-template-columns: repeat( 2, 1fr );
grid-column-gap: $grid-gap;
align-items: start;

.feature {
grid-row: span 4;
}

.secondary .post-summary__image {
margin: 0;
}

footer {
margin-top: -16px;
}
}
}
}
}
3 changes: 0 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,12 @@ function ea_child_theme_setup() {

// Functionality
include_once( get_stylesheet_directory() . '/inc/login-logo.php' );
include_once( get_stylesheet_directory() . '/inc/category-landing-page.php' );
include_once( get_stylesheet_directory() . '/inc/block-area.php' );
include_once( get_stylesheet_directory() . '/inc/social-links.php' );
include_once( get_stylesheet_directory() . '/inc/post-listing.php' );

// Plugin Support
include_once( get_stylesheet_directory() . '/inc/acf.php' );
include_once( get_stylesheet_directory() . '/inc/amp.php' );
include_once( get_stylesheet_directory() . '/inc/pwa.php' );
include_once( get_stylesheet_directory() . '/inc/shared-counts.php' );
include_once( get_stylesheet_directory() . '/inc/wpforms.php' );

Expand Down
33 changes: 0 additions & 33 deletions inc/acf.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,39 +53,6 @@ function register_blocks() {
if( ! function_exists('acf_register_block_type') )
return;

acf_register_block_type(array(
'name' => 'post-listing',
'title' => __( 'Post Listing', 'ea_genesis_child' ),
'mode' => 'auto',
'render_template' => 'partials/blocks/post-listing.php',
'category' => 'widgets',
'icon' => 'feedback',
'supports' => [ 'anchor' => true, 'align' => false ],
));

}

/**
* Dynamic layouts
*
*/
function dynamic_layouts( $field ) {
if( 'post_listing_layout' !== $field['name'] )
return $field;

$field['choices'] = [];
$field['default'] = false;
$layouts = ea_post_listing_layouts();
foreach( $layouts as $key => $details ) {
$field['choices'][ $key ] = $details['label'];

// Set default to first layout
if( false === $field['default'] )
$field['default'] = $key;
}

return $field;
}

}
new BE_ACF_Customizations();
Loading

0 comments on commit 1b78b9c

Please sign in to comment.