Commit b46e8b98 by 牛晓林

latest

parent 669d6bf2
<?php
/**
* @package Hello_Dolly
* @version 1.7.1
*/
/*
Plugin Name: Hello Dolly
Plugin URI: http://wordpress.org/plugins/hello-dolly/
Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page.
Author: Matt Mullenweg
Version: 1.7.1
Author URI: http://ma.tt/
*/
function hello_dolly_get_lyric() {
/** These are the lyrics to Hello Dolly */
$lyrics = "Hello, Dolly
Well, hello, Dolly
It's so nice to have you back where you belong
You're lookin' swell, Dolly
I can tell, Dolly
You're still glowin', you're still crowin'
You're still goin' strong
I feel the room swayin'
While the band's playin'
One of our old favorite songs from way back when
So, take her wrap, fellas
Dolly, never go away again
Hello, Dolly
Well, hello, Dolly
It's so nice to have you back where you belong
You're lookin' swell, Dolly
I can tell, Dolly
You're still glowin', you're still crowin'
You're still goin' strong
I feel the room swayin'
While the band's playin'
One of our old favorite songs from way back when
So, golly, gee, fellas
Have a little faith in me, fellas
Dolly, never go away
Promise, you'll never go away
Dolly'll never go away again";
// Here we split it into lines
$lyrics = explode( "\n", $lyrics );
// And then randomly choose a line
return wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) - 1 ) ] );
}
// This just echoes the chosen line, we'll position it later
function hello_dolly() {
$chosen = hello_dolly_get_lyric();
echo "<p id='dolly'>$chosen</p>";
}
// Now we set that function up to execute when the admin_notices action is called
add_action( 'admin_notices', 'hello_dolly' );
// We need some CSS to position the paragraph
function dolly_css() {
// This makes sure that the positioning is also good for right-to-left languages
$x = is_rtl() ? 'left' : 'right';
echo "
<style type='text/css'>
#dolly {
float: $x;
padding-$x: 15px;
padding-top: 5px;
margin: 0;
font-size: 11px;
}
.block-editor-page #dolly {
display: none;
}
</style>
";
}
add_action( 'admin_head', 'dolly_css' );
?>
/*
* jQuery FlexSlider v2.4.0
* http://www.woothemes.com/flexslider/
*
* Copyright 2012 WooThemes
* Free to use under the GPLv2 and later license.
* http://www.gnu.org/licenses/gpl-2.0.html
*
* Contributing author: Tyler Smith (@mbmufffin)
*
*/
/* ====================================================================================================================
* FONT-FACE
* ====================================================================================================================*/
@font-face {
font-family: 'flexslider-icon';
src: url('../../fonts/flexslider-icon.eot');
src: url('../../fonts/flexslider-icon.eot?#iefix') format('embedded-opentype'), url('../../fonts/flexslider-icon.woff') format('woff'), url('../../fonts/flexslider-icon.ttf') format('truetype'), url('../../fonts/flexslider-icon.svg#flexslider-icon') format('svg');
font-weight: normal;
font-style: normal;
}
/* ====================================================================================================================
* RESETS
* ====================================================================================================================*/
.flex-container a:hover,
.flex-slider a:hover,
.flex-container a:focus,
.flex-slider a:focus {
outline: none;
}
.slides.wpmf-slides,
.slides.wpmf-slides > li,
.flex-control-nav.wpmf-control-nav,
.flex-direction-nav.wpmf-direction-nav {
padding: 0;
list-style: none !important;
}
.flex-pauseplay span {
text-transform: capitalize;
}
/* ====================================================================================================================
* BASE STYLES
* ====================================================================================================================*/
.flexslider.wpmfflexslider {
margin: 0;
padding: 0;
}
.flexslider .slides.wpmf-slides > li {
display: none;
-webkit-backface-visibility: hidden;
}
.flexslider .slides.wpmf-slides img {
display: block;
}
.flexslider .slides.wpmf-slides:after {
content: "\0020";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
html[xmlns] .flexslider .slides.wpmf-slides {
display: block;
}
* html .flexslider .slides.wpmf-slides {
height: 1%;
}
.no-js .flexslider .slides.wpmf-slides > li:first-child {
display: block;
}
/* ====================================================================================================================
* DEFAULT THEME
* ====================================================================================================================*/
.flexslider.wpmfflexslider {
margin: 0 0 60px;
background: #ffffff;
border: 4px solid #ffffff;
position: relative;
zoom: 1;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
-moz-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
-o-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
}
.flexslider .slides.wpmf-slides {
zoom: 1;
margin: 0;
padding: 0;
}
.flexslider .slides.wpmf-slides img {
max-width: none !important;
}
.flex-viewport.wpmf-viewport {
max-height: 2000px;
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-ms-transition: all 1s ease;
-o-transition: all 1s ease;
transition: all 1s ease;
}
.loading .flex-viewport.wpmf-viewport {
max-height: 300px;
}
.carousel li:not(.wpmf-gg-one-columns) {
margin-right: 15px !important;
}
.wpmfflexslider.wpmffade li.wpmf-gg-one-columns{
margin: 0 !important;
max-width: 100% !important;
}
.wpmfflexslider.wpmffade li.wpmf-gallery-item{
margin-right: -100% !important;
}
.flexslider .slides.wpmf-slides li.wpmf-gg-one-columns img{
margin: 0 auto !important;
max-width: 100% !important;
}
.flex-direction-nav.wpmf-direction-nav {
height: 0 !important;
margin: auto;
display: none !important;
}
.flex-direction-nav.wpmf-direction-nav a {
display: block;
width: 40px;
height: 40px;
margin: -20px 0 0;
position: absolute;
top: 50%;
z-index: 10;
opacity: 0;
cursor: pointer;
color: rgba(0, 0, 0, 0.9);
text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
border: 0 !important;
text-decoration: none;
}
.flex-direction-nav.wpmf-direction-nav a:before {
content: '\f001';
display: inline-block;
font-family: "flexslider-icon";
font-size: 40px;
line-height: 40px;
}
.flex-direction-nav.wpmf-direction-nav a.flex-next:before {
content: '\f002';
}
.flex-direction-nav.wpmf-direction-nav .flex-prev {
left: -50px;
}
.flex-direction-nav.wpmf-direction-nav .flex-next {
right: -50px;
text-align: right;
}
.flexslider.wpmfflexslider:hover .flex-direction-nav.wpmf-direction-nav .flex-prev {
opacity: 0.7;
left: 10px;
}
.flexslider.wpmfflexslider:hover .flex-direction-nav.wpmf-direction-nav .flex-prev:hover {
opacity: 1;
color: #fff;
}
.flexslider.wpmfflexslider:hover .flex-direction-nav.wpmf-direction-nav .flex-next {
opacity: 0.7;
right: 10px;
}
.flexslider.wpmfflexslider:hover .flex-direction-nav.wpmf-direction-nav .flex-next:hover {
opacity: 1;
color: #fff;
}
.flex-direction-nav.wpmf-direction-nav .flex-disabled {
opacity: 0!important;
filter: alpha(opacity=0);
cursor: default;
}
.flex-pauseplay a {
display: block;
width: 20px;
height: 20px;
position: absolute;
bottom: 5px;
left: 10px;
opacity: 0.8;
z-index: 10;
overflow: hidden;
cursor: pointer;
color: #000;
}
.flex-pauseplay a:before {
font-family: "flexslider-icon";
font-size: 20px;
display: inline-block;
content: '\f004';
}
.flex-pauseplay a:hover {
opacity: 1;
}
.flex-pauseplay a .flex-play:before {
content: '\f003';
}
.flex-control-nav.wpmf-control-nav {
width: 100%;
position: absolute;
bottom: -60px;
text-align: center;
}
.flex-control-nav.wpmf-control-nav li {
margin: 0 6px !important;
display: inline-block;
zoom: 1;
*display: inline;
}
.flex-control-paging.wpmf-control-nav li a {
width: 11px;
height: 11px;
display: block;
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5);
cursor: pointer;
text-indent: -9999px;
border-radius: 20px;
border-bottom : 0 !important;
}
.flex-control-paging.wpmf-control-nav li a:hover {
background: rgba(0, 0, 0, 0.7);
}
.flex-control-paging.wpmf-control-nav li a.flex-active {
background: rgba(0, 0, 0, 0.9);
cursor: default;
}
.flex-control-thumbs {
margin: 5px 0 0;
position: static;
overflow: hidden;
}
.flex-control-thumbs li {
width: 25%;
float: left;
margin: 0;
}
.flex-control-thumbs img {
width: 100%;
height: auto;
display: block;
opacity: .7;
cursor: pointer;
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-ms-transition: all 1s ease;
-o-transition: all 1s ease;
transition: all 1s ease;
}
.flex-control-thumbs img:hover {
opacity: 1;
}
.flex-control-thumbs .flex-active {
opacity: 1;
cursor: default;
}
/* ====================================================================================================================
* RESPONSIVE
* ====================================================================================================================*/
@media screen and (max-width: 860px) {
.flex-direction-nav.wpmf-direction-nav .flex-prev {
opacity: 1;
left: 10px;
}
.flex-direction-nav.wpmf-direction-nav .flex-next {
opacity: 1;
right: 10px;
}
}
.wpmf-front-box.top {
color: #ffffff;
position: absolute;
bottom: 0;
left: 0;
right: 0;
box-sizing: border-box;
display: block;
clear: left;
opacity: 0;
width: 90%;
margin: 0 auto;
border-bottom: #eee 1px solid;
z-index: 999;
}
.wpmf-front-box.top a{
text-decoration: none !important;
font-weight: 100;
}
.wpmf-front-box.top a .title{
color: #ffffff;
bottom: 5px;
font-size: 11px;
transition: all 0.15s linear;
float:left;
padding-bottom: 7px;
}
.wpmf-front-box.top a .caption{
color: #ffffff;
text-decoration: none;
bottom: 5px;
right: 5%;
font-size: 11px;
transition: all 0.15s linear;
float:right;
padding-bottom: 7px;
}
.wpmf-gallery-item:hover>.wpmf-front-box.top{
opacity: 1;
bottom: 4%;
transition-duration: 0.3s;
}
.flexslider.wpmfflexslider .wpmf-gallery-item{
overflow: hidden;
}
.icon-wpmf-nav{
position: absolute;
width: 70px;
height: 70px;
top:50%;
margin-top: -35px;
z-index: 9999;
fill: currentColor;
color: rgba(0, 0, 0, 0.9);
opacity: 0;
transition: all 0.3s ease-in-out;
}
.icon-chevron-right{
right:-100px;
}
.icon-chevron-left{
left:-100px;
}
.flexslider.wpmfflexslider:hover .icon-chevron-right {
opacity: 0.7;
right:-10px;
}
.icon-chevron-left:hover {
opacity: 1;
color: #fff;
}
.flexslider.wpmfflexslider:hover .icon-chevron-left {
opacity: 0.7;
left:-10px;
}
.icon-chevron-right:hover {
opacity: 1;
color: #fff;
}
.wpmf-control-nav{
display: block !important;
}
\ No newline at end of file
.wpmf-gallery-clear:before,
.wpmf-gallery-clear:after {
content: '';
display: table;
}
.wpmf-gallery-clear:after {
clear: both;
}
/**
* [gallery]
* ----------------------------------------------------------------------------
*/
.wpmf-gallerys .gallery {
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
}
.wpmf-gallerys .wpmf-gallery-bottomspace-default {
margin-bottom: 20px;
}
.wpmf-gallerys .wpmf-gallery-bottomspace-ten {
margin-bottom: 10px;
}
.wpmf-gallerys .wpmf-gallery-bottomspace-five {
margin-bottom: 5px;
}
.wpmf-gallerys .wpmf-gallery-bottomspace-none {
margin-bottom: 0;
}
.wpmf-gallerys .gallery-center {
margin-left: auto;
margin-right: auto;
}
.wpmf-gallerys .wpmf-gallery-item {
float: left;
margin: 0;
position: relative;
max-width: none !important;
padding: 0 !important;
}
.wpmf-gallerys .gallery .gallery-icon a {
display: block;
}
.wpmf-gallerys .gallery .gallery-icon a img {
max-width: 100%;
height: auto;
vertical-align: middle;
}
.wpmf-gallerys .gallery.gallery-with-border .gallery-icon a {
border: 1px solid #eeeeee;
}
/**
* Image Links
* ----------------------------------------------------------------------------
*/
.wpmf-gallerys .wpmf-gallery-item .gallery-block {
position: relative;
}
.gallery-block { margin-top: 5px; margin-right: 5px; display: none}
/**
* [gallery flexslider]
* ----------------------------------------------------------------------------
*/
.wpmfflexslider-container {
overflow: hidden;
}
.wpmf-gallerys .gallery.wpmfflexslider {
border-width: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
-o-border-radius: 0px;
border-radius: 0;
-webkit-box-shadow: none;
-moz-box-shadow: none;
-o-box-shadow: none;
box-shadow: none;
}
.wpmf-gallerys .gallery.wpmfflexslider .wpmfflex-control-paging {
display: none;
}
.wpmf-gallerys .gallery.wpmfflexslider .wpmfflex-control-paging li a {
background-color: #eeeeee;
box-shadow: none;
}
.wpmf-gallerys .gallery.wpmfflexslider .wpmfflex-control-paging li a.wpmfflex-active {
background-color: #cccccc;
}
.wpmf-gallerys .gallery.wpmfflexslider .wpmfflex-slide-item {
position: relative;
}
.wpmf-gallerys .gallery.wpmfflexslider .wpmfflex-slide-item .wpmfflex-center-slide {
position: relative;
margin-left: auto;
margin-right: auto;
}
.wpmf-gallerys .wpmfflexslider .slides .gallery-caption {
margin-left: auto;
margin-right: auto;
max-width: 100%;
}
/*
* Image Popup
*/
.wpmf_mfp-close:hover,
.wpmf_mfp-close:active,
.wpmf_mfp-close:focus,
.wpmf_mfp-arrow:hover,
.wpmf_mfp-arrow:active,
.wpmf_mfp-arrow:focus {
background-color: transparent;
}
.wpmf_mfp-bottom-bar *,
.wpmf_mfp-bottom-bar p {
margin-bottom: 0;
}
.wpmf_mfp-arrow:hover,
.wpmf_mfp-arrow:active,
.wpmf_mfp-arrow:focus {
top: 50%;
}
body .wpmf_mfp-arrow:active {
margin-top: -55px;
}
.gallery-icon a{
border:none !important;
}
.gallery-caption .title{
color: #393939;
font-family: Raleway;
font-size: 16px;
font-weight: 700;
letter-spacing: 2px;
text-transform: uppercase;
}
.gallery-caption .excerpt{
color: #9a9a9a;
font-family: Raleway;
font-size: 12px;
font-style: normal;
font-weight: 500;
letter-spacing: 1px;
text-transform: uppercase;
}
.gallery-masonry .gallery-icon{
position: relative;
margin: 0 auto;
}
.gallery-masonry .gallery-icon img.attachment-medium{
width: 100%;
}
.gallery-caption p{
text-align: center !important;
}
.owl-wrapper .gallery-icon img{
width: 98%;
}
.owl-wrapper .wp-caption-text.gallery-caption{
width: 98%;
}
.wp-caption-text.gallery-caption{
bottom: 0;
text-align: center !important;
}
.wpmfflexslider .wp-caption-text.gallery-caption,.gallery-portfolio .wp-caption-text.gallery-caption{
position: relative !important;
}
.hover_img{
width: 100%;
height: 100%;
position: absolute;
z-index: 888;
background: rgba(10,6,6,0.75);;
display: none !important;
}
.wpmf_gallery_box .flipster .hover_img {
width: 80%;
}
.portfolio_lightbox{
position: absolute;
top:50%;
left: 50%;
margin-top: -18px;
margin-left: -18px;
display: none !important;
width: 36px;
height: 36px;
text-align: center;
vertical-align: middle;
font-size: 24px;
line-height: 36px;
color: #393939 !important;
background-color: #fff;
border: 1px solid transparent;
border-radius: 2em;
z-index: 999;
transition: opacity .3s ease-in-out,color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out;
}
.gallery-masonry .gallery-icon:hover > .hover_img,
.gallery-masonry .gallery-icon:hover > .portfolio_lightbox{
display: block !important;
}
.portfolio_lightbox:hover{
background: #7c7c7c;
color: #fff !important;
}
.wpmf-gallery-caption{
position: relative !important;
bottom: 0;
text-align: center !important;
margin: 0 auto;
padding: 0;
}
.wpmf-gallery-caption .title{
color: #393939;
font-family: Raleway;
font-size: 13px !important;
font-weight: 700;
letter-spacing: 2px;
}
.wpmf-gallery-caption .excerpt{
color: #9a9a9a;
font-family: Raleway;
font-size: 12px !important;
font-style: normal;
font-weight: 500;
letter-spacing: 1px;
}
.gallery_default .wpmf-gallery-item{
display: inline-block;
text-align: center;
vertical-align: top;
}
.gallery-portfolio .wpmf-gallery-item{
min-height: 200px;
}
.gallery_default{
width:100%;
}
.gallery_default .wpmf-gallery-item{
margin: 0 0 4px 0 !important;
}
.wpmf-gallerys .gallery-icon img {
margin: 0 auto;
}
.wpmf_mfp-title{
display: block !important;
}
.wpmf-slides {
padding: 0 !important;
}
.wpmf-gallery-item .gallery-icon a {
box-shadow: none !important;
}
.gallery_default figure {
box-sizing: border-box;
}
\ No newline at end of file
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url('../fonts/MaterialIcons-Regular.eot');
/* For IE6-8 */
src: url('../fonts/MaterialIcons-Regular.woff2') format('woff2'),
url('../fonts/MaterialIcons-Regular.woff') format('woff'),
url('../fonts/MaterialIcons-Regular.ttf') format('truetype');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
/* Preferred icon size */
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
/* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */
text-rendering: optimizeLegibility;
/* Support for Firefox. */
-moz-osx-font-smoothing: grayscale;
/* Support for IE. */
font-feature-settings: 'liga';
}
\ No newline at end of file
/* @override http://neu.weingut-meyerhof.de/inhalte/erweiterungen/wp-media-folder/assets/css/jaofiletree.css?ver=3.5.5 */
#jao{
border-left: 2px solid #666;
padding: 10px 10px 10px 10px;
background: #FAFAFA;
min-height: 98px;
max-height: 400px;
overflow: auto;
float: left;
width: 210px;
margin: 10px 0 10px 10px;
resize: horizontal;
}
#wpmfjaoassign{
border-left: 2px solid #666;
padding: 10px 10px 10px 10px;
background: #FAFAFA;
min-height: 98px;
max-height: 400px;
overflow: auto;
float: left;
width: 95%;
margin: 0;
}
.media-frame-menu .media-menu #jao , .media-frame-menu .media-menu #wpmfjaoassign {
width: 100%;
padding: 10px 0 10px 0;
margin: 0;
border-left: 0;
border-right: 0;
}
.upload-php #jao {
/*width: 18%;*/
margin: 10px 0 10px 10px;
}
.wp-customizer #jao {
width: 220px;
margin: 10px 0 10px 10px;
}
ul.jaofiletree {
font-family: "Open Sans", sans-serif;
font-size: 12px;
line-height: 18px;
padding: 0;
margin: 0;
}
ul.jaofiletree li {
list-style: none;
padding: 0 0 0 8px;
margin: 0;
white-space: nowrap;
background: #FAFAFA;
}
ul.jaofiletree li[data-parent_id="0"] {
list-style: none;
padding: 0;
margin: 0;
white-space: nowrap;
position: relative;
}
ul.jaofiletree li ul li {
list-style: none;
margin-left: 10px;
white-space: nowrap;
background: #FAFAFA;
}
ul.jaofiletree li.drive {
padding-left: 15px;
}
ul.jaofiletree a {
color: #333;
text-decoration: none;
display: inline-block;
padding: 0 2px;
}
ul.jaofiletree a.title-folder , .title-wpmfaddFolder {
top: -2px;
padding: 0 0 0 5px;
min-width: 70%;
transition: all ease 0.2s;
vertical-align: middle;
cursor: pointer;
}
ul.jaofiletree a.title-root , .title-wpmfaddFolder {
min-width: 0;
}
ul.jaofiletree a:hover {}
ul.jaofiletree li.selected > a {
color: #0085ba;
}
.icon-open-close {
height: 16px !important;
width: 10px !important;
float: left;
}
/*
.jaofiletree li.directory .icon-open-close:before {
position: relative;
top: 0;
display: inline-block;
font-family: Material-Design-Iconic-Font;
font-size: 17px;
}
.jaofiletree li.directory.expanded .icon-open-close:before {
content: '\f2f2';
font-size: 22px;
}
.jaofiletree li.directory.collapsed .icon-open-close:before {
content: '\f2f6';
color: #888;
font-size: 22px;
}
.jaofiletree li.directory.selected > .icon-open-close:before {
color: #0085ba;
}
.jaofiletree li.directory.collapsed .icon-open-close:hover:before {
content: '\f2f6';
color: #555;
font-size: 22px;
}
.jaofiletree li.directory.wait .icon-open-close:before,
.jaofiletree li.directory.expanded.wait .icon-open-close:before,
.jaofiletree li.directory.collapsed.wait .icon-open-close:before {
color: transparent;
background: url(../images/spinner.gif) left top no-repeat;
width: 20px;
}*/
.jaofiletree .zmdi-folder {
font-size: 18px;
margin-top: 0;
margin-left: 4px;
color: #888888;
font-weight: 400;
vertical-align: middle;
}
.jaofiletree .wpmf-zmdi-folder-open {
font-size: 18px;
margin-top: 0;
margin-left: 4px;
color: #008EC2;
font-weight: 400;
vertical-align: middle;
}
.zmdi-long-arrow-return {
font-size: 60px!important;
margin: 10px auto;
color: #fafafa;
}
.wpmf_icon_createFolder{
font-size: 60px!important;
margin: 10px auto;
color: #fafafa;
}
.jaofiletree li.wait {}
.title-folder.title-root {
padding: 0 !important;
}
/*.directory a.ui-hoverClass {
color: #1e8cbe;
font-weight: bold;
}*/
.attachment.wpmf_dragsmall,
body.smallview_open .attachment.wpmf_dragsmall {
width: 30px !important;
}
.attachment.wpmf_dragsmall .draggableNumber {
display: none;
}
.wpmf-attachmentdrag {
width: 115px;
height: 115px;
position: relative;
float: left;
padding: 0;
margin: 0 10px 20px;
color: #464646;
list-style: none;
text-align: center;
}
.wpmf-attachmentdrag .wpmf-attachment-preview {
position: relative;
width: 120px;
height: 120px;
box-shadow: inset 0 0 15px rgba( 0, 0, 0, 0.1), inset 0 0 0 1px rgba( 0, 0, 0, 0.05);
background: #eee;
cursor: pointer;
}
.wpmf-attachmentdrag .wpmf-attachment-preview .zmdi-folder {
font-size: 60px !important;
color: #888888;
}
.wpmf-attachmentdrag .wpmf-attachment-preview .filename {
position: absolute;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
max-height: 100%;
word-wrap: break-word;
text-align: center;
font-weight: bold;
background: rgba( 255, 255, 255, 0.8);
-webkit-box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.15);
box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.15);
}
.wpmf-attachmentdrag.wpmf_dragsmall {
height: 18px;
margin: 0;
padding: 0;
}
.wpmf-attachmentdrag.wpmf_dragsmall .wpmf-attachment-preview {
height: 18px;
box-shadow: none;
background: transparent;
}
.wpmf-attachmentdrag.wpmf_dragsmall .wpmf-attachment-preview .zmdi-folder {
font-size: 15px !important;
margin: 0;
float: left;
}
.wpmf-attachmentdrag.wpmf_dragsmall .wpmf-attachment-preview .filename {
position: relative;
text-align: left;
background: transparent;
box-shadow: none;
}
.smallview_open .wpmf-attachmentdrag.wpmf_draglarge {
width: 70px;
height: 70px;
}
.smallview_open .wpmf-attachmentdrag.wpmf_draglarge .wpmf-attachment-preview {
width: 70px;
height: 70px;
}
.smallview_open .wpmf-attachmentdrag.wpmf_draglarge .wpmf-attachment-preview .zmdi-folder {
font-size: 40px !important;
margin: 10px auto;
}
.ui-draggable-dragging.wpmf_dragsmall:not(.upload-php .ui-draggable-dragging.wpmf_dragsmall) {
opacity: 0;
}
.ui-draggable-dragging.wpmf_draglarge:not(.upload-php .ui-draggable-dragging.wpmf_draglarge) {
opacity: 1;
}
@media only screen and (max-width: 1024px) {
.media-frame .wpmf-attachments-wrapper {
top: 220px;
}
.media-toolbar-secondary {
max-width: 100% !important;
margin-top: 20px;
}
.attachments-browser .media-toolbar,
.wp-filter {
min-height: 25px;
}
.upload-php .wpmf-arrow-toolbar,
.upload-php .wpmf-arrow-folder {
margin-top: 1px;
}
.wp-filter.wpmf-hide > * {
display: none;
}
.wp-filter.wpmf-show > * {
display: block;
}
.attachments-browser .media-toolbar.wpmf-hide > *,
.wp-filter.wpmf-hide > * {
display: none;
}
.attachments-browser .media-toolbar.wpmf-show > *,
.wp-filter.wpmf-show > * {
display: block;
}
.attachments-browser .media-toolbar .wpmf-show-hide,
.wp-filter .wpmf-show-hide {
display: block;
}
.wpmf-show-hide {
position: absolute;
right: 10px;
top: 0;
color: #21759b;
}
.wpmf_sh {
float: left;
}
.wpmf_sh label {
line-height: 20px;
}
}
@media only screen and (max-width: 900px) {
.media-frame .wpmf-attachments-wrapper {
top: 220px;
right: 265px;
}
}
@media only screen and (max-width: 768px) {
.media-frame .wpmf-attachments-wrapper {
top: 300px;
}
}
@media only screen and (max-width: 768px) and (min-width: 640px) {
.mode-grid .addFolder {
margin-top: 0 !important;
}
}
@media only screen and (max-width: 640px) {
.media-frame .wpmf-attachments-wrapper {
top: 185px;
right: 0;
}
}
@media only screen and (max-width: 480px) {
#jao {
width: 95% !important;
padding: 0;
}
.media-toolbar-secondary {
max-width: 100% !important;
margin-top: 20px;
}
.upload-php .wp-filter .filter-items {
margin-top: 20px;
}
.media-frame .wpmf-attachments-wrapper {
top: 250px;
}
.media-frame .media-sidebar.visible {
margin-top: 20px;
}
.media-frame .media-frame-toolbar .media-toolbar-primary .button {
font-size: 12px;
}
.media-frame .wpmf-attachments-wrapper .wpmf-attachments-browser {
padding: 0;
}
}
@media only screen and (max-width: 320px) {
.media-frame .wpmf-attachments-wrapper {
top: 330px;
}
.media-frame .media-frame-toolbar .media-toolbar-primary .button {
font-size: 10px;
}
}
.wpmfdirectory {
padding: 0 !important;
margin: 0 !important;
}
.wpmfaddFolder {
vertical-align: middle;
top: 1px !important;
margin-top: 1px !important;
cursor: pointer;
}
.wpmf-zmdi-folder-open:before {
content: '\f228';
}
.wpmf_checkbox_tree{
margin:0;
vertical-align: middle
}
.wpmf-folder-tree .foldershow {
display: block;
}
.wpmf-folder-tree .folderhide {
display: none;
}
\ No newline at end of file
.snackbar {
background-color: #323232;
color: #FFFFFF;
font-size: 14px;
border-radius: 2px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
height: 0;
-moz-transition: -moz-transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0s linear 0.2s, padding 0s linear 0.2s, height 0s linear 0.2s;
-webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0s linear 0.2s, padding 0s linear 0.2s, height 0s linear 0.2s;
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0s linear 0.2s, padding 0s linear 0.2s, height 0s linear 0.2s;
-moz-transform: translateY(200%);
-webkit-transform: translateY(200%);
transform: translateY(200%);
}
.snackbar.snackbar-opened {
padding: 14px 15px;
margin-bottom: 20px;
height: auto;
-moz-transition: -moz-transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0s linear 0.2s;
-webkit-transition: -webkit-transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0s linear 0.2s;
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0s linear 0.2s, height 0s linear 0.2s;
-moz-transform: none;
-webkit-transform: none;
transform: none;
}
.snackbar.toast {
border-radius: 200px;
}
.wpmf-attachment.mdc-list-item {
width: 172px !important;
padding: 0 16px !important;
margin: 8px 12px 8px 8px !important;
background: #fff;
overflow: hidden;
height: 48px !important;
text-overflow: ellipsis;
white-space: nowrap;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
cursor: pointer;
}
.wpmf-attachment.mdc-list-item.mdc-ripple-upgraded.mdc-ripple-upgraded::before {
top: calc(50% - 100%);
left: calc(50% - 100%);
width: 200%;
height: 200%;
-webkit-transform: scale(var(--mdc-ripple-fg-scale, 0));
transform: scale(var(--mdc-ripple-fg-scale, 0));
}
.wpmf-attachment .mdc-list-item__start-detail {
display: inline-flex;
align-items: center;
justify-content: center;
color: #8f8f8f;
}
.wpmf-attachment .mdc-list-item__start-detail {
width: 35px;
height: 35px;
margin-left: 0;
margin-right: 10px;
border-radius: 50%;
}
.wpmf-attachment .grey-bg {
background: rgba(0, 0, 0, .26);
}
.wpmf-attachment .white-bg {
background: #fff;
}
.wpmf-attachment .mdc-list-item__text {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
display: inline-block;
width: 90px;
white-space: nowrap;
overflow: hidden !important;
text-overflow: ellipsis;
text-align: left;
}
.attachments {
min-width: 320px;
}
.wpmf-attachment.material_design.wpmf-back .dashicons-arrow-left-alt2 {
display: block !important;
opacity: 1 !important;
color: #8f8f8f !important;
}
.wpmf-attachment.material_design.wpmf-hover-folder {
border: #4d90fe solid 2px;
background: rgba(77, 144, 254, 0.2);
}
.wpmf-attachment.wpmf-line-break {
flex-basis: 100%;
height: 0 !important;
overflow: hidden !important;
margin: 0 !important;
padding: 0 !important;
}
/** Css for context menu */
.wpmf-contextmenu {
display: none;
}
.wpmf-contextmenu .colorsub .wp-picker-container {
width: 100%;
float: left;
margin: 4px;
}
.wpmf-contextmenu.grey-text.text-darken-2 {
color: #616161 !important;
}
.wpmf-contextmenu li {
margin-bottom: 0;
font-size: 14px;
line-height: 20px;
height: 40px;
}
.wpmf-contextmenu .wpmf-color-picker {
height: auto;
}
.wpmf-contextmenu li:hover > div.items_menu{
background: #eeeeee;
}
.wpmf-contextmenu li:hover > .submenu {
display: block;
}
.wpmf-contextmenu, .wpmf-contextmenu .submenu {
opacity: 1;
transition: opacity .5s;
margin: 0;
min-width: 250px;
box-sizing: border-box;
background: #fff;
position: fixed;
padding: 8px 0;
border-radius: 2px;
z-index: 999999;
}
.wpmf-contextmenu .z-depth-1, .wpmf-contextmenu.z-depth-1 {
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}
.wpmf-contextmenu li div.items_menu, .wpmf-contextmenu .submenu li div.items_menu {
position: absolute;
box-sizing: border-box;
padding: 8px 20px 8px 60px;
margin: 4px 0;
width: 100%;
transition: .3s;
text-align: left !important;
white-space: nowrap;
display: block;
cursor: pointer;
}
.wpmf-contextmenu .disabled, .wpmf-contextmenu .submenu .disabled {
opacity: .7;
cursor: default;
}
.wpmf-contextmenu li .material-icons, .wpmf-contextmenu .submenu li .material-icons {
position: absolute;
left: 24px;
color: #8f8f8f;
font-size: 20px !important;
}
.wpmf-contextmenu .sub, .wpmf-contextmenu .submenu .sub {
overflow: visible;
}
.wpmf-contextmenu .waves, .wpmf-contextmenu .submenu .waves {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
z-index: 10;
}
.wpmf-contextmenu li .right, .wpmf-contextmenu .submenu li .right {
left: auto;
right: 24px;
}
.wpmf-contextmenu li .material-icons, .wpmf-contextmenu .submenu li .material-icons {
position: absolute;
}
.wpmf-contextmenu .sub .right, .wpmf-contextmenu .submenu .sub .right {
transition: .5s;
}
.wpmf-contextmenu i.right {
float: right;
margin-left: 15px;
}
.wpmf-contextmenu .right {
float: right !important;
}
.wpmf-contextmenu .sub .submenu {
display: none;
top: 0;
transition: .3s;
position: absolute;
z-index: 999999;
width: auto;
margin: 0;
left: calc(100%);
}
.wp-picker-ok {
width: 20%;
float: left;
margin: 4px !important;
}
.wpmf-contextmenu.context_overflow .sub .submenu {
right: calc(100%);
left: auto;
}
.wpmf-contextmenu .color-wrapper {
width: 240px;
}
.wpmf-contextmenu .color-wrapper .color {
float: left;
margin: 5px;
height: 30px;
width: 30px;
position: relative;
}
.wpmf-contextmenu .color-wrapper .color.custom_color {
margin: 0;
}
.wpmf-contextmenu .color-wrapper .color .color_check {
color: #fff !important;
font-size: 30px !important;
left: 0 !important;
}
.wpmf-contextmenu .color-wrapper .color .color_uncheck {
color: #eee !important;
font-size: 30px !important;
left: 0 !important;
}
.wpmf-contextmenu .colorsub {
padding: 10px !important;
min-width: 236px !important;
}
.wpmf-dialog-container #positive {
color: #fff !important;
font-weight: bold !important;
background: #4285f4 !important;
}
.wpmf-dialog-container #negative {
font-weight: bold !important;
color: #656565 !important;
margin-right: 5px !important;
}
.custom_color_wrap {
width: 240px;
float: left;
}
.wp-color-folder {
float: left;
height: 30px;
vertical-align: middle;
width: 210px;
margin: 0;
}
.wp-color-folder::placeholder {
opacity: 0.6;
font-size: 12px;
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
.wpmf-dialog-container,
.wpmf-loading-container {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: scroll;
background: rgba(0, 0, 0, 0.4);
z-index: 9999;
opacity: 0;
-webkit-transition: opacity 400ms ease-in;
-moz-transition: opacity 400ms ease-in;
transition: opacity 400ms ease-in;
}
.wpmf-dialog-container > div {
position: relative;
width: 90%;
max-width: 500px;
min-height: 25px;
margin: 10% auto;
z-index: 99999;
padding: 16px 16px 0;
}
.dialog-button-bar {
text-align: right;
margin-top: 8px;
}
.wpmf-loading-container > div {
position: relative;
width: 50px;
height: 50px;
margin: 10% auto;
z-index: 99999;
}
.wpmf-loading-container > div > div {
width: 100%;
height: 100%;
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
.wpmf-dialog-container,
.wpmf-loading-container {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: scroll;
background: rgba(0, 0, 0, 0.4);
z-index: 999999999;
opacity: 0;
-webkit-transition: opacity 100ms ease-in;
-moz-transition: opacity 100ms ease-in;
transition: opacity 100ms ease-in;
}
.wpmf-dialog-container > div {
position: relative;
width: 90%;
max-width: 510px;
min-height: 25px;
margin: 10% auto;
z-index: 9999;
padding: 16px 16px 0;
}
.dialog-button-bar {
text-align: right;
margin-top: 8px;
}
.wpmf-loading-container > div {
position: relative;
width: 50px;
height: 50px;
margin: 10% auto;
z-index: 9999;
}
.wpmf-loading-container > div > div {
width: 100%;
height: 100%;
}
\ No newline at end of file
div.wpmf-pdfemb-viewer {
overflow: hidden;
line-height: 1;
margin: 0;
padding: 0;
border: 1px solid black;
position: relative;
text-align: left;
direction: ltr;
}
div.pdfemb-inner-div {
overflow: hidden;
line-height: 1;
margin: 0;
padding: 0;
border: none;
position: relative;
background-color: lightGrey;
width: 100%;
height: 100%;
display: inline-block;
}
div.pdfemb-inner-div-wantmobile {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 50;
background-color: lightgray;
opacity: 0.5;
}
div.pdfemb-inner-div-wantmobile-fswrap {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 100;
}
div.pdfemb-wantmobile-fsarea {
position: relative;
width: 80%;
margin: 40% auto 0 auto;
padding: 10px;
height: 20%;
max-height: 35px;
text-align: center;
opacity: 1;
cursor: pointer;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
border:4px solid #363600;
background-color:#C5BDCF;
-webkit-box-shadow: #B3B3B3 8px 8px 8px;
-moz-box-shadow: #B3B3B3 8px 8px 8px;
box-shadow: #B3B3B3 8px 8px 8px;
color: black;
font-family: sans-serif;
letter-spacing: 2px;
font-size: 16px;
line-height: 110%;
}
.grab-to-pan-grab {
cursor: move !important;
cursor: -webkit-grab !important;
cursor: -moz-grab !important;
cursor: grab !important;
}
.grab-to-pan-grab *:not(input):not(textarea):not(button):not(select):not(:link) {
cursor: inherit !important;
}
.grab-to-pan-grab:active,
.grab-to-pan-grabbing {
cursor: move !important;
cursor: -webkit-grabbing !important;
cursor: -moz-grabbing !important;
cursor: grabbing !important;
z-index: 50000; /* should be higher than anything else in PDF.js! */
}
div.pdfemb-loadingmsg {
text-align: center;
padding: 5px;
}
div.wpmf-pdfemb-viewer canvas {
position: relative;
top: 0;
bottom: 0;
margin: 0;
padding: 0;
display: inline-block;
background-color: white;
}
div.pdfemb-toolbar {
padding: 0;
margin: 0;
border: none;
z-index: 10;
position: absolute;
background-color: grey;
width: 100%;
}
div.pdfemb-toolbar-fixed {
display: block;
}
div.pdfemb-toolbar-hover {
display: none;
}
div.pdfemb-toolbar-top {
top: 0;
left: 0;
}
div.pdfemb-toolbar-bottom {
bottom: 0;
left: 0;
padding-top: 1px;
}
div.pdfemb-toolbar button, div.pdfemb-toolbar button[disabled] {
background: hsla(0, 0%, 0%, .12) linear-gradient(hsla(0, 0%, 100%, .05), hsla(0, 0%, 100%, 0));
background-clip: padding-box;
border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
0 0 1px hsla(0,0%,100%,.15) inset,
0 1px 0 hsla(0,0%,100%,.05);
-webkit-transition-property: background-color, border-color, box-shadow;
-webkit-transition-duration: 150ms;
-webkit-transition-timing-function: ease;
transition-property: background-color, border-color, box-shadow;
transition-duration: 150ms;
transition-timing-function: ease;
min-width: 16px;
padding: 2px 6px 0;
border-radius: 2px;
color: hsla(0,0%,100%,.8);
font-size: 12px;
line-height: 14px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
cursor: default;
margin: 4px 2px 4px 0;
float: left;
}
div.pdfemb-toolbar button:hover {
background-color: hsla(0,0%,0%,.2);
box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
0 0 1px hsla(0,0%,100%,.15) inset,
0 0 1px hsla(0,0%,0%,.05);
}
div.pdfemb-toolbar button:first-child {
margin-left: 4px;
}
div.pdfemb-toolbar button.pdfemb-toggled {
background: hsla(0, 0%, 0%, .3) linear-gradient(hsla(0, 0%, 100%, .05), hsla(0, 0%, 100%, 0));
border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.45) hsla(0,0%,0%,.5);
box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
0 0 1px hsla(0,0%,0%,.2) inset,
0 1px 0 hsla(0,0%,100%,.05);
-webkit-transition-property: background-color, border-color, box-shadow;
-webkit-transition-duration: 10ms;
-webkit-transition-timing-function: linear;
transition-property: background-color, border-color, box-shadow;
transition-duration: 10ms;
transition-timing-function: linear;
}
div.pdfemb-toolbar button.pdfemb-toggled:hover {
background-color: hsla(0,0%,0%,.4);
border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.5) hsla(0,0%,0%,.55);
box-shadow: 0 1px 1px hsla(0,0%,0%,.2) inset,
0 0 1px hsla(0,0%,0%,.3) inset,
0 1px 0 hsla(0,0%,100%,.05);
}
div.pdfemb-toolbar button.pdfemb-prev::before {
content: url('../images/pdf-embed/toolbarButton-pageUp.png');
}
div.pdfemb-toolbar button.pdfemb-next::before {
content: url('../images/pdf-embed/toolbarButton-pageDown.png');
}
div.pdfemb-toolbar button.pdfemb-zoomout::before {
content: url('../images/pdf-embed/toolbarButton-zoomOut.png');
}
div.pdfemb-toolbar button.pdfemb-zoomin::before {
content: url('../images/pdf-embed/toolbarButton-zoomIn.png');
}
div.pdfemb-toolbar button.pdfemb-fs::before {
content: url('../images/pdf-embed/toolbarButton-presentationMode.png');
}
div.pdfemb-toolbar button.pdfemb-download::before {
content: url('../images/pdf-embed/toolbarButton-download.png');
}
div.pdfemb-toolbar button.pdfemb-btndisabled {
color: lightGray;
}
div.pdfemb-toolbar div {
margin: 6px 15px 6px 2px;
font-family: sans-serif;
padding: 2px;
text-align: center;
letter-spacing: normal;
word-spacing: normal;
font-size: 12px;
line-height: 14px;
text-transform: none;
text-indent: 0;
text-shadow: none;
font-weight: normal;
display: inline;
color: lightgray;
float: left;
}
div.pdfemb-toolbar div.pdfemb-poweredby {
float: right;
}
div.pdfemb-toolbar div.pdfemb-poweredby a {
color: lightgray;
text-decoration: none;
border-bottom: 1px solid #333;
}
div.pdfemb-toolbar div.pdfemb-poweredby a:hover {
border-bottom: none;
}
div.pdfemb-errormsg {
padding: 5px;
text-align: center;
vertical-align: middle;
}
.pdfemb-fsp-wrapper {
background: white;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 4000;
overflow-y: auto;
overflow-x: hidden;
display: none;
}
.pdfemb-fsp-content {
overflow: hidden;
width: 100%;
height: 100%;
position: relative;
top: 0;
left: 0;
}
input.pdfemb-page-num {
display: inline;
font-family: sans-serif;
width: 30px;
height: 15px;
vertical-align: middle;
font-size: 10px;
padding: 0 2px;
color: black;
text-align: center;
margin: 0;
}
.pdfembAnnotationLayer {
position: absolute;
}
.pdfembAnnotationLayer section {
position: absolute;
}
.pdfembAnnotationLayer .linkAnnotation > a {
position: absolute;
font-size: 1em;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.pdfembAnnotationLayer .linkAnnotation > a /* -ms-a */ {
background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;
border: none;
opacity: 0;
}
.pdfembAnnotationLayer .linkAnnotation > a:hover {
opacity: 0.2;
background: #ff0;
box-shadow: 0 2px 10px #ff0;
border: none;
}
.pdfembAnnotationLayer .textAnnotation img {
position: absolute;
cursor: pointer;
}
.pdfembAnnotationLayer .popupWrapper {
position: absolute;
width: 20em;
}
.pdfembAnnotationLayer .popup {
position: absolute;
z-index: 200;
max-width: 20em;
background-color: #FFFF99;
box-shadow: 0 2px 5px #333;
border-radius: 2px;
padding: 0.6em;
margin-left: 5px;
cursor: pointer;
word-wrap: break-word;
}
.pdfembAnnotationLayer .popup h1 {
font-size: 1em;
border-bottom: 1px solid #000000;
padding-bottom: 0.2em;
}
.pdfembAnnotationLayer .popup p {
padding-top: 0.2em;
}
.pdfembAnnotationLayer .highlightAnnotation,
.pdfembAnnotationLayer .underlineAnnotation,
.pdfembAnnotationLayer .squigglyAnnotation,
.pdfembAnnotationLayer .strikeoutAnnotation {
cursor: pointer;
}
#snackbar-container {
position: fixed;
right: 30px;
top: 40px;
z-index: 99999999;
}
.snackbar {
overflow: hidden;
clear: both;
min-width: 288px;
max-width: 568px;
cursor: pointer;
opacity: 0;
}
.snackbar.snackbar-opened {
height: auto;
opacity: 1;
}
@media (max-width: 767px) {
#snackbar-container {
left: 0 !important;
right: 0;
width: 100%;
}
#snackbar-container .snackbar {
min-width: 100%;
}
#snackbar-container [class="snackbar snackbar-opened"] ~ .snackbar.toast {
margin-top: 20px;
}
#snackbar-container [class="snackbar snackbar-opened"] {
border-radius: 0;
margin-bottom: 0;
}
}
/*# sourceMappingURL=snackbar.css.map */
\ No newline at end of file
.wpmf_wrap_duplicate{
padding:10px;
}
.wpmf_message_duplicate .updated{
color: #0073aa;
margin : 5px 0 !important;
}
.wpmf_message_duplicate .error{
color: #bc0b0b;
margin : 5px 0 !important;
}
.wpmf_btn_duplicate {
float: left;
cursor: pointer;
}
.wpmf_spinner_duplicate {
float: left;
}
\ No newline at end of file
body.smallview_open .attachment:not(.ui-draggable-dragging) {
width: 80px !important;
}
body.smallview_open .attachments-browser .attachment .thumbnail .centered img.icon {
margin-top: 8px;
width: 50%;
}
body.smallview_open .attachments-browser .attachment .thumbnail .filename {
display: none;
}
.media-modal .wpmf_viewsmall{
margin-top: 4px !important;
}
.media-modal .wpmfview-grid{
margin-top: 2px !important;
}
.viewwpmf {
height: 25px;
overflow: hidden;
float: left;
margin-top: 14px;
}
.upload-php .wpmf_smallview {
padding: 5px;
width: 18px;
height: 18px;
}
.wpmf_smallview.zmdi-apps,
.wpmf_viewsmall.zmdi-apps {
font-size: 27px !important;
color: #666;
float: left;
margin-top: 1px;
line-height: 16px;
}
.upload-php .wpmf_smallview.zmdi-apps {
font-size: 26px !important;
}
.wpmf_smallview.zmdi-apps.noactive:hover,
.wpmf_viewsmall.zmdi-apps.noactive:hover {
color: #555;
}
.wpmf_smallview.active,
.wpmf_viewsmall.active,
.wpmfview-grid.active {
color: #0073aa;
}
#media-attachment-filters {
/*display: none !important;*/
}
.wpmediacategory-filter{
display: block !important;
}
.media-toolbar {
overflow: visible !important;
}
.media-modal select.attachment-filters {
width: auto !important;
}
.upload-php .media-frame.mode-select .div_displaymedia {
margin-top: 0;
}
body.smallview_open .wpmf-attachment {
width: 70px;
height: 70px;
margin: 0 5px 10px;
}
body.smallview_open .wpmf-attachment .wpmf-attachment-preview {
width: 70px;
height: 70px;
}
body.smallview_open .wpmf-attachment .zmdi-folder,
body.smallview_open .wpmf-attachment .zmdi-long-arrow-return,
body.smallview_open .wpmf-attachment .wpmf_icon_createFolder{
font-size: 40px !important;
margin: 10px auto;
}
body.smallview_open .wpmf-attachment .filename {
font-size: 10px;
}
.upload-php .attachments-browser .media-toolbar-secondary {
max-width: 100%;
}
.upload-php .mode-edit .select-mode-toggle-button {
margin-top: 0 !important;
}
.upload-php .media-frame .media-toolbar .wpmf-order-folder,
.upload-php .media-frame .media-toolbar .wpmf-order-media,
.upload-php .media-frame.mode-edit .media-toolbar .select-mode-toggle-button {
float: left;
margin-top: 12px !important;
}
.media-toolbar-secondary select,
.wpmfallfilter {
float: left;
margin-top: 12px !important;
}
.media-toolbar-secondary .view-switch {
float: left;
}
.wpmfallfilter.hide {
display: none;
}
.wpmfallfilter.show {
display: block;
}
.media-toolbar-secondary #media-attachment-size-filters,
.media-toolbar-secondary #media-order-folder,
.media-toolbar-secondary #media-order-media,
.media-toolbar-secondary #media-attachment-weight-filters,
.media-toolbar-secondary #media-attachment-date-filters,
.media-toolbar-secondary #wpmf-display-media-filters,
.media-toolbar-secondary #media-attachment-filters {
display: none !important;
}
/*.upload-php .media-frame .media-toolbar .spinner{
float: left;
margin-top: 7px !important;
}*/
.wpmfview-grid {
display: inline-block;
width: 18px;
height: 18px;
text-decoration: none;
float: left;
margin-right: 5px;
margin-top: -1px;
}
.wpmfview-grid.noactive {
color: #b4b9be;
}
.wpmfview-grid.noactive:hover {
color: #555;
}
.wpmfview-grid.active:hover {
color: #0073aa;
}
.wpmfview-grid:before {
content: '\f509';
display: inline-block;
float: left;
font: normal 20px/1 'dashicons';
speak: none;
vertical-align: middle;
margin-left: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html[dir="rtl"] .media-modal .viewwpmf {
float: right;
}
\ No newline at end of file
#wp-link-backdrop {
z-index: 999999 !important;
}
#wp-link-wrap {
z-index: 99999999999 !important;
}
.link-btn {
padding: 2px 3px 3px 3px;
line-height: normal;
float: left;
background: buttonface !important;
border: 0 !important;
border-radius: 0 !important;
}
.link-btn:hover {
background: buttonface !important;
}
.wpmf-zmdi-link {
color: #777;
line-height: 16px;
width: 20px;
height: 16px;
text-align: center;
padding: 0;
margin: 3px 0 0;
font-size: 20px;
transform: rotate(-40deg);
}
.rtl .wpmf-zmdi-link {
transform: none;
}
.media-modal .wpmf-zmdi-link{
line-height: 22px;
height: 22px;
}
\ No newline at end of file
.replace_wrap {
width: 100%;
float: left;
}
.media-modal .compat-field-wpmfbtn_select th{
width: 0 !important;
}
.media-modal .compat-field-wpmfbtn_select td{
width: 96% !important;
}
.replace_wrap .description{
margin: 7px 5px;
}
.media-modal.acf-expanded .replace_wrap{
float: left;
}
.compat-field-wpmfbtn_select:not(.upload-php .compat-field-wpmfbtn_select){
display: none !important;
}
.media-modal .media-uploader-status .upload-errors.wpmferror_replace{
margin: 8px auto 0;
padding: 8px;
border-left : 3px solid #dd823b;
}
.media-modal .media-uploader-status .upload-errors.wpmferror_replace .upload-error{
background: none;
border: 0;
}
.media-modal .upload-errors.wpmferror_replace .upload-dismiss-errors{
color: #dd823b;
}
.media-modal .upload-errors.wpmferror_replace .upload-error-label{
display: none;
}
.media-modal .upload-errors.wpmferror_replace .upload-error-message{
color: #000;
}
#wpmf_upload_input_version,#wpmfreplace{
float: left;
}
.wpmf_img_replace{
max-width:70px;
max-height: 48px;
display: none;
}
#wpmf_form_upload {border-radius: 5px;}
#wpmf_progress { width: 99%; height: 10px; background: rgba( 0, 0, 0, 0.1 ); margin-top: 30px;text-align: center;position: relative;display: none;border-radius : 10px;}
#wpmf_bar { background: #0073aa; height: 10px; width: 0;border-radius : 10px;}
#wpmf_percent { position: absolute; left: 50%; top: 0;display: none;}
#wpmf_result{margin-top: 5px;}
.media-modal #wpmf_form_upload #wpmf_upload_input_version{
padding-left: 0 !important;
}
#wpmf_upload_input_version{
display: none;
}
\ No newline at end of file
.wpmf-defile{
background: #444444 url(../images/download.png)
no-repeat scroll 5px center !important;
color: #ffffff;
border: none;
border-radius: 0;
box-shadow: none;
text-shadow: none;
transition: all 0.2s ease 0s;
float: left;
margin: 7px;
padding: 10px 20px 10px 60px;
text-decoration: none;
}
.wpmf-defile:hover{
background: #888888 url(../images/download.png)
no-repeat scroll 5px center !important;
box-shadow: 1px 1px 12px #ccc !important;
color: #ffffff !important;
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>
This is a custom SVG font generated by IcoMoon.
<iconset grid="14"/>
</metadata>
<defs>
<font id="flexslider-icon" horiz-adv-x="448" >
<font-face units-per-em="448" ascent="384" descent="-64" />
<missing-glyph horiz-adv-x="448" />
<glyph unicode="&#xf001;" d="M 185.50-9.25l-163.00,162.75q-9.25,9.25 -9.25,22.625t 9.25,22.625l 163.00,162.75q 9.25,9.25 22.625,9.25t 22.625-9.25l 18.75-18.75q 9.25-9.25 9.25-22.625t-9.25-22.625l-121.50-121.50l 121.50-121.25q 9.25-9.50 9.25-22.75t-9.25-22.50l-18.75-18.75q-9.25-9.25 -22.625-9.25t-22.625,9.25z" horiz-adv-x="288" />
<glyph unicode="&#xf002;" d="M 274.75,176.00q0.00-13.00 -9.25-22.75l-163.00-162.75q-9.25-9.25 -22.50-9.25t-22.50,9.25l-19.00,18.75q-9.25,9.75 -9.25,22.75q0.00,13.25 9.25,22.50l 121.50,121.50l-121.50,121.25q-9.25,9.75 -9.25,22.75q0.00,13.25 9.25,22.50l 19.00,18.75q 9.00,9.50 22.50,9.50t 22.50-9.50l 163.00-162.75q 9.25-9.25 9.25-22.50z" horiz-adv-x="288" />
<glyph unicode="&#xf003;" d="M 346.00,152.25l-332.00-184.50q-5.75-3.25 -9.875-0.75t-4.125,9.00l0.00,368.00 q0.00,6.50 4.125,9.00t 9.875-0.75l 332.00-184.50q 5.75-3.25 5.75-7.75t-5.75-7.75z" horiz-adv-x="352" />
<glyph unicode="&#xf004;" d="M 384.00,336.00l0.00-352.00 q0.00-6.50 -4.75-11.25t-11.25-4.75l-128.00,0.00 q-6.50,0.00 -11.25,4.75t-4.75,11.25l0.00,352.00 q0.00,6.50 4.75,11.25t 11.25,4.75l 128.00,0.00 q 6.50,0.00 11.25-4.75t 4.75-11.25zM 160.00,336.00l0.00-352.00 q0.00-6.50 -4.75-11.25t-11.25-4.75l-128.00,0.00 q-6.50,0.00 -11.25,4.75t-4.75,11.25l0.00,352.00 q0.00,6.50 4.75,11.25t 11.25,4.75l 128.00,0.00 q 6.50,0.00 11.25-4.75t 4.75-11.25z" horiz-adv-x="384" />
<glyph unicode="&#xf005;" d="M 402.75,208.00q0.00-13.25 -9.25-22.50l-162.75-162.75q-9.50-9.50 -22.75-9.50q-13.50,0.00 -22.50,9.50l-162.75,162.75q-9.50,9.00 -9.50,22.50q0.00,13.25 9.50,22.75l 18.50,18.75q 9.75,9.25 22.75,9.25q 13.25,0.00 22.50-9.25l 121.50-121.50l 121.50,121.50q 9.25,9.25 22.50,9.25q 13.00,0.00 22.75-9.25l 18.75-18.75q 9.25-9.75 9.25-22.75z" horiz-adv-x="416" />
<glyph unicode="&#x20;" horiz-adv-x="224" />
<glyph class="hidden" unicode="&#xf000;" d="M0,384L 448 -64L0 -64 z" horiz-adv-x="0" />
</font></defs></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>Generated by IcoMoon</metadata>
<defs>
<font id="icomoon" horiz-adv-x="1024">
<font-face units-per-em="1024" ascent="960" descent="-64" />
<missing-glyph horiz-adv-x="1024" />
<glyph unicode="&#x20;" d="" horiz-adv-x="512" />
<glyph unicode="&#xe600;" d="M928.484 480.262v-365.792c0-47.746-38.692-86.47-86.468-86.47h-365.76c-47.748 0-86.458 38.724-86.458 86.47v174.998l59.858-41.884v-133.114c0-14.658 11.942-26.598 26.6-26.598h365.76c14.672 0 26.628 11.94 26.628 26.598v365.792c0 14.642-11.958 26.598-26.628 26.598h-70.434c-2.704 5.036-5.45 10.16-8.472 15.44l-3.344 5.878-0.11 0.076-22.18 38.432h104.54c47.776 0 86.468-38.694 86.468-86.424zM256.792 329.346h83.124v59.826h-83.124v-59.826zM256.792 808.142h83.124v59.858h-83.124v-59.858zM574.36 781.56v-31.94h59.84v31.94c0 47.716-38.704 86.44-86.454 86.44h-24.958v-59.858h24.958c14.672 0 26.614-11.926 26.614-26.582zM574.36 616.598h59.84v83.124h-59.84v-83.124zM155.372 415.768v17.912h-59.858v-17.912c0-47.732 38.708-86.422 86.458-86.422h24.956v59.826h-24.956c-14.66 0-26.6 11.924-26.6 26.596zM95.514 781.56v-31.94h59.858v31.94c0 14.658 11.94 26.584 26.6 26.584h24.956v59.856h-24.956c-47.748 0-86.458-38.724-86.458-86.44zM155.372 566.686h-59.858v-83.108h59.858v83.108zM488.424 471.836l16.040-27.78c2.47-4.268 7.89-5.71 12.158-3.238 4.234 2.44 5.71 7.902 3.27 12.138l-21.272 36.79c-7.368 12.786-2.994 29.102 9.76 36.454 12.786 7.368 29.098 2.992 36.482-9.762l21.226-36.806c2.458-4.25 7.89-5.694 12.156-3.238 4.234 2.442 5.742 7.89 3.254 12.142l-0.262 0.458-16.054 27.794c-7.352 12.74-2.992 29.070 9.782 36.452 12.766 7.368 29.082 2.994 36.45-9.76l25.2-43.682c2.442-4.236 7.906-5.694 12.144-3.238 4.266 2.442 5.722 7.888 3.27 12.156l-10.378 17.958c-7.368 12.772-3.008 29.1 9.746 36.468 12.77 7.352 29.118 2.978 36.484-9.762l32.090-55.684c27.95-48.976 40.106-87.038 55.882-134.328 17.804-53.256 8.902-86.162-28.93-107.988l-77.876-44.954c-26.11-15.088-57.25-13.568-81.208 1.274-1.058 0.55-2.106 1.198-3.102 1.888l-181.506 127.066c-14.242 10.006-17.698 29.652-7.72 43.956 2.81 3.974 6.386 7.154 10.376 9.41 10.236 5.724 23.268 5.51 33.55-1.69l55.852-39.090-53.074 91.886c-7.336 12.756-3.024 29.102 9.792 36.466 12.738 7.358 29.068 2.996 36.418-9.756zM669.872 407.942l29.066-85.934c1.492-4.388 6.266-6.738 10.636-5.266 0.554 0.216 1.062 0.414 1.524 0.708 3.402 1.934 5.062 6.094 3.758 9.976l-29.070 85.918c-1.504 4.36-6.262 6.738-10.636 5.25-4.42-1.504-6.768-6.264-5.278-10.652zM616.628 375.282l44.464-77.016c2.332-3.992 7.472-5.388 11.492-3.056 4.008 2.316 5.418 7.446 3.070 11.48l-44.464 77.002c-2.332 4.036-7.472 5.418-11.48 3.102-4.018-2.336-5.414-7.476-3.082-11.512zM563.676 342.82l59.89-68.13c2.668-3.054 7.090-3.684 10.496-1.734 0.46 0.262 0.906 0.616 1.336 0.966 3.5 3.068 3.836 8.35 0.754 11.866l-59.86 68.128c-3.054 3.466-8.364 3.822-11.832 0.784-3.5-3.086-3.838-8.396-0.784-11.88zM155.372 699.722h-59.858v-83.124h59.858v83.124zM472.924 868h-83.126v-59.858h83.126v59.858z" />
</font></defs></svg>
\ No newline at end of file
(function ($) {
"use strict";
if ('undefined' === typeof (wp) || 'undefined' === typeof (wp.media)) {
return;
}
var media = wp.media;
var setTime;
if (typeof media.view.Settings !== "undefined") {
media.view.Settings.Gallery = media.view.Settings.Gallery.extend({
render: function () {
var $el = this.$el;
if (typeof wpmfFoldersModule === "undefined") {
return this;
}
var id_folder = wpmfFoldersModule.last_selected_folder;
media.view.Settings.prototype.render.apply(this, arguments);
$el.find('[data-setting="size"]').parent('label').remove();
$el.find('[data-setting="link"]').parent('label').remove();
$el.find('[data-setting="columns"]').parent('label').remove();
$el.find('[data-setting="_orderbyRandom"]').parent('label').remove();
$el.append(media.template('wpmf-gallery-settings'));
media.gallery.defaults.display = 'default';
media.gallery.defaults.targetsize = 'large';
media.gallery.defaults.wpmf_folder_id = '';
media.gallery.defaults.wpmf_autoinsert = '0';
media.gallery.defaults.wpmf_orderby = 'post__in';
media.gallery.defaults.wpmf_order = 'ASC';
this.update.apply(this, ['link']);
this.update.apply(this, ['columns']);
this.update.apply(this, ['size']);
this.update.apply(this, ['display']);
this.update.apply(this, ['targetsize']);
this.update.apply(this, ['wpmf_folder_id']);
this.update.apply(this, ['wpmf_orderby']);
this.update.apply(this, ['wpmf_order']);
if (typeof id_folder !== "undefined") {
var oldfIds = $el.find('.wpmf_folder_id').val();
var oldfIds_array = oldfIds.split(",").map(Number);
if (oldfIds !== '') {
if (oldfIds_array.indexOf(id_folder) < 0) {
$el.find('.wpmf_folder_id').val(oldfIds + ',' + id_folder).change();
}
} else {
$el.find('.wpmf_folder_id').val(id_folder).change();
}
}
this.update.apply(this, ['wpmf_autoinsert']);
return this;
}
});
}
/* when click Create a gallery from folder button */
var selectallGallery = function () {
$('.media-menu-item:nth-child(2)').click();
var $li_attm = $('li.attachment:not(.wpmf-attachment)');
$li_attm.find('.thumbnail').click();
if ($('.button.media-button.button-primary.button-large.media-button-gallery').attr('disabled') === undefined) {
$('.button.media-button.button-primary.button-large.media-button-gallery').click();
}
if ($li_attm.find('.thumbnail').length === 0) {
setTime = setTimeout(function () {
selectallGallery();
}, 100);
}
};
/* change gallery theme */
$(document).on('change', '.wpmf_display', function () {
var theme = $(this).val();
$('.wpmf_columns').val(wpmf.vars.gallery_configs.theme[theme + '_theme'].columns);
$('.wpmf_size').val(wpmf.vars.gallery_configs.theme[theme + '_theme'].size);
$('.wpmf_targetsize').val(wpmf.vars.gallery_configs.theme[theme + '_theme'].targetsize);
$('.wpmf_link-to').val(wpmf.vars.gallery_configs.theme[theme + '_theme'].link);
$('.wpmf_orderby').val(wpmf.vars.gallery_configs.theme[theme + '_theme'].orderby);
$('.wpmf_order').val(wpmf.vars.gallery_configs.theme[theme + '_theme'].order);
});
/* sort image gallery */
$(document).on('change', '.wpmf_orderby', function () {
$('.media-button-wpmf_reverse_gallery').click();
if ($(this).val() === 'title' || $(this).val() === 'date') {
$(this).closest('.attachments-browser').find('.media-button-reverse').hide();
} else {
$(this).closest('.attachments-browser').find('.media-button-reverse').show();
}
});
/* sort image gallery */
$(document).on('change', '.wpmf_order', function () {
$('.media-button-wpmf_reverse_gallery').click();
});
/* when change category */
$(document).on('change', '.wpmf-categories', function () {
clearTimeout(setTime);
});
/* when click Create a gallery from folder button */
$(document).on('click', 'a.btn-selectall,a.btn-selectall-gallery', function () {
selectallGallery();
});
})(jQuery);
\ No newline at end of file
/*!
* imagesLoaded PACKAGED v3.1.5
* JavaScript is all like "You images are done yet or what?"
* MIT License
*/
(function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,o,s=this.getListenersAsObject(e);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof exports?module.exports=t(e,require("eventEmitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(this,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var r=this;setTimeout(function(){r.check()})}function c(e){this.img=e}function f(e){this.src=e,v[e]=this}var a=e.jQuery,u=e.console,h=u!==void 0,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];if("IMG"===n.nodeName&&this.addImage(n),n.nodeType&&(1===n.nodeType||9===n.nodeType))for(var i=n.querySelectorAll("img"),r=0,o=i.length;o>r;r++){var s=i[r];this.addImage(s)}}},s.prototype.addImage=function(e){var t=new c(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log("confirm",e,r),t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},a&&(a.fn.imagesLoaded=function(e,t){var n=new s(this,e,t);return n.jqDeferred.promise(a(this))}),c.prototype=new t,c.prototype.check=function(){var e=v[this.img.src]||new f(this.img.src);if(e.isConfirmed)return this.confirm(e.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},c.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var v={};return f.prototype=new t,f.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},f.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},f.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},f.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},f.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},f.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s});
let wpmfDuplicateModule;
(function ($) {
if (typeof ajaxurl === "undefined") {
ajaxurl = wpmf.vars.ajaxurl;
}
wpmfDuplicateModule = {
/**
* init event
*/
doEvent: function () {
/* Click duplicate file button */
$('.wpmf_btn_duplicate').unbind('click').bind('click', function () {
$('.wpmf_spinner_duplicate').show().css('visibility', 'visible');
$('.wpmf_message_duplicate').html(null);
var id = $('.attachment-details').data('id');
wpmfDuplicateModule.doDuplicate(id);
});
},
/**
* Duplicate attachment
* @param id
*/
doDuplicate: function (id) {
if (typeof id !== 'undefined') {
$.ajax({
method: 'post',
url: ajaxurl,
dataType: 'json',
data: {
action: 'wpmf_duplicate_file',
id: id,
wpmf_nonce: wpmf.vars.wpmf_nonce
},
success: function (res) {
$('.wpmf_spinner_duplicate').hide();
if (res.status) {
$('.wpmf_message_duplicate').html('<div class="updated">' + res.message + '</div>');
} else {
$('.wpmf_message_duplicate').html('<div class="error">' + res.message + '</div>');
}
/* reset iframe after duplicate */
if (!$('body.upload-php table.media').length && wpmf.vars.wpmf_pagenow !== 'upload.php') {
setTimeout(function () {
wp.Uploader.queue.reset();
}, 1000);
}
wpmfFoldersModule.reloadAttachments();
wpmfFoldersModule.renderFolders();
}
});
}
}
};
$(document).ready(function () {
if ((wpmf.vars.wpmf_pagenow === 'upload.php' && !wpmfFoldersModule.page_type) || typeof wp.media === "undefined") {
return;
}
if (wpmfFoldersModule.page_type !== 'upload-list') {
/* base on /wp-includes/js/media-views.js */
var myduplicateForm = wp.media.view.AttachmentsBrowser;
var form_uplicate = '<a class="wpmf_btn_duplicate">' + wpmf.l18n.duplicate_text + '</a><span class="spinner wpmf_spinner_duplicate"></span><p class="wpmf_message_duplicate"></p>';
if (typeof myduplicateForm !== "undefined") {
wp.media.view.AttachmentsBrowser = wp.media.view.AttachmentsBrowser.extend({
createSingle: function () {
/* Create duplicate button setting */
myduplicateForm.prototype.createSingle.apply(this, arguments);
var sidebar = this.sidebar;
if (wpmf.vars.wpmf_pagenow !== 'upload.php') {
if (typeof wpmf.vars.duplicate !== 'undefined' && parseInt(wpmf.vars.duplicate) === 1) {
$('.wpmf_btn_duplicate, .wpmf_spinner_duplicate, .wpmf_message_duplicate').remove();
$(sidebar.$el).find('.attachment-info .details').append(form_uplicate);
wpmfDuplicateModule.doEvent();
}
}
}
});
}
/* Create duplicate button when wp smush plugin active*/
if (wpmf.vars.get_plugin_active.indexOf('wp-smush.php') !== -1) {
if( 'undefined' !== typeof wp.media.view &&
'undefined' !== typeof wp.media.view.Attachment.Details.TwoColumn ) {
// Local instance of the Attachment Details TwoColumn used in the edit attachment modal view
var wpmfAssignMediaTwoColumn = wp.media.view.Attachment.Details.TwoColumn;
/**
* Add Smush details to attachment.
*/
if (typeof wpmfAssignMediaTwoColumn !== "undefined") {
wp.media.view.Attachment.Details.TwoColumn = wp.media.view.Attachment.Details.TwoColumn.extend({
render: function () {
// Get Smush status for the image
wpmfAssignMediaTwoColumn.prototype.render.apply(this);
$( document ).ajaxComplete(function( event, xhr, settings ) {
var data = settings.data;
if ( data.indexOf('smush_get_attachment_details') !== -1 ) {
$('.wpmf_btn_duplicate, .wpmf_spinner_duplicate, .wpmf_message_duplicate').remove();
$('.details').append(form_uplicate);
wpmfDuplicateModule.doEvent();
}
});
}
});
}
}
}
/* base on /wp-includes/js/media-views.js */
var myDuplicate = wp.media.view.Modal;
if (typeof myDuplicate !== "undefined") {
wp.media.view.Modal = wp.media.view.Modal.extend({
open: function () {
/* Create duplicate button setting */
myDuplicate.prototype.open.apply(this, arguments);
if (wpmf.vars.wpmf_pagenow === 'upload.php') {
if (typeof wpmf.vars.duplicate !== 'undefined' && parseInt(wpmf.vars.duplicate) === 1) {
setTimeout(function(){
$('.wpmf_btn_duplicate, .wpmf_spinner_duplicate, .wpmf_message_duplicate').remove();
$('.attachment-details .details').append(form_uplicate);
wpmfDuplicateModule.doEvent();
},150);
}
}
}
});
}
if (wpmf.vars.wpmf_pagenow === 'upload.php') {
// create duplicate button when next and prev media items
var myEditAttachments = wp.media.view.MediaFrame.EditAttachments;
if (typeof myEditAttachments !== "undefined") {
wp.media.view.MediaFrame.EditAttachments = wp.media.view.MediaFrame.EditAttachments.extend({
previousMediaItem: function () {
/* Create duplicate button setting */
myEditAttachments.prototype.previousMediaItem.apply(this, arguments);
if (typeof wpmf.vars.duplicate !== 'undefined' && parseInt(wpmf.vars.duplicate) === 1) {
$('.wpmf_btn_duplicate, .wpmf_spinner_duplicate, .wpmf_message_duplicate').remove();
$('.attachment-details .details').append(form_uplicate);
wpmfDuplicateModule.doEvent();
}
},
nextMediaItem: function () {
/* Create duplicate button setting */
myEditAttachments.prototype.nextMediaItem.apply(this, arguments);
if (typeof wpmf.vars.duplicate !== 'undefined' && parseInt(wpmf.vars.duplicate) === 1) {
$('.wpmf_btn_duplicate, .wpmf_spinner_duplicate, .wpmf_message_duplicate').remove();
$('.attachment-details .details').append(form_uplicate);
wpmfDuplicateModule.doEvent();
}
}
});
}
}
}
});
}(jQuery));
\ No newline at end of file
/**
* Copyright (c) 2011-2014 Felix Gnass
* Licensed under the MIT license
*/
/*
Basic Usage:
============
$('#el').spin(); // Creates a default Spinner using the text color of #el.
$('#el').spin({ ... }); // Creates a Spinner using the provided options.
$('#el').spin(false); // Stops and removes the spinner.
Using Presets:
==============
$('#el').spin('small'); // Creates a 'small' Spinner using the text color of #el.
$('#el').spin('large', '#fff'); // Creates a 'large' white Spinner.
Adding a custom preset:
=======================
$.fn.spin.presets.flower = {
lines: 9
length: 10
width: 20
radius: 0
}
$('#el').spin('flower', 'red');
*/
(function (factory) {
if (typeof exports == 'object') {
// CommonJS
factory(require('jquery'), require('spin'))
}
else if (typeof define == 'function' && define.amd) {
// AMD, register as anonymous module
define(['jquery', 'spin'], factory)
}
else {
// Browser globals
if (!window.Spinner) throw new Error('Spin.js not present')
factory(window.jQuery, window.Spinner)
}
}(function ($, Spinner) {
$.fn.spin = function (opts, color) {
return this.each(function () {
var $this = $(this),
data = $this.data();
if (data.spinner) {
data.spinner.stop();
delete data.spinner;
}
if (opts !== false) {
opts = $.extend(
{color: color || $this.css('color')},
$.fn.spin.presets[opts] || opts
)
data.spinner = new Spinner(opts).spin(this)
}
})
}
$.fn.spin.presets = {
tiny: {lines: 8, length: 2, width: 2, radius: 3},
small: {lines: 8, length: 4, width: 3, radius: 5},
large: {lines: 10, length: 8, width: 4, radius: 8}
}
}));
/*
WP Gif Player, an easy to use GIF Player for Wordpress
Copyright (C) 2016 David Bedenknecht (http://www.sketchmouse.com/page/contact)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
jQuery(function () {
//gifs HAVE to be preloaded, otherwise nothing happens for ages when user clicks play!
var gifs = []; //Array that will hold all gifs as Images
var gif_urls = [];//array holds all GIF Urls
var player_wrap = jQuery('.gif_wrap');
var showing_btn = jQuery('span.play_gif'); //Play "Button" - purely css
var playing = false;
var first_load = true;
var stop_load = false;
var last_viewed = null; //index of gif that was last played
//first spinner which is shown before the window has fully loaded
var spinnerPreload;
var spinnerLoading;
var spinnerOptions = {
lines: 13,
length: 12,
width: 8,
radius: 18,
trail: 100,
speed: 1.3,
color: '#fff',
className: 'gif_spinner'
};
spinnerPreload = new Spinner(spinnerOptions);
spinnerLoading = new Spinner(spinnerOptions);
//Preloads one gif as an image object
function preload_gif(url, idx) {
if (!gifs[idx]) {//if there not already an image at that idx in gifs, create one
var img = new Image();
img.src = url;
img.className = '_showing';
gifs[idx] = img;
first_load = true;
return img;
} else {
first_load = false;
return gifs[idx];
}
}
//Save all GIF urls
jQuery('._showing.frame').each(function () {
var s = jQuery(this);
if (s.attr('src')) {
if (s.attr('data-lazy-src')) {//unfassbar.es -> lazy load enabled
gif_urls.push(s.attr('data-lazy-src').replace('_still_tmp.jpeg', '.gif'));
} else {
if (typeof s.attr('src') !== 'undefined' && s.attr('src') !== false) {
gif_urls.push(s.attr('src').replace('_still_tmp.jpeg', '.gif'));
} else {
gif_urls.push(s.src.replace('_still_tmp.jpeg', '.gif'));
}
}
} else if (s.data('cfsrc')) { //CloudFlare sets the "src" as 'data-cfsrc="..."'
gif_urls.push(s.data('cfsrc').replace('_still_tmp.jpeg', '.gif'));
}
});
jQuery(document).ready(function () {
//start preloading spinner
spinnerPreload.spin();//start Spinner
if (jQuery('.gif_wrap').length) {
jQuery('.gif_wrap')[0].appendChild(spinnerPreload.el);//only show on first gif (if we wanted to show it on all gifs, we'd have to instantiate a new spinner for each)
}
});
jQuery(window).on('load', function () {
spinnerPreload.stop(); //stop spinner when all images have loaded and play button should be clickable
var showing_btn_idx = "";
var gif_img;
var displayedImgSrc;
var hiddenImgSrc;
//Button is hidden before whole DOM tree is loaded, otherwise it jumps from top to center of .gif_wrap
showing_btn.css('visibility', 'visible'); //show GIF Play Button
function play(idx) {
//Img / GIF sources
displayedImgSrc = jQuery('._showing')[idx].src;
hiddenImgSrc = jQuery('._hidden')[idx].src;
//Index of last played element
last_viewed = idx;
showing_btn_idx = showing_btn[idx]; //specific GIF Button for this clicked element
if (playing == false) { //hide first frame and GIF button
playing = true;
showing_btn_idx.style.visibility = 'hidden';
} else { //display first frame and GIF button
playing = false;
showing_btn_idx.style.visibility = 'visible';
}
if (displayedImgSrc == gifs[idx].src && !first_load) { //if the gif is already showing
displayedImgSrc = hiddenImgSrc;
hiddenImgSrc = gifs[idx].src;
if (playing == false) //if the the gif that was played is clicked again and stops last_view has to be set to null, otherwise two gifs start at the same time
last_viewed = null;
else
last_viewed = idx;
} else if (hiddenImgSrc == gifs[idx].src) { // if still is showing
hiddenImgSrc = displayedImgSrc;
displayedImgSrc = gifs[idx].src;
}
jQuery('._showing')[idx].src = displayedImgSrc;
jQuery('._hidden')[idx].src = hiddenImgSrc;
}
jQuery('.gif_wrap').click(function (event) {
var self = this;
var idx = jQuery('.gif_wrap').index(this); //returns index of clicked div
if (!gifs[idx]) {
first_load = true;
//target is gif_wrap
spinnerLoading.spin();//start Spinner
self.appendChild(spinnerLoading.el);
}
//This is to check if the user clicked again before the gif was fully loaded.
//If so, we need to stop the onload Event for the image by setting first_load to false.
//Preload the gif onclick
if (first_load) {
stop_load = true;
gif_img = preload_gif(gif_urls[idx], idx);
gif_img.onload = function () { //could possibly cause errors (asynch. http://stackoverflow.com/questions/20613984/jquery-or-javascript-check-if-image-loaded)
spinnerLoading.stop();
first_load = false; //set first_load to false, otherwise, if a gif is clicked twice the src of the still is overwritten.
};
//append gif as img src
jQuery(self).children('img').attr('src', gif_img.src);
}
if (!last_viewed && last_viewed != 0) {
last_viewed = idx; //last_viewed != 0 has to be included because !0 is true
}
if (idx == last_viewed) { //the index of the gif_wrap element that's just been clicked is the same as idx of last click
play(idx);
} else { //idx of element that's just been clicked differs from element that's last been clicked
if (playing) {
showing_btn_idx = showing_btn[last_viewed]; //play button of last played gif
showing_btn_idx.style.visibility = 'visible';
if (jQuery('._showing')[last_viewed].src == gifs[last_viewed].src) { //if the gif is already showing
var tmpSrc = jQuery('._showing')[last_viewed].src;
jQuery('._showing')[last_viewed].src = jQuery('._hidden')[last_viewed].src;
jQuery('._hidden')[last_viewed].src = tmpSrc;
}
playing = false;
play(idx);
}
}
});
player_wrap.mouseenter(function () {
player_wrap.css('cursor', 'pointer');
}); //change mouse on enter, when leaving mouse changes on default
});
});
\ No newline at end of file
(function ($) {
if (typeof ajaxurl === "undefined") {
ajaxurl = wpmf.vars.ajaxurl;
}
$(document).ready(function () {
/**
* Import category
* @param doit true or false
* @param button
*/
var importWpmfTaxonomy = function (doit, button) {
jQuery(button).find(".spinner").show().css({"visibility": "visible"});
jQuery.post(
ajaxurl,
{
action: "wpmf",
task: "import",
doit: doit,
wpmf_nonce: wpmf.vars.wpmf_nonce
},
function (response) {
jQuery(button).closest("div#wpmf_error").hide();
if (doit === true) {
jQuery("#wpmf_error").after("<div class='updated'> <p><strong>Categories imported into WP Media Folder. Enjoy!!!</strong></p></div>");
}
});
};
/* Click import button */
$('#wmpfImportBtn').on('click', function () {
var $this = $(this);
importWpmfTaxonomy(true, $this);
});
/* Click no import button */
$('.wmpfNoImportBtn').on('click', function () {
var $this = $(this);
importWpmfTaxonomy(false, $this);
});
});
}(jQuery));
\ No newline at end of file
(function ($) {
if (typeof ajaxurl === "undefined") {
ajaxurl = wpmf.vars.ajaxurl;
}
var current_import_page = 0;
$(document).ready(function () {
/**
* Import order
* @param current_import_page
*/
var wpmfImportOrder = function (current_import_page) {
/* Ajax import */
jQuery.ajax({
type: 'POST',
url: ajaxurl,
data: {
action: "wpmf",
task: 'import_order',
current_import_page: current_import_page,
wpmf_nonce: wpmf.vars.wpmf_nonce
},
success: function (res) {
if (!res.status) {
current_import_page++;
wpmfImportOrder(current_import_page);
}
}
});
};
wpmfImportOrder(current_import_page);
});
}(jQuery));
\ No newline at end of file
(function ($) {
if (typeof ajaxurl === "undefined") {
ajaxurl = wpmf.vars.ajaxurl;
}
$(document).ready(function () {
/**
* Import size and filetype
* @param button
*/
var wpmfimport_meta_size = function (button) {
var $this = jQuery(button);
var wpmf_current_page = $this.data("page");
$this.find(".spinner").show().css({"visibility": "visible"});
/* Ajax import */
jQuery.ajax({
type: 'POST',
url: ajaxurl,
data: {
action: "wpmf_import_size_filetype",
wpmf_current_page: wpmf_current_page,
wpmf_nonce: wpmf.vars.wpmf_nonce
},
success: function (res) {
if (!res.status) {
$this.data("page", parseInt(res.page) + 1);
$this.click();
} else {
$this.closest("div#wpmf_error").hide();
}
}
});
};
/* click import button */
$('#wmpfImportsize').on('click', function () {
wpmfimport_meta_size($(this));
});
});
}(jQuery));
\ No newline at end of file
function showLoading() {
// remove existing loaders
jQuery('.wpmf-loading-container').remove();
jQuery('<div id="orrsLoader" class="wpmf-loading-container"><div><div class="mdl-spinner mdl-js-spinner is-active"></div></div></div>').appendTo("body");
componentHandler.upgradeElements(jQuery('.mdl-spinner').get());
setTimeout(function () {
jQuery('#orrsLoader').css({opacity: 1});
}, 1);
}
function hideLoading() {
jQuery('#orrsLoader').css({opacity: 0});
setTimeout(function () {
jQuery('#orrsLoader').remove();
}, 400);
}
function showDialog(options) {
options = jQuery.extend({
id: 'orrsDiag',
title: null,
text: null,
neutral: false,
negative: false,
positive: false,
cancelable: true,
contentStyle: null,
onLoaded: false,
hideOther: true,
closeicon:false
}, options);
if (options.hideOther) {
// remove existing dialogs
jQuery('.wpmf-dialog-container').remove();
jQuery(document).unbind("keyup.dialog");
}
jQuery('<div id="' + options.id + '" class="wpmf-dialog-container"><div class="mdl-card mdl-shadow--16dp" id="' + options.id + '_content"></div></div>').appendTo("body");
var dialog = jQuery('#' + options.id);
var content = dialog.find('.mdl-card');
if(options.closeicon){
jQuery('<i class="material-icons wpmfclosedlg">clear</i>').appendTo(content);
}
if (options.contentStyle != null) content.css(options.contentStyle);
if (options.title != null) {
jQuery('<h5>' + options.title + '</h5>').appendTo(content);
}
if (options.text != null) {
jQuery('<p>' + options.text + '</p>').appendTo(content);
}
if (options.neutral || options.negative || options.positive) {
var buttonBar = jQuery('<div class="mdl-card__actions dialog-button-bar"></div>');
if (options.neutral) {
options.neutral = jQuery.extend({
id: 'neutral',
title: 'Neutral',
onClick: null
}, options.neutral);
var neuButton = jQuery('<button class="mdl-button mdl-js-button mdl-js-ripple-effect" id="' + options.neutral.id + '">' + options.neutral.title + '</button>');
neuButton.click(function (e) {
e.preventDefault();
if (options.neutral.onClick == null || !options.neutral.onClick(e))
hideDialog(dialog)
});
neuButton.appendTo(buttonBar);
}
if (options.negative) {
options.negative = jQuery.extend({
id: 'negative',
title: 'Cancel',
onClick: null
}, options.negative);
var negButton = jQuery('<button class="mdl-button mdl-js-button mdl-js-ripple-effect" id="' + options.negative.id + '">' + options.negative.title + '</button>');
negButton.click(function (e) {
e.preventDefault();
if (options.negative.onClick == null || !options.negative.onClick(e))
hideDialog(dialog)
});
negButton.appendTo(buttonBar);
}
if (options.positive) {
options.positive = jQuery.extend({
id: 'positive',
title: 'OK',
onClick: null
}, options.positive);
var posButton = jQuery('<button class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" id="' + options.positive.id + '">' + options.positive.title + '</button>');
posButton.click(function (e) {
e.preventDefault();
if (options.positive.onClick == null || !options.positive.onClick(e))
hideDialog(dialog)
});
posButton.appendTo(buttonBar);
}
buttonBar.appendTo(content);
}
componentHandler.upgradeDom();
if (options.cancelable) {
dialog.click(function () {
hideDialog(dialog);
});
jQuery(document).bind("keyup.dialog", function (e) {
if (e.which == 27)
hideDialog(dialog);
});
jQuery('.wpmfclosedlg').click(function () {
hideDialog(dialog);
});
content.click(function (e) {
e.stopPropagation();
});
}
setTimeout(function () {
dialog.css({opacity: 1});
if (options.onLoaded)
options.onLoaded();
}, 1);
}
function hideDialog(dialog) {
jQuery(document).unbind("keyup.dialog");
dialog.css({opacity: 0});
setTimeout(function () {
dialog.remove();
}, 400);
}
\ No newline at end of file
(function ($) {
"use strict";
$(document).ready(function () {
/* open wordpress link dialog */
$(document).on('click', '#link-btn', function () {
if (typeof wpLink !== "undefined") {
wpLink.open('link-btn');
/* Bind to open link editor! */
$('#wp-link-backdrop').show();
$('#wp-link-wrap').show();
$('#url-field, #wp-link-url').closest('div').find('span').html(wpmf.l18n.link_to);
$('#link-title-field').closest('div').hide();
$('.wp-link-text-field').hide();
$('#url-field, #wp-link-url').val($('.compat-field-wpmf_gallery_custom_image_link input.text').val());
if ($('.compat-field-gallery_link_target select').val() === '_blank') {
$('#link-target-checkbox,#wp-link-target').prop('checked', true);
} else {
$('#link-target-checkbox,#wp-link-target').prop('checked', false);
}
}
});
/* Update link for file */
$(document).on('click', '#wp-link-submit', function () {
var attachment_id = $('.attachment-details').data('id');
if (typeof attachment_id === "undefined") {
attachment_id = $('#post_ID').val();
}
var link = $('#url-field').val();
if (typeof link === "undefined") {
link = $('#wp-link-url').val();
} // version 4.2+
var link_target = $('#link-target-checkbox:checked').val();
if (typeof link_target === "undefined") {
link_target = $('#wp-link-target:checked').val();
} // version 4.2+
if (link_target === 'on') {
link_target = '_blank';
} else {
link_target = '';
}
$.ajax({
url: ajaxurl,
method: "POST",
dataType: 'json',
data: {
action: 'wpmf',
task: "update_link",
id: attachment_id,
link: link,
link_target: link_target,
wpmf_nonce: wpmf.vars.wpmf_nonce
},
success: function (response) {
$('.compat-field-wpmf_gallery_custom_image_link input.text').val(response.link);
$('.compat-field-gallery_link_target select option[value="' + response.target + '"]').prop('selected', true).change();
}
});
});
});
})(jQuery);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment