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

Commit ae18e14

Browse files
authored
Merge pull request #291 from xwp/develop
Release 0.8.0
2 parents 35ce99b + 1eefc1a commit ae18e14

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+4091
-1089
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ php:
99
- 7.0
1010

1111
env:
12-
- WP_VERSION=4.5 WP_MULTISITE=0
12+
- WP_VERSION=4.5 WP_MULTISITE=1
13+
- WP_VERSION=latest WP_MULTISITE=0
1314
- WP_VERSION=trunk WP_MULTISITE=0
1415
- WP_VERSION=trunk WP_MULTISITE=1
1516

1617
install:
18+
- nvm install 4 && nvm use 4
1719
- export DEV_LIB_PATH=dev-lib
1820
- if [ ! -e "$DEV_LIB_PATH" ] && [ -L .travis.yml ]; then export DEV_LIB_PATH=$( dirname $( readlink .travis.yml ) ); fi
1921
- if [ ! -e "$DEV_LIB_PATH" ]; then git clone https://github.com/xwp/wp-dev-lib.git $DEV_LIB_PATH; fi

Gruntfile.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ module.exports = function( grunt ) {
6060
build: {
6161
src: [
6262
'*.php',
63-
'css/*',
64-
'js/*',
65-
'php/**',
63+
'css/*.css',
64+
'js/*.js',
65+
'php/**/*.php',
6666
'readme.txt',
6767
'bower_components/select2/dist/js/select2.full*',
68-
'bower_components/select2/dist/css/*'
68+
'bower_components/select2/dist/css/*',
69+
'bower_components/select2/dist/js/i18n/*'
6970
],
7071
dest: 'build',
7172
expand: true,

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "xwp/wp-customize-posts",
33
"description": "Manage posts and postmeta via the Customizer.",
4-
"version": "0.7.0",
4+
"version": "0.8.0",
55
"type": "wordpress-plugin",
66
"keywords": [ "customizer", "customize", "posts", "postmeta", "preview", "featured-image", "page-template" ],
77
"homepage": "https://github.com/xwp/wp-customize-posts/",

css/customize-posts.css

Lines changed: 113 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,31 @@
7474
padding: 15px 12px;
7575
margin: 0;
7676
overflow: hidden;
77+
78+
display: -webkit-box;
79+
display: -moz-box;
80+
display: -ms-flexbox;
81+
display: -webkit-flex;
82+
display: flex;
83+
}
84+
85+
.customize-posts-panel-actions > .select2-container {
86+
-webkit-box-flex: 10;
87+
-webkit-flex-grow: 10;
88+
-moz-box-flex: 10;
89+
-ms-flex-positive: 10;
90+
-ms-flex: 10;
91+
flex-grow: 10;
7792
}
7893

7994
.customize-posts-panel-actions .add-new-post-stub {
80-
float: right;
95+
margin-left: 5px;
96+
-webkit-box-flex: 10;
97+
-webkit-flex-grow: 10;
98+
-moz-box-flex: 10;
99+
-ms-flex-positive: 10;
100+
-ms-flex: 10;
101+
flex-grow: 1;
81102
}
82103

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

146+
#customize-posts-content-editor-title {
147+
position: absolute;
148+
text-overflow: ellipsis;
149+
width: 10%;
150+
white-space: nowrap;
151+
overflow: hidden;
152+
font-size: 13px;
153+
border-left: 1px solid #e5e5e5;
154+
border-right: 1px solid #e5e5e5;
155+
border-top: 1px solid #e5e5e5;
156+
padding: 5px 10px;
157+
margin-left: auto;
158+
margin-right: auto;
159+
top: -2px;
160+
left: 0;
161+
right: 0;
162+
z-index: 1;
163+
border-radius: 3px;
164+
background: #f5f5f5;
165+
font-weight: normal;
166+
text-align: center;
167+
}
168+
125169
#customize-posts-content-editor-pane .wp-editor-tools {
126170
padding-top: 5px;
127171
padding-right: 10px;
@@ -239,10 +283,10 @@ body.customize-posts-content-editor-pane-resize #customize-preview:before {
239283
font-style: normal;
240284
display: block;
241285
margin-bottom: 0;
242-
margin-top: -28px;
243286
}
244287

