Version Description
Download this release
Release Info
Developer | awsmin |
Plugin | Embed Any Document |
Version | 2.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 2.2.5
- aswm-embed.php +0 -243
- awsm-embed.php +520 -0
- css/embed.css +354 -148
- css/magnific-popup.css +0 -366
- css/settings.css +170 -59
- images/donate.gif +0 -0
- images/ead-small.png +0 -0
- images/eadplus-banner.png +0 -0
- images/icon-box.png +0 -0
- images/icon-drive.png +0 -0
- images/icon-dropbox.png +0 -0
- images/icon-link.png +0 -0
- images/icon-upload.png +0 -0
- images/star.gif +0 -0
- images/ticket.gif +0 -0
- inc/functions.php +0 -296
- inc/mime_types.php +5 -2
- inc/popup.php +69 -58
- inc/settings.php +36 -155
- inc/support-mail.php +0 -43
- js/embed.js +275 -155
- js/magnific-popup.js +0 -4
- language/ead-en_US.mo +0 -0
- language/ead-en_US.po +0 -185
- language/ead.pot +0 -209
- language/embed-any-document.pot +198 -0
- language/en_US.mo +0 -0
- language/en_US.po +0 -209
- readme.txt +81 -7
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
aswm-embed.php
DELETED
@@ -1,243 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Embed Any Document
|
4 |
-
Plugin URI: http://awsm.in/embed-any-documents
|
5 |
-
Description: Embed Any Document WordPress plugin lets you upload and embed your documents easily in your WordPress website without any additional browser plugins like Flash or Acrobat reader. The plugin lets you choose between Google Docs Viewer and Microsoft Office Online to display your documents.
|
6 |
-
Version: 1.1
|
7 |
-
Author: Awsm Innovations
|
8 |
-
Author URI: http://awsm.in
|
9 |
-
License: GPL V3
|
10 |
-
*/
|
11 |
-
require_once( dirname( __FILE__ ) . '/inc/functions.php');
|
12 |
-
class Awsm_embed {
|
13 |
-
private static $instance = null;
|
14 |
-
private $plugin_path;
|
15 |
-
private $plugin_url;
|
16 |
-
private $plugin_base;
|
17 |
-
private $plugin_file;
|
18 |
-
private $plugin_version;
|
19 |
-
private $settings_slug;
|
20 |
-
private $text_domain = 'ead';
|
21 |
-
/**
|
22 |
-
* Creates or returns an instance of this class.
|
23 |
-
*/
|
24 |
-
public static function get_instance() {
|
25 |
-
// If an instance hasn't been created and set to $instance create an instance and set it to $instance.
|
26 |
-
if ( null == self::$instance ) {
|
27 |
-
self::$instance = new self;
|
28 |
-
}
|
29 |
-
return self::$instance;
|
30 |
-
}
|
31 |
-
|
32 |
-
/**
|
33 |
-
* Initializes the plugin by setting localization, hooks, filters, and administrative functions.
|
34 |
-
*/
|
35 |
-
private function __construct() {
|
36 |
-
|
37 |
-
$this->plugin_path = plugin_dir_path( __FILE__ );
|
38 |
-
$this->plugin_url = plugin_dir_url( __FILE__ );
|
39 |
-
$this->plugin_base = dirname( plugin_basename( __FILE__ ) );
|
40 |
-
$this->plugin_file = __FILE__ ;
|
41 |
-
$this->settings_slug = 'ead-settings';
|
42 |
-
$this->plugin_version = '1.0.2';
|
43 |
-
|
44 |
-
load_plugin_textdomain($this->text_domain, false,$this->plugin_base . '/language' );
|
45 |
-
|
46 |
-
add_action( 'media_buttons', array( $this, 'embedbutton' ),1000);
|
47 |
-
|
48 |
-
add_shortcode( 'embeddoc', array( $this, 'embed_shortcode'));
|
49 |
-
|
50 |
-
//Admin Settings menu
|
51 |
-
add_action('admin_menu', array($this, 'admin_menu'));
|
52 |
-
add_action( 'admin_init', array($this, 'register_eadsettings'));
|
53 |
-
//Add easy settings link
|
54 |
-
add_filter( "plugin_action_links_" . plugin_basename( __FILE__ ),array($this, 'settingslink'));
|
55 |
-
//ajax validate file url
|
56 |
-
add_action( 'wp_ajax_validateurl',array( $this, 'validateurl' ));
|
57 |
-
//ajax Contact Form
|
58 |
-
add_action( 'wp_ajax_supportform',array( $this, 'supportform' ));
|
59 |
-
//default options
|
60 |
-
register_activation_hook($this->plugin_file, array( $this, 'ead_defaults' ));
|
61 |
-
$this->run_plugin();
|
62 |
-
}
|
63 |
-
/**
|
64 |
-
* Register admin Settings style
|
65 |
-
*/
|
66 |
-
function setting_styles(){
|
67 |
-
wp_register_style( 'embed-settings', plugins_url( 'css/settings.css', $this->plugin_file ), false,$this->plugin_version, 'all' );
|
68 |
-
wp_enqueue_style('embed-settings');
|
69 |
-
}
|
70 |
-
/**
|
71 |
-
* Embed any Docs Button
|
72 |
-
*/
|
73 |
-
public function embedbutton( $args = array() ) {
|
74 |
-
// Check user previlage
|
75 |
-
if ( !current_user_can( 'edit_posts' )) return;
|
76 |
-
// Prepares button target
|
77 |
-
$target = is_string( $args ) ? $args : 'content';
|
78 |
-
// Prepare args
|
79 |
-
$args = wp_parse_args( $args, array(
|
80 |
-
'target' => $target,
|
81 |
-
'text' => __( 'Add Document', $this->text_domain),
|
82 |
-
'class' => 'awsm-embed button',
|
83 |
-
'icon' => plugins_url( 'images/ead-small.png', __FILE__ ),
|
84 |
-
'echo' => true,
|
85 |
-
'shortcode' => false
|
86 |
-
) );
|
87 |
-
// Prepare EAD icon
|
88 |
-
if ( $args['icon'] ) $args['icon'] = '<img src="' . $args['icon'] . '" /> ';
|
89 |
-
// Print button in media column
|
90 |
-
$button = '<a href="javascript:void(0);" class="' . $args['class'] . '" title="' . $args['text'] . '" data-mfp-src="#embed-popup-wrap" data-target="' . $args['target'] . '" >' . $args['icon'] . $args['text'] . '</a>';
|
91 |
-
// Show generator popup
|
92 |
-
//add_action( 'wp_footer', array( $this, 'embedpopup' ) );
|
93 |
-
add_action( 'admin_footer', array($this, 'embedpopup' ) );
|
94 |
-
// Request assets
|
95 |
-
wp_enqueue_media();
|
96 |
-
//Loads Support css and js
|
97 |
-
$this->embed_helper();
|
98 |
-
// Print/return result
|
99 |
-
if ( $args['echo'] ) echo $button;
|
100 |
-
return $button;
|
101 |
-
}
|
102 |
-
/**
|
103 |
-
* Admin Easy access settings link
|
104 |
-
*/
|
105 |
-
function settingslink( $links ) {
|
106 |
-
$settings_link = '<a href="options-general.php?page='.$this->settings_slug.'">' . __('Settings', $this->text_domain) . '</a>';
|
107 |
-
array_unshift( $links, $settings_link );
|
108 |
-
return $links;
|
109 |
-
}
|
110 |
-
/**
|
111 |
-
* Embed Form popup
|
112 |
-
*/
|
113 |
-
function embedpopup(){
|
114 |
-
include($this->plugin_path.'inc/popup.php');
|
115 |
-
}
|
116 |
-
/**
|
117 |
-
* Register admin scripts
|
118 |
-
*/
|
119 |
-
function embed_helper(){
|
120 |
-
wp_register_style( 'magnific-popup', plugins_url( 'css/magnific-popup.css', $this->plugin_file ), false, '0.9.9', 'all' );
|
121 |
-
wp_register_style( 'embed-css', plugins_url( 'css/embed.css', $this->plugin_file ), false, $this->plugin_version, 'all' );
|
122 |
-
wp_register_script( 'magnific-popup', plugins_url( 'js/magnific-popup.js', $this->plugin_file ), array( 'jquery' ), '0.9.9', true );
|
123 |
-
wp_register_script( 'embed', plugins_url( 'js/embed.js', $this->plugin_file ), array( 'jquery' ),$this->plugin_version, true );
|
124 |
-
wp_localize_script('embed','emebeder', array(
|
125 |
-
'default_height' => get_option('ead_height', '500px' ),
|
126 |
-
'default_width' => get_option('ead_width', '100%' ),
|
127 |
-
'download' => get_option('ead_download', 'none' ),
|
128 |
-
'provider' => get_option('ead_provider', 'google' ),
|
129 |
-
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
130 |
-
'validtypes' => ead_validembedtypes(),
|
131 |
-
'nocontent' => __('Nothing to insert', $this->text_domain),
|
132 |
-
'addurl' => __('Add URL', $this->text_domain),
|
133 |
-
'verify' => __('Verifying...', $this->text_domain),
|
134 |
-
) );
|
135 |
-
wp_enqueue_style('magnific-popup');
|
136 |
-
wp_enqueue_script( 'magnific-popup' );
|
137 |
-
wp_enqueue_style('embed-css');
|
138 |
-
wp_enqueue_script( 'embed' );
|
139 |
-
}
|
140 |
-
/**
|
141 |
-
* Shortcode Functionality
|
142 |
-
*/
|
143 |
-
function embed_shortcode( $atts){
|
144 |
-
$embedcode = "";
|
145 |
-
$embedcode = ead_getprovider($atts);
|
146 |
-
return $embedcode;
|
147 |
-
}
|
148 |
-
|
149 |
-
/**
|
150 |
-
* Admin menu setup
|
151 |
-
*/
|
152 |
-
public function admin_menu() {
|
153 |
-
$eadsettings = add_options_page('Embed Any Document', 'Embed Any Document', 'manage_options',$this->settings_slug, array($this, 'settings_page'));
|
154 |
-
add_action( 'admin_print_styles-' . $eadsettings, array($this,'setting_styles'));
|
155 |
-
}
|
156 |
-
public function settings_page() {
|
157 |
-
if (!current_user_can('manage_options')) {
|
158 |
-
wp_die(__('You do not have sufficient permissions to access this page.'));
|
159 |
-
}
|
160 |
-
include($this->plugin_path.'inc/settings.php');
|
161 |
-
}
|
162 |
-
/**
|
163 |
-
* Register Settings
|
164 |
-
*/
|
165 |
-
function register_eadsettings() {
|
166 |
-
register_setting( 'ead-settings-group', 'ead_width' ,'ead_sanitize_dims');
|
167 |
-
register_setting( 'ead-settings-group', 'ead_height','ead_sanitize_dims' );
|
168 |
-
register_setting( 'ead-settings-group', 'ead_provider','ead_sanitize_provider' );
|
169 |
-
register_setting( 'ead-settings-group', 'ead_download' );
|
170 |
-
register_setting( 'ead-settings-group', 'ead_mediainsert' );
|
171 |
-
}
|
172 |
-
/**
|
173 |
-
* Ajax validate file url
|
174 |
-
*/
|
175 |
-
function validateurl(){
|
176 |
-
$fileurl = $_POST['furl'];
|
177 |
-
echo json_encode(ead_validateurl($fileurl));
|
178 |
-
die(0);
|
179 |
-
}
|
180 |
-
/**
|
181 |
-
* Ajax Contact Form
|
182 |
-
*/
|
183 |
-
function supportform(){
|
184 |
-
if (!current_user_can('manage_options')) {
|
185 |
-
wp_die(__('You do not have sufficient permissions to access this page.'));
|
186 |
-
}
|
187 |
-
include($this->plugin_path.'inc/support-mail.php');
|
188 |
-
}
|
189 |
-
/**
|
190 |
-
* Plugin function
|
191 |
-
*/
|
192 |
-
function run_plugin(){
|
193 |
-
$this->adminfunctions();
|
194 |
-
}
|
195 |
-
/**
|
196 |
-
* Admin Functions init
|
197 |
-
*/
|
198 |
-
function adminfunctions(){
|
199 |
-
if(is_admin()){
|
200 |
-
add_filter('media_send_to_editor', array($this,'ead_media_insert'), 10, 3 );
|
201 |
-
add_filter('upload_mimes', array($this,'additional_mimes'));
|
202 |
-
}
|
203 |
-
}
|
204 |
-
/**
|
205 |
-
* Adds shortcode for supported media
|
206 |
-
*/
|
207 |
-
function ead_media_insert( $html, $id, $attachment ) {
|
208 |
-
if(get_option( 'ead_mediainsert', 1 ))
|
209 |
-
if ( ead_validType( $attachment['url'] )) {
|
210 |
-
return '[embeddoc url="' . $attachment['url'] . '"]';
|
211 |
-
}
|
212 |
-
return $html;
|
213 |
-
}
|
214 |
-
/**
|
215 |
-
* Adds additional mimetype for meadi uploader
|
216 |
-
*/
|
217 |
-
function additional_mimes($mimes){
|
218 |
-
return array_merge($mimes,array (
|
219 |
-
'svg' => 'image/svg+xml',
|
220 |
-
'ai' => 'application/postscript',
|
221 |
-
));
|
222 |
-
}
|
223 |
-
/**
|
224 |
-
* To initialize default options
|
225 |
-
*/
|
226 |
-
function ead_defaults()
|
227 |
-
{
|
228 |
-
$o = array(
|
229 |
-
'ead_width' => '100%',
|
230 |
-
'ead_height' => '500px',
|
231 |
-
'ead_download' => 'none',
|
232 |
-
'ead_provider' => 'google',
|
233 |
-
'ead_mediainsert' => '1',
|
234 |
-
);
|
235 |
-
foreach ( $o as $k => $v )
|
236 |
-
{
|
237 |
-
if(!get_option($k)) update_option($k, $v);
|
238 |
-
}
|
239 |
-
return;
|
240 |
-
}
|
241 |
-
}
|
242 |
-
|
243 |
-
Awsm_embed::get_instance();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
awsm-embed.php
ADDED
@@ -0,0 +1,520 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Embed Any Document
|
4 |
+
Plugin URI: http://awsm.in/embed-any-documents
|
5 |
+
Description: Embed Any Document WordPress plugin lets you upload and embed your documents easily in your WordPress website without any additional browser plugins like Flash or Acrobat reader. The plugin lets you choose between Google Docs Viewer and Microsoft Office Online to display your documents.
|
6 |
+
Version: 2.2.5
|
7 |
+
Author: Awsm Innovations
|
8 |
+
Author URI: http://awsm.in
|
9 |
+
License: GPL V3
|
10 |
+
Text Domain: embed-any-document
|
11 |
+
Domain Path: /language
|
12 |
+
*/
|
13 |
+
|
14 |
+
if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
15 |
+
|
16 |
+
class Awsm_embed {
|
17 |
+
private static $instance = null;
|
18 |
+
private $plugin_path;
|
19 |
+
private $plugin_url;
|
20 |
+
private $plugin_base;
|
21 |
+
private $plugin_file;
|
22 |
+
private $plugin_version;
|
23 |
+
private $settings_slug;
|
24 |
+
private $text_domain = 'embed-any-document';
|
25 |
+
/**
|
26 |
+
* Creates or returns an instance of this class.
|
27 |
+
*/
|
28 |
+
public static function get_instance() {
|
29 |
+
// If an instance hasn't been created and set to $instance create an instance and set it to $instance.
|
30 |
+
if ( null == self::$instance ) {
|
31 |
+
self::$instance = new self;
|
32 |
+
}
|
33 |
+
return self::$instance;
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Initializes the plugin by setting localization, hooks, filters, and administrative functions.
|
38 |
+
*/
|
39 |
+
private function __construct() {
|
40 |
+
|
41 |
+
$this->plugin_path = plugin_dir_path( __FILE__ );
|
42 |
+
$this->plugin_url = plugin_dir_url( __FILE__ );
|
43 |
+
$this->plugin_base = dirname( plugin_basename( __FILE__ ) );
|
44 |
+
$this->plugin_file = __FILE__ ;
|
45 |
+
$this->settings_slug = 'ead-settings';
|
46 |
+
$this->plugin_version = '2.2.5';
|
47 |
+
|
48 |
+
add_action( 'media_buttons', array( $this, 'embedbutton' ),1000);
|
49 |
+
|
50 |
+
add_shortcode( 'embeddoc', array( $this, 'embed_shortcode' ));
|
51 |
+
|
52 |
+
//Admin Settings menu
|
53 |
+
add_action( 'admin_menu', array( $this, 'admin_menu' ));
|
54 |
+
add_action( 'admin_init', array( $this, 'register_eadsettings' ));
|
55 |
+
//Add easy settings link
|
56 |
+
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ),array( $this, 'settingslink' ));
|
57 |
+
//ajax Contact Form
|
58 |
+
add_action( 'wp_ajax_supportform',array( $this, 'supportform' ));
|
59 |
+
//default options
|
60 |
+
register_activation_hook($this->plugin_file, array( $this, 'defaults' ));
|
61 |
+
//Load plugin textdomain.
|
62 |
+
add_action( 'plugins_loaded',array( $this, 'load_textdomain' ) );
|
63 |
+
|
64 |
+
$this->run_plugin();
|
65 |
+
}
|
66 |
+
/**
|
67 |
+
* Register admin Settings style
|
68 |
+
*/
|
69 |
+
function setting_styles(){
|
70 |
+
wp_register_style( 'embed-settings', plugins_url( 'css/settings.css', $this->plugin_file ), false, $this->plugin_version, 'all' );
|
71 |
+
wp_enqueue_style('embed-settings');
|
72 |
+
}
|
73 |
+
/**
|
74 |
+
* Load plugin textdomain.
|
75 |
+
*
|
76 |
+
* @since 2.2.3
|
77 |
+
*/
|
78 |
+
function load_textdomain() {
|
79 |
+
load_plugin_textdomain( $this->text_domain, false, $this->plugin_base. '/language/' );
|
80 |
+
}
|
81 |
+
/**
|
82 |
+
* Embed any Docs Button
|
83 |
+
*/
|
84 |
+
public function embedbutton( $args = array() ) {
|
85 |
+
// Check user previlage
|
86 |
+
if ( !current_user_can( 'edit_posts' )) return;
|
87 |
+
// Prepares button target
|
88 |
+
$target = is_string( $args ) ? $args : 'content';
|
89 |
+
// Prepare args
|
90 |
+
$args = wp_parse_args( $args, array(
|
91 |
+
'target' => $target,
|
92 |
+
'text' => __( 'Add Document', $this->text_domain),
|
93 |
+
'class' => 'awsm-embed button',
|
94 |
+
'icon' => plugins_url( 'images/ead-small.png', __FILE__ ),
|
95 |
+
'echo' => true,
|
96 |
+
'shortcode' => false
|
97 |
+
) );
|
98 |
+
// Prepare EAD icon
|
99 |
+
if ( $args['icon'] ) $args['icon'] = '<img src="' . $args['icon'] . '" /> ';
|
100 |
+
// Print button in media column
|
101 |
+
$button = '<a href="javascript:void(0);" class="' . $args['class'] . '" title="' . $args['text'] . '" data-mfp-src="#embed-popup-wrap" data-target="' . $args['target'] . '" >' . $args['icon'] . $args['text'] . '</a>';
|
102 |
+
// Show generator popup
|
103 |
+
add_action( 'admin_footer', array($this, 'embedpopup' ) );
|
104 |
+
// Request assets
|
105 |
+
wp_enqueue_media();
|
106 |
+
//Loads Support css and js
|
107 |
+
$this->embed_helper();
|
108 |
+
// Print/return result
|
109 |
+
if ( $args['echo'] ) echo $button;
|
110 |
+
return $button;
|
111 |
+
}
|
112 |
+
/**
|
113 |
+
* Admin Easy access settings link
|
114 |
+
*/
|
115 |
+
function settingslink( $links ) {
|
116 |
+
$settings_link = '<a href="options-general.php?page='.$this->settings_slug.'">' . __('Settings', $this->text_domain) . '</a>';
|
117 |
+
array_unshift( $links, $settings_link );
|
118 |
+
return $links;
|
119 |
+
}
|
120 |
+
/**
|
121 |
+
* Embed Form popup
|
122 |
+
*/
|
123 |
+
function embedpopup(){
|
124 |
+
add_thickbox();
|
125 |
+
include( $this->plugin_path.'inc/popup.php' );
|
126 |
+
}
|
127 |
+
/**
|
128 |
+
* Register admin scripts
|
129 |
+
*/
|
130 |
+
function embed_helper(){
|
131 |
+
wp_register_style( 'embed-css', plugins_url( 'css/embed.css', $this->plugin_file ), false, $this->plugin_version, 'all' );
|
132 |
+
wp_register_script( 'embed', plugins_url( 'js/embed.js', $this->plugin_file ), array( 'jquery' ), $this->plugin_version, true );
|
133 |
+
wp_localize_script('embed','emebeder', array(
|
134 |
+
'height' => get_option('ead_height', '100%'),
|
135 |
+
'width' => get_option('ead_width', '100%'),
|
136 |
+
'download' => get_option('ead_download', 'none'),
|
137 |
+
'text' => get_option('ead_text', __('Download',$this->text_domain)),
|
138 |
+
'provider' => get_option('ead_provider', 'google'),
|
139 |
+
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
140 |
+
'validtypes' => $this->validembedtypes(),
|
141 |
+
'msextension' => $this->validextensions('ms'),
|
142 |
+
'drextension' => $this->validextensions('all'),
|
143 |
+
'nocontent' => __('Nothing to insert', $this->text_domain),
|
144 |
+
'invalidurl' => __('Invalid URL', $this->text_domain),
|
145 |
+
'addurl' => __('Add URL', $this->text_domain),
|
146 |
+
'verify' => __('Verifying...', $this->text_domain),
|
147 |
+
'from_url' => __('From URL', $this->text_domain),
|
148 |
+
'select_button' => __('Select', $this->text_domain),
|
149 |
+
|
150 |
+
) );
|
151 |
+
wp_enqueue_style('embed-css');
|
152 |
+
wp_enqueue_script( 'embed' );
|
153 |
+
}
|
154 |
+
/**
|
155 |
+
* Shortcode Functionality
|
156 |
+
*/
|
157 |
+
function embed_shortcode($atts) {
|
158 |
+
$embed = "";
|
159 |
+
$durl = "";
|
160 |
+
$default_width = $this->sanitize_dims(get_option('ead_width', '100%'));
|
161 |
+
$default_height = $this->sanitize_dims(get_option('ead_height', '100%'));
|
162 |
+
$default_provider = get_option('ead_provider', 'google');
|
163 |
+
$default_download = get_option('ead_download', 'none');
|
164 |
+
$default_text = get_option('ead_text', __('Download',$this->text_domain));
|
165 |
+
$show = false;
|
166 |
+
extract(shortcode_atts(array('url' => '',
|
167 |
+
'drive' => '',
|
168 |
+
'width' => $default_width,
|
169 |
+
'height' => $default_height,
|
170 |
+
'language' => 'en',
|
171 |
+
'text' => __($default_text,$this->text_domain),
|
172 |
+
'viewer' => $default_provider,
|
173 |
+
'download' => $default_download), $atts));
|
174 |
+
if(isset($atts['provider']))
|
175 |
+
$viewer = $atts['provider'];
|
176 |
+
if(!isset($atts['provider']) AND !isset($atts['viewer']))
|
177 |
+
$viewer = 'google';
|
178 |
+
if ($url):
|
179 |
+
$filedata = wp_remote_head($url);
|
180 |
+
$durl = '';
|
181 |
+
$privatefile = '';
|
182 |
+
if ($this->allowdownload($viewer)) if ($download == 'alluser' or $download == 'all') {
|
183 |
+
$show = true;
|
184 |
+
} elseif ($download == 'logged' AND is_user_logged_in()) {
|
185 |
+
$show = true;
|
186 |
+
}
|
187 |
+
if ($show) {
|
188 |
+
$filesize = 0;
|
189 |
+
$url = esc_url($url, array('http', 'https'));
|
190 |
+
if (!is_wp_error($filedata) && isset($filedata['headers']['content-length'])) {
|
191 |
+
$filesize = $this->human_filesize($filedata['headers']['content-length']);
|
192 |
+
} else {
|
193 |
+
$filesize = 0;
|
194 |
+
}
|
195 |
+
$fileHtml = '';
|
196 |
+
if ($filesize) $fileHtml = ' [' . $filesize . ']';
|
197 |
+
$durl = '<p class="embed_download"><a href="' . $url . '" download >' . __($text, $this->text_domain) . $fileHtml . ' </a></p>';
|
198 |
+
}
|
199 |
+
|
200 |
+
$url = esc_url($url, array('http', 'https'));
|
201 |
+
$providerList = array('google', 'microsoft');
|
202 |
+
if (!in_array($viewer, $providerList)) $viewer = 'google';
|
203 |
+
switch ($viewer) {
|
204 |
+
case 'google':
|
205 |
+
$embedsrc = '//docs.google.com/viewer?url=%1$s&embedded=true&hl=%2$s';
|
206 |
+
$iframe = sprintf($embedsrc, urlencode($url), esc_attr($language));
|
207 |
+
break;
|
208 |
+
|
209 |
+
case 'microsoft':
|
210 |
+
$embedsrc = '//view.officeapps.live.com/op/embed.aspx?src=%1$s';
|
211 |
+
$iframe = sprintf($embedsrc, urlencode($url));
|
212 |
+
break;
|
213 |
+
}
|
214 |
+
$min_height = '';
|
215 |
+
if($this->in_percentage($height)){
|
216 |
+
$min_height = 'min-height:500px;';
|
217 |
+
}
|
218 |
+
if($this->check_responsive($height) AND $this->check_responsive($width)){
|
219 |
+
$iframe_style = 'style="width:100%; height:100%; border: none; position: absolute;left:0;top:0;"';
|
220 |
+
$doc_style = 'style="position:relative;padding-top:90%;"';
|
221 |
+
}else{
|
222 |
+
$iframe_style = sprintf('style="width:%s; height:%s; border: none;'.$min_height.'"',esc_html($width),esc_html($height));
|
223 |
+
$doc_style = 'style="position:relative;"';
|
224 |
+
}
|
225 |
+
|
226 |
+
$iframe = '<iframe src="' . $iframe . '" ' . $iframe_style . '></iframe>';
|
227 |
+
$show = false;
|
228 |
+
$embed = '<div class="ead-preview"><div class="ead-document" '. $doc_style.'>' . $iframe . $privatefile . '</div>'.$durl.'</div>';
|
229 |
+
else:
|
230 |
+
$embed = __('No Url Found', $this->text_domain);
|
231 |
+
endif;
|
232 |
+
return $embed;
|
233 |
+
}
|
234 |
+
|
235 |
+
/**
|
236 |
+
* Admin menu setup
|
237 |
+
*/
|
238 |
+
public function admin_menu() {
|
239 |
+
$eadsettings = add_options_page('Embed Any Document', 'Embed Any Document', 'manage_options',$this->settings_slug, array($this, 'settings_page'));
|
240 |
+
add_action( 'admin_print_styles-' . $eadsettings, array( $this,'setting_styles'));
|
241 |
+
}
|
242 |
+
public function settings_page() {
|
243 |
+
if (!current_user_can('manage_options')) {
|
244 |
+
wp_die(__('You do not have sufficient permissions to access this page.'));
|
245 |
+
}
|
246 |
+
include($this->plugin_path.'inc/settings.php');
|
247 |
+
}
|
248 |
+
/**
|
249 |
+
* Register Settings
|
250 |
+
*/
|
251 |
+
function register_eadsettings() {
|
252 |
+
register_setting( 'ead-settings-group', 'ead_width' ,array( $this, 'sanitize_dims' ));
|
253 |
+
register_setting( 'ead-settings-group', 'ead_height',array( $this, 'sanitize_dims' ));
|
254 |
+
register_setting( 'ead-settings-group', 'ead_provider' );
|
255 |
+
register_setting( 'ead-settings-group', 'ead_download' );
|
256 |
+
register_setting( 'ead-settings-group', 'ead_text' );
|
257 |
+
register_setting( 'ead-settings-group', 'ead_mediainsert' );
|
258 |
+
}
|
259 |
+
|
260 |
+
/**
|
261 |
+
* Plugin function
|
262 |
+
*/
|
263 |
+
function run_plugin(){
|
264 |
+
$this->adminfunctions();
|
265 |
+
}
|
266 |
+
/**
|
267 |
+
* Admin Functions init
|
268 |
+
*/
|
269 |
+
function adminfunctions(){
|
270 |
+
if(is_admin()){
|
271 |
+
add_filter('upload_mimes', array($this,'additional_mimes'));
|
272 |
+
}
|
273 |
+
}
|
274 |
+
/**
|
275 |
+
* Adds additional mimetype for meadi uploader
|
276 |
+
*/
|
277 |
+
function additional_mimes($mimes){
|
278 |
+
return array_merge($mimes,array (
|
279 |
+
'svg' => 'image/svg+xml',
|
280 |
+
'ai' => 'application/postscript',
|
281 |
+
));
|
282 |
+
}
|
283 |
+
/**
|
284 |
+
* To get Overlay link
|
285 |
+
*/
|
286 |
+
function providerlink( $provider) {
|
287 |
+
$link = 'http://goo.gl/wJTQlc';
|
288 |
+
$id = "";
|
289 |
+
$configure = '<span class="overlay"><strong>' . __('Buy Pro Version', $this->text_domain) . '</strong><i></i></span>';
|
290 |
+
$target = 'target="_blank"';
|
291 |
+
echo '<a href="' . $link . '" id="' . $id . '" ' . $target . '><span><img src="' . $this->plugin_url . 'images/icon-' . strtolower($provider) . '.png" alt="'.sprintf( esc_html__( 'Add From %1$s', $this->text_domain ), $provider). '" />' . sprintf( esc_html__( 'Add From %1$s', $this->text_domain ), $provider) . $configure . '</span></a>';
|
292 |
+
}
|
293 |
+
/**
|
294 |
+
* To initialize default options
|
295 |
+
*/
|
296 |
+
function defaults()
|
297 |
+
{
|
298 |
+
$o = array(
|
299 |
+
'ead_width' => '100%',
|
300 |
+
'ead_height' => '100%',
|
301 |
+
'ead_download' => 'none',
|
302 |
+
'ead_provider' => 'google',
|
303 |
+
'ead_mediainsert' => '1',
|
304 |
+
);
|
305 |
+
foreach ( $o as $k => $v )
|
306 |
+
{
|
307 |
+
if(!get_option($k)) update_option($k, $v);
|
308 |
+
}
|
309 |
+
return;
|
310 |
+
}
|
311 |
+
//Functions
|
312 |
+
|
313 |
+
/**
|
314 |
+
* Dropdown Builder
|
315 |
+
*
|
316 |
+
* @since 1.0
|
317 |
+
* @return String select html
|
318 |
+
*/
|
319 |
+
function selectbuilder($name, $options, $selected = "", $class = "") {
|
320 |
+
if (is_array($options)):
|
321 |
+
echo "<select name=\"$name\" id=\"$name\" class=\"$class\">";
|
322 |
+
foreach ($options as $key => $option) {
|
323 |
+
echo "<option value=\"$key\"";
|
324 |
+
if (!empty($helptext)) {
|
325 |
+
echo " title=\"$helptext\"";
|
326 |
+
}
|
327 |
+
if ($key == $selected) {
|
328 |
+
echo ' selected="selected"';
|
329 |
+
}
|
330 |
+
echo ">$option</option>\n";
|
331 |
+
}
|
332 |
+
echo '</select>';
|
333 |
+
else:
|
334 |
+
endif;
|
335 |
+
}
|
336 |
+
|
337 |
+
/**
|
338 |
+
* Human Readable filesize
|
339 |
+
*
|
340 |
+
* @since 1.0
|
341 |
+
* @return Human readable file size
|
342 |
+
* @note Replaces old gde_sanitizeOpts function
|
343 |
+
*/
|
344 |
+
function human_filesize($bytes, $decimals = 2) {
|
345 |
+
$size = array('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');
|
346 |
+
$factor = floor((strlen($bytes) - 1) / 3);
|
347 |
+
return sprintf("%.{$decimals}f ", $bytes / pow(1024, $factor)) . @$size[$factor];
|
348 |
+
}
|
349 |
+
|
350 |
+
/**
|
351 |
+
* Sanitize dimensions (width, height)
|
352 |
+
*
|
353 |
+
* @since 1.0
|
354 |
+
* @return string Sanitized dimensions, or false if value is invalid
|
355 |
+
* @note Replaces old gde_sanitizeOpts function
|
356 |
+
*/
|
357 |
+
function sanitize_dims($dim) {
|
358 |
+
|
359 |
+
// remove any spacing junk
|
360 |
+
$dim = trim(str_replace(" ", "", $dim));
|
361 |
+
if(!$dim) $dim = '100%';
|
362 |
+
if (!strstr($dim, '%')) {
|
363 |
+
$type = "px";
|
364 |
+
$dim = preg_replace("/[^0-9]*/", '', $dim);
|
365 |
+
} else {
|
366 |
+
$type = "%";
|
367 |
+
$dim = preg_replace("/[^0-9]*/", '', $dim);
|
368 |
+
if ((int)$dim > 100) {
|
369 |
+
$dim = "100";
|
370 |
+
}
|
371 |
+
}
|
372 |
+
|
373 |
+
if ($dim) {
|
374 |
+
return $dim . $type;
|
375 |
+
} else {
|
376 |
+
return false;
|
377 |
+
}
|
378 |
+
}
|
379 |
+
/**
|
380 |
+
* Check value in percentage
|
381 |
+
*
|
382 |
+
* @since 2.2.3
|
383 |
+
* @return Int Dimenesion
|
384 |
+
*/
|
385 |
+
function in_percentage($dim){
|
386 |
+
if (strstr($dim, '%')) {
|
387 |
+
return true;
|
388 |
+
}
|
389 |
+
return false;
|
390 |
+
}
|
391 |
+
/**
|
392 |
+
* Enable Resposive
|
393 |
+
*
|
394 |
+
* @since 2.2.3
|
395 |
+
* @return Boolean
|
396 |
+
*/
|
397 |
+
function check_responsive($dim){
|
398 |
+
if (strstr($dim, '%')) {
|
399 |
+
$dim = preg_replace("/[^0-9]*/", '', $dim);
|
400 |
+
if ((int)$dim == 100) {
|
401 |
+
return true;
|
402 |
+
}
|
403 |
+
}
|
404 |
+
return false;
|
405 |
+
}
|
406 |
+
|
407 |
+
/**
|
408 |
+
* Validate Source mime type
|
409 |
+
*
|
410 |
+
* @since 1.0
|
411 |
+
* @return boolean
|
412 |
+
*/
|
413 |
+
function validmime_types() {
|
414 |
+
include ('inc/mime_types.php');
|
415 |
+
return $mimetypes;
|
416 |
+
}
|
417 |
+
|
418 |
+
/**
|
419 |
+
* Checks Url Validity
|
420 |
+
*
|
421 |
+
* @since 1.0
|
422 |
+
* @return boolean
|
423 |
+
*/
|
424 |
+
function valid_type($url) {
|
425 |
+
$doctypes = $this->validmime_types();
|
426 |
+
if (is_array($doctypes)) {
|
427 |
+
$allowed_ext = implode("|", array_keys($doctypes));
|
428 |
+
if (preg_match("/\.($allowed_ext)$/i", $url)) {
|
429 |
+
return true;
|
430 |
+
}
|
431 |
+
} else {
|
432 |
+
return false;
|
433 |
+
}
|
434 |
+
}
|
435 |
+
|
436 |
+
/**
|
437 |
+
* Get allowed Mime Types
|
438 |
+
*
|
439 |
+
* @since 1.0
|
440 |
+
* @return string Mimetypes
|
441 |
+
*/
|
442 |
+
function validembedtypes() {
|
443 |
+
$doctypes = $this->validmime_types();
|
444 |
+
return $allowedtype = implode(',', $doctypes);
|
445 |
+
}
|
446 |
+
|
447 |
+
/**
|
448 |
+
* Get allowed Extensions
|
449 |
+
*
|
450 |
+
* @since 1.0
|
451 |
+
* @return string Extenstion
|
452 |
+
*/
|
453 |
+
function validextensions($list = 'all') {
|
454 |
+
include ('inc/mime_types.php');
|
455 |
+
return $allowedtype = implode(',', $extensions[$list]);
|
456 |
+
}
|
457 |
+
|
458 |
+
/**
|
459 |
+
* Get allowed Mime Types for microsoft
|
460 |
+
*
|
461 |
+
* @since 1.0
|
462 |
+
* @return array Mimetypes
|
463 |
+
*/
|
464 |
+
function microsoft_mimes() {
|
465 |
+
$micro_mime = array(
|
466 |
+
'doc' => 'application/msword',
|
467 |
+
'pot|pps|ppt' => 'application/vnd.ms-powerpoint',
|
468 |
+
'xla|xls|xlt|xlw' => 'application/vnd.ms-excel',
|
469 |
+
'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
470 |
+
'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
|
471 |
+
'dotm' => 'application/vnd.ms-word.template.macroEnabled.12',
|
472 |
+
'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
473 |
+
'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12',
|
474 |
+
'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
475 |
+
'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
|
476 |
+
);
|
477 |
+
return $micro_mime;
|
478 |
+
}
|
479 |
+
|
480 |
+
/**
|
481 |
+
* Check Allow Download
|
482 |
+
*
|
483 |
+
* @since 1.0
|
484 |
+
* @return Boolean
|
485 |
+
*/
|
486 |
+
function allowdownload($provider) {
|
487 |
+
$blacklist = array('drive', 'box');
|
488 |
+
if (in_array($provider, $blacklist)) {
|
489 |
+
return false;
|
490 |
+
} else {
|
491 |
+
return true;
|
492 |
+
}
|
493 |
+
}
|
494 |
+
|
495 |
+
/**
|
496 |
+
* Get Active Menu Class
|
497 |
+
*
|
498 |
+
* @since 1.0
|
499 |
+
* @return string Class name
|
500 |
+
*/
|
501 |
+
function getactive_menu($tab, $needle) {
|
502 |
+
if ($tab == $needle) {
|
503 |
+
echo 'nav-tab-active';
|
504 |
+
}
|
505 |
+
}
|
506 |
+
}
|
507 |
+
|
508 |
+
function embed_doc_activation(){
|
509 |
+
if ( !defined( 'EAD_PLUS' ) ) {
|
510 |
+
Awsm_embed::get_instance();
|
511 |
+
}
|
512 |
+
}
|
513 |
+
function embed_doc_disable_self(){
|
514 |
+
if ( defined( 'EAD_PLUS' ) ) {
|
515 |
+
deactivate_plugins( plugin_basename( __FILE__ ) );
|
516 |
+
}
|
517 |
+
}
|
518 |
+
// plugin activation hook
|
519 |
+
add_action( 'plugins_loaded', 'embed_doc_activation' );
|
520 |
+
add_action( 'admin_init', 'embed_doc_disable_self' );
|
css/embed.css
CHANGED
@@ -1,140 +1,268 @@
|
|
1 |
-
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
}
|
4 |
-
#embed-popup-wrap { display: none;
|
5 |
-
width: 85%;
|
6 |
-
margin:0 auto; }
|
7 |
#embed-popup {
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
-webkit-box-sizing: border-box;
|
22 |
-
box-sizing: border-box;
|
23 |
-
}
|
24 |
-
|
25 |
-
.section {
|
26 |
-
margin: 0 0 30px;
|
27 |
-
}
|
28 |
-
ul.tabs {
|
29 |
-
height: 33px;
|
30 |
-
line-height: 25px;
|
31 |
-
list-style: none;
|
32 |
-
border-bottom: 1px solid #DDD;
|
33 |
-
background: none;
|
34 |
-
padding: 0px;
|
35 |
-
margin: 20px 0 0;
|
36 |
-
}
|
37 |
-
.tabs li {
|
38 |
-
float: left;
|
39 |
-
display: inline;
|
40 |
-
margin: 0 1px 0 0;
|
41 |
-
padding: 4px 13px;
|
42 |
-
color: #777;
|
43 |
-
cursor: pointer;
|
44 |
-
background: #F9F9F9;
|
45 |
-
border: 1px solid #E4E4E4;
|
46 |
-
border-bottom: 0 solid #F9F9F9;
|
47 |
-
position: relative;
|
48 |
-
height: auto !important ;
|
49 |
-
line-height: inherit !important;
|
50 |
-
}
|
51 |
-
.tabs li:hover,
|
52 |
-
.vertical .tabs li:hover {
|
53 |
-
}
|
54 |
-
.tabs li.current {
|
55 |
-
color: #444;
|
56 |
-
background: #EFEFEF;
|
57 |
-
border: 1px solid #D4D4D4;
|
58 |
-
border-bottom: 0 solid #EFEFEF;
|
59 |
-
}
|
60 |
-
.upload-success{border: 1px solid #D4D4D4;background: #EFEFEF;
|
61 |
-
|
62 |
-
min-height: 70px;}
|
63 |
-
.upload-success .inner{padding: 30px;}
|
64 |
-
.box {
|
65 |
-
display: none;
|
66 |
-
border: 1px solid #D4D4D4;
|
67 |
-
border-width: 0 1px 1px;
|
68 |
-
background: #EFEFEF;
|
69 |
-
padding: 30px;
|
70 |
-
min-height: 70px;
|
71 |
-
}
|
72 |
-
.box.visible {
|
73 |
-
display: block;
|
74 |
-
}
|
75 |
-
.box label{
|
76 |
-
display: block;
|
77 |
-
font-size: 12px;
|
78 |
-
margin-bottom: 5px;
|
79 |
-
}
|
80 |
-
.uploaded-doccument{
|
81 |
-
padding:5px 0 5px 70px;
|
82 |
-
background: url(../images/icon-success.png) no-repeat 0 0;
|
83 |
-
color: #454545;
|
84 |
-
font-size: 13px;
|
85 |
-
float: left; margin-right: 20px;
|
86 |
-
}
|
87 |
-
.wp-core-ui .button#adv_options{ float: right; height: 40px; line-height: 38px; font-size: 13px; padding:0 20px; }
|
88 |
-
.uploaded-doccument p{
|
89 |
-
font-weight: bold; font-size: 16px; margin: 0 0 3px;
|
90 |
-
}
|
91 |
-
input.input-group-text{ padding:5px 8px; height: 40px; min-width: 60%; }
|
92 |
-
.wp-core-ui .button-primary.input-group-btn{ padding:5px 10px; height: 40px; }
|
93 |
-
.advanced_options{display: none; border-top:1px solid #ccc; padding: 0 30px }
|
94 |
-
body.mfp-shown .mfp-bg { z-index: 101000 !important; }
|
95 |
-
body.mfp-shown .mfp-wrap { z-index: 101001 !important; }
|
96 |
-
body.mfp-shown .mfp-preloader { z-index: 101002 !important; }
|
97 |
-
body.mfp-shown .mfp-content { z-index: 101003 !important; }
|
98 |
-
body.mfp-shown button.mfp-close,
|
99 |
-
body.mfp-shown button.mfp-arrow { z-index: 101004 !important; }
|
100 |
-
.wp-core-ui .ead-btn.button-large{
|
101 |
-
padding: 0 30px;
|
102 |
-
height: 54px;
|
103 |
-
line-height: 52px;
|
104 |
-
font-size: 16px;
|
105 |
-
}
|
106 |
-
.wp-core-ui .ead-btn.button-medium{
|
107 |
-
padding:0 15px;
|
108 |
-
height: 36px;
|
109 |
-
line-height: 34px;
|
110 |
-
font-size: 14px;
|
111 |
-
}
|
112 |
-
.text-center{
|
113 |
-
text-align: center;
|
114 |
-
}
|
115 |
-
.mfp-close{
|
116 |
-
position: absolute;
|
117 |
-
right: 10px;
|
118 |
-
top:10px;
|
119 |
-
font-weight: bold;
|
120 |
-
background: url(../images/icon-close.png)!important;
|
121 |
-
width: 22px;
|
122 |
-
height: 22px;
|
123 |
-
display: block;
|
124 |
-
text-indent: -9999999px;
|
125 |
-
}
|
126 |
-
.mfp-close{
|
127 |
|
128 |
}
|
129 |
-
.
|
130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
}
|
132 |
div.awsm-error, div.awsm-updated {
|
133 |
margin: 5px 0 2px;
|
134 |
border-width: 1px 1px 1px 4px;
|
135 |
border-style: solid;
|
136 |
-webkit-border-radius: 4px;
|
137 |
-
border-radius: 4px;
|
138 |
}
|
139 |
div.awsm-updated {
|
140 |
background-color: #fff;
|
@@ -150,29 +278,107 @@ div.awsm-error p, div.awsm-updated p {
|
|
150 |
margin: 0.5em 0;
|
151 |
padding: 2px;
|
152 |
}
|
153 |
-
.hidden{
|
154 |
-
|
155 |
}
|
156 |
-
.mceActionPanel{
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
.input
|
174 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
border-color: #D95B5B;
|
176 |
-webkit-box-shadow: 0 0 2px rgba(190, 30, 30, 0.8);
|
177 |
box-shadow: 0 0 2px rgba(190, 30, 30, 0.8);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
}
|
1 |
+
#embed-popup-wrap {
|
2 |
+
display: none;
|
3 |
+
width: 85%;
|
4 |
+
margin: 0 auto;
|
5 |
+
}
|
6 |
+
.ead-popup-on #TB_window{
|
7 |
+
background: none;
|
8 |
+
box-shadow: none;
|
9 |
+
-webkit-box-shadow: none;
|
10 |
+
}
|
11 |
+
.ead-popup-on #TB_ajaxContent{
|
12 |
+
text-align: center;
|
13 |
+
}
|
14 |
+
.ead-popup-on #TB_ajaxContent:after{
|
15 |
+
content: "";
|
16 |
+
display: inline-block;
|
17 |
+
width: 1px;
|
18 |
+
height: 100%;
|
19 |
+
vertical-align: middle;
|
20 |
}
|
|
|
|
|
|
|
21 |
#embed-popup {
|
22 |
+
position: relative;
|
23 |
+
width: 99%;
|
24 |
+
max-width: 1000px;
|
25 |
+
background: #fff;
|
26 |
+
-moz-box-sizing: border-box;
|
27 |
+
-webkit-box-sizing: border-box;
|
28 |
+
box-sizing: border-box;
|
29 |
+
display: inline-block;
|
30 |
+
vertical-align: middle;
|
31 |
+
-webkit-box-shadow: 0 2px 25px #000;
|
32 |
+
-moz-box-shadow: 0 2px 25px #000;
|
33 |
+
box-shadow: 0 2px 25px #000;
|
34 |
+
text-align: left;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
}
|
37 |
+
.ead-popup-header{
|
38 |
+
padding: 20px 30px;
|
39 |
+
}
|
40 |
+
.ead-popup-header h1{
|
41 |
+
margin: 0;
|
42 |
+
line-height: 1.3;
|
43 |
+
}
|
44 |
+
.ead-section {
|
45 |
+
padding: 0 30px;
|
46 |
+
border-top: 1px solid #ebebeb;
|
47 |
+
}
|
48 |
+
.ead-action-panel{
|
49 |
+
padding: 20px 30px;
|
50 |
+
background: #f5f5f5;
|
51 |
+
border-top: 1px solid #ebebeb;
|
52 |
+
}
|
53 |
+
ul.ead-options {
|
54 |
+
padding: 30px 0;
|
55 |
+
overflow: hidden;
|
56 |
+
margin: 0px;
|
57 |
+
}
|
58 |
+
.ead-options li {
|
59 |
+
float: left;
|
60 |
+
width: 20%;
|
61 |
+
padding: 0 10px;
|
62 |
+
-moz-box-sizing: border-box;
|
63 |
+
-webkit-box-sizing: border-box;
|
64 |
+
box-sizing: border-box;
|
65 |
+
}
|
66 |
+
.ead-options li a {
|
67 |
+
display: block;
|
68 |
+
text-decoration: none;
|
69 |
+
color: rgb(33, 33, 33);
|
70 |
+
}
|
71 |
+
.ead-options li span {
|
72 |
+
border: 2px dotted #ccc;
|
73 |
+
-webkit-border-radius: 4px;
|
74 |
+
border-radius: 4px;
|
75 |
+
display: block;
|
76 |
+
padding: 30px 10px 20px;
|
77 |
+
text-align: center;
|
78 |
+
position: relative;
|
79 |
+
}
|
80 |
+
.ead-options li img {
|
81 |
+
display: block;
|
82 |
+
margin: 0 auto 10px;
|
83 |
+
}
|
84 |
+
.ead-options li span span.overlay {
|
85 |
+
border: none;
|
86 |
+
-webkit-border-radius: 0;
|
87 |
+
border-radius: 0;
|
88 |
+
padding: 0;
|
89 |
+
width: 100%;
|
90 |
+
height: 100%;
|
91 |
+
position: absolute;
|
92 |
+
left: 0;
|
93 |
+
top: 0;
|
94 |
+
background: rgba(255, 255, 255, 0.7);
|
95 |
+
}
|
96 |
+
.ead-options .overlay strong {
|
97 |
+
display: inline-block;
|
98 |
+
max-width: 97%;
|
99 |
+
vertical-align: middle;
|
100 |
+
opacity: 0;
|
101 |
+
-webkit-transition: all 0.3s ease;
|
102 |
+
-moz-transition: all 0.3s ease;
|
103 |
+
-ms-transition: all 0.3s ease;
|
104 |
+
-o-transition: all 0.3s ease;
|
105 |
+
transition: all 0.3s ease;
|
106 |
+
}
|
107 |
+
.ead-options li span:hover {
|
108 |
+
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
|
109 |
+
-webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
|
110 |
+
}
|
111 |
+
.ead-options li:hover .overlay strong {
|
112 |
+
opacity: 1;
|
113 |
+
}
|
114 |
+
.ead-options .overlay i {
|
115 |
+
display: inline-block;
|
116 |
+
height: 100%;
|
117 |
+
width: 1px;
|
118 |
+
vertical-align: middle;
|
119 |
+
}
|
120 |
+
.upload-success {
|
121 |
+
min-height: 70px;
|
122 |
+
overflow: hidden;
|
123 |
+
}
|
124 |
+
.upload-success .inner {
|
125 |
+
padding: 30px 10px;
|
126 |
+
-moz-box-sizing: border-box;
|
127 |
+
-webkit-box-sizing: border-box;
|
128 |
+
box-sizing: border-box;
|
129 |
+
float: left;
|
130 |
+
width: 20%;
|
131 |
+
}
|
132 |
+
.box {
|
133 |
+
display: none;
|
134 |
+
border: 2px dotted #ccc;
|
135 |
+
-webkit-border-radius: 4px;
|
136 |
+
border-radius: 4px;
|
137 |
+
padding: 20px;
|
138 |
+
margin: 30px 0;
|
139 |
+
}
|
140 |
+
a.go-back {
|
141 |
+
display: inline-block;
|
142 |
+
margin-top: 20px;
|
143 |
+
text-decoration: none;
|
144 |
+
}
|
145 |
+
.box label {
|
146 |
+
display: block;
|
147 |
+
font-size: 12px;
|
148 |
+
margin-bottom: 5px;
|
149 |
+
}
|
150 |
+
.uploaded-doccument {
|
151 |
+
padding: 75px 0 5px;
|
152 |
+
color: #454545;
|
153 |
+
font-size: 13px;
|
154 |
+
word-wrap: break-word;
|
155 |
+
text-align: center;
|
156 |
+
}
|
157 |
+
.uploaded-doccument.ead-link {
|
158 |
+
background: url(../images/icon-link.png) no-repeat center 5px / 36px 49px;
|
159 |
+
}
|
160 |
+
.uploaded-doccument.ead-upload {
|
161 |
+
background: url(../images/icon-upload.png) no-repeat center 5px / 54px 49px;
|
162 |
+
}
|
163 |
+
.uploaded-doccument.ead-dropbox {
|
164 |
+
background: url(../images/icon-dropbox.png) no-repeat center 5px / 51px 49px;
|
165 |
+
}
|
166 |
+
.uploaded-doccument.ead-drive {
|
167 |
+
background: url(../images/icon-drive.png) no-repeat center 5px / 48px 49px;
|
168 |
+
}
|
169 |
+
.uploaded-doccument.ead-box {
|
170 |
+
background: url(../images/icon-box.png) no-repeat center 5px / 54px 49px;
|
171 |
+
}
|
172 |
+
.wp-core-ui .button#adv-options {
|
173 |
+
float: right;
|
174 |
+
height: 40px;
|
175 |
+
line-height: 38px;
|
176 |
+
font-size: 13px;
|
177 |
+
padding: 0 20px;
|
178 |
+
}
|
179 |
+
.uploaded-doccument p {
|
180 |
+
font-weight: bold;
|
181 |
+
font-size: 16px;
|
182 |
+
margin: 0 0 3px;
|
183 |
+
}
|
184 |
+
input.input-group-text {
|
185 |
+
padding: 5px 8px;
|
186 |
+
height: 40px;
|
187 |
+
min-width: 88%;
|
188 |
+
}
|
189 |
+
.wp-core-ui .button-primary.input-group-btn {
|
190 |
+
padding: 5px 10px;
|
191 |
+
height: 40px;
|
192 |
+
}
|
193 |
+
.advanced-options {
|
194 |
+
padding: 30px;
|
195 |
+
-moz-box-sizing: border-box;
|
196 |
+
-webkit-box-sizing: border-box;
|
197 |
+
box-sizing: border-box;
|
198 |
+
float: left;
|
199 |
+
width: 80%;
|
200 |
+
border-left: 1px solid #ebebeb;
|
201 |
+
}
|
202 |
+
.advanced-options h3 {
|
203 |
+
margin-top: 0px
|
204 |
+
}
|
205 |
+
.advanced-options h3 span {
|
206 |
+
color: #aaa;
|
207 |
+
font-weight: normal;
|
208 |
+
}
|
209 |
+
body.mfp-shown .mfp-bg {
|
210 |
+
z-index: 1010;
|
211 |
+
}
|
212 |
+
body.mfp-shown .mfp-wrap {
|
213 |
+
z-index: 1011;
|
214 |
+
}
|
215 |
+
body.mfp-shown .mfp-preloader {
|
216 |
+
z-index: 1012;
|
217 |
+
}
|
218 |
+
body.mfp-shown .mfp-content {
|
219 |
+
z-index: 1013;
|
220 |
+
}
|
221 |
+
body.mfp-shown button.mfp-close, body.mfp-shown button.mfp-arrow {
|
222 |
+
z-index: 1014;
|
223 |
+
}
|
224 |
+
.wp-core-ui .ead-btn.button-large {
|
225 |
+
padding: 0 30px;
|
226 |
+
height: 54px;
|
227 |
+
line-height: 52px;
|
228 |
+
font-size: 16px;
|
229 |
+
}
|
230 |
+
.wp-core-ui .ead-btn.button-medium {
|
231 |
+
padding: 0 15px;
|
232 |
+
height: 36px;
|
233 |
+
line-height: 34px;
|
234 |
+
font-size: 14px;
|
235 |
+
}
|
236 |
+
.text-center {
|
237 |
+
text-align: center;
|
238 |
+
}
|
239 |
+
.mfp-close {
|
240 |
+
position: absolute;
|
241 |
+
right: 30px;
|
242 |
+
top: 30px;
|
243 |
+
font-weight: bold;
|
244 |
+
background: url(../images/icon-close.png)!important;
|
245 |
+
width: 22px;
|
246 |
+
height: 22px;
|
247 |
+
display: block;
|
248 |
+
text-indent: -9999999px;
|
249 |
+
border: none;
|
250 |
+
cursor: pointer;
|
251 |
+
opacity: 0.65;
|
252 |
+
padding: 0;
|
253 |
+
}
|
254 |
+
.mfp-close:hover{
|
255 |
+
opacity: 1;
|
256 |
+
}
|
257 |
+
.mfp-close .upload-success {
|
258 |
+
display: none;
|
259 |
}
|
260 |
div.awsm-error, div.awsm-updated {
|
261 |
margin: 5px 0 2px;
|
262 |
border-width: 1px 1px 1px 4px;
|
263 |
border-style: solid;
|
264 |
-webkit-border-radius: 4px;
|
265 |
+
border-radius: 4px;
|
266 |
}
|
267 |
div.awsm-updated {
|
268 |
background-color: #fff;
|
278 |
margin: 0.5em 0;
|
279 |
padding: 2px;
|
280 |
}
|
281 |
+
.hidden {
|
282 |
+
display: none;
|
283 |
}
|
284 |
+
.mceActionPanel {
|
285 |
+
margin: 0;
|
286 |
+
}
|
287 |
+
.option-fields {
|
288 |
+
list-style-type: none;
|
289 |
+
margin: 0;
|
290 |
+
padding: 20px 0 0;
|
291 |
+
}
|
292 |
+
.option-fields li {
|
293 |
+
padding-bottom: 15px;
|
294 |
+
overflow: hidden;
|
295 |
+
}
|
296 |
+
.option-fields label {
|
297 |
+
display: block;
|
298 |
+
margin-bottom: 5px;
|
299 |
+
font-weight: bold;
|
300 |
+
}
|
301 |
+
.option-fields li.checkbox input{ float: left; margin: 2px 10px 0 0;}
|
302 |
+
.option-fields li.checkbox label{ float: left; margin: 0 0 0; font-weight: normal;}
|
303 |
+
.f-left {
|
304 |
+
float: left;
|
305 |
+
}
|
306 |
+
.option-fields .f-left {
|
307 |
+
margin-right: 25px;
|
308 |
+
max-width: 160px;
|
309 |
+
margin-bottom: 6px;
|
310 |
+
}
|
311 |
+
#ead-download-text input{
|
312 |
+
width: 100px;
|
313 |
+
}
|
314 |
+
.option-fields .f-left select, .option-fields .f-left input{
|
315 |
+
height: 32px;
|
316 |
+
padding: 6px;
|
317 |
+
}
|
318 |
+
.option-fields .f-left select{
|
319 |
+
width: 100%;
|
320 |
+
}
|
321 |
+
.option-fields .f-left.last {
|
322 |
+
margin: 0;
|
323 |
+
}
|
324 |
+
.clear {
|
325 |
+
clear: both;
|
326 |
+
}
|
327 |
+
.input-small {
|
328 |
+
width: 60px;
|
329 |
+
}
|
330 |
+
.box .urlerror {
|
331 |
border-color: #D95B5B;
|
332 |
-webkit-box-shadow: 0 0 2px rgba(190, 30, 30, 0.8);
|
333 |
box-shadow: 0 0 2px rgba(190, 30, 30, 0.8);
|
334 |
+
}
|
335 |
+
.picker-dialog {
|
336 |
+
z-index: 100091;
|
337 |
+
}
|
338 |
+
.picker-dialog-bg {
|
339 |
+
z-index: 100090;
|
340 |
+
}
|
341 |
+
.ead-popon #adminmenuwrap{
|
342 |
+
z-index: 999!important;
|
343 |
+
}
|
344 |
+
@media (max-width: 915px) {
|
345 |
+
.ead-options li {
|
346 |
+
width: 33.33%;
|
347 |
+
padding-bottom: 20px;
|
348 |
+
margin-bottom: 0;
|
349 |
+
}
|
350 |
+
.ead-popup-on #TB_window{
|
351 |
+
background: #fff;
|
352 |
+
-webkit-box-shadow: 0 2px 25px #000;
|
353 |
+
-moz-box-shadow: 0 2px 25px #000;
|
354 |
+
box-shadow: 0 2px 25px #000;
|
355 |
+
}
|
356 |
+
#embed-popup {
|
357 |
+
box-shadow: none;
|
358 |
+
-webkit-box-shadow: none;
|
359 |
+
}
|
360 |
+
}
|
361 |
+
@media (max-width: 700px){
|
362 |
+
.upload-success .inner{
|
363 |
+
width: 100%;
|
364 |
+
padding: 30px 0;
|
365 |
+
float: none;
|
366 |
+
}
|
367 |
+
.advanced-options{
|
368 |
+
width: 100%;
|
369 |
+
padding: 30px 0;
|
370 |
+
float: none;
|
371 |
+
border-left: none;
|
372 |
+
border-top: 1px solid #ebebeb;
|
373 |
+
}
|
374 |
+
}
|
375 |
+
@media (max-width: 600px) {
|
376 |
+
.ead-options li {
|
377 |
+
width: 50%;
|
378 |
+
}
|
379 |
+
}
|
380 |
+
@media (max-width: 440px) {
|
381 |
+
.ead-options li {
|
382 |
+
width: 100%;
|
383 |
+
}
|
384 |
}
|
css/magnific-popup.css
DELETED
@@ -1,366 +0,0 @@
|
|
1 |
-
/* Magnific Popup CSS */
|
2 |
-
.mfp-bg {
|
3 |
-
top: 0;
|
4 |
-
left: 0;
|
5 |
-
width: 100%;
|
6 |
-
height: 100%;
|
7 |
-
z-index: 1042;
|
8 |
-
overflow: hidden;
|
9 |
-
position: fixed;
|
10 |
-
background: #0b0b0b;
|
11 |
-
opacity: 0.8;
|
12 |
-
filter: alpha(opacity=80); }
|
13 |
-
|
14 |
-
.mfp-wrap {
|
15 |
-
top: 0;
|
16 |
-
left: 0;
|
17 |
-
width: 100%;
|
18 |
-
height: 100%;
|
19 |
-
z-index: 1043;
|
20 |
-
position: fixed;
|
21 |
-
outline: none !important;
|
22 |
-
-webkit-backface-visibility: hidden; }
|
23 |
-
|
24 |
-
.mfp-container {
|
25 |
-
text-align: center;
|
26 |
-
position: absolute;
|
27 |
-
width: 100%;
|
28 |
-
height: 100%;
|
29 |
-
left: 0;
|
30 |
-
top: 0;
|
31 |
-
padding: 0 8px;
|
32 |
-
-webkit-box-sizing: border-box;
|
33 |
-
-moz-box-sizing: border-box;
|
34 |
-
box-sizing: border-box; }
|
35 |
-
|
36 |
-
.mfp-container:before {
|
37 |
-
content: '';
|
38 |
-
display: inline-block;
|
39 |
-
height: 100%;
|
40 |
-
vertical-align: middle; }
|
41 |
-
|
42 |
-
.mfp-align-top .mfp-container:before {
|
43 |
-
display: none; }
|
44 |
-
|
45 |
-
.mfp-content {
|
46 |
-
position: relative;
|
47 |
-
display: inline-block;
|
48 |
-
vertical-align: middle;
|
49 |
-
margin: 0 auto;
|
50 |
-
text-align: left;
|
51 |
-
z-index: 1045; }
|
52 |
-
|
53 |
-
.mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
|
54 |
-
width: 100%;
|
55 |
-
cursor: auto; }
|
56 |
-
|
57 |
-
.mfp-ajax-cur {
|
58 |
-
cursor: progress; }
|
59 |
-
|
60 |
-
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
|
61 |
-
cursor: -moz-zoom-out;
|
62 |
-
cursor: -webkit-zoom-out;
|
63 |
-
cursor: zoom-out; }
|
64 |
-
|
65 |
-
.mfp-zoom {
|
66 |
-
cursor: pointer;
|
67 |
-
cursor: -webkit-zoom-in;
|
68 |
-
cursor: -moz-zoom-in;
|
69 |
-
cursor: zoom-in; }
|
70 |
-
|
71 |
-
.mfp-auto-cursor .mfp-content {
|
72 |
-
cursor: auto; }
|
73 |
-
|
74 |
-
.mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
|
75 |
-
-webkit-user-select: none;
|
76 |
-
-moz-user-select: none;
|
77 |
-
user-select: none; }
|
78 |
-
|
79 |
-
.mfp-loading.mfp-figure {
|
80 |
-
display: none; }
|
81 |
-
|
82 |
-
.mfp-hide {
|
83 |
-
display: none !important; }
|
84 |
-
|
85 |
-
.mfp-preloader {
|
86 |
-
color: #cccccc;
|
87 |
-
position: absolute;
|
88 |
-
top: 50%;
|
89 |
-
width: auto;
|
90 |
-
text-align: center;
|
91 |
-
margin-top: -0.8em;
|
92 |
-
left: 8px;
|
93 |
-
right: 8px;
|
94 |
-
z-index: 1044; }
|
95 |
-
.mfp-preloader a {
|
96 |
-
color: #cccccc; }
|
97 |
-
.mfp-preloader a:hover {
|
98 |
-
color: white; }
|
99 |
-
|
100 |
-
.mfp-s-ready .mfp-preloader {
|
101 |
-
display: none; }
|
102 |
-
|
103 |
-
.mfp-s-error .mfp-content {
|
104 |
-
display: none; }
|
105 |
-
|
106 |
-
button.mfp-close, button.mfp-arrow {
|
107 |
-
overflow: visible;
|
108 |
-
cursor: pointer;
|
109 |
-
background: transparent;
|
110 |
-
border: 0;
|
111 |
-
-webkit-appearance: none;
|
112 |
-
display: block;
|
113 |
-
outline: none;
|
114 |
-
padding: 0;
|
115 |
-
z-index: 1046;
|
116 |
-
-webkit-box-shadow: none;
|
117 |
-
box-shadow: none; }
|
118 |
-
button::-moz-focus-inner {
|
119 |
-
padding: 0;
|
120 |
-
border: 0; }
|
121 |
-
|
122 |
-
.mfp-close {
|
123 |
-
width: 44px;
|
124 |
-
height: 44px;
|
125 |
-
line-height: 44px;
|
126 |
-
position: absolute;
|
127 |
-
right: 0;
|
128 |
-
top: 0;
|
129 |
-
text-decoration: none;
|
130 |
-
text-align: center;
|
131 |
-
opacity: 0.65;
|
132 |
-
filter: alpha(opacity=65);
|
133 |
-
padding: 0 0 18px 10px;
|
134 |
-
color: white;
|
135 |
-
font-style: normal;
|
136 |
-
font-size: 28px;
|
137 |
-
font-family: Arial, Baskerville, monospace; }
|
138 |
-
.mfp-close:hover, .mfp-close:focus {
|
139 |
-
opacity: 1;
|
140 |
-
filter: alpha(opacity=100); }
|
141 |
-
|
142 |
-
.mfp-close-btn-in .mfp-close {
|
143 |
-
color: #333333; }
|
144 |
-
|
145 |
-
.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
|
146 |
-
color: white;
|
147 |
-
right: -6px;
|
148 |
-
text-align: right;
|
149 |
-
padding-right: 6px;
|
150 |
-
width: 100%; }
|
151 |
-
|
152 |
-
.mfp-counter {
|
153 |
-
position: absolute;
|
154 |
-
top: 0;
|
155 |
-
right: 0;
|
156 |
-
color: #cccccc;
|
157 |
-
font-size: 12px;
|
158 |
-
line-height: 18px; }
|
159 |
-
|
160 |
-
.mfp-arrow {
|
161 |
-
position: absolute;
|
162 |
-
opacity: 0.65;
|
163 |
-
filter: alpha(opacity=65);
|
164 |
-
margin: 0;
|
165 |
-
top: 50%;
|
166 |
-
margin-top: -55px;
|
167 |
-
padding: 0;
|
168 |
-
width: 90px;
|
169 |
-
height: 110px;
|
170 |
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
|
171 |
-
.mfp-arrow:active {
|
172 |
-
margin-top: -54px; }
|
173 |
-
.mfp-arrow:hover, .mfp-arrow:focus {
|
174 |
-
opacity: 1;
|
175 |
-
filter: alpha(opacity=100); }
|
176 |
-
.mfp-arrow:before, .mfp-arrow:after, .mfp-arrow .mfp-b, .mfp-arrow .mfp-a {
|
177 |
-
content: '';
|
178 |
-
display: block;
|
179 |
-
width: 0;
|
180 |
-
height: 0;
|
181 |
-
position: absolute;
|
182 |
-
left: 0;
|
183 |
-
top: 0;
|
184 |
-
margin-top: 35px;
|
185 |
-
margin-left: 35px;
|
186 |
-
border: medium inset transparent; }
|
187 |
-
.mfp-arrow:after, .mfp-arrow .mfp-a {
|
188 |
-
border-top-width: 13px;
|
189 |
-
border-bottom-width: 13px;
|
190 |
-
top: 8px; }
|
191 |
-
.mfp-arrow:before, .mfp-arrow .mfp-b {
|
192 |
-
border-top-width: 21px;
|
193 |
-
border-bottom-width: 21px;
|
194 |
-
opacity: 0.7; }
|
195 |
-
|
196 |
-
.mfp-arrow-left {
|
197 |
-
left: 0; }
|
198 |
-
.mfp-arrow-left:after, .mfp-arrow-left .mfp-a {
|
199 |
-
border-right: 17px solid white;
|
200 |
-
margin-left: 31px; }
|
201 |
-
.mfp-arrow-left:before, .mfp-arrow-left .mfp-b {
|
202 |
-
margin-left: 25px;
|
203 |
-
border-right: 27px solid #3f3f3f; }
|
204 |
-
|
205 |
-
.mfp-arrow-right {
|
206 |
-
right: 0; }
|
207 |
-
.mfp-arrow-right:after, .mfp-arrow-right .mfp-a {
|
208 |
-
border-left: 17px solid white;
|
209 |
-
margin-left: 39px; }
|
210 |
-
.mfp-arrow-right:before, .mfp-arrow-right .mfp-b {
|
211 |
-
border-left: 27px solid #3f3f3f; }
|
212 |
-
|
213 |
-
.mfp-iframe-holder {
|
214 |
-
padding-top: 40px;
|
215 |
-
padding-bottom: 40px; }
|
216 |
-
.mfp-iframe-holder .mfp-content {
|
217 |
-
line-height: 0;
|
218 |
-
width: 100%;
|
219 |
-
max-width: 900px; }
|
220 |
-
.mfp-iframe-holder .mfp-close {
|
221 |
-
top: -40px; }
|
222 |
-
|
223 |
-
.mfp-iframe-scaler {
|
224 |
-
width: 100%;
|
225 |
-
height: 0;
|
226 |
-
overflow: hidden;
|
227 |
-
padding-top: 56.25%; }
|
228 |
-
.mfp-iframe-scaler iframe {
|
229 |
-
position: absolute;
|
230 |
-
display: block;
|
231 |
-
top: 0;
|
232 |
-
left: 0;
|
233 |
-
width: 100%;
|
234 |
-
height: 100%;
|
235 |
-
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
236 |
-
background: black; }
|
237 |
-
|
238 |
-
/* Main image in popup */
|
239 |
-
img.mfp-img {
|
240 |
-
width: auto;
|
241 |
-
max-width: 100%;
|
242 |
-
height: auto;
|
243 |
-
display: block;
|
244 |
-
line-height: 0;
|
245 |
-
-webkit-box-sizing: border-box;
|
246 |
-
-moz-box-sizing: border-box;
|
247 |
-
box-sizing: border-box;
|
248 |
-
padding: 40px 0 40px;
|
249 |
-
margin: 0 auto; }
|
250 |
-
|
251 |
-
/* The shadow behind the image */
|
252 |
-
.mfp-figure {
|
253 |
-
line-height: 0; }
|
254 |
-
.mfp-figure:after {
|
255 |
-
content: '';
|
256 |
-
position: absolute;
|
257 |
-
left: 0;
|
258 |
-
top: 40px;
|
259 |
-
bottom: 40px;
|
260 |
-
display: block;
|
261 |
-
right: 0;
|
262 |
-
width: auto;
|
263 |
-
height: auto;
|
264 |
-
z-index: -1;
|
265 |
-
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
266 |
-
background: #444444; }
|
267 |
-
.mfp-figure small {
|
268 |
-
color: #bdbdbd;
|
269 |
-
display: block;
|
270 |
-
font-size: 12px;
|
271 |
-
line-height: 14px; }
|
272 |
-
.mfp-figure figure {
|
273 |
-
margin: 0; }
|
274 |
-
|
275 |
-
.mfp-bottom-bar {
|
276 |
-
margin-top: -36px;
|
277 |
-
position: absolute;
|
278 |
-
top: 100%;
|
279 |
-
left: 0;
|
280 |
-
width: 100%;
|
281 |
-
cursor: auto; }
|
282 |
-
|
283 |
-
.mfp-title {
|
284 |
-
text-align: left;
|
285 |
-
line-height: 18px;
|
286 |
-
color: #f3f3f3;
|
287 |
-
word-wrap: break-word;
|
288 |
-
padding-right: 36px; }
|
289 |
-
|
290 |
-
.mfp-image-holder .mfp-content {
|
291 |
-
max-width: 100%; }
|
292 |
-
|
293 |
-
.mfp-gallery .mfp-image-holder .mfp-figure {
|
294 |
-
cursor: pointer; }
|
295 |
-
|
296 |
-
@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
|
297 |
-
/**
|
298 |
-
* Remove all paddings around the image on small screen
|
299 |
-
*/
|
300 |
-
.mfp-img-mobile .mfp-image-holder {
|
301 |
-
padding-left: 0;
|
302 |
-
padding-right: 0; }
|
303 |
-
.mfp-img-mobile img.mfp-img {
|
304 |
-
padding: 0; }
|
305 |
-
.mfp-img-mobile .mfp-figure:after {
|
306 |
-
top: 0;
|
307 |
-
bottom: 0; }
|
308 |
-
.mfp-img-mobile .mfp-figure small {
|
309 |
-
display: inline;
|
310 |
-
margin-left: 5px; }
|
311 |
-
.mfp-img-mobile .mfp-bottom-bar {
|
312 |
-
background: rgba(0, 0, 0, 0.6);
|
313 |
-
bottom: 0;
|
314 |
-
margin: 0;
|
315 |
-
top: auto;
|
316 |
-
padding: 3px 5px;
|
317 |
-
position: fixed;
|
318 |
-
-webkit-box-sizing: border-box;
|
319 |
-
-moz-box-sizing: border-box;
|
320 |
-
box-sizing: border-box; }
|
321 |
-
.mfp-img-mobile .mfp-bottom-bar:empty {
|
322 |
-
padding: 0; }
|
323 |
-
.mfp-img-mobile .mfp-counter {
|
324 |
-
right: 5px;
|
325 |
-
top: 3px; }
|
326 |
-
.mfp-img-mobile .mfp-close {
|
327 |
-
top: 0;
|
328 |
-
right: 0;
|
329 |
-
width: 35px;
|
330 |
-
height: 35px;
|
331 |
-
line-height: 35px;
|
332 |
-
background: rgba(0, 0, 0, 0.6);
|
333 |
-
position: fixed;
|
334 |
-
text-align: center;
|
335 |
-
padding: 0; } }
|
336 |
-
|
337 |
-
@media all and (max-width: 900px) {
|
338 |
-
.mfp-arrow {
|
339 |
-
-webkit-transform: scale(0.75);
|
340 |
-
transform: scale(0.75); }
|
341 |
-
.mfp-arrow-left {
|
342 |
-
-webkit-transform-origin: 0;
|
343 |
-
transform-origin: 0; }
|
344 |
-
.mfp-arrow-right {
|
345 |
-
-webkit-transform-origin: 100%;
|
346 |
-
transform-origin: 100%; }
|
347 |
-
.mfp-container {
|
348 |
-
padding-left: 6px;
|
349 |
-
padding-right: 6px; } }
|
350 |
-
|
351 |
-
.mfp-ie7 .mfp-img {
|
352 |
-
padding: 0; }
|
353 |
-
.mfp-ie7 .mfp-bottom-bar {
|
354 |
-
width: 600px;
|
355 |
-
left: 50%;
|
356 |
-
margin-left: -300px;
|
357 |
-
margin-top: 5px;
|
358 |
-
padding-bottom: 5px; }
|
359 |
-
.mfp-ie7 .mfp-container {
|
360 |
-
padding: 0; }
|
361 |
-
.mfp-ie7 .mfp-content {
|
362 |
-
padding-top: 44px; }
|
363 |
-
.mfp-ie7 .mfp-close {
|
364 |
-
top: 0;
|
365 |
-
right: 0;
|
366 |
-
padding-top: 0; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/settings.css
CHANGED
@@ -5,16 +5,16 @@ img {
|
|
5 |
.clear {
|
6 |
clear: both;
|
7 |
}
|
8 |
-
.f-left{
|
9 |
float: left;
|
10 |
}
|
11 |
-
.fl-right{
|
12 |
float: right;
|
13 |
}
|
14 |
.tabs {
|
15 |
display: none;
|
16 |
background: #fff;
|
17 |
-
padding:
|
18 |
}
|
19 |
.tabs.visible {
|
20 |
display: block;
|
@@ -23,8 +23,8 @@ img {
|
|
23 |
background: none;
|
24 |
border: none;
|
25 |
}
|
26 |
-
.nav-tab-wrapper a:hover{
|
27 |
-
|
28 |
}
|
29 |
.nav-tab-wrapper a.nav-tab-active {
|
30 |
background: #fff;
|
@@ -32,6 +32,7 @@ img {
|
|
32 |
.form-table {
|
33 |
margin-top: 0;
|
34 |
padding-top: 0.5em;
|
|
|
35 |
}
|
36 |
h2.nav-tab-wrapper {
|
37 |
border: none;
|
@@ -39,42 +40,85 @@ h2.nav-tab-wrapper {
|
|
39 |
}
|
40 |
h2.ead-title {
|
41 |
background: url(../images/icon-ead.png) no-repeat 0 14px;
|
42 |
-
padding-left: 46px;
|
43 |
-
padding-bottom: 25px;
|
44 |
}
|
45 |
.ead-left-wrap {
|
46 |
float: left;
|
47 |
width: 100%;
|
48 |
-moz-box-sizing: border-box;
|
49 |
-
-webkit-box-sizing: border-box;
|
50 |
-
box-sizing: border-box;
|
51 |
-
padding-right:340px;
|
52 |
-
margin-right: -340px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
}
|
54 |
.ead-right-wrap {
|
55 |
float: right;
|
56 |
max-width: 300px;
|
57 |
-
background: #fff;
|
58 |
-
padding-bottom: 15px;
|
59 |
color: #372e2e;
|
60 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
.author-info {
|
62 |
-
padding:
|
63 |
text-align: center;
|
64 |
}
|
65 |
.awsm-social {
|
66 |
text-align: center;
|
67 |
list-style-type: none;
|
68 |
padding: 15px;
|
69 |
-
border-top: 1px solid #dadada;
|
70 |
border-bottom: 1px solid #dadada;
|
71 |
-
margin
|
72 |
}
|
73 |
.awsm-social li {
|
74 |
display: inline-block;
|
75 |
margin: 0 6px;
|
76 |
}
|
77 |
-
.awsm-icon{
|
78 |
background: url(../images/ead-icon-sprite.jpg) no-repeat;
|
79 |
display: block;
|
80 |
width: 21px;
|
@@ -82,50 +126,77 @@ margin-right: -340px;
|
|
82 |
text-indent: -999999px;
|
83 |
opacity: 0.46;
|
84 |
}
|
85 |
-
.awsm-icon:hover{
|
86 |
opacity: 1;
|
87 |
}
|
88 |
-
.awsm-icon-facebook{
|
89 |
-
|
90 |
-
}
|
91 |
-
.awsm-icon-twitter{
|
92 |
background-position: -26px 0;
|
93 |
}
|
94 |
-
.awsm-icon-github{
|
95 |
background-position: -52px 0;
|
96 |
}
|
97 |
-
.awsm-icon-behance{
|
98 |
background-position: -78px 0;
|
99 |
width: 28px;
|
100 |
}
|
101 |
-
.awsm-icon-dribbble{
|
102 |
background-position: right 0;
|
103 |
}
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
.paypal .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
input.small {
|
109 |
max-width: 60px;
|
110 |
}
|
111 |
-
.ead-frame-width{
|
112 |
margin-right: 15px;
|
113 |
margin-bottom: 10px;
|
114 |
}
|
115 |
-
.ead-frame-height{
|
116 |
margin-bottom: 10px;
|
117 |
}
|
118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
font-size: 12px;
|
120 |
color: #999;
|
121 |
}
|
122 |
-
|
123 |
div.awsm-error, div.awsm-updated {
|
124 |
margin: 5px 0 2px;
|
125 |
border-width: 1px 1px 1px 4px;
|
126 |
border-style: solid;
|
127 |
-webkit-border-radius: 4px;
|
128 |
-
border-radius: 4px;
|
129 |
}
|
130 |
div.awsm-updated {
|
131 |
background-color: #fff;
|
@@ -141,27 +212,65 @@ div.awsm-error p, div.awsm-updated p {
|
|
141 |
margin: 0.5em 0;
|
142 |
padding: 2px;
|
143 |
}
|
144 |
-
.ead_doller{
|
145 |
display: inline-block;
|
146 |
vertical-align: top;
|
147 |
margin: 5px 5px 0 0;
|
148 |
font-weight: bold;
|
149 |
}
|
150 |
-
#supportform label{
|
151 |
-
|
152 |
-
-
|
153 |
-
|
154 |
-
|
155 |
-
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
@media (max-width: 800px) {
|
166 |
.ead-left-wrap {
|
167 |
float: none;
|
@@ -169,14 +278,16 @@ box-sizing: border-box; width:100%;}
|
|
169 |
margin-bottom: 30px;
|
170 |
padding-right: 0;
|
171 |
margin-right: 0;
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
}
|
179 |
@media (max-width: 980px) {
|
180 |
-
.col-left
|
181 |
-
|
182 |
-
|
|
|
|
|
|
5 |
.clear {
|
6 |
clear: both;
|
7 |
}
|
8 |
+
.f-left {
|
9 |
float: left;
|
10 |
}
|
11 |
+
.fl-right {
|
12 |
float: right;
|
13 |
}
|
14 |
.tabs {
|
15 |
display: none;
|
16 |
background: #fff;
|
17 |
+
padding: 20px 20px 0;
|
18 |
}
|
19 |
.tabs.visible {
|
20 |
display: block;
|
23 |
background: none;
|
24 |
border: none;
|
25 |
}
|
26 |
+
.nav-tab-wrapper a:hover {
|
27 |
+
border: none;
|
28 |
}
|
29 |
.nav-tab-wrapper a.nav-tab-active {
|
30 |
background: #fff;
|
32 |
.form-table {
|
33 |
margin-top: 0;
|
34 |
padding-top: 0.5em;
|
35 |
+
margin-bottom: 20px;
|
36 |
}
|
37 |
h2.nav-tab-wrapper {
|
38 |
border: none;
|
40 |
}
|
41 |
h2.ead-title {
|
42 |
background: url(../images/icon-ead.png) no-repeat 0 14px;
|
43 |
+
padding-left: 46px !important;
|
44 |
+
padding-bottom: 25px !important;
|
45 |
}
|
46 |
.ead-left-wrap {
|
47 |
float: left;
|
48 |
width: 100%;
|
49 |
-moz-box-sizing: border-box;
|
50 |
+
-webkit-box-sizing: border-box;
|
51 |
+
box-sizing: border-box;
|
52 |
+
padding-right: 340px;
|
53 |
+
margin-right: -340px;
|
54 |
+
}
|
55 |
+
.ead-left-wrap h3{
|
56 |
+
font-weight: 300;
|
57 |
+
font-size: 20px;
|
58 |
+
margin: 0 0 20px;
|
59 |
+
}
|
60 |
+
.ead-form-footer{
|
61 |
+
margin: 0 -20px;
|
62 |
+
padding: 20px;
|
63 |
+
background: #f5f5f5;
|
64 |
+
border-top: 1px solid #ddd;
|
65 |
+
-webkit-box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);
|
66 |
+
box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);
|
67 |
+
overflow: hidden;
|
68 |
+
}
|
69 |
+
.ead-form-footer p{
|
70 |
+
margin: 0;
|
71 |
+
float: right;
|
72 |
+
padding: 0;
|
73 |
+
}
|
74 |
+
.ead-form-footer .button{
|
75 |
+
height: 42px;
|
76 |
}
|
77 |
.ead-right-wrap {
|
78 |
float: right;
|
79 |
max-width: 300px;
|
|
|
|
|
80 |
color: #372e2e;
|
81 |
}
|
82 |
+
.ead-banner{
|
83 |
+
text-align: center;
|
84 |
+
padding-top: 20px;
|
85 |
+
}
|
86 |
+
.ead-right-inner {
|
87 |
+
background: #fff;
|
88 |
+
margin-bottom: 10px;
|
89 |
+
}
|
90 |
+
.ead-right-inner h3{
|
91 |
+
margin: 0;
|
92 |
+
padding: 15px 20px;
|
93 |
+
border-bottom: 1px solid #ddd;
|
94 |
+
margin-bottom: 15px;
|
95 |
+
font-size: 14px;
|
96 |
+
color: #5b5b5b;
|
97 |
+
font-weight: normal;
|
98 |
+
}
|
99 |
+
.ead-right-inner ol{
|
100 |
+
padding: 0 20px 15px;
|
101 |
+
margin: 0 0 0 20px;
|
102 |
+
}
|
103 |
+
.ead-right-inner ol a{
|
104 |
+
text-decoration: none;
|
105 |
+
}
|
106 |
.author-info {
|
107 |
+
padding: 10px 15px;
|
108 |
text-align: center;
|
109 |
}
|
110 |
.awsm-social {
|
111 |
text-align: center;
|
112 |
list-style-type: none;
|
113 |
padding: 15px;
|
|
|
114 |
border-bottom: 1px solid #dadada;
|
115 |
+
margin: 0;
|
116 |
}
|
117 |
.awsm-social li {
|
118 |
display: inline-block;
|
119 |
margin: 0 6px;
|
120 |
}
|
121 |
+
.awsm-icon {
|
122 |
background: url(../images/ead-icon-sprite.jpg) no-repeat;
|
123 |
display: block;
|
124 |
width: 21px;
|
126 |
text-indent: -999999px;
|
127 |
opacity: 0.46;
|
128 |
}
|
129 |
+
.awsm-icon:hover {
|
130 |
opacity: 1;
|
131 |
}
|
132 |
+
.awsm-icon-facebook {} .awsm-icon-twitter {
|
|
|
|
|
|
|
133 |
background-position: -26px 0;
|
134 |
}
|
135 |
+
.awsm-icon-github {
|
136 |
background-position: -52px 0;
|
137 |
}
|
138 |
+
.awsm-icon-behance {
|
139 |
background-position: -78px 0;
|
140 |
width: 28px;
|
141 |
}
|
142 |
+
.awsm-icon-dribbble {
|
143 |
background-position: right 0;
|
144 |
}
|
145 |
+
.paypal {
|
146 |
+
text-align: center;
|
147 |
+
}
|
148 |
+
.paypal input.small {
|
149 |
+
vertical-align: top;
|
150 |
+
margin-right: 20px;
|
151 |
+
}
|
152 |
+
.paypal .donate-btn {
|
153 |
+
vertical-align: top;
|
154 |
+
padding: 0;
|
155 |
+
}
|
156 |
input.small {
|
157 |
max-width: 60px;
|
158 |
}
|
159 |
+
.ead-frame-width {
|
160 |
margin-right: 15px;
|
161 |
margin-bottom: 10px;
|
162 |
}
|
163 |
+
.ead-frame-height {
|
164 |
margin-bottom: 10px;
|
165 |
}
|
166 |
+
.row-col{
|
167 |
+
margin: 0 -5px 10px;
|
168 |
+
overflow: hidden;
|
169 |
+
}
|
170 |
+
.col-2{
|
171 |
+
float: left;
|
172 |
+
padding: 0 5px;
|
173 |
+
width: 50%;
|
174 |
+
-moz-box-sizing: border-box;
|
175 |
+
-webkit-box-sizing: border-box;
|
176 |
+
box-sizing: border-box;
|
177 |
+
}
|
178 |
+
.col-2 a{
|
179 |
+
background: #fff;
|
180 |
+
display: block;
|
181 |
+
text-align: center;
|
182 |
+
padding: 25px 10px;
|
183 |
+
text-decoration: none;
|
184 |
+
}
|
185 |
+
|
186 |
+
.col-2 a img{
|
187 |
+
display: block;
|
188 |
+
margin: 0 auto 10px;
|
189 |
+
}
|
190 |
+
span.note, .ead_supported {
|
191 |
font-size: 12px;
|
192 |
color: #999;
|
193 |
}
|
|
|
194 |
div.awsm-error, div.awsm-updated {
|
195 |
margin: 5px 0 2px;
|
196 |
border-width: 1px 1px 1px 4px;
|
197 |
border-style: solid;
|
198 |
-webkit-border-radius: 4px;
|
199 |
+
border-radius: 4px;
|
200 |
}
|
201 |
div.awsm-updated {
|
202 |
background-color: #fff;
|
212 |
margin: 0.5em 0;
|
213 |
padding: 2px;
|
214 |
}
|
215 |
+
.ead_doller {
|
216 |
display: inline-block;
|
217 |
vertical-align: top;
|
218 |
margin: 5px 5px 0 0;
|
219 |
font-weight: bold;
|
220 |
}
|
221 |
+
#supportform label {
|
222 |
+
display: block;
|
223 |
+
margin-bottom: 5px;
|
224 |
+
font-weight: bold;
|
225 |
+
}
|
226 |
+
.text-input {
|
227 |
+
width: 100%;
|
228 |
+
height: 40px;
|
229 |
+
-moz-box-sizing: border-box;
|
230 |
+
-webkit-box-sizing: border-box;
|
231 |
+
box-sizing: border-box;
|
232 |
+
}
|
233 |
+
#supportform textarea {
|
234 |
+
-moz-box-sizing: border-box;
|
235 |
+
-webkit-box-sizing: border-box;
|
236 |
+
box-sizing: border-box;
|
237 |
+
width: 100%;
|
238 |
+
}
|
239 |
+
.ead_supported span {
|
240 |
+
display: block;
|
241 |
+
font-weight: bold;
|
242 |
+
margin-top: 10px;
|
243 |
+
}
|
244 |
+
.supportedlist ul {
|
245 |
+
margin-top: 5px;
|
246 |
+
}
|
247 |
+
.supportedlist li {
|
248 |
+
padding-left: 17px;
|
249 |
+
position: relative;
|
250 |
+
}
|
251 |
+
.supportedlist li span {
|
252 |
+
position: absolute;
|
253 |
+
left: 0;
|
254 |
+
top: 3px;
|
255 |
+
width: 11px;
|
256 |
+
height: 11px;
|
257 |
+
margin: 0;
|
258 |
+
}
|
259 |
+
.supportedlist li span.ead-check {
|
260 |
+
background: url(../images/icon-yes.png) no-repeat;
|
261 |
+
}
|
262 |
+
.supportedlist li span.ead-close {
|
263 |
+
background: url(../images/icon-no.png) no-repeat;
|
264 |
+
}
|
265 |
+
.col-left {
|
266 |
+
float: left;
|
267 |
+
width: 47%;
|
268 |
+
margin-right: 6%;
|
269 |
+
}
|
270 |
+
.col-right {
|
271 |
+
float: right;
|
272 |
+
width: 47%;
|
273 |
+
}
|
274 |
@media (max-width: 800px) {
|
275 |
.ead-left-wrap {
|
276 |
float: none;
|
278 |
margin-bottom: 30px;
|
279 |
padding-right: 0;
|
280 |
margin-right: 0;
|
281 |
+
}
|
282 |
+
.ead-right-wrap {
|
283 |
+
float: none;
|
284 |
+
width: 100%;
|
285 |
+
}
|
|
|
286 |
}
|
287 |
@media (max-width: 980px) {
|
288 |
+
.col-left, .col-right {
|
289 |
+
float: none;
|
290 |
+
width: 100%;
|
291 |
+
margin-right: 0%;
|
292 |
+
}
|
293 |
+
}
|
images/donate.gif
DELETED
Binary file
|
images/ead-small.png
CHANGED
Binary file
|
images/eadplus-banner.png
ADDED
Binary file
|
images/icon-box.png
ADDED
Binary file
|
images/icon-drive.png
ADDED
Binary file
|
images/icon-dropbox.png
ADDED
Binary file
|
images/icon-link.png
ADDED
Binary file
|
images/icon-upload.png
ADDED
Binary file
|
images/star.gif
ADDED
Binary file
|
images/ticket.gif
ADDED
Binary file
|
inc/functions.php
DELETED
@@ -1,296 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Dropdown Builder
|
4 |
-
*
|
5 |
-
* @since 1.0
|
6 |
-
* @return String select html
|
7 |
-
*/
|
8 |
-
function ead_selectbuilder( $name, $options,$selected="",$class="") {
|
9 |
-
if(is_array($options)):
|
10 |
-
echo "<select name=\"$name\" id=\"$name\" class=\"$class\">";
|
11 |
-
foreach ($options as $key => $option) {
|
12 |
-
echo "<option value=\"$key\"";
|
13 |
-
if ( ! empty( $helptext ) ) {
|
14 |
-
echo " title=\"$helptext\"";
|
15 |
-
}
|
16 |
-
if ( $key == $selected ) {
|
17 |
-
echo ' selected="selected"';
|
18 |
-
}
|
19 |
-
echo ">$option</option>\n";
|
20 |
-
}
|
21 |
-
echo '</select>';
|
22 |
-
else:
|
23 |
-
|
24 |
-
endif;
|
25 |
-
}
|
26 |
-
/**
|
27 |
-
* Human Readable filesize
|
28 |
-
*
|
29 |
-
* @since 1.0
|
30 |
-
* @return Human readable file size
|
31 |
-
* @note Replaces old gde_sanitizeOpts function
|
32 |
-
*/
|
33 |
-
function ead_human_filesize($bytes, $decimals = 2) {
|
34 |
-
$size = array('B','KB','MB','GB','TB','PB','EB','ZB','YB');
|
35 |
-
$factor = floor((strlen($bytes) - 1) / 3);
|
36 |
-
return sprintf("%.{$decimals}f ", $bytes / pow(1024, $factor)) . @$size[$factor];
|
37 |
-
}
|
38 |
-
|
39 |
-
/**
|
40 |
-
* Sanitize dimensions (width, height)
|
41 |
-
*
|
42 |
-
* @since 1.0
|
43 |
-
* @return string Sanitized dimensions, or false if value is invalid
|
44 |
-
* @note Replaces old gde_sanitizeOpts function
|
45 |
-
*/
|
46 |
-
function ead_sanitize_dims( $dim ) {
|
47 |
-
// remove any spacing junk
|
48 |
-
$dim = trim( str_replace( " ", "", $dim ) );
|
49 |
-
|
50 |
-
if ( ! strstr( $dim, '%' ) ) {
|
51 |
-
$type = "px";
|
52 |
-
$dim = preg_replace( "/[^0-9]*/", '', $dim );
|
53 |
-
} else {
|
54 |
-
$type = "%";
|
55 |
-
$dim = preg_replace( "/[^0-9]*/", '', $dim );
|
56 |
-
if ( (int) $dim > 100 ) {
|
57 |
-
$dim = "100";
|
58 |
-
}
|
59 |
-
}
|
60 |
-
|
61 |
-
if ( $dim ) {
|
62 |
-
return $dim.$type;
|
63 |
-
} else {
|
64 |
-
return false;
|
65 |
-
}
|
66 |
-
}
|
67 |
-
/**
|
68 |
-
* Sanitize provider
|
69 |
-
*
|
70 |
-
* @since 1.0.2
|
71 |
-
* @return string Sanitized provider
|
72 |
-
*/
|
73 |
-
function ead_sanitize_provider( $provider ) {
|
74 |
-
$providerList = array('google','microsoft');
|
75 |
-
if (in_array($provider, $providerList) ) {
|
76 |
-
return $provider;
|
77 |
-
} else {
|
78 |
-
return 'google';
|
79 |
-
}
|
80 |
-
}
|
81 |
-
/**
|
82 |
-
* Validate File url
|
83 |
-
*
|
84 |
-
* @since 1.0
|
85 |
-
* @return string Download link
|
86 |
-
*/
|
87 |
-
function ead_validateurl($url){
|
88 |
-
$types = ead_validmimeTypes();
|
89 |
-
$url = esc_url( $url, array( 'http', 'https' ));
|
90 |
-
$remote = wp_remote_head($url);
|
91 |
-
$json['status'] = false;
|
92 |
-
$json['message'] = '';
|
93 |
-
if (wp_remote_retrieve_response_code($remote) ==200) {
|
94 |
-
//Gzip Support
|
95 |
-
$filename = pathinfo($url);
|
96 |
-
$doctypes = ead_validmimeTypes();
|
97 |
-
if(ead_validType($url,$doctypes)){
|
98 |
-
$json['status'] =true;
|
99 |
-
$json['message'] = __("Done",'ead');
|
100 |
-
if(isset($filename)){
|
101 |
-
$json['file']['filename'] = $filename['basename'];
|
102 |
-
}else{
|
103 |
-
$json['file']['filename'] = __("Document",'ead');
|
104 |
-
}
|
105 |
-
if(isset($remote['headers']['content-length'])){
|
106 |
-
$json['file']['filesizeHumanReadable'] = ead_human_filesize($remote['headers']['content-length']);
|
107 |
-
}else{
|
108 |
-
$json['file']['filesizeHumanReadable'] = 0;
|
109 |
-
}
|
110 |
-
}else{
|
111 |
-
$json['message'] = __("File format is not supported.",'ead');
|
112 |
-
$json['status'] = false;
|
113 |
-
}
|
114 |
-
}elseif(is_wp_error( $remote )){
|
115 |
-
$json['message'] = $remote->get_error_message();
|
116 |
-
$json['status'] =false;
|
117 |
-
}else{
|
118 |
-
$json['message'] = __('Sorry, the file URL is not valid.','ead');
|
119 |
-
$json['status'] =false;
|
120 |
-
}
|
121 |
-
return $json;
|
122 |
-
}
|
123 |
-
/**
|
124 |
-
* Get Provider url
|
125 |
-
*
|
126 |
-
* @since 1.0
|
127 |
-
* @return string iframe embed html
|
128 |
-
*/
|
129 |
-
function ead_getprovider($atts){
|
130 |
-
$embed = "";
|
131 |
-
$durl = "";
|
132 |
-
$default_width = ead_sanitize_dims( get_option('ead_width','100%') );
|
133 |
-
$default_height = ead_sanitize_dims( get_option('ead_height','500px') );
|
134 |
-
$default_provider = get_option('ead_provider','google');
|
135 |
-
$default_download = get_option('ead_download','none');
|
136 |
-
$show = false;
|
137 |
-
extract(shortcode_atts( array(
|
138 |
-
'url' => '',
|
139 |
-
'width' => $default_width,
|
140 |
-
'height' => $default_height,
|
141 |
-
'language' => 'en',
|
142 |
-
'viewer' => $default_provider,
|
143 |
-
'download' => $default_download
|
144 |
-
), $atts ) );
|
145 |
-
|
146 |
-
if($url):
|
147 |
-
$filedata = wp_remote_head( $url );
|
148 |
-
$durl = '';
|
149 |
-
|
150 |
-
if($download=='alluser' or $download=='all'){
|
151 |
-
$show = true;
|
152 |
-
}elseif($download=='logged' AND is_user_logged_in()){
|
153 |
-
$show = true;
|
154 |
-
}
|
155 |
-
if($show){
|
156 |
-
$filesize = 0;
|
157 |
-
$url = esc_url( $url, array( 'http', 'https' ));
|
158 |
-
|
159 |
-
if (isset($filedata['headers']['content-length'])) {
|
160 |
-
$filesize = ead_human_filesize($filedata['headers']['content-length']);
|
161 |
-
}else{
|
162 |
-
$filesize = 0;
|
163 |
-
}
|
164 |
-
$fileHtml = '';
|
165 |
-
if($filesize)
|
166 |
-
$fileHtml = ' ['.$filesize.']';
|
167 |
-
$durl = '<p class="embed_download"><a href="'.$url.'" download >'.__('Download','ead'). $fileHtml .' </a></p>';
|
168 |
-
}
|
169 |
-
|
170 |
-
$url = esc_url( $url, array( 'http', 'https' ));
|
171 |
-
$providerList = array('google','microsoft');
|
172 |
-
if(!in_array($viewer, $providerList)) $viewer = 'google';
|
173 |
-
$viewer = ead_autoviewer($url,$viewer) ;
|
174 |
-
switch ($viewer) {
|
175 |
-
case 'google':
|
176 |
-
$embedsrc = '//docs.google.com/viewer?url=%1$s&embedded=true&hl=%2$s';
|
177 |
-
$iframe = sprintf( $embedsrc,
|
178 |
-
urlencode( $url ),
|
179 |
-
esc_attr( $language )
|
180 |
-
);
|
181 |
-
break;
|
182 |
-
case 'microsoft':
|
183 |
-
$embedsrc ='//view.officeapps.live.com/op/embed.aspx?src=%1$s';
|
184 |
-
$iframe = sprintf( $embedsrc,
|
185 |
-
urlencode( $url )
|
186 |
-
);
|
187 |
-
break;
|
188 |
-
}
|
189 |
-
$style = 'style="width:%1$s; height:%2$s; border: none;"';
|
190 |
-
$stylelink = sprintf($style,
|
191 |
-
ead_sanitize_dims($width) ,
|
192 |
-
ead_sanitize_dims($height)
|
193 |
-
);
|
194 |
-
|
195 |
-
$iframe = '<iframe src="'.$iframe.'" '.$stylelink.'></iframe>';
|
196 |
-
$show = false;
|
197 |
-
$embed = $iframe.$durl;
|
198 |
-
else:
|
199 |
-
$embed = __('No Url Found','ead');
|
200 |
-
endif;
|
201 |
-
return $embed;
|
202 |
-
}
|
203 |
-
/**
|
204 |
-
* Select Supported Viewer
|
205 |
-
*
|
206 |
-
* @since 1.1
|
207 |
-
* @return string email html
|
208 |
-
*/
|
209 |
-
function ead_autoviewer($url,$viewer){
|
210 |
-
$autoviewer = $viewer;
|
211 |
-
if($viewer == 'microsoft'){
|
212 |
-
$doctypes = ead_microsoft_mimes();
|
213 |
-
if(!ead_validType($url ,$doctypes))
|
214 |
-
$autoviewer = 'google';
|
215 |
-
}
|
216 |
-
return $autoviewer;
|
217 |
-
}
|
218 |
-
/**
|
219 |
-
* Get Email node
|
220 |
-
*
|
221 |
-
* @since 1.0
|
222 |
-
* @return string email html
|
223 |
-
*/
|
224 |
-
function ead_getemailnode($emaildata,$postdata){
|
225 |
-
$emailhtml = "";
|
226 |
-
foreach ($emaildata as $key => $label) {
|
227 |
-
if($postdata[$key]){
|
228 |
-
$emailhtml .= '<tr bgcolor="#EAF2FA">
|
229 |
-
<td colspan="2"><font style="font-family:sans-serif;font-size:12px"><strong>'.$label.'</strong></font></td>
|
230 |
-
</tr>
|
231 |
-
<tr bgcolor="#FFFFFF">
|
232 |
-
<td width="20"> </td>
|
233 |
-
<td><font style="font-family:sans-serif;font-size:12px">'.$postdata[$key] .'</font></td>
|
234 |
-
</tr>';
|
235 |
-
}
|
236 |
-
}
|
237 |
-
return $emailhtml;
|
238 |
-
}
|
239 |
-
/**
|
240 |
-
* Validate Source mime type
|
241 |
-
*
|
242 |
-
* @since 1.0
|
243 |
-
* @return boolean
|
244 |
-
*/
|
245 |
-
function ead_validmimeTypes(){
|
246 |
-
include('mime_types.php');
|
247 |
-
return $mimetypes;
|
248 |
-
}
|
249 |
-
/**
|
250 |
-
* Checks Url Validity
|
251 |
-
*
|
252 |
-
* @since 1.0
|
253 |
-
* @return boolean
|
254 |
-
*/
|
255 |
-
function ead_validType( $url ,$doctypes) {
|
256 |
-
if ( is_array( $doctypes ) ) {
|
257 |
-
$allowed_ext = implode( "|", array_keys( $doctypes ) );
|
258 |
-
if ( preg_match( "/\.($allowed_ext)$/i", $url ) ) {
|
259 |
-
return true;
|
260 |
-
}
|
261 |
-
} else {
|
262 |
-
return false;
|
263 |
-
}
|
264 |
-
}
|
265 |
-
/**
|
266 |
-
* Get allowed Mime Types
|
267 |
-
*
|
268 |
-
* @since 1.0
|
269 |
-
* @return array Mimetypes
|
270 |
-
*/
|
271 |
-
function ead_validembedtypes(){
|
272 |
-
$doctypes=ead_validmimeTypes();
|
273 |
-
return $allowedtype = implode(',',$doctypes);
|
274 |
-
|
275 |
-
}
|
276 |
-
/**
|
277 |
-
* Get allowed Mime Types for microsoft
|
278 |
-
*
|
279 |
-
* @since 1.0
|
280 |
-
* @return array Mimetypes
|
281 |
-
*/
|
282 |
-
function ead_microsoft_mimes(){
|
283 |
-
$micro_mime=array(
|
284 |
-
'doc' => 'application/msword',
|
285 |
-
'pot|pps|ppt' => 'application/vnd.ms-powerpoint',
|
286 |
-
'xla|xls|xlt|xlw' => 'application/vnd.ms-excel',
|
287 |
-
'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
288 |
-
'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
|
289 |
-
'dotm' => 'application/vnd.ms-word.template.macroEnabled.12',
|
290 |
-
'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
291 |
-
'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12',
|
292 |
-
'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
293 |
-
);
|
294 |
-
return $micro_mime;
|
295 |
-
}
|
296 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/mime_types.php
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
<?php
|
|
|
|
|
2 |
$mimetypes = array(
|
3 |
// Text formats
|
4 |
'txt|asc|c|cc|h' => 'text/plain',
|
@@ -20,11 +22,12 @@
|
|
20 |
'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
21 |
'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12',
|
22 |
'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
|
23 |
// iWork formats
|
24 |
'pages' => 'application/vnd.apple.pages',
|
25 |
//Additional Mime Types
|
26 |
'svg' => 'image/svg+xml',
|
27 |
);
|
28 |
-
$extensions['all'] = array('.css','.js','.pdf','.ai','.tif','.tiff','.doc','.txt','.asc','.c','.cc','.h','.pot','.pps','.ppt','.xla','.xls','.xlt','.xlw','.docx','.dotx','.dotm','.xlsx','.xlsm','.pptx','.pages','.svg');
|
29 |
-
$extensions['ms'] = array('.doc','.pot','.pps','.ppt','.xla','.xls','.xlt','.xlw','.docx','.dotx','.dotm','.xlsx','.xlsm','.pptx');
|
30 |
?>
|
1 |
<?php
|
2 |
+
if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
3 |
+
|
4 |
$mimetypes = array(
|
5 |
// Text formats
|
6 |
'txt|asc|c|cc|h' => 'text/plain',
|
22 |
'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
23 |
'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12',
|
24 |
'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
25 |
+
'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
|
26 |
// iWork formats
|
27 |
'pages' => 'application/vnd.apple.pages',
|
28 |
//Additional Mime Types
|
29 |
'svg' => 'image/svg+xml',
|
30 |
);
|
31 |
+
$extensions['all'] = array('.css','.js','.pdf','.ai','.tif','.tiff','.doc','.txt','.asc','.c','.cc','.h','.pot','.pps','.ppt','.xla','.xls','.xlt','.xlw','.docx','.dotx','.dotm','.xlsx','.xlsm','.pptx','.pages','.svg','.ppsx');
|
32 |
+
$extensions['ms'] = array('.doc','.pot','.pps','.ppt','.xla','.xls','.xlt','.xlw','.docx','.dotx','.dotm','.xlsx','.xlsm','.pptx','.ppsx');
|
33 |
?>
|
inc/popup.php
CHANGED
@@ -1,79 +1,90 @@
|
|
1 |
-
<?php if
|
2 |
<div id="embed-popup-wrap">
|
3 |
<div id="embed-popup">
|
4 |
-
<button title="
|
5 |
-
<div id="popup-header">
|
6 |
-
<h1><?php _e('Add Document'
|
7 |
</div>
|
8 |
-
<div class="section">
|
9 |
-
<div id="
|
10 |
-
<div class="
|
11 |
-
<
|
12 |
-
|
13 |
-
<li
|
|
|
|
|
|
|
|
|
14 |
</ul>
|
15 |
-
<
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
<input name="awsm_url" type="text" class="opt dwl input-group-text" id="awsm_url"/>
|
23 |
-
<input type="button" value="Add URL" class="ead-btn button-primary input-group-btn" id="add_url"/>
|
24 |
-
</div>
|
25 |
</form>
|
26 |
-
</div><!--
|
27 |
<div class="upload-success">
|
28 |
<div class="inner">
|
29 |
<div class="uploaded-doccument">
|
30 |
-
<p id="
|
31 |
-
<span id="
|
32 |
</div>
|
33 |
-
<a class="ead-btn button" id="adv_options"><?php _e('Advanced Options','ead');?></a>
|
34 |
<div class="clear"></div>
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
</ul>
|
64 |
</div>
|
65 |
-
|
66 |
-
|
67 |
-
<div class="mceActionPanel">
|
68 |
<div style="float: right">
|
69 |
-
<input type="button" id="
|
70 |
</div>
|
71 |
|
72 |
<div style="float: left">
|
73 |
-
<input type="button" name="cancel" class="ead-btn button
|
74 |
</div>
|
75 |
<div class="clear"></div>
|
76 |
</div>
|
77 |
-
|
78 |
</div>
|
79 |
-
</div>
|
1 |
+
<?php if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
|
2 |
<div id="embed-popup-wrap">
|
3 |
<div id="embed-popup">
|
4 |
+
<button title="<?php _e('Close',$this->text_domain);?>" type="button" class="mfp-close">×</button>
|
5 |
+
<div id="popup-header" class="ead-popup-header">
|
6 |
+
<h1><?php _e('Add Document',$this->text_domain);?></h1>
|
7 |
</div>
|
8 |
+
<div class="ead-section">
|
9 |
+
<div id="embed-message" class="awsm-error" style="display:none;"><p></p></div>
|
10 |
+
<div class="ead-container">
|
11 |
+
<form action="" onSubmit="return false" method="post" enctype="multipart/form-data" id="docuploader">
|
12 |
+
<ul class="ead-options">
|
13 |
+
<li><a href="#" id="upload-doc"><span><img src="<?php echo $this->plugin_url;?>images/icon-upload.png" alt="Upload document" /><?php _e('Upload Document',$this->text_domain);?></span></a></li>
|
14 |
+
<li><a href="#" id="add-ead-document"><span><img src="<?php echo $this->plugin_url;?>images/icon-link.png" alt="Add From URL" /><?php _e('Add from URL',$this->text_domain);?></span></a></li>
|
15 |
+
<li><?php echo $this->providerlink('Drive') ;?></li>
|
16 |
+
<li><?php echo $this->providerlink('Dropbox') ;?></li>
|
17 |
+
<li><?php echo $this->providerlink('Box') ;?></li>
|
18 |
</ul>
|
19 |
+
<div class="box addurl-box">
|
20 |
+
<label for="awsm-url"><?php _e('Enter document URL',$this->text_domain);?></label>
|
21 |
+
<input name="awsm-url" type="text" class="opt dwl input-group-text" placeholder="Eg: http://www.yoursite.com/file.pdf" id="awsm-url"/>
|
22 |
+
<input type="button" value="<?php _e('Add URL',$this->text_domain);?>" class="ead-btn button-primary input-group-btn" id="ead-add-url"/>
|
23 |
+
<div class="clear"></div>
|
24 |
+
<a href="#" class="go-back">← <?php _e('back',$this->text_domain);?></a>
|
25 |
+
</div>
|
|
|
|
|
|
|
26 |
</form>
|
27 |
+
</div><!--ead-container-->
|
28 |
<div class="upload-success">
|
29 |
<div class="inner">
|
30 |
<div class="uploaded-doccument">
|
31 |
+
<p id="ead-filename"></p>
|
32 |
+
<span id="ead-filesize"></span>
|
33 |
</div>
|
|
|
34 |
<div class="clear"></div>
|
35 |
+
</div>
|
36 |
+
<div class="advanced-options">
|
37 |
+
<h3><?php _e('Advanced Options',$this->text_domain);?></span></h3>
|
38 |
+
<ul class="option-fields">
|
39 |
+
<li>
|
40 |
+
<div class="f-left"><label><?php _e('Width',$this->text_domain);?></label> <input type="text" name="width" class="embedval input-small" id="ead-width" value="<?php echo get_option('ead-width', '100%' );?>"></div>
|
41 |
+
<div class="f-left"><label><?php _e('Height',$this->text_domain);?></label> <input type="text" name="height" class="embedval input-small" id="ead-height" value="<?php echo get_option('ead_height', '100%' );?>"></div>
|
42 |
+
<div class="f-left" id="ead-downloadc">
|
43 |
+
<label><?php _e('Show Download Link',$this->text_domain);?></label>
|
44 |
+
<?php
|
45 |
+
$downoptions= array('all' => __('For all users',$this->text_domain),'logged' => __('For Logged-in users',$this->text_domain),'none' => __('No Download',$this->text_domain));
|
46 |
+
$this->selectbuilder('ead-download', $downoptions,esc_attr( get_option('ead_download')),'ead-usc');
|
47 |
+
?>
|
48 |
+
</div>
|
49 |
+
<div class="f-left" id="ead-download-text">
|
50 |
+
<label><?php _e('Download Text',$this->text_domain);?></label>
|
51 |
+
<input type="text" name="text" class="embedval" id="ead-text" value="<?php echo get_option('ead_text', 'Download' );?>">
|
52 |
+
</div>
|
53 |
+
<div class="f-left last" id="new-provider">
|
54 |
+
<label><?php _e('Viewer',$this->text_domain);?></label>
|
55 |
+
<?php
|
56 |
+
$providers = array('google' => __('Google Docs Viewer',$this->text_domain),'microsoft' => __('Microsoft Office Online',$this->text_domain));
|
57 |
+
$this->selectbuilder('ead-provider', $providers,esc_attr( get_option('ead_provider','google')),'ead-usc');
|
58 |
+
?>
|
59 |
+
</div>
|
60 |
+
<div class="f-left last" id="ead-pseudo" style="display:none">
|
61 |
+
<label><?php _e('Viewer',$this->text_domain);?></label>
|
62 |
+
<select name="ead-pseudo" disabled>
|
63 |
+
<option value="box"><?php _e('Box',$this->text_domain);?></option>
|
64 |
+
<option value="drive"><?php _e('Drive',$this->text_domain);?></option>
|
65 |
+
</select>
|
66 |
+
</div>
|
67 |
+
<div class="clear"></div>
|
68 |
+
</li>
|
69 |
|
70 |
+
<li>
|
71 |
+
<label><?php _e('Shortcode Preview',$this->text_domain); ?></label>
|
72 |
+
<textarea name="shortcode" style="width:100%" id="shortcode" readonly="readonly"></textarea>
|
73 |
+
</li>
|
74 |
</ul>
|
75 |
</div>
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
+
<div class="mceActionPanel ead-action-panel">
|
79 |
<div style="float: right">
|
80 |
+
<input type="button" id="insert-doc" name="insert" data-txt="<?php _e('Insert', $this->text_domain); ?>" data-loading="<?php _e('Loading...', $this->text_domain); ?>" class="ead-btn button button-primary button-medium" value="<?php _e('Insert', $this->text_domain); ?>" disabled/>
|
81 |
</div>
|
82 |
|
83 |
<div style="float: left">
|
84 |
+
<input type="button" name="cancel" class="ead-btn button cancel-embed button-medium" value="<?php _e('Cancel', $this->text_domain); ?>" />
|
85 |
</div>
|
86 |
<div class="clear"></div>
|
87 |
</div>
|
88 |
+
|
89 |
</div>
|
90 |
+
</div>
|
inc/settings.php
CHANGED
@@ -1,52 +1,13 @@
|
|
1 |
-
<?php if
|
2 |
<div class="wrap">
|
3 |
-
<h2 class="ead-title"
|
4 |
-
<h2 class="nav-tab-wrapper">
|
5 |
-
<a class="nav-tab nav-tab-active" href="#" data-tab="general"><?php _e( 'General Settings', $this->text_domain); ?></a>
|
6 |
-
<a class="nav-tab " href="#" data-tab="support"><?php _e( 'Support', $this->text_domain); ?></a>
|
7 |
-
</h2>
|
8 |
<div class="ead-left-wrap">
|
9 |
|
10 |
<div class="tabs visible" id="general">
|
|
|
11 |
<form method="post" action="options.php">
|
12 |
<?php settings_fields( 'ead-settings-group' ); ?>
|
13 |
<table class="form-table">
|
14 |
-
<tr valign="top">
|
15 |
-
<th scope="row"><?php _e('Embed Using',$this->text_domain);?></th>
|
16 |
-
<td>
|
17 |
-
<?php
|
18 |
-
$providers= array('google' => __('Google Docs Viewer',$this->text_domain),'microsoft' => __('Microsoft Office Online',$this->text_domain));
|
19 |
-
ead_selectbuilder('ead_provider', $providers,esc_attr( get_option('ead_provider','google')));
|
20 |
-
?>
|
21 |
-
<div class="ead_supported">
|
22 |
-
<span><?php _e('Supported file formats',$this->text_domain);?></span>
|
23 |
-
<div class="supportedlist hidden" id="ead_google">
|
24 |
-
<ul>
|
25 |
-
<li><span class="ead-check"></span>Microsoft Word (docx, docm, dotm, dotx)</li>
|
26 |
-
<li><span class="ead-check"></span>Microsoft Excel (xlsx, xlsb, xls, xlsm)</li>
|
27 |
-
<li><span class="ead-check"></span>Microsoft PowerPoint (pptx, ppsx, ppt, pps, pptm, potm, ppam, potx, ppsm)</li>
|
28 |
-
<li><span class="ead-check"></span>Adobe Portable Document Format (pdf)</li>
|
29 |
-
<li><span class="ead-check"></span>Text files (txt)</li>
|
30 |
-
<li><span class="ead-check"></span>TIFF Images (tif, tiff)</li>
|
31 |
-
<li><span class="ead-check"></span>Adobe Illustrator (ai)</li>
|
32 |
-
<li><span class="ead-check"></span>Scalable Vector Graphics (svg)</li>
|
33 |
-
</ul>
|
34 |
-
</div>
|
35 |
-
<div class="supportedlist hidden" id="ead_microsoft">
|
36 |
-
<ul>
|
37 |
-
<li><span class="ead-check"></span>Microsoft Word (docx, docm, dotm, dotx)</li>
|
38 |
-
<li><span class="ead-check"></span>Microsoft Excel (xlsx, xlsb, xls, xlsm)</li>
|
39 |
-
<li><span class="ead-check"></span>Microsoft PowerPoint (pptx, ppsx, ppt, pps, pptm, potm, ppam, potx, ppsm)</li>
|
40 |
-
<li><span class="ead-close"></span>Adobe Portable Document Format (pdf)</li>
|
41 |
-
<li><span class="ead-close"></span>Text files (txt)</li>
|
42 |
-
<li><span class="ead-close"></span>TIFF Images (tif, tiff)</li>
|
43 |
-
<li><span class="ead-close"></span>Adobe Illustrator (ai)</li>
|
44 |
-
<li><span class="ead-close"></span>Scalable Vector Graphics (svg)</li>
|
45 |
-
</ul>
|
46 |
-
</div>
|
47 |
-
</div>
|
48 |
-
</td>
|
49 |
-
</tr>
|
50 |
<tr valign="top">
|
51 |
<th scope="row"><?php _e('Default Size', $this->text_domain); ?></th>
|
52 |
<td>
|
@@ -55,7 +16,7 @@
|
|
55 |
</div>
|
56 |
<div class="f-left ead-frame-height">
|
57 |
<?php _e('Height', $this->text_domain); ?>
|
58 |
-
<input type="text" class="small" name="ead_height" value="<?php echo esc_attr( get_option('ead_height','
|
59 |
</div>
|
60 |
<div class="clear"></div>
|
61 |
<span class="note"><?php _e('Enter values in pixels or percentage (Example: 500px or 100%)', $this->text_domain); ?></span>
|
@@ -66,137 +27,57 @@
|
|
66 |
<td>
|
67 |
<?php
|
68 |
$downoptions= array('alluser' => __('For all users',$this->text_domain),'logged' => __('For Logged-in users',$this->text_domain),'none' => __('No Download',$this->text_domain));
|
69 |
-
|
70 |
?>
|
71 |
</td>
|
72 |
</tr>
|
73 |
<tr valign="top">
|
74 |
-
<th scope="row"><?php _e('
|
75 |
<td>
|
76 |
-
<?php
|
77 |
-
$downoptions= array('1' => __('Auto-embed supported documents',$this->text_domain),'0' => __('Insert as link (WordPress Default)',$this->text_domain));
|
78 |
-
ead_selectbuilder('ead_mediainsert', $downoptions,esc_attr( get_option('ead_mediainsert','1')));
|
79 |
-
?>
|
80 |
</td>
|
81 |
</tr>
|
82 |
</table>
|
|
|
83 |
<?php submit_button(); ?>
|
|
|
84 |
</form>
|
85 |
</div><!-- #general-->
|
86 |
-
<div class="
|
87 |
-
<
|
88 |
-
|
89 |
-
<?php $current_user = wp_get_current_user(); ?>
|
90 |
-
<form id="supportform" action="">
|
91 |
-
<p>
|
92 |
-
<label><?php _e('Name', $this->text_domain); ?><span class="required">*</span></label>
|
93 |
-
<input type="text" name="site_name" value="<?php echo $current_user->display_name; ?>" class="text-input" />
|
94 |
-
</p>
|
95 |
-
<p>
|
96 |
-
<label><?php _e('Email ID', $this->text_domain); ?><span class="required">*</span></label>
|
97 |
-
<input type="email" name="email_id" value="<?php echo $current_user->user_email; ?>" class="text-input"/>
|
98 |
-
</p>
|
99 |
-
<p>
|
100 |
-
<label><?php _e('Problem', $this->text_domain); ?><span class="required">*</span></label>
|
101 |
-
<textarea name="problem"></textarea>
|
102 |
-
</p>
|
103 |
-
<p class="submit">
|
104 |
-
<input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e('Submit', $this->text_domain); ?>">
|
105 |
-
</p>
|
106 |
-
</form>
|
107 |
-
</div>
|
108 |
-
<div class="col-right">
|
109 |
-
<p><strong>Frequently Reported Issues</strong></p>
|
110 |
-
<p>
|
111 |
-
<strong>1. File not found error in my localhost site.</strong><br/>
|
112 |
-
The viewers (Google Docs Viewer and Microsoft Office Online) do not support locally hosted files. <span style="border-bottom: 1px solid;">Your document has to be available online for the viewers to access.</span>
|
113 |
-
</p>
|
114 |
-
<p>
|
115 |
-
<strong>2. Google Docs Viewer shows bandwidth exceeded error.</strong><br/>
|
116 |
-
The issue is caused by Google Docs Viewer, not the plugin. Google Docs Viewer is a standalone documents viewer which doesn't limit bandwidth. When the problem occurs, usually reloading the page will result in the document loading properly. So it looks more like a bug from their side. Many developers reported the same issue in Google Developer Forums. Hope it will be fixed soon.
|
117 |
-
</p>
|
118 |
-
</div>
|
119 |
-
<div class="clear"></div>
|
120 |
-
</div><!-- #support-->
|
121 |
</div><!-- .ead-left-wrap -->
|
122 |
<div class="ead-right-wrap">
|
123 |
-
<
|
124 |
-
|
125 |
-
This plugin is developed <br/>by <a href="http://awsm.in" target="_blank" title="AWSM Innovations">AWSM Innovations.</a>
|
126 |
-
</div><!-- .author-info -->
|
127 |
<ul class="awsm-social">
|
128 |
<li><a href="https://www.facebook.com/awsminnovations" target="_blank" title="AWSM Innovations"><span class="awsm-icon awsm-icon-facebook">Facebook</span></a></li>
|
129 |
<li><a href="https://twitter.com/awsmin" target="_blank" title="AWSM Innovations"><span class="awsm-icon awsm-icon-twitter">Twitter</span></a></li>
|
130 |
<li><a href="https://github.com/awsmin" target="_blank" title="AWSM Innovations"><span class="awsm-icon awsm-icon-github">Github</span></a></li>
|
131 |
<li><a href="https://www.behance.net/awsmin" target="_blank" title="AWSM Innovations"><span class="awsm-icon awsm-icon-behance">Behance</span></a></li>
|
132 |
</ul>
|
133 |
-
|
134 |
-
<
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
<
|
147 |
-
<
|
148 |
-
<
|
149 |
-
|
150 |
-
|
|
|
|
|
|
|
151 |
</div>
|
152 |
</div><!-- .ead-right-wrap -->
|
153 |
<div class="clear"></div>
|
154 |
-
</div><!-- .wrap -->
|
155 |
-
<script type="text/javascript">
|
156 |
-
jQuery(document).ready(function ($) {
|
157 |
-
|
158 |
-
jQuery( ".nav-tab" ).click(function(event) {
|
159 |
-
event.preventDefault();
|
160 |
-
$('.nav-tab').removeClass('nav-tab-active');
|
161 |
-
$(this).addClass('nav-tab-active');
|
162 |
-
var tab = '#'+ $(this).data('tab');
|
163 |
-
$(".tabs").hide();
|
164 |
-
$(tab).show();
|
165 |
-
});
|
166 |
-
$( "#supportform" ).submit(function( event ) {
|
167 |
-
event.preventDefault();
|
168 |
-
$.ajax({
|
169 |
-
type: "POST",
|
170 |
-
url:"<?php echo get_option('home')?>/wp-admin/admin-ajax.php",
|
171 |
-
dataType: 'json',
|
172 |
-
data: { action: 'supportform' , contact : $("#supportform").serialize()},
|
173 |
-
success: function(data)
|
174 |
-
{
|
175 |
-
supportmessage(data.status,data.message);
|
176 |
-
},
|
177 |
-
error: function(jqXHR, textStatus, errorThrown)
|
178 |
-
{
|
179 |
-
supportmessage(false,'Request failed');
|
180 |
-
}
|
181 |
-
});
|
182 |
-
});
|
183 |
-
function supportmessage(status,message){
|
184 |
-
if(status){
|
185 |
-
$('#embed_message').removeClass('awsm-error').addClass('awsm-updated');
|
186 |
-
$('#embed_message p').html(message);
|
187 |
-
} else{
|
188 |
-
$('#embed_message').removeClass('awsm-updated').addClass('awsm-error');
|
189 |
-
$('#embed_message p').html(message);
|
190 |
-
}
|
191 |
-
}
|
192 |
-
suppportedlist();
|
193 |
-
function suppportedlist(){
|
194 |
-
var provider = '#ead_'+$('#ead_provider').val();
|
195 |
-
$('.supportedlist').hide();
|
196 |
-
$(provider).show();
|
197 |
-
}
|
198 |
-
$('#ead_provider').live('change', function(e) {
|
199 |
-
suppportedlist();
|
200 |
-
});
|
201 |
-
});
|
202 |
-
</script>
|
1 |
+
<?php if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
|
2 |
<div class="wrap">
|
3 |
+
<h2 class="ead-title">Embed Any Document by AWSM.in</h2>
|
|
|
|
|
|
|
|
|
4 |
<div class="ead-left-wrap">
|
5 |
|
6 |
<div class="tabs visible" id="general">
|
7 |
+
<h3><?php _e('General Settings', $this->text_domain); ?></h3>
|
8 |
<form method="post" action="options.php">
|
9 |
<?php settings_fields( 'ead-settings-group' ); ?>
|
10 |
<table class="form-table">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
<tr valign="top">
|
12 |
<th scope="row"><?php _e('Default Size', $this->text_domain); ?></th>
|
13 |
<td>
|
16 |
</div>
|
17 |
<div class="f-left ead-frame-height">
|
18 |
<?php _e('Height', $this->text_domain); ?>
|
19 |
+
<input type="text" class="small" name="ead_height" value="<?php echo esc_attr( get_option('ead_height','100%') ); ?>" />
|
20 |
</div>
|
21 |
<div class="clear"></div>
|
22 |
<span class="note"><?php _e('Enter values in pixels or percentage (Example: 500px or 100%)', $this->text_domain); ?></span>
|
27 |
<td>
|
28 |
<?php
|
29 |
$downoptions= array('alluser' => __('For all users',$this->text_domain),'logged' => __('For Logged-in users',$this->text_domain),'none' => __('No Download',$this->text_domain));
|
30 |
+
$this->selectbuilder('ead_download', $downoptions,esc_attr( get_option('ead_download','none')));
|
31 |
?>
|
32 |
</td>
|
33 |
</tr>
|
34 |
<tr valign="top">
|
35 |
+
<th scope="row"><?php _e('Download Text',$this->text_domain);?></th>
|
36 |
<td>
|
37 |
+
<input type="text" class="" name="ead_text" value="<?php echo esc_attr( get_option('ead_text','Download') ); ?>" />
|
|
|
|
|
|
|
38 |
</td>
|
39 |
</tr>
|
40 |
</table>
|
41 |
+
<div class="ead-form-footer">
|
42 |
<?php submit_button(); ?>
|
43 |
+
</div>
|
44 |
</form>
|
45 |
</div><!-- #general-->
|
46 |
+
<div class="ead-banner">
|
47 |
+
<a href="http://goo.gl/wJTQlc" target="_blank"><img src="<?php echo $this->plugin_url;?>images/eadplus-banner.png"></a>
|
48 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
</div><!-- .ead-left-wrap -->
|
50 |
<div class="ead-right-wrap">
|
51 |
+
<div class="ead-right-inner">
|
52 |
+
<a href="http://awsm.in" target="_blank" title="AWSM Innovations"><img src="http://awsm.in/innovations/ead/logo2.jpg" alt="AWSM!"></a>
|
|
|
|
|
53 |
<ul class="awsm-social">
|
54 |
<li><a href="https://www.facebook.com/awsminnovations" target="_blank" title="AWSM Innovations"><span class="awsm-icon awsm-icon-facebook">Facebook</span></a></li>
|
55 |
<li><a href="https://twitter.com/awsmin" target="_blank" title="AWSM Innovations"><span class="awsm-icon awsm-icon-twitter">Twitter</span></a></li>
|
56 |
<li><a href="https://github.com/awsmin" target="_blank" title="AWSM Innovations"><span class="awsm-icon awsm-icon-github">Github</span></a></li>
|
57 |
<li><a href="https://www.behance.net/awsmin" target="_blank" title="AWSM Innovations"><span class="awsm-icon awsm-icon-behance">Behance</span></a></li>
|
58 |
</ul>
|
59 |
+
</div>
|
60 |
+
<div class="clearfix row-col">
|
61 |
+
<div class="col-2">
|
62 |
+
<a href="https://wordpress.org/support/view/plugin-reviews/embed-any-document#postform" target="_blank">
|
63 |
+
<img src="<?php echo $this->plugin_url;?>images/star.gif"><?php _e('Like the plugin?', $this->text_domain);?><br/><?php _e('Rate Now!', $this->text_domain);?>
|
64 |
+
</a>
|
65 |
+
</div>
|
66 |
+
<div class="col-2">
|
67 |
+
<a href="http://awsm.in/support" target="_blank">
|
68 |
+
<img src="<?php echo $this->plugin_url;?>images/ticket.gif"><?php _e('Need Help?', $this->text_domain);?><br/><?php _e('Open a Ticket', $this->text_domain);?>
|
69 |
+
</a>
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
+
<div class="ead-right-inner">
|
73 |
+
<h3>More Links</h3>
|
74 |
+
<ol>
|
75 |
+
<li><a href="http://awsm.in/ead-plus-documentation/#embedding" target="_blank" title="<?php _e('How to Embed Documents?', $this->text_domain); ?>"><?php _e('How to Embed Documents?', $this->text_domain); ?></a></li>
|
76 |
+
<li><a href="http://awsm.in/ead-plus-documentation/#viewers" target="_blank" title="<?php _e('About Viewers', $this->text_domain); ?>"><?php _e('About Viewers', $this->text_domain); ?></a></li>
|
77 |
+
<li><a href="http://awsm.in/ead-plus-documentation/#shortcode" target="_blank" title="<?php _e('Shortcode & Attributes', $this->text_domain); ?>"><?php _e('Shortcode & Attributes', $this->text_domain); ?></a></li>
|
78 |
+
<li><a href="http://awsm.in/support" target="_blank" title="<?php _e('FAQs', $this->text_domain); ?>"><?php _e('FAQs', $this->text_domain); ?></a></li>
|
79 |
+
</ol>
|
80 |
</div>
|
81 |
</div><!-- .ead-right-wrap -->
|
82 |
<div class="clear"></div>
|
83 |
+
</div><!-- .wrap -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/support-mail.php
DELETED
@@ -1,43 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) { exit; }
|
3 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD']) {
|
4 |
-
parse_str($_POST['contact'],$postdata);
|
5 |
-
parse_str($_POST['contact']);
|
6 |
-
if ( !$site_name OR !$email_id OR !$problem ){
|
7 |
-
$json['status'] = false;
|
8 |
-
$json['message'] = __('Please Fill Required Fields', $this->text_domain);
|
9 |
-
echo json_encode( $json);
|
10 |
-
die(0);
|
11 |
-
}
|
12 |
-
$emaildata = array('site_name'=>'Name','email_id'=>'Email','problem'=>'Problem');
|
13 |
-
$mailmessage = 'New Support request from: '.get_option('blogname') . "\r\n\r\n";
|
14 |
-
$mailmessage .= '<table width="99%" cellspacing="0" cellpadding="1" border="0" bgcolor="#EAEAEA">
|
15 |
-
<tbody>
|
16 |
-
<tr>
|
17 |
-
<td><table width="100%" cellspacing="0" cellpadding="5" border="0" bgcolor="#FFFFFF">
|
18 |
-
<tbody>'.ead_getemailnode($emaildata,$postdata).'</tbody>
|
19 |
-
</table>
|
20 |
-
</td>
|
21 |
-
</tr>
|
22 |
-
</tbody>
|
23 |
-
</table>';
|
24 |
-
add_filter('wp_mail_content_type',create_function('', 'return "text/html"; '));
|
25 |
-
$tomail='hello@awsm.in';
|
26 |
-
$subject = "[EAD] Support Request From ". get_option('blogname');
|
27 |
-
$headers = "Reply-To: <" . $email_id . ">\n";
|
28 |
-
if (wp_mail( $tomail, $subject, $mailmessage, $headers )) {
|
29 |
-
$json['status'] = true;
|
30 |
-
$json['message'] = __('We will get back to you soon', $this->text_domain);
|
31 |
-
} else {
|
32 |
-
$json['status'] = false;
|
33 |
-
$json['message'] = __('Something went wrong', $this->text_domain);
|
34 |
-
}
|
35 |
-
echo json_encode($json);
|
36 |
-
}else{
|
37 |
-
$json['status'] = false;
|
38 |
-
$json['message'] = __('Cheating ?', $this->text_domain);
|
39 |
-
echo json_encode($json);
|
40 |
-
}
|
41 |
-
die(0);
|
42 |
-
?>
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/embed.js
CHANGED
@@ -1,178 +1,298 @@
|
|
1 |
-
jQuery(document).ready(function
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
12 |
ead_reset();
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
close: function () {
|
29 |
-
// Remove narrow class
|
30 |
-
$popup.removeClass('generator-narrow');
|
31 |
-
// Clear selection
|
32 |
-
mce_selection = '';
|
33 |
-
// Change z-index
|
34 |
-
$('body').removeClass('mfp-shown');
|
35 |
-
}
|
36 |
-
}
|
37 |
-
}).magnificPopup('open');
|
38 |
-
});
|
39 |
-
//Update shortcode on change
|
40 |
-
$( ".ead_usc" ).change(function() {
|
41 |
-
updateshortcode();
|
42 |
-
});
|
43 |
-
$('.embedval').keyup(function(){
|
44 |
-
updateshortcode();
|
45 |
-
});
|
46 |
-
//Tabs Support
|
47 |
-
$('ul.tabs').delegate('li:not(.current)', 'click', function () {
|
48 |
-
$(this).addClass('current').siblings().removeClass('current')
|
49 |
-
.parents('div.section').find('div.box').eq($(this).index()).fadeIn(150).siblings('div.box').hide();
|
50 |
});
|
51 |
-
|
52 |
-
//Toggle advanced options
|
53 |
-
$("#adv_options").click(function(){
|
54 |
-
$(".advanced_options").toggle();
|
55 |
-
});
|
56 |
//Wordpress Uploader
|
57 |
-
$('#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
uploaddetails(file);
|
77 |
-
});
|
78 |
-
}
|
79 |
-
this.window.open();
|
80 |
-
return false;
|
81 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
//to getshortcode
|
83 |
-
function getshortcode(url){
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
}
|
92 |
//Print uploaded file details
|
93 |
-
function
|
94 |
-
$('#
|
95 |
-
|
96 |
-
if(file.filesizeHumanReadable){
|
97 |
-
|
98 |
-
}else{
|
99 |
-
|
100 |
}
|
101 |
-
|
102 |
$container.hide();
|
|
|
103 |
}
|
104 |
-
|
105 |
-
|
106 |
-
function
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
|
|
|
|
115 |
}
|
116 |
//Validate file url
|
117 |
-
function
|
118 |
-
|
119 |
-
$('#
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
}else{
|
133 |
-
showmsg(data.message);
|
134 |
-
}
|
135 |
-
$('#add_url').val(emebeder.addurl);
|
136 |
-
},
|
137 |
-
});
|
138 |
}
|
139 |
//Show Message
|
140 |
-
function
|
141 |
-
$('#
|
142 |
-
|
143 |
}
|
144 |
-
|
145 |
-
|
146 |
-
function
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
}
|
|
|
155 |
//Update ShortCode
|
156 |
-
function
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
$container.show();
|
172 |
$embedurl.val('');
|
|
|
|
|
173 |
$('.upload-success').hide();
|
174 |
-
$(
|
175 |
-
$('#
|
176 |
-
$('#
|
177 |
-
|
|
|
|
|
|
|
|
|
|
|
178 |
});
|
1 |
+
jQuery(document).ready(function($) {
|
2 |
+
var $embedurl = $('#awsm-url'),
|
3 |
+
$shortcode = $('#shortcode'),
|
4 |
+
$message = $('#embed-message p'),
|
5 |
+
$ActionPanel = $('.mceActionPanel'),
|
6 |
+
$container = $('.ead-container'),
|
7 |
+
fileurl = "",
|
8 |
+
newprovider = "",
|
9 |
+
frame,
|
10 |
+
msextension = emebeder.msextension,
|
11 |
+
drextension = emebeder.drextension;
|
12 |
+
//Opens Embed popup
|
13 |
+
$('body').on('click', '.awsm-embed', function(e) {
|
14 |
ead_reset();
|
15 |
+
e.preventDefault();
|
16 |
+
$('body').addClass('ead-popup-on');
|
17 |
+
tb_show("Embed Any Document", "#TB_inline?inlineId=embed-popup-wrap&width=1030&modal=true", null);
|
18 |
+
ead_tb_position();
|
19 |
+
return;
|
20 |
+
});
|
21 |
+
|
22 |
+
//Update shortcode on change
|
23 |
+
$(".ead-usc").change(function() {
|
24 |
+
newprovider = "";
|
25 |
+
ead_updateshortcode($(this).attr('id'));
|
26 |
+
ead_customize_popup();
|
27 |
+
});
|
28 |
+
$('.embedval').keyup(function() {
|
29 |
+
ead_updateshortcode($(this).attr('id'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
});
|
|
|
|
|
|
|
|
|
|
|
31 |
//Wordpress Uploader
|
32 |
+
$('#upload-doc').click(ead_open_media_window);
|
33 |
+
|
34 |
+
//Add url
|
35 |
+
$('#ead-add-url').click(ead_embded_url);
|
36 |
+
|
37 |
+
//insert Shortcode
|
38 |
+
$('#insert-doc').click(ead_shortcode);
|
39 |
+
// Add from URL support
|
40 |
+
$('#add-ead-document').on('click', function(e) {
|
41 |
+
e.preventDefault();
|
42 |
+
$('.addurl-box').fadeIn();
|
43 |
+
$('.ead-options').hide();
|
44 |
+
});
|
45 |
+
//Add fromrom URL cancel handler
|
46 |
+
$('.go-back').on('click', function(e) {
|
47 |
+
e.preventDefault();
|
48 |
+
$('.addurl-box').hide();
|
49 |
+
$('.ead-options').fadeIn();
|
50 |
+
});
|
51 |
+
// Close embed dialog
|
52 |
+
$('#embed-popup').on('click', '.cancel-embed,.mfp-close', function(e) {
|
53 |
+
// Prevent default action
|
54 |
+
e.preventDefault();
|
55 |
+
ead_remove_pop();
|
56 |
+
});
|
57 |
+
//Insert Media window
|
58 |
+
function ead_open_media_window() {
|
59 |
+
var uClass = 'upload';
|
60 |
+
if (frame) {
|
61 |
+
frame.open();
|
62 |
+
return;
|
63 |
+
}
|
64 |
+
frame = wp.media({
|
65 |
+
title: 'Embed Any Document',
|
66 |
+
multiple: false,
|
67 |
+
library: {
|
68 |
+
type: emebeder.validtypes,
|
69 |
+
},
|
70 |
+
button: {
|
71 |
+
text: emebeder.select_button
|
72 |
+
}
|
73 |
+
});
|
74 |
+
frame.on('select', function() {
|
75 |
+
var file = frame.state().get('selection').first().toJSON();
|
76 |
+
ead_updateprovider(file, uClass);
|
77 |
+
});
|
78 |
+
frame.open();
|
79 |
+
}
|
80 |
+
|
81 |
|
82 |
+
//update provider
|
83 |
+
function ead_updateprovider(file, uClass) {
|
84 |
+
fileurl = file.url;
|
85 |
+
ead_valid_viewer(file, uClass);
|
86 |
+
ead_updateshortcode();
|
87 |
+
ead_uploaddetails(file, uClass);
|
88 |
+
}
|
89 |
+
//sanitize width and height
|
90 |
+
function ead_sanitize(dim) {
|
91 |
+
if (dim.indexOf("%") == -1) {
|
92 |
+
dim = dim.replace(/[^0-9]/g, '');
|
93 |
+
dim += "px";
|
94 |
+
} else {
|
95 |
+
dim = dim.replace(/[^0-9]/g, '');
|
96 |
+
dim += "%";
|
97 |
+
}
|
98 |
+
return dim;
|
|
|
|
|
|
|
|
|
|
|
99 |
}
|
100 |
+
//Thickbox Handler
|
101 |
+
function ead_tb_position() {
|
102 |
+
var tbWindow = $('#TB_window');
|
103 |
+
var width = $(window).width();
|
104 |
+
var H = $(window).height();
|
105 |
+
var W = ( 1080 < width ) ? 1080 : width;
|
106 |
+
|
107 |
+
if ( tbWindow.size() ) {
|
108 |
+
tbWindow.width( W - 50 ).height( H - 45 );
|
109 |
+
//$('#TB_iframeContent').width( W - 50 ).height( H - 75 );
|
110 |
+
$('#TB_ajaxContent').css({'width':'100%','height':'100%','padding':'0'});
|
111 |
+
tbWindow.css({'margin-left': '-' + parseInt((( W - 50 ) / 2),10) + 'px'});
|
112 |
+
if ( typeof document.body.style.maxWidth != 'undefined' )
|
113 |
+
tbWindow.css({'top':'20px','margin-top':'0'});
|
114 |
+
$('#TB_title').css({'background-color':'#fff','color':'#cfcfcf'});
|
115 |
+
};
|
116 |
+
};
|
117 |
+
$(window).resize( function() { ead_tb_position() } );
|
118 |
//to getshortcode
|
119 |
+
function getshortcode(url, item) {
|
120 |
+
var height = ead_sanitize($('#ead-height').val()),
|
121 |
+
width = ead_sanitize($('#ead-width').val()),
|
122 |
+
download = $('#ead-download').val(),
|
123 |
+
provider = $('#ead-provider').val(),
|
124 |
+
text = $('#ead-text').val(),
|
125 |
+
heightstr = "",
|
126 |
+
widthstr = "",
|
127 |
+
downloadstr = "",
|
128 |
+
providerstr = "",
|
129 |
+
textstr="",
|
130 |
+
drivestr = "";
|
131 |
+
if (ead_itemcheck('height', item)) {
|
132 |
+
heightstr = ' height="' + height + '"';
|
133 |
+
}
|
134 |
+
if (ead_itemcheck('width', item)) {
|
135 |
+
widthstr = ' width="' + width + '"';
|
136 |
+
}
|
137 |
+
if (ead_itemcheck('download', item)) {
|
138 |
+
downloadstr = ' download="' + download + '"';
|
139 |
|
140 |
+
}
|
141 |
+
if (ead_itemcheck('provider', item)) {
|
142 |
+
providerstr = ' viewer="' + provider + '"';
|
143 |
+
}
|
144 |
+
if (ead_itemcheck('text', item) && download!='none' ) {
|
145 |
+
textstr = ' text="' + text + '"';
|
146 |
+
}
|
147 |
+
return '[embeddoc url="' + url + '"' + widthstr + heightstr + downloadstr + providerstr + drivestr + textstr +']';
|
148 |
+
}
|
149 |
+
// Checks with default setting value
|
150 |
+
function ead_itemcheck(item, dataitem) {
|
151 |
+
var check = $('#ead-' + item).val();
|
152 |
+
if(!check) return false;
|
153 |
+
var datacheck = 'ead-' + item;
|
154 |
+
if (datacheck == dataitem) {
|
155 |
+
return true;
|
156 |
+
} else if (check != emebeder[item]) {
|
157 |
+
return true;
|
158 |
+
}
|
159 |
+
return false;
|
160 |
}
|
161 |
//Print uploaded file details
|
162 |
+
function ead_uploaddetails(file, uClass) {
|
163 |
+
$('#insert-doc').removeAttr('disabled');
|
164 |
+
$('#ead-filename').html(file.filename);
|
165 |
+
if (file.filesizeHumanReadable) {
|
166 |
+
$('#ead-filesize').html(file.filesizeHumanReadable);
|
167 |
+
} else {
|
168 |
+
$('#ead-filesize').html(' ');
|
169 |
}
|
170 |
+
$('.upload-success').fadeIn();
|
171 |
$container.hide();
|
172 |
+
ead_upload_class(uClass);
|
173 |
}
|
174 |
+
|
175 |
+
|
176 |
+
function ead_embded_url() {
|
177 |
+
var checkurl = $embedurl.val();
|
178 |
+
if (checkurl !== '') {
|
179 |
+
ead_validateurl(checkurl);
|
180 |
+
} else {
|
181 |
+
$embedurl.addClass('urlerror');
|
182 |
+
updateshortcode();
|
183 |
+
}
|
184 |
+
}
|
185 |
+
function ead_is_valid_url(url) {
|
186 |
+
return /^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(url);
|
187 |
}
|
188 |
//Validate file url
|
189 |
+
function ead_validateurl(url) {
|
190 |
+
var uClass = 'link';
|
191 |
+
$('#embed-message').hide();
|
192 |
+
if(ead_is_valid_url(url)){
|
193 |
+
fileurl = url;
|
194 |
+
$('#insert-doc').removeAttr('disabled');
|
195 |
+
$('#ead-filename').html(emebeder.from_url);
|
196 |
+
$('#ead-filesize').html(' ');
|
197 |
+
$('.upload-success').fadeIn();
|
198 |
+
$container.hide();
|
199 |
+
ead_upload_class(uClass);
|
200 |
+
ead_updateshortcode();
|
201 |
+
}else{
|
202 |
+
ead_showmsg(emebeder.invalidurl);
|
203 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
}
|
205 |
//Show Message
|
206 |
+
function ead_showmsg(msg) {
|
207 |
+
$('#embed-message').fadeIn();
|
208 |
+
$message.text(msg);
|
209 |
}
|
210 |
+
|
211 |
+
|
212 |
+
function ead_shortcode() {
|
213 |
+
if (fileurl) {
|
214 |
+
wp.media.editor.insert($shortcode.text());
|
215 |
+
ead_remove_pop();
|
216 |
+
} else {
|
217 |
+
showmsg(emebeder.nocontent);
|
218 |
+
}
|
|
|
219 |
}
|
220 |
+
|
221 |
//Update ShortCode
|
222 |
+
function ead_updateshortcode(item) {
|
223 |
+
item = typeof item !== 'undefined' ? item : false;
|
224 |
+
if (fileurl) {
|
225 |
+
$shortcode.text(getshortcode(fileurl, item));
|
226 |
+
} else {
|
227 |
+
$shortcode.text('');
|
228 |
+
}
|
229 |
+
}
|
230 |
+
|
231 |
+
//UploadClass
|
232 |
+
function ead_upload_class(uPclass) {
|
233 |
+
$(".uploaded-doccument").removeClass("ead-link ead-upload ead-dropbox ead-drive ead-box");
|
234 |
+
$('.uploaded-doccument').addClass('ead-' + uPclass);
|
235 |
+
}
|
236 |
+
//close popup
|
237 |
+
function ead_remove_pop(){
|
238 |
+
// Close popup
|
239 |
+
tb_remove();
|
240 |
+
setTimeout(function() {
|
241 |
+
$('body').removeClass('ead-popup-on');
|
242 |
+
}, 800);
|
243 |
+
}
|
244 |
+
//Convert Filesize to human Readable filesize
|
245 |
+
function ead_human_file_size(bytes) {
|
246 |
+
var thresh = 1024;
|
247 |
+
if (bytes < thresh) return bytes + ' B';
|
248 |
+
var units = ['KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
249 |
+
var u = -1;
|
250 |
+
do {
|
251 |
+
bytes /= thresh;
|
252 |
+
++u;
|
253 |
+
} while (bytes >= thresh);
|
254 |
+
return bytes.toFixed(1) + ' ' + units[u];
|
255 |
+
}
|
256 |
+
// Viewer Check
|
257 |
+
function ead_valid_viewer(file, provider) {
|
258 |
+
var cprovider = ["link", "upload"];
|
259 |
+
var validext = msextension.split(',');
|
260 |
+
var ext = '.' + file.filename.split('.').pop();
|
261 |
+
$("#new-provider option[value='microsoft']").attr('disabled', false);
|
262 |
+
if ($.inArray(provider, cprovider) != -1) {
|
263 |
+
if ($.inArray(ext, validext) == -1) {
|
264 |
+
newprovider = "google";
|
265 |
+
$("#new-provider option[value='google']").attr("selected", "selected");
|
266 |
+
$("#new-provider option[value='microsoft']").attr('disabled', true);
|
267 |
+
} else {
|
268 |
+
newprovider = "microsoft";
|
269 |
+
$("#new-provider option[value='microsoft']").attr("selected", "selected");
|
270 |
+
}
|
271 |
+
}
|
272 |
+
}
|
273 |
+
//Download text show
|
274 |
+
function ead_customize_popup(){
|
275 |
+
if($('#ead-download').val()=="none"){
|
276 |
+
$('#ead-download-text').hide();
|
277 |
+
}else{
|
278 |
+
$('#ead-download-text').show();
|
279 |
+
}
|
280 |
+
|
281 |
+
}
|
282 |
+
//Reset form data
|
283 |
+
function ead_reset() {
|
284 |
$container.show();
|
285 |
$embedurl.val('');
|
286 |
+
$('.ead-options').fadeIn();
|
287 |
+
$('.addurl-box').hide();
|
288 |
$('.upload-success').hide();
|
289 |
+
$('#embed-message').hide();
|
290 |
+
$('#insert-doc').attr('disabled', 'disabled');
|
291 |
+
$('#new-provider').show();
|
292 |
+
$('#ead-pseudo').hide();
|
293 |
+
newprovider = "";
|
294 |
+
$("#new-provider option[value='microsoft']").attr('disabled', false);
|
295 |
+
$('#ead-downloadc').show();
|
296 |
+
ead_customize_popup();
|
297 |
+
}
|
298 |
});
|
js/magnific-popup.js
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
/*! Magnific Popup - v0.9.9 - 2014-09-06
|
2 |
-
* http://dimsemenov.com/plugins/magnific-popup/
|
3 |
-
* Copyright (c) 2014 Dmitry Semenov; */
|
4 |
-
(function(e){var t,n,i,o,r,a,s,l="Close",c="BeforeClose",d="AfterClose",u="BeforeAppend",p="MarkupParse",f="Open",m="Change",g="mfp",h="."+g,v="mfp-ready",C="mfp-removing",y="mfp-prevent-close",w=function(){},b=!!window.jQuery,I=e(window),x=function(e,n){t.ev.on(g+e+h,n)},k=function(t,n,i,o){var r=document.createElement("div");return r.className="mfp-"+t,i&&(r.innerHTML=i),o?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},T=function(n,i){t.ev.triggerHandler(g+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},E=function(n){return n===s&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),s=n),t.currTemplate.closeBtn},_=function(){e.magnificPopup.instance||(t=new w,t.init(),e.magnificPopup.instance=t)},S=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};w.prototype={constructor:w,init:function(){var n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=S(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=e(document),t.popupsCache={}},open:function(n){i||(i=e(document.body));var r;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var s,l=n.items;for(r=0;l.length>r;r++)if(s=l[r],s.parsed&&(s=s.el[0]),s===n.el[0]){t.index=r;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(t.isOpen)return t.updateItemHTML(),void 0;t.types=[],a="",t.ev=n.mainEl&&n.mainEl.length?n.mainEl.eq(0):o,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=k("bg").on("click"+h,function(){t.close()}),t.wrap=k("wrap").attr("tabindex",-1).on("click"+h,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=k("container",t.wrap)),t.contentContainer=k("content"),t.st.preloader&&(t.preloader=k("preloader",t.container,t.st.tLoading));var c=e.magnificPopup.modules;for(r=0;c.length>r;r++){var d=c[r];d=d.charAt(0).toUpperCase()+d.slice(1),t["init"+d].call(t)}T("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(x(p,function(e,t,n,i){n.close_replaceWith=E(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(E())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:I.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey&&o.on("keyup"+h,function(e){27===e.keyCode&&t.close()}),I.on("resize"+h,function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var u=t.wH=I.height(),m={};if(t.fixedContentPos&&t._hasScrollBar(u)){var g=t._getScrollbarSize();g&&(m.marginRight=g)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden");var C=t.st.mainClass;return t.isIE7&&(C+=" mfp-ie7"),C&&t._addClassToMFP(C),t.updateItemHTML(),T("BuildControls"),e("html").css(m),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||i),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),o.on("focusin"+h,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(u),T(f),n},close:function(){t.isOpen&&(T(c),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(C),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){T(l);var n=C+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var i={marginRight:""};t.isIE7?e("body, html").css("overflow",""):i.overflow="",e("html").css(i)}o.off("keyup"+h+" focusin"+h),t.ev.off(h),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,T(d)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||I.height();t.fixedContentPos||t.wrap.css("height",t.wH),T("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(T("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var o=t.st[i]?t.st[i].markup:!1;T("FirstMarkupParse",o),t.currTemplate[i]=o?e(o):!0}r&&r!==n.type&&t.container.removeClass("mfp-"+r+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,T(m,n),r=n.type,t.container.prepend(t.contentContainer),T("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[n]===!0?t.content.find(".mfp-close").length||t.content.append(E()):t.content=e:t.content="",T(u),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var r=t.types,a=0;r.length>a;a++)if(o.el.hasClass("mfp-"+r[a])){i=r[a];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,T("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){var r=void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick;if(r||2!==n.which&&!n.ctrlKey&&!n.metaKey){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(a>I.width())return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};T("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(y)){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?o.height():document.body.scrollHeight)>(e||I.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){return n.target===t.wrap[0]||e.contains(t.wrap[0],n.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),T(p,[t,n,i]),e.each(n,function(e,n){if(void 0===n||n===!1)return!0;if(o=e.split("_"),o.length>1){var i=t.find(h+"-"+o[0]);if(i.length>0){var r=o[1];"replaceWith"===r?i[0]!==n[0]&&i.replaceWith(n):"img"===r?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(o[1],n)}}else t.find(h+"-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:w.prototype,modules:[],open:function(t,n){return _(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){_();var i=e(this);if("string"==typeof n)if("open"===n){var o,r=b?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?o=r.items[a]:(o=i,r.delegate&&(o=o.find(r.delegate)),o=o.eq(a)),t._openClick({mfpEl:o},i,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),b?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var P,O,z,M="inline",B=function(){z&&(O.after(z.addClass(P)).detach(),z=null)};e.magnificPopup.registerModule(M,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(M),x(l+"."+M,function(){B()})},getInline:function(n,i){if(B(),n.src){var o=t.st.inline,r=e(n.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(O||(P=o.hiddenClass,O=k(P),P="mfp-"+P),z=r.after(O).detach().removeClass(P)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),r=e("<div>");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var F,H="ajax",L=function(){F&&i.removeClass(F)},A=function(){L(),t.req&&t.req.abort()};e.magnificPopup.registerModule(H,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(H),F=t.st.ajax.cursor,x(l+"."+H,A),x("BeforeChange."+H,A)},getAjax:function(n){F&&i.addClass(F),t.updateStatus("loading");var o=e.extend({url:n.src,success:function(i,o,r){var a={data:i,xhr:r};T("ParseAjax",a),t.appendContent(e(a.data),H),n.finished=!0,L(),t._setFocus(),setTimeout(function(){t.wrap.addClass(v)},16),t.updateStatus("ready"),T("AjaxContentAdded")},error:function(){L(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(o),""}}});var j,N=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var e=t.st.image,n=".image";t.types.push("image"),x(f+n,function(){"image"===t.currItem.type&&e.cursor&&i.addClass(e.cursor)}),x(l+n,function(){e.cursor&&i.removeClass(e.cursor),I.off("resize"+h)}),x("Resize"+n,t.resizeImage),t.isLowIE&&x("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,j&&clearInterval(j),e.isCheckingImgSize=!1,T("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(r){j&&clearInterval(j),j=setInterval(function(){return i.naturalWidth>0?(t._onImageHasSize(e),void 0):(n>200&&clearInterval(j),n++,3===n?o(10):40===n?o(50):100===n&&o(500),void 0)},r)};o(1)},getImage:function(n,i){var o=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,T("ImageLoadComplete")):(o++,200>o?setTimeout(r,100):a()))},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.img=e(c).on("load.mfploader",r).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),c=n.img[0],c.naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:N(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(j&&clearInterval(j),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var W,R=function(){return void 0===W&&(W=void 0!==document.createElement("p").style.MozTransform),W};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,r,a=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=i,t.css(o),t},d=function(){t.content.css("visibility","visible")};x("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return d(),void 0;r=s(e),r.css(t._getOffset()),t.wrap.append(r),o=setTimeout(function(){r.css(t._getOffset(!0)),o=setTimeout(function(){d(),setTimeout(function(){r.remove(),e=r=null,T("ZoomAnimationEnded")},16)},a)},16)}}),x(c+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(e=t._getItemToZoom(),!e)return;r=s(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout(function(){r.css(t._getOffset())},16)}}),x(l+i,function(){t._allowZoom()&&(d(),r&&r.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(n){var i;i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var o=i.offset(),r=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:i.width(),height:(b?i.innerHeight():i[0].offsetHeight)-a-r};return R()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var Z="iframe",q="//about:blank",D=function(e){if(t.currTemplate[Z]){var n=t.currTemplate[Z].find("iframe");n.length&&(e||(n[0].src=q),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(Z,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(Z),x("BeforeChange",function(e,t,n){t!==n&&(t===Z?D():n===Z&&D(!0))}),x(l+"."+Z,function(){D()})},getIframe:function(n,i){var o=n.src,r=t.st.iframe;e.each(r.patterns,function(){return o.indexOf(this.index)>-1?(this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1):void 0});var a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var K=function(e){var n=t.items.length;return e>n-1?e-n:0>e?n+e:e},Y=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,i=".mfp-gallery",r=Boolean(e.fn.mfpFastClick);return t.direction=!0,n&&n.enabled?(a+=" mfp-gallery",x(f+i,function(){n.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){return t.items.length>1?(t.next(),!1):void 0}),o.on("keydown"+i,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),x("UpdateStatus"+i,function(e,n){n.text&&(n.text=Y(n.text,t.currItem.index,t.items.length))}),x(p+i,function(e,i,o,r){var a=t.items.length;o.counter=a>1?Y(n.tCounter,r.index,a):""}),x("BuildControls"+i,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(y),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(y),s=r?"mfpFastClick":"click";o[s](function(){t.prev()}),a[s](function(){t.next()}),t.isIE7&&(k("b",o[0],!1,!0),k("a",o[0],!1,!0),k("b",a[0],!1,!0),k("a",a[0],!1,!0)),t.container.append(o.add(a))}}),x(m+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),x(l+i,function(){o.off(i),t.wrap.off("click"+i),t.arrowLeft&&r&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null}),void 0):!1},next:function(){t.direction=!0,t.index=K(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=K(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;(t.direction?o:i)>=e;e++)t._preloadItem(t.index+e);for(e=1;(t.direction?i:o)>=e;e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=K(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),T("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,T("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var U="retina";e.magnificPopup.registerModule(U,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;n=isNaN(n)?n():n,n>1&&(x("ImageHasSize."+U,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),x("ElementParse."+U,function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),function(){var t=1e3,n="ontouchstart"in window,i=function(){I.off("touchmove"+r+" touchend"+r)},o="mfpFastClick",r="."+o;e.fn.mfpFastClick=function(o){return e(this).each(function(){var a,s=e(this);if(n){var l,c,d,u,p,f;s.on("touchstart"+r,function(e){u=!1,f=1,p=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],c=p.clientX,d=p.clientY,I.on("touchmove"+r,function(e){p=e.originalEvent?e.originalEvent.touches:e.touches,f=p.length,p=p[0],(Math.abs(p.clientX-c)>10||Math.abs(p.clientY-d)>10)&&(u=!0,i())}).on("touchend"+r,function(e){i(),u||f>1||(a=!0,e.preventDefault(),clearTimeout(l),l=setTimeout(function(){a=!1},t),o())})})}s.on("click"+r,function(){a||o()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+r+" click"+r),n&&I.off("touchmove"+r+" touchend"+r)}}(),_()})(window.jQuery||window.Zepto);
|
|
|
|
|
|
|
|
language/ead-en_US.mo
DELETED
Binary file
|
language/ead-en_US.po
DELETED
@@ -1,185 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Embed Any Document\n"
|
4 |
-
"POT-Creation-Date: 2014-11-07 14:45+0530\n"
|
5 |
-
"PO-Revision-Date: 2014-11-10 11:22+0530\n"
|
6 |
-
"Last-Translator: \n"
|
7 |
-
"Language-Team: Awsm Innovations <hello@awsm.in>\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"X-Generator: Poedit 1.6.10\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
13 |
-
"Language: en_US\n"
|
14 |
-
|
15 |
-
#: aswm-embed.php:77 inc/popup.php:6
|
16 |
-
msgid "Add Document"
|
17 |
-
msgstr ""
|
18 |
-
|
19 |
-
#: aswm-embed.php:102
|
20 |
-
msgid "Settings"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: aswm-embed.php:111 aswm-embed.php:156 aswm-embed.php:174 aswm-embed.php:185
|
24 |
-
msgid "You do not have sufficient permissions to access this page."
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: aswm-embed.php:129
|
28 |
-
msgid "Nothing to insert"
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: aswm-embed.php:130
|
32 |
-
msgid "Add URL"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: aswm-embed.php:131
|
36 |
-
msgid "Verifying..."
|
37 |
-
msgstr ""
|
38 |
-
|
39 |
-
#: inc/functions.php:87
|
40 |
-
msgid "Download"
|
41 |
-
msgstr ""
|
42 |
-
|
43 |
-
#: inc/functions.php:105
|
44 |
-
msgid "Done"
|
45 |
-
msgstr ""
|
46 |
-
|
47 |
-
#: inc/functions.php:110
|
48 |
-
msgid "Document"
|
49 |
-
msgstr ""
|
50 |
-
|
51 |
-
#: inc/functions.php:115
|
52 |
-
msgid "File format is not supported."
|
53 |
-
msgstr ""
|
54 |
-
|
55 |
-
#: inc/functions.php:120
|
56 |
-
msgid "Not a valid URL. Please try again."
|
57 |
-
msgstr ""
|
58 |
-
|
59 |
-
#: inc/functions.php:127
|
60 |
-
msgid "Sorry, the file URL is not valid."
|
61 |
-
msgstr ""
|
62 |
-
|
63 |
-
#: inc/functions.php:175
|
64 |
-
msgid "No Url Found"
|
65 |
-
msgstr ""
|
66 |
-
|
67 |
-
#: inc/popup.php:12
|
68 |
-
msgid "Upload and Embed"
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
-
#: inc/popup.php:13
|
72 |
-
msgid "Add From URL"
|
73 |
-
msgstr ""
|
74 |
-
|
75 |
-
#: inc/popup.php:21
|
76 |
-
msgid "Enter document URL"
|
77 |
-
msgstr ""
|
78 |
-
|
79 |
-
#: inc/popup.php:33
|
80 |
-
msgid "Advanced Options"
|
81 |
-
msgstr ""
|
82 |
-
|
83 |
-
#: inc/popup.php:43 inc/settings.php:38
|
84 |
-
msgid "Show Download Link"
|
85 |
-
msgstr ""
|
86 |
-
|
87 |
-
#: inc/popup.php:45 inc/settings.php:41
|
88 |
-
msgid "For all users"
|
89 |
-
msgstr ""
|
90 |
-
|
91 |
-
#: inc/popup.php:45 inc/settings.php:41
|
92 |
-
msgid "For Logged-in users"
|
93 |
-
msgstr ""
|
94 |
-
|
95 |
-
#: inc/popup.php:45 inc/settings.php:41
|
96 |
-
msgid "None"
|
97 |
-
msgstr ""
|
98 |
-
|
99 |
-
#: inc/popup.php:53
|
100 |
-
msgid "Shortcode Preview"
|
101 |
-
msgstr ""
|
102 |
-
|
103 |
-
#: inc/popup.php:62
|
104 |
-
msgid "Insert"
|
105 |
-
msgstr ""
|
106 |
-
|
107 |
-
#: inc/popup.php:66
|
108 |
-
msgid "Cancel"
|
109 |
-
msgstr ""
|
110 |
-
|
111 |
-
#: inc/settings.php:3
|
112 |
-
msgid "Embed Any Document by AWSM.in"
|
113 |
-
msgstr ""
|
114 |
-
|
115 |
-
#: inc/settings.php:5
|
116 |
-
msgid "General Settings"
|
117 |
-
msgstr ""
|
118 |
-
|
119 |
-
#: inc/settings.php:6
|
120 |
-
msgid "Support"
|
121 |
-
msgstr ""
|
122 |
-
|
123 |
-
#: inc/settings.php:15
|
124 |
-
msgid "Embed Using"
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: inc/settings.php:18
|
128 |
-
msgid "Google Docs Viewer"
|
129 |
-
msgstr ""
|
130 |
-
|
131 |
-
#: inc/settings.php:18
|
132 |
-
msgid "Microsoft Office Online"
|
133 |
-
msgstr ""
|
134 |
-
|
135 |
-
#: inc/settings.php:24
|
136 |
-
msgid "Default Size"
|
137 |
-
msgstr ""
|
138 |
-
|
139 |
-
#: inc/settings.php:26
|
140 |
-
msgid "Width"
|
141 |
-
msgstr ""
|
142 |
-
|
143 |
-
#: inc/settings.php:30
|
144 |
-
msgid "Height"
|
145 |
-
msgstr ""
|
146 |
-
|
147 |
-
#: inc/settings.php:34
|
148 |
-
msgid "Enter values in pixels or percentage (Example: 300px or 100%)"
|
149 |
-
msgstr ""
|
150 |
-
|
151 |
-
#: inc/settings.php:55
|
152 |
-
msgid "Name"
|
153 |
-
msgstr ""
|
154 |
-
|
155 |
-
#: inc/settings.php:62
|
156 |
-
msgid "Email ID"
|
157 |
-
msgstr ""
|
158 |
-
|
159 |
-
#: inc/settings.php:69
|
160 |
-
msgid "Problem"
|
161 |
-
msgstr ""
|
162 |
-
|
163 |
-
#: inc/settings.php:77
|
164 |
-
msgid "Submit"
|
165 |
-
msgstr ""
|
166 |
-
|
167 |
-
#: inc/support-mail.php:8
|
168 |
-
msgid "Please Fill Required Fields"
|
169 |
-
msgstr ""
|
170 |
-
|
171 |
-
#: inc/support-mail.php:30
|
172 |
-
msgid "We will get back to you soon"
|
173 |
-
msgstr ""
|
174 |
-
|
175 |
-
#: inc/support-mail.php:33
|
176 |
-
msgid "Something went wrong"
|
177 |
-
msgstr ""
|
178 |
-
|
179 |
-
#: inc/support-mail.php:38
|
180 |
-
msgid "Cheating ?"
|
181 |
-
msgstr ""
|
182 |
-
|
183 |
-
#: inc/functions.php:180
|
184 |
-
msgid "File Not Found"
|
185 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
language/ead.pot
DELETED
@@ -1,209 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Embed Any Document\n"
|
4 |
-
"POT-Creation-Date: 2014-11-24 13:11+0530\n"
|
5 |
-
"PO-Revision-Date: 2014-11-24 13:12+0530\n"
|
6 |
-
"Last-Translator: \n"
|
7 |
-
"Language-Team: Awsm Innovations <hello@awsm.in>\n"
|
8 |
-
"Language: en_US\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.6.10\n"
|
13 |
-
"X-Poedit-Basepath: ../\n"
|
14 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;esc_attr_e\n"
|
17 |
-
"X-Poedit-SearchPath-0: .\n"
|
18 |
-
|
19 |
-
#: aswm-embed.php:77 inc/popup.php:6
|
20 |
-
msgid "Add Document"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: aswm-embed.php:102
|
24 |
-
msgid "Settings"
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: aswm-embed.php:127
|
28 |
-
msgid "Nothing to insert"
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: aswm-embed.php:128
|
32 |
-
msgid "Add URL"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: aswm-embed.php:129
|
36 |
-
msgid "Verifying..."
|
37 |
-
msgstr ""
|
38 |
-
|
39 |
-
#: aswm-embed.php:154 aswm-embed.php:181
|
40 |
-
msgid "You do not have sufficient permissions to access this page."
|
41 |
-
msgstr ""
|
42 |
-
|
43 |
-
#: inc/functions.php:96
|
44 |
-
msgid "Done"
|
45 |
-
msgstr ""
|
46 |
-
|
47 |
-
#: inc/functions.php:101
|
48 |
-
msgid "Document"
|
49 |
-
msgstr ""
|
50 |
-
|
51 |
-
#: inc/functions.php:106
|
52 |
-
msgid "File format is not supported."
|
53 |
-
msgstr ""
|
54 |
-
|
55 |
-
#: inc/functions.php:111
|
56 |
-
msgid "Not a valid URL. Please try again."
|
57 |
-
msgstr ""
|
58 |
-
|
59 |
-
#: inc/functions.php:118
|
60 |
-
msgid "Sorry, the file URL is not valid."
|
61 |
-
msgstr ""
|
62 |
-
|
63 |
-
#: inc/functions.php:190
|
64 |
-
msgid "Download"
|
65 |
-
msgstr ""
|
66 |
-
|
67 |
-
#: inc/functions.php:195
|
68 |
-
msgid "File Not Found"
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
-
#: inc/functions.php:198
|
72 |
-
msgid "No Url Found"
|
73 |
-
msgstr ""
|
74 |
-
|
75 |
-
#: inc/popup.php:12
|
76 |
-
msgid "Upload and Embed"
|
77 |
-
msgstr ""
|
78 |
-
|
79 |
-
#: inc/popup.php:13
|
80 |
-
msgid "Add From URL"
|
81 |
-
msgstr ""
|
82 |
-
|
83 |
-
#: inc/popup.php:21
|
84 |
-
msgid "Enter document URL"
|
85 |
-
msgstr ""
|
86 |
-
|
87 |
-
#: inc/popup.php:33
|
88 |
-
msgid "Advanced Options"
|
89 |
-
msgstr ""
|
90 |
-
|
91 |
-
#: inc/popup.php:43 inc/settings.php:65
|
92 |
-
msgid "Show Download Link"
|
93 |
-
msgstr ""
|
94 |
-
|
95 |
-
#: inc/popup.php:45 inc/settings.php:68
|
96 |
-
msgid "For all users"
|
97 |
-
msgstr ""
|
98 |
-
|
99 |
-
#: inc/popup.php:45 inc/settings.php:68
|
100 |
-
msgid "For Logged-in users"
|
101 |
-
msgstr ""
|
102 |
-
|
103 |
-
#: inc/popup.php:45 inc/settings.php:68
|
104 |
-
msgid "None"
|
105 |
-
msgstr ""
|
106 |
-
|
107 |
-
#: inc/popup.php:50
|
108 |
-
msgid "Provider"
|
109 |
-
msgstr ""
|
110 |
-
|
111 |
-
#: inc/popup.php:52 inc/settings.php:18
|
112 |
-
msgid "Google Docs Viewer"
|
113 |
-
msgstr ""
|
114 |
-
|
115 |
-
#: inc/popup.php:52 inc/settings.php:18
|
116 |
-
msgid "Microsoft Office Online"
|
117 |
-
msgstr ""
|
118 |
-
|
119 |
-
#: inc/popup.php:60
|
120 |
-
msgid "Shortcode Preview"
|
121 |
-
msgstr ""
|
122 |
-
|
123 |
-
#: inc/popup.php:69
|
124 |
-
msgid "Insert"
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: inc/popup.php:73
|
128 |
-
msgid "Cancel"
|
129 |
-
msgstr ""
|
130 |
-
|
131 |
-
#: inc/settings.php:3
|
132 |
-
msgid "Embed Any Document by AWSM.in"
|
133 |
-
msgstr ""
|
134 |
-
|
135 |
-
#: inc/settings.php:5
|
136 |
-
msgid "General Settings"
|
137 |
-
msgstr ""
|
138 |
-
|
139 |
-
#: inc/settings.php:6
|
140 |
-
msgid "Support"
|
141 |
-
msgstr ""
|
142 |
-
|
143 |
-
#: inc/settings.php:15
|
144 |
-
msgid "Embed Using"
|
145 |
-
msgstr ""
|
146 |
-
|
147 |
-
#: inc/settings.php:22
|
148 |
-
msgid "Supported file formats"
|
149 |
-
msgstr ""
|
150 |
-
|
151 |
-
#: inc/settings.php:51
|
152 |
-
msgid "Default Size"
|
153 |
-
msgstr ""
|
154 |
-
|
155 |
-
#: inc/settings.php:53
|
156 |
-
msgid "Width"
|
157 |
-
msgstr ""
|
158 |
-
|
159 |
-
#: inc/settings.php:57
|
160 |
-
msgid "Height"
|
161 |
-
msgstr ""
|
162 |
-
|
163 |
-
#: inc/settings.php:61
|
164 |
-
msgid "Enter values in pixels or percentage (Example: 500px or 100%)"
|
165 |
-
msgstr ""
|
166 |
-
|
167 |
-
#: inc/settings.php:74
|
168 |
-
msgid "Override Default Media Insert?"
|
169 |
-
msgstr ""
|
170 |
-
|
171 |
-
#: inc/settings.php:77
|
172 |
-
msgid "Auto-embed supported documents"
|
173 |
-
msgstr ""
|
174 |
-
|
175 |
-
#: inc/settings.php:77
|
176 |
-
msgid "Insert as link (WordPress Default)"
|
177 |
-
msgstr ""
|
178 |
-
|
179 |
-
#: inc/settings.php:92
|
180 |
-
msgid "Name"
|
181 |
-
msgstr ""
|
182 |
-
|
183 |
-
#: inc/settings.php:96
|
184 |
-
msgid "Email ID"
|
185 |
-
msgstr ""
|
186 |
-
|
187 |
-
#: inc/settings.php:100
|
188 |
-
msgid "Problem"
|
189 |
-
msgstr ""
|
190 |
-
|
191 |
-
#: inc/settings.php:104
|
192 |
-
msgid "Submit"
|
193 |
-
msgstr ""
|
194 |
-
|
195 |
-
#: inc/support-mail.php:8
|
196 |
-
msgid "Please Fill Required Fields"
|
197 |
-
msgstr ""
|
198 |
-
|
199 |
-
#: inc/support-mail.php:30
|
200 |
-
msgid "We will get back to you soon"
|
201 |
-
msgstr ""
|
202 |
-
|
203 |
-
#: inc/support-mail.php:33
|
204 |
-
msgid "Something went wrong"
|
205 |
-
msgstr ""
|
206 |
-
|
207 |
-
#: inc/support-mail.php:38
|
208 |
-
msgid "Cheating ?"
|
209 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
language/embed-any-document.pot
ADDED
@@ -0,0 +1,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Embed Any Document\n"
|
4 |
+
"POT-Creation-Date: 2016-05-12 11:39+0530\n"
|
5 |
+
"PO-Revision-Date: 2016-05-12 11:40+0530\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: Awsm Innovations <hello@awsm.in>\n"
|
8 |
+
"Language: en\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.6.10\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
17 |
+
"X-Poedit-SearchPath-0: .\n"
|
18 |
+
"X-Poedit-SearchPath-1: ..\n"
|
19 |
+
|
20 |
+
#: ../aswm-embed.php:92 ../inc/popup.php:6
|
21 |
+
msgid "Add Document"
|
22 |
+
msgstr ""
|
23 |
+
|
24 |
+
#: ../aswm-embed.php:116
|
25 |
+
msgid "Settings"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: ../aswm-embed.php:137 ../aswm-embed.php:164
|
29 |
+
msgid "Download"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: ../aswm-embed.php:143
|
33 |
+
msgid "Nothing to insert"
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: ../aswm-embed.php:144
|
37 |
+
msgid "Invalid URL"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: ../aswm-embed.php:145 ../inc/popup.php:22
|
41 |
+
msgid "Add URL"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: ../aswm-embed.php:146
|
45 |
+
msgid "Verifying..."
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: ../aswm-embed.php:147
|
49 |
+
msgid "From URL"
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#: ../aswm-embed.php:148
|
53 |
+
msgid "Select"
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: ../aswm-embed.php:230
|
57 |
+
msgid "No Url Found"
|
58 |
+
msgstr ""
|
59 |
+
|
60 |
+
#: ../aswm-embed.php:244
|
61 |
+
msgid "You do not have sufficient permissions to access this page."
|
62 |
+
msgstr ""
|
63 |
+
|
64 |
+
#: ../aswm-embed.php:289
|
65 |
+
msgid "Buy Pro Version"
|
66 |
+
msgstr ""
|
67 |
+
|
68 |
+
#: ../inc/popup.php:4
|
69 |
+
msgid "Close"
|
70 |
+
msgstr ""
|
71 |
+
|
72 |
+
#: ../inc/popup.php:13
|
73 |
+
msgid "Upload Document"
|
74 |
+
msgstr ""
|
75 |
+
|
76 |
+
#: ../inc/popup.php:14
|
77 |
+
msgid "Add from URL"
|
78 |
+
msgstr ""
|
79 |
+
|
80 |
+
#: ../inc/popup.php:20
|
81 |
+
msgid "Enter document URL"
|
82 |
+
msgstr ""
|
83 |
+
|
84 |
+
#: ../inc/popup.php:24
|
85 |
+
msgid "back"
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#: ../inc/popup.php:37
|
89 |
+
msgid "Advanced Options"
|
90 |
+
msgstr ""
|
91 |
+
|
92 |
+
#: ../inc/popup.php:40 ../inc/settings.php:14
|
93 |
+
msgid "Width"
|
94 |
+
msgstr ""
|
95 |
+
|
96 |
+
#: ../inc/popup.php:41 ../inc/settings.php:18
|
97 |
+
msgid "Height"
|
98 |
+
msgstr ""
|
99 |
+
|
100 |
+
#: ../inc/popup.php:43 ../inc/settings.php:26
|
101 |
+
msgid "Show Download Link"
|
102 |
+
msgstr ""
|
103 |
+
|
104 |
+
#: ../inc/popup.php:45 ../inc/settings.php:29
|
105 |
+
msgid "For all users"
|
106 |
+
msgstr ""
|
107 |
+
|
108 |
+
#: ../inc/popup.php:45 ../inc/settings.php:29
|
109 |
+
msgid "For Logged-in users"
|
110 |
+
msgstr ""
|
111 |
+
|
112 |
+
#: ../inc/popup.php:45 ../inc/settings.php:29
|
113 |
+
msgid "No Download"
|
114 |
+
msgstr ""
|
115 |
+
|
116 |
+
#: ../inc/popup.php:50 ../inc/settings.php:35
|
117 |
+
msgid "Download Text"
|
118 |
+
msgstr ""
|
119 |
+
|
120 |
+
#: ../inc/popup.php:54 ../inc/popup.php:61
|
121 |
+
msgid "Viewer"
|
122 |
+
msgstr ""
|
123 |
+
|
124 |
+
#: ../inc/popup.php:56
|
125 |
+
msgid "Google Docs Viewer"
|
126 |
+
msgstr ""
|
127 |
+
|
128 |
+
#: ../inc/popup.php:56
|
129 |
+
msgid "Microsoft Office Online"
|
130 |
+
msgstr ""
|
131 |
+
|
132 |
+
#: ../inc/popup.php:63
|
133 |
+
msgid "Box"
|
134 |
+
msgstr ""
|
135 |
+
|
136 |
+
#: ../inc/popup.php:64
|
137 |
+
msgid "Drive"
|
138 |
+
msgstr ""
|
139 |
+
|
140 |
+
#: ../inc/popup.php:71
|
141 |
+
msgid "Shortcode Preview"
|
142 |
+
msgstr ""
|
143 |
+
|
144 |
+
#: ../inc/popup.php:80
|
145 |
+
msgid "Insert"
|
146 |
+
msgstr ""
|
147 |
+
|
148 |
+
#: ../inc/popup.php:80
|
149 |
+
msgid "Loading..."
|
150 |
+
msgstr ""
|
151 |
+
|
152 |
+
#: ../inc/popup.php:84
|
153 |
+
msgid "Cancel"
|
154 |
+
msgstr ""
|
155 |
+
|
156 |
+
#: ../inc/settings.php:7
|
157 |
+
msgid "General Settings"
|
158 |
+
msgstr ""
|
159 |
+
|
160 |
+
#: ../inc/settings.php:12
|
161 |
+
msgid "Default Size"
|
162 |
+
msgstr ""
|
163 |
+
|
164 |
+
#: ../inc/settings.php:22
|
165 |
+
msgid "Enter values in pixels or percentage (Example: 500px or 100%)"
|
166 |
+
msgstr ""
|
167 |
+
|
168 |
+
#: ../inc/settings.php:63
|
169 |
+
msgid "Like the plugin?"
|
170 |
+
msgstr ""
|
171 |
+
|
172 |
+
#: ../inc/settings.php:63
|
173 |
+
msgid "Rate Now!"
|
174 |
+
msgstr ""
|
175 |
+
|
176 |
+
#: ../inc/settings.php:68
|
177 |
+
msgid "Need Help?"
|
178 |
+
msgstr ""
|
179 |
+
|
180 |
+
#: ../inc/settings.php:68
|
181 |
+
msgid "Open a Ticket"
|
182 |
+
msgstr ""
|
183 |
+
|
184 |
+
#: ../inc/settings.php:75
|
185 |
+
msgid "How to Embed Documents?"
|
186 |
+
msgstr ""
|
187 |
+
|
188 |
+
#: ../inc/settings.php:76
|
189 |
+
msgid "About Viewers"
|
190 |
+
msgstr ""
|
191 |
+
|
192 |
+
#: ../inc/settings.php:77
|
193 |
+
msgid "Shortcode & Attributes"
|
194 |
+
msgstr ""
|
195 |
+
|
196 |
+
#: ../inc/settings.php:78
|
197 |
+
msgid "FAQs"
|
198 |
+
msgstr ""
|
language/en_US.mo
DELETED
Binary file
|
language/en_US.po
DELETED
@@ -1,209 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Embed Any Document\n"
|
4 |
-
"POT-Creation-Date: 2014-11-24 13:11+0530\n"
|
5 |
-
"PO-Revision-Date: 2014-11-24 13:13+0530\n"
|
6 |
-
"Last-Translator: \n"
|
7 |
-
"Language-Team: Awsm Innovations <hello@awsm.in>\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"X-Generator: Poedit 1.6.10\n"
|
12 |
-
"X-Poedit-Basepath: ../\n"
|
13 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
14 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
-
"X-Poedit-KeywordsList: __;_e;esc_attr_e\n"
|
16 |
-
"Language: en_US\n"
|
17 |
-
"X-Poedit-SearchPath-0: .\n"
|
18 |
-
|
19 |
-
#: aswm-embed.php:77 inc/popup.php:6
|
20 |
-
msgid "Add Document"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: aswm-embed.php:102
|
24 |
-
msgid "Settings"
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: aswm-embed.php:127
|
28 |
-
msgid "Nothing to insert"
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: aswm-embed.php:128
|
32 |
-
msgid "Add URL"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: aswm-embed.php:129
|
36 |
-
msgid "Verifying..."
|
37 |
-
msgstr ""
|
38 |
-
|
39 |
-
#: aswm-embed.php:154 aswm-embed.php:181
|
40 |
-
msgid "You do not have sufficient permissions to access this page."
|
41 |
-
msgstr ""
|
42 |
-
|
43 |
-
#: inc/functions.php:96
|
44 |
-
msgid "Done"
|
45 |
-
msgstr ""
|
46 |
-
|
47 |
-
#: inc/functions.php:101
|
48 |
-
msgid "Document"
|
49 |
-
msgstr ""
|
50 |
-
|
51 |
-
#: inc/functions.php:106
|
52 |
-
msgid "File format is not supported."
|
53 |
-
msgstr ""
|
54 |
-
|
55 |
-
#: inc/functions.php:111
|
56 |
-
msgid "Not a valid URL. Please try again."
|
57 |
-
msgstr ""
|
58 |
-
|
59 |
-
#: inc/functions.php:118
|
60 |
-
msgid "Sorry, the file URL is not valid."
|
61 |
-
msgstr ""
|
62 |
-
|
63 |
-
#: inc/functions.php:190
|
64 |
-
msgid "Download"
|
65 |
-
msgstr ""
|
66 |
-
|
67 |
-
#: inc/functions.php:195
|
68 |
-
msgid "File Not Found"
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
-
#: inc/functions.php:198
|
72 |
-
msgid "No Url Found"
|
73 |
-
msgstr ""
|
74 |
-
|
75 |
-
#: inc/popup.php:12
|
76 |
-
msgid "Upload and Embed"
|
77 |
-
msgstr ""
|
78 |
-
|
79 |
-
#: inc/popup.php:13
|
80 |
-
msgid "Add From URL"
|
81 |
-
msgstr ""
|
82 |
-
|
83 |
-
#: inc/popup.php:21
|
84 |
-
msgid "Enter document URL"
|
85 |
-
msgstr ""
|
86 |
-
|
87 |
-
#: inc/popup.php:33
|
88 |
-
msgid "Advanced Options"
|
89 |
-
msgstr ""
|
90 |
-
|
91 |
-
#: inc/popup.php:43 inc/settings.php:65
|
92 |
-
msgid "Show Download Link"
|
93 |
-
msgstr ""
|
94 |
-
|
95 |
-
#: inc/popup.php:45 inc/settings.php:68
|
96 |
-
msgid "For all users"
|
97 |
-
msgstr ""
|
98 |
-
|
99 |
-
#: inc/popup.php:45 inc/settings.php:68
|
100 |
-
msgid "For Logged-in users"
|
101 |
-
msgstr ""
|
102 |
-
|
103 |
-
#: inc/popup.php:45 inc/settings.php:68
|
104 |
-
msgid "None"
|
105 |
-
msgstr ""
|
106 |
-
|
107 |
-
#: inc/popup.php:50
|
108 |
-
msgid "Provider"
|
109 |
-
msgstr ""
|
110 |
-
|
111 |
-
#: inc/popup.php:52 inc/settings.php:18
|
112 |
-
msgid "Google Docs Viewer"
|
113 |
-
msgstr ""
|
114 |
-
|
115 |
-
#: inc/popup.php:52 inc/settings.php:18
|
116 |
-
msgid "Microsoft Office Online"
|
117 |
-
msgstr ""
|
118 |
-
|
119 |
-
#: inc/popup.php:60
|
120 |
-
msgid "Shortcode Preview"
|
121 |
-
msgstr ""
|
122 |
-
|
123 |
-
#: inc/popup.php:69
|
124 |
-
msgid "Insert"
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: inc/popup.php:73
|
128 |
-
msgid "Cancel"
|
129 |
-
msgstr ""
|
130 |
-
|
131 |
-
#: inc/settings.php:3
|
132 |
-
msgid "Embed Any Document by AWSM.in"
|
133 |
-
msgstr ""
|
134 |
-
|
135 |
-
#: inc/settings.php:5
|
136 |
-
msgid "General Settings"
|
137 |
-
msgstr ""
|
138 |
-
|
139 |
-
#: inc/settings.php:6
|
140 |
-
msgid "Support"
|
141 |
-
msgstr ""
|
142 |
-
|
143 |
-
#: inc/settings.php:15
|
144 |
-
msgid "Embed Using"
|
145 |
-
msgstr ""
|
146 |
-
|
147 |
-
#: inc/settings.php:22
|
148 |
-
msgid "Supported file formats"
|
149 |
-
msgstr ""
|
150 |
-
|
151 |
-
#: inc/settings.php:51
|
152 |
-
msgid "Default Size"
|
153 |
-
msgstr ""
|
154 |
-
|
155 |
-
#: inc/settings.php:53
|
156 |
-
msgid "Width"
|
157 |
-
msgstr ""
|
158 |
-
|
159 |
-
#: inc/settings.php:57
|
160 |
-
msgid "Height"
|
161 |
-
msgstr ""
|
162 |
-
|
163 |
-
#: inc/settings.php:61
|
164 |
-
msgid "Enter values in pixels or percentage (Example: 500px or 100%)"
|
165 |
-
msgstr ""
|
166 |
-
|
167 |
-
#: inc/settings.php:74
|
168 |
-
msgid "Override Default Media Insert?"
|
169 |
-
msgstr ""
|
170 |
-
|
171 |
-
#: inc/settings.php:77
|
172 |
-
msgid "Auto-embed supported documents"
|
173 |
-
msgstr ""
|
174 |
-
|
175 |
-
#: inc/settings.php:77
|
176 |
-
msgid "Insert as link (WordPress Default)"
|
177 |
-
msgstr ""
|
178 |
-
|
179 |
-
#: inc/settings.php:92
|
180 |
-
msgid "Name"
|
181 |
-
msgstr ""
|
182 |
-
|
183 |
-
#: inc/settings.php:96
|
184 |
-
msgid "Email ID"
|
185 |
-
msgstr ""
|
186 |
-
|
187 |
-
#: inc/settings.php:100
|
188 |
-
msgid "Problem"
|
189 |
-
msgstr ""
|
190 |
-
|
191 |
-
#: inc/settings.php:104
|
192 |
-
msgid "Submit"
|
193 |
-
msgstr ""
|
194 |
-
|
195 |
-
#: inc/support-mail.php:8
|
196 |
-
msgid "Please Fill Required Fields"
|
197 |
-
msgstr ""
|
198 |
-
|
199 |
-
#: inc/support-mail.php:30
|
200 |
-
msgid "We will get back to you soon"
|
201 |
-
msgstr ""
|
202 |
-
|
203 |
-
#: inc/support-mail.php:33
|
204 |
-
msgid "Something went wrong"
|
205 |
-
msgstr ""
|
206 |
-
|
207 |
-
#: inc/support-mail.php:38
|
208 |
-
msgid "Cheating ?"
|
209 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://awsm.in/donate
|
|
4 |
Tags: embed documents, upload pdf, embed ppt, document viewer, pdf viewer, pdf viewer plugin, display pdf, embed pdf, embed pdf in wordpress, word, word viewer, word document, embed word, word plugin, doc, doc viewer, docx, docx viewer, excel, excel plugin, xls, xlsx, spreadsheet, embed spreadsheet, powerpoint, powerpoint viewer, ppt, ppt viewer, pptx, image viewer
|
5 |
Author URI: http://awsm.in
|
6 |
Requires at least: 3.5
|
7 |
-
Tested up to: 4.
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2
|
10 |
|
@@ -65,7 +65,7 @@ Upload or link the documents to your site using the ‘Add Document’ button in
|
|
65 |
1. ‘Add Document’ button integrated into WordPress visual editor
|
66 |
2. Add document popup
|
67 |
3. Inserting Document
|
68 |
-
4.
|
69 |
|
70 |
|
71 |
== Frequently Asked Questions ==
|
@@ -81,22 +81,96 @@ Great. Send it to ead@awsm.in. We will answer it as soon as we can.
|
|
81 |
|
82 |
== Changelog ==
|
83 |
|
84 |
-
=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
* Added option in advanced option to choose viewer.
|
86 |
* Added option in settings to enable and disable media library insert.
|
87 |
* Fixed: Editor permission issue.
|
88 |
|
|
|
|
|
89 |
|
90 |
-
=
|
91 |
* Removed unsupported file types.
|
92 |
* Updated support tab.
|
93 |
|
94 |
-
=
|
95 |
* File Not Found fix
|
96 |
|
97 |
|
98 |
== Upgrade Notice ==
|
99 |
|
100 |
-
=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
* Removed unsupported file types.
|
102 |
-
* Updated support tab.
|
|
|
|
|
|
4 |
Tags: embed documents, upload pdf, embed ppt, document viewer, pdf viewer, pdf viewer plugin, display pdf, embed pdf, embed pdf in wordpress, word, word viewer, word document, embed word, word plugin, doc, doc viewer, docx, docx viewer, excel, excel plugin, xls, xlsx, spreadsheet, embed spreadsheet, powerpoint, powerpoint viewer, ppt, ppt viewer, pptx, image viewer
|
5 |
Author URI: http://awsm.in
|
6 |
Requires at least: 3.5
|
7 |
+
Tested up to: 4.7
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2
|
10 |
|
65 |
1. ‘Add Document’ button integrated into WordPress visual editor
|
66 |
2. Add document popup
|
67 |
3. Inserting Document
|
68 |
+
4. Add from URL
|
69 |
|
70 |
|
71 |
== Frequently Asked Questions ==
|
81 |
|
82 |
== Changelog ==
|
83 |
|
84 |
+
= V 2.2.5 - 2016-05-12 =
|
85 |
+
* Minor bug fixes and enhancements
|
86 |
+
|
87 |
+
= V 2.2.4 - 2016-04-04 =
|
88 |
+
|
89 |
+
* Minor bug fix
|
90 |
+
|
91 |
+
= V 2.2.3 - 2016-04-04 =
|
92 |
+
|
93 |
+
* Added option to change download link text
|
94 |
+
* Responsive height support for embeds
|
95 |
+
* Language compatibility fixes
|
96 |
+
|
97 |
+
= V 2.2.2 - 2016-03-10 =
|
98 |
+
* Added ppsx support.
|
99 |
+
|
100 |
+
= V 2.2.1 - 2015-10-03 =
|
101 |
+
* New Language localization.
|
102 |
+
|
103 |
+
= V 2.2 - 2015-06-24 =
|
104 |
+
* Replaced magnific popup with thickbox.
|
105 |
+
* Fixed: Media library serach bug.
|
106 |
+
* UI Improvements
|
107 |
+
|
108 |
+
= V 2.1 - 2015-01-25 =
|
109 |
+
* Missing image fix.
|
110 |
+
* Error handling.
|
111 |
+
|
112 |
+
= V 2.0 - 2014-12-31 =
|
113 |
+
* UI Improvements
|
114 |
+
* Various bug fixes
|
115 |
+
* Performance improvements
|
116 |
+
* Introduced plus version with cloud support
|
117 |
+
|
118 |
+
= V 1.0.2 - 2014-11-24 =
|
119 |
* Added option in advanced option to choose viewer.
|
120 |
* Added option in settings to enable and disable media library insert.
|
121 |
* Fixed: Editor permission issue.
|
122 |
|
123 |
+
= V 1.1.1- 2014-12-8 =
|
124 |
+
* Removed media insert override option.
|
125 |
|
126 |
+
= V 1.0.1 - 2014-11-12 =
|
127 |
* Removed unsupported file types.
|
128 |
* Updated support tab.
|
129 |
|
130 |
+
= V 1.1 - 2014-11-12 =
|
131 |
* File Not Found fix
|
132 |
|
133 |
|
134 |
== Upgrade Notice ==
|
135 |
|
136 |
+
= V 2.2.5 - 2016-05-12 =
|
137 |
+
* Minor bug fixes and enhancements
|
138 |
+
|
139 |
+
= V 2.2.4 - 2016-04-04 =
|
140 |
+
* Minor bug fix
|
141 |
+
|
142 |
+
= V 2.2.3 - 2016-04-04 =
|
143 |
+
|
144 |
+
* Added option to change download link text
|
145 |
+
* Responsive height support for embeds
|
146 |
+
* Language compatibility fixes
|
147 |
+
|
148 |
+
= V 2.2.2 - 2016-03-10 =
|
149 |
+
* Added ppsx support.
|
150 |
+
|
151 |
+
= V 2.2.1 - 2015-10-03 =
|
152 |
+
* New Language localization.
|
153 |
+
|
154 |
+
= V 2.2 =
|
155 |
+
* Replaced magnific popup with thickbox.
|
156 |
+
* Fixed: Media library serach bug.
|
157 |
+
* UI Improvements
|
158 |
+
|
159 |
+
= V 2.1 =
|
160 |
+
* Missing image fix.
|
161 |
+
* Error handling.
|
162 |
+
|
163 |
+
= V 2.0 =
|
164 |
+
* UI Improvements
|
165 |
+
* Various bug fixes
|
166 |
+
* Performance improvements
|
167 |
+
|
168 |
+
= V 1.1.1=
|
169 |
+
* Removed media insert override option.
|
170 |
+
|
171 |
+
= V 1.0.1 =
|
172 |
* Removed unsupported file types.
|
173 |
+
* Updated support tab.
|
174 |
+
|
175 |
+
= V 1.1 =
|
176 |
+
* File Not Found fix
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-3.png
CHANGED
Binary file
|
screenshot-4.png
CHANGED
Binary file
|