wp++
No files matched your search
@@ -45,6 +45,10 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
|||||||
|
|
||||||
<div class="changelog point-releases">
|
<div class="changelog point-releases">
|
||||||
<h3><?php _e( 'Maintenance and Security Releases' ); ?></h3>
|
<h3><?php _e( 'Maintenance and Security Releases' ); ?></h3>
|
||||||
|
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed %2$s bug.',
|
||||||
|
'<strong>Version %1$s</strong> addressed %2$s bugs.', 47 ), '4.7.4', number_format_i18n( 47 ) ); ?>
|
||||||
|
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_4.7.4' ); ?>
|
||||||
|
</p>
|
||||||
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
|
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
|
||||||
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 39 ), '4.7.3', number_format_i18n( 39 ) ); ?>
|
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 39 ), '4.7.3', number_format_i18n( 39 ) ); ?>
|
||||||
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_4.7.3' ); ?>
|
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_4.7.3' ); ?>
|
||||||
|
|||||||
@@ -294,6 +294,11 @@ body {
|
|||||||
transition: 0.18s transform cubic-bezier(0.645, 0.045, 0.355, 1), 0.18s -webkit-transform cubic-bezier(0.645, 0.045, 0.355, 1); /* easeInOutCubic */
|
transition: 0.18s transform cubic-bezier(0.645, 0.045, 0.355, 1), 0.18s -webkit-transform cubic-bezier(0.645, 0.045, 0.355, 1); /* easeInOutCubic */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#customize-theme-controls .customize-pane-child.skip-transition {
|
||||||
|
-webkit-transition: none;
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
|
|
||||||
#customize-info,
|
#customize-info,
|
||||||
#customize-theme-controls .customize-pane-parent {
|
#customize-theme-controls .customize-pane-parent {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
#customize-controls .customize-info .customize-section-description,#customize-controls .customize-info.section-meta{margin-bottom:15px}body{overflow:hidden;-webkit-text-size-adjust:100%}.customize-controls-close,.widget-control-actions a{text-decoration:none}#customize-controls h3{font-size:14px}#customize-controls img{max-width:100%}#customize-controls .submit{text-align:center}#customize-controls .description{color:#555d66}#customize-header-actions .button-primary{float:left;margin-top:9px}#customize-header-actions .spinner{margin-top:13px;margin-left:4px}.saving #customize-header-actions .spinner{visibility:visible}#customize-header-actions{border-bottom:1px solid #ddd}#customize-controls .wp-full-overlay-sidebar-content{overflow-y:auto;overflow-x:hidden}#customize-controls .customize-info{border:none;border-bottom:1px solid #ddd;margin-bottom:15px}#customize-controls .customize-info.is-in-view,#customize-controls .customize-section-title.is-in-view{position:absolute;z-index:9;width:100%;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 0 rgba(0,0,0,.1)}#customize-controls .customize-section-title.is-in-view{margin-top:0}#customize-controls .customize-info.is-in-view+.accordion-section{margin-top:15px}#customize-controls .customize-info.is-sticky,#customize-controls .customize-section-title.is-sticky{position:fixed;top:46px}#customize-controls .customize-info .accordion-section-title{background:#fff;color:#555d66;border-right:none;border-left:none;border-bottom:none;cursor:default}#customize-controls .customize-info .accordion-section-title:focus:after,#customize-controls .customize-info .accordion-section-title:hover:after,#customize-controls .customize-info.open .accordion-section-title:after{color:#32373c}#customize-controls .customize-info .accordion-section-title:after{display:none}#customize-controls .customize-info .preview-notice{font-size:13px;line-height:24px}#customize-controls .customize-info .panel-title,#customize-controls .customize-pane-child .customize-section-title h3,#customize-controls .customize-pane-child h3.customize-section-title{font-size:20px;font-weight:200;line-height:26px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-section-title span.customize-action{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-info .customize-help-toggle{position:absolute;top:4px;left:1px;padding:20px 10px 10px 20px;width:20px;height:20px;cursor:pointer;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;background:0 0;color:#555d66;border:none}#customize-controls .customize-info .customize-help-toggle:before{position:absolute;top:5px;right:6px}#customize-controls .customize-info .customize-help-toggle:focus,#customize-controls .customize-info .customize-help-toggle:hover,#customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}#customize-controls .customize-info .customize-panel-description,#customize-controls .customize-info .customize-section-description,#customize-controls .no-widget-areas-rendered-notice{color:#555d66;display:none;background:#fff;padding:12px 15px;border-top:1px solid #ddd}#customize-controls .customize-info .customize-panel-description.open+.no-widget-areas-rendered-notice{border-top:none}#customize-controls .customize-info .customize-panel-description p:first-child,#customize-controls .customize-info .customize-section-description p:first-child{margin-top:0}#customize-controls .customize-info .customize-panel-description p:last-child,#customize-controls .customize-info .customize-section-description p:last-child{margin-bottom:0}#customize-controls .current-panel .control-section>h3.accordion-section-title{padding-left:30px}#customize-theme-controls .control-section{border:none}#customize-theme-controls .accordion-section-title{color:#555d66;background-color:#fff;border-bottom:1px solid #ddd;border-right:4px solid #fff;-webkit-transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}#customize-controls #customize-theme-controls .customize-themes-panel .accordion-section-title{color:#555;background-color:#fff;border-right:4px solid #fff}#customize-theme-controls .accordion-section-title:after{content:"\f341";color:#a0a5aa}#customize-theme-controls .accordion-section-content{color:#555d66;background:0 0;position:absolute;top:0;right:100%;width:100%;margin:0;padding:12px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#customize-controls .control-section .accordion-section-title:focus,#customize-controls .control-section .accordion-section-title:hover,#customize-controls .control-section.open .accordion-section-title,#customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;background:#f3f3f5;border-right-color:#0073aa}#accordion-section-themes+.control-sLine truncated
|
#customize-controls .customize-info .customize-section-description,#customize-controls .customize-info.section-meta{margin-bottom:15px}body{overflow:hidden;-webkit-text-size-adjust:100%}.customize-controls-close,.widget-control-actions a{text-decoration:none}#customize-controls h3{font-size:14px}#customize-controls img{max-width:100%}#customize-controls .submit{text-align:center}#customize-controls .description{color:#555d66}#customize-header-actions .button-primary{float:left;margin-top:9px}#customize-header-actions .spinner{margin-top:13px;margin-left:4px}.saving #customize-header-actions .spinner{visibility:visible}#customize-header-actions{border-bottom:1px solid #ddd}#customize-controls .wp-full-overlay-sidebar-content{overflow-y:auto;overflow-x:hidden}#customize-controls .customize-info{border:none;border-bottom:1px solid #ddd;margin-bottom:15px}#customize-controls .customize-info.is-in-view,#customize-controls .customize-section-title.is-in-view{position:absolute;z-index:9;width:100%;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 0 rgba(0,0,0,.1)}#customize-controls .customize-section-title.is-in-view{margin-top:0}#customize-controls .customize-info.is-in-view+.accordion-section{margin-top:15px}#customize-controls .customize-info.is-sticky,#customize-controls .customize-section-title.is-sticky{position:fixed;top:46px}#customize-controls .customize-info .accordion-section-title{background:#fff;color:#555d66;border-right:none;border-left:none;border-bottom:none;cursor:default}#customize-controls .customize-info .accordion-section-title:focus:after,#customize-controls .customize-info .accordion-section-title:hover:after,#customize-controls .customize-info.open .accordion-section-title:after{color:#32373c}#customize-controls .customize-info .accordion-section-title:after{display:none}#customize-controls .customize-info .preview-notice{font-size:13px;line-height:24px}#customize-controls .customize-info .panel-title,#customize-controls .customize-pane-child .customize-section-title h3,#customize-controls .customize-pane-child h3.customize-section-title{font-size:20px;font-weight:200;line-height:26px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-section-title span.customize-action{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-info .customize-help-toggle{position:absolute;top:4px;left:1px;padding:20px 10px 10px 20px;width:20px;height:20px;cursor:pointer;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;background:0 0;color:#555d66;border:none}#customize-controls .customize-info .customize-help-toggle:before{position:absolute;top:5px;right:6px}#customize-controls .customize-info .customize-help-toggle:focus,#customize-controls .customize-info .customize-help-toggle:hover,#customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}#customize-controls .customize-info .customize-panel-description,#customize-controls .customize-info .customize-section-description,#customize-controls .no-widget-areas-rendered-notice{color:#555d66;display:none;background:#fff;padding:12px 15px;border-top:1px solid #ddd}#customize-controls .customize-info .customize-panel-description.open+.no-widget-areas-rendered-notice{border-top:none}#customize-controls .customize-info .customize-panel-description p:first-child,#customize-controls .customize-info .customize-section-description p:first-child{margin-top:0}#customize-controls .customize-info .customize-panel-description p:last-child,#customize-controls .customize-info .customize-section-description p:last-child{margin-bottom:0}#customize-controls .current-panel .control-section>h3.accordion-section-title{padding-left:30px}#customize-theme-controls .control-section{border:none}#customize-theme-controls .accordion-section-title{color:#555d66;background-color:#fff;border-bottom:1px solid #ddd;border-right:4px solid #fff;-webkit-transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}#customize-controls #customize-theme-controls .customize-themes-panel .accordion-section-title{color:#555;background-color:#fff;border-right:4px solid #fff}#customize-theme-controls .accordion-section-title:after{content:"\f341";color:#a0a5aa}#customize-theme-controls .accordion-section-content{color:#555d66;background:0 0;position:absolute;top:0;right:100%;width:100%;margin:0;padding:12px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#customize-controls .control-section .accordion-section-title:focus,#customize-controls .control-section .accordion-section-title:hover,#customize-controls .control-section.open .accordion-section-title,#customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;background:#f3f3f5;border-right-color:#0073aa}#accordion-section-themes+.control-sLine truncated
|
||||||
@@ -294,6 +294,11 @@ body {
|
|||||||
transition: 0.18s transform cubic-bezier(0.645, 0.045, 0.355, 1), 0.18s -webkit-transform cubic-bezier(0.645, 0.045, 0.355, 1); /* easeInOutCubic */
|
transition: 0.18s transform cubic-bezier(0.645, 0.045, 0.355, 1), 0.18s -webkit-transform cubic-bezier(0.645, 0.045, 0.355, 1); /* easeInOutCubic */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#customize-theme-controls .customize-pane-child.skip-transition {
|
||||||
|
-webkit-transition: none;
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
|
|
||||||
#customize-info,
|
#customize-info,
|
||||||
#customize-theme-controls .customize-pane-parent {
|
#customize-theme-controls .customize-pane-parent {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
#customize-controls .customize-info .customize-section-description,#customize-controls .customize-info.section-meta{margin-bottom:15px}body{overflow:hidden;-webkit-text-size-adjust:100%}.customize-controls-close,.widget-control-actions a{text-decoration:none}#customize-controls h3{font-size:14px}#customize-controls img{max-width:100%}#customize-controls .submit{text-align:center}#customize-controls .description{color:#555d66}#customize-header-actions .button-primary{float:right;margin-top:9px}#customize-header-actions .spinner{margin-top:13px;margin-right:4px}.saving #customize-header-actions .spinner{visibility:visible}#customize-header-actions{border-bottom:1px solid #ddd}#customize-controls .wp-full-overlay-sidebar-content{overflow-y:auto;overflow-x:hidden}#customize-controls .customize-info{border:none;border-bottom:1px solid #ddd;margin-bottom:15px}#customize-controls .customize-info.is-in-view,#customize-controls .customize-section-title.is-in-view{position:absolute;z-index:9;width:100%;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 0 rgba(0,0,0,.1)}#customize-controls .customize-section-title.is-in-view{margin-top:0}#customize-controls .customize-info.is-in-view+.accordion-section{margin-top:15px}#customize-controls .customize-info.is-sticky,#customize-controls .customize-section-title.is-sticky{position:fixed;top:46px}#customize-controls .customize-info .accordion-section-title{background:#fff;color:#555d66;border-left:none;border-right:none;border-bottom:none;cursor:default}#customize-controls .customize-info .accordion-section-title:focus:after,#customize-controls .customize-info .accordion-section-title:hover:after,#customize-controls .customize-info.open .accordion-section-title:after{color:#32373c}#customize-controls .customize-info .accordion-section-title:after{display:none}#customize-controls .customize-info .preview-notice{font-size:13px;line-height:24px}#customize-controls .customize-info .panel-title,#customize-controls .customize-pane-child .customize-section-title h3,#customize-controls .customize-pane-child h3.customize-section-title{font-size:20px;font-weight:200;line-height:26px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-section-title span.customize-action{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-info .customize-help-toggle{position:absolute;top:4px;right:1px;padding:20px 20px 10px 10px;width:20px;height:20px;cursor:pointer;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;background:0 0;color:#555d66;border:none}#customize-controls .customize-info .customize-help-toggle:before{position:absolute;top:5px;left:6px}#customize-controls .customize-info .customize-help-toggle:focus,#customize-controls .customize-info .customize-help-toggle:hover,#customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}#customize-controls .customize-info .customize-panel-description,#customize-controls .customize-info .customize-section-description,#customize-controls .no-widget-areas-rendered-notice{color:#555d66;display:none;background:#fff;padding:12px 15px;border-top:1px solid #ddd}#customize-controls .customize-info .customize-panel-description.open+.no-widget-areas-rendered-notice{border-top:none}#customize-controls .customize-info .customize-panel-description p:first-child,#customize-controls .customize-info .customize-section-description p:first-child{margin-top:0}#customize-controls .customize-info .customize-panel-description p:last-child,#customize-controls .customize-info .customize-section-description p:last-child{margin-bottom:0}#customize-controls .current-panel .control-section>h3.accordion-section-title{padding-right:30px}#customize-theme-controls .control-section{border:none}#customize-theme-controls .accordion-section-title{color:#555d66;background-color:#fff;border-bottom:1px solid #ddd;border-left:4px solid #fff;-webkit-transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}#customize-controls #customize-theme-controls .customize-themes-panel .accordion-section-title{color:#555;background-color:#fff;border-left:4px solid #fff}#customize-theme-controls .accordion-section-title:after{content:"\f345";color:#a0a5aa}#customize-theme-controls .accordion-section-content{color:#555d66;background:0 0;position:absolute;top:0;left:100%;width:100%;margin:0;padding:12px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#customize-controls .control-section .accordion-section-title:focus,#customize-controls .control-section .accordion-section-title:hover,#customize-controls .control-section.open .accordion-section-title,#customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;background:#f3f3f5;border-left-color:#0073aa}#accordion-section-themes+.control-seLine truncated
|
#customize-controls .customize-info .customize-section-description,#customize-controls .customize-info.section-meta{margin-bottom:15px}body{overflow:hidden;-webkit-text-size-adjust:100%}.customize-controls-close,.widget-control-actions a{text-decoration:none}#customize-controls h3{font-size:14px}#customize-controls img{max-width:100%}#customize-controls .submit{text-align:center}#customize-controls .description{color:#555d66}#customize-header-actions .button-primary{float:right;margin-top:9px}#customize-header-actions .spinner{margin-top:13px;margin-right:4px}.saving #customize-header-actions .spinner{visibility:visible}#customize-header-actions{border-bottom:1px solid #ddd}#customize-controls .wp-full-overlay-sidebar-content{overflow-y:auto;overflow-x:hidden}#customize-controls .customize-info{border:none;border-bottom:1px solid #ddd;margin-bottom:15px}#customize-controls .customize-info.is-in-view,#customize-controls .customize-section-title.is-in-view{position:absolute;z-index:9;width:100%;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 0 rgba(0,0,0,.1)}#customize-controls .customize-section-title.is-in-view{margin-top:0}#customize-controls .customize-info.is-in-view+.accordion-section{margin-top:15px}#customize-controls .customize-info.is-sticky,#customize-controls .customize-section-title.is-sticky{position:fixed;top:46px}#customize-controls .customize-info .accordion-section-title{background:#fff;color:#555d66;border-left:none;border-right:none;border-bottom:none;cursor:default}#customize-controls .customize-info .accordion-section-title:focus:after,#customize-controls .customize-info .accordion-section-title:hover:after,#customize-controls .customize-info.open .accordion-section-title:after{color:#32373c}#customize-controls .customize-info .accordion-section-title:after{display:none}#customize-controls .customize-info .preview-notice{font-size:13px;line-height:24px}#customize-controls .customize-info .panel-title,#customize-controls .customize-pane-child .customize-section-title h3,#customize-controls .customize-pane-child h3.customize-section-title{font-size:20px;font-weight:200;line-height:26px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-section-title span.customize-action{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-info .customize-help-toggle{position:absolute;top:4px;right:1px;padding:20px 20px 10px 10px;width:20px;height:20px;cursor:pointer;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;background:0 0;color:#555d66;border:none}#customize-controls .customize-info .customize-help-toggle:before{position:absolute;top:5px;left:6px}#customize-controls .customize-info .customize-help-toggle:focus,#customize-controls .customize-info .customize-help-toggle:hover,#customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}#customize-controls .customize-info .customize-panel-description,#customize-controls .customize-info .customize-section-description,#customize-controls .no-widget-areas-rendered-notice{color:#555d66;display:none;background:#fff;padding:12px 15px;border-top:1px solid #ddd}#customize-controls .customize-info .customize-panel-description.open+.no-widget-areas-rendered-notice{border-top:none}#customize-controls .customize-info .customize-panel-description p:first-child,#customize-controls .customize-info .customize-section-description p:first-child{margin-top:0}#customize-controls .customize-info .customize-panel-description p:last-child,#customize-controls .customize-info .customize-section-description p:last-child{margin-bottom:0}#customize-controls .current-panel .control-section>h3.accordion-section-title{padding-right:30px}#customize-theme-controls .control-section{border:none}#customize-theme-controls .accordion-section-title{color:#555d66;background-color:#fff;border-bottom:1px solid #ddd;border-left:4px solid #fff;-webkit-transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}#customize-controls #customize-theme-controls .customize-themes-panel .accordion-section-title{color:#555;background-color:#fff;border-left:4px solid #fff}#customize-theme-controls .accordion-section-title:after{content:"\f345";color:#a0a5aa}#customize-theme-controls .accordion-section-content{color:#555d66;background:0 0;position:absolute;top:0;left:100%;width:100%;margin:0;padding:12px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#customize-controls .control-section .accordion-section-title:focus,#customize-controls .control-section .accordion-section-title:hover,#customize-controls .control-section.open .accordion-section-title,#customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;background:#f3f3f5;border-left-color:#0073aa}#accordion-section-themes+.control-seLine truncated
|
||||||
@@ -161,6 +161,7 @@
|
|||||||
outline: none;
|
outline: none;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after {
|
.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after {
|
||||||
@@ -532,6 +533,7 @@
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#available-menu-items .accordion-section-title .no-items,
|
#available-menu-items .accordion-section-title .no-items,
|
||||||
@@ -623,6 +625,7 @@
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#available-menu-items .menu-item-handle .item-add:focus {
|
#available-menu-items .menu-item-handle .item-add:focus {
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
#customize-theme-controls #accordion-section-menu_locations{position:relative;margin-bottom:15px}#customize-theme-controls #accordion-section-menu_locations>.accordion-section-title{border-bottom-color:#ddd}.menu-in-location,.menu-in-locations{display:block;font-weight:600;font-size:10px}#customize-controls .control-section .accordion-section-title:focus .menu-in-location,#customize-controls .control-section .accordion-section-title:hover .menu-in-location,#customize-controls .theme-location-set{color:#555}.customize-control-nav_menu_location .edit-menu{margin-right:6px;vertical-align:middle;line-height:28px;color:#0073aa;text-decoration:underline}.customize-control-nav_menu_location .edit-menu:active,.customize-control-nav_menu_location .edit-menu:hover{color:#00a0d2}.customize-control-nav_menu_location .edit-menu:focus{color:#124964}.wp-customizer .menu-item-bar .menu-item-handle,.wp-customizer .menu-item-settings,.wp-customizer .menu-item-settings .description-thin{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-customizer .menu-item-bar{margin:0}.wp-customizer .menu-item-bar .menu-item-handle{width:100%;background:#fff}.wp-customizer .menu-item-handle .item-title{margin-left:0}.wp-customizer .menu-item-handle .item-type{padding:1px 5px 0 21px;float:left;text-align:left}.wp-customizer .menu-item-handle:hover{z-index:8}.customize-control-nav_menu_item.has-notifications .menu-item-handle{border-right:4px solid #00a0d2}.wp-customizer .menu-item-settings{max-width:100%;overflow:hidden;z-index:8;padding:10px;background:#eee;border:1px solid #999;border-top:none}.wp-customizer .menu-item-settings .description-thin{width:100%;height:auto;margin:0 0 8px}.wp-customizer .menu-item-settings input[type=text]{width:100%}.wp-customizer .menu-item-settings .submitbox{margin:0;padding:0}.wp-customizer .menu-item-settings .link-to-original{padding:5px 0;border:none;font-style:normal;margin:0;width:100%}.wp-customizer .menu-item .submitbox .submitdelete{float:right;margin:6px 0 0;padding:0;cursor:pointer}.menu-item-reorder-nav{display:none;background-color:#fff;position:absolute;top:0;left:0}.menus-move-left:before{content:"\f345"}.menus-move-right:before{content:"\f341"}.reordering .menu-item .item-controls,.reordering .menu-item .item-type{display:none}.reordering .menu-item-reorder-nav{display:block}.customize-control input.menu-name-field{width:100%;margin:12px 0}.wp-customizer .menu-item .item-edit{position:absolute;left:-19px;top:2px;display:block;width:30px;height:38px;margin-left:0!important;-webkit-box-shadow:none;box-shadow:none;outline:0;overflow:hidden;cursor:pointer}.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after{content:"\f142"}.wp-customizer .menu-item-settings p.description{font-style:normal}.wp-customizer .menu-settings dl{margin:12px 0 0;padding:0}.wp-customizer .menu-settings .checkbox-input{margin-top:8px}.wp-customizer .menu-settings .menu-theme-locations{border-top:1px solid #ccc}.wp-customizer .menu-settings{margin-top:36px;border-top:none}.menu-settings .customize-control-checkbox label{line-height:1}.menu-settings .customize-control.customize-control-checkbox{margin-bottom:8px}.customize-control-menu{margin-top:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle{color:#555}.customize-screen-options-toggle{background:0 0;border:none;color:#555;cursor:pointer;margin:0;padding:20px;position:absolute;left:0;top:30px}#customize-controls .customize-info .customize-help-toggle{padding:20px}#customize-controls .customize-info .customize-help-toggle:before{padding:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.active-menu-screen-options .customize-screen-options-toggle,.customize-screen-options-toggle:active,.customize-screen-options-toggle:focus,.customize-screen-options-toggle:hover{color:#0073aa}#customize-controls .customize-info .customize-help-toggle:focus,.customize-screen-options-toggle:focus{outline:0}.customize-screen-options-toggle:before{-moz-osx-font-smoothing:grayscale;border:none;content:"\f111";display:block;font:18px/1 dashicons;padding:5px;text-align:center;text-decoration:none!important;text-indent:0;right:6px;position:absolute;top:6px}#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before{-webkit-border-radius:100%;border-radius:100%}.wp-customizer #screen-options-wrap{display:none;background:#fff;border-top:1px solid #ddd;padding:4px 15px 15px}.wp-customizer .metabox-prefs label{display:block;padding-left:0;line-height:30px}.wp-customizer .toggle-indicator{display:inline-block;font-size:20px;line-height:1;text-indent:-1px}.rtl .wp-customizer .toggle-indicator{text-inLine truncated
|
#customize-theme-controls #accordion-section-menu_locations{position:relative;margin-bottom:15px}#customize-theme-controls #accordion-section-menu_locations>.accordion-section-title{border-bottom-color:#ddd}.menu-in-location,.menu-in-locations{display:block;font-weight:600;font-size:10px}#customize-controls .control-section .accordion-section-title:focus .menu-in-location,#customize-controls .control-section .accordion-section-title:hover .menu-in-location,#customize-controls .theme-location-set{color:#555}.customize-control-nav_menu_location .edit-menu{margin-right:6px;vertical-align:middle;line-height:28px;color:#0073aa;text-decoration:underline}.customize-control-nav_menu_location .edit-menu:active,.customize-control-nav_menu_location .edit-menu:hover{color:#00a0d2}.customize-control-nav_menu_location .edit-menu:focus{color:#124964}.wp-customizer .menu-item-bar .menu-item-handle,.wp-customizer .menu-item-settings,.wp-customizer .menu-item-settings .description-thin{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-customizer .menu-item-bar{margin:0}.wp-customizer .menu-item-bar .menu-item-handle{width:100%;background:#fff}.wp-customizer .menu-item-handle .item-title{margin-left:0}.wp-customizer .menu-item-handle .item-type{padding:1px 5px 0 21px;float:left;text-align:left}.wp-customizer .menu-item-handle:hover{z-index:8}.customize-control-nav_menu_item.has-notifications .menu-item-handle{border-right:4px solid #00a0d2}.wp-customizer .menu-item-settings{max-width:100%;overflow:hidden;z-index:8;padding:10px;background:#eee;border:1px solid #999;border-top:none}.wp-customizer .menu-item-settings .description-thin{width:100%;height:auto;margin:0 0 8px}.wp-customizer .menu-item-settings input[type=text]{width:100%}.wp-customizer .menu-item-settings .submitbox{margin:0;padding:0}.wp-customizer .menu-item-settings .link-to-original{padding:5px 0;border:none;font-style:normal;margin:0;width:100%}.wp-customizer .menu-item .submitbox .submitdelete{float:right;margin:6px 0 0;padding:0;cursor:pointer}.menu-item-reorder-nav{display:none;background-color:#fff;position:absolute;top:0;left:0}.menus-move-left:before{content:"\f345"}.menus-move-right:before{content:"\f341"}.reordering .menu-item .item-controls,.reordering .menu-item .item-type{display:none}.reordering .menu-item-reorder-nav{display:block}.customize-control input.menu-name-field{width:100%;margin:12px 0}.wp-customizer .menu-item .item-edit{position:absolute;left:-19px;top:2px;display:block;width:30px;height:38px;margin-left:0!important;-webkit-box-shadow:none;box-shadow:none;outline:0;overflow:hidden;cursor:pointer;text-align:center}.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after{content:"\f142"}.wp-customizer .menu-item-settings p.description{font-style:normal}.wp-customizer .menu-settings dl{margin:12px 0 0;padding:0}.wp-customizer .menu-settings .checkbox-input{margin-top:8px}.wp-customizer .menu-settings .menu-theme-locations{border-top:1px solid #ccc}.wp-customizer .menu-settings{margin-top:36px;border-top:none}.menu-settings .customize-control-checkbox label{line-height:1}.menu-settings .customize-control.customize-control-checkbox{margin-bottom:8px}.customize-control-menu{margin-top:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle{color:#555}.customize-screen-options-toggle{background:0 0;border:none;color:#555;cursor:pointer;margin:0;padding:20px;position:absolute;left:0;top:30px}#customize-controls .customize-info .customize-help-toggle{padding:20px}#customize-controls .customize-info .customize-help-toggle:before{padding:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.active-menu-screen-options .customize-screen-options-toggle,.customize-screen-options-toggle:active,.customize-screen-options-toggle:focus,.customize-screen-options-toggle:hover{color:#0073aa}#customize-controls .customize-info .customize-help-toggle:focus,.customize-screen-options-toggle:focus{outline:0}.customize-screen-options-toggle:before{-moz-osx-font-smoothing:grayscale;border:none;content:"\f111";display:block;font:18px/1 dashicons;padding:5px;text-align:center;text-decoration:none!important;text-indent:0;right:6px;position:absolute;top:6px}#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before{-webkit-border-radius:100%;border-radius:100%}.wp-customizer #screen-options-wrap{display:none;background:#fff;border-top:1px solid #ddd;padding:4px 15px 15px}.wp-customizer .metabox-prefs label{display:block;padding-left:0;line-height:30px}.wp-customizer .toggle-indicator{display:inline-block;font-size:20px;line-height:1;text-indent:-1px}.rtl .wp-customizer .toggleLine truncated
|
||||||
@@ -161,6 +161,7 @@
|
|||||||
outline: none;
|
outline: none;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after {
|
.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after {
|
||||||
@@ -532,6 +533,7 @@
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#available-menu-items .accordion-section-title .no-items,
|
#available-menu-items .accordion-section-title .no-items,
|
||||||
@@ -623,6 +625,7 @@
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#available-menu-items .menu-item-handle .item-add:focus {
|
#available-menu-items .menu-item-handle .item-add:focus {
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
#customize-theme-controls #accordion-section-menu_locations{position:relative;margin-bottom:15px}#customize-theme-controls #accordion-section-menu_locations>.accordion-section-title{border-bottom-color:#ddd}.menu-in-location,.menu-in-locations{display:block;font-weight:600;font-size:10px}#customize-controls .control-section .accordion-section-title:focus .menu-in-location,#customize-controls .control-section .accordion-section-title:hover .menu-in-location,#customize-controls .theme-location-set{color:#555}.customize-control-nav_menu_location .edit-menu{margin-left:6px;vertical-align:middle;line-height:28px;color:#0073aa;text-decoration:underline}.customize-control-nav_menu_location .edit-menu:active,.customize-control-nav_menu_location .edit-menu:hover{color:#00a0d2}.customize-control-nav_menu_location .edit-menu:focus{color:#124964}.wp-customizer .menu-item-bar .menu-item-handle,.wp-customizer .menu-item-settings,.wp-customizer .menu-item-settings .description-thin{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-customizer .menu-item-bar{margin:0}.wp-customizer .menu-item-bar .menu-item-handle{width:100%;background:#fff}.wp-customizer .menu-item-handle .item-title{margin-right:0}.wp-customizer .menu-item-handle .item-type{padding:1px 21px 0 5px;float:right;text-align:right}.wp-customizer .menu-item-handle:hover{z-index:8}.customize-control-nav_menu_item.has-notifications .menu-item-handle{border-left:4px solid #00a0d2}.wp-customizer .menu-item-settings{max-width:100%;overflow:hidden;z-index:8;padding:10px;background:#eee;border:1px solid #999;border-top:none}.wp-customizer .menu-item-settings .description-thin{width:100%;height:auto;margin:0 0 8px}.wp-customizer .menu-item-settings input[type=text]{width:100%}.wp-customizer .menu-item-settings .submitbox{margin:0;padding:0}.wp-customizer .menu-item-settings .link-to-original{padding:5px 0;border:none;font-style:normal;margin:0;width:100%}.wp-customizer .menu-item .submitbox .submitdelete{float:left;margin:6px 0 0;padding:0;cursor:pointer}.menu-item-reorder-nav{display:none;background-color:#fff;position:absolute;top:0;right:0}.menus-move-left:before{content:"\f341"}.menus-move-right:before{content:"\f345"}.reordering .menu-item .item-controls,.reordering .menu-item .item-type{display:none}.reordering .menu-item-reorder-nav{display:block}.customize-control input.menu-name-field{width:100%;margin:12px 0}.wp-customizer .menu-item .item-edit{position:absolute;right:-19px;top:2px;display:block;width:30px;height:38px;margin-right:0!important;-webkit-box-shadow:none;box-shadow:none;outline:0;overflow:hidden;cursor:pointer}.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after{content:"\f142"}.wp-customizer .menu-item-settings p.description{font-style:normal}.wp-customizer .menu-settings dl{margin:12px 0 0;padding:0}.wp-customizer .menu-settings .checkbox-input{margin-top:8px}.wp-customizer .menu-settings .menu-theme-locations{border-top:1px solid #ccc}.wp-customizer .menu-settings{margin-top:36px;border-top:none}.menu-settings .customize-control-checkbox label{line-height:1}.menu-settings .customize-control.customize-control-checkbox{margin-bottom:8px}.customize-control-menu{margin-top:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle{color:#555}.customize-screen-options-toggle{background:0 0;border:none;color:#555;cursor:pointer;margin:0;padding:20px;position:absolute;right:0;top:30px}#customize-controls .customize-info .customize-help-toggle{padding:20px}#customize-controls .customize-info .customize-help-toggle:before{padding:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.active-menu-screen-options .customize-screen-options-toggle,.customize-screen-options-toggle:active,.customize-screen-options-toggle:focus,.customize-screen-options-toggle:hover{color:#0073aa}#customize-controls .customize-info .customize-help-toggle:focus,.customize-screen-options-toggle:focus{outline:0}.customize-screen-options-toggle:before{-moz-osx-font-smoothing:grayscale;border:none;content:"\f111";display:block;font:18px/1 dashicons;padding:5px;text-align:center;text-decoration:none!important;text-indent:0;left:6px;position:absolute;top:6px}#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before{-webkit-border-radius:100%;border-radius:100%}.wp-customizer #screen-options-wrap{display:none;background:#fff;border-top:1px solid #ddd;padding:4px 15px 15px}.wp-customizer .metabox-prefs label{display:block;padding-right:0;line-height:30px}.wp-customizer .toggle-indicator{display:inline-block;font-size:20px;line-height:1;text-indent:-1px}.rtl .wp-customizer .toggle-indicator{texLine truncated
|
#customize-theme-controls #accordion-section-menu_locations{position:relative;margin-bottom:15px}#customize-theme-controls #accordion-section-menu_locations>.accordion-section-title{border-bottom-color:#ddd}.menu-in-location,.menu-in-locations{display:block;font-weight:600;font-size:10px}#customize-controls .control-section .accordion-section-title:focus .menu-in-location,#customize-controls .control-section .accordion-section-title:hover .menu-in-location,#customize-controls .theme-location-set{color:#555}.customize-control-nav_menu_location .edit-menu{margin-left:6px;vertical-align:middle;line-height:28px;color:#0073aa;text-decoration:underline}.customize-control-nav_menu_location .edit-menu:active,.customize-control-nav_menu_location .edit-menu:hover{color:#00a0d2}.customize-control-nav_menu_location .edit-menu:focus{color:#124964}.wp-customizer .menu-item-bar .menu-item-handle,.wp-customizer .menu-item-settings,.wp-customizer .menu-item-settings .description-thin{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-customizer .menu-item-bar{margin:0}.wp-customizer .menu-item-bar .menu-item-handle{width:100%;background:#fff}.wp-customizer .menu-item-handle .item-title{margin-right:0}.wp-customizer .menu-item-handle .item-type{padding:1px 21px 0 5px;float:right;text-align:right}.wp-customizer .menu-item-handle:hover{z-index:8}.customize-control-nav_menu_item.has-notifications .menu-item-handle{border-left:4px solid #00a0d2}.wp-customizer .menu-item-settings{max-width:100%;overflow:hidden;z-index:8;padding:10px;background:#eee;border:1px solid #999;border-top:none}.wp-customizer .menu-item-settings .description-thin{width:100%;height:auto;margin:0 0 8px}.wp-customizer .menu-item-settings input[type=text]{width:100%}.wp-customizer .menu-item-settings .submitbox{margin:0;padding:0}.wp-customizer .menu-item-settings .link-to-original{padding:5px 0;border:none;font-style:normal;margin:0;width:100%}.wp-customizer .menu-item .submitbox .submitdelete{float:left;margin:6px 0 0;padding:0;cursor:pointer}.menu-item-reorder-nav{display:none;background-color:#fff;position:absolute;top:0;right:0}.menus-move-left:before{content:"\f341"}.menus-move-right:before{content:"\f345"}.reordering .menu-item .item-controls,.reordering .menu-item .item-type{display:none}.reordering .menu-item-reorder-nav{display:block}.customize-control input.menu-name-field{width:100%;margin:12px 0}.wp-customizer .menu-item .item-edit{position:absolute;right:-19px;top:2px;display:block;width:30px;height:38px;margin-right:0!important;-webkit-box-shadow:none;box-shadow:none;outline:0;overflow:hidden;cursor:pointer;text-align:center}.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after{content:"\f142"}.wp-customizer .menu-item-settings p.description{font-style:normal}.wp-customizer .menu-settings dl{margin:12px 0 0;padding:0}.wp-customizer .menu-settings .checkbox-input{margin-top:8px}.wp-customizer .menu-settings .menu-theme-locations{border-top:1px solid #ccc}.wp-customizer .menu-settings{margin-top:36px;border-top:none}.menu-settings .customize-control-checkbox label{line-height:1}.menu-settings .customize-control.customize-control-checkbox{margin-bottom:8px}.customize-control-menu{margin-top:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle{color:#555}.customize-screen-options-toggle{background:0 0;border:none;color:#555;cursor:pointer;margin:0;padding:20px;position:absolute;right:0;top:30px}#customize-controls .customize-info .customize-help-toggle{padding:20px}#customize-controls .customize-info .customize-help-toggle:before{padding:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.active-menu-screen-options .customize-screen-options-toggle,.customize-screen-options-toggle:active,.customize-screen-options-toggle:focus,.customize-screen-options-toggle:hover{color:#0073aa}#customize-controls .customize-info .customize-help-toggle:focus,.customize-screen-options-toggle:focus{outline:0}.customize-screen-options-toggle:before{-moz-osx-font-smoothing:grayscale;border:none;content:"\f111";display:block;font:18px/1 dashicons;padding:5px;text-align:center;text-decoration:none!important;text-indent:0;left:6px;position:absolute;top:6px}#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before{-webkit-border-radius:100%;border-radius:100%}.wp-customizer #screen-options-wrap{display:none;background:#fff;border-top:1px solid #ddd;padding:4px 15px 15px}.wp-customizer .metabox-prefs label{display:block;padding-right:0;line-height:30px}.wp-customizer .toggle-indicator{display:inline-block;font-size:20px;line-height:1;text-indent:-1px}.rtl .wp-customizer .toLine truncated
|
||||||
@@ -102,7 +102,7 @@ if ( $wp_customize->is_ios() ) {
|
|||||||
if ( is_rtl() ) {
|
if ( is_rtl() ) {
|
||||||
$body_class .= ' rtl';
|
$body_class .= ' rtl';
|
||||||
}
|
}
|
||||||
$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
|
$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) );
|
||||||
|
|
||||||
$admin_title = sprintf( $wp_customize->get_document_title_template(), __( 'Loading…' ) );
|
$admin_title = sprintf( $wp_customize->get_document_title_template(), __( 'Loading…' ) );
|
||||||
|
|
||||||
|
|||||||
@@ -2982,7 +2982,7 @@ function wp_add_id3_tag_data( &$metadata, $data ) {
|
|||||||
if ( ! empty( $data[$version]['comments'] ) ) {
|
if ( ! empty( $data[$version]['comments'] ) ) {
|
||||||
foreach ( $data[$version]['comments'] as $key => $list ) {
|
foreach ( $data[$version]['comments'] as $key => $list ) {
|
||||||
if ( 'length' !== $key && ! empty( $list ) ) {
|
if ( 'length' !== $key && ! empty( $list ) ) {
|
||||||
$metadata[$key] = reset( $list );
|
$metadata[$key] = wp_kses_post( reset( $list ) );
|
||||||
// Fix bug in byte stream analysis.
|
// Fix bug in byte stream analysis.
|
||||||
if ( 'terms_of_use' === $key && 0 === strpos( $metadata[$key], 'yright notice.' ) )
|
if ( 'terms_of_use' === $key && 0 === strpos( $metadata[$key], 'yright notice.' ) )
|
||||||
$metadata[$key] = 'Cop' . $metadata[$key];
|
$metadata[$key] = 'Cop' . $metadata[$key];
|
||||||
@@ -3072,8 +3072,6 @@ function wp_read_video_metadata( $file ) {
|
|||||||
|
|
||||||
wp_add_id3_tag_data( $metadata, $data );
|
wp_add_id3_tag_data( $metadata, $data );
|
||||||
|
|
||||||
$metadata = wp_kses_post_deep( $metadata );
|
|
||||||
|
|
||||||
return $metadata;
|
return $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3119,8 +3117,6 @@ function wp_read_audio_metadata( $file ) {
|
|||||||
|
|
||||||
wp_add_id3_tag_data( $metadata, $data );
|
wp_add_id3_tag_data( $metadata, $data );
|
||||||
|
|
||||||
$metadata = wp_kses_post_deep( $metadata );
|
|
||||||
|
|
||||||
return $metadata;
|
return $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -578,7 +578,7 @@ function wp_prepare_themes_for_js( $themes = null ) {
|
|||||||
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
|
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
|
||||||
$customize_action = esc_url( add_query_arg(
|
$customize_action = esc_url( add_query_arg(
|
||||||
array(
|
array(
|
||||||
'return' => urlencode( esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ),
|
'return' => urlencode( esc_url_raw( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) ),
|
||||||
),
|
),
|
||||||
wp_customize_url( $slug )
|
wp_customize_url( $slug )
|
||||||
) );
|
) );
|
||||||
|
|||||||
@@ -334,6 +334,7 @@ switch($step) {
|
|||||||
|
|
||||||
$scripts_to_print[] = 'user-profile';
|
$scripts_to_print[] = 'user-profile';
|
||||||
|
|
||||||
|
display_header();
|
||||||
// Fill in the data we gathered
|
// Fill in the data we gathered
|
||||||
$weblog_title = isset( $_POST['weblog_title'] ) ? trim( wp_unslash( $_POST['weblog_title'] ) ) : '';
|
$weblog_title = isset( $_POST['weblog_title'] ) ? trim( wp_unslash( $_POST['weblog_title'] ) ) : '';
|
||||||
$user_name = isset($_POST['user_name']) ? trim( wp_unslash( $_POST['user_name'] ) ) : '';
|
$user_name = isset($_POST['user_name']) ? trim( wp_unslash( $_POST['user_name'] ) ) : '';
|
||||||
@@ -346,26 +347,21 @@ switch($step) {
|
|||||||
$error = false;
|
$error = false;
|
||||||
if ( empty( $user_name ) ) {
|
if ( empty( $user_name ) ) {
|
||||||
// TODO: poka-yoke
|
// TODO: poka-yoke
|
||||||
display_header();
|
|
||||||
display_setup_form( __( 'Please provide a valid username.' ) );
|
display_setup_form( __( 'Please provide a valid username.' ) );
|
||||||
$error = true;
|
$error = true;
|
||||||
} elseif ( $user_name != sanitize_user( $user_name, true ) ) {
|
} elseif ( $user_name != sanitize_user( $user_name, true ) ) {
|
||||||
display_header();
|
|
||||||
display_setup_form( __( 'The username you provided has invalid characters.' ) );
|
display_setup_form( __( 'The username you provided has invalid characters.' ) );
|
||||||
$error = true;
|
$error = true;
|
||||||
} elseif ( $admin_password != $admin_password_check ) {
|
} elseif ( $admin_password != $admin_password_check ) {
|
||||||
// TODO: poka-yoke
|
// TODO: poka-yoke
|
||||||
display_header();
|
|
||||||
display_setup_form( __( 'Your passwords do not match. Please try again.' ) );
|
display_setup_form( __( 'Your passwords do not match. Please try again.' ) );
|
||||||
$error = true;
|
$error = true;
|
||||||
} elseif ( empty( $admin_email ) ) {
|
} elseif ( empty( $admin_email ) ) {
|
||||||
// TODO: poka-yoke
|
// TODO: poka-yoke
|
||||||
display_header();
|
|
||||||
display_setup_form( __( 'You must provide an email address.' ) );
|
display_setup_form( __( 'You must provide an email address.' ) );
|
||||||
$error = true;
|
$error = true;
|
||||||
} elseif ( ! is_email( $admin_email ) ) {
|
} elseif ( ! is_email( $admin_email ) ) {
|
||||||
// TODO: poka-yoke
|
// TODO: poka-yoke
|
||||||
display_header();
|
|
||||||
display_setup_form( __( 'Sorry, that isn’t a valid email address. Email addresses look like <code>username@example.com</code>.' ) );
|
display_setup_form( __( 'Sorry, that isn’t a valid email address. Email addresses look like <code>username@example.com</code>.' ) );
|
||||||
$error = true;
|
$error = true;
|
||||||
}
|
}
|
||||||
@@ -373,16 +369,6 @@ switch($step) {
|
|||||||
if ( $error === false ) {
|
if ( $error === false ) {
|
||||||
$wpdb->show_errors();
|
$wpdb->show_errors();
|
||||||
$result = wp_install( $weblog_title, $user_name, $admin_email, $public, '', wp_slash( $admin_password ), $loaded_language );
|
$result = wp_install( $weblog_title, $user_name, $admin_email, $public, '', wp_slash( $admin_password ), $loaded_language );
|
||||||
|
|
||||||
// Log the user in and send them to wp-admin:
|
|
||||||
if ( ! headers_sent() ) {
|
|
||||||
wp_set_auth_cookie( $result['user_id'], true, is_ssl() );
|
|
||||||
wp_redirect( admin_url() );
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
// If headers have already been sent, fall back to a "Success!" message:
|
|
||||||
display_header();
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h1><?php _e( 'Success!' ); ?></h1>
|
<h1><?php _e( 'Success!' ); ?></h1>
|
||||||
|
|||||||
@@ -528,10 +528,11 @@
|
|||||||
*
|
*
|
||||||
* @since 4.1.0
|
* @since 4.1.0
|
||||||
*
|
*
|
||||||
* @param {Boolean} active
|
* @param {boolean} active - The active state to transiution to.
|
||||||
* @param {Object} args
|
* @param {Object} [args] - Args.
|
||||||
* @param {Object} args.duration
|
* @param {Object} [args.duration] - The duration for the slideUp/slideDown animation.
|
||||||
* @param {Object} args.completeCallback
|
* @param {boolean} [args.unchanged] - Whether the state is already known to not be changed, and so short-circuit with calling completeCallback early.
|
||||||
|
* @param {Function} [args.completeCallback] - Function to call when the slideUp/slideDown has completed.
|
||||||
*/
|
*/
|
||||||
onChangeActive: function( active, args ) {
|
onChangeActive: function( active, args ) {
|
||||||
var construct = this,
|
var construct = this,
|
||||||
@@ -564,24 +565,24 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! $.contains( document, headContainer ) ) {
|
if ( ! $.contains( document, headContainer.get( 0 ) ) ) {
|
||||||
// jQuery.fn.slideUp is not hiding an element if it is not in the DOM
|
// If the element is not in the DOM, then jQuery.fn.slideUp() does nothing. In this case, a hard toggle is required instead.
|
||||||
headContainer.toggle( active );
|
headContainer.toggle( active );
|
||||||
if ( args.completeCallback ) {
|
if ( args.completeCallback ) {
|
||||||
args.completeCallback();
|
args.completeCallback();
|
||||||
}
|
}
|
||||||
} else if ( active ) {
|
} else if ( active ) {
|
||||||
headContainer.stop( true, true ).slideDown( duration, args.completeCallback );
|
headContainer.slideDown( duration, args.completeCallback );
|
||||||
} else {
|
} else {
|
||||||
if ( construct.expanded() ) {
|
if ( construct.expanded() ) {
|
||||||
construct.collapse({
|
construct.collapse({
|
||||||
duration: duration,
|
duration: duration,
|
||||||
completeCallback: function() {
|
completeCallback: function() {
|
||||||
headContainer.stop( true, true ).slideUp( duration, args.completeCallback );
|
headContainer.slideUp( duration, args.completeCallback );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
headContainer.stop( true, true ).slideUp( duration, args.completeCallback );
|
headContainer.slideUp( duration, args.completeCallback );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -710,11 +711,19 @@
|
|||||||
var construct = this,
|
var construct = this,
|
||||||
content = construct.contentContainer,
|
content = construct.contentContainer,
|
||||||
overlay = content.closest( '.wp-full-overlay' ),
|
overlay = content.closest( '.wp-full-overlay' ),
|
||||||
elements, transitionEndCallback;
|
elements, transitionEndCallback, transitionParentPane;
|
||||||
|
|
||||||
// Determine set of elements that are affected by the animation.
|
// Determine set of elements that are affected by the animation.
|
||||||
elements = overlay.add( content );
|
elements = overlay.add( content );
|
||||||
if ( _.isUndefined( construct.panel ) || '' === construct.panel() ) {
|
|
||||||
|
if ( ! construct.panel || '' === construct.panel() ) {
|
||||||
|
transitionParentPane = true;
|
||||||
|
} else if ( api.panel( construct.panel() ).contentContainer.hasClass( 'skip-transition' ) ) {
|
||||||
|
transitionParentPane = true;
|
||||||
|
} else {
|
||||||
|
transitionParentPane = false;
|
||||||
|
}
|
||||||
|
if ( transitionParentPane ) {
|
||||||
elements = elements.add( '#customize-info, .customize-pane-parent' );
|
elements = elements.add( '#customize-info, .customize-pane-parent' );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -995,7 +1004,7 @@
|
|||||||
overlay = section.headContainer.closest( '.wp-full-overlay' ),
|
overlay = section.headContainer.closest( '.wp-full-overlay' ),
|
||||||
backBtn = content.find( '.customize-section-back' ),
|
backBtn = content.find( '.customize-section-back' ),
|
||||||
sectionTitle = section.headContainer.find( '.accordion-section-title' ).first(),
|
sectionTitle = section.headContainer.find( '.accordion-section-title' ).first(),
|
||||||
expand;
|
expand, panel;
|
||||||
|
|
||||||
if ( expanded && ! content.hasClass( 'open' ) ) {
|
if ( expanded && ! content.hasClass( 'open' ) ) {
|
||||||
|
|
||||||
@@ -1043,6 +1052,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else if ( ! expanded && content.hasClass( 'open' ) ) {
|
} else if ( ! expanded && content.hasClass( 'open' ) ) {
|
||||||
|
if ( section.panel() ) {
|
||||||
|
panel = api.panel( section.panel() );
|
||||||
|
if ( panel.contentContainer.hasClass( 'skip-transition' ) ) {
|
||||||
|
panel.collapse();
|
||||||
|
}
|
||||||
|
}
|
||||||
section._animateChangeExpanded( function() {
|
section._animateChangeExpanded( function() {
|
||||||
backBtn.attr( 'tabindex', '-1' );
|
backBtn.attr( 'tabindex', '-1' );
|
||||||
sectionTitle.attr( 'tabindex', '0' );
|
sectionTitle.attr( 'tabindex', '0' );
|
||||||
@@ -1721,7 +1736,9 @@
|
|||||||
overlay = accordionSection.closest( '.wp-full-overlay' ),
|
overlay = accordionSection.closest( '.wp-full-overlay' ),
|
||||||
container = accordionSection.closest( '.wp-full-overlay-sidebar-content' ),
|
container = accordionSection.closest( '.wp-full-overlay-sidebar-content' ),
|
||||||
topPanel = panel.headContainer.find( '.accordion-section-title' ),
|
topPanel = panel.headContainer.find( '.accordion-section-title' ),
|
||||||
backBtn = accordionSection.find( '.customize-panel-back' );
|
backBtn = accordionSection.find( '.customize-panel-back' ),
|
||||||
|
childSections = panel.sections(),
|
||||||
|
skipTransition;
|
||||||
|
|
||||||
if ( expanded && ! accordionSection.hasClass( 'current-panel' ) ) {
|
if ( expanded && ! accordionSection.hasClass( 'current-panel' ) ) {
|
||||||
// Collapse any sibling sections/panels
|
// Collapse any sibling sections/panels
|
||||||
@@ -1736,35 +1753,50 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
panel._animateChangeExpanded( function() {
|
if ( panel.params.autoExpandSoleSection && 1 === childSections.length && childSections[0].active.get() ) {
|
||||||
topPanel.attr( 'tabindex', '-1' );
|
accordionSection.addClass( 'current-panel skip-transition' );
|
||||||
backBtn.attr( 'tabindex', '0' );
|
overlay.addClass( 'in-sub-panel' );
|
||||||
|
|
||||||
backBtn.focus();
|
childSections[0].expand( {
|
||||||
accordionSection.css( 'top', '' );
|
completeCallback: args.completeCallback
|
||||||
container.scrollTop( 0 );
|
} );
|
||||||
|
} else {
|
||||||
|
panel._animateChangeExpanded( function() {
|
||||||
|
topPanel.attr( 'tabindex', '-1' );
|
||||||
|
backBtn.attr( 'tabindex', '0' );
|
||||||
|
|
||||||
if ( args.completeCallback ) {
|
backBtn.focus();
|
||||||
args.completeCallback();
|
accordionSection.css( 'top', '' );
|
||||||
}
|
container.scrollTop( 0 );
|
||||||
} );
|
|
||||||
|
if ( args.completeCallback ) {
|
||||||
|
args.completeCallback();
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
accordionSection.addClass( 'current-panel' );
|
||||||
|
overlay.addClass( 'in-sub-panel' );
|
||||||
|
}
|
||||||
|
|
||||||
overlay.addClass( 'in-sub-panel' );
|
|
||||||
accordionSection.addClass( 'current-panel' );
|
|
||||||
api.state( 'expandedPanel' ).set( panel );
|
api.state( 'expandedPanel' ).set( panel );
|
||||||
|
|
||||||
} else if ( ! expanded && accordionSection.hasClass( 'current-panel' ) ) {
|
} else if ( ! expanded && accordionSection.hasClass( 'current-panel' ) ) {
|
||||||
panel._animateChangeExpanded( function() {
|
skipTransition = accordionSection.hasClass( 'skip-transition' );
|
||||||
topPanel.attr( 'tabindex', '0' );
|
if ( ! skipTransition ) {
|
||||||
backBtn.attr( 'tabindex', '-1' );
|
panel._animateChangeExpanded( function() {
|
||||||
|
topPanel.attr( 'tabindex', '0' );
|
||||||
|
backBtn.attr( 'tabindex', '-1' );
|
||||||
|
|
||||||
topPanel.focus();
|
topPanel.focus();
|
||||||
accordionSection.css( 'top', '' );
|
accordionSection.css( 'top', '' );
|
||||||
|
|
||||||
if ( args.completeCallback ) {
|
if ( args.completeCallback ) {
|
||||||
args.completeCallback();
|
args.completeCallback();
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
} else {
|
||||||
|
accordionSection.removeClass( 'skip-transition' );
|
||||||
|
}
|
||||||
|
|
||||||
overlay.removeClass( 'in-sub-panel' );
|
overlay.removeClass( 'in-sub-panel' );
|
||||||
accordionSection.removeClass( 'current-panel' );
|
accordionSection.removeClass( 'current-panel' );
|
||||||
@@ -2266,9 +2298,9 @@
|
|||||||
availableItem = new api.Menus.AvailableItemModel( {
|
availableItem = new api.Menus.AvailableItemModel( {
|
||||||
'id': 'post-' + data.post_id, // Used for available menu item Backbone models.
|
'id': 'post-' + data.post_id, // Used for available menu item Backbone models.
|
||||||
'title': title,
|
'title': title,
|
||||||
'type': 'page',
|
'type': 'post_type',
|
||||||
'type_label': api.Menus.data.l10n.page_label,
|
'type_label': api.Menus.data.l10n.page_label,
|
||||||
'object': 'post_type',
|
'object': 'page',
|
||||||
'object_id': data.post_id,
|
'object_id': data.post_id,
|
||||||
'url': data.url
|
'url': data.url
|
||||||
} );
|
} );
|
||||||
@@ -4122,7 +4154,7 @@
|
|||||||
|
|
||||||
// Remove notification errors that are no longer valid.
|
// Remove notification errors that are no longer valid.
|
||||||
setting.notifications.each( function( notification ) {
|
setting.notifications.each( function( notification ) {
|
||||||
if ( 'error' === notification.type && ( true === validity || ! validity[ notification.code ] ) ) {
|
if ( notification.fromServer && 'error' === notification.type && ( true === validity || ! validity[ notification.code ] ) ) {
|
||||||
setting.notifications.remove( notification.code );
|
setting.notifications.remove( notification.code );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
@@ -4730,6 +4762,12 @@
|
|||||||
*/
|
*/
|
||||||
populateChangesetUuidParam = function( isIncluded ) {
|
populateChangesetUuidParam = function( isIncluded ) {
|
||||||
var urlParser, queryParams;
|
var urlParser, queryParams;
|
||||||
|
|
||||||
|
// Abort on IE9 which doesn't support history management.
|
||||||
|
if ( ! history.replaceState ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
urlParser = document.createElement( 'a' );
|
urlParser = document.createElement( 'a' );
|
||||||
urlParser.href = location.href;
|
urlParser.href = location.href;
|
||||||
queryParams = api.utils.parseQueryString( urlParser.search.substr( 1 ) );
|
queryParams = api.utils.parseQueryString( urlParser.search.substr( 1 ) );
|
||||||
@@ -4748,11 +4786,9 @@
|
|||||||
history.replaceState( {}, document.title, urlParser.href );
|
history.replaceState( {}, document.title, urlParser.href );
|
||||||
};
|
};
|
||||||
|
|
||||||
if ( history.replaceState ) {
|
changesetStatus.bind( function( newStatus ) {
|
||||||
changesetStatus.bind( function( newStatus ) {
|
populateChangesetUuidParam( '' !== newStatus && 'publish' !== newStatus );
|
||||||
populateChangesetUuidParam( '' !== newStatus && 'publish' !== newStatus );
|
} );
|
||||||
} );
|
|
||||||
}
|
|
||||||
|
|
||||||
// Expose states to the API.
|
// Expose states to the API.
|
||||||
api.state = state;
|
api.state = state;
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
!function(a,b){var c,d,e,f=wp.customize;f.Setting=f.Value.extend({initialize:function(a,b,c){var d=this;f.Value.prototype.initialize.call(d,b,c),d.id=a,d.transport=d.transport||"refresh",d._dirty=c.dirty||!1,d.notifications=new f.Values({defaultConstructor:f.Notification}),d.bind(d.preview)},preview:function(){var a,b=this;a=b.transport,"postMessage"!==a||f.state("previewerAlive").get()||(a="refresh"),"postMessage"===a?b.previewer.send("setting",[b.id,b()]):"refresh"===a&&b.previewer.refresh()},findControls:function(){var a=this,b=[];return f.control.each(function(c){_.each(c.settings,function(d){d.id===a.id&&b.push(c)})}),b}}),f._latestRevision=0,f._lastSavedRevision=0,f._latestSettingRevisions={},f.bind("change",function(a){f._latestRevision+=1,f._latestSettingRevisions[a.id]=f._latestRevision}),f.bind("ready",function(){f.bind("add",function(a){a._dirty&&(f._latestRevision+=1,f._latestSettingRevisions[a.id]=f._latestRevision)})}),f.dirtyValues=function(a){var b={};return f.each(function(c){var d;c._dirty&&(d=f._latestSettingRevisions[c.id],f.state("changesetStatus").get()&&a&&a.unsaved&&(_.isUndefined(d)||d<=f._lastSavedRevision)||(b[c.id]=c.get()))}),b},f.requestChangesetUpdate=function(a){var c,d,e,g={};return c=new b.Deferred,a&&_.extend(g,a),_.each(f.dirtyValues({unsaved:!0}),function(b,c){a&&null===a[c]||(g[c]=_.extend({},g[c]||{},{value:b}))}),_.isEmpty(g)?(c.resolve({}),c.promise()):(f.state("processing").set(f.state("processing").get()+1),c.always(function(){f.state("processing").set(f.state("processing").get()-1)}),f.trigger("changeset-save",g),e=f.previewer.query({excludeCustomizedSaved:!0}),delete e.customized,_.extend(e,{nonce:f.settings.nonce.save,customize_theme:f.settings.theme.stylesheet,customize_changeset_data:JSON.stringify(g)}),d=wp.ajax.post("customize_save",e),d.done(function(a){var b={};f._lastSavedRevision=Math.max(f._latestRevision,f._lastSavedRevision),f.state("changesetStatus").set(a.changeset_status),c.resolve(a),f.trigger("changeset-saved",a),a.setting_validities&&_.each(a.setting_validities,function(a,c){!0===a&&_.isObject(g[c])&&!_.isUndefined(g[c].value)&&(b[c]=g[c].value)}),f.previewer.send("changeset-saved",_.extend({},a,{saved_changeset_values:b}))}),d.fail(function(a){c.reject(a),f.trigger("changeset-error",a)}),d.always(function(a){a.setting_validities&&f._handleSettingValidities({settingValidities:a.setting_validities})}),c.promise())},f.utils.bubbleChildValueChanges=function(a,c){b.each(c,function(b,c){a[c].bind(function(b,c){a.parent&&b!==c&&a.parent.trigger("change",a)})})},d=function(a){var b,c,d,e;b=this,a=a||{},d=function(){var a;a=(b.extended(f.Panel)||b.extended(f.Section))&&b.expanded&&b.expanded()?b.contentContainer:b.container,e=a.find(".control-focus:first"),0===e.length&&(e=a.find("input, select, textarea, button, object, a[href], [tabindex]").filter(":visible").first()),e.focus()},a.completeCallback?(c=a.completeCallback,a.completeCallback=function(){d(),c()}):a.completeCallback=d,f.state("paneVisible").set(!0),b.expand?b.expand(a):a.completeCallback()},f.utils.prioritySort=function(a,b){return a.priority()===b.priority()&&"number"==typeof a.params.instanceNumber&&"number"==typeof b.params.instanceNumber?a.params.instanceNumber-b.params.instanceNumber:a.priority()-b.priority()},f.utils.isKeydownButNotEnterEvent=function(a){return"keydown"===a.type&&13!==a.which},f.utils.areElementListsEqual=function(a,c){var d=a.length===c.length&&-1===_.indexOf(_.map(_.zip(a,c),function(a){return b(a[0]).is(a[1])}),!1);return d},e=function(){var a,b,c;return a=document.createElement("div"),b={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},c=_.find(_.keys(b),function(b){return!_.isUndefined(a.style[b])}),c?b[c]:null}(),c=f.Class.extend({defaultActiveArguments:{duration:"fast",completeCallback:b.noop},defaultExpandedArguments:{duration:"fast",completeCallback:b.noop},containerType:"container",defaults:{title:"",description:"",priority:100,type:"default",content:null,active:!0,instanceNumber:null},initialize:function(a,c){var d=this;d.id=a,c=c||{},c.params=_.defaults(c.params||{},d.defaults),b.extend(d,c),d.templateSelector="customize-"+d.containerType+"-"+d.params.type,d.container=b(d.params.content),0===d.container.length&&(d.container=b(d.getContainer())),d.headContainer=d.container,d.contentContainer=d.getContent(),d.container=d.container.add(d.contentContainer),d.deferred={embedded:new b.Deferred},d.priority=new f.Value,d.active=new f.Value,d.activeArgumentsQueue=[],d.expanded=new f.Value,d.expandedArgumentsQueue=[],d.active.bind(function(a){var c=d.activeArgumentsQueue.shift();c=b.extend({},d.defaultActiveArguments,c),a=a&&d.isContextuallyActive(),d.onChangeActive(a,c)}),d.expanded.bind(function(a){var c=d.expandedArgumentsQueue.shift();c=b.extend({},d.defaultExpandedArguments,c),d.onChangeExpanded(a,c)}),d.deferred.embedded.done(function(){d.attachEvents()}),f.utils.bubbleChildValueChanLine truncated
|
!function(a,b){var c,d,e,f=wp.customize;f.Setting=f.Value.extend({initialize:function(a,b,c){var d=this;f.Value.prototype.initialize.call(d,b,c),d.id=a,d.transport=d.transport||"refresh",d._dirty=c.dirty||!1,d.notifications=new f.Values({defaultConstructor:f.Notification}),d.bind(d.preview)},preview:function(){var a,b=this;a=b.transport,"postMessage"!==a||f.state("previewerAlive").get()||(a="refresh"),"postMessage"===a?b.previewer.send("setting",[b.id,b()]):"refresh"===a&&b.previewer.refresh()},findControls:function(){var a=this,b=[];return f.control.each(function(c){_.each(c.settings,function(d){d.id===a.id&&b.push(c)})}),b}}),f._latestRevision=0,f._lastSavedRevision=0,f._latestSettingRevisions={},f.bind("change",function(a){f._latestRevision+=1,f._latestSettingRevisions[a.id]=f._latestRevision}),f.bind("ready",function(){f.bind("add",function(a){a._dirty&&(f._latestRevision+=1,f._latestSettingRevisions[a.id]=f._latestRevision)})}),f.dirtyValues=function(a){var b={};return f.each(function(c){var d;c._dirty&&(d=f._latestSettingRevisions[c.id],f.state("changesetStatus").get()&&a&&a.unsaved&&(_.isUndefined(d)||d<=f._lastSavedRevision)||(b[c.id]=c.get()))}),b},f.requestChangesetUpdate=function(a){var c,d,e,g={};return c=new b.Deferred,a&&_.extend(g,a),_.each(f.dirtyValues({unsaved:!0}),function(b,c){a&&null===a[c]||(g[c]=_.extend({},g[c]||{},{value:b}))}),_.isEmpty(g)?(c.resolve({}),c.promise()):(f.state("processing").set(f.state("processing").get()+1),c.always(function(){f.state("processing").set(f.state("processing").get()-1)}),f.trigger("changeset-save",g),e=f.previewer.query({excludeCustomizedSaved:!0}),delete e.customized,_.extend(e,{nonce:f.settings.nonce.save,customize_theme:f.settings.theme.stylesheet,customize_changeset_data:JSON.stringify(g)}),d=wp.ajax.post("customize_save",e),d.done(function(a){var b={};f._lastSavedRevision=Math.max(f._latestRevision,f._lastSavedRevision),f.state("changesetStatus").set(a.changeset_status),c.resolve(a),f.trigger("changeset-saved",a),a.setting_validities&&_.each(a.setting_validities,function(a,c){!0===a&&_.isObject(g[c])&&!_.isUndefined(g[c].value)&&(b[c]=g[c].value)}),f.previewer.send("changeset-saved",_.extend({},a,{saved_changeset_values:b}))}),d.fail(function(a){c.reject(a),f.trigger("changeset-error",a)}),d.always(function(a){a.setting_validities&&f._handleSettingValidities({settingValidities:a.setting_validities})}),c.promise())},f.utils.bubbleChildValueChanges=function(a,c){b.each(c,function(b,c){a[c].bind(function(b,c){a.parent&&b!==c&&a.parent.trigger("change",a)})})},d=function(a){var b,c,d,e;b=this,a=a||{},d=function(){var a;a=(b.extended(f.Panel)||b.extended(f.Section))&&b.expanded&&b.expanded()?b.contentContainer:b.container,e=a.find(".control-focus:first"),0===e.length&&(e=a.find("input, select, textarea, button, object, a[href], [tabindex]").filter(":visible").first()),e.focus()},a.completeCallback?(c=a.completeCallback,a.completeCallback=function(){d(),c()}):a.completeCallback=d,f.state("paneVisible").set(!0),b.expand?b.expand(a):a.completeCallback()},f.utils.prioritySort=function(a,b){return a.priority()===b.priority()&&"number"==typeof a.params.instanceNumber&&"number"==typeof b.params.instanceNumber?a.params.instanceNumber-b.params.instanceNumber:a.priority()-b.priority()},f.utils.isKeydownButNotEnterEvent=function(a){return"keydown"===a.type&&13!==a.which},f.utils.areElementListsEqual=function(a,c){var d=a.length===c.length&&-1===_.indexOf(_.map(_.zip(a,c),function(a){return b(a[0]).is(a[1])}),!1);return d},e=function(){var a,b,c;return a=document.createElement("div"),b={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},c=_.find(_.keys(b),function(b){return!_.isUndefined(a.style[b])}),c?b[c]:null}(),c=f.Class.extend({defaultActiveArguments:{duration:"fast",completeCallback:b.noop},defaultExpandedArguments:{duration:"fast",completeCallback:b.noop},containerType:"container",defaults:{title:"",description:"",priority:100,type:"default",content:null,active:!0,instanceNumber:null},initialize:function(a,c){var d=this;d.id=a,c=c||{},c.params=_.defaults(c.params||{},d.defaults),b.extend(d,c),d.templateSelector="customize-"+d.containerType+"-"+d.params.type,d.container=b(d.params.content),0===d.container.length&&(d.container=b(d.getContainer())),d.headContainer=d.container,d.contentContainer=d.getContent(),d.container=d.container.add(d.contentContainer),d.deferred={embedded:new b.Deferred},d.priority=new f.Value,d.active=new f.Value,d.activeArgumentsQueue=[],d.expanded=new f.Value,d.expandedArgumentsQueue=[],d.active.bind(function(a){var c=d.activeArgumentsQueue.shift();c=b.extend({},d.defaultActiveArguments,c),a=a&&d.isContextuallyActive(),d.onChangeActive(a,c)}),d.expanded.bind(function(a){var c=d.expandedArgumentsQueue.shift();c=b.extend({},d.defaultExpandedArguments,c),d.onChangeExpanded(a,c)}),d.deferred.embedded.done(function(){d.attachEvents()}),f.utils.bubbleChildValueChanLine truncated
|
||||||
initFrame:function(){var a=_wpMediaViewsL10n;this.frame=wp.media({button:{text:a.select,close:!1},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.SiteIconCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)},onSelect:function(){var a=this.frame.state().get("selection").first().toJSON(),b=this;this.params.width!==a.width||this.params.height!==a.height||this.params.flex_width||this.params.flex_height?this.frame.setState("cropper"):wp.ajax.post("crop-image",{nonce:a.nonces.edit,id:a.id,context:"site-icon",cropDetails:{x1:0,y1:0,width:this.params.width,height:this.params.height,dst_width:this.params.width,dst_height:this.params.height}}).done(function(a){b.setImageFromAttachment(a),b.frame.close()}).fail(function(){b.frame.trigger("content:error:crop")})},setImageFromAttachment:function(a){var c,d,e=["site_icon-32","thumbnail","full"];_.each(e,function(b){d||_.isUndefined(a.sizes[b])||(d=a.sizes[b])}),this.params.attachment=a,this.setting(a.id),d&&(c=b('link[rel="icon"][sizes="32x32"]'),c.attr("href",d.url))},removeFile:function(a){f.utils.isKeydownButNotEnterEvent(a)||(a.preventDefault(),this.params.attachment={},this.setting(""),this.renderContent(),b('link[rel="icon"][sizes="32x32"]').attr("href","/favicon.ico"))}}),f.HeaderControl=f.Control.extend({ready:function(){this.btnRemove=b("#customize-control-header_image .actions .remove"),this.btnNew=b("#customize-control-header_image .actions .new"),_.bindAll(this,"openMedia","removeImage"),this.btnNew.on("click",this.openMedia),this.btnRemove.on("click",this.removeImage),f.HeaderTool.currentHeader=this.getInitialHeaderImage(),new f.HeaderTool.CurrentView({model:f.HeaderTool.currentHeader,el:"#customize-control-header_image .current .container"}),new f.HeaderTool.ChoiceListView({collection:f.HeaderTool.UploadsList=new f.HeaderTool.ChoiceList,el:"#customize-control-header_image .choices .uploaded .list"}),new f.HeaderTool.ChoiceListView({collection:f.HeaderTool.DefaultsList=new f.HeaderTool.DefaultsList,el:"#customize-control-header_image .choices .default .list"}),f.HeaderTool.combinedList=f.HeaderTool.CombinedList=new f.HeaderTool.CombinedList([f.HeaderTool.UploadsList,f.HeaderTool.DefaultsList]),wp.media.controller.Cropper.prototype.defaults.doCropArgs.wp_customize="on",wp.media.controller.Cropper.prototype.defaults.doCropArgs.customize_theme=f.settings.theme.stylesheet},getInitialHeaderImage:function(){if(!f.get().header_image||!f.get().header_image_data||_.contains(["remove-header","random-default-image","random-uploaded-image"],f.get().header_image))return new f.HeaderTool.ImageModel;var a=_.find(_wpCustomizeHeader.uploads,function(a){return a.attachment_id===f.get().header_image_data.attachment_id});return a||(a={url:f.get().header_image,thumbnail_url:f.get().header_image,attachment_id:f.get().header_image_data.attachment_id}),new f.HeaderTool.ImageModel({header:a,choice:a.url.split("/").pop()})},calculateImageSelectOptions:function(a,b){var c,d,e,g,h,i,j=parseInt(_wpCustomizeHeader.data.width,10),k=parseInt(_wpCustomizeHeader.data.height,10),l=!!parseInt(_wpCustomizeHeader.data["flex-width"],10),m=!!parseInt(_wpCustomizeHeader.data["flex-height"],10);return h=a.get("width"),g=a.get("height"),this.headerImage=new f.HeaderTool.ImageModel,this.headerImage.set({themeWidth:j,themeHeight:k,themeFlexWidth:l,themeFlexHeight:m,imageWidth:h,imageHeight:g}),b.set("canSkipCrop",!this.headerImage.shouldBeCropped()),c=j/k,d=h,e=g,d/e>c?(k=e,j=k*c):(j=d,k=j/c),i={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:h,imageHeight:g,x1:0,y1:0,x2:j,y2:k},m===!1&&l===!1&&(i.aspectRatio=j+":"+k),m===!1&&(i.maxHeight=k),l===!1&&(i.maxWidth=j),i},openMedia:function(a){var b=_wpMediaViewsL10n;a.preventDefault(),this.frame=wp.media({button:{text:b.selectAndCrop,close:!1},states:[new wp.media.controller.Library({title:b.chooseImage,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:_wpCustomizeHeader.data.width,suggestedHeight:_wpCustomizeHeader.data.height}),new wp.media.controller.Cropper({imgSelectOptions:this.calculateImageSelectOptions})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this),this.frame.open()},onSelect:function(){this.frame.setState("cropper")},onCropped:function(a){var b=a.url,c=a.attachment_id,d=a.width,e=a.height;this.setImageFromURL(b,c,d,e)},onSkippedCrop:function(a){var b=a.get("url"),c=a.get("width"),d=a.get("height");this.setImageFromURL(b,a.id,c,d)},setImageFromURL:function(a,b,c,d){var e,g={};g.url=a,g.thumbnail_url=a,g.timestamp=_.now(),b&&(g.attachment_id=b),c&Line truncated
|
e.maxWidth=i),!0===g&&(delete e.minWidth,e.maxHeight=j),e},mustBeCropped:function(a,b,c,d,e,f){return(!0!==a||!0!==b)&&((!0!==a||d!==f)&&((!0!==b||c!==e)&&((c!==e||d!==f)&&!(e<=c))))},onSkippedCrop:function(){var a=this.frame.state().get("selection").first().toJSON();this.setImageFromAttachment(a)},setImageFromAttachment:function(a){this.params.attachment=a,this.setting(a.id)}}),f.SiteIconControl=f.CroppedImageControl.extend({initFrame:function(){var a=_wpMediaViewsL10n;this.frame=wp.media({button:{text:a.select,close:!1},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.SiteIconCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)},onSelect:function(){var a=this.frame.state().get("selection").first().toJSON(),b=this;this.params.width!==a.width||this.params.height!==a.height||this.params.flex_width||this.params.flex_height?this.frame.setState("cropper"):wp.ajax.post("crop-image",{nonce:a.nonces.edit,id:a.id,context:"site-icon",cropDetails:{x1:0,y1:0,width:this.params.width,height:this.params.height,dst_width:this.params.width,dst_height:this.params.height}}).done(function(a){b.setImageFromAttachment(a),b.frame.close()}).fail(function(){b.frame.trigger("content:error:crop")})},setImageFromAttachment:function(a){var c,d,e=["site_icon-32","thumbnail","full"];_.each(e,function(b){d||_.isUndefined(a.sizes[b])||(d=a.sizes[b])}),this.params.attachment=a,this.setting(a.id),d&&(c=b('link[rel="icon"][sizes="32x32"]'),c.attr("href",d.url))},removeFile:function(a){f.utils.isKeydownButNotEnterEvent(a)||(a.preventDefault(),this.params.attachment={},this.setting(""),this.renderContent(),b('link[rel="icon"][sizes="32x32"]').attr("href","/favicon.ico"))}}),f.HeaderControl=f.Control.extend({ready:function(){this.btnRemove=b("#customize-control-header_image .actions .remove"),this.btnNew=b("#customize-control-header_image .actions .new"),_.bindAll(this,"openMedia","removeImage"),this.btnNew.on("click",this.openMedia),this.btnRemove.on("click",this.removeImage),f.HeaderTool.currentHeader=this.getInitialHeaderImage(),new f.HeaderTool.CurrentView({model:f.HeaderTool.currentHeader,el:"#customize-control-header_image .current .container"}),new f.HeaderTool.ChoiceListView({collection:f.HeaderTool.UploadsList=new f.HeaderTool.ChoiceList,el:"#customize-control-header_image .choices .uploaded .list"}),new f.HeaderTool.ChoiceListView({collection:f.HeaderTool.DefaultsList=new f.HeaderTool.DefaultsList,el:"#customize-control-header_image .choices .default .list"}),f.HeaderTool.combinedList=f.HeaderTool.CombinedList=new f.HeaderTool.CombinedList([f.HeaderTool.UploadsList,f.HeaderTool.DefaultsList]),wp.media.controller.Cropper.prototype.defaults.doCropArgs.wp_customize="on",wp.media.controller.Cropper.prototype.defaults.doCropArgs.customize_theme=f.settings.theme.stylesheet},getInitialHeaderImage:function(){if(!f.get().header_image||!f.get().header_image_data||_.contains(["remove-header","random-default-image","random-uploaded-image"],f.get().header_image))return new f.HeaderTool.ImageModel;var a=_.find(_wpCustomizeHeader.uploads,function(a){return a.attachment_id===f.get().header_image_data.attachment_id});return a||(a={url:f.get().header_image,thumbnail_url:f.get().header_image,attachment_id:f.get().header_image_data.attachment_id}),new f.HeaderTool.ImageModel({header:a,choice:a.url.split("/").pop()})},calculateImageSelectOptions:function(a,b){var c,d,e,g,h,i,j=parseInt(_wpCustomizeHeader.data.width,10),k=parseInt(_wpCustomizeHeader.data.height,10),l=!!parseInt(_wpCustomizeHeader.data["flex-width"],10),m=!!parseInt(_wpCustomizeHeader.data["flex-height"],10);return h=a.get("width"),g=a.get("height"),this.headerImage=new f.HeaderTool.ImageModel,this.headerImage.set({themeWidth:j,themeHeight:k,themeFlexWidth:l,themeFlexHeight:m,imageWidth:h,imageHeight:g}),b.set("canSkipCrop",!this.headerImage.shouldBeCropped()),c=j/k,d=h,e=g,d/e>c?(k=e,j=k*c):(j=d,k=j/c),i={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:h,imageHeight:g,x1:0,y1:0,x2:j,y2:k},m===!1&&l===!1&&(i.aspectRatio=j+":"+k),m===!1&&(i.maxHeight=k),l===!1&&(i.maxWidth=j),i},openMedia:function(a){var b=_wpMediaViewsL10n;a.preventDefault(),this.frame=wp.media({button:{text:b.selectAndCrop,close:!1},states:[new wp.media.controller.Library({title:b.chooseImage,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:_wpCustomizeHeader.data.width,suggestedHeight:_wpCustomizeHeader.data.height}),new wp.media.controller.Cropper({imgSelectOptions:this.calculateImageSelectOptions})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",Line truncated
|
||||||
}})}(wp,jQuery);
|
f.previewer.send("edit-shortcut-visibility",a)}),function(){var a,c,d,e=!1;c=function(){e||(e=!0,f.requestChangesetUpdate().always(function(){e=!1})),d()},d=function(){clearTimeout(a),a=setTimeout(function(){c()},f.settings.timeouts.changesetAutoSave)},d(),b(window).on("blur.wp-customize-changeset-update",function(){c()}),b(window).on("beforeunload.wp-customize-changeset-update",function(){c()})}(),f.trigger("ready")}})}(wp,jQuery);
|
||||||
@@ -1323,7 +1323,14 @@
|
|||||||
this.container.find( '.menu-item-handle' ).on( 'click', function( e ) {
|
this.container.find( '.menu-item-handle' ).on( 'click', function( e ) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
var menuControl = control.getMenuControl();
|
var menuControl = control.getMenuControl(),
|
||||||
|
isDeleteBtn = $( e.target ).is( '.item-delete, .item-delete *' ),
|
||||||
|
isAddNewBtn = $( e.target ).is( '.add-new-menu-item, .add-new-menu-item *' );
|
||||||
|
|
||||||
|
if ( $( 'body' ).hasClass( 'adding-menu-items' ) && ! isDeleteBtn && ! isAddNewBtn ) {
|
||||||
|
api.Menus.availableMenuItemsPanel.close();
|
||||||
|
}
|
||||||
|
|
||||||
if ( menuControl.isReordering || menuControl.isSorting ) {
|
if ( menuControl.isReordering || menuControl.isSorting ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -2214,7 +2221,7 @@
|
|||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
control.container.find( '.menu-delete' ).on( 'click', function( event ) {
|
control.container.find( '.menu-delete-item' ).on( 'click', function( event ) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
control.setting.set( false );
|
control.setting.set( false );
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
!function(a,b,c){"use strict";function d(a){return"nav_menu_item["+a+"]"}function e(b){return b=b||"",b=c("<div>").text(b).html(),b=c.trim(b),b||a.Menus.data.l10n.unnamed}wpNavMenu.originalInit=wpNavMenu.init,wpNavMenu.options.menuItemDepthPerLevel=20,wpNavMenu.options.sortableItems="> .customize-control-nav_menu_item",wpNavMenu.options.targetTolerance=10,wpNavMenu.init=function(){this.jQueryExtensions()},a.Menus=a.Menus||{},a.Menus.data={itemTypes:[],l10n:{},settingTransport:"refresh",phpIntMax:0,defaultSettingValues:{nav_menu:{},nav_menu_item:{}},locationSlugMappedToName:{}},"undefined"!=typeof _wpCustomizeNavMenusSettings&&c.extend(a.Menus.data,_wpCustomizeNavMenusSettings),a.Menus.generatePlaceholderAutoIncrementId=function(){return-Math.ceil(a.Menus.data.phpIntMax*Math.random())},a.Menus.AvailableItemModel=Backbone.Model.extend(c.extend({id:null},a.Menus.data.defaultSettingValues.nav_menu_item)),a.Menus.AvailableItemCollection=Backbone.Collection.extend({model:a.Menus.AvailableItemModel,sort_key:"order",comparator:function(a){return-a.get(this.sort_key)},sortByField:function(a){this.sort_key=a,this.sort()}}),a.Menus.availableMenuItems=new a.Menus.AvailableItemCollection(a.Menus.data.availableMenuItems),a.Menus.insertAutoDraftPost=function(d){var e,f=c.Deferred();return e=b.ajax.post("customize-nav-menus-insert-auto-draft",{"customize-menus-nonce":a.settings.nonce["customize-menus"],wp_customize:"on",params:d}),e.done(function(b){b.post_id&&(a("nav_menus_created_posts").set(a("nav_menus_created_posts").get().concat([b.post_id])),"page"===d.post_type&&(a.section.has("static_front_page")&&a.section("static_front_page").activate(),a.control.each(function(a){var c;"dropdown-pages"===a.params.type&&(c=a.container.find('select[name^="_customize-dropdown-pages-"]'),c.append(new Option(d.post_title,b.post_id)))})),f.resolve(b))}),e.fail(function(a){var b=a||"";"undefined"!=typeof a.message&&(b=a.message),console.error(b),f.rejectWith(b)}),f.promise()},a.Menus.AvailableMenuItemsPanelView=b.Backbone.View.extend({el:"#available-menu-items",events:{"input #menu-items-search":"debounceSearch","keyup #menu-items-search":"debounceSearch","focus .menu-item-tpl":"focus","click .menu-item-tpl":"_submit","click #custom-menu-item-submit":"_submitLink","keypress #custom-menu-item-name":"_submitLink","click .new-content-item .add-content":"_submitNew","keypress .create-item-input":"_submitNew",keydown:"keyboardAccessible"},selected:null,currentMenuControl:null,debounceSearch:null,$search:null,$clearResults:null,searchTerm:"",rendered:!1,pages:{},sectionContent:"",loading:!1,addingNew:!1,initialize:function(){var b=this;a.panel.has("nav_menus")&&(this.$search=c("#menu-items-search"),this.$clearResults=this.$el.find(".clear-results"),this.sectionContent=this.$el.find(".available-menu-items-list"),this.debounceSearch=_.debounce(b.search,500),_.bindAll(this,"close"),c("#customize-controls, .customize-section-back").on("click keydown",function(a){var d=c(a.target).is(".item-delete, .item-delete *"),e=c(a.target).is(".add-new-menu-item, .add-new-menu-item *");!c("body").hasClass("adding-menu-items")||d||e||b.close()}),this.$clearResults.on("click",function(){b.$search.val("").focus().trigger("keyup")}),this.$el.on("input","#custom-menu-item-name.invalid, #custom-menu-item-url.invalid",function(){c(this).removeClass("invalid")}),a.panel("nav_menus").container.bind("expanded",function(){b.rendered||(b.initList(),b.rendered=!0)}),this.sectionContent.scroll(function(){var a=b.$el.find(".accordion-section.open .available-menu-items-list").prop("scrollHeight"),d=b.$el.find(".accordion-section.open").height();if(!b.loading&&c(this).scrollTop()>.75*a-d){var e=c(this).data("type"),f=c(this).data("object");"search"===e?b.searchTerm&&b.doSearch(b.pages.search):b.loadItems([{type:e,object:f}])}}),a.previewer.bind("url",this.close),b.delegateEvents())},search:function(a){var b=c("#available-menu-items-search"),d=c("#available-menu-items .accordion-section").not(b);a&&this.searchTerm!==a.target.value&&(""===a.target.value||b.hasClass("open")?""===a.target.value&&(b.removeClass("open"),d.show(),this.$clearResults.removeClass("is-visible")):(d.fadeOut(100),b.find(".accordion-section-content").slideDown("fast"),b.addClass("open"),this.$clearResults.addClass("is-visible")),this.searchTerm=a.target.value,this.pages.search=1,this.doSearch(1))},doSearch:function(d){var e,f=this,g=c("#available-menu-items-search"),h=g.find(".accordion-section-content"),i=b.template("available-menu-item");if(f.currentRequest&&f.currentRequest.abort(),!(d<0)){if(d>1)g.addClass("loading-more"),h.attr("aria-busy","true"),b.a11y.speak(a.Menus.data.l10n.itemsLoadingMore);else if(""===f.searchTerm)return h.html(""),void b.a11y.speak("");g.addClass("loading"),f.loading=!0,e=a.previewer.query({excludeCustomizedSaved:!0}),_.extend(e,{"customize-menus-nonce":a.settings.nonce["customize-menus"],wp_customize:"on",search:f.searchTerm,page:d}),f.currentRequest=b.ajax.post("search-avLine truncated
|
!function(a,b,c){"use strict";function d(a){return"nav_menu_item["+a+"]"}function e(b){return b=b||"",b=c("<div>").text(b).html(),b=c.trim(b),b||a.Menus.data.l10n.unnamed}wpNavMenu.originalInit=wpNavMenu.init,wpNavMenu.options.menuItemDepthPerLevel=20,wpNavMenu.options.sortableItems="> .customize-control-nav_menu_item",wpNavMenu.options.targetTolerance=10,wpNavMenu.init=function(){this.jQueryExtensions()},a.Menus=a.Menus||{},a.Menus.data={itemTypes:[],l10n:{},settingTransport:"refresh",phpIntMax:0,defaultSettingValues:{nav_menu:{},nav_menu_item:{}},locationSlugMappedToName:{}},"undefined"!=typeof _wpCustomizeNavMenusSettings&&c.extend(a.Menus.data,_wpCustomizeNavMenusSettings),a.Menus.generatePlaceholderAutoIncrementId=function(){return-Math.ceil(a.Menus.data.phpIntMax*Math.random())},a.Menus.AvailableItemModel=Backbone.Model.extend(c.extend({id:null},a.Menus.data.defaultSettingValues.nav_menu_item)),a.Menus.AvailableItemCollection=Backbone.Collection.extend({model:a.Menus.AvailableItemModel,sort_key:"order",comparator:function(a){return-a.get(this.sort_key)},sortByField:function(a){this.sort_key=a,this.sort()}}),a.Menus.availableMenuItems=new a.Menus.AvailableItemCollection(a.Menus.data.availableMenuItems),a.Menus.insertAutoDraftPost=function(d){var e,f=c.Deferred();return e=b.ajax.post("customize-nav-menus-insert-auto-draft",{"customize-menus-nonce":a.settings.nonce["customize-menus"],wp_customize:"on",params:d}),e.done(function(b){b.post_id&&(a("nav_menus_created_posts").set(a("nav_menus_created_posts").get().concat([b.post_id])),"page"===d.post_type&&(a.section.has("static_front_page")&&a.section("static_front_page").activate(),a.control.each(function(a){var c;"dropdown-pages"===a.params.type&&(c=a.container.find('select[name^="_customize-dropdown-pages-"]'),c.append(new Option(d.post_title,b.post_id)))})),f.resolve(b))}),e.fail(function(a){var b=a||"";"undefined"!=typeof a.message&&(b=a.message),console.error(b),f.rejectWith(b)}),f.promise()},a.Menus.AvailableMenuItemsPanelView=b.Backbone.View.extend({el:"#available-menu-items",events:{"input #menu-items-search":"debounceSearch","keyup #menu-items-search":"debounceSearch","focus .menu-item-tpl":"focus","click .menu-item-tpl":"_submit","click #custom-menu-item-submit":"_submitLink","keypress #custom-menu-item-name":"_submitLink","click .new-content-item .add-content":"_submitNew","keypress .create-item-input":"_submitNew",keydown:"keyboardAccessible"},selected:null,currentMenuControl:null,debounceSearch:null,$search:null,$clearResults:null,searchTerm:"",rendered:!1,pages:{},sectionContent:"",loading:!1,addingNew:!1,initialize:function(){var b=this;a.panel.has("nav_menus")&&(this.$search=c("#menu-items-search"),this.$clearResults=this.$el.find(".clear-results"),this.sectionContent=this.$el.find(".available-menu-items-list"),this.debounceSearch=_.debounce(b.search,500),_.bindAll(this,"close"),c("#customize-controls, .customize-section-back").on("click keydown",function(a){var d=c(a.target).is(".item-delete, .item-delete *"),e=c(a.target).is(".add-new-menu-item, .add-new-menu-item *");!c("body").hasClass("adding-menu-items")||d||e||b.close()}),this.$clearResults.on("click",function(){b.$search.val("").focus().trigger("keyup")}),this.$el.on("input","#custom-menu-item-name.invalid, #custom-menu-item-url.invalid",function(){c(this).removeClass("invalid")}),a.panel("nav_menus").container.bind("expanded",function(){b.rendered||(b.initList(),b.rendered=!0)}),this.sectionContent.scroll(function(){var a=b.$el.find(".accordion-section.open .available-menu-items-list").prop("scrollHeight"),d=b.$el.find(".accordion-section.open").height();if(!b.loading&&c(this).scrollTop()>.75*a-d){var e=c(this).data("type"),f=c(this).data("object");"search"===e?b.searchTerm&&b.doSearch(b.pages.search):b.loadItems([{type:e,object:f}])}}),a.previewer.bind("url",this.close),b.delegateEvents())},search:function(a){var b=c("#available-menu-items-search"),d=c("#available-menu-items .accordion-section").not(b);a&&this.searchTerm!==a.target.value&&(""===a.target.value||b.hasClass("open")?""===a.target.value&&(b.removeClass("open"),d.show(),this.$clearResults.removeClass("is-visible")):(d.fadeOut(100),b.find(".accordion-section-content").slideDown("fast"),b.addClass("open"),this.$clearResults.addClass("is-visible")),this.searchTerm=a.target.value,this.pages.search=1,this.doSearch(1))},doSearch:function(d){var e,f=this,g=c("#available-menu-items-search"),h=g.find(".accordion-section-content"),i=b.template("available-menu-item");if(f.currentRequest&&f.currentRequest.abort(),!(d<0)){if(d>1)g.addClass("loading-more"),h.attr("aria-busy","true"),b.a11y.speak(a.Menus.data.l10n.itemsLoadingMore);else if(""===f.searchTerm)return h.html(""),void b.a11y.speak("");g.addClass("loading"),f.loading=!0,e=a.previewer.query({excludeCustomizedSaved:!0}),_.extend(e,{"customize-menus-nonce":a.settings.nonce["customize-menus"],wp_customize:"on",search:f.searchTerm,page:d}),f.currentRequest=b.ajax.post("search-avLine truncated
|
||||||
completeCallback:function(){e(),b.a11y.speak(a.Menus.data.l10n.menuDeleted),a.panel("nav_menus").focus()}}):e(),a.each(function(a){/^nav_menu\[/.test(a.id)&&!1!==a()&&(i+=1)}),a.control.each(function(b){if(b.extended(a.controlConstructor.widget_form)&&"nav_menu"===b.params.widget_id_base){var c=b.container.find("select");c.val()===String(h)&&c.prop("selectedIndex",0).trigger("change"),b.container.find(".nav-menu-widget-form-controls:first").toggle(0!==i),b.container.find(".nav-menu-widget-no-menus-message:first").toggle(0===i),b.container.find("option[value="+String(h)+"]").remove()}}),f=c("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )"),f.find(".nav-menu-widget-form-controls:first").toggle(0!==i),f.find(".nav-menu-widget-no-menus-message:first").toggle(0===i),f.find("option[value="+String(h)+"]").remove()},_setupLocations:function(){var b=this;b.container.find(".assigned-menu-location").each(function(){var d,f,g=c(this),h=g.find("input[type=checkbox]"),i=a("nav_menu_locations["+h.data("location-id")+"]");f=function(b){var c=a("nav_menu["+String(b)+"]");b&&c&&c()?g.find(".theme-location-set").show().find("span").text(e(c().name)):g.find(".theme-location-set").hide()},d=new a.Element(h),d.set(i.get()===b.params.menu_id),h.on("change",function(){i.set(this.checked?b.params.menu_id:0)}),i.bind(function(a){d.set(a===b.params.menu_id),f(a)}),f(i.get())})},_setupTitle:function(){var b=this;b.setting.bind(function(d){if(d){var f=a.section(b.section()),g=b.params.menu_id,h=f.headContainer.find(".accordion-section-title"),i=f.contentContainer.find(".customize-section-title h3"),j=f.headContainer.find(".menu-in-location"),k=i.find(".customize-action"),l=e(d.name);h.text(l),j.length&&j.appendTo(h),i.text(l),k.length&&k.prependTo(i),a.control.each(function(a){/^nav_menu_locations\[/.test(a.id)&&a.container.find("option[value="+g+"]").text(l)}),f.contentContainer.find(".customize-control-checkbox input").each(function(){c(this).prop("checked")&&c(".current-menu-location-name-"+c(this).data("location-id")).text(l)})}})},toggleReordering:function(c){var d=this.container.find(".add-new-menu-item"),e=this.container.find(".reorder-toggle"),f=this.$sectionContent.find(".item-title");c=Boolean(c),c!==this.$sectionContent.hasClass("reordering")&&(this.isReordering=c,this.$sectionContent.toggleClass("reordering",c),this.$sectionContent.sortable(this.isReordering?"disable":"enable"),this.isReordering?(d.attr({tabindex:"-1","aria-hidden":"true"}),e.attr("aria-label",a.Menus.data.l10n.reorderLabelOff),b.a11y.speak(a.Menus.data.l10n.reorderModeOn),f.attr("aria-hidden","false")):(d.removeAttr("tabindex aria-hidden"),e.attr("aria-label",a.Menus.data.l10n.reorderLabelOn),b.a11y.speak(a.Menus.data.l10n.reorderModeOff),f.attr("aria-hidden","true")),c&&_(this.getMenuItemControls()).each(function(a){a.collapseForm()}))},getMenuItemControls:function(){var b=this,c=[],d=b.params.menu_id;return a.control.each(function(a){"nav_menu_item"===a.params.type&&a.setting()&&d===a.setting().nav_menu_term_id&&c.push(a)}),c},reflowMenuItems:function(){var a,b=this,c=b.getMenuItemControls();a=function(b){var c=[],d=b.currentParent;_.each(b.menuItemControls,function(a){d===a.setting().menu_item_parent&&c.push(a)}),c.sort(function(a,b){return a.setting().position-b.setting().position}),_.each(c,function(c){b.currentAbsolutePosition+=1,c.priority.set(b.currentAbsolutePosition),c.container.hasClass("menu-item-depth-"+String(b.currentDepth))||(_.each(c.container.prop("className").match(/menu-item-depth-\d+/g),function(a){c.container.removeClass(a)}),c.container.addClass("menu-item-depth-"+String(b.currentDepth))),c.container.data("item-depth",b.currentDepth),b.currentDepth+=1,b.currentParent=c.params.menu_item_id,a(b),b.currentDepth-=1,b.currentParent=d}),c.length&&(_(c).each(function(a){a.container.removeClass("move-up-disabled move-down-disabled move-left-disabled move-right-disabled"),0===b.currentDepth?a.container.addClass("move-left-disabled"):10===b.currentDepth&&a.container.addClass("move-right-disabled")}),c[0].container.addClass("move-up-disabled").addClass("move-right-disabled").toggleClass("move-down-disabled",1===c.length),c[c.length-1].container.addClass("move-down-disabled").toggleClass("move-up-disabled",1===c.length))},a({menuItemControls:c,currentParent:0,currentDepth:0,currentAbsolutePosition:0}),b.container.find(".reorder-toggle").toggle(c.length>1)},debouncedReflowMenuItems:_.debounce(function(){this.reflowMenuItems.apply(this,arguments)},0),addItemToMenu:function(d){var e,f,g,h,i,j=this,k=0,l=10;return _.each(j.getMenuItemControls(),function(a){!1!==a.setting()&&(l=Math.max(l,a.priority()),0===a.setting().menu_item_parent&&(k=Math.max(k,a.setting().position)))}),k+=1,l+=1,d=c.extend({},a.Menus.data.defaultSettingValues.nav_menu_item,d,{nav_menu_term_id:j.params.menu_id,original_title:d.title,position:k}),delete d.id,i=a.Menus.generatePlaceholderAutoIncrementId(),e="nav_menu_item["+String(i)+"]",f={type:"nav_mLine truncated
|
})},_handleDeletion:function(){var d,e,f,g=this,h=g.params.menu_id,i=0;d=a.section(g.section()),e=function(){d.container.remove(),a.section.remove(d.id)},d&&d.expanded()?d.collapse({completeCallback:function(){e(),b.a11y.speak(a.Menus.data.l10n.menuDeleted),a.panel("nav_menus").focus()}}):e(),a.each(function(a){/^nav_menu\[/.test(a.id)&&!1!==a()&&(i+=1)}),a.control.each(function(b){if(b.extended(a.controlConstructor.widget_form)&&"nav_menu"===b.params.widget_id_base){var c=b.container.find("select");c.val()===String(h)&&c.prop("selectedIndex",0).trigger("change"),b.container.find(".nav-menu-widget-form-controls:first").toggle(0!==i),b.container.find(".nav-menu-widget-no-menus-message:first").toggle(0===i),b.container.find("option[value="+String(h)+"]").remove()}}),f=c("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )"),f.find(".nav-menu-widget-form-controls:first").toggle(0!==i),f.find(".nav-menu-widget-no-menus-message:first").toggle(0===i),f.find("option[value="+String(h)+"]").remove()},_setupLocations:function(){var b=this;b.container.find(".assigned-menu-location").each(function(){var d,f,g=c(this),h=g.find("input[type=checkbox]"),i=a("nav_menu_locations["+h.data("location-id")+"]");f=function(b){var c=a("nav_menu["+String(b)+"]");b&&c&&c()?g.find(".theme-location-set").show().find("span").text(e(c().name)):g.find(".theme-location-set").hide()},d=new a.Element(h),d.set(i.get()===b.params.menu_id),h.on("change",function(){i.set(this.checked?b.params.menu_id:0)}),i.bind(function(a){d.set(a===b.params.menu_id),f(a)}),f(i.get())})},_setupTitle:function(){var b=this;b.setting.bind(function(d){if(d){var f=a.section(b.section()),g=b.params.menu_id,h=f.headContainer.find(".accordion-section-title"),i=f.contentContainer.find(".customize-section-title h3"),j=f.headContainer.find(".menu-in-location"),k=i.find(".customize-action"),l=e(d.name);h.text(l),j.length&&j.appendTo(h),i.text(l),k.length&&k.prependTo(i),a.control.each(function(a){/^nav_menu_locations\[/.test(a.id)&&a.container.find("option[value="+g+"]").text(l)}),f.contentContainer.find(".customize-control-checkbox input").each(function(){c(this).prop("checked")&&c(".current-menu-location-name-"+c(this).data("location-id")).text(l)})}})},toggleReordering:function(c){var d=this.container.find(".add-new-menu-item"),e=this.container.find(".reorder-toggle"),f=this.$sectionContent.find(".item-title");c=Boolean(c),c!==this.$sectionContent.hasClass("reordering")&&(this.isReordering=c,this.$sectionContent.toggleClass("reordering",c),this.$sectionContent.sortable(this.isReordering?"disable":"enable"),this.isReordering?(d.attr({tabindex:"-1","aria-hidden":"true"}),e.attr("aria-label",a.Menus.data.l10n.reorderLabelOff),b.a11y.speak(a.Menus.data.l10n.reorderModeOn),f.attr("aria-hidden","false")):(d.removeAttr("tabindex aria-hidden"),e.attr("aria-label",a.Menus.data.l10n.reorderLabelOn),b.a11y.speak(a.Menus.data.l10n.reorderModeOff),f.attr("aria-hidden","true")),c&&_(this.getMenuItemControls()).each(function(a){a.collapseForm()}))},getMenuItemControls:function(){var b=this,c=[],d=b.params.menu_id;return a.control.each(function(a){"nav_menu_item"===a.params.type&&a.setting()&&d===a.setting().nav_menu_term_id&&c.push(a)}),c},reflowMenuItems:function(){var a,b=this,c=b.getMenuItemControls();a=function(b){var c=[],d=b.currentParent;_.each(b.menuItemControls,function(a){d===a.setting().menu_item_parent&&c.push(a)}),c.sort(function(a,b){return a.setting().position-b.setting().position}),_.each(c,function(c){b.currentAbsolutePosition+=1,c.priority.set(b.currentAbsolutePosition),c.container.hasClass("menu-item-depth-"+String(b.currentDepth))||(_.each(c.container.prop("className").match(/menu-item-depth-\d+/g),function(a){c.container.removeClass(a)}),c.container.addClass("menu-item-depth-"+String(b.currentDepth))),c.container.data("item-depth",b.currentDepth),b.currentDepth+=1,b.currentParent=c.params.menu_item_id,a(b),b.currentDepth-=1,b.currentParent=d}),c.length&&(_(c).each(function(a){a.container.removeClass("move-up-disabled move-down-disabled move-left-disabled move-right-disabled"),0===b.currentDepth?a.container.addClass("move-left-disabled"):10===b.currentDepth&&a.container.addClass("move-right-disabled")}),c[0].container.addClass("move-up-disabled").addClass("move-right-disabled").toggleClass("move-down-disabled",1===c.length),c[c.length-1].container.addClass("move-down-disabled").toggleClass("move-up-disabled",1===c.length))},a({menuItemControls:c,currentParent:0,currentDepth:0,currentAbsolutePosition:0}),b.container.find(".reorder-toggle").toggle(c.length>1)},debouncedReflowMenuItems:_.debounce(function(){this.reflowMenuItems.apply(this,arguments)},0),addItemToMenu:function(d){var e,f,g,h,i,j=this,k=0,l=10;return _.each(j.getMenuItemControls(),function(a){!1!==a.setting()&&(l=Math.max(l,a.priority()),0===a.setting().menu_item_parent&&(k=Math.max(k,a.setting().position)))}),k+=1,l+=1,d=c.extend({},a.Menus.data.defaultSettingValues.nav_menu_itLine truncated
|
||||||
@@ -115,6 +115,15 @@ inlineEditPost = {
|
|||||||
// enable autocomplete for tags
|
// enable autocomplete for tags
|
||||||
if ( 'post' === type ) {
|
if ( 'post' === type ) {
|
||||||
$( 'tr.inline-editor textarea[data-wp-taxonomy]' ).each( function ( i, element ) {
|
$( 'tr.inline-editor textarea[data-wp-taxonomy]' ).each( function ( i, element ) {
|
||||||
|
/*
|
||||||
|
* While Quick Edit clones the form each time, Bulk Edit always re-uses
|
||||||
|
* the same form. Let's check if an autocomplete instance already exists.
|
||||||
|
*/
|
||||||
|
if ( $( element ).autocomplete( 'instance' ) ) {
|
||||||
|
// jQuery equivalent of `continue` within an `each()` loop.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$( element ).wpTagsSuggest();
|
$( element ).wpTagsSuggest();
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
window.wp=window.wp||{};var inlineEditPost;!function(a,b){inlineEditPost={init:function(){var b=this,c=a("#inline-edit"),d=a("#bulk-edit");b.type=a("table.widefat").hasClass("pages")?"page":"post",b.what="#post-",c.keyup(function(a){if(27===a.which)return inlineEditPost.revert()}),d.keyup(function(a){if(27===a.which)return inlineEditPost.revert()}),a(".cancel",c).click(function(){return inlineEditPost.revert()}),a(".save",c).click(function(){return inlineEditPost.save(this)}),a("td",c).keydown(function(b){if(13===b.which&&!a(b.target).hasClass("cancel"))return inlineEditPost.save(this)}),a(".cancel",d).click(function(){return inlineEditPost.revert()}),a('#inline-edit .inline-edit-private input[value="private"]').click(function(){var b=a("input.inline-edit-password-input");a(this).prop("checked")?b.val("").prop("disabled",!0):b.prop("disabled",!1)}),a("#the-list").on("click","a.editinline",function(a){a.preventDefault(),inlineEditPost.edit(this)}),a("#bulk-edit").find("fieldset:first").after(a("#inline-edit fieldset.inline-edit-categories").clone()).siblings("fieldset:last").prepend(a("#inline-edit label.inline-edit-tags").clone()),a('select[name="_status"] option[value="future"]',d).remove(),a("#doaction, #doaction2").click(function(c){var d;b.whichBulkButtonId=a(this).attr("id"),d=b.whichBulkButtonId.substr(2),"edit"===a('select[name="'+d+'"]').val()?(c.preventDefault(),b.setBulk()):a("form#posts-filter tr.inline-editor").length>0&&b.revert()})},toggle:function(b){var c=this;"none"===a(c.what+c.getId(b)).css("display")?c.revert():c.edit(b)},setBulk:function(){var b="",c=this.type,d=!0;return this.revert(),a("#bulk-edit td").attr("colspan",a("th:visible, td:visible",".widefat:first thead").length),a("table.widefat tbody").prepend(a("#bulk-edit")).prepend('<tr class="hidden"></tr>'),a("#bulk-edit").addClass("inline-editor").show(),a('tbody th.check-column input[type="checkbox"]').each(function(){if(a(this).prop("checked")){d=!1;var c,e=a(this).val();c=a("#inline_"+e+" .post_title").html()||inlineEditL10n.notitle,b+='<div id="ttle'+e+'"><a id="_'+e+'" class="ntdelbutton" title="'+inlineEditL10n.ntdeltitle+'">X</a>'+c+"</div>"}}),d?this.revert():(a("#bulk-titles").html(b),a("#bulk-titles a").click(function(){var b=a(this).attr("id").substr(1);a('table.widefat input[value="'+b+'"]').prop("checked",!1),a("#ttle"+b).remove()}),"post"===c&&a("tr.inline-editor textarea[data-wp-taxonomy]").each(function(b,c){a(c).wpTagsSuggest()}),void a("html, body").animate({scrollTop:0},"fast"))},edit:function(b){var c,d,e,f,g,h,i,j,k,l,m,n=this,o=!0;for(n.revert(),"object"==typeof b&&(b=n.getId(b)),c=["post_title","post_name","post_author","_status","jj","mm","aa","hh","mn","ss","post_password","post_format","menu_order","page_template"],"page"===n.type&&c.push("post_parent"),d=a("#inline-edit").clone(!0),a("td",d).attr("colspan",a("th:visible, td:visible",".widefat:first thead").length),a(n.what+b).removeClass("is-expanded").hide().after(d).after('<tr class="hidden"></tr>'),e=a("#inline_"+b),a(':input[name="post_author"] option[value="'+a(".post_author",e).text()+'"]',d).val()||a(':input[name="post_author"]',d).prepend('<option value="'+a(".post_author",e).text()+'">'+a("#"+n.type+"-"+b+" .author").text()+"</option>"),1===a(':input[name="post_author"] option',d).length&&a("label.inline-edit-author",d).hide(),k=0;k<c.length;k++)l=a("."+c[k],e),l.find("img").replaceWith(function(){return this.alt}),l=l.text(),a(':input[name="'+c[k]+'"]',d).val(l);if("open"===a(".comment_status",e).text()&&a('input[name="comment_status"]',d).prop("checked",!0),"open"===a(".ping_status",e).text()&&a('input[name="ping_status"]',d).prop("checked",!0),"sticky"===a(".sticky",e).text()&&a('input[name="sticky"]',d).prop("checked",!0),a(".post_category",e).each(function(){var c,e=a(this).text();e&&(c=a(this).attr("id").replace("_"+b,""),a("ul."+c+"-checklist :checkbox",d).val(e.split(",")))}),a(".tags_input",e).each(function(){var c=a(this),e=a(this).attr("id").replace("_"+b,""),f=a("textarea.tax_input_"+e,d),g=inlineEditL10n.comma;c.find("img").replaceWith(function(){return this.alt}),c=c.text(),c&&(","!==g&&(c=c.replace(/,/g,g)),f.val(c)),f.wpTagsSuggest()}),f=a("._status",e).text(),"future"!==f&&a('select[name="_status"] option[value="future"]',d).remove(),m=a(".inline-edit-password-input").prop("disabled",!1),"private"===f&&(a('input[name="keep_private"]',d).prop("checked",!0),m.val("").prop("disabled",!0)),g=a('select[name="post_parent"] option[value="'+b+'"]',d),g.length>0){for(h=g[0].className.split("-")[1],i=g;o&&(i=i.next("option"),0!==i.length);)j=i[0].className.split("-")[1],j<=h?o=!1:(i.remove(),i=g);g.remove()}return a(d).attr("id","edit-"+b).addClass("inline-editor").show(),a(".ptitle",d).focus(),!1},save:function(c){var d,e,f=a(".post_status_page").val()||"";return"object"==typeof c&&(c=this.getId(c)),a("table.widefat .spinner").addClass("is-active"),d={action:"inline-save",post_type:typenow,post_ID:c,edit_date:"true",post_status:f},e=a("#Line truncated
|
window.wp=window.wp||{};var inlineEditPost;!function(a,b){inlineEditPost={init:function(){var b=this,c=a("#inline-edit"),d=a("#bulk-edit");b.type=a("table.widefat").hasClass("pages")?"page":"post",b.what="#post-",c.keyup(function(a){if(27===a.which)return inlineEditPost.revert()}),d.keyup(function(a){if(27===a.which)return inlineEditPost.revert()}),a(".cancel",c).click(function(){return inlineEditPost.revert()}),a(".save",c).click(function(){return inlineEditPost.save(this)}),a("td",c).keydown(function(b){if(13===b.which&&!a(b.target).hasClass("cancel"))return inlineEditPost.save(this)}),a(".cancel",d).click(function(){return inlineEditPost.revert()}),a('#inline-edit .inline-edit-private input[value="private"]').click(function(){var b=a("input.inline-edit-password-input");a(this).prop("checked")?b.val("").prop("disabled",!0):b.prop("disabled",!1)}),a("#the-list").on("click","a.editinline",function(a){a.preventDefault(),inlineEditPost.edit(this)}),a("#bulk-edit").find("fieldset:first").after(a("#inline-edit fieldset.inline-edit-categories").clone()).siblings("fieldset:last").prepend(a("#inline-edit label.inline-edit-tags").clone()),a('select[name="_status"] option[value="future"]',d).remove(),a("#doaction, #doaction2").click(function(c){var d;b.whichBulkButtonId=a(this).attr("id"),d=b.whichBulkButtonId.substr(2),"edit"===a('select[name="'+d+'"]').val()?(c.preventDefault(),b.setBulk()):a("form#posts-filter tr.inline-editor").length>0&&b.revert()})},toggle:function(b){var c=this;"none"===a(c.what+c.getId(b)).css("display")?c.revert():c.edit(b)},setBulk:function(){var b="",c=this.type,d=!0;return this.revert(),a("#bulk-edit td").attr("colspan",a("th:visible, td:visible",".widefat:first thead").length),a("table.widefat tbody").prepend(a("#bulk-edit")).prepend('<tr class="hidden"></tr>'),a("#bulk-edit").addClass("inline-editor").show(),a('tbody th.check-column input[type="checkbox"]').each(function(){if(a(this).prop("checked")){d=!1;var c,e=a(this).val();c=a("#inline_"+e+" .post_title").html()||inlineEditL10n.notitle,b+='<div id="ttle'+e+'"><a id="_'+e+'" class="ntdelbutton" title="'+inlineEditL10n.ntdeltitle+'">X</a>'+c+"</div>"}}),d?this.revert():(a("#bulk-titles").html(b),a("#bulk-titles a").click(function(){var b=a(this).attr("id").substr(1);a('table.widefat input[value="'+b+'"]').prop("checked",!1),a("#ttle"+b).remove()}),"post"===c&&a("tr.inline-editor textarea[data-wp-taxonomy]").each(function(b,c){a(c).autocomplete("instance")||a(c).wpTagsSuggest()}),void a("html, body").animate({scrollTop:0},"fast"))},edit:function(b){var c,d,e,f,g,h,i,j,k,l,m,n=this,o=!0;for(n.revert(),"object"==typeof b&&(b=n.getId(b)),c=["post_title","post_name","post_author","_status","jj","mm","aa","hh","mn","ss","post_password","post_format","menu_order","page_template"],"page"===n.type&&c.push("post_parent"),d=a("#inline-edit").clone(!0),a("td",d).attr("colspan",a("th:visible, td:visible",".widefat:first thead").length),a(n.what+b).removeClass("is-expanded").hide().after(d).after('<tr class="hidden"></tr>'),e=a("#inline_"+b),a(':input[name="post_author"] option[value="'+a(".post_author",e).text()+'"]',d).val()||a(':input[name="post_author"]',d).prepend('<option value="'+a(".post_author",e).text()+'">'+a("#"+n.type+"-"+b+" .author").text()+"</option>"),1===a(':input[name="post_author"] option',d).length&&a("label.inline-edit-author",d).hide(),k=0;k<c.length;k++)l=a("."+c[k],e),l.find("img").replaceWith(function(){return this.alt}),l=l.text(),a(':input[name="'+c[k]+'"]',d).val(l);if("open"===a(".comment_status",e).text()&&a('input[name="comment_status"]',d).prop("checked",!0),"open"===a(".ping_status",e).text()&&a('input[name="ping_status"]',d).prop("checked",!0),"sticky"===a(".sticky",e).text()&&a('input[name="sticky"]',d).prop("checked",!0),a(".post_category",e).each(function(){var c,e=a(this).text();e&&(c=a(this).attr("id").replace("_"+b,""),a("ul."+c+"-checklist :checkbox",d).val(e.split(",")))}),a(".tags_input",e).each(function(){var c=a(this),e=a(this).attr("id").replace("_"+b,""),f=a("textarea.tax_input_"+e,d),g=inlineEditL10n.comma;c.find("img").replaceWith(function(){return this.alt}),c=c.text(),c&&(","!==g&&(c=c.replace(/,/g,g)),f.val(c)),f.wpTagsSuggest()}),f=a("._status",e).text(),"future"!==f&&a('select[name="_status"] option[value="future"]',d).remove(),m=a(".inline-edit-password-input").prop("disabled",!1),"private"===f&&(a('input[name="keep_private"]',d).prop("checked",!0),m.val("").prop("disabled",!0)),g=a('select[name="post_parent"] option[value="'+b+'"]',d),g.length>0){for(h=g[0].className.split("-")[1],i=g;o&&(i=i.next("option"),0!==i.length);)j=i[0].className.split("-")[1],j<=h?o=!1:(i.remove(),i=g);g.remove()}return a(d).attr("id","edit-"+b).addClass("inline-editor").show(),a(".ptitle",d).focus(),!1},save:function(c){var d,e,f=a(".post_status_page").val()||"";return"object"==typeof c&&(c=this.getId(c)),a("table.widefat .spinner").addClass("is-active"),d={action:"inline-save",post_type:typenow,post_ID:c,edit_daLine truncated
|
||||||
@@ -120,7 +120,9 @@
|
|||||||
},
|
},
|
||||||
minLength: 2,
|
minLength: 2,
|
||||||
position: {
|
position: {
|
||||||
my: 'left top+2'
|
my: 'left top+2',
|
||||||
|
at: 'left bottom',
|
||||||
|
collision: 'none'
|
||||||
},
|
},
|
||||||
messages: {
|
messages: {
|
||||||
noResults: window.uiAutocompleteL10n.noResults,
|
noResults: window.uiAutocompleteL10n.noResults,
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
!function(a){function b(a){return a.split(new RegExp(e+"\\s*"))}function c(a){return b(a).pop()}if("undefined"!=typeof window.tagsSuggestL10n&&"undefined"!=typeof window.uiAutocompleteL10n){var d=0,e=window.tagsSuggestL10n.tagDelimiter||",";a.fn.wpTagsSuggest=function(f){var g,h,i=a(this);f=f||{};var j=f.taxonomy||i.attr("data-wp-taxonomy")||"post_tag";return delete f.taxonomy,f=a.extend({source:function(b,e){var f;return h===b.term?void e(g):(f=c(b.term),a.get(window.ajaxurl,{action:"ajax-tag-search",tax:j,q:f}).always(function(){i.removeClass("ui-autocomplete-loading")}).done(function(a){var b,c=[];if(a){a=a.split("\n");for(b in a){var f=++d;c.push({id:f,name:a[b]})}g=c,e(c)}else e(c)}),void(h=b.term))},focus:function(a,b){i.attr("aria-activedescendant","wp-tags-autocomplete-"+b.item.id),a.preventDefault()},select:function(c,d){var f=b(i.val());return f.pop(),f.push(d.item.name,""),i.val(f.join(e+" ")),a.ui.keyCode.TAB===c.keyCode?(window.wp.a11y.speak(window.tagsSuggestL10n.termSelected,"assertive"),c.preventDefault()):a.ui.keyCode.ENTER===c.keyCode&&(c.preventDefault(),c.stopPropagation()),!1},open:function(){i.attr("aria-expanded","true")},close:function(){i.attr("aria-expanded","false")},minLength:2,position:{my:"left top+2"},messages:{noResults:window.uiAutocompleteL10n.noResults,results:function(a){return a>1?window.uiAutocompleteL10n.manyResults.replace("%d",a):window.uiAutocompleteL10n.oneResult}}},f),i.on("keydown",function(){i.removeAttr("aria-activedescendant")}).autocomplete(f).autocomplete("instance")._renderItem=function(b,c){return a('<li role="option" id="wp-tags-autocomplete-'+c.id+'">').text(c.name).appendTo(b)},i.attr({role:"combobox","aria-autocomplete":"list","aria-expanded":"false","aria-owns":i.autocomplete("widget").attr("id")}).on("focus",function(){var a=b(i.val()).pop();a&&i.autocomplete("search")}).autocomplete("widget").addClass("wp-tags-autocomplete").attr("role","listbox").removeAttr("tabindex").on("menufocus",function(a,b){b.item.attr("aria-selected","true")}).on("menublur",function(){a(this).find('[aria-selected="true"]').removeAttr("aria-selected")}),this}}}(jQuery);
|
!function(a){function b(a){return a.split(new RegExp(e+"\\s*"))}function c(a){return b(a).pop()}if("undefined"!=typeof window.tagsSuggestL10n&&"undefined"!=typeof window.uiAutocompleteL10n){var d=0,e=window.tagsSuggestL10n.tagDelimiter||",";a.fn.wpTagsSuggest=function(f){var g,h,i=a(this);f=f||{};var j=f.taxonomy||i.attr("data-wp-taxonomy")||"post_tag";return delete f.taxonomy,f=a.extend({source:function(b,e){var f;return h===b.term?void e(g):(f=c(b.term),a.get(window.ajaxurl,{action:"ajax-tag-search",tax:j,q:f}).always(function(){i.removeClass("ui-autocomplete-loading")}).done(function(a){var b,c=[];if(a){a=a.split("\n");for(b in a){var f=++d;c.push({id:f,name:a[b]})}g=c,e(c)}else e(c)}),void(h=b.term))},focus:function(a,b){i.attr("aria-activedescendant","wp-tags-autocomplete-"+b.item.id),a.preventDefault()},select:function(c,d){var f=b(i.val());return f.pop(),f.push(d.item.name,""),i.val(f.join(e+" ")),a.ui.keyCode.TAB===c.keyCode?(window.wp.a11y.speak(window.tagsSuggestL10n.termSelected,"assertive"),c.preventDefault()):a.ui.keyCode.ENTER===c.keyCode&&(c.preventDefault(),c.stopPropagation()),!1},open:function(){i.attr("aria-expanded","true")},close:function(){i.attr("aria-expanded","false")},minLength:2,position:{my:"left top+2",at:"left bottom",collision:"none"},messages:{noResults:window.uiAutocompleteL10n.noResults,results:function(a){return a>1?window.uiAutocompleteL10n.manyResults.replace("%d",a):window.uiAutocompleteL10n.oneResult}}},f),i.on("keydown",function(){i.removeAttr("aria-activedescendant")}).autocomplete(f).autocomplete("instance")._renderItem=function(b,c){return a('<li role="option" id="wp-tags-autocomplete-'+c.id+'">').text(c.name).appendTo(b)},i.attr({role:"combobox","aria-autocomplete":"list","aria-expanded":"false","aria-owns":i.autocomplete("widget").attr("id")}).on("focus",function(){var a=b(i.val()).pop();a&&i.autocomplete("search")}).autocomplete("widget").addClass("wp-tags-autocomplete").attr("role","listbox").removeAttr("tabindex").on("menufocus",function(a,b){b.item.attr("aria-selected","true")}).on("menublur",function(){a(this).find('[aria-selected="true"]').removeAttr("aria-selected")}),this}}}(jQuery);
|
||||||
@@ -156,7 +156,7 @@ $appearance_cap = current_user_can( 'switch_themes') ? 'switch_themes' : 'edit_t
|
|||||||
$menu[60] = array( __( 'Appearance' ), $appearance_cap, 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' );
|
$menu[60] = array( __( 'Appearance' ), $appearance_cap, 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' );
|
||||||
$submenu['themes.php'][5] = array( __( 'Themes' ), $appearance_cap, 'themes.php' );
|
$submenu['themes.php'][5] = array( __( 'Themes' ), $appearance_cap, 'themes.php' );
|
||||||
|
|
||||||
$customize_url = add_query_arg( 'return', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), 'customize.php' );
|
$customize_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), 'customize.php' );
|
||||||
$submenu['themes.php'][6] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' );
|
$submenu['themes.php'][6] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' );
|
||||||
|
|
||||||
if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) {
|
if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) {
|
||||||
|
|||||||
@@ -584,7 +584,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
|||||||
' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>',
|
' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>',
|
||||||
esc_url( add_query_arg( array(
|
esc_url( add_query_arg( array(
|
||||||
array( 'autofocus' => $focus ),
|
array( 'autofocus' => $focus ),
|
||||||
'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ),
|
'return' => urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ),
|
||||||
), admin_url( 'customize.php' ) ) ),
|
), admin_url( 'customize.php' ) ) ),
|
||||||
__( 'Manage with Live Preview' )
|
__( 'Manage with Live Preview' )
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -355,7 +355,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
|||||||
esc_url( add_query_arg(
|
esc_url( add_query_arg(
|
||||||
array(
|
array(
|
||||||
array( 'autofocus' => array( 'panel' => 'widgets' ) ),
|
array( 'autofocus' => array( 'panel' => 'widgets' ) ),
|
||||||
'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) )
|
'return' => urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) )
|
||||||
),
|
),
|
||||||
admin_url( 'customize.php' )
|
admin_url( 'customize.php' )
|
||||||
) ),
|
) ),
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
This guide describes how to build disqus-wordpress from source.
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
git clone git://github.com/disqus/disqus-wordpress.git disqus
|
||||||
|
cd disqus
|
||||||
|
git submodule update --init
|
||||||
|
|
||||||
|
Updating requires also updating submodules:
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
git pull origin master
|
||||||
|
git submodule foreach git pull origin master
|
||||||
|
|
||||||
|
|
||||||
|
After Width: | Height: | Size: 259 KiB |
|
Before Width: | Height: | Size: 388 KiB After Width: | Height: | Size: 168 KiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 111 KiB |
|
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 245 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 139 KiB |
|
After Width: | Height: | Size: 162 KiB |
|
After Width: | Height: | Size: 97 KiB |
@@ -4,7 +4,7 @@ Plugin Name: Disqus Comment System
|
|||||||
Plugin URI: https://disqus.com/
|
Plugin URI: https://disqus.com/
|
||||||
Description: The Disqus comment system replaces your WordPress comment system with your comments hosted and powered by Disqus. Head over to the Comments admin page to set up your Disqus Comment System.
|
Description: The Disqus comment system replaces your WordPress comment system with your comments hosted and powered by Disqus. Head over to the Comments admin page to set up your Disqus Comment System.
|
||||||
Author: Disqus <team@disqus.com>
|
Author: Disqus <team@disqus.com>
|
||||||
Version: 2.86
|
Version: 2.87
|
||||||
Author URI: https://disqus.com/
|
Author URI: https://disqus.com/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ define('DISQUS_CAN_EXPORT', is_file(dirname(__FILE__) . '/export.php'));
|
|||||||
if (!defined('DISQUS_DEBUG')) {
|
if (!defined('DISQUS_DEBUG')) {
|
||||||
define('DISQUS_DEBUG', false);
|
define('DISQUS_DEBUG', false);
|
||||||
}
|
}
|
||||||
define('DISQUS_VERSION', '2.86');
|
define('DISQUS_VERSION', '2.87');
|
||||||
define('DISQUS_SYNC_TIMEOUT', 30);
|
define('DISQUS_SYNC_TIMEOUT', 30);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,39 +1,89 @@
|
|||||||
=== Disqus Comment System ===
|
=== Disqus Comment System ===
|
||||||
Contributors: disqus, alexkingorg, crowdfavorite, zeeg, tail, thetylerhayes, ryanv12
|
Contributors: disqus, alexkingorg, crowdfavorite, zeeg, tail, thetylerhayes, ryanv12, iamfrancisyo, brevityness
|
||||||
Tags: comments, threaded, email, notification, spam, avatars, community, profile, widget, disqus
|
Tags: comments, threaded, email, notification, spam, avatars, community, profile, widget, disqus
|
||||||
Requires at least: 3.2
|
Requires at least: 3.2
|
||||||
Tested up to: 4.6.1
|
Tested up to: 4.6.1
|
||||||
Stable tag: 2.86
|
Stable tag: 2.87
|
||||||
|
|
||||||
The Disqus comment system replaces your WordPress comment system with your comments hosted and powered by Disqus.
|
Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain readers, and grow your audience.
|
||||||
|
|
||||||
== Description ==
|
== Description ==
|
||||||
|
|
||||||
Disqus, pronounced "discuss", is a service and tool for web comments and
|
[Disqus](https://disqus.com/) is the web’s most popular commenting system trusted by millions of publishers to increase reader engagement, grow audience and traffic, and monetize content. Disqus helps publishers of all sizes engage directly with their audiences to build loyalty, retain readers, and foster thriving communities.
|
||||||
discussions. Disqus makes commenting easier and more interactive,
|
|
||||||
while connecting websites and commenters across a thriving discussion
|
|
||||||
community.
|
|
||||||
|
|
||||||
The Disqus for WordPress plugin seamlessly integrates using the Disqus API and by syncing with WordPress comments.
|
The Disqus for WordPress plugin lets site owners and developers easily add Disqus to their sites, replacing the default WordPress comment system. Disqus installs in minutes and imports your existing comments so you don’t lose any.
|
||||||
|
|
||||||
= Disqus for WordPress =
|
= Why Disqus? =
|
||||||
|
|
||||||
* Uses the Disqus API
|
* Simple one-click installation that seamlessly integrates with WordPress without ever needing to edit a single line of code or losing any of your existing comments
|
||||||
* Comments indexable by search engines (SEO-friendly)
|
* Keep users engaged on your site longer with a commenting experience readers love
|
||||||
* Support for importing existing comments
|
* Bring users back to your site with web and email notifications and personalized digests
|
||||||
* Auto-sync (backup) of comments with Disqus and WordPress database
|
* Improve SEO ranking with user generated content
|
||||||
|
* Keep spam out with our best-in-class anti-spam filter powered by Akismet
|
||||||
|
* Single profile for commenting on over 4 million sites including social login support for Facebook, Twitter, and Google accounts
|
||||||
|
* Trusted by sites like Wired, The Atlantic, and EW
|
||||||
|
|
||||||
= Disqus Features =
|
= Disqus Features =
|
||||||
|
|
||||||
* Threaded comments and replies
|
* Syncs comments automatically to WordPress for backup and flexibility if you ever decide to switch to a different platform
|
||||||
* Notifications and reply by email
|
* Loads asynchronously with advanced caching so that Disqus doesn’t affect your site’s performance
|
||||||
* Subscribe and RSS options
|
* Monetization options to grow revenue
|
||||||
* Aggregated comments and social mentions
|
* Export comments to WordPress-compatible XML to backup or migrate to another system
|
||||||
* Powerful moderation and admin tools
|
* Analytics dashboard for measuring overall engagement on your site
|
||||||
* Full spam filtering, blacklists and whitelists
|
* Mobile responsive design
|
||||||
* Support for Disqus community widgets
|
|
||||||
* Connected with a large discussion community
|
= Engagement Features =
|
||||||
* Increased exposure and readership
|
|
||||||
|
* Realtime comments system with fun discussion interactions: voting, photo and video upload, rich media embed (Youtube, Twitter, Vimeo, and more), spoiler tags, mentions
|
||||||
|
* Comment text formatting (e.g. bold, link, italics, quote) using HTML tags as well as code syntax highlighting
|
||||||
|
* Threaded comment display (nested 3 levels) with ability to collapse individual threads
|
||||||
|
* Sort discussion by oldest, newest, and best comments
|
||||||
|
* Flexible login options - Social login with Facebook, Twitter, and Google, SSO, and guest commenting support
|
||||||
|
* Instant activity notifications, email notifications, and digests pull readers back in
|
||||||
|
* User profiles that show you recent comment history and frequented communities
|
||||||
|
* Discovery widget that shows active discussions happening elsewhere on your site
|
||||||
|
|
||||||
|
= Moderation Features =
|
||||||
|
|
||||||
|
* Automatic anti-spam filter powered by Akismet
|
||||||
|
* Automated pre-moderation controls to flag comments based on links, user reputation
|
||||||
|
* Moderate directly in the discussion, via email, or moderation panel
|
||||||
|
* Email notifications for newly posted comments, replies
|
||||||
|
* Moderation Panel that lets you search, filter, sort, and manage your comments
|
||||||
|
* Self-moderation tools like user blocking, comment flagging
|
||||||
|
|
||||||
|
== Support ==
|
||||||
|
|
||||||
|
* Search our [Knowledge Base](https://help.disqus.com/) for solutions to common troubleshooting questions
|
||||||
|
* Check out our support community, [Discuss Disqus](https://disqus.com/home/channel/discussdisqus/), to see if your question has been answered
|
||||||
|
* Talk to our Support team at [disqus.com/support](disqus.com/support)
|
||||||
|
* Visit our [Getting Started](https://help.disqus.com/customer/en/portal/articles/1264625-getting-started) page to learn the basics of Disqus
|
||||||
|
|
||||||
|
== Frequently Asked Questions ==
|
||||||
|
|
||||||
|
= Is Disqus free to use on my site? =
|
||||||
|
|
||||||
|
Yes! Disqus is free to use. We also provide [subscription plans](https://help.disqus.com/customer/en/portal/articles/2759918-disqus-pricing-and-plans) for larger, commercial sites that want access to more powerful moderation and audience tools and customization.
|
||||||
|
|
||||||
|
= How do I customize the look-and-feel of Disqus? =
|
||||||
|
|
||||||
|
Disqus automatically checks your site's font and background color and adapts to either a light or dark color scheme, along with a serif or sans-serif font. If these are detected incorrectly, you can [override them](https://help.disqus.com/customer/en/portal/articles/545277-disqus-appearance-tweaks) in your Settings.
|
||||||
|
|
||||||
|
= Will I lose comments if I deactivate Disqus? =
|
||||||
|
|
||||||
|
The Disqus for WordPress plugin automatically syncs comments back to WordPress. These comments will remain in WordPress should Disqus be deactivated or removed. You can also [export your comments](https://help.disqus.com/customer/en/portal/articles/1104797-importing-exporting#exporting) from Disqus at any time.
|
||||||
|
|
||||||
|
= Can I import my existing WordPress comments into Disqus? =
|
||||||
|
|
||||||
|
Yes, you can import your existing WordPress comments into Disqus during installation.
|
||||||
|
|
||||||
|
= How do I set up Single Sign-On (SSO)? =
|
||||||
|
|
||||||
|
SSO allows users in your database to comment without requiring them to register with Disqus. Access to SSO is currently available as an add-on for users with a [Pro subscription](https://help.disqus.com/customer/en/portal/articles/2759918-disqus-pricing-and-plans#pro-plan). If you would like to enable this feature, [contact our Support team](https://disqus.com/support/?article=contact_SSO). Also check out our guide for [setting up SSO on WordPress](https://help.disqus.com/customer/portal/articles/1148635).
|
||||||
|
|
||||||
|
= I’m experiencing an issue with my installation of Disqus. =
|
||||||
|
|
||||||
|
Check out our [WordPress Troubleshooting guide](https://help.disqus.com/customer/portal/articles/472005-wordpress-troubleshooting) with specific solutions for potential problems you might be experiencing.
|
||||||
|
|
||||||
== Installation ==
|
== Installation ==
|
||||||
|
|
||||||
@@ -48,18 +98,30 @@ The Disqus for WordPress plugin seamlessly integrates using the Disqus API and b
|
|||||||
2. From your blog administration, click on Comments to change settings
|
2. From your blog administration, click on Comments to change settings
|
||||||
(WordPress 2.0 users can find the settings under Options > Disqus.)
|
(WordPress 2.0 users can find the settings under Options > Disqus.)
|
||||||
|
|
||||||
= More documentation =
|
= Installation trouble? =
|
||||||
|
|
||||||
Go to [https://disqus.com/help/wordpress](https://disqus.com/help/wordpress)
|
Go to [https://disqus.com/help/wordpress](https://disqus.com/help/wordpress)
|
||||||
|
|
||||||
== Screenshots ==
|
== Screenshots ==
|
||||||
|
|
||||||
1. Disqus Comments
|
1. Disqus Comments
|
||||||
2. Discovery Box (part of Disqus Comments)
|
2. Comment Reply
|
||||||
3. Moderation Interface
|
3. Disqus Audience Platform
|
||||||
|
4. Featured Comment
|
||||||
|
5. Discovery Box (part of Disqus Comments)
|
||||||
|
6. Mentions
|
||||||
|
7. Real-time Comments
|
||||||
|
8. Commenter User Profile
|
||||||
|
9. Moderation Panel
|
||||||
|
10. Moderation Panel Comments
|
||||||
|
11. Moderate by Email Notifications
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 2.87 =
|
||||||
|
|
||||||
|
* Version update for readme.txt and plugin directory assets
|
||||||
|
|
||||||
= 2.86 =
|
= 2.86 =
|
||||||
|
|
||||||
* Don't attempt to use cURL on IIS servers
|
* Don't attempt to use cURL on IIS servers
|
||||||
|
|||||||
@@ -0,0 +1,380 @@
|
|||||||
|
-- MySQL dump 10.13 Distrib 5.1.48, for apple-darwin10.4.0 (i386)
|
||||||
|
--
|
||||||
|
-- Host: localhost Database: wordpress
|
||||||
|
-- ------------------------------------------------------
|
||||||
|
-- Server version 5.1.48
|
||||||
|
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||||
|
/*!40101 SET NAMES utf8 */;
|
||||||
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
||||||
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
||||||
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
||||||
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
||||||
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
||||||
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `wp_commentmeta`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `wp_commentmeta`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `wp_commentmeta` (
|
||||||
|
`meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`comment_id` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`meta_key` varchar(255) DEFAULT NULL,
|
||||||
|
`meta_value` longtext,
|
||||||
|
PRIMARY KEY (`meta_id`),
|
||||||
|
KEY `comment_id` (`comment_id`),
|
||||||
|
KEY `meta_key` (`meta_key`)
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `wp_commentmeta`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `wp_commentmeta` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `wp_commentmeta` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `wp_commentmeta` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `wp_comments`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `wp_comments`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `wp_comments` (
|
||||||
|
`comment_ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`comment_post_ID` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`comment_author` tinytext NOT NULL,
|
||||||
|
`comment_author_email` varchar(100) NOT NULL DEFAULT '',
|
||||||
|
`comment_author_url` varchar(200) NOT NULL DEFAULT '',
|
||||||
|
`comment_author_IP` varchar(100) NOT NULL DEFAULT '',
|
||||||
|
`comment_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
|
`comment_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
|
`comment_content` text NOT NULL,
|
||||||
|
`comment_karma` int(11) NOT NULL DEFAULT '0',
|
||||||
|
`comment_approved` varchar(20) NOT NULL DEFAULT '1',
|
||||||
|
`comment_agent` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
`comment_type` varchar(20) NOT NULL DEFAULT '',
|
||||||
|
`comment_parent` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`user_id` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||||
|
PRIMARY KEY (`comment_ID`),
|
||||||
|
KEY `comment_approved` (`comment_approved`),
|
||||||
|
KEY `comment_post_ID` (`comment_post_ID`),
|
||||||
|
KEY `comment_approved_date_gmt` (`comment_approved`,`comment_date_gmt`),
|
||||||
|
KEY `comment_date_gmt` (`comment_date_gmt`)
|
||||||
|
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `wp_comments`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `wp_comments` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `wp_comments` DISABLE KEYS */;
|
||||||
|
INSERT INTO `wp_comments` VALUES (1,1,'Mr WordPress','','http://wordpress.org/','','2010-06-08 01:27:22','2010-06-08 01:27:22','Hi, this is a comment.<br />To delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them.',0,'1','','',0,0),(2,1,'dcramer','dcramer@gmail.com','','127.0.0.1','2010-06-08 01:32:37','2010-06-08 06:32:37','Testing',0,'1','Disqus/1.0:47','',0,0),(3,1,'David Cramer','dcramer@gmail.com','http://www.davidcramer.net','127.0.0.1','2010-06-08 17:15:14','2010-06-08 22:15:14','Here's one more test',0,'1','Disqus/1.0:48','',0,0);
|
||||||
|
/*!40000 ALTER TABLE `wp_comments` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `wp_links`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `wp_links`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `wp_links` (
|
||||||
|
`link_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`link_url` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
`link_name` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
`link_image` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
`link_target` varchar(25) NOT NULL DEFAULT '',
|
||||||
|
`link_description` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
`link_visible` varchar(20) NOT NULL DEFAULT 'Y',
|
||||||
|
`link_owner` bigint(20) unsigned NOT NULL DEFAULT '1',
|
||||||
|
`link_rating` int(11) NOT NULL DEFAULT '0',
|
||||||
|
`link_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
|
`link_rel` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
`link_notes` mediumtext NOT NULL,
|
||||||
|
`link_rss` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
PRIMARY KEY (`link_id`),
|
||||||
|
KEY `link_visible` (`link_visible`)
|
||||||
|
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `wp_links`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `wp_links` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `wp_links` DISABLE KEYS */;
|
||||||
|
INSERT INTO `wp_links` VALUES (1,'http://codex.wordpress.org/','Documentation','','','','Y',1,0,'0000-00-00 00:00:00','','',''),(2,'http://wordpress.org/development/','Development Blog','','','','Y',1,0,'0000-00-00 00:00:00','','','http://wordpress.org/development/feed/'),(3,'http://wordpress.org/extend/ideas/','Suggest Ideas','','','','Y',1,0,'0000-00-00 00:00:00','','',''),(4,'http://wordpress.org/support/','Support Forum','','','','Y',1,0,'0000-00-00 00:00:00','','',''),(5,'http://wordpress.org/extend/plugins/','Plugins','','','','Y',1,0,'0000-00-00 00:00:00','','',''),(6,'http://wordpress.org/extend/themes/','Themes','','','','Y',1,0,'0000-00-00 00:00:00','','',''),(7,'http://planet.wordpress.org/','WordPress Planet','','','','Y',1,0,'0000-00-00 00:00:00','','','');
|
||||||
|
/*!40000 ALTER TABLE `wp_links` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `wp_options`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `wp_options`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `wp_options` (
|
||||||
|
`option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`blog_id` int(11) NOT NULL DEFAULT '0',
|
||||||
|
`option_name` varchar(64) NOT NULL DEFAULT '',
|
||||||
|
`option_value` longtext NOT NULL,
|
||||||
|
`autoload` varchar(20) NOT NULL DEFAULT 'yes',
|
||||||
|
PRIMARY KEY (`option_id`),
|
||||||
|
UNIQUE KEY `option_name` (`option_name`)
|
||||||
|
) ENGINE=MyISAM AUTO_INCREMENT=192 DEFAULT CHARSET=utf8;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `wp_options`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `wp_options` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `wp_options` DISABLE KEYS */;
|
||||||
|
INSERT INTO `wp_options` VALUES (1,0,'_transient_random_seed','e69b4e983acc5f314184ba789733f808','yes'),(2,0,'siteurl','http://localhost/~dcramer/wordpress-2.9','yes'),(3,0,'blogname','WordPress 2.9','yes'),(4,0,'blogdescription','Just another WordPress weblog','yes'),(5,0,'users_can_register','0','yes'),(6,0,'admin_email','dcramer@gmail.com','yes'),(7,0,'start_of_week','1','yes'),(8,0,'use_balanceTags','0','yes'),(9,0,'use_smilies','1','yes'),(10,0,'require_name_email','1','yes'),(11,0,'comments_notify','1','yes'),(12,0,'posts_per_rss','10','yes'),(13,0,'rss_use_excerpt','0','yes'),(14,0,'mailserver_url','mail.example.com','yes'),(15,0,'mailserver_login','login@example.com','yes'),(16,0,'mailserver_pass','password','yes'),(17,0,'mailserver_port','110','yes'),(18,0,'default_category','1','yes'),(19,0,'default_comment_status','open','yes'),(20,0,'default_ping_status','open','yes'),(21,0,'default_pingback_flag','1','yes'),(22,0,'default_post_edit_rows','10','yes'),(23,0,'posts_per_page','10','yes'),(24,0,'date_format','F j, Y','yes'),(25,0,'time_format','g:i a','yes'),(26,0,'links_updated_date_format','F j, Y g:i a','yes'),(27,0,'links_recently_updated_prepend','<em>','yes'),(28,0,'links_recently_updated_append','</em>','yes'),(29,0,'links_recently_updated_time','120','yes'),(30,0,'comment_moderation','0','yes'),(31,0,'moderation_notify','1','yes'),(32,0,'permalink_structure','','yes'),(33,0,'gzipcompression','0','yes'),(34,0,'hack_file','0','yes'),(35,0,'blog_charset','UTF-8','yes'),(36,0,'moderation_keys','','no'),(37,0,'active_plugins','a:1:{i:0;s:17:\"disqus/disqus.php\";}','yes'),(38,0,'home','http://localhost/~dcramer/wordpress-2.9','yes'),(39,0,'category_base','','yes'),(40,0,'ping_sites','http://rpc.pingomatic.com/','yes'),(41,0,'advanced_edit','0','yes'),(42,0,'comment_max_links','2','yes'),(43,0,'gmt_offset','0','yes'),(44,0,'default_email_category','1','yes'),(45,0,'recently_edited','','no'),(46,0,'use_linksupdate','0','yes'),(47,0,'template','default','yes'),(48,0,'stylesheet','default','yes'),(49,0,'comment_whitelist','1','yes'),(50,0,'blacklist_keys','','no'),(51,0,'comment_registration','0','yes'),(52,0,'rss_language','en','yes'),(53,0,'html_type','text/html','yes'),(54,0,'use_trackback','0','yes'),(55,0,'default_role','subscriber','yes'),(56,0,'db_version','12329','yes'),(57,0,'uploads_use_yearmonth_folders','1','yes'),(58,0,'upload_path','','yes'),(59,0,'secret','^mmMx31fC%rXXK&%a*CQz$GcUHt@rEWY8w)B9GFwQ@cwRzOyKs)e)l!)h%XPlaH$','yes'),(60,0,'blog_public','1','yes'),(61,0,'default_link_category','2','yes'),(62,0,'show_on_front','posts','yes'),(63,0,'tag_base','','yes'),(64,0,'show_avatars','1','yes'),(65,0,'avatar_rating','G','yes'),(66,0,'upload_url_path','','yes'),(67,0,'thumbnail_size_w','150','yes'),(68,0,'thumbnail_size_h','150','yes'),(69,0,'thumbnail_crop','1','yes'),(70,0,'medium_size_w','300','yes'),(71,0,'medium_size_h','300','yes'),(72,0,'avatar_default','mystery','yes'),(73,0,'enable_app','0','yes'),(74,0,'enable_xmlrpc','0','yes'),(75,0,'large_size_w','1024','yes'),(76,0,'large_size_h','1024','yes'),(77,0,'image_default_link_type','file','yes'),(78,0,'image_default_size','','yes'),(79,0,'image_default_align','','yes'),(80,0,'close_comments_for_old_posts','0','yes'),(81,0,'close_comments_days_old','14','yes'),(82,0,'thread_comments','0','yes'),(83,0,'thread_comments_depth','5','yes'),(84,0,'page_comments','1','yes'),(85,0,'comments_per_page','50','yes'),(86,0,'default_comments_page','newest','yes'),(87,0,'comment_order','asc','yes'),(88,0,'sticky_posts','a:0:{}','yes'),(89,0,'widget_categories','a:2:{i:2;a:0:{}s:12:\"_multiwidget\";i:1;}','yes'),(90,0,'widget_text','a:2:{i:2;a:0:{}s:12:\"_multiwidget\";i:1;}','yes'),(91,0,'widget_rss','a:2:{i:2;a:0:{}s:12:\"_multiwidget\";i:1;}','yes'),(92,0,'timezone_string','','yes'),(93,0,'embed_autourls','1','yes'),(94,0,'embed_size_w','','yes'),(95,0,'embed_size_h','600','yes'),(96,0,'wp_user_roles','a:5:{s:13:\"administrator\";a:2:{s:4:\"name\";s:13:\"Administrator\";s:12:\"capabilities\";a:54:{s:13:\"switch_themes\";b:1;s:11:\"edit_themes\";b:1;s:16:\"activate_plugins\";b:1;s:12:\"edit_plugins\";b:1;s:10:\"edit_users\";b:1;s:10:\"edit_files\";b:1;s:14:\"manage_options\";b:1;s:17:\"moderate_comments\";b:1;s:17:\"manage_categories\";b:1;s:12:\"manage_links\";b:1;s:12:\"upload_files\";b:1;s:6:\"import\";b:1;s:15:\"unfiltered_html\";b:1;s:10:\"edit_posts\";b:1;s:17:\"edit_others_posts\";b:1;s:20:\"edit_published_posts\";b:1;s:13:\"publish_posts\";b:1;s:10:\"edit_pages\";b:1;s:4:\"read\";b:1;s:8:\"level_10\";b:1;s:7:\"level_9\";b:1;s:7:\"level_8\";b:1;s:7:\"level_7\";b:1;s:7:\"level_6\";b:1;s:7:\"level_5\";b:1;s:7:\"level_4\";b:1;s:7:\"level_3\";b:1;s:7:\"level_2\";b:1;s:7:\"level_1\";b:1;s:7:\"level_0\";b:1;s:17:\"edit_others_pages\";b:1;s:20:\"edit_published_pages\";b:1;s:13:\"publish_pages\";b:1;s:12:\"delete_pages\";b:1;s:19:\"delete_others_pages\";b:1;s:22:\"delete_published_pages\";b:1;s:12:\"delete_posts\";b:1;s:19:\"delete_others_posts\"Line truncated
|
||||||
|
/*!40000 ALTER TABLE `wp_options` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `wp_postmeta`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `wp_postmeta`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `wp_postmeta` (
|
||||||
|
`meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`post_id` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`meta_key` varchar(255) DEFAULT NULL,
|
||||||
|
`meta_value` longtext,
|
||||||
|
PRIMARY KEY (`meta_id`),
|
||||||
|
KEY `post_id` (`post_id`),
|
||||||
|
KEY `meta_key` (`meta_key`)
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `wp_postmeta`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `wp_postmeta` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `wp_postmeta` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `wp_postmeta` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `wp_posts`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `wp_posts`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `wp_posts` (
|
||||||
|
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`post_author` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
|
`post_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
|
`post_content` longtext NOT NULL,
|
||||||
|
`post_title` text NOT NULL,
|
||||||
|
`post_excerpt` text NOT NULL,
|
||||||
|
`post_status` varchar(20) NOT NULL DEFAULT 'publish',
|
||||||
|
`comment_status` varchar(20) NOT NULL DEFAULT 'open',
|
||||||
|
`ping_status` varchar(20) NOT NULL DEFAULT 'open',
|
||||||
|
`post_password` varchar(20) NOT NULL DEFAULT '',
|
||||||
|
`post_name` varchar(200) NOT NULL DEFAULT '',
|
||||||
|
`to_ping` text NOT NULL,
|
||||||
|
`pinged` text NOT NULL,
|
||||||
|
`post_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
|
`post_modified_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
|
`post_content_filtered` text NOT NULL,
|
||||||
|
`post_parent` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`guid` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
`menu_order` int(11) NOT NULL DEFAULT '0',
|
||||||
|
`post_type` varchar(20) NOT NULL DEFAULT 'post',
|
||||||
|
`post_mime_type` varchar(100) NOT NULL DEFAULT '',
|
||||||
|
`comment_count` bigint(20) NOT NULL DEFAULT '0',
|
||||||
|
PRIMARY KEY (`ID`),
|
||||||
|
KEY `post_name` (`post_name`),
|
||||||
|
KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`),
|
||||||
|
KEY `post_parent` (`post_parent`)
|
||||||
|
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `wp_posts`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `wp_posts` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `wp_posts` DISABLE KEYS */;
|
||||||
|
INSERT INTO `wp_posts` VALUES (1,1,'2010-06-08 01:27:22','2010-06-08 01:27:22','Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!','Hello world!','','publish','open','open','','hello-world','','','2010-06-08 01:27:22','2010-06-08 01:27:22','',0,'http://localhost/~dcramer/wordpress-2.9/?p=1',0,'post','',3),(2,1,'2010-06-08 01:27:22','2010-06-08 01:27:22','This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many pages like this one or sub-pages as you like and manage all of your content inside of WordPress.','About','','publish','open','open','','about','','','2010-06-08 01:27:22','2010-06-08 01:27:22','',0,'http://localhost/~dcramer/wordpress-2.9/?page_id=2',0,'page','',0);
|
||||||
|
/*!40000 ALTER TABLE `wp_posts` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `wp_term_relationships`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `wp_term_relationships`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `wp_term_relationships` (
|
||||||
|
`object_id` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`term_taxonomy_id` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`term_order` int(11) NOT NULL DEFAULT '0',
|
||||||
|
PRIMARY KEY (`object_id`,`term_taxonomy_id`),
|
||||||
|
KEY `term_taxonomy_id` (`term_taxonomy_id`)
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `wp_term_relationships`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `wp_term_relationships` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `wp_term_relationships` DISABLE KEYS */;
|
||||||
|
INSERT INTO `wp_term_relationships` VALUES (1,2,0),(2,2,0),(3,2,0),(4,2,0),(5,2,0),(6,2,0),(7,2,0),(1,1,0);
|
||||||
|
/*!40000 ALTER TABLE `wp_term_relationships` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `wp_term_taxonomy`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `wp_term_taxonomy`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `wp_term_taxonomy` (
|
||||||
|
`term_taxonomy_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`term_id` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`taxonomy` varchar(32) NOT NULL DEFAULT '',
|
||||||
|
`description` longtext NOT NULL,
|
||||||
|
`parent` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`count` bigint(20) NOT NULL DEFAULT '0',
|
||||||
|
PRIMARY KEY (`term_taxonomy_id`),
|
||||||
|
UNIQUE KEY `term_id_taxonomy` (`term_id`,`taxonomy`),
|
||||||
|
KEY `taxonomy` (`taxonomy`)
|
||||||
|
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `wp_term_taxonomy`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `wp_term_taxonomy` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `wp_term_taxonomy` DISABLE KEYS */;
|
||||||
|
INSERT INTO `wp_term_taxonomy` VALUES (1,1,'category','',0,1),(2,2,'link_category','',0,7);
|
||||||
|
/*!40000 ALTER TABLE `wp_term_taxonomy` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `wp_terms`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `wp_terms`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `wp_terms` (
|
||||||
|
`term_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`name` varchar(200) NOT NULL DEFAULT '',
|
||||||
|
`slug` varchar(200) NOT NULL DEFAULT '',
|
||||||
|
`term_group` bigint(10) NOT NULL DEFAULT '0',
|
||||||
|
PRIMARY KEY (`term_id`),
|
||||||
|
UNIQUE KEY `slug` (`slug`),
|
||||||
|
KEY `name` (`name`)
|
||||||
|
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `wp_terms`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `wp_terms` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `wp_terms` DISABLE KEYS */;
|
||||||
|
INSERT INTO `wp_terms` VALUES (1,'Uncategorized','uncategorized',0),(2,'Blogroll','blogroll',0);
|
||||||
|
/*!40000 ALTER TABLE `wp_terms` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `wp_usermeta`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `wp_usermeta`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `wp_usermeta` (
|
||||||
|
`umeta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`user_id` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`meta_key` varchar(255) DEFAULT NULL,
|
||||||
|
`meta_value` longtext,
|
||||||
|
PRIMARY KEY (`umeta_id`),
|
||||||
|
KEY `user_id` (`user_id`),
|
||||||
|
KEY `meta_key` (`meta_key`)
|
||||||
|
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `wp_usermeta`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `wp_usermeta` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `wp_usermeta` DISABLE KEYS */;
|
||||||
|
INSERT INTO `wp_usermeta` VALUES (1,1,'nickname','admin'),(2,1,'rich_editing','true'),(3,1,'comment_shortcuts','false'),(4,1,'admin_color','fresh'),(5,1,'wp_capabilities','a:1:{s:13:\"administrator\";b:1;}'),(7,1,'wp_user_level','10');
|
||||||
|
/*!40000 ALTER TABLE `wp_usermeta` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `wp_users`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `wp_users`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `wp_users` (
|
||||||
|
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`user_login` varchar(60) NOT NULL DEFAULT '',
|
||||||
|
`user_pass` varchar(64) NOT NULL DEFAULT '',
|
||||||
|
`user_nicename` varchar(50) NOT NULL DEFAULT '',
|
||||||
|
`user_email` varchar(100) NOT NULL DEFAULT '',
|
||||||
|
`user_url` varchar(100) NOT NULL DEFAULT '',
|
||||||
|
`user_registered` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
|
`user_activation_key` varchar(60) NOT NULL DEFAULT '',
|
||||||
|
`user_status` int(11) NOT NULL DEFAULT '0',
|
||||||
|
`display_name` varchar(250) NOT NULL DEFAULT '',
|
||||||
|
PRIMARY KEY (`ID`),
|
||||||
|
KEY `user_login_key` (`user_login`),
|
||||||
|
KEY `user_nicename` (`user_nicename`)
|
||||||
|
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `wp_users`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `wp_users` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `wp_users` DISABLE KEYS */;
|
||||||
|
INSERT INTO `wp_users` VALUES (1,'admin','$P$BPK0.c48l9CzwhitsInt6VZcoLRKL6/','admin','dcramer@gmail.com','','2010-06-08 01:27:22','',0,'admin');
|
||||||
|
/*!40000 ALTER TABLE `wp_users` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||||||
|
|
||||||
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
||||||
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
||||||
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
||||||
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||||
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||||
|
|
||||||
|
-- Dump completed on 2011-02-01 13:39:37
|
||||||
@@ -0,0 +1,128 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
require_once(dirname(__FILE__) . '/../lib/wp-cli.php');
|
||||||
|
require_once(dirname(__FILE__) . '/../disqus.php');
|
||||||
|
|
||||||
|
require_once('PHPUnit/Autoload.php');
|
||||||
|
|
||||||
|
if (!defined('DISQUS_TEST_DATABASE')) {
|
||||||
|
define('DISQUS_TEST_DATABASE', sprintf('%s_test', DB_NAME));
|
||||||
|
}
|
||||||
|
class DisqusPluginTest extends PHPUnit_Framework_TestCase {
|
||||||
|
/**
|
||||||
|
* Sets up our database and fixtures.
|
||||||
|
*/
|
||||||
|
protected function setUp() {
|
||||||
|
global $wpdb;
|
||||||
|
|
||||||
|
// If only we could use transactions for our fixture :(
|
||||||
|
shell_exec(sprintf('mysql -u%s -p%s -D%s -h%s < initial.sql', DB_USER, DB_PASSWORD, DISQUS_TEST_DATABASE, DB_HOST));
|
||||||
|
|
||||||
|
$res = $wpdb->get_results('show tables');
|
||||||
|
assert(count($res) == 11);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function query($query) {
|
||||||
|
global $wpdb;
|
||||||
|
|
||||||
|
$result = $wpdb->query($query);
|
||||||
|
if ($result === false) {
|
||||||
|
throw new Exception(sprintf('Database error: %s', $wpdb->last_error));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_pending_posts_api() {
|
||||||
|
dsq_add_pending_post_id(1);
|
||||||
|
$this->assertEquals(dsq_get_pending_post_ids(), array(1));
|
||||||
|
|
||||||
|
dsq_clear_pending_post_ids(array(1));
|
||||||
|
$this->assertEquals(dsq_get_pending_post_ids(), array());
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * Tests the dsq_sync_post function.
|
||||||
|
// */
|
||||||
|
// public function testSyncPost() {
|
||||||
|
// global $wpdb;
|
||||||
|
//
|
||||||
|
// $post_id = $wpdb->get_var($wpdb->prepare('SELECT max(comment_date) FROM ' . $wpdb->comments . ' WHERE comment_post_ID = %d AND comment_agent LIKE \'Disqus/%%\'', $post->ID));
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// dsq_sync_post();
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// /**
|
||||||
|
// * Tests the dsq_sync_comments function.
|
||||||
|
// */
|
||||||
|
// public function testSyncComments() {
|
||||||
|
// global $wpdb;
|
||||||
|
//
|
||||||
|
// $post_id = $wpdb->get_var($wpdb->prepare('SELECT max(comment_date) FROM ' . $wpdb->comments . ' WHERE comment_post_ID = %d AND comment_agent LIKE \'Disqus/%%\'', $post->ID));
|
||||||
|
//
|
||||||
|
// dsq_sync_comments($comments);
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
function main() {
|
||||||
|
function cleanup() {
|
||||||
|
global $wpdb;
|
||||||
|
|
||||||
|
// we need to ensure that we switch off this database
|
||||||
|
$wpdb->select(null);
|
||||||
|
|
||||||
|
// drop our test database
|
||||||
|
// XXX: why cant we use $wpdb->query ?
|
||||||
|
mysql_query(sprintf('DROP DATABASE `%s`', DISQUS_TEST_DATABASE)) or die(mysql_error());
|
||||||
|
}
|
||||||
|
|
||||||
|
global $wpdb;
|
||||||
|
// $this->query(sprintf('DROP DATABASE IF EXISTS `%s`', DISQUS_TEST_DATABASE));
|
||||||
|
// check existance of test db
|
||||||
|
$exists = $wpdb->get_var($wpdb->prepare('SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = \'%s\'', DISQUS_TEST_DATABASE));
|
||||||
|
|
||||||
|
if (!empty($exists)) {
|
||||||
|
printf("Test database '%s' already exists. Continuing will drop this database and all data!\nContinue? [y/n]\n", $exists);
|
||||||
|
$handle = fopen ("php://stdin","r");
|
||||||
|
$line = strtolower(trim(fgets($handle)));
|
||||||
|
if($line != 'yes' && $line != 'y'){
|
||||||
|
echo "ABORTING!\n";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// setup database
|
||||||
|
$wpdb->query(sprintf('CREATE DATABASE `%s`', DISQUS_TEST_DATABASE));
|
||||||
|
$wpdb->select(DISQUS_TEST_DATABASE);
|
||||||
|
|
||||||
|
// $fp = fopen('initial.sql', 'r');
|
||||||
|
// $buffer = '';
|
||||||
|
// while (($line = fgets($fp)) !== false) {
|
||||||
|
// $buffer .= trim($line);
|
||||||
|
// if (strpos($line, ';')) {
|
||||||
|
// if (!empty($buffer)) {
|
||||||
|
// $this->query($buffer);
|
||||||
|
// }
|
||||||
|
// $buffer = '';
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
|
||||||
|
try {
|
||||||
|
$suite = new PHPUnit_Framework_TestSuite('DisqusPluginTest');
|
||||||
|
$result = $suite->run();
|
||||||
|
|
||||||
|
require_once('PHPUnit/TextUI/ResultPrinter.php');
|
||||||
|
|
||||||
|
$printer = new PHPUnit_TextUI_ResultPrinter();
|
||||||
|
$printer->printResult($result);
|
||||||
|
|
||||||
|
cleanup();
|
||||||
|
} catch (Exception $ex) {
|
||||||
|
cleanup();
|
||||||
|
|
||||||
|
throw $ex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
main();
|
||||||
|
|
||||||
|
?>
|
||||||
@@ -97,6 +97,16 @@ class URE_Ajax_Processor {
|
|||||||
// end of get_users_without_role()
|
// end of get_users_without_role()
|
||||||
|
|
||||||
|
|
||||||
|
protected function grant_roles() {
|
||||||
|
|
||||||
|
$answer = URE_Grant_Roles::process_user_request();
|
||||||
|
|
||||||
|
return $answer;
|
||||||
|
|
||||||
|
}
|
||||||
|
// end of grant_roles()
|
||||||
|
|
||||||
|
|
||||||
protected function _dispatch() {
|
protected function _dispatch() {
|
||||||
switch ($this->action) {
|
switch ($this->action) {
|
||||||
case 'get_caps_to_remove':
|
case 'get_caps_to_remove':
|
||||||
@@ -105,6 +115,9 @@ class URE_Ajax_Processor {
|
|||||||
case 'get_users_without_role':
|
case 'get_users_without_role':
|
||||||
$answer = $this->get_users_without_role();
|
$answer = $this->get_users_without_role();
|
||||||
break;
|
break;
|
||||||
|
case 'grant_roles':
|
||||||
|
$answer = $this->grant_roles();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
$answer = array('result' => 'error', 'message' => 'unknown action "' . $this->action . '"');
|
$answer = array('result' => 'error', 'message' => 'unknown action "' . $this->action . '"');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ class URE_Capabilities_Groups_Manager {
|
|||||||
$caps['manage_links'] = array('core', 'others');
|
$caps['manage_links'] = array('core', 'others');
|
||||||
$caps['upload_files'] = array('core', 'general');
|
$caps['upload_files'] = array('core', 'general');
|
||||||
$caps['import'] = array('core', 'general');
|
$caps['import'] = array('core', 'general');
|
||||||
$caps['unfiltered_html'] = array('core');
|
$caps['unfiltered_html'] = array('core','general');
|
||||||
if ($multisite) {
|
if ($multisite) {
|
||||||
$caps['unfiltered_html'] = array('deprecated');
|
$caps['unfiltered_html'] = array('deprecated');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,167 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Project: User Role Editor plugin
|
||||||
|
* Author: Vladimir Garagulya
|
||||||
|
* Author email: support@role-editor.com
|
||||||
|
* Author URI: https://www.role-editor.com
|
||||||
|
* License: GPL v2+
|
||||||
|
*
|
||||||
|
* Assign multiple roles to the list of selected users directly from the "Users" page
|
||||||
|
*/
|
||||||
|
|
||||||
|
class URE_Grant_Roles {
|
||||||
|
|
||||||
|
private $lib = null;
|
||||||
|
|
||||||
|
public function __construct() {
|
||||||
|
|
||||||
|
$this->lib = URE_Lib::get_instance();
|
||||||
|
|
||||||
|
add_action('restrict_manage_users', array($this, 'show_grant_roles_html'));
|
||||||
|
add_action('admin_head', array(User_Role_Editor::get_instance(), 'add_css_to_users_page'));
|
||||||
|
add_action('admin_enqueue_scripts', array($this, 'load_js'));
|
||||||
|
}
|
||||||
|
// end of __construct()
|
||||||
|
|
||||||
|
|
||||||
|
private static function validate_users($users) {
|
||||||
|
if (!is_array($users)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach ($users as $user_id) {
|
||||||
|
if (!is_numeric($user_id)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!current_user_can('edit_user', $user_id)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
// end of validate_users()
|
||||||
|
|
||||||
|
|
||||||
|
private static function validate_roles($roles) {
|
||||||
|
|
||||||
|
$editable_roles = get_editable_roles();
|
||||||
|
$valid_roles = array_keys($editable_roles);
|
||||||
|
foreach($roles as $role) {
|
||||||
|
if (!in_array($role, $valid_roles)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
// end of validate_roles()
|
||||||
|
|
||||||
|
|
||||||
|
private static function grant_roles_to_user($user_id, $roles) {
|
||||||
|
|
||||||
|
$user = get_user_by('id', $user_id);
|
||||||
|
if (empty($user)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$user->remove_all_caps();
|
||||||
|
foreach($roles as $role) {
|
||||||
|
$user->add_role($role);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
// end of grant_roles_to_user()
|
||||||
|
|
||||||
|
|
||||||
|
public static function process_user_request() {
|
||||||
|
|
||||||
|
$users = $_POST['users'];
|
||||||
|
if (!self::validate_users($users)) {
|
||||||
|
$answer = array('result'=>'error', 'message'=>esc_html__('Invalid data at the users list', 'user-role-editor'));
|
||||||
|
return $answer;
|
||||||
|
}
|
||||||
|
|
||||||
|
$roles = $_POST['roles'];
|
||||||
|
if (!self::validate_roles($roles)) {
|
||||||
|
$answer = array('result'=>'error', 'message'=>esc_html__('Invalid data at the roles list', 'user-role-editor'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!current_user_can('edit_users')) {
|
||||||
|
$answer = array('result'=>'error', 'message'=>esc_html__('Not enough permissions', 'user-role-editor'));
|
||||||
|
return $answer;
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach($users as $user_id) {
|
||||||
|
self::grant_roles_to_user($user_id, $roles);
|
||||||
|
}
|
||||||
|
|
||||||
|
$answer = array();
|
||||||
|
|
||||||
|
return $answer;
|
||||||
|
}
|
||||||
|
// end of process_user_request()
|
||||||
|
|
||||||
|
|
||||||
|
private function select_roles_html() {
|
||||||
|
$show_admin_role = $this->lib->show_admin_role_allowed();
|
||||||
|
$roles = get_editable_roles();
|
||||||
|
foreach ($roles as $role_id => $role) {
|
||||||
|
if (!$show_admin_role && $role_id=='administrator') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
echo '<label for="wp_role_' . $role_id . '"><input type="checkbox" id="wp_role_' . $role_id .
|
||||||
|
'" name="ure_roles[]" value="' . $role_id . '" /> ' .
|
||||||
|
esc_html__($role['name'], 'user-role-editor') .' ('. $role_id .')</label><br />'. PHP_EOL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// end of show_secondary_roles()
|
||||||
|
|
||||||
|
|
||||||
|
public function show_grant_roles_html() {
|
||||||
|
if (!$this->lib->is_right_admin_path('users.php')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<input type="button" name="ure_grant_roles" id="ure_grant_roles" class="button"
|
||||||
|
value="Grant Roles" onclick="ure_show_grant_roles_dialog();">
|
||||||
|
<div id="ure_grant_roles_dialog" class="ure-dialog">
|
||||||
|
<div id="ure_grant_roles_content" style="padding: 10px;">
|
||||||
|
<?php
|
||||||
|
$this->select_roles_html();
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="ure_task_status" style="display:none;position:absolute;top:10px;right:10px;padding:10px;background-color:#000000;color:#ffffff;">
|
||||||
|
<img src="<?php echo URE_PLUGIN_URL .'/images/ajax-loader.gif';?>" width="16" height="16"/> <?php esc_html_e('Working...','user-role-editor');?>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
// end of show_grant_roles_button()
|
||||||
|
|
||||||
|
|
||||||
|
public function load_js() {
|
||||||
|
if (isset($_GET['page'])) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!$this->lib->is_right_admin_path('users.php')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
wp_enqueue_script('jquery-ui-dialog', '', array('jquery-ui-core','jquery-ui-button', 'jquery') );
|
||||||
|
wp_register_script('ure-users-grant-roles', plugins_url('/js/users-grant-roles.js', URE_PLUGIN_FULL_PATH));
|
||||||
|
wp_enqueue_script('ure-users-grant-roles', '', array(), false, true);
|
||||||
|
wp_localize_script('ure-users-grant-roles', 'ure_users_grant_roles_data', array(
|
||||||
|
'wp_nonce' => wp_create_nonce('user-role-editor'),
|
||||||
|
'dialog_title'=> esc_html__('Grant roles to selected users', 'user-role-editor'),
|
||||||
|
'select_users_first'=> esc_html__('Select users to which you wish to grant multiple roles!', 'user-role-editor'),
|
||||||
|
'select_roles_first'=> esc_html__('Select role(s) which you wish to grant!', 'user-role-editor')
|
||||||
|
));
|
||||||
|
}
|
||||||
|
// end of load_js()
|
||||||
|
|
||||||
|
}
|
||||||
|
// end of URE_Grant_Roles class
|
||||||
@@ -71,7 +71,7 @@ class URE_User_Other_Roles {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
wp_enqueue_script('jquery-ui-dialog', false, array('jquery-ui-core', 'jquery-ui-button', 'jquery'));
|
wp_enqueue_script('jquery-ui-dialog', '', array('jquery-ui-core', 'jquery-ui-button', 'jquery'));
|
||||||
wp_register_script('ure-jquery-multiple-select', plugins_url('/js/jquery.multiple.select.js', URE_PLUGIN_FULL_PATH));
|
wp_register_script('ure-jquery-multiple-select', plugins_url('/js/jquery.multiple.select.js', URE_PLUGIN_FULL_PATH));
|
||||||
wp_enqueue_script('ure-jquery-multiple-select');
|
wp_enqueue_script('ure-jquery-multiple-select');
|
||||||
wp_register_script('ure-user-profile-other-roles', plugins_url('/js/ure-user-profile-other-roles.js', URE_PLUGIN_FULL_PATH));
|
wp_register_script('ure-user-profile-other-roles', plugins_url('/js/ure-user-profile-other-roles.js', URE_PLUGIN_FULL_PATH));
|
||||||
|
|||||||
@@ -9,6 +9,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
class User_Role_Editor {
|
class User_Role_Editor {
|
||||||
|
|
||||||
|
protected static $instance = null; // object exemplar reference
|
||||||
|
|
||||||
// plugin specific library object: common code stuff, including options data processor
|
// plugin specific library object: common code stuff, including options data processor
|
||||||
protected $lib = null;
|
protected $lib = null;
|
||||||
|
|
||||||
@@ -25,10 +28,43 @@ class User_Role_Editor {
|
|||||||
// URE pages hook suffixes
|
// URE pages hook suffixes
|
||||||
protected $ure_hook_suffixes = null;
|
protected $ure_hook_suffixes = null;
|
||||||
|
|
||||||
|
|
||||||
|
public static function get_instance() {
|
||||||
|
if (self::$instance===null) {
|
||||||
|
self::$instance = new User_Role_Editor();
|
||||||
|
}
|
||||||
|
|
||||||
|
return self::$instance;
|
||||||
|
}
|
||||||
|
// end of get_instance()
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Private clone method to prevent cloning of the instance of the *Singleton*
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
private function __clone() {
|
||||||
|
|
||||||
|
}
|
||||||
|
// end of __clone()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Private unserialize method to prevent unserializing of the *Singleton*
|
||||||
|
* instance.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
private function __wakeup() {
|
||||||
|
|
||||||
|
}
|
||||||
|
// end of __wakeup()
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* class constructor
|
* class constructor
|
||||||
*/
|
*/
|
||||||
public function __construct() {
|
protected function __construct() {
|
||||||
|
|
||||||
if (empty($this->lib)) {
|
if (empty($this->lib)) {
|
||||||
$this->lib = URE_Lib::get_instance('user_role_editor');
|
$this->lib = URE_Lib::get_instance('user_role_editor');
|
||||||
@@ -152,11 +188,13 @@ class User_Role_Editor {
|
|||||||
$count_users_without_role = $this->lib->get_option('count_users_without_role', 0);
|
$count_users_without_role = $this->lib->get_option('count_users_without_role', 0);
|
||||||
if ($count_users_without_role) {
|
if ($count_users_without_role) {
|
||||||
add_action('restrict_manage_users', array($this, 'move_users_from_no_role_button'));
|
add_action('restrict_manage_users', array($this, 'move_users_from_no_role_button'));
|
||||||
add_action('admin_init', array($this, 'add_css_to_users_page'));
|
add_action('admin_head', array($this, 'add_css_to_users_page'));
|
||||||
add_action('admin_footer', array($this, 'add_js_to_users_page'));
|
add_action('admin_footer', array($this, 'add_js_to_users_page'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
new URE_Grant_Roles();
|
||||||
|
|
||||||
add_action('wp_ajax_ure_ajax', array($this, 'ure_ajax'));
|
add_action('wp_ajax_ure_ajax', array($this, 'ure_ajax'));
|
||||||
}
|
}
|
||||||
// end of plugin_init()
|
// end of plugin_init()
|
||||||
@@ -247,7 +285,7 @@ class User_Role_Editor {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
wp_enqueue_script('jquery-ui-dialog', false, array('jquery-ui-core','jquery-ui-button', 'jquery') );
|
wp_enqueue_script('jquery-ui-dialog', '', array('jquery-ui-core','jquery-ui-button', 'jquery') );
|
||||||
wp_register_script( 'ure-users-js', plugins_url( '/js/ure-users.js', URE_PLUGIN_FULL_PATH ) );
|
wp_register_script( 'ure-users-js', plugins_url( '/js/ure-users.js', URE_PLUGIN_FULL_PATH ) );
|
||||||
wp_enqueue_script ( 'ure-users-js' );
|
wp_enqueue_script ( 'ure-users-js' );
|
||||||
wp_localize_script( 'ure-users-js', 'ure_users_data', array(
|
wp_localize_script( 'ure-users-js', 'ure_users_data', array(
|
||||||
@@ -791,8 +829,8 @@ class User_Role_Editor {
|
|||||||
$confirm_role_update = $this->lib->get_option('ure_confirm_role_update', 1);
|
$confirm_role_update = $this->lib->get_option('ure_confirm_role_update', 1);
|
||||||
$page_url = $this->lib->get_ure_page_url();
|
$page_url = $this->lib->get_ure_page_url();
|
||||||
|
|
||||||
wp_enqueue_script('jquery-ui-dialog', false, array('jquery-ui-core', 'jquery-ui-button', 'jquery'));
|
wp_enqueue_script('jquery-ui-dialog', '', array('jquery-ui-core', 'jquery-ui-button', 'jquery'));
|
||||||
wp_enqueue_script('jquery-ui-selectable', false, array('jquery-ui-core', 'jquery'));
|
wp_enqueue_script('jquery-ui-selectable', '', array('jquery-ui-core', 'jquery'));
|
||||||
wp_register_script('ure-js', plugins_url('/js/ure-js.js', URE_PLUGIN_FULL_PATH));
|
wp_register_script('ure-js', plugins_url('/js/ure-js.js', URE_PLUGIN_FULL_PATH));
|
||||||
wp_enqueue_script('ure-js');
|
wp_enqueue_script('ure-js');
|
||||||
wp_localize_script('ure-js', 'ure_data', array(
|
wp_localize_script('ure-js', 'ure_data', array(
|
||||||
@@ -843,7 +881,7 @@ class User_Role_Editor {
|
|||||||
|
|
||||||
protected function load_settings_js() {
|
protected function load_settings_js() {
|
||||||
|
|
||||||
wp_enqueue_script('jquery-ui-tabs', false, array('jquery-ui-core', 'jquery'));
|
wp_enqueue_script('jquery-ui-tabs', '', array('jquery-ui-core', 'jquery'));
|
||||||
do_action('ure_load_js_settings');
|
do_action('ure_load_js_settings');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ require_once(URE_PLUGIN_DIR .'includes/classes/task-queue.php');
|
|||||||
require_once(URE_PLUGIN_DIR .'includes/classes/own-capabilities.php');
|
require_once(URE_PLUGIN_DIR .'includes/classes/own-capabilities.php');
|
||||||
require_once(URE_PLUGIN_DIR .'includes/classes/bbpress.php');
|
require_once(URE_PLUGIN_DIR .'includes/classes/bbpress.php');
|
||||||
require_once(URE_PLUGIN_DIR .'includes/classes/assign-role.php');
|
require_once(URE_PLUGIN_DIR .'includes/classes/assign-role.php');
|
||||||
|
require_once(URE_PLUGIN_DIR .'includes/classes/grant-roles.php');
|
||||||
require_once(URE_PLUGIN_DIR .'includes/classes/user-other-roles.php');
|
require_once(URE_PLUGIN_DIR .'includes/classes/user-other-roles.php');
|
||||||
require_once(URE_PLUGIN_DIR .'includes/classes/protect-admin.php');
|
require_once(URE_PLUGIN_DIR .'includes/classes/protect-admin.php');
|
||||||
require_once(URE_PLUGIN_DIR .'includes/classes/ajax-processor.php');
|
require_once(URE_PLUGIN_DIR .'includes/classes/ajax-processor.php');
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* User Role Editor for users.php */
|
/* User Role Editor: support of 'Without Roles' button for users.php */
|
||||||
|
|
||||||
jQuery(document).ready(function() {
|
jQuery(document).ready(function() {
|
||||||
jQuery('#move_from_no_role_content').append(ure_users_data.to +' <select id="ure_new_role" name="ure_new_role"></select>');
|
jQuery('#move_from_no_role_content').append(ure_users_data.to +' <select id="ure_new_role" name="ure_new_role"></select>');
|
||||||
|
|||||||
@@ -0,0 +1,100 @@
|
|||||||
|
|
||||||
|
/*
|
||||||
|
* User Role Editor: support of 'Grant Roles' button for Users page (wp-admin/users.php)
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
function ure_get_selected_checkboxes(item_name) {
|
||||||
|
var items = jQuery('input[type="checkbox"][name="'+ item_name +'\\[\\]"]:checked').map(function() { return this.value; }).get();
|
||||||
|
|
||||||
|
return items;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function ure_show_grant_roles_dialog() {
|
||||||
|
var users = ure_get_selected_checkboxes('users');
|
||||||
|
if (users.length==0) {
|
||||||
|
alert(ure_users_grant_roles_data.select_users_first);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
jQuery('#ure_grant_roles_dialog').dialog({
|
||||||
|
dialogClass: 'wp-dialog',
|
||||||
|
modal: true,
|
||||||
|
autoOpen: true,
|
||||||
|
closeOnEscape: true,
|
||||||
|
width: 400,
|
||||||
|
height: 400,
|
||||||
|
resizable: false,
|
||||||
|
title: ure_users_grant_roles_data.dialog_title,
|
||||||
|
'buttons': {
|
||||||
|
'OK': function () {
|
||||||
|
if (!ure_grant_roles()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
jQuery(this).dialog('close');
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
Cancel: function () {
|
||||||
|
jQuery(this).dialog('close');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function ure_grant_roles() {
|
||||||
|
|
||||||
|
var roles = ure_get_selected_checkboxes('ure_roles');
|
||||||
|
if (roles.length==0) {
|
||||||
|
alert(ure_users_grant_roles_data.select_roles_first);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
jQuery('#ure_task_status').show();
|
||||||
|
var users = ure_get_selected_checkboxes('users');
|
||||||
|
var data = {
|
||||||
|
'action': 'ure_ajax',
|
||||||
|
'sub_action':'grant_roles',
|
||||||
|
'users': users,
|
||||||
|
'roles': roles,
|
||||||
|
'wp_nonce': ure_users_grant_roles_data.wp_nonce};
|
||||||
|
jQuery.post(ajaxurl, data, ure_page_reload, 'json');
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function ure_set_url_arg(arg_name, arg_value) {
|
||||||
|
var url = window.location.href;
|
||||||
|
var hash = location.hash;
|
||||||
|
url = url.replace(hash, '');
|
||||||
|
if (url.indexOf(arg_name + "=")>=0) {
|
||||||
|
var prefix = url.substring(0, url.indexOf(arg_name));
|
||||||
|
var suffix = url.substring(url.indexOf(arg_name));
|
||||||
|
suffix = suffix.substring(suffix.indexOf("=") + 1);
|
||||||
|
suffix = (suffix.indexOf("&") >= 0) ? suffix.substring(suffix.indexOf("&")) : "";
|
||||||
|
url = prefix + arg_name + "=" + arg_value + suffix;
|
||||||
|
} else {
|
||||||
|
if (url.indexOf("?") < 0) {
|
||||||
|
url += "?" + arg_name + "=" + arg_value;
|
||||||
|
} else {
|
||||||
|
url += "&" + arg_name + "=" + arg_value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
url = url + hash;
|
||||||
|
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function ure_page_reload(response) {
|
||||||
|
|
||||||
|
if (response.result=='error') {
|
||||||
|
jQuery('#ure_task_status').hide();
|
||||||
|
alert(response.message);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var url = ure_set_url_arg('update', 'promote');
|
||||||
|
document.location = url;
|
||||||
|
}
|
||||||
@@ -3,7 +3,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: User Role Editor 4.19.2\n"
|
"Project-Id-Version: User Role Editor 4.19.2\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2016-12-13 11:10+0700\n"
|
"POT-Creation-Date: 2017-03-04 12:06+0700\n"
|
||||||
"PO-Revision-Date: \n"
|
"PO-Revision-Date: \n"
|
||||||
"Last-Translator: Vladimir Garagulya <vladimir@shinephp.com>\n"
|
"Last-Translator: Vladimir Garagulya <vladimir@shinephp.com>\n"
|
||||||
"Language-Team: https://www.role-editor.com <support@role-editor.com>\n"
|
"Language-Team: https://www.role-editor.com <support@role-editor.com>\n"
|
||||||
@@ -22,9 +22,9 @@ msgid "Custom Post Types"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/capabilities-groups-manager.php:75
|
#: ../includes/classes/capabilities-groups-manager.php:75
|
||||||
#: ../includes/classes/ure-lib.php:230
|
#: ../includes/classes/ure-lib.php:232
|
||||||
#: ../includes/classes/user-role-editor.php:525
|
#: ../includes/classes/user-role-editor.php:563
|
||||||
#: ../includes/classes/user-role-editor.php:556
|
#: ../includes/classes/user-role-editor.php:594
|
||||||
msgid "User Role Editor"
|
msgid "User Role Editor"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -42,7 +42,7 @@ msgid "All"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/capabilities-groups-manager.php:112
|
#: ../includes/classes/capabilities-groups-manager.php:112
|
||||||
#: ../includes/classes/user-role-editor.php:497
|
#: ../includes/classes/user-role-editor.php:535
|
||||||
#: ../includes/settings-template.php:21
|
#: ../includes/settings-template.php:21
|
||||||
msgid "General"
|
msgid "General"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -68,7 +68,7 @@ msgid "Users"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/capabilities-groups-manager.php:121
|
#: ../includes/classes/capabilities-groups-manager.php:121
|
||||||
#: ../includes/classes/user-role-editor.php:515
|
#: ../includes/classes/user-role-editor.php:553
|
||||||
#: ../includes/settings-template.php:34
|
#: ../includes/settings-template.php:34
|
||||||
msgid "Multisite"
|
msgid "Multisite"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -82,9 +82,9 @@ msgid "Custom capabilities"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/capability.php:56 ../includes/classes/capability.php:164
|
#: ../includes/classes/capability.php:56 ../includes/classes/capability.php:164
|
||||||
#: ../includes/classes/ure-lib.php:1223 ../includes/classes/ure-lib.php:1498
|
#: ../includes/classes/ure-lib.php:1225 ../includes/classes/ure-lib.php:1500
|
||||||
#: ../includes/classes/ure-lib.php:1614 ../includes/classes/ure-lib.php:1662
|
#: ../includes/classes/ure-lib.php:1616 ../includes/classes/ure-lib.php:1664
|
||||||
#: ../includes/classes/user-role-editor.php:766
|
#: ../includes/classes/user-role-editor.php:804
|
||||||
msgid "Insufficient permissions to work with User Role Editor"
|
msgid "Insufficient permissions to work with User Role Editor"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -116,6 +116,34 @@ msgstr ""
|
|||||||
msgid "capabilities were removed successfully"
|
msgid "capabilities were removed successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../includes/classes/grant-roles.php:81
|
||||||
|
msgid "Invalid data at the users list"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../includes/classes/grant-roles.php:87
|
||||||
|
msgid "Invalid data at the roles list"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../includes/classes/grant-roles.php:92
|
||||||
|
msgid "Not enough permissions"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../includes/classes/grant-roles.php:137
|
||||||
|
msgid "Working..."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../includes/classes/grant-roles.php:151
|
||||||
|
msgid "Grant roles to selected users"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../includes/classes/grant-roles.php:152
|
||||||
|
msgid "Select users to which you wish to grant multiple roles!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../includes/classes/grant-roles.php:153
|
||||||
|
msgid "Select role(s) which you wish to grant!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/role-additional-options.php:69
|
#: ../includes/classes/role-additional-options.php:69
|
||||||
msgid "Hide admin bar"
|
msgid "Hide admin bar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -255,414 +283,414 @@ msgid ""
|
|||||||
"limitation."
|
"limitation."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:207
|
#: ../includes/classes/ure-lib.php:209
|
||||||
msgid "Error: wrong request"
|
msgid "Error: wrong request"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:291
|
#: ../includes/classes/ure-lib.php:293
|
||||||
msgid "Error: "
|
msgid "Error: "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:291
|
#: ../includes/classes/ure-lib.php:293
|
||||||
msgid "Role"
|
msgid "Role"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:292
|
#: ../includes/classes/ure-lib.php:294
|
||||||
msgid "does not exist"
|
msgid "does not exist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:335
|
#: ../includes/classes/ure-lib.php:337
|
||||||
msgid "Role is updated successfully"
|
msgid "Role is updated successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:337
|
#: ../includes/classes/ure-lib.php:339
|
||||||
msgid "Roles are updated for all network"
|
msgid "Roles are updated for all network"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:343
|
#: ../includes/classes/ure-lib.php:345
|
||||||
msgid "Error occured during role(s) update"
|
msgid "Error occured during role(s) update"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:350
|
#: ../includes/classes/ure-lib.php:352
|
||||||
msgid "User capabilities are updated successfully"
|
msgid "User capabilities are updated successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:355
|
#: ../includes/classes/ure-lib.php:357
|
||||||
msgid "Error occured during user update"
|
msgid "Error occured during user update"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:413
|
#: ../includes/classes/ure-lib.php:415
|
||||||
msgid "User Roles are restored to WordPress default values. "
|
msgid "User Roles are restored to WordPress default values. "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1461
|
#: ../includes/classes/ure-lib.php:1463
|
||||||
msgid "Error is occur. Please check the log file."
|
msgid "Error is occur. Please check the log file."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1507 ../includes/classes/ure-lib.php:1574
|
#: ../includes/classes/ure-lib.php:1509 ../includes/classes/ure-lib.php:1576
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error: Role ID must contain latin characters, digits, hyphens or underscore "
|
"Error: Role ID must contain latin characters, digits, hyphens or underscore "
|
||||||
"only!"
|
"only!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1511 ../includes/classes/ure-lib.php:1578
|
#: ../includes/classes/ure-lib.php:1513 ../includes/classes/ure-lib.php:1580
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error: WordPress does not support numeric Role name (ID). Add latin "
|
"Error: WordPress does not support numeric Role name (ID). Add latin "
|
||||||
"characters to it."
|
"characters to it."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1526
|
#: ../includes/classes/ure-lib.php:1528
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Role %s exists already"
|
msgid "Role %s exists already"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1541
|
#: ../includes/classes/ure-lib.php:1543
|
||||||
msgid "Error is encountered during new role create operation"
|
msgid "Error is encountered during new role create operation"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1543
|
#: ../includes/classes/ure-lib.php:1545
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Role %s is created successfully"
|
msgid "Role %s is created successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1567
|
#: ../includes/classes/ure-lib.php:1569
|
||||||
msgid "Error: Role ID is empty!"
|
msgid "Error: Role ID is empty!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1585
|
#: ../includes/classes/ure-lib.php:1587
|
||||||
msgid "Error: Empty role display name is not allowed."
|
msgid "Error: Empty role display name is not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1592
|
#: ../includes/classes/ure-lib.php:1594
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Role %s does not exists"
|
msgid "Role %s does not exists"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1600
|
#: ../includes/classes/ure-lib.php:1602
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Role %s is renamed to %s successfully"
|
msgid "Role %s is renamed to %s successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1673
|
#: ../includes/classes/ure-lib.php:1675
|
||||||
msgid "Error encountered during role delete operation"
|
msgid "Error encountered during role delete operation"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1675
|
#: ../includes/classes/ure-lib.php:1677
|
||||||
msgid "Unused roles are deleted successfully"
|
msgid "Unused roles are deleted successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1677
|
#: ../includes/classes/ure-lib.php:1679
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Role %s is deleted successfully"
|
msgid "Role %s is deleted successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1708
|
#: ../includes/classes/ure-lib.php:1710
|
||||||
msgid "Error encountered during default role change operation"
|
msgid "Error encountered during default role change operation"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1711
|
#: ../includes/classes/ure-lib.php:1713
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Default role for new users is set to %s successfully"
|
msgid "Default role for new users is set to %s successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1714
|
#: ../includes/classes/ure-lib.php:1716
|
||||||
msgid "Can not set Administrator role as a default one"
|
msgid "Can not set Administrator role as a default one"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1716
|
#: ../includes/classes/ure-lib.php:1718
|
||||||
msgid "This role does not exist - "
|
msgid "This role does not exist - "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1732
|
#: ../includes/classes/ure-lib.php:1734
|
||||||
msgid "Editor"
|
msgid "Editor"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1733
|
#: ../includes/classes/ure-lib.php:1735
|
||||||
msgid "Author"
|
msgid "Author"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1734
|
#: ../includes/classes/ure-lib.php:1736
|
||||||
msgid "Contributor"
|
msgid "Contributor"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1735
|
#: ../includes/classes/ure-lib.php:1737
|
||||||
msgid "Subscriber"
|
msgid "Subscriber"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1737
|
#: ../includes/classes/ure-lib.php:1739
|
||||||
msgid "Switch themes"
|
msgid "Switch themes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1738
|
#: ../includes/classes/ure-lib.php:1740
|
||||||
msgid "Edit themes"
|
msgid "Edit themes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1739
|
#: ../includes/classes/ure-lib.php:1741
|
||||||
msgid "Activate plugins"
|
msgid "Activate plugins"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1740
|
#: ../includes/classes/ure-lib.php:1742
|
||||||
msgid "Edit plugins"
|
msgid "Edit plugins"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1741
|
#: ../includes/classes/ure-lib.php:1743
|
||||||
msgid "Edit users"
|
msgid "Edit users"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1742
|
#: ../includes/classes/ure-lib.php:1744
|
||||||
msgid "Edit files"
|
msgid "Edit files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1743
|
#: ../includes/classes/ure-lib.php:1745
|
||||||
msgid "Manage options"
|
msgid "Manage options"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1744
|
#: ../includes/classes/ure-lib.php:1746
|
||||||
msgid "Moderate comments"
|
msgid "Moderate comments"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1745
|
#: ../includes/classes/ure-lib.php:1747
|
||||||
msgid "Manage categories"
|
msgid "Manage categories"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1746
|
#: ../includes/classes/ure-lib.php:1748
|
||||||
msgid "Manage links"
|
msgid "Manage links"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1747
|
#: ../includes/classes/ure-lib.php:1749
|
||||||
msgid "Upload files"
|
msgid "Upload files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1748
|
#: ../includes/classes/ure-lib.php:1750
|
||||||
msgid "Import"
|
msgid "Import"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1749
|
#: ../includes/classes/ure-lib.php:1751
|
||||||
msgid "Unfiltered html"
|
msgid "Unfiltered html"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1750
|
#: ../includes/classes/ure-lib.php:1752
|
||||||
msgid "Edit posts"
|
msgid "Edit posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1751
|
#: ../includes/classes/ure-lib.php:1753
|
||||||
msgid "Edit others posts"
|
msgid "Edit others posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1752
|
#: ../includes/classes/ure-lib.php:1754
|
||||||
msgid "Edit published posts"
|
msgid "Edit published posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1753
|
#: ../includes/classes/ure-lib.php:1755
|
||||||
msgid "Publish posts"
|
msgid "Publish posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1754
|
#: ../includes/classes/ure-lib.php:1756
|
||||||
msgid "Edit pages"
|
msgid "Edit pages"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1755
|
#: ../includes/classes/ure-lib.php:1757
|
||||||
msgid "Read"
|
msgid "Read"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1756
|
#: ../includes/classes/ure-lib.php:1758
|
||||||
msgid "Level 10"
|
msgid "Level 10"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1757
|
#: ../includes/classes/ure-lib.php:1759
|
||||||
msgid "Level 9"
|
msgid "Level 9"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1758
|
#: ../includes/classes/ure-lib.php:1760
|
||||||
msgid "Level 8"
|
msgid "Level 8"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1759
|
#: ../includes/classes/ure-lib.php:1761
|
||||||
msgid "Level 7"
|
msgid "Level 7"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1760
|
#: ../includes/classes/ure-lib.php:1762
|
||||||
msgid "Level 6"
|
msgid "Level 6"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1761
|
#: ../includes/classes/ure-lib.php:1763
|
||||||
msgid "Level 5"
|
msgid "Level 5"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1762
|
#: ../includes/classes/ure-lib.php:1764
|
||||||
msgid "Level 4"
|
msgid "Level 4"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1763
|
#: ../includes/classes/ure-lib.php:1765
|
||||||
msgid "Level 3"
|
msgid "Level 3"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1764
|
#: ../includes/classes/ure-lib.php:1766
|
||||||
msgid "Level 2"
|
msgid "Level 2"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1765
|
#: ../includes/classes/ure-lib.php:1767
|
||||||
msgid "Level 1"
|
msgid "Level 1"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1766
|
#: ../includes/classes/ure-lib.php:1768
|
||||||
msgid "Level 0"
|
msgid "Level 0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1767
|
#: ../includes/classes/ure-lib.php:1769
|
||||||
msgid "Edit others pages"
|
msgid "Edit others pages"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1768
|
#: ../includes/classes/ure-lib.php:1770
|
||||||
msgid "Edit published pages"
|
msgid "Edit published pages"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1769
|
#: ../includes/classes/ure-lib.php:1771
|
||||||
msgid "Publish pages"
|
msgid "Publish pages"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1770
|
#: ../includes/classes/ure-lib.php:1772
|
||||||
msgid "Delete pages"
|
msgid "Delete pages"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1771
|
#: ../includes/classes/ure-lib.php:1773
|
||||||
msgid "Delete others pages"
|
msgid "Delete others pages"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1772
|
#: ../includes/classes/ure-lib.php:1774
|
||||||
msgid "Delete published pages"
|
msgid "Delete published pages"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1773
|
#: ../includes/classes/ure-lib.php:1775
|
||||||
msgid "Delete posts"
|
msgid "Delete posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1774
|
#: ../includes/classes/ure-lib.php:1776
|
||||||
msgid "Delete others posts"
|
msgid "Delete others posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1775
|
#: ../includes/classes/ure-lib.php:1777
|
||||||
msgid "Delete published posts"
|
msgid "Delete published posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1776
|
#: ../includes/classes/ure-lib.php:1778
|
||||||
msgid "Delete private posts"
|
msgid "Delete private posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1777
|
#: ../includes/classes/ure-lib.php:1779
|
||||||
msgid "Edit private posts"
|
msgid "Edit private posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1778
|
#: ../includes/classes/ure-lib.php:1780
|
||||||
msgid "Read private posts"
|
msgid "Read private posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1779
|
#: ../includes/classes/ure-lib.php:1781
|
||||||
msgid "Delete private pages"
|
msgid "Delete private pages"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1780
|
#: ../includes/classes/ure-lib.php:1782
|
||||||
msgid "Edit private pages"
|
msgid "Edit private pages"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1781
|
#: ../includes/classes/ure-lib.php:1783
|
||||||
msgid "Read private pages"
|
msgid "Read private pages"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1782
|
#: ../includes/classes/ure-lib.php:1784
|
||||||
msgid "Delete users"
|
msgid "Delete users"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1783
|
#: ../includes/classes/ure-lib.php:1785
|
||||||
msgid "Create users"
|
msgid "Create users"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1784
|
#: ../includes/classes/ure-lib.php:1786
|
||||||
msgid "Unfiltered upload"
|
msgid "Unfiltered upload"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1785
|
#: ../includes/classes/ure-lib.php:1787
|
||||||
msgid "Edit dashboard"
|
msgid "Edit dashboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1786
|
#: ../includes/classes/ure-lib.php:1788
|
||||||
msgid "Update plugins"
|
msgid "Update plugins"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1787
|
#: ../includes/classes/ure-lib.php:1789
|
||||||
msgid "Delete plugins"
|
msgid "Delete plugins"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1788
|
#: ../includes/classes/ure-lib.php:1790
|
||||||
msgid "Install plugins"
|
msgid "Install plugins"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1789
|
#: ../includes/classes/ure-lib.php:1791
|
||||||
msgid "Update themes"
|
msgid "Update themes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1790
|
#: ../includes/classes/ure-lib.php:1792
|
||||||
msgid "Install themes"
|
msgid "Install themes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1791
|
#: ../includes/classes/ure-lib.php:1793
|
||||||
msgid "Update core"
|
msgid "Update core"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1792
|
#: ../includes/classes/ure-lib.php:1794
|
||||||
msgid "List users"
|
msgid "List users"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1793
|
#: ../includes/classes/ure-lib.php:1795
|
||||||
msgid "Remove users"
|
msgid "Remove users"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1794
|
#: ../includes/classes/ure-lib.php:1796
|
||||||
msgid "Add users"
|
msgid "Add users"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1795
|
#: ../includes/classes/ure-lib.php:1797
|
||||||
msgid "Promote users"
|
msgid "Promote users"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1796
|
#: ../includes/classes/ure-lib.php:1798
|
||||||
msgid "Edit theme options"
|
msgid "Edit theme options"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1797
|
#: ../includes/classes/ure-lib.php:1799
|
||||||
msgid "Delete themes"
|
msgid "Delete themes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1798
|
#: ../includes/classes/ure-lib.php:1800
|
||||||
msgid "Export"
|
msgid "Export"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1963
|
#: ../includes/classes/ure-lib.php:1965
|
||||||
msgid "Version:"
|
msgid "Version:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1964
|
#: ../includes/classes/ure-lib.php:1966
|
||||||
msgid "Author's website"
|
msgid "Author's website"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1965
|
#: ../includes/classes/ure-lib.php:1967
|
||||||
msgid "Plugin webpage"
|
msgid "Plugin webpage"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1966
|
#: ../includes/classes/ure-lib.php:1968
|
||||||
msgid "Plugin download"
|
msgid "Plugin download"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1967
|
#: ../includes/classes/ure-lib.php:1969
|
||||||
#: ../includes/classes/user-role-editor.php:474
|
#: ../includes/classes/user-role-editor.php:512
|
||||||
msgid "Changelog"
|
msgid "Changelog"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:1968
|
#: ../includes/classes/ure-lib.php:1970
|
||||||
msgid "FAQ"
|
msgid "FAQ"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/ure-lib.php:2150
|
#: ../includes/classes/ure-lib.php:2152
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Denied: %s"
|
msgid "Denied: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -677,7 +705,7 @@ msgid "Select additional roles for this user"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-other-roles.php:161
|
#: ../includes/classes/user-other-roles.php:161
|
||||||
#: ../includes/classes/user-role-editor.php:356
|
#: ../includes/classes/user-role-editor.php:394
|
||||||
msgid "Capabilities"
|
msgid "Capabilities"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -689,179 +717,179 @@ msgstr ""
|
|||||||
msgid "Additional Capabilities"
|
msgid "Additional Capabilities"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:255
|
#: ../includes/classes/user-role-editor.php:293
|
||||||
msgid "Change role for users without role"
|
msgid "Change role for users without role"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:256
|
#: ../includes/classes/user-role-editor.php:294
|
||||||
msgid "To:"
|
msgid "To:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:257
|
#: ../includes/classes/user-role-editor.php:295
|
||||||
msgid "No rights"
|
msgid "No rights"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:258
|
#: ../includes/classes/user-role-editor.php:296
|
||||||
msgid "Provide new role"
|
msgid "Provide new role"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:330
|
#: ../includes/classes/user-role-editor.php:368
|
||||||
#: ../includes/classes/user-role-editor.php:332
|
#: ../includes/classes/user-role-editor.php:370
|
||||||
msgid "You do not have permission to edit this user."
|
msgid "You do not have permission to edit this user."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:448
|
#: ../includes/classes/user-role-editor.php:486
|
||||||
#: ../includes/classes/user-role-editor.php:461
|
#: ../includes/classes/user-role-editor.php:499
|
||||||
msgid "Settings"
|
msgid "Settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:503
|
#: ../includes/classes/user-role-editor.php:541
|
||||||
#: ../includes/settings-template.php:26
|
#: ../includes/settings-template.php:26
|
||||||
msgid "Additional Modules"
|
msgid "Additional Modules"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:509
|
#: ../includes/classes/user-role-editor.php:547
|
||||||
#: ../includes/settings-template.php:30
|
#: ../includes/settings-template.php:30
|
||||||
msgid "Default Roles"
|
msgid "Default Roles"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:619
|
#: ../includes/classes/user-role-editor.php:657
|
||||||
#: ../includes/classes/user-role-editor.php:637
|
#: ../includes/classes/user-role-editor.php:675
|
||||||
#: ../includes/classes/user-role-editor.php:682
|
#: ../includes/classes/user-role-editor.php:720
|
||||||
msgid "User Role Editor options are updated"
|
msgid "User Role Editor options are updated"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:665
|
#: ../includes/classes/user-role-editor.php:703
|
||||||
msgid "Default Roles are updated"
|
msgid "Default Roles are updated"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:691
|
#: ../includes/classes/user-role-editor.php:729
|
||||||
msgid ""
|
msgid ""
|
||||||
"You do not have sufficient permissions to manage options for User Role "
|
"You do not have sufficient permissions to manage options for User Role "
|
||||||
"Editor."
|
"Editor."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:804
|
#: ../includes/classes/user-role-editor.php:842
|
||||||
msgid "Confirm"
|
msgid "Confirm"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:805
|
#: ../includes/classes/user-role-editor.php:843
|
||||||
msgid "Yes"
|
msgid "Yes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:806
|
#: ../includes/classes/user-role-editor.php:844
|
||||||
msgid "No"
|
msgid "No"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:807
|
#: ../includes/classes/user-role-editor.php:845
|
||||||
msgid "Select All"
|
msgid "Select All"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:808
|
#: ../includes/classes/user-role-editor.php:846
|
||||||
msgid "Unselect All"
|
msgid "Unselect All"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:809
|
#: ../includes/classes/user-role-editor.php:847
|
||||||
msgid "Reverse"
|
msgid "Reverse"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:810
|
#: ../includes/classes/user-role-editor.php:848
|
||||||
msgid "Update"
|
msgid "Update"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:811
|
#: ../includes/classes/user-role-editor.php:849
|
||||||
msgid "Please confirm permissions update"
|
msgid "Please confirm permissions update"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:812
|
#: ../includes/classes/user-role-editor.php:850
|
||||||
msgid "Add New Role"
|
msgid "Add New Role"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:813
|
#: ../includes/classes/user-role-editor.php:851
|
||||||
#: ../includes/classes/user-role-editor.php:818
|
#: ../includes/classes/user-role-editor.php:856
|
||||||
msgid "Rename Role"
|
msgid "Rename Role"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:814
|
#: ../includes/classes/user-role-editor.php:852
|
||||||
msgid " Role name (ID) can not be empty!"
|
msgid " Role name (ID) can not be empty!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:815
|
#: ../includes/classes/user-role-editor.php:853
|
||||||
msgid ""
|
msgid ""
|
||||||
" Role name (ID) must contain latin characters, digits, hyphens or underscore "
|
" Role name (ID) must contain latin characters, digits, hyphens or underscore "
|
||||||
"only!"
|
"only!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:816
|
#: ../includes/classes/user-role-editor.php:854
|
||||||
msgid ""
|
msgid ""
|
||||||
" WordPress does not support numeric Role name (ID). Add latin characters to "
|
" WordPress does not support numeric Role name (ID). Add latin characters to "
|
||||||
"it."
|
"it."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:817
|
#: ../includes/classes/user-role-editor.php:855
|
||||||
msgid "Add Role"
|
msgid "Add Role"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:819
|
#: ../includes/classes/user-role-editor.php:857
|
||||||
msgid "Delete Role"
|
msgid "Delete Role"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:820
|
#: ../includes/classes/user-role-editor.php:858
|
||||||
msgid "Cancel"
|
msgid "Cancel"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:821
|
#: ../includes/classes/user-role-editor.php:859
|
||||||
msgid "Add Capability"
|
msgid "Add Capability"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:822
|
#: ../includes/classes/user-role-editor.php:860
|
||||||
#: ../includes/classes/user-role-editor.php:831
|
#: ../includes/classes/user-role-editor.php:869
|
||||||
msgid "Delete Capability"
|
msgid "Delete Capability"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:823
|
#: ../includes/classes/user-role-editor.php:861
|
||||||
msgid "Reset"
|
msgid "Reset"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:824
|
#: ../includes/classes/user-role-editor.php:862
|
||||||
msgid "DANGER! Resetting will restore default settings from WordPress Core."
|
msgid "DANGER! Resetting will restore default settings from WordPress Core."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:825
|
#: ../includes/classes/user-role-editor.php:863
|
||||||
msgid ""
|
msgid ""
|
||||||
"If any plugins have changed capabilities in any way upon installation (such "
|
"If any plugins have changed capabilities in any way upon installation (such "
|
||||||
"as S2Member, WooCommerce, and many more), those capabilities will be DELETED!"
|
"as S2Member, WooCommerce, and many more), those capabilities will be DELETED!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:826
|
#: ../includes/classes/user-role-editor.php:864
|
||||||
msgid ""
|
msgid ""
|
||||||
"For more information on how to undo changes and restore plugin capabilities "
|
"For more information on how to undo changes and restore plugin capabilities "
|
||||||
"go to"
|
"go to"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:828
|
#: ../includes/classes/user-role-editor.php:866
|
||||||
msgid "Continue?"
|
msgid "Continue?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:829
|
#: ../includes/classes/user-role-editor.php:867
|
||||||
msgid "Default Role"
|
msgid "Default Role"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:830
|
#: ../includes/classes/user-role-editor.php:868
|
||||||
msgid "Set New Default Role"
|
msgid "Set New Default Role"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:832
|
#: ../includes/classes/user-role-editor.php:870
|
||||||
msgid ""
|
msgid ""
|
||||||
"Warning! Be careful - removing critical capability could crash some plugin "
|
"Warning! Be careful - removing critical capability could crash some plugin "
|
||||||
"or other custom code"
|
"or other custom code"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:833
|
#: ../includes/classes/user-role-editor.php:871
|
||||||
msgid " Capability name (ID) can not be empty!"
|
msgid " Capability name (ID) can not be empty!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../includes/classes/user-role-editor.php:834
|
#: ../includes/classes/user-role-editor.php:872
|
||||||
msgid ""
|
msgid ""
|
||||||
" Capability name (ID) must contain latin characters, digits, hyphens or "
|
" Capability name (ID) must contain latin characters, digits, hyphens or "
|
||||||
"underscore only!"
|
"underscore only!"
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ Contributors: shinephp
|
|||||||
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vladimir%40shinephp%2ecom&lc=RU&item_name=ShinePHP%2ecom&item_number=User%20Role%20Editor%20WordPress%20plugin¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vladimir%40shinephp%2ecom&lc=RU&item_name=ShinePHP%2ecom&item_number=User%20Role%20Editor%20WordPress%20plugin¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
||||||
Tags: user, role, editor, security, access, permission, capability
|
Tags: user, role, editor, security, access, permission, capability
|
||||||
Requires at least: 4.0
|
Requires at least: 4.0
|
||||||
Tested up to: 4.7
|
Tested up to: 4.7.3
|
||||||
Stable tag: 4.31.1
|
Stable tag: 4.32.3
|
||||||
License: GPLv2 or later
|
License: GPLv2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ Multi-site support is provided.
|
|||||||
To read more about 'User Role Editor' visit [this page](http://www.shinephp.com/user-role-editor-wordpress-plugin/) at [shinephp.com](http://shinephp.com)
|
To read more about 'User Role Editor' visit [this page](http://www.shinephp.com/user-role-editor-wordpress-plugin/) at [shinephp.com](http://shinephp.com)
|
||||||
|
|
||||||
|
|
||||||
Do you need more functionality with quality support in the real time? Do you wish to remove advertisements from User Role Editor pages?
|
Do you need more functionality with quality support in a real time? Do you wish to remove advertisements from User Role Editor pages?
|
||||||
[Buy Pro version](https://www.role-editor.com).
|
[Buy Pro version](https://www.role-editor.com).
|
||||||
[User Role Editor Pro](https://www.role-editor.com) includes extra modules:
|
[User Role Editor Pro](https://www.role-editor.com) includes extra modules:
|
||||||
<ul>
|
<ul>
|
||||||
@@ -67,6 +67,7 @@ To read full FAQ section visit [this page](http://www.shinephp.com/user-role-edi
|
|||||||
3. screenshot-3.png User Capabilities link
|
3. screenshot-3.png User Capabilities link
|
||||||
4. screenshot-4.png User Capabilities Editor
|
4. screenshot-4.png User Capabilities Editor
|
||||||
5. screenshot-5.png Bulk change role for users without roles
|
5. screenshot-5.png Bulk change role for users without roles
|
||||||
|
6. screenshot-6.png Assign multiple roles to the selected users
|
||||||
|
|
||||||
To read more about 'User Role Editor' visit [this page](http://www.shinephp.com/user-role-editor-wordpress-plugin/) at [shinephp.com](shinephp.com).
|
To read more about 'User Role Editor' visit [this page](http://www.shinephp.com/user-role-editor-wordpress-plugin/) at [shinephp.com](shinephp.com).
|
||||||
|
|
||||||
@@ -75,7 +76,24 @@ To read more about 'User Role Editor' visit [this page](http://www.shinephp.com/
|
|||||||
If you wish to check available translations or help with plugin translation to your language visit this link
|
If you wish to check available translations or help with plugin translation to your language visit this link
|
||||||
https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
|
https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
|
||||||
|
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
= [4.32.3] 03.04.2017 =
|
||||||
|
* Fix: Boolean false was sent to WordPress core wp_enqueue_script() function as the 2nd parameter instead of an empty string. We should respect the type of parameter which code author supposed to use initially.
|
||||||
|
* Fix: Bulk grant to users multiple roles JavaScript code is loaded now for users.php page only, not globally.
|
||||||
|
|
||||||
|
= [4.32.2] 17.03.2017 =
|
||||||
|
* Fix: "Users->Grant Roles" button did not work with switched off option "Count Users without role" at "Settings->User Role Editor->Additional Modules" tab. "JQuery UI" library was not loaded.
|
||||||
|
* Update: minimal PHP version was raised to 5.3.
|
||||||
|
|
||||||
|
= [4.32.1] 09.03.2017 =
|
||||||
|
* Fix: URL to users.php page was built incorrectly after bulk roles assignment to the users selected at the 1st page of a users list.
|
||||||
|
|
||||||
|
= [4.32] 09.03.2017 =
|
||||||
|
* New: Button "Grant Roles" allows to "Assign multiple roles to the selected users" directly from the "Users" page.
|
||||||
|
* Update: singleton template was applied to the main User_Role_Editor class. While GLOBALS['user-role-editor'] reference to the instance of User_Role_Editor class is still available for the compatibility purpose, call to User_Role_Editor::get_instance() is the best way now to get a reference to the instance of User_Role_Editor class.
|
||||||
|
* Fix: Missed 'unfiltered_html' capability is shown now at the 'General' capabilities group too.
|
||||||
|
|
||||||
= [4.31.1] 06.01.2017 =
|
= [4.31.1] 06.01.2017 =
|
||||||
* Fix: WP transients get/set were removed from URE_Own_Capabilities class. It leaded to the MySQL deadlock in some cases.
|
* Fix: WP transients get/set were removed from URE_Own_Capabilities class. It leaded to the MySQL deadlock in some cases.
|
||||||
* Update: Base_Lib::get_request_var() sanitizes user input by PHP's filter_var() in addition to WordPress core's esc_attr().
|
* Update: Base_Lib::get_request_var() sanitizes user input by PHP's filter_var() in addition to WordPress core's esc_attr().
|
||||||
|
|||||||
|
After Width: | Height: | Size: 24 KiB |
@@ -3,7 +3,7 @@
|
|||||||
Plugin Name: User Role Editor
|
Plugin Name: User Role Editor
|
||||||
Plugin URI: https://www.role-editor.com
|
Plugin URI: https://www.role-editor.com
|
||||||
Description: Change/add/delete WordPress user roles and capabilities.
|
Description: Change/add/delete WordPress user roles and capabilities.
|
||||||
Version: 4.31.1
|
Version: 4.32.3
|
||||||
Author: Vladimir Garagulya
|
Author: Vladimir Garagulya
|
||||||
Author URI: https://www.role-editor.com
|
Author URI: https://www.role-editor.com
|
||||||
Text Domain: ure
|
Text Domain: ure
|
||||||
@@ -11,7 +11,7 @@ Domain Path: /lang/
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2010-2016 Vladimir Garagulya (email: support@role-editor.com)
|
Copyright 2010-2017 Vladimir Garagulya (email: support@role-editor.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!function_exists('get_option')) {
|
if (!function_exists('get_option')) {
|
||||||
@@ -23,7 +23,7 @@ if (defined('URE_PLUGIN_URL')) {
|
|||||||
wp_die('It seems that other version of User Role Editor is active. Please deactivate it before use this version');
|
wp_die('It seems that other version of User Role Editor is active. Please deactivate it before use this version');
|
||||||
}
|
}
|
||||||
|
|
||||||
define('URE_VERSION', '4.31.1');
|
define('URE_VERSION', '4.32.3');
|
||||||
define('URE_PLUGIN_URL', plugin_dir_url(__FILE__));
|
define('URE_PLUGIN_URL', plugin_dir_url(__FILE__));
|
||||||
define('URE_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
define('URE_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
||||||
define('URE_PLUGIN_BASE_NAME', plugin_basename(__FILE__));
|
define('URE_PLUGIN_BASE_NAME', plugin_basename(__FILE__));
|
||||||
@@ -34,7 +34,7 @@ require_once(URE_PLUGIN_DIR.'includes/classes/base-lib.php');
|
|||||||
require_once(URE_PLUGIN_DIR.'includes/classes/ure-lib.php');
|
require_once(URE_PLUGIN_DIR.'includes/classes/ure-lib.php');
|
||||||
|
|
||||||
// check PHP version
|
// check PHP version
|
||||||
$ure_required_php_version = '5.2.4';
|
$ure_required_php_version = '5.3';
|
||||||
$exit_msg = sprintf( 'User Role Editor requires PHP %s or newer.', $ure_required_php_version ) .
|
$exit_msg = sprintf( 'User Role Editor requires PHP %s or newer.', $ure_required_php_version ) .
|
||||||
'<a href="http://wordpress.org/about/requirements/"> ' . 'Please update!' . '</a>';
|
'<a href="http://wordpress.org/about/requirements/"> ' . 'Please update!' . '</a>';
|
||||||
Ure_Lib::check_version( PHP_VERSION, $ure_required_php_version, $exit_msg, __FILE__ );
|
Ure_Lib::check_version( PHP_VERSION, $ure_required_php_version, $exit_msg, __FILE__ );
|
||||||
@@ -47,4 +47,4 @@ Ure_Lib::check_version(get_bloginfo('version'), $ure_required_wp_version, $exit_
|
|||||||
|
|
||||||
require_once(URE_PLUGIN_DIR .'includes/loader.php');
|
require_once(URE_PLUGIN_DIR .'includes/loader.php');
|
||||||
|
|
||||||
$GLOBALS['user_role_editor'] = new User_Role_Editor();
|
$GLOBALS['user_role_editor'] = User_Role_Editor::get_instance();
|
||||||
@@ -3957,7 +3957,7 @@ final class WP_Customize_Manager {
|
|||||||
'type' => 'url',
|
'type' => 'url',
|
||||||
'description' => __( 'Or, enter a YouTube URL:' ),
|
'description' => __( 'Or, enter a YouTube URL:' ),
|
||||||
'section' => 'header_image',
|
'section' => 'header_image',
|
||||||
'active_callback'=> 'is_front_page',
|
'active_callback' => 'is_header_video_active',
|
||||||
) );
|
) );
|
||||||
|
|
||||||
$this->add_control( new WP_Customize_Header_Image_Control( $this ) );
|
$this->add_control( new WP_Customize_Header_Image_Control( $this ) );
|
||||||
|
|||||||
@@ -103,6 +103,15 @@ class WP_Customize_Panel {
|
|||||||
*/
|
*/
|
||||||
public $description = '';
|
public $description = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Auto-expand a section in a panel when the panel is expanded when the panel only has the one section.
|
||||||
|
*
|
||||||
|
* @since 4.7.4
|
||||||
|
* @access public
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
public $auto_expand_sole_section = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Customizer sections for this panel.
|
* Customizer sections for this panel.
|
||||||
*
|
*
|
||||||
@@ -219,6 +228,7 @@ class WP_Customize_Panel {
|
|||||||
$array['content'] = $this->get_content();
|
$array['content'] = $this->get_content();
|
||||||
$array['active'] = $this->active();
|
$array['active'] = $this->active();
|
||||||
$array['instanceNumber'] = $this->instance_number;
|
$array['instanceNumber'] = $this->instance_number;
|
||||||
|
$array['autoExpandSoleSection'] = $this->auto_expand_sole_section;
|
||||||
return $array;
|
return $array;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -422,6 +422,7 @@ final class WP_Customize_Widgets {
|
|||||||
'description' => __( 'Widgets are independent sections of content that can be placed into widgetized areas provided by your theme (commonly called sidebars).' ),
|
'description' => __( 'Widgets are independent sections of content that can be placed into widgetized areas provided by your theme (commonly called sidebars).' ),
|
||||||
'priority' => 110,
|
'priority' => 110,
|
||||||
'active_callback' => array( $this, 'is_panel_active' ),
|
'active_callback' => array( $this, 'is_panel_active' ),
|
||||||
|
'auto_expand_sole_section' => true,
|
||||||
) );
|
) );
|
||||||
|
|
||||||
foreach ( $sidebars_widgets as $sidebar_id => $sidebar_widget_ids ) {
|
foreach ( $sidebars_widgets as $sidebar_id => $sidebar_widget_ids ) {
|
||||||
|
|||||||
@@ -333,6 +333,38 @@ final class WP_Post_Type {
|
|||||||
*/
|
*/
|
||||||
public $supports;
|
public $supports;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether this post type should appear in the REST API.
|
||||||
|
*
|
||||||
|
* Default false. If true, standard endpoints will be registered with
|
||||||
|
* respect to $rest_base and $rest_controller_class.
|
||||||
|
*
|
||||||
|
* @since 4.7.4
|
||||||
|
* @access public
|
||||||
|
* @var bool $show_in_rest
|
||||||
|
*/
|
||||||
|
public $show_in_rest;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The base path for this post type's REST API endpoints.
|
||||||
|
*
|
||||||
|
* @since 4.7.4
|
||||||
|
* @access public
|
||||||
|
* @var string|bool $rest_base
|
||||||
|
*/
|
||||||
|
public $rest_base;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The controller for this post type's REST API endpoints.
|
||||||
|
*
|
||||||
|
* Custom controllers must extend WP_REST_Controller.
|
||||||
|
*
|
||||||
|
* @since 4.7.4
|
||||||
|
* @access public
|
||||||
|
* @var string|bool $rest_controller_class
|
||||||
|
*/
|
||||||
|
public $rest_controller_class;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -379,31 +411,34 @@ final class WP_Post_Type {
|
|||||||
|
|
||||||
// Args prefixed with an underscore are reserved for internal use.
|
// Args prefixed with an underscore are reserved for internal use.
|
||||||
$defaults = array(
|
$defaults = array(
|
||||||
'labels' => array(),
|
'labels' => array(),
|
||||||
'description' => '',
|
'description' => '',
|
||||||
'public' => false,
|
'public' => false,
|
||||||
'hierarchical' => false,
|
'hierarchical' => false,
|
||||||
'exclude_from_search' => null,
|
'exclude_from_search' => null,
|
||||||
'publicly_queryable' => null,
|
'publicly_queryable' => null,
|
||||||
'show_ui' => null,
|
'show_ui' => null,
|
||||||
'show_in_menu' => null,
|
'show_in_menu' => null,
|
||||||
'show_in_nav_menus' => null,
|
'show_in_nav_menus' => null,
|
||||||
'show_in_admin_bar' => null,
|
'show_in_admin_bar' => null,
|
||||||
'menu_position' => null,
|
'menu_position' => null,
|
||||||
'menu_icon' => null,
|
'menu_icon' => null,
|
||||||
'capability_type' => 'post',
|
'capability_type' => 'post',
|
||||||
'capabilities' => array(),
|
'capabilities' => array(),
|
||||||
'map_meta_cap' => null,
|
'map_meta_cap' => null,
|
||||||
'supports' => array(),
|
'supports' => array(),
|
||||||
'register_meta_box_cb' => null,
|
'register_meta_box_cb' => null,
|
||||||
'taxonomies' => array(),
|
'taxonomies' => array(),
|
||||||
'has_archive' => false,
|
'has_archive' => false,
|
||||||
'rewrite' => true,
|
'rewrite' => true,
|
||||||
'query_var' => true,
|
'query_var' => true,
|
||||||
'can_export' => true,
|
'can_export' => true,
|
||||||
'delete_with_user' => null,
|
'delete_with_user' => null,
|
||||||
'_builtin' => false,
|
'show_in_rest' => false,
|
||||||
'_edit_link' => 'post.php?post=%d',
|
'rest_base' => false,
|
||||||
|
'rest_controller_class' => false,
|
||||||
|
'_builtin' => false,
|
||||||
|
'_edit_link' => 'post.php?post=%d',
|
||||||
);
|
);
|
||||||
|
|
||||||
$args = array_merge( $defaults, $args );
|
$args = array_merge( $defaults, $args );
|
||||||
|
|||||||
@@ -186,6 +186,38 @@ final class WP_Taxonomy {
|
|||||||
*/
|
*/
|
||||||
public $update_count_callback;
|
public $update_count_callback;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether this taxonomy should appear in the REST API.
|
||||||
|
*
|
||||||
|
* Default false. If true, standard endpoints will be registered with
|
||||||
|
* respect to $rest_base and $rest_controller_class.
|
||||||
|
*
|
||||||
|
* @since 4.7.4
|
||||||
|
* @access public
|
||||||
|
* @var bool $show_in_rest
|
||||||
|
*/
|
||||||
|
public $show_in_rest;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The base path for this taxonomy's REST API endpoints.
|
||||||
|
*
|
||||||
|
* @since 4.7.4
|
||||||
|
* @access public
|
||||||
|
* @var string|bool $rest_base
|
||||||
|
*/
|
||||||
|
public $rest_base;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The controller for this taxonomy's REST API endpoints.
|
||||||
|
*
|
||||||
|
* Custom controllers must extend WP_REST_Controller.
|
||||||
|
*
|
||||||
|
* @since 4.7.4
|
||||||
|
* @access public
|
||||||
|
* @var string|bool $rest_controller_class
|
||||||
|
*/
|
||||||
|
public $rest_controller_class;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether it is a built-in taxonomy.
|
* Whether it is a built-in taxonomy.
|
||||||
*
|
*
|
||||||
@@ -254,6 +286,9 @@ final class WP_Taxonomy {
|
|||||||
'rewrite' => true,
|
'rewrite' => true,
|
||||||
'query_var' => $this->name,
|
'query_var' => $this->name,
|
||||||
'update_count_callback' => '',
|
'update_count_callback' => '',
|
||||||
|
'show_in_rest' => false,
|
||||||
|
'rest_base' => false,
|
||||||
|
'rest_controller_class' => false,
|
||||||
'_builtin' => false,
|
'_builtin' => false,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -1139,11 +1139,21 @@ final class WP_Theme implements ArrayAccess {
|
|||||||
$results = scandir( $path );
|
$results = scandir( $path );
|
||||||
$files = array();
|
$files = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filters the array of excluded directories and files while scanning theme folder.
|
||||||
|
*
|
||||||
|
* @since 4.7.4
|
||||||
|
*
|
||||||
|
* @param array $exclusions Array of excluded directories and files.
|
||||||
|
*/
|
||||||
|
$exclusions = (array) apply_filters( 'theme_scandir_exclusions', array( 'CVS', 'node_modules' ) );
|
||||||
|
|
||||||
foreach ( $results as $result ) {
|
foreach ( $results as $result ) {
|
||||||
if ( '.' == $result[0] )
|
if ( '.' == $result[0] || in_array( $result, $exclusions, true ) ) {
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
if ( is_dir( $path . '/' . $result ) ) {
|
if ( is_dir( $path . '/' . $result ) ) {
|
||||||
if ( ! $depth || 'CVS' == $result )
|
if ( ! $depth )
|
||||||
continue;
|
continue;
|
||||||
$found = self::scandir( $path . '/' . $result, $extensions, $depth - 1 , $relative_path . $result );
|
$found = self::scandir( $path . '/' . $result, $extensions, $depth - 1 , $relative_path . $result );
|
||||||
$files = array_merge_recursive( $files, $found );
|
$files = array_merge_recursive( $files, $found );
|
||||||
|
|||||||
@@ -378,6 +378,11 @@ TABLE OF CONTENTS:
|
|||||||
vertical-align: inherit;
|
vertical-align: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.media-modal-content .media-toolbar-primary .media-button {
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Reset responsive styles on Log in button on iframed login form */
|
/* Reset responsive styles on Log in button on iframed login form */
|
||||||
|
|
||||||
.interim-login .button.button-large {
|
.interim-login .button.button-large {
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
.wp-core-ui .button,.wp-core-ui .button-primary,.wp-core-ui .button-secondary{display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-core-ui button::-moz-focus-inner,.wp-core-ui input[type=reset]::-moz-focus-inner,.wp-core-ui input[type=button]::-moz-focus-inner,.wp-core-ui input[type=submit]::-moz-focus-inner{border-width:0;border-style:none;padding:0}.wp-core-ui .button-group.button-large .button,.wp-core-ui .button.button-large{height:30px;line-height:28px;padding:0 12px 2px}.wp-core-ui .button-group.button-small .button,.wp-core-ui .button.button-small{height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.wp-core-ui .button-group.button-hero .button,.wp-core-ui .button.button-hero{font-size:14px;height:46px;line-height:44px;padding:0 36px}.wp-core-ui .button:active,.wp-core-ui .button:focus{outline:0}.wp-core-ui .button.hidden{display:none}.wp-core-ui input[type=reset],.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:focus,.wp-core-ui input[type=reset]:hover{background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;padding:0 2px 1px;width:auto}.wp-core-ui .button,.wp-core-ui .button-secondary{color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:0 1px 0 #ccc;box-shadow:0 1px 0 #ccc;vertical-align:top}.wp-core-ui p .button{vertical-align:baseline}.wp-core-ui .button-secondary:focus,.wp-core-ui .button-secondary:hover,.wp-core-ui .button.focus,.wp-core-ui .button.hover,.wp-core-ui .button:focus,.wp-core-ui .button:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-core-ui .button-link:focus,.wp-core-ui .button-secondary:focus,.wp-core-ui .button.focus,.wp-core-ui .button:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 3px rgba(0,115,170,.8);box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-core-ui .button-secondary:active,.wp-core-ui .button.active,.wp-core-ui .button.active:hover,.wp-core-ui .button:active{background:#eee;border-color:#999;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);-webkit-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.wp-core-ui .button.active:focus{border-color:#5b9dd9;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 3px rgba(0,115,170,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 3px rgba(0,115,170,.8)}.wp-core-ui .button-disabled,.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled,.wp-core-ui .button-secondary[disabled],.wp-core-ui .button.disabled,.wp-core-ui .button:disabled,.wp-core-ui .button[disabled]{color:#a0a5aa!important;border-color:#ddd!important;background:#f7f7f7!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:0 1px 0 #fff!important;cursor:default;-webkit-transform:none!important;-ms-transform:none!important;transform:none!important}.wp-core-ui .button-link{margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;border:0;-webkit-border-radius:0;border-radius:0;background:0 0;outline:0;cursor:pointer}.wp-core-ui .button-link:focus{outline:#5b9dd9 solid 1px}.wp-core-ui .button-primary{background:#0085ba;border-color:#0073aa #006799 #006799;-webkit-box-shadow:0 1px 0 #006799;box-shadow:0 1px 0 #006799;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #006799,-1px 0 1px #006799,0 1px 1px #006799,1px 0 1px #006799}.wp-core-ui .button-primary.focus,.wp-core-ui .button-primary.hover,.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#008ec2;border-color:#006799;color:#fff}.wp-core-ui .button-primary.focus,.wp-core-ui .button-primary:focus{-webkit-box-shadow:0 1px 0 #0073aa,0 0 2px 1px #33b3db;box-shadow:0 1px 0 #0073aa,0 0 2px 1px #33b3db}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover,.wp-core-ui .button-primary:active{background:#0073aa;border-color:#006799;-webkit-box-shadow:inset 0 2px 0 #006799;box-shadow:inset 0 2px 0 #006799;vertical-align:top}.wp-core-ui .button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#66c6e4!important;background:#008ec2!important;border-color:#007cb2!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:0 -1px 0 rgba(0,0,0,.1)!important;cursor:default}.wp-core-ui .button.button-primary.button-hero{-webkit-box-shadow:0 2px 0 #006799;box-shadow:0 2px 0 #006799}.wp-core-ui .button.button-primary.button-hero.active,.wp-core-ui .button.button-primary.button-hero.active:focus,.wp-core-ui .button.button-primary.button-hero.active:hover,.wp-core-ui .button.button-primary.button-hero:active{-webkit-box-shadow:inset 0 3px 0 #006799;box-shadLine truncated
|
.wp-core-ui .button,.wp-core-ui .button-primary,.wp-core-ui .button-secondary{display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-core-ui button::-moz-focus-inner,.wp-core-ui input[type=reset]::-moz-focus-inner,.wp-core-ui input[type=button]::-moz-focus-inner,.wp-core-ui input[type=submit]::-moz-focus-inner{border-width:0;border-style:none;padding:0}.wp-core-ui .button-group.button-large .button,.wp-core-ui .button.button-large{height:30px;line-height:28px;padding:0 12px 2px}.wp-core-ui .button-group.button-small .button,.wp-core-ui .button.button-small{height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.wp-core-ui .button-group.button-hero .button,.wp-core-ui .button.button-hero{font-size:14px;height:46px;line-height:44px;padding:0 36px}.wp-core-ui .button:active,.wp-core-ui .button:focus{outline:0}.wp-core-ui .button.hidden{display:none}.wp-core-ui input[type=reset],.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:focus,.wp-core-ui input[type=reset]:hover{background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;padding:0 2px 1px;width:auto}.wp-core-ui .button,.wp-core-ui .button-secondary{color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:0 1px 0 #ccc;box-shadow:0 1px 0 #ccc;vertical-align:top}.wp-core-ui p .button{vertical-align:baseline}.wp-core-ui .button-secondary:focus,.wp-core-ui .button-secondary:hover,.wp-core-ui .button.focus,.wp-core-ui .button.hover,.wp-core-ui .button:focus,.wp-core-ui .button:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-core-ui .button-link:focus,.wp-core-ui .button-secondary:focus,.wp-core-ui .button.focus,.wp-core-ui .button:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 3px rgba(0,115,170,.8);box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-core-ui .button-secondary:active,.wp-core-ui .button.active,.wp-core-ui .button.active:hover,.wp-core-ui .button:active{background:#eee;border-color:#999;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);-webkit-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.wp-core-ui .button.active:focus{border-color:#5b9dd9;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 3px rgba(0,115,170,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 3px rgba(0,115,170,.8)}.wp-core-ui .button-disabled,.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled,.wp-core-ui .button-secondary[disabled],.wp-core-ui .button.disabled,.wp-core-ui .button:disabled,.wp-core-ui .button[disabled]{color:#a0a5aa!important;border-color:#ddd!important;background:#f7f7f7!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:0 1px 0 #fff!important;cursor:default;-webkit-transform:none!important;-ms-transform:none!important;transform:none!important}.wp-core-ui .button-link{margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;border:0;-webkit-border-radius:0;border-radius:0;background:0 0;outline:0;cursor:pointer}.wp-core-ui .button-link:focus{outline:#5b9dd9 solid 1px}.wp-core-ui .button-primary{background:#0085ba;border-color:#0073aa #006799 #006799;-webkit-box-shadow:0 1px 0 #006799;box-shadow:0 1px 0 #006799;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #006799,-1px 0 1px #006799,0 1px 1px #006799,1px 0 1px #006799}.wp-core-ui .button-primary.focus,.wp-core-ui .button-primary.hover,.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#008ec2;border-color:#006799;color:#fff}.wp-core-ui .button-primary.focus,.wp-core-ui .button-primary:focus{-webkit-box-shadow:0 1px 0 #0073aa,0 0 2px 1px #33b3db;box-shadow:0 1px 0 #0073aa,0 0 2px 1px #33b3db}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover,.wp-core-ui .button-primary:active{background:#0073aa;border-color:#006799;-webkit-box-shadow:inset 0 2px 0 #006799;box-shadow:inset 0 2px 0 #006799;vertical-align:top}.wp-core-ui .button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#66c6e4!important;background:#008ec2!important;border-color:#007cb2!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:0 -1px 0 rgba(0,0,0,.1)!important;cursor:default}.wp-core-ui .button.button-primary.button-hero{-webkit-box-shadow:0 2px 0 #006799;box-shadow:0 2px 0 #006799}.wp-core-ui .button.button-primary.button-hero.active,.wp-core-ui .button.button-primary.button-hero.active:focus,.wp-core-ui .button.button-primary.button-hero.active:hover,.wp-core-ui .button.button-primary.button-hero:active{-webkit-box-shadow:inset 0 3px 0 #006799;box-shadLine truncated
|
||||||
@@ -378,6 +378,11 @@ TABLE OF CONTENTS:
|
|||||||
vertical-align: inherit;
|
vertical-align: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.media-modal-content .media-toolbar-primary .media-button {
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Reset responsive styles on Log in button on iframed login form */
|
/* Reset responsive styles on Log in button on iframed login form */
|
||||||
|
|
||||||
.interim-login .button.button-large {
|
.interim-login .button.button-large {
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
.wp-core-ui .button,.wp-core-ui .button-primary,.wp-core-ui .button-secondary{display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-core-ui button::-moz-focus-inner,.wp-core-ui input[type=reset]::-moz-focus-inner,.wp-core-ui input[type=button]::-moz-focus-inner,.wp-core-ui input[type=submit]::-moz-focus-inner{border-width:0;border-style:none;padding:0}.wp-core-ui .button-group.button-large .button,.wp-core-ui .button.button-large{height:30px;line-height:28px;padding:0 12px 2px}.wp-core-ui .button-group.button-small .button,.wp-core-ui .button.button-small{height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.wp-core-ui .button-group.button-hero .button,.wp-core-ui .button.button-hero{font-size:14px;height:46px;line-height:44px;padding:0 36px}.wp-core-ui .button:active,.wp-core-ui .button:focus{outline:0}.wp-core-ui .button.hidden{display:none}.wp-core-ui input[type=reset],.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:focus,.wp-core-ui input[type=reset]:hover{background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;padding:0 2px 1px;width:auto}.wp-core-ui .button,.wp-core-ui .button-secondary{color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:0 1px 0 #ccc;box-shadow:0 1px 0 #ccc;vertical-align:top}.wp-core-ui p .button{vertical-align:baseline}.wp-core-ui .button-secondary:focus,.wp-core-ui .button-secondary:hover,.wp-core-ui .button.focus,.wp-core-ui .button.hover,.wp-core-ui .button:focus,.wp-core-ui .button:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-core-ui .button-link:focus,.wp-core-ui .button-secondary:focus,.wp-core-ui .button.focus,.wp-core-ui .button:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 3px rgba(0,115,170,.8);box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-core-ui .button-secondary:active,.wp-core-ui .button.active,.wp-core-ui .button.active:hover,.wp-core-ui .button:active{background:#eee;border-color:#999;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);-webkit-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.wp-core-ui .button.active:focus{border-color:#5b9dd9;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 3px rgba(0,115,170,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 3px rgba(0,115,170,.8)}.wp-core-ui .button-disabled,.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled,.wp-core-ui .button-secondary[disabled],.wp-core-ui .button.disabled,.wp-core-ui .button:disabled,.wp-core-ui .button[disabled]{color:#a0a5aa!important;border-color:#ddd!important;background:#f7f7f7!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:0 1px 0 #fff!important;cursor:default;-webkit-transform:none!important;-ms-transform:none!important;transform:none!important}.wp-core-ui .button-link{margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;border:0;-webkit-border-radius:0;border-radius:0;background:0 0;outline:0;cursor:pointer}.wp-core-ui .button-link:focus{outline:#5b9dd9 solid 1px}.wp-core-ui .button-primary{background:#0085ba;border-color:#0073aa #006799 #006799;-webkit-box-shadow:0 1px 0 #006799;box-shadow:0 1px 0 #006799;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799,-1px 0 1px #006799}.wp-core-ui .button-primary.focus,.wp-core-ui .button-primary.hover,.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#008ec2;border-color:#006799;color:#fff}.wp-core-ui .button-primary.focus,.wp-core-ui .button-primary:focus{-webkit-box-shadow:0 1px 0 #0073aa,0 0 2px 1px #33b3db;box-shadow:0 1px 0 #0073aa,0 0 2px 1px #33b3db}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover,.wp-core-ui .button-primary:active{background:#0073aa;border-color:#006799;-webkit-box-shadow:inset 0 2px 0 #006799;box-shadow:inset 0 2px 0 #006799;vertical-align:top}.wp-core-ui .button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#66c6e4!important;background:#008ec2!important;border-color:#007cb2!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:0 -1px 0 rgba(0,0,0,.1)!important;cursor:default}.wp-core-ui .button.button-primary.button-hero{-webkit-box-shadow:0 2px 0 #006799;box-shadow:0 2px 0 #006799}.wp-core-ui .button.button-primary.button-hero.active,.wp-core-ui .button.button-primary.button-hero.active:focus,.wp-core-ui .button.button-primary.button-hero.active:hover,.wp-core-ui .button.button-primary.button-hero:active{-webkit-box-shadow:inset 0 3px 0 #006799;box-shadLine truncated
|
.wp-core-ui .button,.wp-core-ui .button-primary,.wp-core-ui .button-secondary{display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-core-ui button::-moz-focus-inner,.wp-core-ui input[type=reset]::-moz-focus-inner,.wp-core-ui input[type=button]::-moz-focus-inner,.wp-core-ui input[type=submit]::-moz-focus-inner{border-width:0;border-style:none;padding:0}.wp-core-ui .button-group.button-large .button,.wp-core-ui .button.button-large{height:30px;line-height:28px;padding:0 12px 2px}.wp-core-ui .button-group.button-small .button,.wp-core-ui .button.button-small{height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.wp-core-ui .button-group.button-hero .button,.wp-core-ui .button.button-hero{font-size:14px;height:46px;line-height:44px;padding:0 36px}.wp-core-ui .button:active,.wp-core-ui .button:focus{outline:0}.wp-core-ui .button.hidden{display:none}.wp-core-ui input[type=reset],.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:focus,.wp-core-ui input[type=reset]:hover{background:0 0;border:none;-webkit-box-shadow:none;box-shadow:none;padding:0 2px 1px;width:auto}.wp-core-ui .button,.wp-core-ui .button-secondary{color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:0 1px 0 #ccc;box-shadow:0 1px 0 #ccc;vertical-align:top}.wp-core-ui p .button{vertical-align:baseline}.wp-core-ui .button-secondary:focus,.wp-core-ui .button-secondary:hover,.wp-core-ui .button.focus,.wp-core-ui .button.hover,.wp-core-ui .button:focus,.wp-core-ui .button:hover{background:#fafafa;border-color:#999;color:#23282d}.wp-core-ui .button-link:focus,.wp-core-ui .button-secondary:focus,.wp-core-ui .button.focus,.wp-core-ui .button:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 3px rgba(0,115,170,.8);box-shadow:0 0 3px rgba(0,115,170,.8)}.wp-core-ui .button-secondary:active,.wp-core-ui .button.active,.wp-core-ui .button.active:hover,.wp-core-ui .button:active{background:#eee;border-color:#999;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);-webkit-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.wp-core-ui .button.active:focus{border-color:#5b9dd9;-webkit-box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 3px rgba(0,115,170,.8);box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 3px rgba(0,115,170,.8)}.wp-core-ui .button-disabled,.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled,.wp-core-ui .button-secondary[disabled],.wp-core-ui .button.disabled,.wp-core-ui .button:disabled,.wp-core-ui .button[disabled]{color:#a0a5aa!important;border-color:#ddd!important;background:#f7f7f7!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:0 1px 0 #fff!important;cursor:default;-webkit-transform:none!important;-ms-transform:none!important;transform:none!important}.wp-core-ui .button-link{margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;border:0;-webkit-border-radius:0;border-radius:0;background:0 0;outline:0;cursor:pointer}.wp-core-ui .button-link:focus{outline:#5b9dd9 solid 1px}.wp-core-ui .button-primary{background:#0085ba;border-color:#0073aa #006799 #006799;-webkit-box-shadow:0 1px 0 #006799;box-shadow:0 1px 0 #006799;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799,-1px 0 1px #006799}.wp-core-ui .button-primary.focus,.wp-core-ui .button-primary.hover,.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#008ec2;border-color:#006799;color:#fff}.wp-core-ui .button-primary.focus,.wp-core-ui .button-primary:focus{-webkit-box-shadow:0 1px 0 #0073aa,0 0 2px 1px #33b3db;box-shadow:0 1px 0 #0073aa,0 0 2px 1px #33b3db}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover,.wp-core-ui .button-primary:active{background:#0073aa;border-color:#006799;-webkit-box-shadow:inset 0 2px 0 #006799;box-shadow:inset 0 2px 0 #006799;vertical-align:top}.wp-core-ui .button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#66c6e4!important;background:#008ec2!important;border-color:#007cb2!important;-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:0 -1px 0 rgba(0,0,0,.1)!important;cursor:default}.wp-core-ui .button.button-primary.button-hero{-webkit-box-shadow:0 2px 0 #006799;box-shadow:0 2px 0 #006799}.wp-core-ui .button.button-primary.button-hero.active,.wp-core-ui .button.button-primary.button-hero.active:focus,.wp-core-ui .button.button-primary.button-hero.active:hover,.wp-core-ui .button.button-primary.button-hero:active{-webkit-box-shadow:inset 0 3px 0 #006799;box-shadLine truncated
|
||||||
@@ -183,15 +183,28 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
background: none;
|
||||||
|
color: #666;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
|
cursor: pointer;
|
||||||
|
outline: none;
|
||||||
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
||||||
transition: color .1s ease-in-out, background .1s ease-in-out;
|
transition: color .1s ease-in-out, background .1s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.media-modal-close:hover,
|
||||||
.media-modal-close:active {
|
.media-modal-close:active {
|
||||||
-webkit-box-shadow: none;
|
color: #00a0d2;
|
||||||
box-shadow: none;
|
}
|
||||||
|
|
||||||
|
.media-modal-close:focus {
|
||||||
|
color: #00a0d2;
|
||||||
|
border-color: #5b9dd9;
|
||||||
|
-webkit-box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
|
||||||
|
box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal-close span.media-modal-icon {
|
.media-modal-close span.media-modal-icon {
|
||||||
@@ -205,15 +218,6 @@
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
color: #666;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-modal-close:hover .media-modal-icon:before {
|
|
||||||
color: #00a0d2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-modal-close:active {
|
|
||||||
outline: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal-content {
|
.media-modal-content {
|
||||||
@@ -238,14 +242,6 @@
|
|||||||
width: calc(48% - 12px);
|
width: calc(48% - 12px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal-content .attachments-browser .media-toolbar-secondary {
|
|
||||||
width: 66%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-modal-content .media-toolbar-primary.search-form {
|
|
||||||
width: 33%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-modal-content .media-toolbar-primary .media-button {
|
.media-modal-content .media-toolbar-primary .media-button {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
@@ -275,6 +271,20 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.media-frame-toolbar .media-toolbar {
|
||||||
|
top: initial;
|
||||||
|
bottom: -45px;
|
||||||
|
height: auto;
|
||||||
|
overflow: initial;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 782px) {
|
||||||
|
.media-frame-toolbar .media-toolbar {
|
||||||
|
bottom: -48px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.media-toolbar-primary {
|
.media-toolbar-primary {
|
||||||
float: left;
|
float: left;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -682,7 +692,6 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid #ddd;
|
||||||
border-bottom: 1px solid #ddd;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-frame-toolbar {
|
.media-frame-toolbar {
|
||||||
@@ -692,6 +701,8 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
bottom: 60px;
|
||||||
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-frame.hide-menu .media-frame-title,
|
.media-frame.hide-menu .media-frame-title,
|
||||||
|
|||||||
@@ -5,4 +5,4 @@
|
|||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
* Released under the MIT license.
|
* Released under the MIT license.
|
||||||
* http://jquery.org/license
|
* http://jquery.org/license
|
||||||
*/.ui-draggable-handle,.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.media-modal{position:fixed;top:30px;right:30px;left:30px;bottom:30px;z-index:160000}.wp-customizer .media-modal{z-index:560000}.media-modal-backdrop{position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:159900}.wp-customizer .media-modal-backdrop{z-index:559900}.media-modal-close{position:absolute;top:0;left:0;width:50px;height:50px;padding:0;z-index:1000;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.media-modal-close:active{-webkit-box-shadow:none;box-shadow:none;outline:0}.media-modal-close span.media-modal-icon{background-image:none}.media-modal-close .media-modal-icon:before{content:"\f158";font:400 20px/1 dashicons;speak:none;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#666}.media-modal-close:hover .media-modal-icon:before{color:#00a0d2}.media-modal-content{position:absolute;top:0;right:0;left:0;bottom:0;overflow:auto;min-height:300px;-webkit-box-shadow:0 5px 15px rgba(0,0,0,.7);box-shadow:0 5px 15px rgba(0,0,0,.7);background:#fcfcfc;-webkit-font-smoothing:subpixel-antialiased}.media-modal-content .media-frame select.attachment-filters{margin-top:11px;margin-left:2%;width:42%;width:-webkit-calc(48% - 12px);width:calc(48% - 12px)}.media-modal-content .attachments-browser .media-toolbar-secondary{width:66%}.media-modal-content .media-toolbar-primary.search-form{width:33%}.media-modal-content .media-toolbar-primary .media-button{float:left}.media-modal-content .attachments-browser .search{width:100%}.wp-core-ui .media-modal-icon{background-image:url(../images/uploader-icons.png);background-repeat:no-repeat}.media-menu,.media-sidebar{top:0;bottom:0;background:#f3f3f3;left:0}.media-toolbar{position:absolute;top:0;right:0;left:0;z-index:100;height:60px;padding:0 16px;border:0 solid #ddd;overflow:hidden}.media-toolbar-primary{float:left;height:100%}.media-toolbar-secondary{float:right;height:100%}.media-toolbar-primary>.media-button,.media-toolbar-primary>.media-button-group{margin-right:10px;float:right;margin-top:15px}.media-toolbar-secondary>.media-button,.media-toolbar-secondary>.media-button-group{margin-left:10px;margin-top:15px}.media-sidebar{position:absolute;width:267px;padding:0 16px 24px;z-index:75;border-right:1px solid #ddd;overflow:auto;-webkit-overflow-scrolling:touch}.hide-toolbar .media-sidebar{bottom:0}.media-sidebar .sidebar-title{font-size:20px;margin:0;padding:12px 10px 10px;line-height:28px}.media-sidebar .sidebar-content{padding:0 10px;margin-bottom:130px}.media-sidebar .search{display:block;width:100%}.image-details h2,.image-details h3,.media-sidebar h2,.media-sidebar h3{position:relative;font-weight:600;text-transform:uppercase;font-size:12px;color:#666;margin:24px 0 8px}.attachment-details .setting,.media-sidebar .setting{display:block;float:right;width:100%;margin:1px 0}.attachment-details .setting label,.media-sidebar .setting label{display:block}.attachment-details .setting .link-to-custom,.media-sidebar .setting .link-to-custom{margin:3px 2px 0}.attachment-details .setting span,.media-sidebar .setting span{min-width:30%;margin-left:4%;font-size:12px;text-align:left;word-wrap:break-word}.media-sidebar .setting .name{max-width:80px}.attachment-details .setting select,.media-sidebar .setting select{max-width:65%}.attachment-details .field input[type=radio],.attachment-details .field input[type=checkbox],.attachment-details .setting input[type=radio],.attachment-details .setting input[type=checkbox],.media-sidebar .field input[type=radio],.media-sidebar .field input[type=checkbox],.media-sidebar .setting input[type=radio],.media-sidebar .setting input[type=checkbox]{float:none;margin:8px 3px 0;padding:0}.attachment-details .setting span,.compat-item label span,.media-sidebar .setting span{float:right;min-height:22px;padding-top:8px;line-height:16px;font-weight:400;color:#666}.media-menu>a,.media-router>a{line-height:18px;font-size:14px;text-decoration:none}.compat-item label span{text-align:left}.attachment-details .setting .value,.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=password],.attachment-details .setting input[type=number],.attachment-details .setting input[type=search],.attachment-details .setting input[type=email],.attachment-details .setting input[type=url],.attachment-details .setting textarea,.media-sidebar .setting .value,.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=number],.media-sidebar .setting input[type=search],.media-sidebar .setting input[type=email],.media-sidebar .setting input[type=url],.media-sidebar .setting textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;marLine truncated
|
*/.ui-draggable-handle,.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.media-modal{position:fixed;top:30px;right:30px;left:30px;bottom:30px;z-index:160000}.wp-customizer .media-modal{z-index:560000}.media-modal-backdrop{position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:159900}.wp-customizer .media-modal-backdrop{z-index:559900}.media-modal-close{position:absolute;top:0;left:0;width:50px;height:50px;margin:0;padding:0;border:1px solid transparent;background:0 0;color:#666;z-index:1000;cursor:pointer;outline:0;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.media-modal-close:active,.media-modal-close:hover{color:#00a0d2}.media-modal-close:focus{color:#00a0d2;border-color:#5b9dd9;-webkit-box-shadow:0 0 3px rgba(0,115,170,.8);box-shadow:0 0 3px rgba(0,115,170,.8)}.media-modal-close span.media-modal-icon{background-image:none}.media-modal-close .media-modal-icon:before{content:"\f158";font:400 20px/1 dashicons;speak:none;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.media-modal-content{position:absolute;top:0;right:0;left:0;bottom:0;overflow:auto;min-height:300px;-webkit-box-shadow:0 5px 15px rgba(0,0,0,.7);box-shadow:0 5px 15px rgba(0,0,0,.7);background:#fcfcfc;-webkit-font-smoothing:subpixel-antialiased}.media-modal-content .media-frame select.attachment-filters{margin-top:11px;margin-left:2%;width:42%;width:-webkit-calc(48% - 12px);width:calc(48% - 12px)}.media-modal-content .media-toolbar-primary .media-button{float:left}.media-modal-content .attachments-browser .search{width:100%}.wp-core-ui .media-modal-icon{background-image:url(../images/uploader-icons.png);background-repeat:no-repeat}.media-toolbar{position:absolute;top:0;right:0;left:0;z-index:100;height:60px;padding:0 16px;border:0 solid #ddd;overflow:hidden}.media-frame-toolbar .media-toolbar{top:initial;bottom:-45px;height:auto;overflow:initial;border-top:1px solid #ddd}.media-menu,.media-sidebar{top:0;background:#f3f3f3;left:0}@media screen and (max-width:782px){.media-frame-toolbar .media-toolbar{bottom:-48px}}.media-toolbar-primary{float:left;height:100%}.media-toolbar-secondary{float:right;height:100%}.media-toolbar-primary>.media-button,.media-toolbar-primary>.media-button-group{margin-right:10px;float:right;margin-top:15px}.media-toolbar-secondary>.media-button,.media-toolbar-secondary>.media-button-group{margin-left:10px;margin-top:15px}.media-sidebar{position:absolute;bottom:0;width:267px;padding:0 16px 24px;z-index:75;border-right:1px solid #ddd;overflow:auto;-webkit-overflow-scrolling:touch}.hide-toolbar .media-sidebar{bottom:0}.media-sidebar .sidebar-title{font-size:20px;margin:0;padding:12px 10px 10px;line-height:28px}.media-sidebar .sidebar-content{padding:0 10px;margin-bottom:130px}.media-sidebar .search{display:block;width:100%}.image-details h2,.image-details h3,.media-sidebar h2,.media-sidebar h3{position:relative;font-weight:600;text-transform:uppercase;font-size:12px;color:#666;margin:24px 0 8px}.attachment-details .setting,.media-sidebar .setting{display:block;float:right;width:100%;margin:1px 0}.attachment-details .setting label,.media-sidebar .setting label{display:block}.attachment-details .setting .link-to-custom,.media-sidebar .setting .link-to-custom{margin:3px 2px 0}.attachment-details .setting span,.media-sidebar .setting span{min-width:30%;margin-left:4%;font-size:12px;text-align:left;word-wrap:break-word}.media-sidebar .setting .name{max-width:80px}.attachment-details .setting select,.media-sidebar .setting select{max-width:65%}.attachment-details .field input[type=radio],.attachment-details .field input[type=checkbox],.attachment-details .setting input[type=radio],.attachment-details .setting input[type=checkbox],.media-sidebar .field input[type=radio],.media-sidebar .field input[type=checkbox],.media-sidebar .setting input[type=radio],.media-sidebar .setting input[type=checkbox]{float:none;margin:8px 3px 0;padding:0}.attachment-details .setting span,.compat-item label span,.media-sidebar .setting span{float:right;min-height:22px;padding-top:8px;line-height:16px;font-weight:400;color:#666}.media-menu>a,.media-router>a{line-height:18px;font-size:14px;text-decoration:none}.compat-item label span{text-align:left}.attachment-details .setting .value,.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=password],.attachment-details .setting input[type=number],.attachment-details .setting input[type=search],.attachment-details .setting input[type=email],.attachment-details .setting input[type=url],.attachment-details .setting textarea,.media-sidebar .setting .value,.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=number],.media-sidebar .setting input[typeLine truncated
|
||||||
@@ -183,15 +183,28 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
background: none;
|
||||||
|
color: #666;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
|
cursor: pointer;
|
||||||
|
outline: none;
|
||||||
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
||||||
transition: color .1s ease-in-out, background .1s ease-in-out;
|
transition: color .1s ease-in-out, background .1s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.media-modal-close:hover,
|
||||||
.media-modal-close:active {
|
.media-modal-close:active {
|
||||||
-webkit-box-shadow: none;
|
color: #00a0d2;
|
||||||
box-shadow: none;
|
}
|
||||||
|
|
||||||
|
.media-modal-close:focus {
|
||||||
|
color: #00a0d2;
|
||||||
|
border-color: #5b9dd9;
|
||||||
|
-webkit-box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
|
||||||
|
box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal-close span.media-modal-icon {
|
.media-modal-close span.media-modal-icon {
|
||||||
@@ -205,15 +218,6 @@
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
color: #666;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-modal-close:hover .media-modal-icon:before {
|
|
||||||
color: #00a0d2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-modal-close:active {
|
|
||||||
outline: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal-content {
|
.media-modal-content {
|
||||||
@@ -238,14 +242,6 @@
|
|||||||
width: calc(48% - 12px);
|
width: calc(48% - 12px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal-content .attachments-browser .media-toolbar-secondary {
|
|
||||||
width: 66%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-modal-content .media-toolbar-primary.search-form {
|
|
||||||
width: 33%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-modal-content .media-toolbar-primary .media-button {
|
.media-modal-content .media-toolbar-primary .media-button {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
@@ -275,6 +271,20 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.media-frame-toolbar .media-toolbar {
|
||||||
|
top: initial;
|
||||||
|
bottom: -45px;
|
||||||
|
height: auto;
|
||||||
|
overflow: initial;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 782px) {
|
||||||
|
.media-frame-toolbar .media-toolbar {
|
||||||
|
bottom: -48px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.media-toolbar-primary {
|
.media-toolbar-primary {
|
||||||
float: right;
|
float: right;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -682,7 +692,6 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid #ddd;
|
||||||
border-bottom: 1px solid #ddd;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-frame-toolbar {
|
.media-frame-toolbar {
|
||||||
@@ -692,6 +701,8 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
bottom: 60px;
|
||||||
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-frame.hide-menu .media-frame-title,
|
.media-frame.hide-menu .media-frame-title,
|
||||||
|
|||||||
@@ -5,4 +5,4 @@
|
|||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
* Released under the MIT license.
|
* Released under the MIT license.
|
||||||
* http://jquery.org/license
|
* http://jquery.org/license
|
||||||
*/.ui-draggable-handle,.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.media-modal{position:fixed;top:30px;left:30px;right:30px;bottom:30px;z-index:160000}.wp-customizer .media-modal{z-index:560000}.media-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:159900}.wp-customizer .media-modal-backdrop{z-index:559900}.media-modal-close{position:absolute;top:0;right:0;width:50px;height:50px;padding:0;z-index:1000;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.media-modal-close:active{-webkit-box-shadow:none;box-shadow:none;outline:0}.media-modal-close span.media-modal-icon{background-image:none}.media-modal-close .media-modal-icon:before{content:"\f158";font:400 20px/1 dashicons;speak:none;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#666}.media-modal-close:hover .media-modal-icon:before{color:#00a0d2}.media-modal-content{position:absolute;top:0;left:0;right:0;bottom:0;overflow:auto;min-height:300px;-webkit-box-shadow:0 5px 15px rgba(0,0,0,.7);box-shadow:0 5px 15px rgba(0,0,0,.7);background:#fcfcfc;-webkit-font-smoothing:subpixel-antialiased}.media-modal-content .media-frame select.attachment-filters{margin-top:11px;margin-right:2%;width:42%;width:-webkit-calc(48% - 12px);width:calc(48% - 12px)}.media-modal-content .attachments-browser .media-toolbar-secondary{width:66%}.media-modal-content .media-toolbar-primary.search-form{width:33%}.media-modal-content .media-toolbar-primary .media-button{float:right}.media-modal-content .attachments-browser .search{width:100%}.wp-core-ui .media-modal-icon{background-image:url(../images/uploader-icons.png);background-repeat:no-repeat}.media-menu,.media-sidebar{top:0;bottom:0;background:#f3f3f3;right:0}.media-toolbar{position:absolute;top:0;left:0;right:0;z-index:100;height:60px;padding:0 16px;border:0 solid #ddd;overflow:hidden}.media-toolbar-primary{float:right;height:100%}.media-toolbar-secondary{float:left;height:100%}.media-toolbar-primary>.media-button,.media-toolbar-primary>.media-button-group{margin-left:10px;float:left;margin-top:15px}.media-toolbar-secondary>.media-button,.media-toolbar-secondary>.media-button-group{margin-right:10px;margin-top:15px}.media-sidebar{position:absolute;width:267px;padding:0 16px 24px;z-index:75;border-left:1px solid #ddd;overflow:auto;-webkit-overflow-scrolling:touch}.hide-toolbar .media-sidebar{bottom:0}.media-sidebar .sidebar-title{font-size:20px;margin:0;padding:12px 10px 10px;line-height:28px}.media-sidebar .sidebar-content{padding:0 10px;margin-bottom:130px}.media-sidebar .search{display:block;width:100%}.image-details h2,.image-details h3,.media-sidebar h2,.media-sidebar h3{position:relative;font-weight:600;text-transform:uppercase;font-size:12px;color:#666;margin:24px 0 8px}.attachment-details .setting,.media-sidebar .setting{display:block;float:left;width:100%;margin:1px 0}.attachment-details .setting label,.media-sidebar .setting label{display:block}.attachment-details .setting .link-to-custom,.media-sidebar .setting .link-to-custom{margin:3px 2px 0}.attachment-details .setting span,.media-sidebar .setting span{min-width:30%;margin-right:4%;font-size:12px;text-align:right;word-wrap:break-word}.media-sidebar .setting .name{max-width:80px}.attachment-details .setting select,.media-sidebar .setting select{max-width:65%}.attachment-details .field input[type=radio],.attachment-details .field input[type=checkbox],.attachment-details .setting input[type=radio],.attachment-details .setting input[type=checkbox],.media-sidebar .field input[type=radio],.media-sidebar .field input[type=checkbox],.media-sidebar .setting input[type=radio],.media-sidebar .setting input[type=checkbox]{float:none;margin:8px 3px 0;padding:0}.attachment-details .setting span,.compat-item label span,.media-sidebar .setting span{float:left;min-height:22px;padding-top:8px;line-height:16px;font-weight:400;color:#666}.media-menu>a,.media-router>a{line-height:18px;font-size:14px;text-decoration:none}.compat-item label span{text-align:right}.attachment-details .setting .value,.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=password],.attachment-details .setting input[type=number],.attachment-details .setting input[type=search],.attachment-details .setting input[type=email],.attachment-details .setting input[type=url],.attachment-details .setting textarea,.media-sidebar .setting .value,.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=number],.media-sidebar .setting input[type=search],.media-sidebar .setting input[type=email],.media-sidebar .setting input[type=url],.media-sidebar .setting textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;Line truncated
|
*/.ui-draggable-handle,.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.media-modal{position:fixed;top:30px;left:30px;right:30px;bottom:30px;z-index:160000}.wp-customizer .media-modal{z-index:560000}.media-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:159900}.wp-customizer .media-modal-backdrop{z-index:559900}.media-modal-close{position:absolute;top:0;right:0;width:50px;height:50px;margin:0;padding:0;border:1px solid transparent;background:0 0;color:#666;z-index:1000;cursor:pointer;outline:0;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.media-modal-close:active,.media-modal-close:hover{color:#00a0d2}.media-modal-close:focus{color:#00a0d2;border-color:#5b9dd9;-webkit-box-shadow:0 0 3px rgba(0,115,170,.8);box-shadow:0 0 3px rgba(0,115,170,.8)}.media-modal-close span.media-modal-icon{background-image:none}.media-modal-close .media-modal-icon:before{content:"\f158";font:400 20px/1 dashicons;speak:none;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.media-modal-content{position:absolute;top:0;left:0;right:0;bottom:0;overflow:auto;min-height:300px;-webkit-box-shadow:0 5px 15px rgba(0,0,0,.7);box-shadow:0 5px 15px rgba(0,0,0,.7);background:#fcfcfc;-webkit-font-smoothing:subpixel-antialiased}.media-modal-content .media-frame select.attachment-filters{margin-top:11px;margin-right:2%;width:42%;width:-webkit-calc(48% - 12px);width:calc(48% - 12px)}.media-modal-content .media-toolbar-primary .media-button{float:right}.media-modal-content .attachments-browser .search{width:100%}.wp-core-ui .media-modal-icon{background-image:url(../images/uploader-icons.png);background-repeat:no-repeat}.media-toolbar{position:absolute;top:0;left:0;right:0;z-index:100;height:60px;padding:0 16px;border:0 solid #ddd;overflow:hidden}.media-frame-toolbar .media-toolbar{top:initial;bottom:-45px;height:auto;overflow:initial;border-top:1px solid #ddd}.media-menu,.media-sidebar{top:0;background:#f3f3f3;right:0}@media screen and (max-width:782px){.media-frame-toolbar .media-toolbar{bottom:-48px}}.media-toolbar-primary{float:right;height:100%}.media-toolbar-secondary{float:left;height:100%}.media-toolbar-primary>.media-button,.media-toolbar-primary>.media-button-group{margin-left:10px;float:left;margin-top:15px}.media-toolbar-secondary>.media-button,.media-toolbar-secondary>.media-button-group{margin-right:10px;margin-top:15px}.media-sidebar{position:absolute;bottom:0;width:267px;padding:0 16px 24px;z-index:75;border-left:1px solid #ddd;overflow:auto;-webkit-overflow-scrolling:touch}.hide-toolbar .media-sidebar{bottom:0}.media-sidebar .sidebar-title{font-size:20px;margin:0;padding:12px 10px 10px;line-height:28px}.media-sidebar .sidebar-content{padding:0 10px;margin-bottom:130px}.media-sidebar .search{display:block;width:100%}.image-details h2,.image-details h3,.media-sidebar h2,.media-sidebar h3{position:relative;font-weight:600;text-transform:uppercase;font-size:12px;color:#666;margin:24px 0 8px}.attachment-details .setting,.media-sidebar .setting{display:block;float:left;width:100%;margin:1px 0}.attachment-details .setting label,.media-sidebar .setting label{display:block}.attachment-details .setting .link-to-custom,.media-sidebar .setting .link-to-custom{margin:3px 2px 0}.attachment-details .setting span,.media-sidebar .setting span{min-width:30%;margin-right:4%;font-size:12px;text-align:right;word-wrap:break-word}.media-sidebar .setting .name{max-width:80px}.attachment-details .setting select,.media-sidebar .setting select{max-width:65%}.attachment-details .field input[type=radio],.attachment-details .field input[type=checkbox],.attachment-details .setting input[type=radio],.attachment-details .setting input[type=checkbox],.media-sidebar .field input[type=radio],.media-sidebar .field input[type=checkbox],.media-sidebar .setting input[type=radio],.media-sidebar .setting input[type=checkbox]{float:none;margin:8px 3px 0;padding:0}.attachment-details .setting span,.compat-item label span,.media-sidebar .setting span{float:left;min-height:22px;padding-top:8px;line-height:16px;font-weight:400;color:#666}.media-menu>a,.media-router>a{line-height:18px;font-size:14px;text-decoration:none}.compat-item label span{text-align:right}.attachment-details .setting .value,.attachment-details .setting input[type=tel],.attachment-details .setting input[type=text],.attachment-details .setting input[type=password],.attachment-details .setting input[type=number],.attachment-details .setting input[type=search],.attachment-details .setting input[type=email],.attachment-details .setting input[type=url],.attachment-details .setting textarea,.media-sidebar .setting .value,.media-sidebar .setting input[type=tel],.media-sidebar .setting input[type=text],.media-sidebar .setting input[type=password],.media-sidebar .setting input[type=number],.media-sidebar .setting input[tLine truncated
|
||||||
@@ -92,6 +92,7 @@
|
|||||||
height: 22px;
|
height: 22px;
|
||||||
width: 22px;
|
width: 22px;
|
||||||
color: #72777c;
|
color: #72777c;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wp-auth-check-wrap .wp-auth-check-close:before {
|
#wp-auth-check-wrap .wp-auth-check-close:before {
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
#wp-auth-check-wrap.hidden{display:none}#wp-auth-check-wrap #wp-auth-check-bg{position:fixed;top:0;bottom:0;right:0;left:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:1000010}#wp-auth-check-wrap #wp-auth-check{position:fixed;right:50%;overflow:hidden;top:40px;bottom:20px;max-height:415px;width:380px;margin:0 -190px 0 0;padding:30px 0 0;background-color:#f1f1f1;z-index:1000011;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3)}@media screen and (max-width:380px){#wp-auth-check-wrap #wp-auth-check{right:0;width:100%;margin:0}}#wp-auth-check-wrap.fallback #wp-auth-check{max-height:180px;overflow:auto}#wp-auth-check-wrap #wp-auth-check-form{height:100%;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}#wp-auth-check-form.loading:before{content:"";display:block;width:20px;height:20px;position:absolute;right:50%;top:50%;margin:-10px -10px 0 0;background:url(../images/spinner.gif) center no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;-webkit-transform:translateZ(0);transform:translateZ(0)}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){#wp-auth-check-form.loading:before{background-image:url(../images/spinner-2x.gif)}}#wp-auth-check-wrap #wp-auth-check-form iframe{height:98%;width:100%}#wp-auth-check-wrap .wp-auth-check-close{position:absolute;top:5px;left:5px;height:22px;width:22px;color:#72777c}#wp-auth-check-wrap .wp-auth-check-close:before{content:"\f158";font:400 20px/22px dashicons;speak:none;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale}#wp-auth-check-wrap .wp-auth-check-close:focus,#wp-auth-check-wrap .wp-auth-check-close:hover{color:#0073aa}#wp-auth-check-wrap .wp-auth-fallback-expired{outline:0}#wp-auth-check-wrap .wp-auth-fallback{font-size:14px;line-height:21px;padding:0 25px;display:none}#wp-auth-check-wrap.fallback .wp-auth-check-close,#wp-auth-check-wrap.fallback .wp-auth-fallback{display:block}
|
#wp-auth-check-wrap.hidden{display:none}#wp-auth-check-wrap #wp-auth-check-bg{position:fixed;top:0;bottom:0;right:0;left:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:1000010}#wp-auth-check-wrap #wp-auth-check{position:fixed;right:50%;overflow:hidden;top:40px;bottom:20px;max-height:415px;width:380px;margin:0 -190px 0 0;padding:30px 0 0;background-color:#f1f1f1;z-index:1000011;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3)}@media screen and (max-width:380px){#wp-auth-check-wrap #wp-auth-check{right:0;width:100%;margin:0}}#wp-auth-check-wrap.fallback #wp-auth-check{max-height:180px;overflow:auto}#wp-auth-check-wrap #wp-auth-check-form{height:100%;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}#wp-auth-check-form.loading:before{content:"";display:block;width:20px;height:20px;position:absolute;right:50%;top:50%;margin:-10px -10px 0 0;background:url(../images/spinner.gif) center no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;-webkit-transform:translateZ(0);transform:translateZ(0)}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){#wp-auth-check-form.loading:before{background-image:url(../images/spinner-2x.gif)}}#wp-auth-check-wrap #wp-auth-check-form iframe{height:98%;width:100%}#wp-auth-check-wrap .wp-auth-check-close{position:absolute;top:5px;left:5px;height:22px;width:22px;color:#72777c;text-align:center}#wp-auth-check-wrap .wp-auth-check-close:before{content:"\f158";font:400 20px/22px dashicons;speak:none;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale}#wp-auth-check-wrap .wp-auth-check-close:focus,#wp-auth-check-wrap .wp-auth-check-close:hover{color:#0073aa}#wp-auth-check-wrap .wp-auth-fallback-expired{outline:0}#wp-auth-check-wrap .wp-auth-fallback{font-size:14px;line-height:21px;padding:0 25px;display:none}#wp-auth-check-wrap.fallback .wp-auth-check-close,#wp-auth-check-wrap.fallback .wp-auth-fallback{display:block}
|
||||||
@@ -92,6 +92,7 @@
|
|||||||
height: 22px;
|
height: 22px;
|
||||||
width: 22px;
|
width: 22px;
|
||||||
color: #72777c;
|
color: #72777c;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wp-auth-check-wrap .wp-auth-check-close:before {
|
#wp-auth-check-wrap .wp-auth-check-close:before {
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
#wp-auth-check-wrap.hidden{display:none}#wp-auth-check-wrap #wp-auth-check-bg{position:fixed;top:0;bottom:0;left:0;right:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:1000010}#wp-auth-check-wrap #wp-auth-check{position:fixed;left:50%;overflow:hidden;top:40px;bottom:20px;max-height:415px;width:380px;margin:0 0 0 -190px;padding:30px 0 0;background-color:#f1f1f1;z-index:1000011;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3)}@media screen and (max-width:380px){#wp-auth-check-wrap #wp-auth-check{left:0;width:100%;margin:0}}#wp-auth-check-wrap.fallback #wp-auth-check{max-height:180px;overflow:auto}#wp-auth-check-wrap #wp-auth-check-form{height:100%;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}#wp-auth-check-form.loading:before{content:"";display:block;width:20px;height:20px;position:absolute;left:50%;top:50%;margin:-10px 0 0 -10px;background:url(../images/spinner.gif) center no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;-webkit-transform:translateZ(0);transform:translateZ(0)}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){#wp-auth-check-form.loading:before{background-image:url(../images/spinner-2x.gif)}}#wp-auth-check-wrap #wp-auth-check-form iframe{height:98%;width:100%}#wp-auth-check-wrap .wp-auth-check-close{position:absolute;top:5px;right:5px;height:22px;width:22px;color:#72777c}#wp-auth-check-wrap .wp-auth-check-close:before{content:"\f158";font:400 20px/22px dashicons;speak:none;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale}#wp-auth-check-wrap .wp-auth-check-close:focus,#wp-auth-check-wrap .wp-auth-check-close:hover{color:#0073aa}#wp-auth-check-wrap .wp-auth-fallback-expired{outline:0}#wp-auth-check-wrap .wp-auth-fallback{font-size:14px;line-height:21px;padding:0 25px;display:none}#wp-auth-check-wrap.fallback .wp-auth-check-close,#wp-auth-check-wrap.fallback .wp-auth-fallback{display:block}
|
#wp-auth-check-wrap.hidden{display:none}#wp-auth-check-wrap #wp-auth-check-bg{position:fixed;top:0;bottom:0;left:0;right:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:1000010}#wp-auth-check-wrap #wp-auth-check{position:fixed;left:50%;overflow:hidden;top:40px;bottom:20px;max-height:415px;width:380px;margin:0 0 0 -190px;padding:30px 0 0;background-color:#f1f1f1;z-index:1000011;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3)}@media screen and (max-width:380px){#wp-auth-check-wrap #wp-auth-check{left:0;width:100%;margin:0}}#wp-auth-check-wrap.fallback #wp-auth-check{max-height:180px;overflow:auto}#wp-auth-check-wrap #wp-auth-check-form{height:100%;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}#wp-auth-check-form.loading:before{content:"";display:block;width:20px;height:20px;position:absolute;left:50%;top:50%;margin:-10px 0 0 -10px;background:url(../images/spinner.gif) center no-repeat;-webkit-background-size:20px 20px;background-size:20px 20px;-webkit-transform:translateZ(0);transform:translateZ(0)}@media print,(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){#wp-auth-check-form.loading:before{background-image:url(../images/spinner-2x.gif)}}#wp-auth-check-wrap #wp-auth-check-form iframe{height:98%;width:100%}#wp-auth-check-wrap .wp-auth-check-close{position:absolute;top:5px;right:5px;height:22px;width:22px;color:#72777c;text-align:center}#wp-auth-check-wrap .wp-auth-check-close:before{content:"\f158";font:400 20px/22px dashicons;speak:none;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale}#wp-auth-check-wrap .wp-auth-check-close:focus,#wp-auth-check-wrap .wp-auth-check-close:hover{color:#0073aa}#wp-auth-check-wrap .wp-auth-fallback-expired{outline:0}#wp-auth-check-wrap .wp-auth-fallback{font-size:14px;line-height:21px;padding:0 25px;display:none}#wp-auth-check-wrap.fallback .wp-auth-check-close,#wp-auth-check-wrap.fallback .wp-auth-fallback{display:block}
|
||||||
@@ -324,10 +324,13 @@ final class WP_Customize_Selective_Refresh {
|
|||||||
*/
|
*/
|
||||||
if ( ! is_customize_preview() ) {
|
if ( ! is_customize_preview() ) {
|
||||||
wp_send_json_error( 'expected_customize_preview', 403 );
|
wp_send_json_error( 'expected_customize_preview', 403 );
|
||||||
} else if ( ! isset( $_POST['partials'] ) ) {
|
} elseif ( ! isset( $_POST['partials'] ) ) {
|
||||||
wp_send_json_error( 'missing_partials', 400 );
|
wp_send_json_error( 'missing_partials', 400 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ensure that doing selective refresh on 404 template doesn't result in fallback rendering behavior (full refreshes).
|
||||||
|
status_header( 200 );
|
||||||
|
|
||||||
$partials = json_decode( wp_unslash( $_POST['partials'] ), true );
|
$partials = json_decode( wp_unslash( $_POST['partials'] ), true );
|
||||||
|
|
||||||
if ( ! is_array( $partials ) ) {
|
if ( ! is_array( $partials ) ) {
|
||||||
|
|||||||
@@ -67,11 +67,11 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control
|
|||||||
<img src="<?php echo esc_url( admin_url( 'images/' . ( is_rtl() ? 'browser-rtl.png' : 'browser.png' ) ) ); ?>" class="browser-preview" width="182" alt="" />
|
<img src="<?php echo esc_url( admin_url( 'images/' . ( is_rtl() ? 'browser-rtl.png' : 'browser.png' ) ) ); ?>" class="browser-preview" width="182" alt="" />
|
||||||
|
|
||||||
<div class="favicon">
|
<div class="favicon">
|
||||||
<img src="{{ data.attachment.sizes.full.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
|
<img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
|
||||||
</div>
|
</div>
|
||||||
<span class="browser-title" aria-hidden="true"><?php bloginfo( 'name' ); ?></span>
|
<span class="browser-title" aria-hidden="true"><?php bloginfo( 'name' ); ?></span>
|
||||||
</div>
|
</div>
|
||||||
<img class="app-icon-preview" src="{{ data.attachment.sizes.full.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>"/>
|
<img class="app-icon-preview" src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>"/>
|
||||||
</div>
|
</div>
|
||||||
<# } #>
|
<# } #>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ function wp_cookie_constants() {
|
|||||||
if ( $siteurl )
|
if ( $siteurl )
|
||||||
define( 'COOKIEHASH', md5( $siteurl ) );
|
define( 'COOKIEHASH', md5( $siteurl ) );
|
||||||
else
|
else
|
||||||
define( 'COOKIEHASH', md5( wp_guess_url() ) );
|
define( 'COOKIEHASH', '' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -2366,7 +2366,8 @@ function wp_get_image_mime( $file ) {
|
|||||||
*/
|
*/
|
||||||
try {
|
try {
|
||||||
if ( is_callable( 'exif_imagetype' ) ) {
|
if ( is_callable( 'exif_imagetype' ) ) {
|
||||||
$mime = image_type_to_mime_type( exif_imagetype( $file ) );
|
$imagetype = exif_imagetype( $file );
|
||||||
|
$mime = ( $imagetype ) ? image_type_to_mime_type( $imagetype ) : false;
|
||||||
} elseif ( function_exists( 'getimagesize' ) ) {
|
} elseif ( function_exists( 'getimagesize' ) ) {
|
||||||
$imagesize = getimagesize( $file );
|
$imagesize = getimagesize( $file );
|
||||||
$mime = ( isset( $imagesize['mime'] ) ) ? $imagesize['mime'] : false;
|
$mime = ( isset( $imagesize['mime'] ) ) ? $imagesize['mime'] : false;
|
||||||
|
|||||||
@@ -655,7 +655,7 @@ window.wp = window.wp || {};
|
|||||||
var urlParser = document.createElement( 'a' );
|
var urlParser = document.createElement( 'a' );
|
||||||
urlParser.href = to;
|
urlParser.href = to;
|
||||||
// Port stripping needed by IE since it adds to host but not to event.origin.
|
// Port stripping needed by IE since it adds to host but not to event.origin.
|
||||||
return urlParser.protocol + '//' + urlParser.host.replace( /:80$/, '' );
|
return urlParser.protocol + '//' + urlParser.host.replace( /:(80|443)$/, '' );
|
||||||
});
|
});
|
||||||
|
|
||||||
// first add with no value
|
// first add with no value
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
window.wp=window.wp||{},function(a,b){var c,d,e={},f=Array.prototype.slice;c=function(){},d=function(a,d,e){var f;return f=d&&d.hasOwnProperty("constructor")?d.constructor:function(){var b=a.apply(this,arguments);return b},b.extend(f,a),c.prototype=a.prototype,f.prototype=new c,d&&b.extend(f.prototype,d),e&&b.extend(f,e),f.prototype.constructor=f,f.__super__=a.prototype,f},e.Class=function(a,c,d){var f,g=arguments;return a&&c&&e.Class.applicator===a&&(g=c,b.extend(this,d||{})),f=this,this.instance&&(f=function(){return f.instance.apply(f,arguments)},b.extend(f,this)),f.initialize.apply(f,g),f},e.Class.extend=function(a,b){var c=d(this,a,b);return c.extend=this.extend,c},e.Class.applicator={},e.Class.prototype.initialize=function(){},e.Class.prototype.extended=function(a){for(var b=this;"undefined"!=typeof b.constructor;){if(b.constructor===a)return!0;if("undefined"==typeof b.constructor.__super__)return!1;b=b.constructor.__super__}return!1},e.Events={trigger:function(a){return this.topics&&this.topics[a]&&this.topics[a].fireWith(this,f.call(arguments,1)),this},bind:function(a){return this.topics=this.topics||{},this.topics[a]=this.topics[a]||b.Callbacks(),this.topics[a].add.apply(this.topics[a],f.call(arguments,1)),this},unbind:function(a){return this.topics&&this.topics[a]&&this.topics[a].remove.apply(this.topics[a],f.call(arguments,1)),this}},e.Value=e.Class.extend({initialize:function(a,c){this._value=a,this.callbacks=b.Callbacks(),this._dirty=!1,b.extend(this,c||{}),this.set=b.proxy(this.set,this)},instance:function(){return arguments.length?this.set.apply(this,arguments):this.get()},get:function(){return this._value},set:function(a){var b=this._value;return a=this._setter.apply(this,arguments),a=this.validate(a),null===a||_.isEqual(b,a)?this:(this._value=a,this._dirty=!0,this.callbacks.fireWith(this,[a,b]),this)},_setter:function(a){return a},setter:function(a){var b=this.get();return this._setter=a,this._value=null,this.set(b),this},resetSetter:function(){return this._setter=this.constructor.prototype._setter,this.set(this.get()),this},validate:function(a){return a},bind:function(){return this.callbacks.add.apply(this.callbacks,arguments),this},unbind:function(){return this.callbacks.remove.apply(this.callbacks,arguments),this},link:function(){var a=this.set;return b.each(arguments,function(){this.bind(a)}),this},unlink:function(){var a=this.set;return b.each(arguments,function(){this.unbind(a)}),this},sync:function(){var a=this;return b.each(arguments,function(){a.link(this),this.link(a)}),this},unsync:function(){var a=this;return b.each(arguments,function(){a.unlink(this),this.unlink(a)}),this}}),e.Values=e.Class.extend({defaultConstructor:e.Value,initialize:function(a){b.extend(this,a||{}),this._value={},this._deferreds={}},instance:function(a){return 1===arguments.length?this.value(a):this.when.apply(this,arguments)},value:function(a){return this._value[a]},has:function(a){return"undefined"!=typeof this._value[a]},add:function(a,b){return this.has(a)?this.value(a):(this._value[a]=b,b.parent=this,b.extended(e.Value)&&b.bind(this._change),this.trigger("add",b),this._deferreds[a]&&this._deferreds[a].resolve(),this._value[a])},create:function(a){return this.add(a,new this.defaultConstructor(e.Class.applicator,f.call(arguments,1)))},each:function(a,c){c="undefined"==typeof c?this:c,b.each(this._value,function(b,d){a.call(c,d,b)})},remove:function(a){var b;this.has(a)&&(b=this.value(a),this.trigger("remove",b),b.extended(e.Value)&&b.unbind(this._change),delete b.parent),delete this._value[a],delete this._deferreds[a]},when:function(){var a=this,c=f.call(arguments),d=b.Deferred();return b.isFunction(c[c.length-1])&&d.done(c.pop()),b.when.apply(b,b.map(c,function(c){if(!a.has(c))return a._deferreds[c]=a._deferreds[c]||b.Deferred()})).done(function(){var e=b.map(c,function(b){return a(b)});return e.length!==c.length?void a.when.apply(a,c).done(function(){d.resolveWith(a,e)}):void d.resolveWith(a,e)}),d.promise()},_change:function(){this.parent.trigger("change",this)}}),b.extend(e.Values.prototype,e.Events),e.ensure=function(a){return"string"==typeof a?b(a):a},e.Element=e.Value.extend({initialize:function(a,c){var d,f,g,h=this,i=e.Element.synchronizer.html;this.element=e.ensure(a),this.events="",this.element.is("input, select, textarea")&&(this.events+="change",i=e.Element.synchronizer.val,this.element.is("input")?(d=this.element.prop("type"),e.Element.synchronizer[d]&&(i=e.Element.synchronizer[d]),"text"===d||"password"===d?this.events+=" keyup":"range"===d&&(this.events+=" input propertychange")):this.element.is("textarea")&&(this.events+=" keyup")),e.Value.prototype.initialize.call(this,null,b.extend(c||{},i)),this._value=this.get(),f=this.update,g=this.refresh,this.update=function(a){a!==g.call(h)&&f.apply(this,arguments)},this.refresh=function(){h.set(g.call(h))},this.bind(this.update),this.element.bind(this.events,this.refresh)},find:function(a){return b(a,this.element)},refresh:function(){},update:fLine truncated
|
window.wp=window.wp||{},function(a,b){var c,d,e={},f=Array.prototype.slice;c=function(){},d=function(a,d,e){var f;return f=d&&d.hasOwnProperty("constructor")?d.constructor:function(){var b=a.apply(this,arguments);return b},b.extend(f,a),c.prototype=a.prototype,f.prototype=new c,d&&b.extend(f.prototype,d),e&&b.extend(f,e),f.prototype.constructor=f,f.__super__=a.prototype,f},e.Class=function(a,c,d){var f,g=arguments;return a&&c&&e.Class.applicator===a&&(g=c,b.extend(this,d||{})),f=this,this.instance&&(f=function(){return f.instance.apply(f,arguments)},b.extend(f,this)),f.initialize.apply(f,g),f},e.Class.extend=function(a,b){var c=d(this,a,b);return c.extend=this.extend,c},e.Class.applicator={},e.Class.prototype.initialize=function(){},e.Class.prototype.extended=function(a){for(var b=this;"undefined"!=typeof b.constructor;){if(b.constructor===a)return!0;if("undefined"==typeof b.constructor.__super__)return!1;b=b.constructor.__super__}return!1},e.Events={trigger:function(a){return this.topics&&this.topics[a]&&this.topics[a].fireWith(this,f.call(arguments,1)),this},bind:function(a){return this.topics=this.topics||{},this.topics[a]=this.topics[a]||b.Callbacks(),this.topics[a].add.apply(this.topics[a],f.call(arguments,1)),this},unbind:function(a){return this.topics&&this.topics[a]&&this.topics[a].remove.apply(this.topics[a],f.call(arguments,1)),this}},e.Value=e.Class.extend({initialize:function(a,c){this._value=a,this.callbacks=b.Callbacks(),this._dirty=!1,b.extend(this,c||{}),this.set=b.proxy(this.set,this)},instance:function(){return arguments.length?this.set.apply(this,arguments):this.get()},get:function(){return this._value},set:function(a){var b=this._value;return a=this._setter.apply(this,arguments),a=this.validate(a),null===a||_.isEqual(b,a)?this:(this._value=a,this._dirty=!0,this.callbacks.fireWith(this,[a,b]),this)},_setter:function(a){return a},setter:function(a){var b=this.get();return this._setter=a,this._value=null,this.set(b),this},resetSetter:function(){return this._setter=this.constructor.prototype._setter,this.set(this.get()),this},validate:function(a){return a},bind:function(){return this.callbacks.add.apply(this.callbacks,arguments),this},unbind:function(){return this.callbacks.remove.apply(this.callbacks,arguments),this},link:function(){var a=this.set;return b.each(arguments,function(){this.bind(a)}),this},unlink:function(){var a=this.set;return b.each(arguments,function(){this.unbind(a)}),this},sync:function(){var a=this;return b.each(arguments,function(){a.link(this),this.link(a)}),this},unsync:function(){var a=this;return b.each(arguments,function(){a.unlink(this),this.unlink(a)}),this}}),e.Values=e.Class.extend({defaultConstructor:e.Value,initialize:function(a){b.extend(this,a||{}),this._value={},this._deferreds={}},instance:function(a){return 1===arguments.length?this.value(a):this.when.apply(this,arguments)},value:function(a){return this._value[a]},has:function(a){return"undefined"!=typeof this._value[a]},add:function(a,b){return this.has(a)?this.value(a):(this._value[a]=b,b.parent=this,b.extended(e.Value)&&b.bind(this._change),this.trigger("add",b),this._deferreds[a]&&this._deferreds[a].resolve(),this._value[a])},create:function(a){return this.add(a,new this.defaultConstructor(e.Class.applicator,f.call(arguments,1)))},each:function(a,c){c="undefined"==typeof c?this:c,b.each(this._value,function(b,d){a.call(c,d,b)})},remove:function(a){var b;this.has(a)&&(b=this.value(a),this.trigger("remove",b),b.extended(e.Value)&&b.unbind(this._change),delete b.parent),delete this._value[a],delete this._deferreds[a]},when:function(){var a=this,c=f.call(arguments),d=b.Deferred();return b.isFunction(c[c.length-1])&&d.done(c.pop()),b.when.apply(b,b.map(c,function(c){if(!a.has(c))return a._deferreds[c]=a._deferreds[c]||b.Deferred()})).done(function(){var e=b.map(c,function(b){return a(b)});return e.length!==c.length?void a.when.apply(a,c).done(function(){d.resolveWith(a,e)}):void d.resolveWith(a,e)}),d.promise()},_change:function(){this.parent.trigger("change",this)}}),b.extend(e.Values.prototype,e.Events),e.ensure=function(a){return"string"==typeof a?b(a):a},e.Element=e.Value.extend({initialize:function(a,c){var d,f,g,h=this,i=e.Element.synchronizer.html;this.element=e.ensure(a),this.events="",this.element.is("input, select, textarea")&&(this.events+="change",i=e.Element.synchronizer.val,this.element.is("input")?(d=this.element.prop("type"),e.Element.synchronizer[d]&&(i=e.Element.synchronizer[d]),"text"===d||"password"===d?this.events+=" keyup":"range"===d&&(this.events+=" input propertychange")):this.element.is("textarea")&&(this.events+=" keyup")),e.Value.prototype.initialize.call(this,null,b.extend(c||{},i)),this._value=this.get(),f=this.update,g=this.refresh,this.update=function(a){a!==g.call(h)&&f.apply(this,arguments)},this.refresh=function(){h.set(g.call(h))},this.bind(this.update),this.element.bind(this.events,this.refresh)},find:function(a){return b(a,this.element)},refresh:function(){},update:fLine truncated
|
||||||
@@ -273,7 +273,7 @@
|
|||||||
* @returns {boolean} Is appropriate for changeset link.
|
* @returns {boolean} Is appropriate for changeset link.
|
||||||
*/
|
*/
|
||||||
api.isLinkPreviewable = function isLinkPreviewable( element, options ) {
|
api.isLinkPreviewable = function isLinkPreviewable( element, options ) {
|
||||||
var matchesAllowedUrl, parsedAllowedUrl, args;
|
var matchesAllowedUrl, parsedAllowedUrl, args, elementHost;
|
||||||
|
|
||||||
args = _.extend( {}, { allowAdminAjax: false }, options || {} );
|
args = _.extend( {}, { allowAdminAjax: false }, options || {} );
|
||||||
|
|
||||||
@@ -286,10 +286,11 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
elementHost = element.host.replace( /:(80|443)$/, '' );
|
||||||
parsedAllowedUrl = document.createElement( 'a' );
|
parsedAllowedUrl = document.createElement( 'a' );
|
||||||
matchesAllowedUrl = ! _.isUndefined( _.find( api.settings.url.allowed, function( allowedUrl ) {
|
matchesAllowedUrl = ! _.isUndefined( _.find( api.settings.url.allowed, function( allowedUrl ) {
|
||||||
parsedAllowedUrl.href = allowedUrl;
|
parsedAllowedUrl.href = allowedUrl;
|
||||||
return parsedAllowedUrl.protocol === element.protocol && parsedAllowedUrl.host === element.host && 0 === element.pathname.indexOf( parsedAllowedUrl.pathname.replace( /\/$/, '' ) );
|
return parsedAllowedUrl.protocol === element.protocol && parsedAllowedUrl.host.replace( /:(80|443)$/, '' ) === elementHost && 0 === element.pathname.indexOf( parsedAllowedUrl.pathname.replace( /\/$/, '' ) );
|
||||||
} ) );
|
} ) );
|
||||||
if ( ! matchesAllowedUrl ) {
|
if ( ! matchesAllowedUrl ) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
!function(a,b){var c,d=wp.customize,e={};!function(a){var c;a.replaceState&&(c=function(a){var c,e,f;return c=document.createElement("a"),c.href=a,e=d.utils.parseQueryString(location.search.substr(1)),f=d.utils.parseQueryString(c.search.substr(1)),f.customize_changeset_uuid=e.customize_changeset_uuid,e.customize_theme&&(f.customize_theme=e.customize_theme),e.customize_messenger_channel&&(f.customize_messenger_channel=e.customize_messenger_channel),c.search=b.param(f),c.href},a.replaceState=function(b){return function(d,f,g){return e=d,b.call(a,d,f,"string"==typeof g&&g.length>0?c(g):g)}}(a.replaceState),a.pushState=function(b){return function(d,f,g){return e=d,b.call(a,d,f,"string"==typeof g&&g.length>0?c(g):g)}}(a.pushState),window.addEventListener("popstate",function(a){e=a.state}))}(history),c=function(a,b,c){var d;return function(){var e=arguments;c=c||this,clearTimeout(d),d=setTimeout(function(){d=null,a.apply(c,e)},b)}},d.Preview=d.Messenger.extend({initialize:function(a,e){var f=this,g=document.createElement("a");d.Messenger.prototype.initialize.call(f,a,e),g.href=f.origin(),f.add("scheme",g.protocol.replace(/:$/,"")),f.body=b(document.body),f.window=b(window),d.settings.channel&&(f.body.on("click.preview","a",function(a){f.handleLinkClick(a)}),f.body.on("submit.preview","form",function(a){f.handleFormSubmit(a)}),f.window.on("scroll.preview",c(function(){f.send("scroll",f.window.scrollTop())},200)),f.bind("scroll",function(a){f.window.scrollTop(a)}))},handleLinkClick:function(a){var c,e,f=this;if(c=b(a.target).closest("a"),!_.isUndefined(c.attr("href"))&&(e="#"===c.attr("href").substr(0,1),!e&&/^https?:$/.test(c.prop("protocol")))){if(!d.isLinkPreviewable(c[0]))return wp.a11y.speak(d.settings.l10n.linkUnpreviewable),void a.preventDefault();a.preventDefault(),a.shiftKey||f.send("url",c.prop("href"))}},handleFormSubmit:function(a){var c,e,f=this;return c=document.createElement("a"),e=b(a.target),c.href=e.prop("action"),"GET"===e.prop("method").toUpperCase()&&d.isLinkPreviewable(c)?(a.isDefaultPrevented()||(c.search.length>1&&(c.search+="&"),c.search+=e.serialize(),f.send("url",c.href)),void a.preventDefault()):(wp.a11y.speak(d.settings.l10n.formUnpreviewable),void a.preventDefault())}}),d.addLinkPreviewing=function(){var a="a[href], area";b(document.body).find(a).each(function(){d.prepareLinkPreview(this)}),"undefined"!=typeof MutationObserver?(d.mutationObserver=new MutationObserver(function(c){_.each(c,function(c){b(c.target).find(a).each(function(){d.prepareLinkPreview(this)})})}),d.mutationObserver.observe(document.documentElement,{childList:!0,subtree:!0})):b(document.documentElement).on("click focus mouseover",a,function(){d.prepareLinkPreview(this)})},d.isLinkPreviewable=function(a,b){var c,e,f;return f=_.extend({},{allowAdminAjax:!1},b||{}),"javascript:"===a.protocol||("https:"===a.protocol||"http:"===a.protocol)&&(e=document.createElement("a"),c=!_.isUndefined(_.find(d.settings.url.allowed,function(b){return e.href=b,e.protocol===a.protocol&&e.host===a.host&&0===a.pathname.indexOf(e.pathname.replace(/\/$/,""))})),!!c&&(!/\/wp-(login|signup)\.php$/.test(a.pathname)&&(/\/wp-admin\/admin-ajax\.php$/.test(a.pathname)?f.allowAdminAjax:!/\/wp-(admin|includes|content)(\/|$)/.test(a.pathname))))},d.prepareLinkPreview=function(a){var c;if(!b(a).closest("#wpadminbar").length&&"#"!==b(a).attr("href").substr(0,1)&&/^https?:$/.test(a.protocol)){if(d.settings.channel&&"https"===d.preview.scheme.get()&&"http:"===a.protocol&&-1!==d.settings.url.allowedHosts.indexOf(a.host)&&(a.protocol="https:"),!d.isLinkPreviewable(a))return void(d.settings.channel&&b(a).addClass("customize-unpreviewable"));b(a).removeClass("customize-unpreviewable"),c=d.utils.parseQueryString(a.search.substring(1)),c.customize_changeset_uuid=d.settings.changeset.uuid,d.settings.theme.active||(c.customize_theme=d.settings.theme.stylesheet),d.settings.channel&&(c.customize_messenger_channel=d.settings.channel),a.search=b.param(c),d.settings.channel&&(a.target="_self")}},d.addRequestPreviewing=function(){var a=function(a,c,e){var f,g,h,i={};f=document.createElement("a"),f.href=a.url,d.isLinkPreviewable(f,{allowAdminAjax:!0})&&(g=d.utils.parseQueryString(f.search.substring(1)),d.each(function(a){a._dirty&&(i[a.id]=a.get())}),_.isEmpty(i)||(h=a.type.toUpperCase(),"POST"!==h&&(e.setRequestHeader("X-HTTP-Method-Override",h),g._method=h,a.type="POST"),a.data?a.data+="&":a.data="",a.data+=b.param({customized:JSON.stringify(i)})),g.customize_changeset_uuid=d.settings.changeset.uuid,d.settings.theme.active||(g.customize_theme=d.settings.theme.stylesheet),f.search=b.param(g),a.url=f.href)};b.ajaxPrefilter(a)},d.addFormPreviewing=function(){b(document.body).find("form").each(function(){d.prepareFormPreview(this)}),"undefined"!=typeof MutationObserver&&(d.mutationObserver=new MutationObserver(function(a){_.each(a,function(a){b(a.target).find("form").each(function(){d.prepareFormPreview(this)})})}),d.mutationObserver.observe(document.documentElement,{chiLine truncated
|
!function(a,b){var c,d=wp.customize,e={};!function(a){var c;a.replaceState&&(c=function(a){var c,e,f;return c=document.createElement("a"),c.href=a,e=d.utils.parseQueryString(location.search.substr(1)),f=d.utils.parseQueryString(c.search.substr(1)),f.customize_changeset_uuid=e.customize_changeset_uuid,e.customize_theme&&(f.customize_theme=e.customize_theme),e.customize_messenger_channel&&(f.customize_messenger_channel=e.customize_messenger_channel),c.search=b.param(f),c.href},a.replaceState=function(b){return function(d,f,g){return e=d,b.call(a,d,f,"string"==typeof g&&g.length>0?c(g):g)}}(a.replaceState),a.pushState=function(b){return function(d,f,g){return e=d,b.call(a,d,f,"string"==typeof g&&g.length>0?c(g):g)}}(a.pushState),window.addEventListener("popstate",function(a){e=a.state}))}(history),c=function(a,b,c){var d;return function(){var e=arguments;c=c||this,clearTimeout(d),d=setTimeout(function(){d=null,a.apply(c,e)},b)}},d.Preview=d.Messenger.extend({initialize:function(a,e){var f=this,g=document.createElement("a");d.Messenger.prototype.initialize.call(f,a,e),g.href=f.origin(),f.add("scheme",g.protocol.replace(/:$/,"")),f.body=b(document.body),f.window=b(window),d.settings.channel&&(f.body.on("click.preview","a",function(a){f.handleLinkClick(a)}),f.body.on("submit.preview","form",function(a){f.handleFormSubmit(a)}),f.window.on("scroll.preview",c(function(){f.send("scroll",f.window.scrollTop())},200)),f.bind("scroll",function(a){f.window.scrollTop(a)}))},handleLinkClick:function(a){var c,e,f=this;if(c=b(a.target).closest("a"),!_.isUndefined(c.attr("href"))&&(e="#"===c.attr("href").substr(0,1),!e&&/^https?:$/.test(c.prop("protocol")))){if(!d.isLinkPreviewable(c[0]))return wp.a11y.speak(d.settings.l10n.linkUnpreviewable),void a.preventDefault();a.preventDefault(),a.shiftKey||f.send("url",c.prop("href"))}},handleFormSubmit:function(a){var c,e,f=this;return c=document.createElement("a"),e=b(a.target),c.href=e.prop("action"),"GET"===e.prop("method").toUpperCase()&&d.isLinkPreviewable(c)?(a.isDefaultPrevented()||(c.search.length>1&&(c.search+="&"),c.search+=e.serialize(),f.send("url",c.href)),void a.preventDefault()):(wp.a11y.speak(d.settings.l10n.formUnpreviewable),void a.preventDefault())}}),d.addLinkPreviewing=function(){var a="a[href], area";b(document.body).find(a).each(function(){d.prepareLinkPreview(this)}),"undefined"!=typeof MutationObserver?(d.mutationObserver=new MutationObserver(function(c){_.each(c,function(c){b(c.target).find(a).each(function(){d.prepareLinkPreview(this)})})}),d.mutationObserver.observe(document.documentElement,{childList:!0,subtree:!0})):b(document.documentElement).on("click focus mouseover",a,function(){d.prepareLinkPreview(this)})},d.isLinkPreviewable=function(a,b){var c,e,f,g;return f=_.extend({},{allowAdminAjax:!1},b||{}),"javascript:"===a.protocol||("https:"===a.protocol||"http:"===a.protocol)&&(g=a.host.replace(/:(80|443)$/,""),e=document.createElement("a"),c=!_.isUndefined(_.find(d.settings.url.allowed,function(b){return e.href=b,e.protocol===a.protocol&&e.host.replace(/:(80|443)$/,"")===g&&0===a.pathname.indexOf(e.pathname.replace(/\/$/,""))})),!!c&&(!/\/wp-(login|signup)\.php$/.test(a.pathname)&&(/\/wp-admin\/admin-ajax\.php$/.test(a.pathname)?f.allowAdminAjax:!/\/wp-(admin|includes|content)(\/|$)/.test(a.pathname))))},d.prepareLinkPreview=function(a){var c;if(!b(a).closest("#wpadminbar").length&&"#"!==b(a).attr("href").substr(0,1)&&/^https?:$/.test(a.protocol)){if(d.settings.channel&&"https"===d.preview.scheme.get()&&"http:"===a.protocol&&-1!==d.settings.url.allowedHosts.indexOf(a.host)&&(a.protocol="https:"),!d.isLinkPreviewable(a))return void(d.settings.channel&&b(a).addClass("customize-unpreviewable"));b(a).removeClass("customize-unpreviewable"),c=d.utils.parseQueryString(a.search.substring(1)),c.customize_changeset_uuid=d.settings.changeset.uuid,d.settings.theme.active||(c.customize_theme=d.settings.theme.stylesheet),d.settings.channel&&(c.customize_messenger_channel=d.settings.channel),a.search=b.param(c),d.settings.channel&&(a.target="_self")}},d.addRequestPreviewing=function(){var a=function(a,c,e){var f,g,h,i={};f=document.createElement("a"),f.href=a.url,d.isLinkPreviewable(f,{allowAdminAjax:!0})&&(g=d.utils.parseQueryString(f.search.substring(1)),d.each(function(a){a._dirty&&(i[a.id]=a.get())}),_.isEmpty(i)||(h=a.type.toUpperCase(),"POST"!==h&&(e.setRequestHeader("X-HTTP-Method-Override",h),g._method=h,a.type="POST"),a.data?a.data+="&":a.data="",a.data+=b.param({customized:JSON.stringify(i)})),g.customize_changeset_uuid=d.settings.changeset.uuid,d.settings.theme.active||(g.customize_theme=d.settings.theme.stylesheet),f.search=b.param(g),a.url=f.href)};b.ajaxPrefilter(a)},d.addFormPreviewing=function(){b(document.body).find("form").each(function(){d.prepareFormPreview(this)}),"undefined"!=typeof MutationObserver&&(d.mutationObserver=new MutationObserver(function(a){_.each(a,function(a){b(a.target).find("form").each(function(){d.prepareFormPreview(this)})})}),Line truncated
|
||||||
@@ -708,6 +708,9 @@
|
|||||||
$( node ).data( 'rendered', false );
|
$( node ).data( 'rendered', false );
|
||||||
editor.dom.setAttrib( node, 'data-wpview-text', encodeURIComponent( text ) );
|
editor.dom.setAttrib( node, 'data-wpview-text', encodeURIComponent( text ) );
|
||||||
wp.mce.views.createInstance( type, text, match.options, force ).render();
|
wp.mce.views.createInstance( type, text, match.options, force ).render();
|
||||||
|
|
||||||
|
editor.selection.select( node );
|
||||||
|
editor.nodeChanged();
|
||||||
editor.focus();
|
editor.focus();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
!function(a,b,c,d){"use strict";var e={},f={};b.mce=b.mce||{},b.mce.views={register:function(a,c){e[a]=b.mce.View.extend(_.extend(c,{type:a}))},unregister:function(a){delete e[a]},get:function(a){return e[a]},unbind:function(){_.each(f,function(a){a.unbind()})},setMarkers:function(a){var b,c,d=[{content:a}],f=this;return _.each(e,function(a,e){c=d.slice(),d=[],_.each(c,function(c){var g,h,i=c.content;if(c.processed)return void d.push(c);for(;i&&(g=a.prototype.match(i));)g.index&&d.push({content:i.substring(0,g.index)}),b=f.createInstance(e,g.content,g.options),h=b.loader?".":b.text,d.push({content:b.ignore?h:'<p data-wpview-marker="'+b.encodedText+'">'+h+"</p>",processed:!0}),i=i.slice(g.index+g.content.length);i&&d.push({content:i})})}),a=_.pluck(d,"content").join(""),a.replace(/<p>\s*<p data-wpview-marker=/g,"<p data-wpview-marker=").replace(/<\/p>\s*<\/p>/g,"</p>")},createInstance:function(a,b,c,d){var e,g,h=this.get(a);return b=tinymce.DOM.decode(b),b.indexOf("[")!==-1&&b.indexOf("]")!==-1&&(b=b.replace(/\[[^\]]+\]/g,function(a){return a.replace(/[\r\n]/g,"")})),!d&&(g=this.getInstance(b))?g:(e=encodeURIComponent(b),c=_.extend(c||{},{text:b,encodedText:e}),f[e]=new h(c))},getInstance:function(a){return"string"==typeof a?f[encodeURIComponent(a)]:f[d(a).attr("data-wpview-text")]},getText:function(a){return decodeURIComponent(d(a).attr("data-wpview-text")||"")},render:function(a){_.each(f,function(b){b.render(null,a)})},update:function(a,b,c,d){var e=this.getInstance(c);e&&e.update(a,b,c,d)},edit:function(a,b){var c=this.getInstance(b);c&&c.edit&&c.edit(c.text,function(d,e){c.update(d,a,b,e)})},remove:function(a,b){var c=this.getInstance(b);c&&c.remove(a,b)}},b.mce.View=function(a){_.extend(this,a),this.initialize()},b.mce.View.extend=Backbone.View.extend,_.extend(b.mce.View.prototype,{content:null,loader:!0,initialize:function(){},getContent:function(){return this.content},render:function(a,b){null!=a&&(this.content=a),a=this.getContent(),(this.loader||a)&&(b&&this.unbind(),this.replaceMarkers(),a?this.setContent(a,function(a,b){d(b).data("rendered",!0),this.bindNode.call(this,a,b)},!!b&&null):this.setLoader())},bindNode:function(){},unbindNode:function(){},unbind:function(){this.getNodes(function(a,b){this.unbindNode.call(this,a,b)},!0)},getEditors:function(a){_.each(tinymce.editors,function(b){b.plugins.wpview&&a.call(this,b)},this)},getNodes:function(a,b){this.getEditors(function(c){var e=this;d(c.getBody()).find('[data-wpview-text="'+e.encodedText+'"]').filter(function(){var a;return null==b||(a=d(this).data("rendered")===!0,b?a:!a)}).each(function(){a.call(e,c,this,this)})})},getMarkers:function(a){this.getEditors(function(b){var c=this;d(b.getBody()).find('[data-wpview-marker="'+this.encodedText+'"]').each(function(){a.call(c,b,this)})})},replaceMarkers:function(){this.getMarkers(function(a,b){var c;return this.loader||d(b).text()===this.text?(c=a.$('<div class="wpview wpview-wrap" data-wpview-text="'+this.encodedText+'" data-wpview-type="'+this.type+'" contenteditable="false"></div>'),void a.$(b).replaceWith(c)):void a.dom.setAttrib(b,"data-wpview-marker",null)})},removeMarkers:function(){this.getMarkers(function(a,b){a.dom.setAttrib(b,"data-wpview-marker",null)})},setContent:function(a,b,c){_.isObject(a)&&a.body.indexOf("<script")!==-1?this.setIframes(a.head||"",a.body,b,c):_.isString(a)&&a.indexOf("<script")!==-1?this.setIframes("",a,b,c):this.getNodes(function(c,d){a=a.body||a,a.indexOf("<iframe")!==-1&&(a+='<span class="mce-shim"></span>'),c.undoManager.transact(function(){d.innerHTML="",d.appendChild(_.isString(a)?c.dom.createFragment(a):a),c.dom.add(d,"span",{"class":"wpview-end"})}),b&&b.call(this,c,d)},c)},setIframes:function(a,c,e,f){var g=this;this.getNodes(function(f,h){function i(){var a;q||k.contentWindow&&(a=d(k),g.iframeHeight=d(m.body).height(),a.height()!==g.iframeHeight&&(a.height(g.iframeHeight),f.nodeChanged()))}function j(){d(h).data("rendered",null),setTimeout(function(){b.mce.views.render()})}var k,l,m,n,o,p,q,r=f.dom,s="",t=f.getBody().className||"",u=f.getDoc().getElementsByTagName("head")[0];if(tinymce.each(r.$('link[rel="stylesheet"]',u),function(a){a.href&&a.href.indexOf("skins/lightgray/content.min.css")===-1&&a.href.indexOf("skins/wordpress/wp-content.css")===-1&&(s+=r.getOuterHTML(a))}),g.iframeHeight&&r.add(h,"span",{"data-mce-bogus":1,style:{display:"block",width:"100%",height:g.iframeHeight}},"\u200b"),f.undoManager.transact(function(){h.innerHTML="",k=r.add(h,"iframe",{src:tinymce.Env.ie?'javascript:""':"",frameBorder:"0",allowTransparency:"true",scrolling:"no","class":"wpview-sandbox",style:{width:"100%",display:"block"},height:g.iframeHeight}),r.add(h,"span",{"class":"mce-shim"}),r.add(h,"span",{"class":"wpview-end"})}),k.contentWindow){if(l=k.contentWindow,m=l.document,m.open(),m.write('<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />'+a+s+'<style>html {background: transparent;padding: 0;margin: 0;}body#wpview-ifLine truncated
|
!function(a,b,c,d){"use strict";var e={},f={};b.mce=b.mce||{},b.mce.views={register:function(a,c){e[a]=b.mce.View.extend(_.extend(c,{type:a}))},unregister:function(a){delete e[a]},get:function(a){return e[a]},unbind:function(){_.each(f,function(a){a.unbind()})},setMarkers:function(a){var b,c,d=[{content:a}],f=this;return _.each(e,function(a,e){c=d.slice(),d=[],_.each(c,function(c){var g,h,i=c.content;if(c.processed)return void d.push(c);for(;i&&(g=a.prototype.match(i));)g.index&&d.push({content:i.substring(0,g.index)}),b=f.createInstance(e,g.content,g.options),h=b.loader?".":b.text,d.push({content:b.ignore?h:'<p data-wpview-marker="'+b.encodedText+'">'+h+"</p>",processed:!0}),i=i.slice(g.index+g.content.length);i&&d.push({content:i})})}),a=_.pluck(d,"content").join(""),a.replace(/<p>\s*<p data-wpview-marker=/g,"<p data-wpview-marker=").replace(/<\/p>\s*<\/p>/g,"</p>")},createInstance:function(a,b,c,d){var e,g,h=this.get(a);return b=tinymce.DOM.decode(b),b.indexOf("[")!==-1&&b.indexOf("]")!==-1&&(b=b.replace(/\[[^\]]+\]/g,function(a){return a.replace(/[\r\n]/g,"")})),!d&&(g=this.getInstance(b))?g:(e=encodeURIComponent(b),c=_.extend(c||{},{text:b,encodedText:e}),f[e]=new h(c))},getInstance:function(a){return"string"==typeof a?f[encodeURIComponent(a)]:f[d(a).attr("data-wpview-text")]},getText:function(a){return decodeURIComponent(d(a).attr("data-wpview-text")||"")},render:function(a){_.each(f,function(b){b.render(null,a)})},update:function(a,b,c,d){var e=this.getInstance(c);e&&e.update(a,b,c,d)},edit:function(a,b){var c=this.getInstance(b);c&&c.edit&&c.edit(c.text,function(d,e){c.update(d,a,b,e)})},remove:function(a,b){var c=this.getInstance(b);c&&c.remove(a,b)}},b.mce.View=function(a){_.extend(this,a),this.initialize()},b.mce.View.extend=Backbone.View.extend,_.extend(b.mce.View.prototype,{content:null,loader:!0,initialize:function(){},getContent:function(){return this.content},render:function(a,b){null!=a&&(this.content=a),a=this.getContent(),(this.loader||a)&&(b&&this.unbind(),this.replaceMarkers(),a?this.setContent(a,function(a,b){d(b).data("rendered",!0),this.bindNode.call(this,a,b)},!!b&&null):this.setLoader())},bindNode:function(){},unbindNode:function(){},unbind:function(){this.getNodes(function(a,b){this.unbindNode.call(this,a,b)},!0)},getEditors:function(a){_.each(tinymce.editors,function(b){b.plugins.wpview&&a.call(this,b)},this)},getNodes:function(a,b){this.getEditors(function(c){var e=this;d(c.getBody()).find('[data-wpview-text="'+e.encodedText+'"]').filter(function(){var a;return null==b||(a=d(this).data("rendered")===!0,b?a:!a)}).each(function(){a.call(e,c,this,this)})})},getMarkers:function(a){this.getEditors(function(b){var c=this;d(b.getBody()).find('[data-wpview-marker="'+this.encodedText+'"]').each(function(){a.call(c,b,this)})})},replaceMarkers:function(){this.getMarkers(function(a,b){var c;return this.loader||d(b).text()===this.text?(c=a.$('<div class="wpview wpview-wrap" data-wpview-text="'+this.encodedText+'" data-wpview-type="'+this.type+'" contenteditable="false"></div>'),void a.$(b).replaceWith(c)):void a.dom.setAttrib(b,"data-wpview-marker",null)})},removeMarkers:function(){this.getMarkers(function(a,b){a.dom.setAttrib(b,"data-wpview-marker",null)})},setContent:function(a,b,c){_.isObject(a)&&a.body.indexOf("<script")!==-1?this.setIframes(a.head||"",a.body,b,c):_.isString(a)&&a.indexOf("<script")!==-1?this.setIframes("",a,b,c):this.getNodes(function(c,d){a=a.body||a,a.indexOf("<iframe")!==-1&&(a+='<span class="mce-shim"></span>'),c.undoManager.transact(function(){d.innerHTML="",d.appendChild(_.isString(a)?c.dom.createFragment(a):a),c.dom.add(d,"span",{"class":"wpview-end"})}),b&&b.call(this,c,d)},c)},setIframes:function(a,c,e,f){var g=this;this.getNodes(function(f,h){function i(){var a;q||k.contentWindow&&(a=d(k),g.iframeHeight=d(m.body).height(),a.height()!==g.iframeHeight&&(a.height(g.iframeHeight),f.nodeChanged()))}function j(){d(h).data("rendered",null),setTimeout(function(){b.mce.views.render()})}var k,l,m,n,o,p,q,r=f.dom,s="",t=f.getBody().className||"",u=f.getDoc().getElementsByTagName("head")[0];if(tinymce.each(r.$('link[rel="stylesheet"]',u),function(a){a.href&&a.href.indexOf("skins/lightgray/content.min.css")===-1&&a.href.indexOf("skins/wordpress/wp-content.css")===-1&&(s+=r.getOuterHTML(a))}),g.iframeHeight&&r.add(h,"span",{"data-mce-bogus":1,style:{display:"block",width:"100%",height:g.iframeHeight}},"\u200b"),f.undoManager.transact(function(){h.innerHTML="",k=r.add(h,"iframe",{src:tinymce.Env.ie?'javascript:""':"",frameBorder:"0",allowTransparency:"true",scrolling:"no","class":"wpview-sandbox",style:{width:"100%",display:"block"},height:g.iframeHeight}),r.add(h,"span",{"class":"mce-shim"}),r.add(h,"span",{"class":"wpview-end"})}),k.contentWindow){if(l=k.contentWindow,m=l.document,m.open(),m.write('<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />'+a+s+'<style>html {background: transparent;padding: 0;margin: 0;}body#wpview-ifLine truncated
|
||||||
@@ -463,4 +463,4 @@ tinymce.PluginManager.add('charmap', function(editor) {
|
|||||||
getCharMap: getCharMap,
|
getCharMap: getCharMap,
|
||||||
insertChar: insertChar
|
insertChar: insertChar
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
@@ -1 +1 @@
|
|||||||
tinymce.PluginManager.add("charmap",function(a){function b(){return[["160","no-break space"],["173","soft hyphen"],["34","quotation mark"],["162","cent sign"],["8364","euro sign"],["163","pound sign"],["165","yen sign"],["169","copyright sign"],["174","registered sign"],["8482","trade mark sign"],["8240","per mille sign"],["181","micro sign"],["183","middle dot"],["8226","bullet"],["8230","three dot leader"],["8242","minutes / feet"],["8243","seconds / inches"],["167","section sign"],["182","paragraph sign"],["223","sharp s / ess-zed"],["8249","single left-pointing angle quotation mark"],["8250","single right-pointing angle quotation mark"],["171","left pointing guillemet"],["187","right pointing guillemet"],["8216","left single quotation mark"],["8217","right single quotation mark"],["8220","left double quotation mark"],["8221","right double quotation mark"],["8218","single low-9 quotation mark"],["8222","double low-9 quotation mark"],["60","less-than sign"],["62","greater-than sign"],["8804","less-than or equal to"],["8805","greater-than or equal to"],["8211","en dash"],["8212","em dash"],["175","macron"],["8254","overline"],["164","currency sign"],["166","broken bar"],["168","diaeresis"],["161","inverted exclamation mark"],["191","turned question mark"],["710","circumflex accent"],["732","small tilde"],["176","degree sign"],["8722","minus sign"],["177","plus-minus sign"],["247","division sign"],["8260","fraction slash"],["215","multiplication sign"],["185","superscript one"],["178","superscript two"],["179","superscript three"],["188","fraction one quarter"],["189","fraction one half"],["190","fraction three quarters"],["402","function / florin"],["8747","integral"],["8721","n-ary sumation"],["8734","infinity"],["8730","square root"],["8764","similar to"],["8773","approximately equal to"],["8776","almost equal to"],["8800","not equal to"],["8801","identical to"],["8712","element of"],["8713","not an element of"],["8715","contains as member"],["8719","n-ary product"],["8743","logical and"],["8744","logical or"],["172","not sign"],["8745","intersection"],["8746","union"],["8706","partial differential"],["8704","for all"],["8707","there exists"],["8709","diameter"],["8711","backward difference"],["8727","asterisk operator"],["8733","proportional to"],["8736","angle"],["180","acute accent"],["184","cedilla"],["170","feminine ordinal indicator"],["186","masculine ordinal indicator"],["8224","dagger"],["8225","double dagger"],["192","A - grave"],["193","A - acute"],["194","A - circumflex"],["195","A - tilde"],["196","A - diaeresis"],["197","A - ring above"],["256","A - macron"],["198","ligature AE"],["199","C - cedilla"],["200","E - grave"],["201","E - acute"],["202","E - circumflex"],["203","E - diaeresis"],["274","E - macron"],["204","I - grave"],["205","I - acute"],["206","I - circumflex"],["207","I - diaeresis"],["298","I - macron"],["208","ETH"],["209","N - tilde"],["210","O - grave"],["211","O - acute"],["212","O - circumflex"],["213","O - tilde"],["214","O - diaeresis"],["216","O - slash"],["332","O - macron"],["338","ligature OE"],["352","S - caron"],["217","U - grave"],["218","U - acute"],["219","U - circumflex"],["220","U - diaeresis"],["362","U - macron"],["221","Y - acute"],["376","Y - diaeresis"],["562","Y - macron"],["222","THORN"],["224","a - grave"],["225","a - acute"],["226","a - circumflex"],["227","a - tilde"],["228","a - diaeresis"],["229","a - ring above"],["257","a - macron"],["230","ligature ae"],["231","c - cedilla"],["232","e - grave"],["233","e - acute"],["234","e - circumflex"],["235","e - diaeresis"],["275","e - macron"],["236","i - grave"],["237","i - acute"],["238","i - circumflex"],["239","i - diaeresis"],["299","i - macron"],["240","eth"],["241","n - tilde"],["242","o - grave"],["243","o - acute"],["244","o - circumflex"],["245","o - tilde"],["246","o - diaeresis"],["248","o slash"],["333","o macron"],["339","ligature oe"],["353","s - caron"],["249","u - grave"],["250","u - acute"],["251","u - circumflex"],["252","u - diaeresis"],["363","u - macron"],["253","y - acute"],["254","thorn"],["255","y - diaeresis"],["563","y - macron"],["913","Alpha"],["914","Beta"],["915","Gamma"],["916","Delta"],["917","Epsilon"],["918","Zeta"],["919","Eta"],["920","Theta"],["921","Iota"],["922","Kappa"],["923","Lambda"],["924","Mu"],["925","Nu"],["926","Xi"],["927","Omicron"],["928","Pi"],["929","Rho"],["931","Sigma"],["932","Tau"],["933","Upsilon"],["934","Phi"],["935","Chi"],["936","Psi"],["937","Omega"],["945","alpha"],["946","beta"],["947","gamma"],["948","delta"],["949","epsilon"],["950","zeta"],["951","eta"],["952","theta"],["953","iota"],["954","kappa"],["955","lambda"],["956","mu"],["957","nu"],["958","xi"],["959","omicron"],["960","pi"],["961","rho"],["962","final sigma"],["963","sigma"],["964","tau"],["965","upsilon"],["966","phi"],["967","chi"],["968","psi"],["969","omega"],["8501","alef symbol"],["982","pi symbol"],["8476","real part symbol"],["978","upsilon - hook symbol"],["8472","WeLine truncated
|
tinymce.PluginManager.add("charmap",function(e){function t(){return[["160","no-break space"],["173","soft hyphen"],["34","quotation mark"],["162","cent sign"],["8364","euro sign"],["163","pound sign"],["165","yen sign"],["169","copyright sign"],["174","registered sign"],["8482","trade mark sign"],["8240","per mille sign"],["181","micro sign"],["183","middle dot"],["8226","bullet"],["8230","three dot leader"],["8242","minutes / feet"],["8243","seconds / inches"],["167","section sign"],["182","paragraph sign"],["223","sharp s / ess-zed"],["8249","single left-pointing angle quotation mark"],["8250","single right-pointing angle quotation mark"],["171","left pointing guillemet"],["187","right pointing guillemet"],["8216","left single quotation mark"],["8217","right single quotation mark"],["8220","left double quotation mark"],["8221","right double quotation mark"],["8218","single low-9 quotation mark"],["8222","double low-9 quotation mark"],["60","less-than sign"],["62","greater-than sign"],["8804","less-than or equal to"],["8805","greater-than or equal to"],["8211","en dash"],["8212","em dash"],["175","macron"],["8254","overline"],["164","currency sign"],["166","broken bar"],["168","diaeresis"],["161","inverted exclamation mark"],["191","turned question mark"],["710","circumflex accent"],["732","small tilde"],["176","degree sign"],["8722","minus sign"],["177","plus-minus sign"],["247","division sign"],["8260","fraction slash"],["215","multiplication sign"],["185","superscript one"],["178","superscript two"],["179","superscript three"],["188","fraction one quarter"],["189","fraction one half"],["190","fraction three quarters"],["402","function / florin"],["8747","integral"],["8721","n-ary sumation"],["8734","infinity"],["8730","square root"],["8764","similar to"],["8773","approximately equal to"],["8776","almost equal to"],["8800","not equal to"],["8801","identical to"],["8712","element of"],["8713","not an element of"],["8715","contains as member"],["8719","n-ary product"],["8743","logical and"],["8744","logical or"],["172","not sign"],["8745","intersection"],["8746","union"],["8706","partial differential"],["8704","for all"],["8707","there exists"],["8709","diameter"],["8711","backward difference"],["8727","asterisk operator"],["8733","proportional to"],["8736","angle"],["180","acute accent"],["184","cedilla"],["170","feminine ordinal indicator"],["186","masculine ordinal indicator"],["8224","dagger"],["8225","double dagger"],["192","A - grave"],["193","A - acute"],["194","A - circumflex"],["195","A - tilde"],["196","A - diaeresis"],["197","A - ring above"],["256","A - macron"],["198","ligature AE"],["199","C - cedilla"],["200","E - grave"],["201","E - acute"],["202","E - circumflex"],["203","E - diaeresis"],["274","E - macron"],["204","I - grave"],["205","I - acute"],["206","I - circumflex"],["207","I - diaeresis"],["298","I - macron"],["208","ETH"],["209","N - tilde"],["210","O - grave"],["211","O - acute"],["212","O - circumflex"],["213","O - tilde"],["214","O - diaeresis"],["216","O - slash"],["332","O - macron"],["338","ligature OE"],["352","S - caron"],["217","U - grave"],["218","U - acute"],["219","U - circumflex"],["220","U - diaeresis"],["362","U - macron"],["221","Y - acute"],["376","Y - diaeresis"],["562","Y - macron"],["222","THORN"],["224","a - grave"],["225","a - acute"],["226","a - circumflex"],["227","a - tilde"],["228","a - diaeresis"],["229","a - ring above"],["257","a - macron"],["230","ligature ae"],["231","c - cedilla"],["232","e - grave"],["233","e - acute"],["234","e - circumflex"],["235","e - diaeresis"],["275","e - macron"],["236","i - grave"],["237","i - acute"],["238","i - circumflex"],["239","i - diaeresis"],["299","i - macron"],["240","eth"],["241","n - tilde"],["242","o - grave"],["243","o - acute"],["244","o - circumflex"],["245","o - tilde"],["246","o - diaeresis"],["248","o slash"],["333","o macron"],["339","ligature oe"],["353","s - caron"],["249","u - grave"],["250","u - acute"],["251","u - circumflex"],["252","u - diaeresis"],["363","u - macron"],["253","y - acute"],["254","thorn"],["255","y - diaeresis"],["563","y - macron"],["913","Alpha"],["914","Beta"],["915","Gamma"],["916","Delta"],["917","Epsilon"],["918","Zeta"],["919","Eta"],["920","Theta"],["921","Iota"],["922","Kappa"],["923","Lambda"],["924","Mu"],["925","Nu"],["926","Xi"],["927","Omicron"],["928","Pi"],["929","Rho"],["931","Sigma"],["932","Tau"],["933","Upsilon"],["934","Phi"],["935","Chi"],["936","Psi"],["937","Omega"],["945","alpha"],["946","beta"],["947","gamma"],["948","delta"],["949","epsilon"],["950","zeta"],["951","eta"],["952","theta"],["953","iota"],["954","kappa"],["955","lambda"],["956","mu"],["957","nu"],["958","xi"],["959","omicron"],["960","pi"],["961","rho"],["962","final sigma"],["963","sigma"],["964","tau"],["965","upsilon"],["966","phi"],["967","chi"],["968","psi"],["969","omega"],["8501","alef symbol"],["982","pi symbol"],["8476","real part symbol"],["978","upsilon - hook symbol"],["8472","WeLine truncated
|
||||||
@@ -1 +1 @@
|
|||||||
tinymce.PluginManager.add("colorpicker",function(a){function b(b,c){function d(a){var b=new tinymce.util.Color(a),c=b.toRgb();f.fromJSON({r:c.r,g:c.g,b:c.b,hex:b.toHex().substr(1)}),e(b.toHex())}function e(a){f.find("#preview")[0].getEl().style.background=a}var f=a.windowManager.open({title:"Color",items:{type:"container",layout:"flex",direction:"row",align:"stretch",padding:5,spacing:10,items:[{type:"colorpicker",value:c,onchange:function(){var a=this.rgb();f&&(f.find("#r").value(a.r),f.find("#g").value(a.g),f.find("#b").value(a.b),f.find("#hex").value(this.value().substr(1)),e(this.value()))}},{type:"form",padding:0,labelGap:5,defaults:{type:"textbox",size:7,value:"0",flex:1,spellcheck:!1,onchange:function(){var a,b,c=f.find("colorpicker")[0];return a=this.name(),b=this.value(),"hex"==a?(b="#"+b,d(b),void c.value(b)):(b={r:f.find("#r").value(),g:f.find("#g").value(),b:f.find("#b").value()},c.value(b),void d(b))}},items:[{name:"r",label:"R",autofocus:1},{name:"g",label:"G"},{name:"b",label:"B"},{name:"hex",label:"#",value:"000000"},{name:"preview",type:"container",border:1}]}]},onSubmit:function(){b("#"+this.toJSON().hex)}});d(c)}a.settings.color_picker_callback||(a.settings.color_picker_callback=b)});
|
tinymce.PluginManager.add("colorpicker",function(e){function t(t,n){function r(e){var t=new tinymce.util.Color(e),n=t.toRgb();o.fromJSON({r:n.r,g:n.g,b:n.b,hex:t.toHex().substr(1)}),i(t.toHex())}function i(e){o.find("#preview")[0].getEl().style.background=e}var o=e.windowManager.open({title:"Color",items:{type:"container",layout:"flex",direction:"row",align:"stretch",padding:5,spacing:10,items:[{type:"colorpicker",value:n,onchange:function(){var e=this.rgb();o&&(o.find("#r").value(e.r),o.find("#g").value(e.g),o.find("#b").value(e.b),o.find("#hex").value(this.value().substr(1)),i(this.value()))}},{type:"form",padding:0,labelGap:5,defaults:{type:"textbox",size:7,value:"0",flex:1,spellcheck:!1,onchange:function(){var e,t,n=o.find("colorpicker")[0];return e=this.name(),t=this.value(),"hex"==e?(t="#"+t,r(t),void n.value(t)):(t={r:o.find("#r").value(),g:o.find("#g").value(),b:o.find("#b").value()},n.value(t),void r(t))}},items:[{name:"r",label:"R",autofocus:1},{name:"g",label:"G"},{name:"b",label:"B"},{name:"hex",label:"#",value:"000000"},{name:"preview",type:"container",border:1}]}]},onSubmit:function(){t("#"+this.toJSON().hex)}});r(n)}e.settings.color_picker_callback||(e.settings.color_picker_callback=t)});
|
||||||
@@ -105,6 +105,15 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
function patchEditor(editor) {
|
function patchEditor(editor) {
|
||||||
|
|
||||||
|
function translate(str) {
|
||||||
|
var prefix = editor.settings.language || "en";
|
||||||
|
var prefixedStr = [prefix, str].join('.');
|
||||||
|
var translatedStr = tinymce.i18n.translate(prefixedStr);
|
||||||
|
|
||||||
|
return prefixedStr !== translatedStr ? translatedStr : tinymce.i18n.translate(str);
|
||||||
|
}
|
||||||
|
|
||||||
function patchEditorEvents(oldEventNames, argsMap) {
|
function patchEditorEvents(oldEventNames, argsMap) {
|
||||||
tinymce.each(oldEventNames.split(" "), function(oldName) {
|
tinymce.each(oldEventNames.split(" "), function(oldName) {
|
||||||
editor["on" + oldName] = new Dispatcher(editor, oldName, argsMap);
|
editor["on" + oldName] = new Dispatcher(editor, oldName, argsMap);
|
||||||
@@ -209,13 +218,13 @@
|
|||||||
|
|
||||||
var originalAddButton = editor.addButton;
|
var originalAddButton = editor.addButton;
|
||||||
editor.addButton = function(name, settings) {
|
editor.addButton = function(name, settings) {
|
||||||
var originalOnPostRender, string, translated;
|
var originalOnPostRender;
|
||||||
|
|
||||||
function patchedPostRender() {
|
function patchedPostRender() {
|
||||||
editor.controlManager.buttons[name] = this;
|
editor.controlManager.buttons[name] = this;
|
||||||
|
|
||||||
if (originalOnPostRender) {
|
if (originalOnPostRender) {
|
||||||
return originalOnPostRender.call(this);
|
return originalOnPostRender.apply(this, arguments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -231,14 +240,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (settings.title) {
|
if (settings.title) {
|
||||||
// WP
|
settings.title = translate(settings.title);
|
||||||
string = (editor.settings.language || "en") + "." + settings.title;
|
|
||||||
translated = tinymce.i18n.translate(string);
|
|
||||||
|
|
||||||
if ( string !== translated ) {
|
|
||||||
settings.title = translated;
|
|
||||||
}
|
|
||||||
// WP end
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return originalAddButton.call(this, name, settings);
|
return originalAddButton.call(this, name, settings);
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
!function(a){function b(){}function c(a){!f&&window&&window.console&&(f=!0,console.log("Deprecated TinyMCE API call: "+a))}function d(a,d,e,f){return a=a||this,d?(this.add=function(b,g,h){function i(c){var h=[];if("string"==typeof e&&(e=e.split(" ")),e&&"function"!=typeof e)for(var i=0;i<e.length;i++)h.push(c[e[i]]);("function"!=typeof e||(h=e(d,c,a)))&&(e||(h=[c]),h.unshift(f||a),b.apply(g||f||a,h)===!1&&c.stopImmediatePropagation())}return c("<target>.on"+d+".add(..)"),a.on(d,i,h),i},this.addToTop=function(a,b){this.add(a,b,!0)},this.remove=function(b){return a.off(d,b)},void(this.dispatch=function(){return a.fire(d),!0})):void(this.add=this.addToTop=this.remove=this.dispatch=b)}function e(e){function f(b,c){a.each(b.split(" "),function(a){e["on"+a]=new d(e,a,c)})}function g(a,b,c){return[b.level,c]}function h(a){return function(b,c){return!c.selection&&!a||c.selection==a?[c]:void 0}}function i(){function b(){return i()}var d={},e="add addMenu addSeparator collapse createMenu destroy displayColor expand focus getLength hasMenus hideMenu isActive isCollapsed isDisabled isRendered isSelected mark postRender remove removeAll renderHTML renderMenu renderNode renderTo select selectByIndex setActive setAriaProperty setColor setDisabled setSelected setState showMenu update";return c("editor.controlManager.*"),a.each(e.split(" "),function(a){d[a]=b}),d}if(!e.controlManager){e.controlManager={buttons:{},setDisabled:function(a,b){c("controlManager.setDisabled(..)"),this.buttons[a]&&this.buttons[a].disabled(b)},setActive:function(a,b){c("controlManager.setActive(..)"),this.buttons[a]&&this.buttons[a].active(b)},onAdd:new d,onPostRender:new d,add:function(a){return a},createButton:i,createColorSplitButton:i,createControl:i,createDropMenu:i,createListBox:i,createMenuButton:i,createSeparator:i,createSplitButton:i,createToolbar:i,createToolbarGroup:i,destroy:b,get:b,setControlType:i},f("PreInit BeforeRenderUI PostRender Load Init Remove Activate Deactivate","editor"),f("Click MouseUp MouseDown DblClick KeyDown KeyUp KeyPress ContextMenu Paste Submit Reset"),f("BeforeExecCommand ExecCommand","command ui value args"),f("PreProcess PostProcess LoadContent SaveContent Change"),f("BeforeSetContent BeforeGetContent SetContent GetContent",h(!1)),f("SetProgressState","state time"),f("VisualAid","element hasVisual"),f("Undo Redo",g),f("NodeChange",function(a,b){return[e.controlManager,b.element,e.selection.isCollapsed(),b]});var j=e.addButton;e.addButton=function(b,c){function d(){return e.controlManager.buttons[b]=this,f?f.call(this):void 0}var f,g,h;for(var i in c)"onpostrender"===i.toLowerCase()&&(f=c[i],c.onPostRender=d);return f||(c.onPostRender=d),c.title&&(g=(e.settings.language||"en")+"."+c.title,h=a.i18n.translate(g),g!==h&&(c.title=h)),j.call(this,b,c)},e.on("init",function(){var a=e.undoManager,b=e.selection;a.onUndo=new d(e,"Undo",g,null,a),a.onRedo=new d(e,"Redo",g,null,a),a.onBeforeAdd=new d(e,"BeforeAddUndo",null,a),a.onAdd=new d(e,"AddUndo",null,a),b.onBeforeGetContent=new d(e,"BeforeGetContent",h(!0),b),b.onGetContent=new d(e,"GetContent",h(!0),b),b.onBeforeSetContent=new d(e,"BeforeSetContent",h(!0),b),b.onSetContent=new d(e,"SetContent",h(!0),b)}),e.on("BeforeRenderUI",function(){var b=e.windowManager;b.onOpen=new d,b.onClose=new d,b.createInstance=function(b,d,e,f,g,h){c("windowManager.createInstance(..)");var i=a.resolve(b);return new i(d,e,f,g,h)}})}}var f;a.util.Dispatcher=d,a.onBeforeUnload=new d(a,"BeforeUnload"),a.onAddEditor=new d(a,"AddEditor","editor"),a.onRemoveEditor=new d(a,"RemoveEditor","editor"),a.util.Cookie={get:b,getHash:b,remove:b,set:b,setHash:b},a.on("SetupEditor",e),a.PluginManager.add("compat3x",e),a.addI18n=function(b,c){var d=a.util.I18n,e=a.each;return"string"==typeof b&&-1===b.indexOf(".")?void d.add(b,c):void(a.is(b,"string")?e(c,function(a,c){d.data[b+"."+c]=a}):e(b,function(a,b){e(a,function(a,c){e(a,function(a,e){"common"===c?d.data[b+"."+e]=a:d.data[b+"."+c+"."+e]=a})})}))}}(tinymce);
|
!function(e){function t(){}function n(e){!o&&window&&window.console&&(o=!0,console.log("Deprecated TinyMCE API call: "+e))}function r(e,r,i,o){return e=e||this,r?(this.add=function(t,a,s){function l(n){var s=[];if("string"==typeof i&&(i=i.split(" ")),i&&"function"!=typeof i)for(var l=0;l<i.length;l++)s.push(n[i[l]]);("function"!=typeof i||(s=i(r,n,e)))&&(i||(s=[n]),s.unshift(o||e),t.apply(a||o||e,s)===!1&&n.stopImmediatePropagation())}return n("<target>.on"+r+".add(..)"),e.on(r,l,s),l},this.addToTop=function(e,t){this.add(e,t,!0)},this.remove=function(t){return e.off(r,t)},void(this.dispatch=function(){return e.fire(r),!0})):void(this.add=this.addToTop=this.remove=this.dispatch=t)}function i(i){function o(t){var n=i.settings.language||"en",r=[n,t].join("."),o=e.i18n.translate(r);return r!==o?o:e.i18n.translate(t)}function a(t,n){e.each(t.split(" "),function(e){i["on"+e]=new r(i,e,n)})}function s(e,t,n){return[t.level,n]}function l(e){return function(t,n){if(!n.selection&&!e||n.selection==e)return[n]}}function u(){function t(){return u()}var r={},i="add addMenu addSeparator collapse createMenu destroy displayColor expand focus getLength hasMenus hideMenu isActive isCollapsed isDisabled isRendered isSelected mark postRender remove removeAll renderHTML renderMenu renderNode renderTo select selectByIndex setActive setAriaProperty setColor setDisabled setSelected setState showMenu update";return n("editor.controlManager.*"),e.each(i.split(" "),function(e){r[e]=t}),r}if(!i.controlManager){i.controlManager={buttons:{},setDisabled:function(e,t){n("controlManager.setDisabled(..)"),this.buttons[e]&&this.buttons[e].disabled(t)},setActive:function(e,t){n("controlManager.setActive(..)"),this.buttons[e]&&this.buttons[e].active(t)},onAdd:new r,onPostRender:new r,add:function(e){return e},createButton:u,createColorSplitButton:u,createControl:u,createDropMenu:u,createListBox:u,createMenuButton:u,createSeparator:u,createSplitButton:u,createToolbar:u,createToolbarGroup:u,destroy:t,get:t,setControlType:u},a("PreInit BeforeRenderUI PostRender Load Init Remove Activate Deactivate","editor"),a("Click MouseUp MouseDown DblClick KeyDown KeyUp KeyPress ContextMenu Paste Submit Reset"),a("BeforeExecCommand ExecCommand","command ui value args"),a("PreProcess PostProcess LoadContent SaveContent Change"),a("BeforeSetContent BeforeGetContent SetContent GetContent",l(!1)),a("SetProgressState","state time"),a("VisualAid","element hasVisual"),a("Undo Redo",s),a("NodeChange",function(e,t){return[i.controlManager,t.element,i.selection.isCollapsed(),t]});var c=i.addButton;i.addButton=function(e,t){function n(){if(i.controlManager.buttons[e]=this,r)return r.apply(this,arguments)}var r;for(var a in t)"onpostrender"===a.toLowerCase()&&(r=t[a],t.onPostRender=n);return r||(t.onPostRender=n),t.title&&(t.title=o(t.title)),c.call(this,e,t)},i.on("init",function(){var e=i.undoManager,t=i.selection;e.onUndo=new r(i,"Undo",s,null,e),e.onRedo=new r(i,"Redo",s,null,e),e.onBeforeAdd=new r(i,"BeforeAddUndo",null,e),e.onAdd=new r(i,"AddUndo",null,e),t.onBeforeGetContent=new r(i,"BeforeGetContent",l(!0),t),t.onGetContent=new r(i,"GetContent",l(!0),t),t.onBeforeSetContent=new r(i,"BeforeSetContent",l(!0),t),t.onSetContent=new r(i,"SetContent",l(!0),t)}),i.on("BeforeRenderUI",function(){var t=i.windowManager;t.onOpen=new r,t.onClose=new r,t.createInstance=function(t,r,i,o,a,s){n("windowManager.createInstance(..)");var l=e.resolve(t);return new l(r,i,o,a,s)}})}}var o;e.util.Dispatcher=r,e.onBeforeUnload=new r(e,"BeforeUnload"),e.onAddEditor=new r(e,"AddEditor","editor"),e.onRemoveEditor=new r(e,"RemoveEditor","editor"),e.util.Cookie={get:t,getHash:t,remove:t,set:t,setHash:t},e.on("SetupEditor",i),e.PluginManager.add("compat3x",i),e.addI18n=function(t,n){var r=e.util.I18n,i=e.each;return"string"==typeof t&&t.indexOf(".")===-1?void r.add(t,n):void(e.is(t,"string")?i(n,function(e,n){r.data[t+"."+n]=e}):i(t,function(e,t){i(e,function(e,n){i(e,function(e,i){"common"===n?r.data[t+"."+i]=e:r.data[t+"."+n+"."+i]=e})})}))}}(tinymce);
|
||||||
@@ -1 +1 @@
|
|||||||
tinymce.PluginManager.add("directionality",function(a){function b(b){var c,d=a.dom,e=a.selection.getSelectedBlocks();e.length&&(c=d.getAttrib(e[0],"dir"),tinymce.each(e,function(a){d.getParent(a.parentNode,"*[dir='"+b+"']",d.getRoot())||(c!=b?d.setAttrib(a,"dir",b):d.setAttrib(a,"dir",null))}),a.nodeChanged())}function c(a){var b=[];return tinymce.each("h1 h2 h3 h4 h5 h6 div p".split(" "),function(c){b.push(c+"[dir="+a+"]")}),b.join(",")}a.addCommand("mceDirectionLTR",function(){b("ltr")}),a.addCommand("mceDirectionRTL",function(){b("rtl")}),a.addButton("ltr",{title:"Left to right",cmd:"mceDirectionLTR",stateSelector:c("ltr")}),a.addButton("rtl",{title:"Right to left",cmd:"mceDirectionRTL",stateSelector:c("rtl")})});
|
tinymce.PluginManager.add("directionality",function(e){function t(t){var n,r=e.dom,i=e.selection.getSelectedBlocks();i.length&&(n=r.getAttrib(i[0],"dir"),tinymce.each(i,function(e){r.getParent(e.parentNode,"*[dir='"+t+"']",r.getRoot())||(n!=t?r.setAttrib(e,"dir",t):r.setAttrib(e,"dir",null))}),e.nodeChanged())}function n(e){var t=[];return tinymce.each("h1 h2 h3 h4 h5 h6 div p".split(" "),function(n){t.push(n+"[dir="+e+"]")}),t.join(",")}e.addCommand("mceDirectionLTR",function(){t("ltr")}),e.addCommand("mceDirectionRTL",function(){t("rtl")}),e.addButton("ltr",{title:"Left to right",cmd:"mceDirectionLTR",stateSelector:n("ltr")}),e.addButton("rtl",{title:"Right to left",cmd:"mceDirectionRTL",stateSelector:n("rtl")})});
|
||||||
@@ -1 +1 @@
|
|||||||
tinymce.PluginManager.add("fullscreen",function(a){function b(){var a,b,c=window,d=document,e=d.body;return e.offsetWidth&&(a=e.offsetWidth,b=e.offsetHeight),c.innerWidth&&c.innerHeight&&(a=c.innerWidth,b=c.innerHeight),{w:a,h:b}}function c(){var a=tinymce.DOM.getViewPort();return{x:a.x,y:a.y}}function d(a){scrollTo(a.x,a.y)}function e(){function e(){m.setStyle(p,"height",b().h-(o.clientHeight-p.clientHeight))}var n,o,p,q,r=document.body,s=document.documentElement;l=!l,o=a.getContainer(),n=o.style,p=a.getContentAreaContainer().firstChild,q=p.style,l?(k=c(),f=q.width,g=q.height,q.width=q.height="100%",i=n.width,j=n.height,n.width=n.height="",m.addClass(r,"mce-fullscreen"),m.addClass(s,"mce-fullscreen"),m.addClass(o,"mce-fullscreen"),m.bind(window,"resize",e),e(),h=e):(q.width=f,q.height=g,i&&(n.width=i),j&&(n.height=j),m.removeClass(r,"mce-fullscreen"),m.removeClass(s,"mce-fullscreen"),m.removeClass(o,"mce-fullscreen"),m.unbind(window,"resize",h),d(k)),a.fire("FullscreenStateChanged",{state:l})}var f,g,h,i,j,k,l=!1,m=tinymce.DOM;return a.settings.inline?void 0:(a.on("init",function(){a.addShortcut("Ctrl+Shift+F","",e)}),a.on("remove",function(){h&&m.unbind(window,"resize",h)}),a.addCommand("mceFullScreen",e),a.addMenuItem("fullscreen",{text:"Fullscreen",shortcut:"Ctrl+Shift+F",selectable:!0,onClick:function(){e(),a.focus()},onPostRender:function(){var b=this;a.on("FullscreenStateChanged",function(a){b.active(a.state)})},context:"view"}),a.addButton("fullscreen",{tooltip:"Fullscreen",shortcut:"Ctrl+Shift+F",onClick:e,onPostRender:function(){var b=this;a.on("FullscreenStateChanged",function(a){b.active(a.state)})}}),{isFullscreen:function(){return l}})});
|
tinymce.PluginManager.add("fullscreen",function(e){function t(){var e,t,n=window,r=document,i=r.body;return i.offsetWidth&&(e=i.offsetWidth,t=i.offsetHeight),n.innerWidth&&n.innerHeight&&(e=n.innerWidth,t=n.innerHeight),{w:e,h:t}}function n(){var e=tinymce.DOM.getViewPort();return{x:e.x,y:e.y}}function r(e){scrollTo(e.x,e.y)}function i(){function i(){f.setStyle(m,"height",t().h-(h.clientHeight-m.clientHeight))}var p,h,m,g,v=document.body,y=document.documentElement;d=!d,h=e.getContainer(),p=h.style,m=e.getContentAreaContainer().firstChild,g=m.style,d?(c=n(),o=g.width,a=g.height,g.width=g.height="100%",l=p.width,u=p.height,p.width=p.height="",f.addClass(v,"mce-fullscreen"),f.addClass(y,"mce-fullscreen"),f.addClass(h,"mce-fullscreen"),f.bind(window,"resize",i),i(),s=i):(g.width=o,g.height=a,l&&(p.width=l),u&&(p.height=u),f.removeClass(v,"mce-fullscreen"),f.removeClass(y,"mce-fullscreen"),f.removeClass(h,"mce-fullscreen"),f.unbind(window,"resize",s),r(c)),e.fire("FullscreenStateChanged",{state:d})}var o,a,s,l,u,c,d=!1,f=tinymce.DOM;if(!e.settings.inline)return e.on("init",function(){e.addShortcut("Ctrl+Shift+F","",i)}),e.on("remove",function(){s&&f.unbind(window,"resize",s)}),e.addCommand("mceFullScreen",i),e.addMenuItem("fullscreen",{text:"Fullscreen",shortcut:"Ctrl+Shift+F",selectable:!0,onClick:function(){i(),e.focus()},onPostRender:function(){var t=this;e.on("FullscreenStateChanged",function(e){t.active(e.state)})},context:"view"}),e.addButton("fullscreen",{tooltip:"Fullscreen",shortcut:"Ctrl+Shift+F",onClick:i,onPostRender:function(){var t=this;e.on("FullscreenStateChanged",function(e){t.active(e.state)})}}),{isFullscreen:function(){return d}}});
|
||||||
@@ -1 +1 @@
|
|||||||
tinymce.PluginManager.add("hr",function(a){a.addCommand("InsertHorizontalRule",function(){a.execCommand("mceInsertContent",!1,"<hr />")}),a.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),a.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})});
|
tinymce.PluginManager.add("hr",function(e){e.addCommand("InsertHorizontalRule",function(){e.execCommand("mceInsertContent",!1,"<hr />")}),e.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),e.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})});
|
||||||
@@ -306,6 +306,10 @@ tinymce.PluginManager.add('image', function(editor) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onBeforeCall(e) {
|
||||||
|
e.meta = win.toJSON();
|
||||||
|
}
|
||||||
|
|
||||||
imgElm = editor.selection.getNode();
|
imgElm = editor.selection.getNode();
|
||||||
figureElm = dom.getParent(imgElm, 'figure.image');
|
figureElm = dom.getParent(imgElm, 'figure.image');
|
||||||
if (figureElm) {
|
if (figureElm) {
|
||||||
@@ -388,7 +392,8 @@ tinymce.PluginManager.add('image', function(editor) {
|
|||||||
filetype: 'image',
|
filetype: 'image',
|
||||||
label: 'Source',
|
label: 'Source',
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
onchange: srcChange
|
onchange: srcChange,
|
||||||
|
onbeforecall: onBeforeCall
|
||||||
},
|
},
|
||||||
imageListCtrl
|
imageListCtrl
|
||||||
];
|
];
|
||||||
@@ -640,7 +645,7 @@ tinymce.PluginManager.add('image', function(editor) {
|
|||||||
|
|
||||||
editor.addMenuItem('image', {
|
editor.addMenuItem('image', {
|
||||||
icon: 'image',
|
icon: 'image',
|
||||||
text: 'Insert/edit image',
|
text: 'Image',
|
||||||
onclick: createImageList(showDialog),
|
onclick: createImageList(showDialog),
|
||||||
context: 'insert',
|
context: 'insert',
|
||||||
prependToContext: true
|
prependToContext: true
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
tinymce.PluginManager.add("image",function(a){function b(a,b){function c(a,c){d.parentNode&&d.parentNode.removeChild(d),b({width:a,height:c})}var d=document.createElement("img");d.onload=function(){c(Math.max(d.width,d.clientWidth),Math.max(d.height,d.clientHeight))},d.onerror=function(){c()};var e=d.style;e.visibility="hidden",e.position="fixed",e.bottom=e.left=0,e.width=e.height="auto",document.body.appendChild(d),d.src=a}function c(a,b,c){function d(a,c){return c=c||[],tinymce.each(a,function(a){var e={text:a.text||a.title};a.menu?e.menu=d(a.menu):(e.value=a.value,b(e)),c.push(e)}),c}return d(a,c||[])}function d(b){return function(){var c=a.settings.image_list;"string"==typeof c?tinymce.util.XHR.send({url:c,success:function(a){b(tinymce.util.JSON.parse(a))}}):"function"==typeof c?c(b):b(c)}}function e(d){function e(){var a,b,c,d;a=l.find("#width")[0],b=l.find("#height")[0],a&&b&&(c=a.value(),d=b.value(),l.find("#constrain")[0].checked()&&o&&p&&c&&d&&(o!=c?(d=Math.round(c/o*d),isNaN(d)||b.value(d)):(c=Math.round(d/p*c),isNaN(c)||a.value(c))),o=c,p=d)}function f(){function b(b){function c(){b.onload=b.onerror=null,a.selection&&(a.selection.select(b),a.nodeChanged())}b.onload=function(){s.width||s.height||!u||(t.setAttribs(b,{width:b.clientWidth,height:b.clientHeight}),a.fire("wpNewImageRefresh",{node:b})),c()},b.onerror=c}var c,d;j(),e(),s=tinymce.extend(s,l.toJSON());var f=s.wpcaption;s.alt||(s.alt=""),s.title||(s.title=""),""===s.width&&(s.width=null),""===s.height&&(s.height=null),s.style||(s.style=null),s={src:s.src,alt:s.alt,title:s.title,width:s.width,height:s.height,style:s.style,caption:s.caption,"class":s["class"]},a.undoManager.transact(function(){function e(b){return a.schema.getTextBlockElements()[b.nodeName]}var g={node:m,data:s,wpcaption:f};if(a.fire("wpImageFormSubmit",{imgData:g}),g.cancel)return void b(g.node);if(!s.src)return void(m&&(t.remove(m),a.focus(),a.nodeChanged()));if(""===s.title&&(s.title=null),m?t.setAttribs(m,s):(s.id="__mcenew",a.focus(),a.selection.setContent(t.createHTML("img",s)),m=t.get("__mcenew"),t.setAttrib(m,"id",null)),a.editorUpload.uploadImagesAuto(),s.caption===!1&&t.is(m.parentNode,"figure.image")&&(c=m.parentNode,t.insertAfter(m,c),t.remove(c)),s.caption!==!0)b(m);else if(!t.is(m.parentNode,"figure.image")){d=m,m=m.cloneNode(!0),c=t.create("figure",{"class":"image"}),c.appendChild(m),c.appendChild(t.create("figcaption",{contentEditable:!0},"Caption")),c.contentEditable=!1;var h=t.getParent(d,e);h?t.split(h,d,c):t.replace(c,d),a.selection.select(c)}})}function g(a){return a&&(a=a.replace(/px$/,"")),a}function h(c){var d,e,f,g=c.meta||{};q&&q.value(a.convertURL(this.value(),"src")),tinymce.each(g,function(a,b){l.find("#"+b).value(a)}),g.width||g.height||(d=a.convertURL(this.value(),"src"),e=a.settings.image_prepend_url,f=new RegExp("^(?:[a-z]+:)?//","i"),e&&!f.test(d)&&d.substring(0,e.length)!==e&&(d=e+d),this.value(d),b(a.documentBaseURI.toAbsolute(this.value()),function(a){a.width&&a.height&&u&&(o=a.width,p=a.height,l.find("#width").value(o),l.find("#height").value(p))}))}function i(a){if(a.margin){var b=a.margin.split(" ");switch(b.length){case 1:a["margin-top"]=a["margin-top"]||b[0],a["margin-right"]=a["margin-right"]||b[0],a["margin-bottom"]=a["margin-bottom"]||b[0],a["margin-left"]=a["margin-left"]||b[0];break;case 2:a["margin-top"]=a["margin-top"]||b[0],a["margin-right"]=a["margin-right"]||b[1],a["margin-bottom"]=a["margin-bottom"]||b[0],a["margin-left"]=a["margin-left"]||b[1];break;case 3:a["margin-top"]=a["margin-top"]||b[0],a["margin-right"]=a["margin-right"]||b[1],a["margin-bottom"]=a["margin-bottom"]||b[2],a["margin-left"]=a["margin-left"]||b[1];break;case 4:a["margin-top"]=a["margin-top"]||b[0],a["margin-right"]=a["margin-right"]||b[1],a["margin-bottom"]=a["margin-bottom"]||b[2],a["margin-left"]=a["margin-left"]||b[3]}delete a.margin}return a}function j(){function b(a){return a.length>0&&/^[0-9]+$/.test(a)&&(a+="px"),a}if(a.settings.image_advtab){var c=l.toJSON(),d=t.parseStyle(c.style);d=i(d),c.vspace&&(d["margin-top"]=d["margin-bottom"]=b(c.vspace)),c.hspace&&(d["margin-left"]=d["margin-right"]=b(c.hspace)),c.border&&(d["border-width"]=b(c.border)),l.find("#style").value(t.serializeStyle(t.parseStyle(t.serializeStyle(d))))}}function k(){if(a.settings.image_advtab){var b=l.toJSON(),c=t.parseStyle(b.style);l.find("#vspace").value(""),l.find("#hspace").value(""),c=i(c),(c["margin-top"]&&c["margin-bottom"]||c["margin-right"]&&c["margin-left"])&&(c["margin-top"]===c["margin-bottom"]?l.find("#vspace").value(g(c["margin-top"])):l.find("#vspace").value(""),c["margin-right"]===c["margin-left"]?l.find("#hspace").value(g(c["margin-right"])):l.find("#hspace").value("")),c["border-width"]&&l.find("#border").value(g(c["border-width"])),l.find("#style").value(t.serializeStyle(t.parseStyle(t.serializeStyle(c))))}}var l,m,n,o,p,q,r,s={},t=a.dom,u=a.settings.image_dimensions!==!1;m=a.selection.getNode(),n=t.getParent(m,"figure.image"),n&&(m=t.select("img",n)[0]),m&Line truncated
|
tinymce.PluginManager.add("image",function(a){function b(a,b){function c(a,c){d.parentNode&&d.parentNode.removeChild(d),b({width:a,height:c})}var d=document.createElement("img");d.onload=function(){c(Math.max(d.width,d.clientWidth),Math.max(d.height,d.clientHeight))},d.onerror=function(){c()};var e=d.style;e.visibility="hidden",e.position="fixed",e.bottom=e.left=0,e.width=e.height="auto",document.body.appendChild(d),d.src=a}function c(a,b,c){function d(a,c){return c=c||[],tinymce.each(a,function(a){var e={text:a.text||a.title};a.menu?e.menu=d(a.menu):(e.value=a.value,b(e)),c.push(e)}),c}return d(a,c||[])}function d(b){return function(){var c=a.settings.image_list;"string"==typeof c?tinymce.util.XHR.send({url:c,success:function(a){b(tinymce.util.JSON.parse(a))}}):"function"==typeof c?c(b):b(c)}}function e(d){function e(){var a,b,c,d;a=m.find("#width")[0],b=m.find("#height")[0],a&&b&&(c=a.value(),d=b.value(),m.find("#constrain")[0].checked()&&p&&q&&c&&d&&(p!=c?(d=Math.round(c/p*d),isNaN(d)||b.value(d)):(c=Math.round(d/q*c),isNaN(c)||a.value(c))),p=c,q=d)}function f(){function b(b){function c(){b.onload=b.onerror=null,a.selection&&(a.selection.select(b),a.nodeChanged())}b.onload=function(){t.width||t.height||!v||(u.setAttribs(b,{width:b.clientWidth,height:b.clientHeight}),a.fire("wpNewImageRefresh",{node:b})),c()},b.onerror=c}var c,d;k(),e(),t=tinymce.extend(t,m.toJSON());var f=t.wpcaption;t.alt||(t.alt=""),t.title||(t.title=""),""===t.width&&(t.width=null),""===t.height&&(t.height=null),t.style||(t.style=null),t={src:t.src,alt:t.alt,title:t.title,width:t.width,height:t.height,style:t.style,caption:t.caption,"class":t["class"]},a.undoManager.transact(function(){function e(b){return a.schema.getTextBlockElements()[b.nodeName]}var g={node:n,data:t,wpcaption:f};if(a.fire("wpImageFormSubmit",{imgData:g}),g.cancel)return void b(g.node);if(!t.src)return void(n&&(u.remove(n),a.focus(),a.nodeChanged()));if(""===t.title&&(t.title=null),n?u.setAttribs(n,t):(t.id="__mcenew",a.focus(),a.selection.setContent(u.createHTML("img",t)),n=u.get("__mcenew"),u.setAttrib(n,"id",null)),a.editorUpload.uploadImagesAuto(),t.caption===!1&&u.is(n.parentNode,"figure.image")&&(c=n.parentNode,u.insertAfter(n,c),u.remove(c)),t.caption!==!0)b(n);else if(!u.is(n.parentNode,"figure.image")){d=n,n=n.cloneNode(!0),c=u.create("figure",{"class":"image"}),c.appendChild(n),c.appendChild(u.create("figcaption",{contentEditable:!0},"Caption")),c.contentEditable=!1;var h=u.getParent(d,e);h?u.split(h,d,c):u.replace(c,d),a.selection.select(c)}})}function g(a){return a&&(a=a.replace(/px$/,"")),a}function h(c){var d,e,f,g=c.meta||{};r&&r.value(a.convertURL(this.value(),"src")),tinymce.each(g,function(a,b){m.find("#"+b).value(a)}),g.width||g.height||(d=a.convertURL(this.value(),"src"),e=a.settings.image_prepend_url,f=new RegExp("^(?:[a-z]+:)?//","i"),e&&!f.test(d)&&d.substring(0,e.length)!==e&&(d=e+d),this.value(d),b(a.documentBaseURI.toAbsolute(this.value()),function(a){a.width&&a.height&&v&&(p=a.width,q=a.height,m.find("#width").value(p),m.find("#height").value(q))}))}function i(a){a.meta=m.toJSON()}function j(a){if(a.margin){var b=a.margin.split(" ");switch(b.length){case 1:a["margin-top"]=a["margin-top"]||b[0],a["margin-right"]=a["margin-right"]||b[0],a["margin-bottom"]=a["margin-bottom"]||b[0],a["margin-left"]=a["margin-left"]||b[0];break;case 2:a["margin-top"]=a["margin-top"]||b[0],a["margin-right"]=a["margin-right"]||b[1],a["margin-bottom"]=a["margin-bottom"]||b[0],a["margin-left"]=a["margin-left"]||b[1];break;case 3:a["margin-top"]=a["margin-top"]||b[0],a["margin-right"]=a["margin-right"]||b[1],a["margin-bottom"]=a["margin-bottom"]||b[2],a["margin-left"]=a["margin-left"]||b[1];break;case 4:a["margin-top"]=a["margin-top"]||b[0],a["margin-right"]=a["margin-right"]||b[1],a["margin-bottom"]=a["margin-bottom"]||b[2],a["margin-left"]=a["margin-left"]||b[3]}delete a.margin}return a}function k(){function b(a){return a.length>0&&/^[0-9]+$/.test(a)&&(a+="px"),a}if(a.settings.image_advtab){var c=m.toJSON(),d=u.parseStyle(c.style);d=j(d),c.vspace&&(d["margin-top"]=d["margin-bottom"]=b(c.vspace)),c.hspace&&(d["margin-left"]=d["margin-right"]=b(c.hspace)),c.border&&(d["border-width"]=b(c.border)),m.find("#style").value(u.serializeStyle(u.parseStyle(u.serializeStyle(d))))}}function l(){if(a.settings.image_advtab){var b=m.toJSON(),c=u.parseStyle(b.style);m.find("#vspace").value(""),m.find("#hspace").value(""),c=j(c),(c["margin-top"]&&c["margin-bottom"]||c["margin-right"]&&c["margin-left"])&&(c["margin-top"]===c["margin-bottom"]?m.find("#vspace").value(g(c["margin-top"])):m.find("#vspace").value(""),c["margin-right"]===c["margin-left"]?m.find("#hspace").value(g(c["margin-right"])):m.find("#hspace").value("")),c["border-width"]&&m.find("#border").value(g(c["border-width"])),m.find("#style").value(u.serializeStyle(u.parseStyle(u.serializeStyle(c))))}}var m,n,o,p,q,r,s,t={},u=a.dom,v=a.settings.image_dimensions!==!1;n=a.selection.getNode(),o=u.getParent(n,"figure.image"Line truncated
|
||||||
@@ -1 +1 @@
|
|||||||
tinymce.PluginManager.add("lists",function(a){function b(b){return a.$.contains(a.getBody(),b)}function c(a){return a&&"BR"==a.nodeName}function d(a){return a&&/^(OL|UL|DL)$/.test(a.nodeName)&&b(a)}function e(a){return a&&/^(LI|DT|DD)$/.test(a.nodeName)}function f(a){return a.parentNode.firstChild==a}function g(a){return a.parentNode.lastChild==a}function h(b){return b&&!!a.schema.getTextBlockElements()[b.nodeName]}function i(b){return b===a.getBody()}function j(a){return a&&3===a.nodeType}function k(a,b){var c=tinymce.dom.RangeUtils.getNode(a,b);if(e(a)&&j(c)){var d=b>=a.childNodes.length?c.data.length:0;return{container:c,offset:d}}return{container:a,offset:b}}function l(a){var b=a.cloneRange(),c=k(a.startContainer,a.startOffset);b.setStart(c.container,c.offset);var d=k(a.endContainer,a.endOffset);return b.setEnd(d.container,d.offset),b}var m=this;a.on("init",function(){function j(a,b){var c=H.isEmpty(a);return b&&H.select("span[data-mce-type=bookmark]").length>0?!1:c}function k(a){function b(b){var d,e,f;e=a[b?"startContainer":"endContainer"],f=a[b?"startOffset":"endOffset"],1==e.nodeType&&(d=H.create("span",{"data-mce-type":"bookmark"}),e.hasChildNodes()?(f=Math.min(f,e.childNodes.length-1),b?e.insertBefore(d,e.childNodes[f]):H.insertAfter(d,e.childNodes[f])):e.appendChild(d),e=d,f=0),c[b?"startContainer":"endContainer"]=e,c[b?"startOffset":"endOffset"]=f}var c={};return b(!0),a.collapsed||b(),c}function n(a){function b(b){function c(a){for(var b=a.parentNode.firstChild,c=0;b;){if(b==a)return c;1==b.nodeType&&"bookmark"==b.getAttribute("data-mce-type")||c++,b=b.nextSibling}return-1}var d,e,f;d=f=a[b?"startContainer":"endContainer"],e=a[b?"startOffset":"endOffset"],d&&(1==d.nodeType&&(e=c(d),d=d.parentNode,H.remove(f)),a[b?"startContainer":"endContainer"]=d,a[b?"startOffset":"endOffset"]=e)}b(!0),b();var c=H.createRng();c.setStart(a.startContainer,a.startOffset),a.endContainer&&c.setEnd(a.endContainer,a.endOffset),I.setRng(l(c))}function o(b,c){var d,e,f,g=H.createFragment(),h=a.schema.getBlockElements();if(a.settings.forced_root_block&&(c=c||a.settings.forced_root_block),c&&(e=H.create(c),e.tagName===a.settings.forced_root_block&&H.setAttribs(e,a.settings.forced_root_block_attrs),g.appendChild(e)),b)for(;d=b.firstChild;){var i=d.nodeName;f||"SPAN"==i&&"bookmark"==d.getAttribute("data-mce-type")||(f=!0),h[i]?(g.appendChild(d),e=null):c?(e||(e=H.create(c),g.appendChild(e)),e.appendChild(d)):g.appendChild(d)}return a.settings.forced_root_block?f||tinymce.Env.ie&&!(tinymce.Env.ie>10)||e.appendChild(H.create("br",{"data-mce-bogus":"1"})):g.appendChild(H.create("br")),g}function p(){return tinymce.grep(I.getSelectedBlocks(),function(a){return e(a)})}function q(a,b,c){function d(a){tinymce.each(g,function(c){a.parentNode.insertBefore(c,b.parentNode)}),H.remove(a)}var e,f,g,h;for(g=H.select('span[data-mce-type="bookmark"]',a),c=c||o(b),e=H.createRng(),e.setStartAfter(b),e.setEndAfter(a),f=e.extractContents(),h=f.firstChild;h;h=h.firstChild)if("LI"==h.nodeName&&H.isEmpty(h)){H.remove(h);break}H.isEmpty(f)||H.insertAfter(f,a),H.insertAfter(c,a),j(b.parentNode)&&d(b.parentNode),H.remove(b),j(a)&&H.remove(a)}function r(a){var b,c;if(b=a.nextSibling,b&&d(b)&&b.nodeName==a.nodeName&&J(a,b)){for(;c=b.firstChild;)a.appendChild(c);H.remove(b)}if(b=a.previousSibling,b&&d(b)&&b.nodeName==a.nodeName&&J(a,b)){for(;c=b.firstChild;)a.insertBefore(c,a.firstChild);H.remove(b)}}function s(a){tinymce.each(tinymce.grep(H.select("ol,ul",a)),t)}function t(a){var b,c=a.parentNode;"LI"==c.nodeName&&c.firstChild==a&&(b=c.previousSibling,b&&"LI"==b.nodeName?(b.appendChild(a),j(c)&&H.remove(c)):H.setStyle(c,"listStyleType","none")),d(c)&&(b=c.previousSibling,b&&"LI"==b.nodeName&&b.appendChild(a))}function u(a){function b(a){j(a)&&H.remove(a)}var c,e=a.parentNode,h=e.parentNode;return i(e)?!0:"DD"==a.nodeName?(H.rename(a,"DT"),!0):f(a)&&g(a)?("LI"==h.nodeName?(H.insertAfter(a,h),b(h),H.remove(e)):d(h)?H.remove(e,!0):(h.insertBefore(o(a),e),H.remove(e)),!0):f(a)?("LI"==h.nodeName?(H.insertAfter(a,h),a.appendChild(e),b(h)):d(h)?h.insertBefore(a,e):(h.insertBefore(o(a),e),H.remove(a)),!0):g(a)?("LI"==h.nodeName?H.insertAfter(a,h):d(h)?H.insertAfter(a,e):(H.insertAfter(o(a),e),H.remove(a)),!0):("LI"==h.nodeName?(e=h,c=o(a,"LI")):c=d(h)?o(a,"LI"):o(a),q(e,a,c),s(e.parentNode),!0)}function v(a){function b(b,c){var e;if(d(b)){for(;e=a.lastChild.firstChild;)c.appendChild(e);H.remove(b)}}var c,e,f;return"DT"==a.nodeName?(H.rename(a,"DD"),!0):(c=a.previousSibling,c&&d(c)?(c.appendChild(a),!0):c&&"LI"==c.nodeName&&d(c.lastChild)?(c.lastChild.appendChild(a),b(a.lastChild,c.lastChild),!0):(c=a.nextSibling,c&&d(c)?(c.insertBefore(a,c.firstChild),!0):(c=a.previousSibling,c&&"LI"==c.nodeName?(e=H.create(a.parentNode.nodeName),f=H.getStyle(a.parentNode,"listStyleType"),f&&H.setStyle(e,"listStyleType",f),c.appendChild(e),e.appendChild(a),b(a.lastChild,e),!0):!1)))}function w(){var b=p();if(b.length){for(var c=k(I.getRng(!0)),d=0;d<b.length&&(v(b[d])||0!==Line truncated
|
!function(){var e={},t=function(t){for(var n=e[t],i=n.deps,o=n.defn,a=i.length,s=new Array(a),l=0;l<a;++l)s[l]=r(i[l]);var u=o.apply(null,s);if(void 0===u)throw"module ["+t+"] returned undefined";n.instance=u},n=function(t,n,r){if("string"!=typeof t)throw"module id must be a string";if(void 0===n)throw"no dependencies for "+t;if(void 0===r)throw"no definition function for "+t;e[t]={deps:n,defn:r,instance:void 0}},r=function(n){var r=e[n];if(void 0===r)throw"module ["+n+"] was undefined";return void 0===r.instance&&t(n),r.instance},i=function(e,t){for(var n=e.length,i=new Array(n),o=0;o<n;++o)i.push(r(e[o]));t.apply(null,t)},o={};o.bolt={module:{api:{define:n,require:i,demand:r}}};var a=n,s=function(e,t){a(e,[],function(){return t})};s("1",tinymce.PluginManager),s("2",tinymce.util.Tools),s("3",tinymce.util.VK),a("4",[],function(){var e=function(e){return e&&3===e.nodeType},t=function(e){return e&&/^(OL|UL|DL)$/.test(e.nodeName)},n=function(e){return e&&/^(LI|DT|DD)$/.test(e.nodeName)},r=function(e){return e&&"BR"===e.nodeName},i=function(e){return e.parentNode.firstChild===e},o=function(e){return e.parentNode.lastChild===e},a=function(e,t){return t&&!!e.schema.getTextBlockElements()[t.nodeName]},s=function(e,t){return!!r(t)&&!(!e.isBlock(t.nextSibling)||r(t.previousSibling))},l=function(e,t,n){var r=e.isEmpty(t);return!(n&&e.select("span[data-mce-type=bookmark]",t).length>0)&&r},u=function(e,t){return e.isChildOf(t,e.getRoot())};return{isTextNode:e,isListNode:t,isListItemNode:n,isBr:r,isFirstChild:i,isLastChild:o,isTextBlock:a,isBogusBr:s,isEmpty:l,isChildOfBody:u}}),s("9",tinymce.dom.TreeWalker),s("a",tinymce.dom.RangeUtils),a("b",["2","4"],function(e,t){var n=function(n){return e.grep(n.selection.getSelectedBlocks(),function(e){return t.isListItemNode(e)})};return{getSelectedListItems:n}}),s("h",tinymce.dom.DOMUtils.DOM),a("d",["a","4"],function(e,t){var n=function(n,r){var i=e.getNode(n,r);if(t.isListItemNode(n)&&t.isTextNode(i)){var o=r>=n.childNodes.length?i.data.length:0;return{container:i,offset:o}}return{container:n,offset:r}},r=function(e){var t=e.cloneRange(),r=n(e.startContainer,e.startOffset);t.setStart(r.container,r.offset);var i=n(e.endContainer,e.endOffset);return t.setEnd(i.container,i.offset),t};return{getNormalizedEndPoint:n,normalizeRange:r}}),a("c",["h","4","d"],function(e,t,n){var r=function(t){var n={},r=function(r){var i,o,a;o=t[r?"startContainer":"endContainer"],a=t[r?"startOffset":"endOffset"],1===o.nodeType&&(i=e.create("span",{"data-mce-type":"bookmark"}),o.hasChildNodes()?(a=Math.min(a,o.childNodes.length-1),r?o.insertBefore(i,o.childNodes[a]):e.insertAfter(i,o.childNodes[a])):o.appendChild(i),o=i,a=0),n[r?"startContainer":"endContainer"]=o,n[r?"startOffset":"endOffset"]=a};return r(!0),t.collapsed||r(),n},i=function(t){function r(n){var r,i,o,a=function(e){for(var t=e.parentNode.firstChild,n=0;t;){if(t===e)return n;1===t.nodeType&&"bookmark"===t.getAttribute("data-mce-type")||n++,t=t.nextSibling}return-1};r=o=t[n?"startContainer":"endContainer"],i=t[n?"startOffset":"endOffset"],r&&(1===r.nodeType&&(i=a(r),r=r.parentNode,e.remove(o)),t[n?"startContainer":"endContainer"]=r,t[n?"startOffset":"endOffset"]=i)}r(!0),r();var i=e.createRng();return i.setStart(t.startContainer,t.startOffset),t.endContainer&&i.setEnd(t.endContainer,t.endOffset),n.normalizeRange(i)};return{createBookmark:r,resolveBookmark:i}}),a("e",["h","2","4"],function(e,t,n){var r=function(t,r){var i,o=r.parentNode;"LI"===o.nodeName&&o.firstChild===r&&(i=o.previousSibling,i&&"LI"===i.nodeName?(i.appendChild(r),n.isEmpty(t,o)&&e.remove(o)):e.setStyle(o,"listStyleType","none")),n.isListNode(o)&&(i=o.previousSibling,i&&"LI"===i.nodeName&&i.appendChild(r))},i=function(e,n){t.each(t.grep(e.select("ol,ul",n)),function(t){r(e,t)})};return{normalizeList:r,normalizeLists:i}}),s("f",tinymce.dom.BookmarkManager),s("j",tinymce.Env),a("i",["h","j"],function(e,t){var n=function(n,r,i){var o,a,s,l=e.createFragment(),u=n.schema.getBlockElements();if(n.settings.forced_root_block&&(i=i||n.settings.forced_root_block),i&&(a=e.create(i),a.tagName===n.settings.forced_root_block&&e.setAttribs(a,n.settings.forced_root_block_attrs),l.appendChild(a)),r)for(;o=r.firstChild;){var c=o.nodeName;s||"SPAN"===c&&"bookmark"===o.getAttribute("data-mce-type")||(s=!0),u[c]?(l.appendChild(o),a=null):i?(a||(a=e.create(i),l.appendChild(a)),a.appendChild(o)):l.appendChild(o)}return n.settings.forced_root_block?s||t.ie&&!(t.ie>10)||a.appendChild(e.create("br",{"data-mce-bogus":"1"})):l.appendChild(e.create("br")),l};return{createNewTextBlock:n}}),a("g",["h","2","i","4"],function(e,t,n,r){var i=function(i,o,a,s){var l,u,c,d,f=function(n){t.each(c,function(e){n.parentNode.insertBefore(e,a.parentNode)}),e.remove(n)};for(c=e.select('span[data-mce-type="bookmark"]',o),s=s||n.createNewTextBlock(i,a),l=e.createRng(),l.setStartAfter(a),l.setEndAfter(o),u=l.extractContents(),d=u.firstChild;d;d=d.firstChild)if("LI"===d.nodeName&&i.dom.isEmpty(d)){e.remove(d);break}i.domLine truncated
|
||||||
@@ -1 +1 @@
|
|||||||
tinymce.PluginManager.add("media",function(a,b){function c(a){return a=a.toLowerCase(),-1!=a.indexOf(".mp3")?"audio/mpeg":-1!=a.indexOf(".wav")?"audio/wav":-1!=a.indexOf(".mp4")?"video/mp4":-1!=a.indexOf(".webm")?"video/webm":-1!=a.indexOf(".ogg")?"video/ogg":-1!=a.indexOf(".swf")?"application/x-shockwave-flash":""}function d(b){var c=a.settings.media_scripts;if(c)for(var d=0;d<c.length;d++)if(-1!==b.indexOf(c[d].filter))return c[d]}function e(){function b(a){var b,c,f,g;b=d.find("#width")[0],c=d.find("#height")[0],f=b.value(),g=c.value(),d.find("#constrain")[0].checked()&&e&&j&&f&&g&&(a.control==b?(g=Math.round(f/e*g),isNaN(g)||c.value(g)):(f=Math.round(g/j*f),isNaN(f)||b.value(f))),e=f,j=g}function c(){k=h(this.value()),this.parent().parent().fromJSON(k)}var d,e,j,k,l=[{name:"source1",type:"filepicker",filetype:"media",size:40,autofocus:!0,label:"Source",onchange:function(a){tinymce.each(a.meta,function(a,b){d.find("#"+b).value(a)})}}];a.settings.media_alt_source!==!1&&l.push({name:"source2",type:"filepicker",filetype:"media",size:40,label:"Alternative source"}),a.settings.media_poster!==!1&&l.push({name:"poster",type:"filepicker",filetype:"image",size:40,label:"Poster"}),a.settings.media_dimensions!==!1&&l.push({type:"container",label:"Dimensions",layout:"flex",align:"center",spacing:5,items:[{name:"width",type:"textbox",maxLength:5,size:3,onchange:b,ariaLabel:"Width"},{type:"label",text:"x"},{name:"height",type:"textbox",maxLength:5,size:3,onchange:b,ariaLabel:"Height"},{name:"constrain",type:"checkbox",checked:!0,text:"Constrain proportions"}]}),k=i(a.selection.getNode()),e=k.width,j=k.height;var m={id:"mcemediasource",type:"textbox",flex:1,name:"embed",value:f(),multiline:!0,label:"Source"};m[p]=c,d=a.windowManager.open({title:"Insert/edit video",data:k,bodyType:"tabpanel",body:[{title:"General",type:"form",onShowTab:function(){k=h(this.next().find("#embed").value()),this.fromJSON(k)},items:l},{title:"Embed",type:"container",layout:"flex",direction:"column",align:"stretch",padding:10,spacing:10,onShowTab:function(){this.find("#embed").value(g(this.parent().toJSON()))},items:[{type:"label",text:"Paste your embed code below:",forId:"mcemediasource"},m]}],onSubmit:function(){var b,c,d,e;for(b=a.dom.select("img[data-mce-object]"),a.insertContent(g(this.toJSON())),c=a.dom.select("img[data-mce-object]"),d=0;d<b.length;d++)for(e=c.length-1;e>=0;e--)b[d]==c[e]&&c.splice(e,1);a.selection.select(c[0]),a.nodeChanged()}})}function f(){var b=a.selection.getNode();return b.getAttribute("data-mce-object")?a.selection.getContent():void 0}function g(e){var f="";if(!e.source1&&(tinymce.extend(e,h(e.embed)),!e.source1))return"";if(e.source2||(e.source2=""),e.poster||(e.poster=""),e.source1=a.convertURL(e.source1,"source"),e.source2=a.convertURL(e.source2,"source"),e.source1mime=c(e.source1),e.source2mime=c(e.source2),e.poster=a.convertURL(e.poster,"poster"),e.flashPlayerUrl=a.convertURL(b+"/moxieplayer.swf","movie"),tinymce.each(o,function(a){var b,c,d;if(b=a.regex.exec(e.source1)){for(d=a.url,c=0;b[c];c++)d=d.replace("$"+c,function(){return b[c]});e.source1=d,e.type=a.type,e.allowFullscreen=a.allowFullscreen,e.width=e.width||a.w,e.height=e.height||a.h}}),e.embed)f=k(e.embed,e,!0);else{var g=d(e.source1);if(g&&(e.type="script",e.width=g.width,e.height=g.height),e.width=e.width||300,e.height=e.height||150,tinymce.each(e,function(b,c){e[c]=a.dom.encode(b)}),"iframe"==e.type){var i=e.allowFullscreen?' allowFullscreen="1"':"";f+='<iframe src="'+e.source1+'" width="'+e.width+'" height="'+e.height+'"'+i+"></iframe>"}else"application/x-shockwave-flash"==e.source1mime?(f+='<object data="'+e.source1+'" width="'+e.width+'" height="'+e.height+'" type="application/x-shockwave-flash">',e.poster&&(f+='<img src="'+e.poster+'" width="'+e.width+'" height="'+e.height+'" />'),f+="</object>"):-1!=e.source1mime.indexOf("audio")?a.settings.audio_template_callback?f=a.settings.audio_template_callback(e):f+='<audio controls="controls" src="'+e.source1+'">'+(e.source2?'\n<source src="'+e.source2+'"'+(e.source2mime?' type="'+e.source2mime+'"':"")+" />\n":"")+"</audio>":"script"==e.type?f+='<script src="'+e.source1+'"></script>':f=a.settings.video_template_callback?a.settings.video_template_callback(e):'<video width="'+e.width+'" height="'+e.height+'"'+(e.poster?' poster="'+e.poster+'"':"")+' controls="controls">\n<source src="'+e.source1+'"'+(e.source1mime?' type="'+e.source1mime+'"':"")+" />\n"+(e.source2?'<source src="'+e.source2+'"'+(e.source2mime?' type="'+e.source2mime+'"':"")+" />\n":"")+"</video>"}return f}function h(a){var b={};return new tinymce.html.SaxParser({validate:!1,allow_conditional_comments:!0,special:"script,noscript",start:function(a,c){if(b.source1||"param"!=a||(b.source1=c.map.movie),"iframe"!=a&&"object"!=a&&"embed"!=a&&"video"!=a&&"audio"!=a||(b.type||(b.type=a),b=tinymce.extend(c.map,b)),"script"==a){var e=d(c.map.src);if(!e)return;b={type:"script",source1:c.map.src,width:e.width,height:e.height}}"source"==a&&(b.source1Line truncated
|
!function(){var e={},t=function(t){for(var n=e[t],i=n.deps,o=n.defn,a=i.length,s=new Array(a),l=0;l<a;++l)s[l]=r(i[l]);var u=o.apply(null,s);if(void 0===u)throw"module ["+t+"] returned undefined";n.instance=u},n=function(t,n,r){if("string"!=typeof t)throw"module id must be a string";if(void 0===n)throw"no dependencies for "+t;if(void 0===r)throw"no definition function for "+t;e[t]={deps:n,defn:r,instance:void 0}},r=function(n){var r=e[n];if(void 0===r)throw"module ["+n+"] was undefined";return void 0===r.instance&&t(n),r.instance},i=function(e,t){for(var n=e.length,i=new Array(n),o=0;o<n;++o)i.push(r(e[o]));t.apply(null,t)},o={};o.bolt={module:{api:{define:n,require:i,demand:r}}};var a=n,s=function(e,t){a(e,[],function(){return t})};s("1",tinymce.PluginManager),s("6",tinymce.util.Delay),s("e",tinymce.util.Tools),s("9",tinymce.html.SaxParser),s("a",tinymce.html.Schema),s("b",tinymce.dom.DOMUtils.DOM),a("h",[],function(){var e=function(e,t){if(e)for(var n=0;n<e.length;n++)if(t.indexOf(e[n].filter)!==-1)return e[n]};return{getVideoScriptMatch:e}}),a("c",[],function(){var e=function(e){return e.replace(/px$/,"")},t=function(e){return/^[0-9.]+$/.test(e)?e+"px":e},n=function(t){return function(n){return n?e(n.style[t]):""}},r=function(e){return function(n,r){n&&(n.style[e]=t(r))}};return{getMaxWidth:n("maxWidth"),getMaxHeight:n("maxHeight"),setMaxWidth:r("maxWidth"),setMaxHeight:r("maxHeight")}}),a("7",["e","9","a","b","h","c"],function(e,t,n,r,i,o){var a=function(e){return r.getAttrib(e,"data-ephox-embed-iri")},s=function(e){var t=r.createFragment(e);return""!==a(t.firstChild)},l=function(n,r){var o={};return new t({validate:!1,allow_conditional_comments:!0,special:"script,noscript",start:function(t,r){if(o.source1||"param"!==t||(o.source1=r.map.movie),"iframe"!==t&&"object"!==t&&"embed"!==t&&"video"!==t&&"audio"!==t||(o.type||(o.type=t),o=e.extend(r.map,o)),"script"===t){var a=i.getVideoScriptMatch(n,r.map.src);if(!a)return;o={type:"script",source1:r.map.src,width:a.width,height:a.height}}"source"===t&&(o.source1?o.source2||(o.source2=r.map.src):o.source1=r.map.src),"img"!==t||o.poster||(o.poster=r.map.src)}}).parse(r),o.source1=o.source1||o.src||o.data,o.source2=o.source2||"",o.poster=o.poster||"",o},u=function(e){var t=r.createFragment(e),n=t.firstChild;return{type:"ephox-embed-iri",source1:a(n),source2:"",poster:"",width:o.getMaxWidth(n),height:o.getMaxHeight(n)}},c=function(e,t){return s(t)?u(t):l(e,t)};return{htmlToData:c}}),s("8",tinymce.html.Writer),a("4",["8","9","a","b","c"],function(e,t,n,r,i){var o=function(e,t){var n,r,i,o;for(n in t)if(i=""+t[n],e.map[n])for(r=e.length;r--;)o=e[r],o.name===n&&(i?(e.map[n]=i,o.value=i):(delete e.map[n],e.splice(r,1)));else i&&(e.push({name:n,value:i}),e.map[n]=i)},a=function(n){var r=new e,i=new t(r);return i.parse(n),r.getContent()},s=function(r,i,a){var s,l=new e,u=0;return new t({validate:!1,allow_conditional_comments:!0,special:"script,noscript",comment:function(e){l.comment(e)},cdata:function(e){l.cdata(e)},text:function(e,t){l.text(e,t)},start:function(e,t,n){switch(e){case"video":case"object":case"embed":case"img":case"iframe":o(t,{width:i.width,height:i.height})}if(a)switch(e){case"video":o(t,{poster:i.poster,src:""}),i.source2&&o(t,{src:""});break;case"iframe":o(t,{src:i.source1});break;case"source":if(u++,u<=2&&(o(t,{src:i["source"+u],type:i["source"+u+"mime"]}),!i["source"+u]))return;break;case"img":if(!i.poster)return;s=!0}l.start(e,t,n)},end:function(e){if("video"===e&&a)for(var t=1;t<=2;t++)if(i["source"+t]){var n=[];n.map={},u<t&&(o(n,{src:i["source"+t],type:i["source"+t+"mime"]}),l.start("source",n,!0))}if(i.poster&&"object"===e&&a&&!s){var r=[];r.map={},o(r,{src:i.poster,width:i.width,height:i.height}),l.start("img",r,!0)}l.end(e)}},new n({})).parse(r),l.getContent()},l=function(e){var t=r.createFragment(e);return""!==r.getAttrib(t.firstChild,"data-ephox-embed-iri")},u=function(e,t){var n=r.createFragment(e),o=n.firstChild;return i.setMaxWidth(o,t.width),i.setMaxHeight(o,t.height),a(o.outerHTML)},c=function(e,t,n){return l(e)?u(e,t):s(e,t,n)};return{updateHtml:c}}),a("l",[],function(){var e=function(e){var t={mp3:"audio/mpeg",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",ogg:"video/ogg",swf:"application/x-shockwave-flash"},n=e.toLowerCase().split(".").pop(),r=t[n];return r?r:""};return{guess:e}}),a("m",[],function(){var e=[{regex:/youtu\.be\/([\w\-.]+)/,type:"iframe",w:560,h:314,url:"//www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/youtube\.com(.+)v=([^&]+)/,type:"iframe",w:560,h:314,url:"//www.youtube.com/embed/$2",allowFullscreen:!0},{regex:/youtube.com\/embed\/([a-z0-9\-_]+(?:\?.+)?)/i,type:"iframe",w:560,h:314,url:"//www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/vimeo\.com\/([0-9]+)/,type:"iframe",w:425,h:350,url:"//player.vimeo.com/video/$1?title=0&byline=0&portrait=0&color=8dc7dc",allowfullscreen:!0},{regex:/vimeo\.com\/(.*)\/([0-9]+)/,type:"iframe",w:425,h:350,url:"//player.vimeo.com/video/$2?title=0&byline=0",allowfulLine truncated
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
|
|
||||||
target[fragments[fragments.length - 1]] = modules[id];
|
target[fragments[fragments.length - 1]] = modules[id];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Expose private modules for unit tests
|
// Expose private modules for unit tests
|
||||||
if (exports.AMDLC_TESTS) {
|
if (exports.AMDLC_TESTS) {
|
||||||
privateModules = exports.privateModules || {};
|
privateModules = exports.privateModules || {};
|
||||||
@@ -938,7 +938,8 @@ define("tinymce/pasteplugin/Clipboard", [
|
|||||||
});
|
});
|
||||||
|
|
||||||
function isPlainTextFileUrl(content) {
|
function isPlainTextFileUrl(content) {
|
||||||
return content['text/plain'].indexOf('file://') === 0;
|
var plainTextContent = content['text/plain'];
|
||||||
|
return plainTextContent ? plainTextContent.indexOf('file://') === 0 : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
editor.on('drop', function(e) {
|
editor.on('drop', function(e) {
|
||||||
@@ -1551,7 +1552,7 @@ define("tinymce/pasteplugin/WordFilter", [
|
|||||||
* Quirks.js
|
* Quirks.js
|
||||||
*
|
*
|
||||||
* Released under LGPL License.
|
* Released under LGPL License.
|
||||||
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
|
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
||||||
*
|
*
|
||||||
* License: http://www.tinymce.com/license
|
* License: http://www.tinymce.com/license
|
||||||
* Contributing: http://www.tinymce.com/contributing
|
* Contributing: http://www.tinymce.com/contributing
|
||||||
@@ -1580,6 +1581,12 @@ define("tinymce/pasteplugin/Quirks", [
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function addPostProcessFilter(filterFunc) {
|
||||||
|
editor.on('PastePostProcess', function(e) {
|
||||||
|
filterFunc(e.node);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes BR elements after block elements. IE9 has a nasty bug where it puts a BR element after each
|
* Removes BR elements after block elements. IE9 has a nasty bug where it puts a BR element after each
|
||||||
* block element when pasting from word. This removes those elements.
|
* block element when pasting from word. This removes those elements.
|
||||||
@@ -1696,6 +1703,12 @@ define("tinymce/pasteplugin/Quirks", [
|
|||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function removeUnderlineAndFontInAnchor(root) {
|
||||||
|
editor.$('a', root).find('font,u').each(function(i, node) {
|
||||||
|
editor.dom.remove(node, true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Sniff browsers and apply fixes since we can't feature detect
|
// Sniff browsers and apply fixes since we can't feature detect
|
||||||
if (Env.webkit) {
|
if (Env.webkit) {
|
||||||
addPreProcessFilter(removeWebKitStyles);
|
addPreProcessFilter(removeWebKitStyles);
|
||||||
@@ -1703,6 +1716,7 @@ define("tinymce/pasteplugin/Quirks", [
|
|||||||
|
|
||||||
if (Env.ie) {
|
if (Env.ie) {
|
||||||
addPreProcessFilter(removeExplorerBrElementsAfterBlocks);
|
addPreProcessFilter(removeExplorerBrElementsAfterBlocks);
|
||||||
|
addPostProcessFilter(removeUnderlineAndFontInAnchor);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
@@ -1742,16 +1756,15 @@ define("tinymce/pasteplugin/Plugin", [
|
|||||||
|
|
||||||
function togglePlainTextPaste() {
|
function togglePlainTextPaste() {
|
||||||
if (clipboard.pasteFormat == "text") {
|
if (clipboard.pasteFormat == "text") {
|
||||||
this.active(false);
|
|
||||||
clipboard.pasteFormat = "html";
|
clipboard.pasteFormat = "html";
|
||||||
editor.fire('PastePlainTextToggle', {state: false});
|
editor.fire('PastePlainTextToggle', {state: false});
|
||||||
} else {
|
} else {
|
||||||
clipboard.pasteFormat = "text";
|
clipboard.pasteFormat = "text";
|
||||||
this.active(true);
|
editor.fire('PastePlainTextToggle', {state: true});
|
||||||
|
|
||||||
if (!isUserInformedAboutPlainText()) {
|
if (!isUserInformedAboutPlainText()) {
|
||||||
var message = editor.translate('Paste is now in plain text mode. Contents will now ' +
|
var message = editor.translate('Paste is now in plain text mode. Contents will now ' +
|
||||||
'be pasted as plain text until you toggle this option off.');
|
'be pasted as plain text until you toggle this option off.');
|
||||||
|
|
||||||
editor.notificationManager.open({
|
editor.notificationManager.open({
|
||||||
text: message,
|
text: message,
|
||||||
@@ -1759,13 +1772,22 @@ define("tinymce/pasteplugin/Plugin", [
|
|||||||
});
|
});
|
||||||
|
|
||||||
userIsInformed = true;
|
userIsInformed = true;
|
||||||
editor.fire('PastePlainTextToggle', {state: true});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
editor.focus();
|
editor.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function stateChange() {
|
||||||
|
var self = this;
|
||||||
|
|
||||||
|
self.active(clipboard.pasteFormat === 'text');
|
||||||
|
|
||||||
|
editor.on('PastePlainTextToggle', function (e) {
|
||||||
|
self.active(e.state);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// draw back if power version is requested and registered
|
// draw back if power version is requested and registered
|
||||||
if (/(^|[ ,])powerpaste([, ]|$)/.test(settings.plugins) && PluginManager.get('powerpaste')) {
|
if (/(^|[ ,])powerpaste([, ]|$)/.test(settings.plugins) && PluginManager.get('powerpaste')) {
|
||||||
/*eslint no-console:0 */
|
/*eslint no-console:0 */
|
||||||
@@ -1824,21 +1846,24 @@ define("tinymce/pasteplugin/Plugin", [
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
editor.addCommand('mceTogglePlainTextPaste', togglePlainTextPaste);
|
||||||
|
|
||||||
editor.addButton('pastetext', {
|
editor.addButton('pastetext', {
|
||||||
icon: 'pastetext',
|
icon: 'pastetext',
|
||||||
tooltip: 'Paste as text',
|
tooltip: 'Paste as text',
|
||||||
onclick: togglePlainTextPaste,
|
onclick: togglePlainTextPaste,
|
||||||
active: self.clipboard.pasteFormat == "text"
|
onPostRender: stateChange
|
||||||
});
|
});
|
||||||
|
|
||||||
editor.addMenuItem('pastetext', {
|
editor.addMenuItem('pastetext', {
|
||||||
text: 'Paste as text',
|
text: 'Paste as text',
|
||||||
selectable: true,
|
selectable: true,
|
||||||
active: clipboard.pasteFormat,
|
active: clipboard.pasteFormat,
|
||||||
onclick: togglePlainTextPaste
|
onclick: togglePlainTextPaste,
|
||||||
|
onPostRender: stateChange
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
expose(["tinymce/pasteplugin/Utils"]);
|
expose(["tinymce/pasteplugin/Utils"]);
|
||||||
})(this);
|
})(window);
|
||||||
@@ -1 +1 @@
|
|||||||
!function(a,b){"use strict";function c(a,b){for(var c,d=[],f=0;f<a.length;++f){if(c=g[a[f]]||e(a[f]),!c)throw"module definition dependecy not found: "+a[f];d.push(c)}b.apply(null,d)}function d(a,d,e){if("string"!=typeof a)throw"invalid module definition, module id must be defined and be a string";if(d===b)throw"invalid module definition, dependencies must be specified";if(e===b)throw"invalid module definition, definition function must be specified";c(d,function(){g[a]=e.apply(null,arguments)})}function e(b){for(var c=a,d=b.split(/[.\/]/),e=0;e<d.length;++e){if(!c[d[e]])return;c=c[d[e]]}return c}function f(c){var d,e,f,h,i;for(d=0;d<c.length;d++){e=a,f=c[d],h=f.split(/[.\/]/);for(var j=0;j<h.length-1;++j)e[h[j]]===b&&(e[h[j]]={}),e=e[h[j]];e[h[h.length-1]]=g[f]}if(a.AMDLC_TESTS){i=a.privateModules||{};for(f in g)i[f]=g[f];for(d=0;d<c.length;d++)delete i[c[d]];a.privateModules=i}}var g={};d("tinymce/pasteplugin/Utils",["tinymce/util/Tools","tinymce/html/DomParser","tinymce/html/Schema"],function(a,b,c){function d(b,c){return a.each(c,function(a){b=a.constructor==RegExp?b.replace(a,""):b.replace(a[0],a[1])}),b}function e(e){function f(a){var b=a.name,c=a;if("br"===b)return void(i+="\n");if(j[b]&&(i+=" "),k[b])return void(i+=" ");if(3==a.type&&(i+=a.value),!a.shortEnded&&(a=a.firstChild))do f(a);while(a=a.next);l[b]&&c.next&&(i+="\n","p"==b&&(i+="\n"))}var g=new c,h=new b({},g),i="",j=g.getShortEndedElements(),k=a.makeMap("script noscript style textarea video audio iframe object"," "),l=g.getBlockElements();return e=d(e,[/<!\[[^\]]+\]>/g]),f(h.parse(e)),i}function f(a){function b(a,b,c){return b||c?"\xa0":" "}return a=d(a,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,b],/<br class="Apple-interchange-newline">/g,/<br>$/i])}function g(a){var b=0;return function(){return a+b++}}return{filter:d,innerText:e,trimHtml:f,createIdGenerator:g}}),d("tinymce/pasteplugin/SmartPaste",["tinymce/util/Tools"],function(a){var b=function(a){return/^https?:\/\/[\w\?\-\/+=.&%@~#]+$/i.test(a)},c=function(a){return b(a)&&/.(gif|jpe?g|png)$/.test(a)},d=function(a,b,c){return a.undoManager.extra(function(){c(a,b)},function(){a.insertContent('<img src="'+b+'">')}),!0},e=function(a,b,c){return a.undoManager.extra(function(){c(a,b)},function(){a.execCommand("mceInsertLink",!1,b)}),!0},f=function(a,c,d){return a.selection.isCollapsed()===!1&&b(c)?e(a,c,d):!1},g=function(a,b,e){return c(b)?d(a,b,e):!1},h=function(a,b){return a.insertContent(b,{merge:a.settings.paste_merge_formats!==!1,paste:!0}),!0},i=function(b,c){a.each([f,g,h],function(a){return a(b,c,h)!==!0})},j=function(a,b){a.settings.smart_paste===!1?h(a,b):i(a,b)};return{isImageUrl:c,isAbsoluteUrl:b,insertContent:j}}),d("tinymce/pasteplugin/Clipboard",["tinymce/Env","tinymce/dom/RangeUtils","tinymce/util/VK","tinymce/pasteplugin/Utils","tinymce/pasteplugin/SmartPaste","tinymce/util/Delay"],function(a,b,c,d,e,f){return function(g){function h(a){var b,c=g.dom;if(b=g.fire("BeforePastePreProcess",{content:a}),b=g.fire("PastePreProcess",b),a=b.content,!b.isDefaultPrevented()){if(g.hasEventListeners("PastePostProcess")&&!b.isDefaultPrevented()){var d=c.add(g.getBody(),"div",{style:"display:none"},a);b=g.fire("PastePostProcess",{node:d}),c.remove(d),a=b.node.innerHTML}b.isDefaultPrevented()||e.insertContent(g,a)}}function i(a){a=g.dom.encode(a).replace(/\r\n/g,"\n");var b,c=g.dom.getParent(g.selection.getStart(),g.dom.isBlock),e=g.settings.forced_root_block;e&&(b=g.dom.createHTML(e,g.settings.forced_root_block_attrs),b=b.substr(0,b.length-3)+">"),c&&/^(PRE|DIV)$/.test(c.nodeName)||!e?a=d.filter(a,[[/\n/g,"<br>"]]):(a=d.filter(a,[[/\n\n/g,"</p>"+b],[/^(.*<\/p>)(<p>)$/,b+"$1"],[/\n/g,"<br />"]]),-1!=a.indexOf("<p>")&&(a=b+a)),h(a)}function j(){function b(a){var b,c,e,f=a.startContainer;if(b=a.getClientRects(),b.length)return b[0];if(a.collapsed&&1==f.nodeType){for(e=f.childNodes[z.startOffset];e&&3==e.nodeType&&!e.data.length;)e=e.nextSibling;if(e)return"BR"==e.tagName&&(c=d.doc.createTextNode("\ufeff"),e.parentNode.insertBefore(c,e),a=d.createRng(),a.setStartBefore(c),a.setEndAfter(c),b=a.getClientRects(),d.remove(c)),b.length?b[0]:void 0}}var c,d=g.dom,e=g.getBody(),f=g.dom.getViewPort(g.getWin()),h=f.y,i=20;if(z=g.selection.getRng(),g.inline&&(c=g.selection.getScrollContainer(),c&&c.scrollTop>0&&(h=c.scrollTop)),z.getClientRects){var j=b(z);if(j)i=h+(j.top-d.getPos(e).y);else{i=h;var k=z.startContainer;k&&(3==k.nodeType&&k.parentNode!=e&&(k=k.parentNode),1==k.nodeType&&(i=d.getPos(k,c||e).y))}}y=d.add(g.getBody(),"div",{id:"mcepastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: absolute; top: "+i+"px;width: 10px; height: 10px; overflow: hidden; opacity: 0"},E),(a.ie||a.gecko)&&d.setStyle(y,"left","rtl"==d.getStyle(e,"direction",!0)?65535:-65535),d.bind(y,"beforedeactivate focusin focusout",function(a){a.stopPropagation()}),y.focus(),g.selection.select(y,!0)}fuLine truncated
|
!function(e,t){"use strict";function n(e,t){for(var n,r=[],o=0;o<e.length;++o){if(n=a[e[o]]||i(e[o]),!n)throw"module definition dependecy not found: "+e[o];r.push(n)}t.apply(null,r)}function r(e,r,i){if("string"!=typeof e)throw"invalid module definition, module id must be defined and be a string";if(r===t)throw"invalid module definition, dependencies must be specified";if(i===t)throw"invalid module definition, definition function must be specified";n(r,function(){a[e]=i.apply(null,arguments)})}function i(t){for(var n=e,r=t.split(/[.\/]/),i=0;i<r.length;++i){if(!n[r[i]])return;n=n[r[i]]}return n}function o(n){var r,i,o,s,l;for(r=0;r<n.length;r++){i=e,o=n[r],s=o.split(/[.\/]/);for(var u=0;u<s.length-1;++u)i[s[u]]===t&&(i[s[u]]={}),i=i[s[u]];i[s[s.length-1]]=a[o]}if(e.AMDLC_TESTS){l=e.privateModules||{};for(o in a)l[o]=a[o];for(r=0;r<n.length;r++)delete l[n[r]];e.privateModules=l}}var a={};r("tinymce/pasteplugin/Utils",["tinymce/util/Tools","tinymce/html/DomParser","tinymce/html/Schema"],function(e,t,n){function r(t,n){return e.each(n,function(e){t=e.constructor==RegExp?t.replace(e,""):t.replace(e[0],e[1])}),t}function i(i){function o(e){var t=e.name,n=e;if("br"===t)return void(l+="\n");if(u[t]&&(l+=" "),c[t])return void(l+=" ");if(3==e.type&&(l+=e.value),!e.shortEnded&&(e=e.firstChild))do o(e);while(e=e.next);d[t]&&n.next&&(l+="\n","p"==t&&(l+="\n"))}var a=new n,s=new t({},a),l="",u=a.getShortEndedElements(),c=e.makeMap("script noscript style textarea video audio iframe object"," "),d=a.getBlockElements();return i=r(i,[/<!\[[^\]]+\]>/g]),o(s.parse(i)),l}function o(e){function t(e,t,n){return t||n?"\xa0":" "}return e=r(e,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,t],/<br class="Apple-interchange-newline">/g,/<br>$/i])}function a(e){var t=0;return function(){return e+t++}}return{filter:r,innerText:i,trimHtml:o,createIdGenerator:a}}),r("tinymce/pasteplugin/SmartPaste",["tinymce/util/Tools"],function(e){var t=function(e){return/^https?:\/\/[\w\?\-\/+=.&%@~#]+$/i.test(e)},n=function(e){return t(e)&&/.(gif|jpe?g|png)$/.test(e)},r=function(e,t,n){return e.undoManager.extra(function(){n(e,t)},function(){e.insertContent('<img src="'+t+'">')}),!0},i=function(e,t,n){return e.undoManager.extra(function(){n(e,t)},function(){e.execCommand("mceInsertLink",!1,t)}),!0},o=function(e,n,r){return!(e.selection.isCollapsed()!==!1||!t(n))&&i(e,n,r)},a=function(e,t,i){return!!n(t)&&r(e,t,i)},s=function(e,t){return e.insertContent(t,{merge:e.settings.paste_merge_formats!==!1,paste:!0}),!0},l=function(t,n){e.each([o,a,s],function(e){return e(t,n,s)!==!0})},u=function(e,t){e.settings.smart_paste===!1?s(e,t):l(e,t)};return{isImageUrl:n,isAbsoluteUrl:t,insertContent:u}}),r("tinymce/pasteplugin/Clipboard",["tinymce/Env","tinymce/dom/RangeUtils","tinymce/util/VK","tinymce/pasteplugin/Utils","tinymce/pasteplugin/SmartPaste","tinymce/util/Delay"],function(e,t,n,r,i,o){return function(a){function s(e){var t,n=a.dom;if(t=a.fire("BeforePastePreProcess",{content:e}),t=a.fire("PastePreProcess",t),e=t.content,!t.isDefaultPrevented()){if(a.hasEventListeners("PastePostProcess")&&!t.isDefaultPrevented()){var r=n.add(a.getBody(),"div",{style:"display:none"},e);t=a.fire("PastePostProcess",{node:r}),n.remove(r),e=t.node.innerHTML}t.isDefaultPrevented()||i.insertContent(a,e)}}function l(e){e=a.dom.encode(e).replace(/\r\n/g,"\n");var t,n=a.dom.getParent(a.selection.getStart(),a.dom.isBlock),i=a.settings.forced_root_block;i&&(t=a.dom.createHTML(i,a.settings.forced_root_block_attrs),t=t.substr(0,t.length-3)+">"),n&&/^(PRE|DIV)$/.test(n.nodeName)||!i?e=r.filter(e,[[/\n/g,"<br>"]]):(e=r.filter(e,[[/\n\n/g,"</p>"+t],[/^(.*<\/p>)(<p>)$/,t+"$1"],[/\n/g,"<br />"]]),e.indexOf("<p>")!=-1&&(e=t+e)),s(e)}function u(){function t(e){var t,n,i,o=e.startContainer;if(t=e.getClientRects(),t.length)return t[0];if(e.collapsed&&1==o.nodeType){for(i=o.childNodes[_.startOffset];i&&3==i.nodeType&&!i.data.length;)i=i.nextSibling;if(i)return"BR"==i.tagName&&(n=r.doc.createTextNode("\ufeff"),i.parentNode.insertBefore(n,i),e=r.createRng(),e.setStartBefore(n),e.setEndAfter(n),t=e.getClientRects(),r.remove(n)),t.length?t[0]:void 0}}var n,r=a.dom,i=a.getBody(),o=a.dom.getViewPort(a.getWin()),s=o.y,l=20;if(_=a.selection.getRng(),a.inline&&(n=a.selection.getScrollContainer(),n&&n.scrollTop>0&&(s=n.scrollTop)),_.getClientRects){var u=t(_);if(u)l=s+(u.top-r.getPos(i).y);else{l=s;var c=_.startContainer;c&&(3==c.nodeType&&c.parentNode!=i&&(c=c.parentNode),1==c.nodeType&&(l=r.getPos(c,n||i).y))}}N=r.add(a.getBody(),"div",{id:"mcepastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: absolute; top: "+l+"px;width: 10px; height: 10px; overflow: hidden; opacity: 0"},A),(e.ie||e.gecko)&&r.setStyle(N,"left","rtl"==r.getStyle(i,"direction",!0)?65535:-65535),r.bind(N,"beforedeactivate focusin focusout",function(e){e.stopPropagation()}),N.focus(),a.selection.select(N,!0)}fuLine truncated
|
||||||
@@ -1 +1 @@
|
|||||||
tinymce.PluginManager.add("tabfocus",function(a){function b(a){9!==a.keyCode||a.ctrlKey||a.altKey||a.metaKey||a.preventDefault()}function c(b){function c(c){function f(a){return"BODY"===a.nodeName||"hidden"!=a.type&&"none"!=a.style.display&&"hidden"!=a.style.visibility&&f(a.parentNode)}function i(a){return/INPUT|TEXTAREA|BUTTON/.test(a.tagName)&&tinymce.get(b.id)&&-1!=a.tabIndex&&f(a)}if(h=d.select(":input:enabled,*[tabindex]:not(iframe)"),e(h,function(b,c){return b.id==a.id?(g=c,!1):void 0}),c>0){for(j=g+1;j<h.length;j++)if(i(h[j]))return h[j]}else for(j=g-1;j>=0;j--)if(i(h[j]))return h[j];return null}var g,h,i,j;if(!(9!==b.keyCode||b.ctrlKey||b.altKey||b.metaKey||b.isDefaultPrevented())&&(i=f(a.getParam("tab_focus",a.getParam("tabfocus_elements",":prev,:next"))),1==i.length&&(i[1]=i[0],i[0]=":prev"),h=b.shiftKey?":prev"==i[0]?c(-1):d.get(i[0]):":next"==i[1]?c(1):d.get(i[1]))){var k=tinymce.get(h.id||h.name);h.id&&k?k.focus():tinymce.util.Delay.setTimeout(function(){tinymce.Env.webkit||window.focus(),h.focus()},10),b.preventDefault()}}var d=tinymce.DOM,e=tinymce.each,f=tinymce.explode;a.on("init",function(){a.inline&&tinymce.DOM.setAttrib(a.getBody(),"tabIndex",null),a.on("keyup",b),tinymce.Env.gecko?a.on("keypress keydown",c):a.on("keydown",c)})});
|
tinymce.PluginManager.add("tabfocus",function(e){function t(e){9!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey||e.preventDefault()}function n(t){function n(n){function o(e){return"BODY"===e.nodeName||"hidden"!=e.type&&"none"!=e.style.display&&"hidden"!=e.style.visibility&&o(e.parentNode)}function l(e){return/INPUT|TEXTAREA|BUTTON/.test(e.tagName)&&tinymce.get(t.id)&&e.tabIndex!=-1&&o(e)}if(s=r.select(":input:enabled,*[tabindex]:not(iframe)"),i(s,function(t,n){if(t.id==e.id)return a=n,!1}),n>0){for(u=a+1;u<s.length;u++)if(l(s[u]))return s[u]}else for(u=a-1;u>=0;u--)if(l(s[u]))return s[u];return null}var a,s,l,u;if(!(9!==t.keyCode||t.ctrlKey||t.altKey||t.metaKey||t.isDefaultPrevented())&&(l=o(e.getParam("tab_focus",e.getParam("tabfocus_elements",":prev,:next"))),1==l.length&&(l[1]=l[0],l[0]=":prev"),s=t.shiftKey?":prev"==l[0]?n(-1):r.get(l[0]):":next"==l[1]?n(1):r.get(l[1]))){var c=tinymce.get(s.id||s.name);s.id&&c?c.focus():tinymce.util.Delay.setTimeout(function(){tinymce.Env.webkit||window.focus(),s.focus()},10),t.preventDefault()}}var r=tinymce.DOM,i=tinymce.each,o=tinymce.explode;e.on("init",function(){e.inline&&tinymce.DOM.setAttrib(e.getBody(),"tabIndex",null),e.on("keyup",t),tinymce.Env.gecko?e.on("keypress keydown",n):e.on("keydown",n)})});
|
||||||
@@ -1 +1 @@
|
|||||||
tinymce.PluginManager.add("textcolor",function(a){function b(b){var c;return a.dom.getParents(a.selection.getStart(),function(a){var d;(d=a.style["forecolor"==b?"color":"background-color"])&&(c=d)}),c}function c(b){var c,d,e=[];for(d=["000000","Black","993300","Burnt orange","333300","Dark olive","003300","Dark green","003366","Dark azure","000080","Navy Blue","333399","Indigo","333333","Very dark gray","800000","Maroon","FF6600","Orange","808000","Olive","008000","Green","008080","Teal","0000FF","Blue","666699","Grayish blue","808080","Gray","FF0000","Red","FF9900","Amber","99CC00","Yellow green","339966","Sea green","33CCCC","Turquoise","3366FF","Royal blue","800080","Purple","999999","Medium gray","FF00FF","Magenta","FFCC00","Gold","FFFF00","Yellow","00FF00","Lime","00FFFF","Aqua","00CCFF","Sky blue","993366","Red violet","FFFFFF","White","FF99CC","Pink","FFCC99","Peach","FFFF99","Light yellow","CCFFCC","Pale green","CCFFFF","Pale cyan","99CCFF","Light sky blue","CC99FF","Plum"],d=a.settings.textcolor_map||d,d=a.settings[b+"_map"]||d,c=0;c<d.length;c+=2)e.push({text:d[c+1],color:"#"+d[c]});return e}function d(){function b(a,b){var c="transparent"==a;return'<td class="mce-grid-cell'+(c?" mce-colorbtn-trans":"")+'"><div id="'+o+"-"+p++ +'" data-mce-color="'+(a?a:"")+'" role="option" tabIndex="-1" style="'+(a?"background-color: "+a:"")+'" title="'+tinymce.translate(b)+'">'+(c?"×":"")+"</div></td>"}var d,e,f,g,h,k,l,m,n=this,o=n._id,p=0;for(m=n.settings.origin,d=c(m),d.push({text:tinymce.translate("No color"),color:"transparent"}),f='<table class="mce-grid mce-grid-border mce-colorbutton-grid" role="list" cellspacing="0"><tbody>',g=d.length-1,k=0;k<j[m];k++){for(f+="<tr>",h=0;h<i[m];h++)l=k*i[m]+h,l>g?f+="<td></td>":(e=d[l],f+=b(e.color,e.text));f+="</tr>"}if(a.settings.color_picker_callback){for(f+='<tr><td colspan="'+i[m]+'" class="mce-custom-color-btn"><div id="'+o+'-c" class="mce-widget mce-btn mce-btn-small mce-btn-flat" role="button" tabindex="-1" aria-labelledby="'+o+'-c" style="width: 100%"><button type="button" role="presentation" tabindex="-1">'+tinymce.translate("Custom...")+"</button></div></td></tr>",f+="<tr>",h=0;h<i[m];h++)f+=b("","Custom color");f+="</tr>"}return f+="</tbody></table>"}function e(b,c){a.undoManager.transact(function(){a.focus(),a.formatter.apply(b,{value:c}),a.nodeChanged()})}function f(b){a.undoManager.transact(function(){a.focus(),a.formatter.remove(b,{value:null},null,!0),a.nodeChanged()})}function g(c){function d(a){l.hidePanel(),l.color(a),e(l.settings.format,a)}function g(){l.hidePanel(),l.resetColor(),f(l.settings.format)}function h(a,b){a.style.background=b,a.setAttribute("data-mce-color",b)}var j,k,l=this.parent();k=l.settings.origin,tinymce.DOM.getParent(c.target,".mce-custom-color-btn")&&(l.hidePanel(),a.settings.color_picker_callback.call(a,function(a){var b,c,e,f=l.panel.getEl().getElementsByTagName("table")[0];for(b=tinymce.map(f.rows[f.rows.length-1].childNodes,function(a){return a.firstChild}),e=0;e<b.length&&(c=b[e],c.getAttribute("data-mce-color"));e++);if(e==i[k])for(e=0;e<i[k]-1;e++)h(b[e],b[e+1].getAttribute("data-mce-color"));h(c,a),d(a)},b(l.settings.format))),j=c.target.getAttribute("data-mce-color"),j?(this.lastId&&document.getElementById(this.lastId).setAttribute("aria-selected",!1),c.target.setAttribute("aria-selected",!0),this.lastId=c.target.id,"transparent"==j?g():d(j)):null!==j&&l.hidePanel()}function h(){var a=this;a._color?e(a.settings.format,a._color):f(a.settings.format)}var i,j;j={forecolor:a.settings.forecolor_rows||a.settings.textcolor_rows||5,backcolor:a.settings.backcolor_rows||a.settings.textcolor_rows||5},i={forecolor:a.settings.forecolor_cols||a.settings.textcolor_cols||8,backcolor:a.settings.backcolor_cols||a.settings.textcolor_cols||8},a.addButton("forecolor",{type:"colorbutton",tooltip:"Text color",format:"forecolor",panel:{origin:"forecolor",role:"application",ariaRemember:!0,html:d,onclick:g},onclick:h}),a.addButton("backcolor",{type:"colorbutton",tooltip:"Background color",format:"hilitecolor",panel:{origin:"backcolor",role:"application",ariaRemember:!0,html:d,onclick:g},onclick:h})});
|
tinymce.PluginManager.add("textcolor",function(e){function t(t){var n;return e.dom.getParents(e.selection.getStart(),function(e){var r;(r=e.style["forecolor"==t?"color":"background-color"])&&(n=r)}),n}function n(t){var n,r,i=[];for(r=["000000","Black","993300","Burnt orange","333300","Dark olive","003300","Dark green","003366","Dark azure","000080","Navy Blue","333399","Indigo","333333","Very dark gray","800000","Maroon","FF6600","Orange","808000","Olive","008000","Green","008080","Teal","0000FF","Blue","666699","Grayish blue","808080","Gray","FF0000","Red","FF9900","Amber","99CC00","Yellow green","339966","Sea green","33CCCC","Turquoise","3366FF","Royal blue","800080","Purple","999999","Medium gray","FF00FF","Magenta","FFCC00","Gold","FFFF00","Yellow","00FF00","Lime","00FFFF","Aqua","00CCFF","Sky blue","993366","Red violet","FFFFFF","White","FF99CC","Pink","FFCC99","Peach","FFFF99","Light yellow","CCFFCC","Pale green","CCFFFF","Pale cyan","99CCFF","Light sky blue","CC99FF","Plum"],r=e.settings.textcolor_map||r,r=e.settings[t+"_map"]||r,n=0;n<r.length;n+=2)i.push({text:r[n+1],color:"#"+r[n]});return i}function r(){function t(e,t){var n="transparent"==e;return'<td class="mce-grid-cell'+(n?" mce-colorbtn-trans":"")+'"><div id="'+h+"-"+m++ +'" data-mce-color="'+(e?e:"")+'" role="option" tabIndex="-1" style="'+(e?"background-color: "+e:"")+'" title="'+tinymce.translate(t)+'">'+(n?"×":"")+"</div></td>"}var r,i,o,a,s,c,d,f,p=this,h=p._id,m=0;for(f=p.settings.origin,r=n(f),r.push({text:tinymce.translate("No color"),color:"transparent"}),o='<table class="mce-grid mce-grid-border mce-colorbutton-grid" role="list" cellspacing="0"><tbody>',a=r.length-1,c=0;c<u[f];c++){for(o+="<tr>",s=0;s<l[f];s++)d=c*l[f]+s,d>a?o+="<td></td>":(i=r[d],o+=t(i.color,i.text));o+="</tr>"}if(e.settings.color_picker_callback){for(o+='<tr><td colspan="'+l[f]+'" class="mce-custom-color-btn"><div id="'+h+'-c" class="mce-widget mce-btn mce-btn-small mce-btn-flat" role="button" tabindex="-1" aria-labelledby="'+h+'-c" style="width: 100%"><button type="button" role="presentation" tabindex="-1">'+tinymce.translate("Custom...")+"</button></div></td></tr>",o+="<tr>",s=0;s<l[f];s++)o+=t("","Custom color");o+="</tr>"}return o+="</tbody></table>"}function i(t,n){e.undoManager.transact(function(){e.focus(),e.formatter.apply(t,{value:n}),e.nodeChanged()})}function o(t){e.undoManager.transact(function(){e.focus(),e.formatter.remove(t,{value:null},null,!0),e.nodeChanged()})}function a(n){function r(e){d.hidePanel(),d.color(e),i(d.settings.format,e)}function a(){d.hidePanel(),d.resetColor(),o(d.settings.format)}function s(e,t){e.style.background=t,e.setAttribute("data-mce-color",t)}var u,c,d=this.parent();c=d.settings.origin,tinymce.DOM.getParent(n.target,".mce-custom-color-btn")&&(d.hidePanel(),e.settings.color_picker_callback.call(e,function(e){var t,n,i,o=d.panel.getEl().getElementsByTagName("table")[0];for(t=tinymce.map(o.rows[o.rows.length-1].childNodes,function(e){return e.firstChild}),i=0;i<t.length&&(n=t[i],n.getAttribute("data-mce-color"));i++);if(i==l[c])for(i=0;i<l[c]-1;i++)s(t[i],t[i+1].getAttribute("data-mce-color"));s(n,e),r(e)},t(d.settings.format))),u=n.target.getAttribute("data-mce-color"),u?(this.lastId&&document.getElementById(this.lastId).setAttribute("aria-selected",!1),n.target.setAttribute("aria-selected",!0),this.lastId=n.target.id,"transparent"==u?a():r(u)):null!==u&&d.hidePanel()}function s(){var e=this;e._color?i(e.settings.format,e._color):o(e.settings.format)}var l,u;u={forecolor:e.settings.forecolor_rows||e.settings.textcolor_rows||5,backcolor:e.settings.backcolor_rows||e.settings.textcolor_rows||5},l={forecolor:e.settings.forecolor_cols||e.settings.textcolor_cols||8,backcolor:e.settings.backcolor_cols||e.settings.textcolor_cols||8},e.addButton("forecolor",{type:"colorbutton",tooltip:"Text color",format:"forecolor",panel:{origin:"forecolor",role:"application",ariaRemember:!0,html:r,onclick:a},onclick:s}),e.addButton("backcolor",{type:"colorbutton",tooltip:"Background color",format:"hilitecolor",panel:{origin:"backcolor",role:"application",ariaRemember:!0,html:r,onclick:a},onclick:s})});
|
||||||
@@ -982,7 +982,7 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
|
|||||||
|
|
||||||
function hide( event ) {
|
function hide( event ) {
|
||||||
if ( activeToolbar ) {
|
if ( activeToolbar ) {
|
||||||
if ( activeToolbar.tempHide || event.type === 'hide' ) {
|
if ( activeToolbar.tempHide || event.type === 'hide' || event.type === 'blur' ) {
|
||||||
activeToolbar.hide();
|
activeToolbar.hide();
|
||||||
activeToolbar = false;
|
activeToolbar = false;
|
||||||
} else if ( (
|
} else if ( (
|
||||||
|
|||||||