245288
.customize-control-post_date .time-info-handle {
289+
text-decoration: none;
246290
font-size: 14px;
247291
line-height: 24px;
248292
margin-bottom: 4px;
@@ -254,6 +298,7 @@ body.customize-posts-content-editor-pane-resize #customize-preview:before {
254298
-ms-user-select: none;
255299
user-select: none;
256300
color: #555;
301+
margin-top: -28px;
257302
}
258303

259304
.customize-control-post_date .time-info-handle.active .time-handle-arrow {
@@ -327,4 +372,70 @@ body.customize-posts-content-editor-pane-resize #customize-preview:before {
327372
.customize-control-post_date select {
328373
height: 40px;
329374
}
375+
376+
#customize-posts-content-editor-title{
377+
top: 9px;
378+
}
379+
}
380+
381+
/* Dropdown Pages */
382+
.customize-posts-dropdown-pages-inputs {
383+
display: -webkit-box;
384+
display: -moz-box;
385+
display: -ms-flexbox;
386+
display: -webkit-flex;
387+
display: flex;
388+
}
389+
.customize-posts-dropdown-pages-inputs > select {
390+
-webkit-box-flex: 1000;
391+
-webkit-flex-grow: 1000;
392+
-moz-box-flex: 1000;
393+
-ms-flex-positive: 1000;
394+
-ms-flex: 1000;
395+
flex-grow: 1000;
396+
}
397+
.customize-posts-dropdown-pages-inputs > select,
398+
.customize-posts-dropdown-pages-inputs > .button-secondary.edit-page {
399+
margin-right: 5px;
400+
}
401+
.customize-posts-dropdown-pages-inputs > button.button-secondary {
402+
-webkit-box-flex: 1;
403+
-webkit-flex-grow: 1;
404+
-moz-box-flex: 1;
405+
-ms-flex-positive: 1;
406+
-ms-flex: 1;
407+
flex-grow: 1;
408+
padding-left: 5px;
409+
padding-right: 5px;
410+
}
411+
.customize-posts-dropdown-pages-inputs > button:before {
412+
display: inline-block;
413+
position: relative;
414+
font: normal 20px/1 dashicons;
415+
vertical-align: middle;
416+
-webkit-font-smoothing: antialiased;
417+
-moz-osx-font-smoothing: grayscale;
418+
}
419+
.customize-posts-dropdown-pages-inputs > button.create-page:before {
420+
content: "\f132";
421+
}
422+
.customize-posts-dropdown-pages-inputs > button.edit-page:before {
423+
content: "\f464";
424+
top: -2px;
425+
}
426+
427+
.wp-core-ui .customize-posts-edit-nav-menu-item-original-object {
428+
float: right;
429+
margin-left: 5px;
430+
margin-top: 5px;
431+
}
432+
.wp-core-ui .customize-posts-edit-nav-menu-item-original-object:before {
433+
display: inline-block;
434+
position: relative;
435+
font: normal 20px/1 dashicons;
436+
vertical-align: middle;
437+
-webkit-font-smoothing: antialiased;
438+
-moz-osx-font-smoothing: grayscale;
439+
content: "\f464";
440+
top: -2px;
330441
}

customize-posts.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
* Plugin Name: Customize Posts
44
* 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.
55
* Plugin URI: https://github.com/xwp/wp-customize-posts/
6-
* Version: 0.7.0
6+
* Version: 0.8.0
77
* Author: XWP
88
* Author URI: https://make.xwp.co/
99
* License: GPLv2+
10+
* Text Domain: customize-posts
1011
*
1112
* Copyright (c) 2016 XWP (https://xwp.co/)
1213
*

0 commit comments

Comments
 (0)