Skip to content

Commit

Permalink
Added Designs Meta Box
Browse files Browse the repository at this point in the history
APL Design Advanced-Post-List#9
Internalization Advanced-Post-List#6
Change Admin Page Advanced-Post-List#75
Conflict w/ MagicMembers Advanced-Post-List#44
  • Loading branch information
EkoJR committed Jul 29, 2017
1 parent 60585ce commit 3ed1303
Show file tree
Hide file tree
Showing 8 changed files with 252 additions and 104 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## CUSTOM
#################

*.bk
*.bk*

#################
## Eclipse
Expand Down
27 changes: 13 additions & 14 deletions admin/class-apl-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,19 +324,22 @@ public function admin_enqueue( $hook ) {
// POST => TAXONOMIES.
$data_post_tax = $this->get_post_tax();

// TAXONOMIES => TERMS
// TAXONOMIES => TERMS.
$data_tax_terms = $this->get_tax_terms();

$data_ui_trans = array(
'tax_noneSelectedText' => esc_html__( 'Select Taxonomy', 'advanced-post-list' ),
'tax_selectedText' => esc_html__( '# of # taxonomies selected', 'advanced-post-list' ),
'tax_noneSelectedText' => esc_html__( 'Select Taxonomy', 'advanced-post-list' ),
'tax_selectedText' => esc_html__( '# of # taxonomies selected', 'advanced-post-list' ),
'author_ids_noneSelectedText' => esc_html__( '- None -', 'advanced-post-list' ),
'author_ids_selectedText' => esc_html__( '# Selected', 'advanced-post-list' ),
'post_status_1_noneSelectedText' => esc_html__( 'Select Status', 'advanced-post-list' ),
'post_status_1_selectedText' => esc_html__( 'Both', 'advanced-post-list' ),
'post_status_2_noneSelectedText' => esc_html__( 'Published', 'advanced-post-list' ),
'post_status_2_selectedText' => esc_html__( '# Selected', 'advanced-post-list' ),
);

$admin_localize = array();
$admin_ui_localize = array(
//'post_type_objs'
//'taxonomy_objs'
//'term_objs'
'post_tax' => $data_post_tax,
'tax_terms' => $data_tax_terms,
'trans' => $data_ui_trans,
Expand All @@ -345,8 +348,6 @@ public function admin_enqueue( $hook ) {
wp_localize_script( 'apl-admin-js', 'apl_admin_local', $admin_localize );
wp_localize_script( 'apl-admin-ui-js', 'apl_admin_ui_local', $admin_ui_localize );
}


}

public function disable_screen_boxes() {
Expand Down Expand Up @@ -380,7 +381,7 @@ public function post_list_screen_add_new() {
add_screen_option( 'per_page', $args );
*/
}

public function post_list_meta_boxes() {
add_meta_box(
'apl-post-list-filter',
Expand All @@ -399,19 +400,17 @@ public function post_list_meta_boxes() {
'core'
);
}
public function post_list_meta_box_filter( $post, $metabox ) {
// ob_start.

public function post_list_meta_box_filter( $post, $metabox ) {
$apl_post_tax = $this->get_post_tax();
$apl_tax_terms = $this->get_tax_terms();
$apl_display_post_types = $this->get_display_post_types();

include( APL_DIR . 'admin/meta-box-filter.php' );

}

public function post_list_meta_box_display( $post, $metabox ) {
echo '<p>Hello2</p>';
var_dump( $metabox );
include( APL_DIR . 'admin/meta-box-design.php' );
}

/*
Expand Down
35 changes: 35 additions & 0 deletions admin/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
display: none;
}

/*
* TOP FILTER META BOX
*/

.apl-filter-box-1 {
display: flex;
margin-bottom: 18px;
Expand Down Expand Up @@ -53,6 +57,10 @@

.apl-t-terms label {}

/*
* BOTTOM FILTER META BOX
*/

.apl-filter-box-2 {
display: flex;
margin-bottom: 18px;
Expand Down Expand Up @@ -149,3 +157,30 @@ input.apl-text-exclude-posts {
float: right;
margin-top: 5px !important;
}

/*
* DESIGN META BOX
*/
.apl-design-box-1 {
display: flex;
margin-bottom: 18px;
}

.apl-design-column {

}

.apl-design-row {
float: left;
width: 100%;
}

.apl-design-row > div:first-child {
float: left;
width: 20.3%;
}

.apl-design-row > div:nth-child( 2 ) {
float: left;
width: 79.7%;
}
Loading

0 comments on commit 3ed1303

Please sign in to comment.