Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #291 from xwp/develop
Browse files Browse the repository at this point in the history
Release 0.8.0
  • Loading branch information
westonruter authored Sep 22, 2016
2 parents 35ce99b + 1eefc1a commit ae18e14
Show file tree
Hide file tree
Showing 44 changed files with 4,091 additions and 1,089 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ php:
- 7.0

env:
- WP_VERSION=4.5 WP_MULTISITE=0
- WP_VERSION=4.5 WP_MULTISITE=1
- WP_VERSION=latest WP_MULTISITE=0
- WP_VERSION=trunk WP_MULTISITE=0
- WP_VERSION=trunk WP_MULTISITE=1

install:
- nvm install 4 && nvm use 4
- export DEV_LIB_PATH=dev-lib
- if [ ! -e "$DEV_LIB_PATH" ] && [ -L .travis.yml ]; then export DEV_LIB_PATH=$( dirname $( readlink .travis.yml ) ); fi
- if [ ! -e "$DEV_LIB_PATH" ]; then git clone https://github.com/xwp/wp-dev-lib.git $DEV_LIB_PATH; fi
Expand Down
9 changes: 5 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@ module.exports = function( grunt ) {
build: {
src: [
'*.php',
'css/*',
'js/*',
'php/**',
'css/*.css',
'js/*.js',
'php/**/*.php',
'readme.txt',
'bower_components/select2/dist/js/select2.full*',
'bower_components/select2/dist/css/*'
'bower_components/select2/dist/css/*',
'bower_components/select2/dist/js/i18n/*'
],
dest: 'build',
expand: true,
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "xwp/wp-customize-posts",
"description": "Manage posts and postmeta via the Customizer.",
"version": "0.7.0",
"version": "0.8.0",
"type": "wordpress-plugin",
"keywords": [ "customizer", "customize", "posts", "postmeta", "preview", "featured-image", "page-template" ],
"homepage": "https://github.com/xwp/wp-customize-posts/",
Expand Down
115 changes: 113 additions & 2 deletions css/customize-posts.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,31 @@
padding: 15px 12px;
margin: 0;
overflow: hidden;

display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}

.customize-posts-panel-actions > .select2-container {
-webkit-box-flex: 10;
-webkit-flex-grow: 10;
-moz-box-flex: 10;
-ms-flex-positive: 10;
-ms-flex: 10;
flex-grow: 10;
}

.customize-posts-panel-actions .add-new-post-stub {
float: right;
margin-left: 5px;
-webkit-box-flex: 10;
-webkit-flex-grow: 10;
-moz-box-flex: 10;
-ms-flex-positive: 10;
-ms-flex: 10;
flex-grow: 1;
}

.customize-posts-panel-actions .add-new-post-stub:before {
Expand Down Expand Up @@ -122,6 +143,29 @@ body.customize-posts-content-editor-pane-open #customize-posts-content-editor-pa
visibility: inherit;
}

#customize-posts-content-editor-title {
position: absolute;
text-overflow: ellipsis;
width: 10%;
white-space: nowrap;
overflow: hidden;
font-size: 13px;
border-left: 1px solid #e5e5e5;
border-right: 1px solid #e5e5e5;
border-top: 1px solid #e5e5e5;
padding: 5px 10px;
margin-left: auto;
margin-right: auto;
top: -2px;
left: 0;
right: 0;
z-index: 1;
border-radius: 3px;
background: #f5f5f5;
font-weight: normal;
text-align: center;
}

#customize-posts-content-editor-pane .wp-editor-tools {
padding-top: 5px;
padding-right: 10px;
Expand Down Expand Up @@ -239,10 +283,10 @@ body.customize-posts-content-editor-pane-resize #customize-preview:before {
font-style: normal;
display: block;
margin-bottom: 0;
margin-top: -28px;
}

.customize-control-post_date .time-info-handle {
text-decoration: none;
font-size: 14px;
line-height: 24px;
margin-bottom: 4px;
Expand All @@ -254,6 +298,7 @@ body.customize-posts-content-editor-pane-resize #customize-preview:before {
-ms-user-select: none;
user-select: none;
color: #555;
margin-top: -28px;
}

.customize-control-post_date .time-info-handle.active .time-handle-arrow {
Expand Down Expand Up @@ -327,4 +372,70 @@ body.customize-posts-content-editor-pane-resize #customize-preview:before {
.customize-control-post_date select {
height: 40px;
}

#customize-posts-content-editor-title{
top: 9px;
}
}

/* Dropdown Pages */
.customize-posts-dropdown-pages-inputs {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}
.customize-posts-dropdown-pages-inputs > select {
-webkit-box-flex: 1000;
-webkit-flex-grow: 1000;
-moz-box-flex: 1000;
-ms-flex-positive: 1000;
-ms-flex: 1000;
flex-grow: 1000;
}
.customize-posts-dropdown-pages-inputs > select,
.customize-posts-dropdown-pages-inputs > .button-secondary.edit-page {
margin-right: 5px;
}
.customize-posts-dropdown-pages-inputs > button.button-secondary {
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-moz-box-flex: 1;
-ms-flex-positive: 1;
-ms-flex: 1;
flex-grow: 1;
padding-left: 5px;
padding-right: 5px;
}
.customize-posts-dropdown-pages-inputs > button:before {
display: inline-block;
position: relative;
font: normal 20px/1 dashicons;
vertical-align: middle;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.customize-posts-dropdown-pages-inputs > button.create-page:before {
content: "\f132";
}
.customize-posts-dropdown-pages-inputs > button.edit-page:before {
content: "\f464";
top: -2px;
}

.wp-core-ui .customize-posts-edit-nav-menu-item-original-object {
float: right;
margin-left: 5px;
margin-top: 5px;
}
.wp-core-ui .customize-posts-edit-nav-menu-item-original-object:before {
display: inline-block;
position: relative;
font: normal 20px/1 dashicons;
vertical-align: middle;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
content: "\f464";
top: -2px;
}
3 changes: 2 additions & 1 deletion customize-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
* Plugin Name: Customize Posts
* Description: Manage posts and postmeta via the Customizer. Works best in conjunction with the <a href="https://wordpress.org/plugins/customize-setting-validation/">Customize Setting Validation</a> plugin.
* Plugin URI: https://github.com/xwp/wp-customize-posts/
* Version: 0.7.0
* Version: 0.8.0
* Author: XWP
* Author URI: https://make.xwp.co/
* License: GPLv2+
* Text Domain: customize-posts
*
* Copyright (c) 2016 XWP (https://xwp.co/)
*
Expand Down
Loading

0 comments on commit ae18e14

Please # to comment.