rtMedia for WordPress, BuddyPress and bbPress - Version 3.8.12

Version Description

  • Updated media gallery actions for BuddyPress groups
  • Updated action messages for single media
  • Updated view count process
  • Added SCRIPT_DEBUG support
  • Fixed bugs in admin settings
  • Bug fixes
Download this release

Release Info

Developer rtcamp
Plugin Icon 128x128 rtMedia for WordPress, BuddyPress and bbPress
Version 3.8.12
Comparing to
See all releases

Code changes from version 3.8.11 to 3.8.12

Files changed (51) hide show
  1. Gruntfile.js +138 -52
  2. app/admin/RTMediaAdmin.php +13 -6
  3. app/admin/RTMediaFormHandler.php +2 -2
  4. app/assets/admin/css/admin.css +1085 -1
  5. app/assets/admin/css/admin.min.css +1 -0
  6. app/assets/admin/css/sass/_layout.scss +1 -1
  7. app/assets/admin/css/sass/_rtmedia-pro.scss +1 -1
  8. app/assets/admin/css/sass/_switch.scss +6 -6
  9. app/assets/admin/css/sass/_tooltip.scss +1 -2
  10. app/assets/admin/css/sass/admin.scss +1 -5
  11. app/assets/admin/css/widget.css +57 -1
  12. app/assets/admin/css/widget.min.css +1 -0
  13. app/assets/admin/img/rtmedia-photo-filters.png +0 -0
  14. app/assets/admin/js/admin.min.js +5 -0
  15. app/assets/admin/js/settings.js +788 -0
  16. app/assets/css/rtmedia.css +2507 -0
  17. app/assets/css/rtmedia.min.css +1 -0
  18. app/assets/css/sass/_magnific.scss +1 -1
  19. app/assets/css/sass/_media-tab.scss +11 -13
  20. app/assets/css/sass/_popup.scss +14 -1
  21. app/assets/css/sass/_rtm.scss +403 -0
  22. app/assets/css/sass/_utility.scss +15 -5
  23. app/assets/css/sass/rtmedia.scss +41 -0
  24. app/assets/js/rtMedia.backbone.js +7 -0
  25. app/assets/js/rtMedia.js +55 -29
  26. app/assets/js/rtmedia.min.js +6 -0
  27. app/helper/RTMediaAddon.php +6 -6
  28. app/helper/RTMediaInteractionModel.php +12 -7
  29. app/helper/RTMediaLicense.php +1 -1
  30. app/helper/RTMediaModel.php +32 -32
  31. app/helper/RTMediaThemes.php +20 -20
  32. app/helper/db/RTDBModel.php +20 -20
  33. app/importers/BPMediaAlbumimporter.php +1 -1
  34. app/importers/RTMediaMediaSizeImporter.php +1 -1
  35. app/main/RTMedia.php +61 -3
  36. app/main/controllers/api/RTMediaJsonApi.php +4 -4
  37. app/main/controllers/media/RTMediaFeatured.php +2 -0
  38. app/main/controllers/media/RTMediaGalleryItemAction.php +12 -2
  39. app/main/controllers/media/RTMediaLoginPopup.php +2 -2
  40. app/main/controllers/media/RTMediaViewCount.php +7 -29
  41. app/main/controllers/privacy/RTMediaPrivacy.php +1 -1
  42. app/main/controllers/template/RTMediaNav.php +2 -2
  43. app/main/controllers/template/RTMediaTemplate.php +1 -1
  44. app/main/controllers/template/rt-template-functions.php +11 -3
  45. app/services/RTMediaEncoding.php +4 -4
  46. index.php +1 -1
  47. languages/rtmedia.po +1658 -1661
  48. package.json +15 -12
  49. readme.txt +12 -4
  50. templates/media/album-single-edit.php +3 -2
  51. templates/media/media-single-edit.php +67 -67
Gruntfile.js CHANGED
@@ -1,65 +1,151 @@
1
'use strict';
2
module.exports = function ( grunt ) {
3
4
- // load all grunt tasks matching the `grunt-*` pattern
5
- // Ref. https://npmjs.org/package/load-grunt-tasks
6
- require( 'load-grunt-tasks' )( grunt );
7
8
- grunt.initConfig( {
9
- // SCSS and Compass
10
- // Ref. https://npmjs.org/package/grunt-contrib-compass
11
- compass: {
12
- frontend: {
13
- options: {
14
- config: 'config.rb',
15
- force: true
16
- }
17
- },
18
- // Admin Panel CSS
19
- backend: {
20
- options: {
21
- sassDir: 'app/assets/admin/css/sass/',
22
- cssDir: 'app/assets/admin/css/'
23
- }
24
- }
25
- },
26
- // Uglify
27
- // Compress and Minify JS files
28
- // Ref. https://npmjs.org/package/grunt-contrib-uglify
29
- uglify: {
30
- options: {
31
- banner: '/*! \n * rtMedia JavaScript Library \n * @package rtMedia \n */'
32
- },
33
- frontend: {
34
- src: [
35
'app/assets/js/vendors/magnific-popup.js',
36
'app/assets/admin/js/vendors/tabs.js',
37
'app/assets/js/rtMedia.js'
38
- ],
39
- dest: 'app/assets/js/main.js'
40
- },
41
- backend: {
42
src: [
43
'app/assets/admin/js/vendors/tabs.js',
44
'app/assets/admin/js/scripts.js',
45
- 'app/assets/admin/js/admin.js'
46
],
47
- dest: 'app/assets/admin/js/admin-min.js'
48
- }
49
- },
50
- // Watch for hanges and trigger compass and uglify
51
- // Ref. https://npmjs.org/package/grunt-contrib-watch
52
- watch: {
53
- compass: { files: [ '**/*.{scss,sass}' ],
54
- tasks: [ 'compass' ]
55
- },
56
- uglify: {
57
- files: [ '<%= uglify.frontend.src %>', '<%= uglify.backend.src %>' ],
58
- tasks: [ 'uglify' ]
59
}
60
- }
61
- } );
62
63
- // Register Task
64
- grunt.registerTask( 'default', [ 'watch' ] );
65
- };
1
'use strict';
2
module.exports = function ( grunt ) {
3
4
+ // load all grunt tasks matching the `grunt-*` pattern
5
+ // Ref. https://npmjs.org/package/load-grunt-tasks
6
+ require( 'load-grunt-tasks' )( grunt );
7
8
+ grunt.initConfig( {
9
+ // watch for changes and trigger sass, jshint, uglify and livereload
10
+ watch: {
11
+ sass: {
12
+ files: [ 'app/assets/admin/css/sass/**/*.{scss,sass}', 'app/assets/css/sass/**/*.{scss,sass}' ],
13
+ tasks: [ 'sass' ]
14
+ },
15
+ autoprefixer: {
16
+ files: [ 'app/assets/admin/css/*.css', 'app/assets/css/*css' ],
17
+ tasks: [ 'autoprefixer' ]
18
+ },
19
+ js: {
20
+ files: [ '<%= uglify.frontend.src %>', '<%= uglify.backend.src %>' ],
21
+ tasks: [ 'uglify' ]
22
+ },
23
+ livereload: {
24
+ // Here we watch the files the sass task will compile to
25
+ // These files are sent to the live reload server after sass compiles to them
26
+ options: { livereload: true },
27
+ files: [ '*.php', '*.css' ]
28
+ }
29
+ },
30
+ // sass
31
+ sass: {
32
+ dist: {
33
+ options: {
34
+ style: 'expanded',
35
+ sourcemap: 'none'
36
+ },
37
+ files: {
38
+ 'app/assets/admin/css/admin.css': 'app/assets/admin/css/sass/admin.scss',
39
+ 'app/assets/admin/css/widget.css': 'app/assets/admin/css/sass/widget.scss',
40
+ 'app/assets/css/rtmedia.css': 'app/assets/css/sass/rtmedia.scss',
41
+ }
42
+ },
43
+ minify: {
44
+ options: {
45
+ style: 'compressed',
46
+ sourcemap: 'none'
47
+ },
48
+ files: {
49
+ 'app/assets/admin/css/admin.min.css': 'app/assets/admin/css/sass/admin.scss',
50
+ 'app/assets/admin/css/widget.min.css': 'app/assets/admin/css/sass/widget.scss',
51
+ 'app/assets/css/rtmedia.min.css': 'app/assets/css/sass/rtmedia.scss'
52
+ }
53
+ }
54
+ },
55
+ // autoprefixer
56
+ autoprefixer: {
57
+ dist: {
58
+ options: {
59
+ browsers: [ 'last 2 versions', 'ie 9', 'ios 6', 'android 4' ],
60
+ expand: true,
61
+ flatten: true
62
+ },
63
+ files: {
64
+ 'app/assets/admin/css/admin.css': 'app/assets/admin/css/admin.css',
65
+ 'app/assets/admin/css/admin.min.css': 'app/assets/admin/css/admin.min.css',
66
+ 'app/assets/admin/css/widget.css': 'app/assets/admin/css/widget.css',
67
+ 'app/assets/admin/css/widget.min.css': 'app/assets/admin/css/widget.min.css',
68
+ 'app/assets/css/rtmedia.css': 'app/assets/css/rtmedia.css',
69
+ 'app/assets/css/rtmedia.min.css': 'app/assets/css/rtmedia.min.css'
70
+ }
71
+ }
72
+ },
73
+ // Uglify Ref. https://npmjs.org/package/grunt-contrib-uglify
74
+ uglify: {
75
+ options: {
76
+ banner: '/*! \n * rtMedia JavaScript Library \n * @package rtMedia \n */\n',
77
+ },
78
+ frontend: {
79
+ src: [
80
'app/assets/js/vendors/magnific-popup.js',
81
'app/assets/admin/js/vendors/tabs.js',
82
'app/assets/js/rtMedia.js'
83
+ ],
84
+ dest: 'app/assets/js/rtmedia.min.js'
85
+ },
86
+ backend: {
87
src: [
88
'app/assets/admin/js/vendors/tabs.js',
89
'app/assets/admin/js/scripts.js',
90
+ 'app/assets/admin/js/settings.js'
91
],
92
+ dest: 'app/assets/admin/js/admin.min.js'
93
}
94
+ },
95
+ checktextdomain: {
96
+ options: {
97
+ text_domain: 'rtmedia', //Specify allowed domain(s)
98
+ keywords: [ //List keyword specifications
99
+ '__:1,2d',
100
+ '_e:1,2d',
101
+ '_x:1,2c,3d',
102
+ 'esc_html__:1,2d',
103
+ 'esc_html_e:1,2d',
104
+ 'esc_html_x:1,2c,3d',
105
+ 'esc_attr__:1,2d',
106
+ 'esc_attr_e:1,2d',
107
+ 'esc_attr_x:1,2c,3d',
108
+ '_ex:1,2c,3d',
109
+ '_n:1,2,4d',
110
+ '_nx:1,2,4c,5d',
111
+ '_n_noop:1,2,3d',
112
+ '_nx_noop:1,2,3c,4d'
113
+ ]
114
+ },
115
+ target: {
116
+ files: [ {
117
+ src: [
118
+ '*.php',
119
+ '**/*.php',
120
+ '!node_modules/**',
121
+ '!tests/**'
122
+ ], //all php
123
+ expand: true
124
+ } ]
125
+ }
126
+ },
127
+ makepot: {
128
+ target: {
129
+ options: {
130
+ cwd: '.', // Directory of files to internationalize.
131
+ domainPath: 'languages/', // Where to save the POT file.
132
+ exclude: [ 'node_modules/*' ], // List of files or directories to ignore.
133
+ mainFile: 'index.php', // Main project file.
134
+ potFilename: 'rtmedia.po', // Name of the POT file.
135
+ potHeaders: { // Headers to add to the generated POT file.
136
+ poedit: true, // Includes common Poedit headers.
137
+ 'Last-Translator': 'rtMedia <rtmedia@rtcamp.com>',
138
+ 'Language-Team': 'rtMedia <rtmedia@rtcamp.com>',
139
+ 'report-msgid-bugs-to': 'http://community.rtcamp.com/c/rtmedia/',
140
+ 'x-poedit-keywordslist': true // Include a list of all possible gettext functions.
141
+ },
142
+ type: 'wp-plugin', // Type of project (wp-plugin or wp-theme).
143
+ updateTimestamp: true // Whether the POT-Creation-Date should be updated without other changes.
144
+ }
145
+ }
146
+ }
147
148
+ } );
149
+ // register task
150
+ grunt.registerTask( 'default', [ 'sass', 'autoprefixer', 'uglify', 'checktextdomain', 'makepot', 'watch' ] );
151
+ };
app/admin/RTMediaAdmin.php CHANGED
@@ -122,7 +122,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
122
if ( $rtm_id ) {
123
$link = get_rtmedia_permalink( $rtm_id );
124
$title =_draft_or_post_title( $post->post_parent );
125
- $action[ 'view' ] = '<a href="' . $link . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>';
126
}
127
128
return $action;
@@ -364,7 +364,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
364
*/
365
public function rtmedia_permalink_notice() {
366
echo '<div class="error rtmedia-permalink-change-notice">
367
- <p> <b>' . __( 'rtMedia:' ) . '</b> ' . __( ' You must ' ) . '<a href="' . admin_url( 'options-permalink.php' ) . '">' . __( 'update permalink structure' ) . '</a>' . __( ' to something other than the default for it to work.', 'rtmedia' ) . ' </p>
368
</div>';
369
}
370
@@ -811,13 +811,20 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
811
}
812
813
$admin_pages = apply_filters( 'rtmedia_filter_admin_pages_array', $admin_pages );
814
815
if ( in_array( $hook, $admin_pages ) || strpos( $hook, 'rtmedia-migration' ) ) {
816
817
$admin_ajax = admin_url( 'admin-ajax.php' );
818
819
/* Only one JS file should enqueue */
820
- wp_enqueue_script( 'rtmedia-admin', RTMEDIA_URL . 'app/assets/admin/js/admin-min.js', array( 'backbone' ), RTMEDIA_VERSION );
821
822
wp_localize_script( 'rtmedia-admin', 'rtmedia_on_label', __( 'ON', 'rtmedia' ) );
823
wp_localize_script( 'rtmedia-admin', 'rtmedia_off_label', __( 'OFF', 'rtmedia' ) );
@@ -838,11 +845,11 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
838
wp_localize_script( 'rtmedia-admin', 'settings_rt_album_import_url', esc_url( add_query_arg( array( 'page' => 'rtmedia-settings' ), ( is_multisite() ? network_admin_url( 'admin.php' ) : admin_url( 'admin.php' ) ) ) ) );
839
840
/* Only one CSS file should enqueue */
841
- wp_enqueue_style( 'rtmedia-admin', RTMEDIA_URL . 'app/assets/admin/css/admin.css', '', RTMEDIA_VERSION );
842
} else {
843
844
/* This CSS is using for "Right Now in rtMedia" Widget section on Dashboard */
845
- wp_enqueue_style( 'rtmedia-widget', RTMEDIA_URL . 'app/assets/admin/css/widget.css', '', RTMEDIA_VERSION );
846
}
847
}
848
@@ -1932,7 +1939,7 @@ if ( ! class_exists( 'RTMediaAdmin' ) ) {
1932
if ( ! $site_option || 'hide' != $site_option ) {
1933
rtmedia_update_site_option( 'rtmedia-update-template-notice-v3_8', 'show' );
1934
if ( is_dir( get_template_directory() . '/rtmedia' ) ) {
1935
- echo '<div class="error rtmedia-update-template-notice"><p>' . __( 'Please update rtMedia template files if you have overridden the default rtMedia templates in your theme. If not, you can ignore and hide this notice.' ) . '<a href="#" onclick="rtmedia_hide_template_override_notice()" style="float:right">' . __( 'Hide', 'rtmedia' ) . '</a>' . ' </p></div>';
1936
?>
1937
<script type="text/javascript">
1938
function rtmedia_hide_template_override_notice() {
122
if ( $rtm_id ) {
123
$link = get_rtmedia_permalink( $rtm_id );
124
$title =_draft_or_post_title( $post->post_parent );
125
+ $action[ 'view' ] = '<a href="' . $link . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;', 'rtmedia' ), $title ) ) . '" rel="permalink">' . __( 'View', 'rtmedia' ) . '</a>';
126
}
127
128
return $action;
364
*/
365
public function rtmedia_permalink_notice() {
366
echo '<div class="error rtmedia-permalink-change-notice">
367
+ <p> <b>rtMedia:</b> ' . __( ' You must', 'rtmedia' ) . ' <a href="' . admin_url( 'options-permalink.php' ) . '">' . __( 'update permalink structure', 'rtmedia' ) . '</a> ' . __( 'to something other than the default for it to work.', 'rtmedia' ) . ' </p>
368
</div>';
369
}
370
811
}
812
813
$admin_pages = apply_filters( 'rtmedia_filter_admin_pages_array', $admin_pages );
814
+ $suffix = ( function_exists( 'rtm_get_script_style_suffix' ) ) ? rtm_get_script_style_suffix() : '.min';
815
816
if ( in_array( $hook, $admin_pages ) || strpos( $hook, 'rtmedia-migration' ) ) {
817
818
$admin_ajax = admin_url( 'admin-ajax.php' );
819
820
/* Only one JS file should enqueue */
821
+ if( $suffix === '' ) {
822
+ wp_enqueue_script( 'rtmedia-admin-tabs', RTMEDIA_URL . 'app/assets/admin/js/vendors/tabs.js', array( 'backbone' ), RTMEDIA_VERSION );
823
+ wp_enqueue_script( 'rtmedia-admin-scripts', RTMEDIA_URL . 'app/assets/admin/js/scripts.js', array( 'backbone' ), RTMEDIA_VERSION );
824
+ wp_enqueue_script( 'rtmedia-admin', RTMEDIA_URL . 'app/assets/admin/js/settings.js', array( 'backbone' ), RTMEDIA_VERSION );
825
+ } else {
826
+ wp_enqueue_script( 'rtmedia-admin', RTMEDIA_URL . 'app/assets/admin/js/admin.min.js', array( 'backbone' ), RTMEDIA_VERSION );
827
+ }
828
829
wp_localize_script( 'rtmedia-admin', 'rtmedia_on_label', __( 'ON', 'rtmedia' ) );
830
wp_localize_script( 'rtmedia-admin', 'rtmedia_off_label', __( 'OFF', 'rtmedia' ) );
845
wp_localize_script( 'rtmedia-admin', 'settings_rt_album_import_url', esc_url( add_query_arg( array( 'page' => 'rtmedia-settings' ), ( is_multisite() ? network_admin_url( 'admin.php' ) : admin_url( 'admin.php' ) ) ) ) );
846
847
/* Only one CSS file should enqueue */
848
+ wp_enqueue_style( 'rtmedia-admin', RTMEDIA_URL . 'app/assets/admin/css/admin' . $suffix . '.css', '', RTMEDIA_VERSION );
849
} else {
850
851
/* This CSS is using for "Right Now in rtMedia" Widget section on Dashboard */
852
+ wp_enqueue_style( 'rtmedia-widget', RTMEDIA_URL . 'app/assets/admin/css/widget' . $suffix . '.css', '', RTMEDIA_VERSION );
853
}
854
}
855
1939
if ( ! $site_option || 'hide' != $site_option ) {
1940
rtmedia_update_site_option( 'rtmedia-update-template-notice-v3_8', 'show' );
1941
if ( is_dir( get_template_directory() . '/rtmedia' ) ) {
1942
+ echo '<div class="error rtmedia-update-template-notice"><p>' . __( 'Please update rtMedia template files if you have overridden the default rtMedia templates in your theme. If not, you can ignore and hide this notice.', 'rtmedia' ) . '<a href="#" onclick="rtmedia_hide_template_override_notice()" style="float:right">' . __( 'Hide', 'rtmedia' ) . '</a>' . ' </p></div>';
1943
?>
1944
<script type="text/javascript">
1945
function rtmedia_hide_template_override_notice() {
app/admin/RTMediaFormHandler.php CHANGED
@@ -440,7 +440,7 @@ class RTMediaFormHandler {
440
),
441
'group' => 100,
442
'depends' => 'rtmedia_add_linkback',
443
- 'after_content' => __( 'Signup for rtMedia affiliate program <a href="https://rtcamp.com/affiliates">here</a>' ),
444
), //
445
'rtmedia_enable_api' => array(
446
'title' => __( 'Enable JSON API', 'rtmedia' ),
@@ -451,7 +451,7 @@ class RTMediaFormHandler {
451
'desc' => __( 'This will allow handling API requests for rtMedia sent through any mobile app.', 'rtmedia' ),
452
),
453
'group' => 80,
454
- 'after_content' => __( 'You can refer to the API document from <a href="https://rtcamp.com/rtmedia/docs/developer/json-api/">here</a>' ),
455
), //
456
);
457
440
),
441
'group' => 100,
442
'depends' => 'rtmedia_add_linkback',
443
+ 'after_content' => __( 'Signup for', 'rtmedia' ) . ' rtMedia ' . __( 'affiliate program', 'rtmedia' ) . ' <a href="https://rtcamp.com/affiliates">' . __( 'here', 'rtmedia' ) . '</a>',
444
), //
445
'rtmedia_enable_api' => array(
446
'title' => __( 'Enable JSON API', 'rtmedia' ),
451
'desc' => __( 'This will allow handling API requests for rtMedia sent through any mobile app.', 'rtmedia' ),
452
),
453
'group' => 80,
454
+ 'after_content' => __( 'You can refer to the API document from', 'rtmedia' ) . ' <a href="http://docs.rtcamp.com/rtmedia/developers/json-api.html">' . __( 'here', 'rtmedia' ) . '</a>',
455
), //
456
);
457
app/assets/admin/css/admin.css CHANGED
@@ -1 +1,1085 @@
1
- .alignleft{float:left}.alignright{float:right}.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}.clear-both{clear:both}.clear-none{clear:none}.clear-left{clear:left}.clear-right{clear:right}.rtm-inline-block{display:inline-block}.rtm-text-left{text-align:left}.rtm-text-right{text-align:right}.rtm-text-center{text-align:center}.rtm-border-0{border:0 !important}.hide{display:none}.clearfix:after{content:"";display:table;clear:both}.rtm-row-container{padding-top:10px}.rtm-admin-tab-container{display:table;width:100%}.rtm-admin-tab-container .rtm-tabs-content{background:#fff;border-left:1px solid #e7e7e7;display:table-cell;min-height:300px;padding:20px 30px;vertical-align:top}.rtm-setting-container{background-color:#f5f5f5;border:1px solid #dedede;-moz-box-shadow:0 1px 1px rgba(0,0,0,0.04);-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.04);box-shadow:0 1px 1px rgba(0,0,0,0.04);margin-top:10px}.rtm-sidebar .postbox .hndle{cursor:default}.rtm-tabs{display:table-cell;list-style:none;margin:0;min-height:300px;width:202px}.rtm-button-container{background:#f3f3f3;border-bottom:1px solid #dedede;box-shadow:0 1px 0 #fcfcfc inset;overflow:hidden;padding:6px 10px 6px 6px;position:relative;text-align:right}.rtm-button-container.bottom{background:#eee;border-top:1px solid #e7e7e7;box-shadow:0 0 0;z-index:999}#mce-EMAIL{width:100%}#mc-embedded-subscribe{display:block;margin:10px auto 0;width:100%}.rtm-social-links a{display:inline-block;margin:4px 0 4px 4px;text-decoration:none}.nav-tab.rtm-premium{background:#e74c3c;color:white;letter-spacing:0.5px}.rtm-setting-title{border-bottom:1px solid #eee;font-size:22px;font-weight:400;line-height:1;margin-bottom:20px;margin-top:0;padding-bottom:14px;display:none}.rtm-setting-title.rtm-show{display:block}.rtm-option-wrapper{margin-bottom:40px}.rtm-option-wrapper:last-child{margin-bottom:20px}.rtm-setting-title+.rtm-option-wrapper{margin-top:0}.rtm-option-wrapper:last-child{border-bottom:0}.rtm-option-wrapper .form-table{clear:none}.rtm-option-wrapper .rtm-field-wrap{float:left}.rtm-option-wrapper a{text-decoration:none}.rtm-option-wrapper .form-table th{color:#444;font-size:13px;font-weight:400;padding:5px 30px 5px 0;vertical-align:top;width:48%}.rtm-option-wrapper .form-table td{font-size:13px;padding:0 0 5px;vertical-align:top}.rtm-option-wrapper .form-table td fieldset label{display:block;margin:0 !important}.rtm-option-wrapper .form-table .rtm-form-radio label{margin-top:5px !important}.rtm-option-wrapper textarea,.rtm-option-wrapper select,.rtm-option-wrapper input[type=text],.rtm-option-wrapper input[type=number]{border-radius:3px}.rtm-option-wrapper input[type=number]{width:60px}.rtm-option-wrapper .rt-form-radio{height:28px;line-height:24px}.rtm-option-wrapper .rt-form-radio label:first-child{margin-right:12px !important}.rtm-option-wrapper .dashicons-info{color:#aaa;font-size:14px;height:26px;line-height:26px;position:relative}.rtm-option-wrapper .rtm-debug-info{margin-top:32px}.rtm-option-wrapper .rtm-debug-info tr{border-bottom:1px solid #eee}.rtm-option-wrapper .rtm-debug-info tr:first-child{border-top:1px solid #eee}.rtm-option-wrapper .rtm-debug-info tr:nth-child(2n){background-color:#f8f8f8}.rtm-option-wrapper .rtm-debug-info th{border-right:1px solid #eee;font-weight:600;width:auto}.rtm-option-wrapper .rtm-debug-info th,.rtm-option-wrapper .rtm-debug-info td{padding:10px}.rtm-option-title{border-bottom:1px solid #eee;font-size:14px;letter-spacing:0.02rem;margin-bottom:12px;margin-top:0;padding:0 0 6px;text-transform:uppercase}.rtm-sidebar .button{display:block;opacity:0.8;position:relative;text-decoration:none}.rtm-social-share .dashicons{font-size:18px;position:absolute;right:10px;top:4px}.rtm-social-share .twitter .dashicons{color:#45b0e3}.rtm-social-share .facebook .dashicons{color:#3b5998}.rtm-social-share .wordpress .dashicons{color:#21759b}.rtm-social-share .rss .dashicons{color:#FF6600}.rtm-social-share p:last-child{margin-bottom:0}.rtm-notice{background:rgba(238,238,238,0.8);color:#777;font-size:12px;line-height:1.6;margin-top:10px;overflow:hidden;padding:0 10px}.rtm-notice p{font-size:inherit;line-height:inherit;margin:10px 0}.rtm-warning{background-color:#fcf8e3;border-bottom:1px solid #EEE;color:#c09853;padding:10px 15px}.rtmedia-theme-warning{margin-bottom:26px}.rtm-success{background-color:#dff0d8;border-bottom:1px solid #e7e7e7;color:#468847;margin:0;padding:8px 35px 8px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.rtm-fly-warning{border-bottom:0;left:-10px;letter-spacing:1px;line-height:22px;margin-bottom:0;padding:14px 25px;position:absolute;top:-5px}#rtmedia-types .form-table th{line-height:26px;padding:5px 0 20px;width:33%}#rtmedia-types .form-table td{padding:0 0 12px}#rtmedia-custom-css-settings .form-table th{width:35%}#rtmedia-custom-css-settings .form-table:last-child .rtm-field-wrap{width:92%}#rtmedia-custom-css-settings textarea{height:300px;width:100%}.rtm-img-size-setting .form-table th{border-bottom:1px solid #eee;padding-bottom:10px;padding-top:10px;width:20%}.rtm-img-size-setting .form-table tr:nth-child(2) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-child(4){border-bottom:1px solid #eee}.rtm-img-size-setting .form-table tr:nth-child(4) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:nth-child(5) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-child(6) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:nth-child(7){border-top:1px solid #eee}.rtm-img-size-setting .form-table tr:nth-child(7) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-last-child(2) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:last-child{border-top:1px solid #eee}.rtm-img-size-setting .form-table tr:last-child td{padding-top:20px;padding-bottom:20px}.rtm-img-size-setting .form-table .rtm-row-title{font-weight:600}#rtmedia-privacy .rt-form-radio{font-size:12px}#rtmedia-privacy .rt-form-radio strong{font-size:13px}#rtmedia-encoding-usage strong{display:inline-block;min-width:120px}#rtmedia-encoding-usage p{overflow:hidden}.encoding-used,.encoding-remaining{background:#7AD03A;float:right;height:12px;margin-top:3px;width:12px}.encoding-remaining{background:#dedede}#rtprogressbar{background:#dedede;height:10px;position:relative}#rtprogressbar div{background:#7AD03A;height:10px;left:0;position:absolute}.rtm-tabs li{margin:0}.rtm-tabs a{border-bottom:1px solid #e7e7e7;border-top:1px solid #f2f2f2;color:#222;display:block;font-weight:700;outline:none;opacity:0.8;padding:10px 4px 10px 14px;position:relative;text-decoration:none;z-index:10}.rtm-tabs a:hover{background:#eee;color:#269ad6;margin-right:0;opacity:1;width:auto}.rtm-tabs a:focus{background:#fff;box-shadow:0 0 0}.rtm-tabs .active{background:white;position:relative}.rtm-tabs .active:after{background:#fff;content:' ';height:100%;position:absolute;right:-1px;top:0;width:1px}.rtm-tabs .active a{border-top-color:#fff;color:#222;opacity:1}.rtm-tabs .active a:hover{background:#fff}.rtm-tabs span{display:block;padding:0 0 0 25px}.rtm-tabs .dashicons{font-size:14px;height:auto;line-height:1;margin-top:3px;position:absolute;vertical-align:middle;width:auto}.rtm-horizotanl-tabs .rtm-tabs{list-style:none;margin:0;display:block;width:auto;min-height:0}.rtm-horizotanl-tabs .rtm-tabs-content{border-left:none;background:#fff;min-height:300px;padding:20px 30px;vertical-align:top}.rtm-horizotanl-tabs .rtm-tabs a{border-bottom:none}.rtm-horizotanl-tabs .rtm-tabs li{display:inline-block}.rtm-horizotanl-tabs.rtm-admin-tab-container{width:100%;display:block}.switch{position:relative;display:inline-block;vertical-align:top;width:58px;height:22px;padding:3px;border-radius:18px}.switch input[type=checkbox]{position:absolute;top:0;left:0;opacity:0}.switch-label{position:relative;display:block;height:inherit;color:#fff;font-size:12px;text-transform:uppercase;background:#b4b4b4;border-radius:inherit;-moz-transition:ease-out 0.15s;-o-transition:ease-out 0.15s;-webkit-transition:ease-out 0.15s;transition:ease-out 0.15s;-moz-transition-property:opacity,background;-o-transition-property:opacity,background;-webkit-transition-property:opacity,background;transition-property:opacity background}.switch-label:before,.switch-label:after{position:absolute;top:50%;margin-top:-.5em;line-height:1;-moz-transition:inherit;-o-transition:inherit;-webkit-transition:inherit;transition:inherit}.switch-label:before{content:attr(data-off);right:11px;color:#fff}.switch-label:after{content:attr(data-on);left:11px;opacity:0}input[type=checkbox]:checked ~ .switch-label{background:#33a7d1}input[type=checkbox]:checked ~ .switch-label:before{opacity:0}input[type=checkbox]:checked ~ .switch-label:after{opacity:1}.switch-handle{position:absolute;top:5px;left:5px;width:18px;height:18px;background:white;border-radius:10px;box-shadow:1px 1px 5px rgba(0,0,0,0.2);background-image:url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSI0MCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmMGYwZjAiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyYWQpIiAvPjwvc3ZnPiA=');background-size:100%;background-image:-webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(40%, #ffffff),color-stop(100%, #f0f0f0));background-image:-moz-linear-gradient(top, #ffffff 40%,#f0f0f0);background-image:-webkit-linear-gradient(top, #ffffff 40%,#f0f0f0);background-image:linear-gradient(to bottom, #ffffff 40%,#f0f0f0);-moz-transition:left 0.15s ease-out;-o-transition:left 0.15s ease-out;-webkit-transition:left 0.15s ease-out;transition:left 0.15s ease-out}.switch-handle:before{content:'';position:absolute;top:50%;left:50%;margin:-6px 0 0 -6px;width:12px;height:12px;background:#f9f9f9;border-radius:6px;box-shadow:inset 0 1px rgba(0,0,0,0.02);background-image:url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2VlZWVlZSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');background-size:100%;background-image:-webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #eeeeee),color-stop(100%, #ffffff));background-image:-moz-linear-gradient(top, #eeeeee,#ffffff);background-image:-webkit-linear-gradient(top, #eeeeee,#ffffff);background-image:linear-gradient(to bottom, #eeeeee,#ffffff)}input[type=checkbox]:checked ~ .switch-handle{left:41px;box-shadow:-1px 1px 5px rgba(0,0,0,0.2)}.rtm-tooltip{display:inline-block;margin-left:3px;position:relative}.rtm-tooltip:hover .rtm-tip-top,.rtm-tooltip:hover .rtm-tip{margin-left:0;opacity:1;visibility:visible}.rtm-tooltip .rtm-title{border-bottom:1px dotted;padding-bottom:2px}.rtm-tip-top,.rtm-tip{background:#fffAF0;border:1px solid #f5deaf;border-radius:3px;font-size:12px;left:24px;margin-top:-4px;margin-left:-10px;line-height:1.5;opacity:0;padding:6px 12px;position:absolute;top:0;visibility:hidden;width:210px;z-index:9999;-moz-transition:all 0.4s ease-in-out;-o-transition:all 0.4s ease-in-out;-webkit-transition:all 0.4s ease-in-out;transition:all 0.4s ease-in-out}.rtm-tip-top{bottom:26px;left:auto;right:-66px;top:auto;width:200px}.rtm-tip-top:after,.rtm-tip-top:before{right:auto;top:100%;left:50%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}.rtm-tip-top:after{border-color:rgba(255,250,240,0);border-top-color:#fffAF0;border-width:6px;margin-left:-6px}.rtm-tip-top:before{border-color:rgba(245,222,175,0);border-top-color:#f5deaf;border-width:8px;margin-left:-8px}.rtm-extensions .dashicons{font-size:12px;margin-left:-4px;position:relative;top:-3px}.rtm-extensions.rtm-set-top .dashicons{top:1px}.rtm-plugin-card.plugin-card{margin:1%;overflow:hidden;width:48%}.rtm-plugin-card.plugin-card .rtm-logo{float:left;margin-right:10px;max-width:200px;width:auto}.rtm-plugin-card.plugin-card .rtm-logo img{height:auto;margin:-10px 0 0 -10px;max-width:120px}.rtm-plugin-card.plugin-card .desc,.rtm-plugin-card.plugin-card .name{margin-left:0;margin-right:0;overflow:hidden}.rtm-plugin-card.plugin-card h4{margin-bottom:0}.rtm-plugin-card.plugin-card a{text-decoration:none}.rtm-plugin-card.plugin-card .rtm-live-demo{margin-right:10px}.rtm-plugin-card.plugin-card .price{color:#269ad6;font-size:22px;line-height:1.2}#rtm-plugins .rtm-option-title{margin-top:50px}#rtm-plugins .rtm-setting-title+.rtm-option-title{margin-top:0}.rtm-encoding-table{border-collapse:collapse;clear:none}.rtm-encoding-table th,.rtm-encoding-table td{border:1px solid #e7e7e7}.rtm-encoding-table th{font-size:13px;font-weight:600}.rtm-theme-browser .rtm-themes{clear:none;padding:0}.rtm-theme-browser .rtm-themes .rtm-theme{width:48%}.rtm-theme-browser .rtm-themes .rtm-theme:nth-child(even){margin-right:0 !important}.rtm-theme-browser .rtm-themes .rtm-theme:nth-child(3n){margin-right:4%}.admin-bar .theme-overlay .theme-wrap{z-index:99999}.rtm-support-container{min-height:300px}.rtm-support-form .rtm-form-filed{clear:both;margin:15px 0}.rtm-support-form label{float:left;width:15%}.rtm-support-form .bp-media-textarea{height:80px}.rtm-button-wrapper{padding-left:15%}.rtm-page-container{background:#fff;overflow:hidden;padding:20px}.rtm-pro-feature-list li{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;padding:0 10px 20px;width:33%}.rtm-pro-feature-list .rtm-icon-wrap{float:left;margin-top:15px;width:30px}.rtm-pro-feature-list .dashicons{font-size:18px}.rtm-pro-feature-list .rtm-title{font-size:18px;margin-left:30px;margin-top:0px}.rtm-pro-feature-list .rtm-content{font-size:14px;line-height:25px;margin-left:30px;color:#8a8a8a;width:auto}.rtm-update-to-pro{text-align:center}.rtm-button{background-color:#269ad6;border:0;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:13px;letter-spacing:1px;line-height:1;margin-bottom:10px;padding:12px 26px;text-align:center;text-decoration:none;text-transform:uppercase}.rtm-button:hover,.rtm-button:focus{background-color:#228ac0;color:#fff}.rtm-button.large{font-size:16px;margin-bottom:20px;padding:20px 40px}.rtm-button.rtm-button-success{background-color:#2ecc71}.rtm-button.rtm-button-success:hover,.rtm-button.rtm-button-success:focus{background-color:#2fab41}.rtm-hire-points{font-size:14px;margin-bottom:24px}@media only screen and (min-width: 1025px){.rtm-setting-container{float:left;width:78.2%}.rtm-sidebar{float:right;width:20%}.rtm-sidebar .postbox{min-width:0}.rtm-field-wrap{max-width:92%}.rtm-tip:after,.rtm-tip:before{right:100%;top:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.rtm-tip:after{border-color:rgba(255,250,240,0);border-right-color:#fffAF0;border-width:6px;margin-top:-6px}.rtm-tip:before{border-color:rgba(221,204,170,0);border-right-color:#f5deaf;border-width:7px;margin-top:-7px}.rtm-support-form .bp-media-input,.rtm-support-form .bp-media-textarea{float:left;width:40%}}@media only screen and (min-width: 641px) and (max-width: 1024px){.rtm-sidebar{width:100%}.rtm-sidebar .postbox{display:inline-block;margin-left:5px;vertical-align:top}.rtm-sidebar .postbox:first-child{margin-left:0}}@media screen and (max-width: 1024px){.rtm-tip{bottom:26px;left:auto;right:-102px;top:auto;width:200px}.rtm-tip:after,.rtm-tip:before{right:auto;top:100%;left:50%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}.rtm-tip:after{border-color:rgba(255,250,240,0);border-top-color:#fffAF0;border-width:6px;margin-left:-6px}.rtm-tip:before{border-color:rgba(245,222,175,0);border-top-color:#f5deaf;border-width:7px;margin-left:-7px}#rtmedia-custom-css-settings .form-table:last-child .rtm-field-wrap{width:100%}.rtm-field-wrap input[type=text]{max-width:140px !important}.theme-browser .theme:nth-child(2n+1){margin-right:4%}.rtmedia-settings-submit{margin-bottom:0 !important}}@media only screen and (min-width: 641px){.rtm-pro-feature-list li:nth-child(3n+1){clear:left}}@media screen and (min-width: 421px) and (max-width: 782px){.rtm-option-wrapper .form-table td{display:table-cell}.rtm-option-wrapper .form-table th{display:table-cell}}@media only screen and (max-width: 640px){.rtm-pro-feature-list li{width:50%}.rtm-pro-feature-list li:nth-child(2n+1){clear:left}.rtm-tabs{width:40px}.rtm-tabs li{width:40px}.rtm-tabs a{height:18px}.rtm-tabs a:hover{width:140px}.rtm-tabs a:hover span{display:block}.rtm-tabs span{display:none;padding:0 0 0 28px;position:absolute}.rtm-support-form label{width:100%;margin-bottom:5px}.rtm-support-form .bp-media-input,.rtm-support-form .bp-media-textarea{width:70%}.rtm-button-wrapper{padding-left:0}}@media screen and (max-width: 481px){.rtm-plugin-card.plugin-card .rtm-logo{display:inline-block;float:none}.rtm-theme-browser .rtm-themes .rtm-theme{margin:0 0 20px;width:100%}}@media screen and (max-width: 420px){.rtm-option-wrapper .form-table th{padding-bottom:15px;width:100%}#rtmedia-types .form-table th,#rtmedia-custom-css-settings .form-table th{width:100%}.rtm-pro-feature-list li{width:100%}.rtm-tip-top{right:-115px}}body.rtl .rtm-tabs a{padding:10px 32px 10px 4px}body.rtl .rtm-tabs .dashicons{right:10px}body.rtl .rtm-social-share .dashicons{left:10px;right:auto}body.rtl .rtm-option-wrapper .rtm-field-wrap{float:right}body.rtl .rtm-tip-top,body.rtl .rtm-tip{left:auto;right:24px}body.rtl .rtm-tip-top:after,body.rtl .rtm-tip-top:before,body.rtl .rtm-tip:after,body.rtl .rtm-tip:before{display:none}body.rtl .rtm-edit-td,body.rtl .rtm-delete-td{float:right;margin-left:0}body.rtl .rtm-edit-td{margin-right:-15px}body.rtl #rtmedia-membership span.float-right{float:left}body.rtl .theme-browser .theme{float:left;margin:0 4% 4% 0}.rtmedia-license .rtm-tabs span{padding:0}
1
+ .alignleft {
2
+ float: left;
3
+ }
4
+
5
+ .alignright {
6
+ float: right;
7
+ }
8
+
9
+ .aligncenter {
10
+ display: block;
11
+ margin-left: auto;
12
+ margin-right: auto;
13
+ text-align: center;
14
+ }
15
+
16
+ .clear-both {
17
+ clear: both;
18
+ }
19
+
20
+ .clear-none {
21
+ clear: none;
22
+ }
23
+
24
+ .clear-left {
25
+ clear: left;
26
+ }
27
+
28
+ .clear-right {
29
+ clear: right;
30
+ }
31
+
32
+ .rtm-inline-block {
33
+ display: inline-block;
34
+ }
35
+
36
+ .rtm-text-left {
37
+ text-align: left;
38
+ }
39
+
40
+ .rtm-text-right {
41
+ text-align: right;
42
+ }
43
+
44
+ .rtm-text-center {
45
+ text-align: center;
46
+ }
47
+
48
+ .rtm-border-0 {
49
+ border: 0 !important;
50
+ }
51
+
52
+ .hide {
53
+ display: none;
54
+ }
55
+
56
+ /*------------------------------------*\
57
+ #CLEARFIX
58
+ \*------------------------------------*/
59
+ /**
60
+ * Micro clearfix, as per: css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
61
+ * Extend the clearfix class with Sass to avoid the `.clearfix` class appearing
62
+ * over and over in your markup.
63
+ */
64
+ .clearfix:after {
65
+ content: "";
66
+ display: table;
67
+ clear: both;
68
+ }
69
+
70
+ .rtm-row-container {
71
+ padding-top: 10px;
72
+ }
73
+
74
+ .rtm-admin-tab-container {
75
+ display: table;
76
+ width: 100%;
77
+ }
78
+ .rtm-admin-tab-container .rtm-tabs-content {
79
+ background: #FFFFFF;
80
+ border-left: 1px solid #e7e7e7;
81
+ display: table-cell;
82
+ min-height: 300px;
83
+ padding: 20px 30px;
84
+ vertical-align: top;
85
+ }
86
+
87
+ .rtm-setting-container {
88
+ background-color: #f5f5f5;
89
+ border: 1px solid #dedede;
90
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
91
+ margin-top: 10px;
92
+ }
93
+
94
+ .rtm-sidebar .postbox .hndle {
95
+ cursor: default;
96
+ }
97
+
98
+ .rtm-tabs {
99
+ display: table-cell;
100
+ list-style: none;
101
+ margin: 0;
102
+ min-height: 300px;
103
+ width: 202px;
104
+ }
105
+
106
+ .rtm-button-container {
107
+ background: #f3f3f3;
108
+ border-bottom: 1px solid #dedede;
109
+ box-shadow: 0 1px 0 #fcfcfc inset;
110
+ overflow: hidden;
111
+ padding: 6px 10px 6px 6px;
112
+ position: relative;
113
+ text-align: right;
114
+ }
115
+ .rtm-button-container.bottom {
116
+ background: #EEEEEE;
117
+ border-top: 1px solid #e7e7e7;
118
+ box-shadow: 0 0 0;
119
+ z-index: 999;
120
+ }
121
+
122
+ #mce-EMAIL {
123
+ width: 100%;
124
+ }
125
+
126
+ #mc-embedded-subscribe {
127
+ display: block;
128
+ margin: 10px auto 0;
129
+ width: 100%;
130
+ }
131
+
132
+ .rtm-social-links a {
133
+ display: inline-block;
134
+ margin: 4px 0 4px 4px;
135
+ text-decoration: none;
136
+ }
137
+
138
+ .nav-tab.rtm-premium {
139
+ background: #e74c3c;
140
+ color: white;
141
+ letter-spacing: 0.5px;
142
+ }
143
+
144
+ .rtm-setting-title {
145
+ border-bottom: 1px solid #EEEEEE;
146
+ font-size: 22px;
147
+ font-weight: 400;
148
+ line-height: 1;
149
+ margin-bottom: 20px;
150
+ margin-top: 0;
151
+ padding-bottom: 14px;
152
+ display: none;
153
+ }
154
+ .rtm-setting-title.rtm-show {
155
+ display: block;
156
+ }
157
+
158
+ .rtm-option-wrapper {
159
+ margin-bottom: 40px;
160
+ }
161
+ .rtm-option-wrapper:last-child {
162
+ margin-bottom: 20px;
163
+ }
164
+ .rtm-setting-title + .rtm-option-wrapper {
165
+ margin-top: 0;
166
+ }
167
+ .rtm-option-wrapper:last-child {
168
+ border-bottom: 0;
169
+ }
170
+ .rtm-option-wrapper .form-table {
171
+ clear: none;
172
+ }
173
+ .rtm-option-wrapper .rtm-field-wrap {
174
+ float: left;
175
+ }
176
+ .rtm-option-wrapper a {
177
+ text-decoration: none;
178
+ }
179
+ .rtm-option-wrapper .form-table th {
180
+ color: #444;
181
+ font-size: 13px;
182
+ font-weight: 400;
183
+ padding: 5px 30px 5px 0;
184
+ vertical-align: top;
185
+ width: 48%;
186
+ }
187
+ .rtm-option-wrapper .form-table td {
188
+ font-size: 13px;
189
+ padding: 0 0 5px;
190
+ vertical-align: top;
191
+ }
192
+ .rtm-option-wrapper .form-table td fieldset label {
193
+ display: block;
194
+ margin: 0 !important;
195
+ }
196
+ .rtm-option-wrapper .form-table .rtm-form-radio label {
197
+ margin-top: 5px !important;
198
+ }
199
+ .rtm-option-wrapper textarea,
200
+ .rtm-option-wrapper select,
201
+ .rtm-option-wrapper input[type=text],
202
+ .rtm-option-wrapper input[type=number] {
203
+ border-radius: 3px;
204
+ }
205
+ .rtm-option-wrapper input[type=number] {
206
+ width: 60px;
207
+ }
208
+ .rtm-option-wrapper .rt-form-radio {
209
+ height: 28px;
210
+ line-height: 24px;
211
+ }
212
+ .rtm-option-wrapper .rt-form-radio label:first-child {
213
+ margin-right: 12px !important;
214
+ }
215
+ .rtm-option-wrapper .dashicons-info {
216
+ color: #aaa;
217
+ font-size: 14px;
218
+ height: 26px;
219
+ line-height: 26px;
220
+ position: relative;
221
+ }
222
+ .rtm-option-wrapper .rtm-debug-info {
223
+ margin-top: 32px;
224
+ }
225
+ .rtm-option-wrapper .rtm-debug-info tr {
226
+ border-bottom: 1px solid #EEEEEE;
227
+ }
228
+ .rtm-option-wrapper .rtm-debug-info tr:first-child {
229
+ border-top: 1px solid #EEEEEE;
230
+ }
231
+ .rtm-option-wrapper .rtm-debug-info tr:nth-child(2n) {
232
+ background-color: #f8f8f8;
233
+ }
234
+ .rtm-option-wrapper .rtm-debug-info th {
235
+ border-right: 1px solid #EEEEEE;
236
+ font-weight: 600;
237
+ width: auto;
238
+ }
239
+ .rtm-option-wrapper .rtm-debug-info th,
240
+ .rtm-option-wrapper .rtm-debug-info td {
241
+ padding: 10px;
242
+ }
243
+
244
+ .rtm-option-title {
245
+ border-bottom: 1px solid #EEEEEE;
246
+ font-size: 14px;
247
+ letter-spacing: 0.02rem;
248
+ margin-bottom: 12px;
249
+ margin-top: 0;
250
+ padding: 0 0 6px;
251
+ text-transform: uppercase;
252
+ }
253
+
254
+ .rtm-sidebar .button {
255
+ display: block;
256
+ opacity: 0.8;
257
+ position: relative;
258
+ text-decoration: none;
259
+ }
260
+
261
+ .rtm-social-share .dashicons {
262
+ font-size: 18px;
263
+ position: absolute;
264
+ right: 10px;
265
+ top: 4px;
266
+ }
267
+ .rtm-social-share .twitter .dashicons {
268
+ color: #45b0e3;
269
+ }
270
+ .rtm-social-share .facebook .dashicons {
271
+ color: #3b5998;
272
+ }
273
+ .rtm-social-share .wordpress .dashicons {
274
+ color: #21759b;
275
+ }
276
+ .rtm-social-share .rss .dashicons {
277
+ color: #FF6600;
278
+ }
279
+ .rtm-social-share p:last-child {
280
+ margin-bottom: 0;
281
+ }
282
+
283
+ .rtm-notice {
284
+ background: rgba(238, 238, 238, 0.8);
285
+ color: #777;
286
+ font-size: 12px;
287
+ line-height: 1.6;
288
+ margin-top: 10px;
289
+ overflow: hidden;
290
+ padding: 0 10px;
291
+ }
292
+ .rtm-notice p {
293
+ font-size: inherit;
294
+ line-height: inherit;
295
+ margin: 10px 0;
296
+ }
297
+
298
+ .rtm-warning {
299
+ background-color: #fcf8e3;
300
+ border-bottom: 1px solid #EEE;
301
+ color: #c09853;
302
+ padding: 10px 15px;
303
+ }
304
+
305
+ .rtmedia-theme-warning {
306
+ margin-bottom: 26px;
307
+ }
308
+
309
+ .rtm-success {
310
+ background-color: #dff0d8;
311
+ border-bottom: 1px solid #e7e7e7;
312
+ color: #468847;
313
+ margin: 0;
314
+ padding: 8px 35px 8px 14px;
315
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
316
+ }
317
+
318
+ .rtm-fly-warning {
319
+ border-bottom: 0;
320
+ left: -10px;
321
+ letter-spacing: 1px;
322
+ line-height: 22px;
323
+ margin-bottom: 0;
324
+ padding: 14px 25px;
325
+ position: absolute;
326
+ top: -5px;
327
+ }
328
+
329
+ #rtmedia-types .form-table th {
330
+ line-height: 26px;
331
+ padding: 5px 0 20px;
332
+ width: 33%;
333
+ }
334
+ #rtmedia-types .form-table td {
335
+ padding: 0 0 12px;
336
+ }
337
+
338
+ #rtmedia-custom-css-settings .form-table th {
339
+ width: 35%;
340
+ }
341
+ #rtmedia-custom-css-settings .form-table:last-child .rtm-field-wrap {
342
+ width: 92%;
343
+ }
344
+ #rtmedia-custom-css-settings textarea {
345
+ height: 300px;
346
+ width: 100%;
347
+ }
348
+
349
+ .rtm-img-size-setting .form-table th {
350
+ border-bottom: 1px solid #EEEEEE;
351
+ padding-bottom: 10px;
352
+ padding-top: 10px;
353
+ width: 20%;
354
+ }
355
+ .rtm-img-size-setting .form-table tr:nth-child(2) td {
356
+ padding-top: 20px;
357
+ }
358
+ .rtm-img-size-setting .form-table tr:nth-child(4) {
359
+ border-bottom: 1px solid #EEEEEE;
360
+ }
361
+ .rtm-img-size-setting .form-table tr:nth-child(4) td {
362
+ padding-bottom: 20px;
363
+ }
364
+ .rtm-img-size-setting .form-table tr:nth-child(5) td {
365
+ padding-top: 20px;
366
+ }
367
+ .rtm-img-size-setting .form-table tr:nth-child(6) td {
368
+ padding-bottom: 20px;
369
+ }
370
+ .rtm-img-size-setting .form-table tr:nth-child(7) {
371
+ border-top: 1px solid #EEEEEE;
372
+ }
373
+ .rtm-img-size-setting .form-table tr:nth-child(7) td {
374
+ padding-top: 20px;
375
+ }
376
+ .rtm-img-size-setting .form-table tr:nth-last-child(2) td {
377
+ padding-bottom: 20px;
378
+ }
379
+ .rtm-img-size-setting .form-table tr:last-child {
380
+ border-top: 1px solid #EEEEEE;
381
+ }
382
+ .rtm-img-size-setting .form-table tr:last-child td {
383
+ padding-top: 20px;
384
+ padding-bottom: 20px;
385
+ }
386
+ .rtm-img-size-setting .form-table .rtm-row-title {
387
+ font-weight: 600;
388
+ }
389
+
390
+ #rtmedia-privacy .rt-form-radio {
391
+ font-size: 12px;
392
+ }
393
+ #rtmedia-privacy .rt-form-radio strong {
394
+ font-size: 13px;
395
+ }
396
+
397
+ #rtmedia-encoding-usage strong {
398
+ display: inline-block;
399
+ min-width: 120px;
400
+ }
401
+ #rtmedia-encoding-usage p {
402
+ overflow: hidden;
403
+ }
404
+
405
+ .encoding-used, .encoding-remaining {
406
+ background: #7AD03A;
407
+ float: right;
408
+ height: 12px;
409
+ margin-top: 3px;
410
+ width: 12px;
411
+ }
412
+
413
+ .encoding-remaining {
414
+ background: #dedede;
415
+ }
416
+
417
+ #rtprogressbar {
418
+ background: #dedede;
419
+ height: 10px;
420
+ position: relative;
421
+ }
422
+ #rtprogressbar div {
423
+ background: #7AD03A;
424
+ height: 10px;
425
+ left: 0;
426
+ position: absolute;
427
+ }
428
+
429
+ .rtm-tabs li {
430
+ margin: 0;
431
+ }
432
+ .rtm-tabs a {
433
+ border-bottom: 1px solid #e7e7e7;
434
+ border-top: 1px solid #f2f2f2;
435
+ color: #222222;
436
+ display: block;
437
+ font-weight: 700;
438
+ outline: none;
439
+ opacity: 0.8;
440
+ padding: 10px 4px 10px 14px;
441
+ position: relative;
442
+ text-decoration: none;
443
+ z-index: 10;
444
+ }
445
+ .rtm-tabs a:hover {
446
+ background: #EEEEEE;
447
+ color: #269ad6;
448
+ margin-right: 0;
449
+ opacity: 1;
450
+ width: auto;
451
+ }
452
+ .rtm-tabs a:focus {
453
+ background: #FFFFFF;
454
+ box-shadow: 0 0 0;
455
+ }
456
+ .rtm-tabs .active {
457
+ background: white;
458
+ position: relative;
459
+ }
460
+ .rtm-tabs .active:after {
461
+ background: #FFFFFF;
462
+ content: ' ';
463
+ height: 100%;
464
+ position: absolute;
465
+ right: -1px;
466
+ top: 0;
467
+ width: 1px;
468
+ }
469
+ .rtm-tabs .active a {
470
+ border-top-color: #FFFFFF;
471
+ color: #222222;
472
+ opacity: 1;
473
+ }
474
+ .rtm-tabs .active a:hover {
475
+ background: #FFFFFF;
476
+ }
477
+ .rtm-tabs span {
478
+ display: block;
479
+ padding: 0 0 0 25px;
480
+ }
481
+ .rtm-tabs .dashicons {
482
+ font-size: 14px;
483
+ height: auto;
484
+ line-height: 1;
485
+ margin-top: 3px;
486
+ position: absolute;
487
+ vertical-align: middle;
488
+ width: auto;
489
+ }
490
+
491
+ /*
492
+ horizontal tab css
493
+ */
494
+ .rtm-horizotanl-tabs .rtm-tabs {
495
+ list-style: none;
496
+ margin: 0;
497
+ display: block;
498
+ width: auto;
499
+ min-height: 0;
500
+ }
501
+ .rtm-horizotanl-tabs .rtm-tabs-content {
502
+ border-left: none;
503
+ background: #FFFFFF;
504
+ min-height: 300px;
505
+ padding: 20px 30px;
506
+ vertical-align: top;
507
+ }
508
+ .rtm-horizotanl-tabs .rtm-tabs a {
509
+ border-bottom: none;
510
+ }
511
+ .rtm-horizotanl-tabs .rtm-tabs li {
512
+ display: inline-block;
513
+ }
514
+
515
+ .rtm-horizotanl-tabs.rtm-admin-tab-container {
516
+ width: 100%;
517
+ display: block;
518
+ }
519
+
520
+ .switch {
521
+ position: relative;
522
+ display: inline-block;
523
+ vertical-align: top;
524
+ width: 58px;
525
+ height: 22px;
526
+ padding: 3px;
527
+ border-radius: 18px;
528
+ }
529
+ .switch input[type=checkbox] {
530
+ position: absolute;
531
+ top: 0;
532
+ left: 0;
533
+ opacity: 0;
534
+ }
535
+
536
+ .switch-label {
537
+ position: relative;
538
+ display: block;
539
+ height: inherit;
540
+ color: #FFFFFF;
541
+ font-size: 12px;
542
+ text-transform: uppercase;
543
+ background: #b4b4b4;
544
+ border-radius: inherit;
545
+ -webkit-transition: 0.15s ease-out;
546
+ transition: 0.15s ease-out;
547
+ -webkit-transition-property: opacity background;
548
+ transition-property: opacity background;
549
+ }
550
+ .switch-label:before, .switch-label:after {
551
+ position: absolute;
552
+ top: 50%;
553
+ margin-top: -.5em;
554
+ line-height: 1;
555
+ -webkit-transition: inherit;
556
+ transition: inherit;
557
+ }
558
+ .switch-label:before {
559
+ content: attr(data-off);
560
+ right: 11px;
561
+ color: #FFFFFF;
562
+ }
563
+ .switch-label:after {
564
+ content: attr(data-on);
565
+ left: 11px;
566
+ opacity: 0;
567
+ }
568
+ input[type=checkbox]:checked ~ .switch-label {
569
+ background: #33a7d1;
570
+ }
571
+ input[type=checkbox]:checked ~ .switch-label:before {
572
+ opacity: 0;
573
+ }
574
+ input[type=checkbox]:checked ~ .switch-label:after {
575
+ opacity: 1;
576
+ }
577
+
578
+ .switch-handle {
579
+ position: absolute;
580
+ top: 5px;
581
+ left: 5px;
582
+ width: 18px;
583
+ height: 18px;
584
+ background: white;
585
+ border-radius: 10px;
586
+ box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
587
+ background-image: -webkit-linear-gradient(top, white 40%, #f0f0f0);
588
+ background-image: linear-gradient(to bottom, white 40%, #f0f0f0);
589
+ -webkit-transition: left 0.15s ease-out;
590
+ transition: left 0.15s ease-out;
591
+ }
592
+ .switch-handle:before {
593
+ content: '';
594
+ position: absolute;
595
+ top: 50%;
596
+ left: 50%;
597
+ margin: -6px 0 0 -6px;
598
+ width: 12px;
599
+ height: 12px;
600
+ background: #f9f9f9;
601
+ border-radius: 6px;
602
+ box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
603
+ background-image: -webkit-linear-gradient(top, #eee, white);
604
+ background-image: linear-gradient(to bottom, #eee, white);
605
+ }
606
+ input[type=checkbox]:checked ~ .switch-handle {
607
+ left: 41px;
608
+ box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
609
+ }
610
+
611
+ .rtm-tooltip {
612
+ display: inline-block;
613
+ margin-left: 3px;
614
+ position: relative;
615
+ }
616
+ .rtm-tooltip:hover .rtm-tip-top,
617
+ .rtm-tooltip:hover .rtm-tip {
618
+ margin-left: 0;
619
+ opacity: 1;
620
+ visibility: visible;
621
+ }
622
+ .rtm-tooltip .rtm-title {
623
+ border-bottom: 1px dotted;
624
+ padding-bottom: 2px;
625
+ }
626
+
627
+ .rtm-tip-top,
628
+ .rtm-tip {
629
+ background: #fffAF0;
630
+ border: 1px solid #f5deaf;
631
+ border-radius: 3px;
632
+ font-size: 12px;
633
+ left: 24px;
634
+ margin-top: -4px;
635
+ margin-left: -10px;
636
+ line-height: 1.5;
637
+ opacity: 0;
638
+ padding: 6px 12px;
639
+ position: absolute;
640
+ top: 0;
641
+ visibility: hidden;
642
+ width: 210px;
643
+ z-index: 9999;
644
+ -webkit-transition: all ease-in-out 0.4s;
645
+ transition: all ease-in-out 0.4s;
646
+ }
647
+
648
+ .rtm-tip-top {
649
+ bottom: 26px;
650
+ left: auto;
651
+ right: -66px;
652
+ top: auto;
653
+ width: 200px;
654
+ }
655
+ .rtm-tip-top:after, .rtm-tip-top:before {
656
+ right: auto;
657
+ top: 100%;
658
+ left: 50%;
659
+ border: solid transparent;
660
+ content: ' ';
661
+ height: 0;
662
+ width: 0;
663
+ position: absolute;
664
+ pointer-events: none;
665
+ }
666
+ .rtm-tip-top:after {
667
+ border-color: rgba(255, 250, 240, 0);
668
+ border-top-color: #fffAF0;
669
+ border-width: 6px;
670
+ margin-left: -6px;
671
+ }
672
+ .rtm-tip-top:before {
673
+ border-color: rgba(245, 222, 175, 0);
674
+ border-top-color: #f5deaf;
675
+ border-width: 8px;
676
+ margin-left: -8px;
677
+ }
678
+
679
+ .rtm-extensions .dashicons {
680
+ font-size: 12px;
681
+ margin-left: -4px;
682
+ position: relative;
683
+ top: -3px;
684
+ }
685
+ .rtm-extensions.rtm-set-top .dashicons {
686
+ top: 1px;
687
+ }
688
+
689
+ .rtm-plugin-card.plugin-card {
690
+ margin: 1%;
691
+ overflow: hidden;
692
+ width: 48%;
693
+ }
694
+ .rtm-plugin-card.plugin-card .rtm-logo {
695
+ float: left;
696
+ margin-right: 10px;
697
+ max-width: 200px;
698
+ width: auto;
699
+ }
700
+ .rtm-plugin-card.plugin-card .rtm-logo img {
701
+ height: auto;
702
+ margin: -10px 0 0 -10px;
703
+ max-width: 120px;
704
+ }
705
+ .rtm-plugin-card.plugin-card .desc, .rtm-plugin-card.plugin-card .name {
706
+ margin-left: 0;
707
+ margin-right: 0;
708
+ overflow: hidden;
709
+ }
710
+ .rtm-plugin-card.plugin-card h4 {
711
+ margin-bottom: 0;
712
+ }
713
+ .rtm-plugin-card.plugin-card a {
714
+ text-decoration: none;
715
+ }
716
+ .rtm-plugin-card.plugin-card .rtm-live-demo {
717
+ margin-right: 10px;
718
+ }
719
+ .rtm-plugin-card.plugin-card .price {
720
+ color: #269ad6;
721
+ font-size: 22px;
722
+ line-height: 1.2;
723
+ }
724
+
725
+ #rtm-plugins .rtm-option-title {
726
+ margin-top: 50px;
727
+ }
728
+ #rtm-plugins .rtm-setting-title + .rtm-option-title {
729
+ margin-top: 0;
730
+ }
731
+
732
+ .rtm-encoding-table {
733
+ border-collapse: collapse;
734
+ clear: none;
735
+ }
736
+ .rtm-encoding-table th, .rtm-encoding-table td {
737
+ border: 1px solid #e7e7e7;
738
+ }
739
+ .rtm-encoding-table th {
740
+ font-size: 13px;
741
+ font-weight: 600;
742
+ }
743
+
744
+ .rtm-theme-browser .rtm-themes {
745
+ clear: none;
746
+ padding: 0;
747
+ }
748
+ .rtm-theme-browser .rtm-themes .rtm-theme {
749
+ width: 48%;
750
+ }
751
+ .rtm-theme-browser .rtm-themes .rtm-theme:nth-child(even) {
752
+ margin-right: 0 !important;
753
+ }
754
+ .rtm-theme-browser .rtm-themes .rtm-theme:nth-child(3n) {
755
+ margin-right: 4%;
756
+ }
757
+
758
+ .admin-bar .theme-overlay .theme-wrap {
759
+ z-index: 99999;
760
+ }
761
+
762
+ .rtm-support-container {
763
+ min-height: 300px;
764
+ }
765
+
766
+ .rtm-support-form .rtm-form-filed {
767
+ clear: both;
768
+ margin: 15px 0;
769
+ }
770
+ .rtm-support-form label {
771
+ float: left;
772
+ width: 15%;
773
+ }
774
+ .rtm-support-form .bp-media-textarea {
775
+ height: 80px;
776
+ }
777
+
778
+ .rtm-button-wrapper {
779
+ padding-left: 15%;
780
+ }
781
+
782
+ .rtm-page-container {
783
+ background: #FFFFFF;
784
+ overflow: hidden;
785
+ padding: 20px;
786
+ }
787
+
788
+ .rtm-pro-feature-list li {
789
+ box-sizing: border-box;
790
+ float: left;
791
+ padding: 0 10px 20px;
792
+ width: 33%;
793
+ }
794
+ .rtm-pro-feature-list .rtm-icon-wrap {
795
+ float: left;
796
+ margin-top: 15px;
797
+ width: 30px;
798
+ }
799
+ .rtm-pro-feature-list .dashicons {
800
+ font-size: 18px;
801
+ }
802
+ .rtm-pro-feature-list .rtm-title {
803
+ font-size: 18px;
804
+ margin-left: 30px;
805
+ margin-top: 0px;
806
+ }
807
+ .rtm-pro-feature-list .rtm-content {
808
+ font-size: 14px;
809
+ line-height: 25px;
810
+ margin-left: 30px;
811
+ color: #8a8a8a;
812
+ width: auto;
813
+ }
814
+
815
+ .rtm-update-to-pro {
816
+ text-align: center;
817
+ }
818
+
819
+ .rtm-button {
820
+ background-color: #269ad6;
821
+ border: 0;
822
+ border-radius: 3px;
823
+ color: #FFFFFF;
824
+ cursor: pointer;
825
+ display: inline-block;
826
+ font-size: 13px;
827
+ letter-spacing: 1px;
828
+ line-height: 1;
829
+ margin-bottom: 10px;
830
+ padding: 12px 26px;
831
+ text-align: center;
832
+ text-decoration: none;
833
+ text-transform: uppercase;
834
+ }
835
+ .rtm-button:hover, .rtm-button:focus {
836
+ background-color: #228ac0;
837
+ color: #FFFFFF;
838
+ }
839
+ .rtm-button.large {
840
+ font-size: 16px;
841
+ margin-bottom: 20px;
842
+ padding: 20px 40px;
843
+ }
844
+ .rtm-button.rtm-button-success {
845
+ background-color: #2ecc71;
846
+ }
847
+ .rtm-button.rtm-button-success:hover, .rtm-button.rtm-button-success:focus {
848
+ background-color: #2fab41;
849
+ }
850
+
851
+ .rtm-hire-points {
852
+ font-size: 14px;
853
+ margin-bottom: 24px;
854
+ }
855
+
856
+ @media only screen and (min-width: 1025px) {
857
+ .rtm-setting-container {
858
+ float: left;
859
+ width: 78.2%;
860
+ }
861
+
862
+ .rtm-sidebar {
863
+ float: right;
864
+ width: 20%;
865
+ }
866
+ .rtm-sidebar .postbox {
867
+ min-width: 0;
868
+ }
869
+
870
+ .rtm-field-wrap {
871
+ max-width: 92%;
872
+ }
873
+
874
+ .rtm-tip:after, .rtm-tip:before {
875
+ right: 100%;
876
+ top: 15px;
877
+ border: solid transparent;
878
+ content: " ";
879
+ height: 0;
880
+ width: 0;
881
+ position: absolute;
882
+ pointer-events: none;
883
+ }
884
+ .rtm-tip:after {
885
+ border-color: rgba(255, 250, 240, 0);
886
+ border-right-color: #fffAF0;
887
+ border-width: 6px;
888
+ margin-top: -6px;
889
+ }
890
+ .rtm-tip:before {
891
+ border-color: rgba(221, 204, 170, 0);
892
+ border-right-color: #f5deaf;
893
+ border-width: 7px;
894
+ margin-top: -7px;
895
+ }
896
+
897
+ .rtm-support-form .bp-media-input, .rtm-support-form .bp-media-textarea {
898
+ float: left;
899
+ width: 40%;
900
+ }
901
+ }
902
+ @media only screen and (min-width: 641px) and (max-width: 1024px) {
903
+ .rtm-sidebar {
904
+ width: 100%;
905
+ }
906
+ .rtm-sidebar .postbox {
907
+ display: inline-block;
908
+ margin-left: 5px;
909
+ vertical-align: top;
910
+ }
911
+ .rtm-sidebar .postbox:first-child {
912
+ margin-left: 0;
913
+ }
914
+ }
915
+ @media screen and (max-width: 1024px) {
916
+ .rtm-tip {
917
+ bottom: 26px;
918
+ left: auto;
919
+ right: -102px;
920
+ top: auto;
921
+ width: 200px;
922
+ }
923
+ .rtm-tip:after, .rtm-tip:before {
924
+ right: auto;
925
+ top: 100%;
926
+ left: 50%;
927
+ border: solid transparent;
928
+ content: ' ';
929
+ height: 0;
930
+ width: 0;
931
+ position: absolute;
932
+ pointer-events: none;
933
+ }
934
+ .rtm-tip:after {
935
+ border-color: rgba(255, 250, 240, 0);
936
+ border-top-color: #fffAF0;
937
+ border-width: 6px;
938
+ margin-left: -6px;
939
+ }
940
+ .rtm-tip:before {
941
+ border-color: rgba(245, 222, 175, 0);
942
+ border-top-color: #f5deaf;
943
+ border-width: 7px;
944
+ margin-left: -7px;
945
+ }
946
+
947
+ #rtmedia-custom-css-settings .form-table:last-child .rtm-field-wrap {
948
+ width: 100%;
949
+ }
950
+
951
+ .rtm-field-wrap input[type=text] {
952
+ max-width: 140px !important;
953
+ }
954
+
955
+ .theme-browser .theme:nth-child(2n+1) {
956
+ margin-right: 4%;
957
+ }
958
+
959
+ .rtmedia-settings-submit {
960
+ margin-bottom: 0 !important;
961
+ }
962
+ }
963
+ @media only screen and (min-width: 641px) {
964
+ .rtm-pro-feature-list li:nth-child(3n+1) {
965
+ clear: left;
966
+ }
967
+ }
968
+ @media screen and (min-width: 421px) and (max-width: 782px) {
969
+ .rtm-option-wrapper .form-table td {
970
+ display: table-cell;
971
+ }
972
+
973
+ .rtm-option-wrapper .form-table th {
974
+ display: table-cell;
975
+ }
976
+ }
977
+ @media only screen and (max-width: 640px) {
978
+ .rtm-pro-feature-list li {
979
+ width: 50%;
980
+ }
981
+ .rtm-pro-feature-list li:nth-child(2n+1) {
982
+ clear: left;
983
+ }
984
+
985
+ .rtm-tabs {
986
+ width: 40px;
987
+ }
988
+ .rtm-tabs li {
989
+ width: 40px;
990
+ }
991
+ .rtm-tabs a {
992
+ height: 18px;
993
+ }
994
+ .rtm-tabs a:hover {
995
+ width: 140px;
996
+ }
997
+ .rtm-tabs a:hover span {
998
+ display: block;
999
+ }
1000
+ .rtm-tabs span {
1001
+ display: none;
1002
+ padding: 0 0 0 28px;
1003
+ position: absolute;
1004
+ }
1005
+
1006
+ .rtm-support-form label {
1007
+ width: 100%;
1008
+ margin-bottom: 5px;
1009
+ }
1010
+ .rtm-support-form .bp-media-input, .rtm-support-form .bp-media-textarea {
1011
+ width: 70%;
1012
+ }
1013
+
1014
+ .rtm-button-wrapper {
1015
+ padding-left: 0;
1016
+ }
1017
+ }
1018
+ @media screen and (max-width: 481px) {
1019
+ .rtm-plugin-card.plugin-card .rtm-logo {
1020
+ display: inline-block;
1021
+ float: none;
1022
+ }
1023
+
1024
+ .rtm-theme-browser .rtm-themes .rtm-theme {
1025
+ margin: 0 0 20px;
1026
+ width: 100%;
1027
+ }
1028
+ }
1029
+ @media screen and (max-width: 420px) {
1030
+ .rtm-option-wrapper .form-table th {
1031
+ padding-bottom: 15px;
1032
+ width: 100%;
1033
+ }
1034
+
1035
+ #rtmedia-types .form-table th,
1036
+ #rtmedia-custom-css-settings .form-table th {
1037
+ width: 100%;
1038
+ }
1039
+
1040
+ .rtm-pro-feature-list li {
1041
+ width: 100%;
1042
+ }
1043
+
1044
+ .rtm-tip-top {
1045
+ right: -115px;
1046
+ }
1047
+ }
1048
+ body.rtl .rtm-tabs a {
1049
+ padding: 10px 32px 10px 4px;
1050
+ }
1051
+ body.rtl .rtm-tabs .dashicons {
1052
+ right: 10px;
1053
+ }
1054
+ body.rtl .rtm-social-share .dashicons {
1055
+ left: 10px;
1056
+ right: auto;
1057
+ }
1058
+ body.rtl .rtm-option-wrapper .rtm-field-wrap {
1059
+ float: right;
1060
+ }
1061
+ body.rtl .rtm-tip-top, body.rtl .rtm-tip {
1062
+ left: auto;
1063
+ right: 24px;
1064
+ }
1065
+ body.rtl .rtm-tip-top:after, body.rtl .rtm-tip-top:before, body.rtl .rtm-tip:after, body.rtl .rtm-tip:before {
1066
+ display: none;
1067
+ }
1068
+ body.rtl .rtm-edit-td, body.rtl .rtm-delete-td {
1069
+ float: right;
1070
+ margin-left: 0;
1071
+ }
1072
+ body.rtl .rtm-edit-td {
1073
+ margin-right: -15px;
1074
+ }
1075
+ body.rtl #rtmedia-membership span.float-right {
1076
+ float: left;
1077
+ }
1078
+ body.rtl .theme-browser .theme {
1079
+ float: left;
1080
+ margin: 0 4% 4% 0;
1081
+ }
1082
+
1083
+ .rtmedia-license .rtm-tabs span {
1084
+ padding: 0;
1085
+ }
app/assets/admin/css/admin.min.css ADDED
@@ -0,0 +1 @@
1
+ .alignleft{float:left}.alignright{float:right}.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}.clear-both{clear:both}.clear-none{clear:none}.clear-left{clear:left}.clear-right{clear:right}.rtm-inline-block{display:inline-block}.rtm-text-left{text-align:left}.rtm-text-right{text-align:right}.rtm-text-center{text-align:center}.rtm-border-0{border:0 !important}.hide{display:none}.clearfix:after{content:"";display:table;clear:both}.rtm-row-container{padding-top:10px}.rtm-admin-tab-container{display:table;width:100%}.rtm-admin-tab-container .rtm-tabs-content{background:#fff;border-left:1px solid #e7e7e7;display:table-cell;min-height:300px;padding:20px 30px;vertical-align:top}.rtm-setting-container{background-color:#f5f5f5;border:1px solid #dedede;box-shadow:0 1px 1px rgba(0,0,0,0.04);margin-top:10px}.rtm-sidebar .postbox .hndle{cursor:default}.rtm-tabs{display:table-cell;list-style:none;margin:0;min-height:300px;width:202px}.rtm-button-container{background:#f3f3f3;border-bottom:1px solid #dedede;box-shadow:0 1px 0 #fcfcfc inset;overflow:hidden;padding:6px 10px 6px 6px;position:relative;text-align:right}.rtm-button-container.bottom{background:#eee;border-top:1px solid #e7e7e7;box-shadow:0 0 0;z-index:999}#mce-EMAIL{width:100%}#mc-embedded-subscribe{display:block;margin:10px auto 0;width:100%}.rtm-social-links a{display:inline-block;margin:4px 0 4px 4px;text-decoration:none}.nav-tab.rtm-premium{background:#e74c3c;color:white;letter-spacing:0.5px}.rtm-setting-title{border-bottom:1px solid #eee;font-size:22px;font-weight:400;line-height:1;margin-bottom:20px;margin-top:0;padding-bottom:14px;display:none}.rtm-setting-title.rtm-show{display:block}.rtm-option-wrapper{margin-bottom:40px}.rtm-option-wrapper:last-child{margin-bottom:20px}.rtm-setting-title+.rtm-option-wrapper{margin-top:0}.rtm-option-wrapper:last-child{border-bottom:0}.rtm-option-wrapper .form-table{clear:none}.rtm-option-wrapper .rtm-field-wrap{float:left}.rtm-option-wrapper a{text-decoration:none}.rtm-option-wrapper .form-table th{color:#444;font-size:13px;font-weight:400;padding:5px 30px 5px 0;vertical-align:top;width:48%}.rtm-option-wrapper .form-table td{font-size:13px;padding:0 0 5px;vertical-align:top}.rtm-option-wrapper .form-table td fieldset label{display:block;margin:0 !important}.rtm-option-wrapper .form-table .rtm-form-radio label{margin-top:5px !important}.rtm-option-wrapper textarea,.rtm-option-wrapper select,.rtm-option-wrapper input[type=text],.rtm-option-wrapper input[type=number]{border-radius:3px}.rtm-option-wrapper input[type=number]{width:60px}.rtm-option-wrapper .rt-form-radio{height:28px;line-height:24px}.rtm-option-wrapper .rt-form-radio label:first-child{margin-right:12px !important}.rtm-option-wrapper .dashicons-info{color:#aaa;font-size:14px;height:26px;line-height:26px;position:relative}.rtm-option-wrapper .rtm-debug-info{margin-top:32px}.rtm-option-wrapper .rtm-debug-info tr{border-bottom:1px solid #eee}.rtm-option-wrapper .rtm-debug-info tr:first-child{border-top:1px solid #eee}.rtm-option-wrapper .rtm-debug-info tr:nth-child(2n){background-color:#f8f8f8}.rtm-option-wrapper .rtm-debug-info th{border-right:1px solid #eee;font-weight:600;width:auto}.rtm-option-wrapper .rtm-debug-info th,.rtm-option-wrapper .rtm-debug-info td{padding:10px}.rtm-option-title{border-bottom:1px solid #eee;font-size:14px;letter-spacing:0.02rem;margin-bottom:12px;margin-top:0;padding:0 0 6px;text-transform:uppercase}.rtm-sidebar .button{display:block;opacity:0.8;position:relative;text-decoration:none}.rtm-social-share .dashicons{font-size:18px;position:absolute;right:10px;top:4px}.rtm-social-share .twitter .dashicons{color:#45b0e3}.rtm-social-share .facebook .dashicons{color:#3b5998}.rtm-social-share .wordpress .dashicons{color:#21759b}.rtm-social-share .rss .dashicons{color:#FF6600}.rtm-social-share p:last-child{margin-bottom:0}.rtm-notice{background:rgba(238,238,238,0.8);color:#777;font-size:12px;line-height:1.6;margin-top:10px;overflow:hidden;padding:0 10px}.rtm-notice p{font-size:inherit;line-height:inherit;margin:10px 0}.rtm-warning{background-color:#fcf8e3;border-bottom:1px solid #EEE;color:#c09853;padding:10px 15px}.rtmedia-theme-warning{margin-bottom:26px}.rtm-success{background-color:#dff0d8;border-bottom:1px solid #e7e7e7;color:#468847;margin:0;padding:8px 35px 8px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.rtm-fly-warning{border-bottom:0;left:-10px;letter-spacing:1px;line-height:22px;margin-bottom:0;padding:14px 25px;position:absolute;top:-5px}#rtmedia-types .form-table th{line-height:26px;padding:5px 0 20px;width:33%}#rtmedia-types .form-table td{padding:0 0 12px}#rtmedia-custom-css-settings .form-table th{width:35%}#rtmedia-custom-css-settings .form-table:last-child .rtm-field-wrap{width:92%}#rtmedia-custom-css-settings textarea{height:300px;width:100%}.rtm-img-size-setting .form-table th{border-bottom:1px solid #eee;padding-bottom:10px;padding-top:10px;width:20%}.rtm-img-size-setting .form-table tr:nth-child(2) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-child(4){border-bottom:1px solid #eee}.rtm-img-size-setting .form-table tr:nth-child(4) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:nth-child(5) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-child(6) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:nth-child(7){border-top:1px solid #eee}.rtm-img-size-setting .form-table tr:nth-child(7) td{padding-top:20px}.rtm-img-size-setting .form-table tr:nth-last-child(2) td{padding-bottom:20px}.rtm-img-size-setting .form-table tr:last-child{border-top:1px solid #eee}.rtm-img-size-setting .form-table tr:last-child td{padding-top:20px;padding-bottom:20px}.rtm-img-size-setting .form-table .rtm-row-title{font-weight:600}#rtmedia-privacy .rt-form-radio{font-size:12px}#rtmedia-privacy .rt-form-radio strong{font-size:13px}#rtmedia-encoding-usage strong{display:inline-block;min-width:120px}#rtmedia-encoding-usage p{overflow:hidden}.encoding-used,.encoding-remaining{background:#7AD03A;float:right;height:12px;margin-top:3px;width:12px}.encoding-remaining{background:#dedede}#rtprogressbar{background:#dedede;height:10px;position:relative}#rtprogressbar div{background:#7AD03A;height:10px;left:0;position:absolute}.rtm-tabs li{margin:0}.rtm-tabs a{border-bottom:1px solid #e7e7e7;border-top:1px solid #f2f2f2;color:#222;display:block;font-weight:700;outline:none;opacity:0.8;padding:10px 4px 10px 14px;position:relative;text-decoration:none;z-index:10}.rtm-tabs a:hover{background:#eee;color:#269ad6;margin-right:0;opacity:1;width:auto}.rtm-tabs a:focus{background:#fff;box-shadow:0 0 0}.rtm-tabs .active{background:white;position:relative}.rtm-tabs .active:after{background:#fff;content:' ';height:100%;position:absolute;right:-1px;top:0;width:1px}.rtm-tabs .active a{border-top-color:#fff;color:#222;opacity:1}.rtm-tabs .active a:hover{background:#fff}.rtm-tabs span{display:block;padding:0 0 0 25px}.rtm-tabs .dashicons{font-size:14px;height:auto;line-height:1;margin-top:3px;position:absolute;vertical-align:middle;width:auto}.rtm-horizotanl-tabs .rtm-tabs{list-style:none;margin:0;display:block;width:auto;min-height:0}.rtm-horizotanl-tabs .rtm-tabs-content{border-left:none;background:#fff;min-height:300px;padding:20px 30px;vertical-align:top}.rtm-horizotanl-tabs .rtm-tabs a{border-bottom:none}.rtm-horizotanl-tabs .rtm-tabs li{display:inline-block}.rtm-horizotanl-tabs.rtm-admin-tab-container{width:100%;display:block}.switch{position:relative;display:inline-block;vertical-align:top;width:58px;height:22px;padding:3px;border-radius:18px}.switch input[type=checkbox]{position:absolute;top:0;left:0;opacity:0}.switch-label{position:relative;display:block;height:inherit;color:#fff;font-size:12px;text-transform:uppercase;background:#b4b4b4;border-radius:inherit;-webkit-transition:0.15s ease-out;transition:0.15s ease-out;-webkit-transition-property:opacity background;transition-property:opacity background}.switch-label:before,.switch-label:after{position:absolute;top:50%;margin-top:-.5em;line-height:1;-webkit-transition:inherit;transition:inherit}.switch-label:before{content:attr(data-off);right:11px;color:#fff}.switch-label:after{content:attr(data-on);left:11px;opacity:0}input[type=checkbox]:checked ~ .switch-label{background:#33a7d1}input[type=checkbox]:checked ~ .switch-label:before{opacity:0}input[type=checkbox]:checked ~ .switch-label:after{opacity:1}.switch-handle{position:absolute;top:5px;left:5px;width:18px;height:18px;background:white;border-radius:10px;box-shadow:1px 1px 5px rgba(0,0,0,0.2);background-image:-webkit-linear-gradient(top, #fff 40%, #f0f0f0);background-image:linear-gradient(to bottom, #fff 40%, #f0f0f0);-webkit-transition:left 0.15s ease-out;transition:left 0.15s ease-out}.switch-handle:before{content:'';position:absolute;top:50%;left:50%;margin:-6px 0 0 -6px;width:12px;height:12px;background:#f9f9f9;border-radius:6px;box-shadow:inset 0 1px rgba(0,0,0,0.02);background-image:-webkit-linear-gradient(top, #eee, #fff);background-image:linear-gradient(to bottom, #eee, #fff)}input[type=checkbox]:checked ~ .switch-handle{left:41px;box-shadow:-1px 1px 5px rgba(0,0,0,0.2)}.rtm-tooltip{display:inline-block;margin-left:3px;position:relative}.rtm-tooltip:hover .rtm-tip-top,.rtm-tooltip:hover .rtm-tip{margin-left:0;opacity:1;visibility:visible}.rtm-tooltip .rtm-title{border-bottom:1px dotted;padding-bottom:2px}.rtm-tip-top,.rtm-tip{background:#fffAF0;border:1px solid #f5deaf;border-radius:3px;font-size:12px;left:24px;margin-top:-4px;margin-left:-10px;line-height:1.5;opacity:0;padding:6px 12px;position:absolute;top:0;visibility:hidden;width:210px;z-index:9999;-webkit-transition:all ease-in-out 0.4s;transition:all ease-in-out 0.4s}.rtm-tip-top{bottom:26px;left:auto;right:-66px;top:auto;width:200px}.rtm-tip-top:after,.rtm-tip-top:before{right:auto;top:100%;left:50%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}.rtm-tip-top:after{border-color:rgba(255,250,240,0);border-top-color:#fffAF0;border-width:6px;margin-left:-6px}.rtm-tip-top:before{border-color:rgba(245,222,175,0);border-top-color:#f5deaf;border-width:8px;margin-left:-8px}.rtm-extensions .dashicons{font-size:12px;margin-left:-4px;position:relative;top:-3px}.rtm-extensions.rtm-set-top .dashicons{top:1px}.rtm-plugin-card.plugin-card{margin:1%;overflow:hidden;width:48%}.rtm-plugin-card.plugin-card .rtm-logo{float:left;margin-right:10px;max-width:200px;width:auto}.rtm-plugin-card.plugin-card .rtm-logo img{height:auto;margin:-10px 0 0 -10px;max-width:120px}.rtm-plugin-card.plugin-card .desc,.rtm-plugin-card.plugin-card .name{margin-left:0;margin-right:0;overflow:hidden}.rtm-plugin-card.plugin-card h4{margin-bottom:0}.rtm-plugin-card.plugin-card a{text-decoration:none}.rtm-plugin-card.plugin-card .rtm-live-demo{margin-right:10px}.rtm-plugin-card.plugin-card .price{color:#269ad6;font-size:22px;line-height:1.2}#rtm-plugins .rtm-option-title{margin-top:50px}#rtm-plugins .rtm-setting-title+.rtm-option-title{margin-top:0}.rtm-encoding-table{border-collapse:collapse;clear:none}.rtm-encoding-table th,.rtm-encoding-table td{border:1px solid #e7e7e7}.rtm-encoding-table th{font-size:13px;font-weight:600}.rtm-theme-browser .rtm-themes{clear:none;padding:0}.rtm-theme-browser .rtm-themes .rtm-theme{width:48%}.rtm-theme-browser .rtm-themes .rtm-theme:nth-child(even){margin-right:0 !important}.rtm-theme-browser .rtm-themes .rtm-theme:nth-child(3n){margin-right:4%}.admin-bar .theme-overlay .theme-wrap{z-index:99999}.rtm-support-container{min-height:300px}.rtm-support-form .rtm-form-filed{clear:both;margin:15px 0}.rtm-support-form label{float:left;width:15%}.rtm-support-form .bp-media-textarea{height:80px}.rtm-button-wrapper{padding-left:15%}.rtm-page-container{background:#fff;overflow:hidden;padding:20px}.rtm-pro-feature-list li{box-sizing:border-box;float:left;padding:0 10px 20px;width:33%}.rtm-pro-feature-list .rtm-icon-wrap{float:left;margin-top:15px;width:30px}.rtm-pro-feature-list .dashicons{font-size:18px}.rtm-pro-feature-list .rtm-title{font-size:18px;margin-left:30px;margin-top:0px}.rtm-pro-feature-list .rtm-content{font-size:14px;line-height:25px;margin-left:30px;color:#8a8a8a;width:auto}.rtm-update-to-pro{text-align:center}.rtm-button{background-color:#269ad6;border:0;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:13px;letter-spacing:1px;line-height:1;margin-bottom:10px;padding:12px 26px;text-align:center;text-decoration:none;text-transform:uppercase}.rtm-button:hover,.rtm-button:focus{background-color:#228ac0;color:#fff}.rtm-button.large{font-size:16px;margin-bottom:20px;padding:20px 40px}.rtm-button.rtm-button-success{background-color:#2ecc71}.rtm-button.rtm-button-success:hover,.rtm-button.rtm-button-success:focus{background-color:#2fab41}.rtm-hire-points{font-size:14px;margin-bottom:24px}@media only screen and (min-width: 1025px){.rtm-setting-container{float:left;width:78.2%}.rtm-sidebar{float:right;width:20%}.rtm-sidebar .postbox{min-width:0}.rtm-field-wrap{max-width:92%}.rtm-tip:after,.rtm-tip:before{right:100%;top:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.rtm-tip:after{border-color:rgba(255,250,240,0);border-right-color:#fffAF0;border-width:6px;margin-top:-6px}.rtm-tip:before{border-color:rgba(221,204,170,0);border-right-color:#f5deaf;border-width:7px;margin-top:-7px}.rtm-support-form .bp-media-input,.rtm-support-form .bp-media-textarea{float:left;width:40%}}@media only screen and (min-width: 641px) and (max-width: 1024px){.rtm-sidebar{width:100%}.rtm-sidebar .postbox{display:inline-block;margin-left:5px;vertical-align:top}.rtm-sidebar .postbox:first-child{margin-left:0}}@media screen and (max-width: 1024px){.rtm-tip{bottom:26px;left:auto;right:-102px;top:auto;width:200px}.rtm-tip:after,.rtm-tip:before{right:auto;top:100%;left:50%;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}.rtm-tip:after{border-color:rgba(255,250,240,0);border-top-color:#fffAF0;border-width:6px;margin-left:-6px}.rtm-tip:before{border-color:rgba(245,222,175,0);border-top-color:#f5deaf;border-width:7px;margin-left:-7px}#rtmedia-custom-css-settings .form-table:last-child .rtm-field-wrap{width:100%}.rtm-field-wrap input[type=text]{max-width:140px !important}.theme-browser .theme:nth-child(2n+1){margin-right:4%}.rtmedia-settings-submit{margin-bottom:0 !important}}@media only screen and (min-width: 641px){.rtm-pro-feature-list li:nth-child(3n+1){clear:left}}@media screen and (min-width: 421px) and (max-width: 782px){.rtm-option-wrapper .form-table td{display:table-cell}.rtm-option-wrapper .form-table th{display:table-cell}}@media only screen and (max-width: 640px){.rtm-pro-feature-list li{width:50%}.rtm-pro-feature-list li:nth-child(2n+1){clear:left}.rtm-tabs{width:40px}.rtm-tabs li{width:40px}.rtm-tabs a{height:18px}.rtm-tabs a:hover{width:140px}.rtm-tabs a:hover span{display:block}.rtm-tabs span{display:none;padding:0 0 0 28px;position:absolute}.rtm-support-form label{width:100%;margin-bottom:5px}.rtm-support-form .bp-media-input,.rtm-support-form .bp-media-textarea{width:70%}.rtm-button-wrapper{padding-left:0}}@media screen and (max-width: 481px){.rtm-plugin-card.plugin-card .rtm-logo{display:inline-block;float:none}.rtm-theme-browser .rtm-themes .rtm-theme{margin:0 0 20px;width:100%}}@media screen and (max-width: 420px){.rtm-option-wrapper .form-table th{padding-bottom:15px;width:100%}#rtmedia-types .form-table th,#rtmedia-custom-css-settings .form-table th{width:100%}.rtm-pro-feature-list li{width:100%}.rtm-tip-top{right:-115px}}body.rtl .rtm-tabs a{padding:10px 32px 10px 4px}body.rtl .rtm-tabs .dashicons{right:10px}body.rtl .rtm-social-share .dashicons{left:10px;right:auto}body.rtl .rtm-option-wrapper .rtm-field-wrap{float:right}body.rtl .rtm-tip-top,body.rtl .rtm-tip{left:auto;right:24px}body.rtl .rtm-tip-top:after,body.rtl .rtm-tip-top:before,body.rtl .rtm-tip:after,body.rtl .rtm-tip:before{display:none}body.rtl .rtm-edit-td,body.rtl .rtm-delete-td{float:right;margin-left:0}body.rtl .rtm-edit-td{margin-right:-15px}body.rtl #rtmedia-membership span.float-right{float:left}body.rtl .theme-browser .theme{float:left;margin:0 4% 4% 0}.rtmedia-license .rtm-tabs span{padding:0}
app/assets/admin/css/sass/_layout.scss CHANGED
@@ -22,7 +22,7 @@ $container-min-height: 300px;
22
.rtm-setting-container {
23
background-color: #f5f5f5;
24
border: 1px solid $border-dark;
25
- @include box-shadow( 0 1px 1px rgba( $black, 0.04 ) );
26
margin-top: 10px;
27
}
28
22
.rtm-setting-container {
23
background-color: #f5f5f5;
24
border: 1px solid $border-dark;
25
+ box-shadow: 0 1px 1px rgba( $black, 0.04 );
26
margin-top: 10px;
27
}
28
app/assets/admin/css/sass/_rtmedia-pro.scss CHANGED
@@ -7,7 +7,7 @@
7
.rtm-pro-feature-list {
8
9
li {
10
- @include box-sizing(border-box);
11
float: left;
12
padding: 0 10px 20px;
13
width: 33%;
7
.rtm-pro-feature-list {
8
9
li {
10
+ box-sizing: border-box;
11
float: left;
12
padding: 0 10px 20px;
13
width: 33%;
app/assets/admin/css/sass/_switch.scss CHANGED
@@ -30,15 +30,15 @@ $switchTransition: .15s ease-out;
30
text-transform: uppercase;
31
background: #b4b4b4;
32
border-radius: inherit;
33
- @include transition($switchTransition);
34
- @include transition-property(opacity background);
35
36
&:before, &:after {
37
position: absolute;
38
top: 50%;
39
margin-top: -.5em;
40
line-height: 1;
41
- @include transition(inherit);
42
}
43
44
&:before {
@@ -72,8 +72,8 @@ $switchTransition: .15s ease-out;
72
background: white;
73
border-radius: 10px;
74
box-shadow: 1px 1px 5px rgba(black, .2);
75
- @include background-image(linear-gradient(top, white 40%, #f0f0f0));
76
- @include transition(left #{$switchTransition});
77
78
&:before {
79
content: '';
@@ -86,7 +86,7 @@ $switchTransition: .15s ease-out;
86
background: #f9f9f9;
87
border-radius: 6px;
88
box-shadow: inset 0 1px rgba(black, .02);
89
- @include background-image(linear-gradient(top, #eee, white));
90
}
91
92
input[type=checkbox]:checked ~ & {
30
text-transform: uppercase;
31
background: #b4b4b4;
32
border-radius: inherit;
33
+ transition: $switchTransition;
34
+ transition-property: opacity background;
35
36
&:before, &:after {
37
position: absolute;
38
top: 50%;
39
margin-top: -.5em;
40
line-height: 1;
41
+ transition: inherit;
42
}
43
44
&:before {
72
background: white;
73
border-radius: 10px;
74
box-shadow: 1px 1px 5px rgba(black, .2);
75
+ background-image: linear-gradient(to bottom, white 40%, #f0f0f0);
76
+ transition: left #{$switchTransition};
77
78
&:before {
79
content: '';
86
background: #f9f9f9;
87
border-radius: 6px;
88
box-shadow: inset 0 1px rgba(black, .02);
89
+ background-image: linear-gradient(to bottom, #eee, white);
90
}
91
92
input[type=checkbox]:checked ~ & {
app/assets/admin/css/sass/_tooltip.scss CHANGED
@@ -36,8 +36,7 @@
36
visibility: hidden;
37
width: 210px;
38
z-index: 9999;
39
-
40
- @include transition(all ease-in-out 0.4s);
41
}
42
43
.rtm-tip-top {
36
visibility: hidden;
37
width: 210px;
38
z-index: 9999;
39
+ transition: all ease-in-out 0.4s;
40
}
41
42
.rtm-tip-top {
app/assets/admin/css/sass/admin.scss CHANGED
@@ -1,7 +1,3 @@
1
-
2
- // *** This line Import Compass. *** //
3
- @import "compass";
4
-
5
// *** CSS Variables *** //
6
@import 'variables';
7
@@ -45,4 +41,4 @@
45
@import "rtl";
46
47
// *** License *** //
48
- @import "license";
1
// *** CSS Variables *** //
2
@import 'variables';
3
41
@import "rtl";
42
43
// *** License *** //
44
+ @import "license";
app/assets/admin/css/widget.css CHANGED
@@ -1 +1,57 @@
1
- #rtmedia_dashboard_widget .rtm-column{width:46%}#rtmedia_dashboard_widget table{border-top:1px solid #ECECEC;margin-top:6px;padding-top:6px}#rtmedia_dashboard_widget td{padding:3px 0}#rtmedia_dashboard_widget .b{padding-right:5px;text-align:right;width:1%}#rtmedia_dashboard_widget .rtm-meta-container{border-top:1px solid #eee;clear:both;margin:12px -12px -12px;padding:0 12px}#rtmedia_dashboard_widget .rtm-meta-links{list-style:none;margin:0;padding:0}#rtmedia_dashboard_widget .rtm-meta-links li{display:inline-block;margin:0;position:relative}#rtmedia_dashboard_widget .rtm-meta-links li:after{background:#ddd;content:' ';height:14px;position:absolute;right:-1px;top:13px;width:1px}#rtmedia_dashboard_widget .rtm-meta-links li:first-child:after,#rtmedia_dashboard_widget .rtm-meta-links li:last-child:after{display:none}#rtmedia_dashboard_widget .rtm-meta-links a{display:block;padding:10px 8px}.clearfix:after{content:"";display:table;clear:both}
1
+ #rtmedia_dashboard_widget .rtm-column {
2
+ width: 46%;
3
+ }
4
+ #rtmedia_dashboard_widget table {
5
+ border-top: 1px solid #ECECEC;
6
+ margin-top: 6px;
7
+ padding-top: 6px;
8
+ }
9
+ #rtmedia_dashboard_widget td {
10
+ padding: 3px 0;
11
+ }
12
+ #rtmedia_dashboard_widget .b {
13
+ padding-right: 5px;
14
+ text-align: right;
15
+ width: 1%;
16
+ }
17
+ #rtmedia_dashboard_widget .rtm-meta-container {
18
+ border-top: 1px solid #eee;
19
+ clear: both;
20
+ margin: 12px -12px -12px;
21
+ padding: 0 12px;
22
+ }
23
+ #rtmedia_dashboard_widget .rtm-meta-links {
24
+ list-style: none;
25
+ margin: 0;
26
+ padding: 0;
27
+ }
28
+ #rtmedia_dashboard_widget .rtm-meta-links li {
29
+ display: inline-block;
30
+ margin: 0;
31
+ position: relative;
32
+ }
33
+ #rtmedia_dashboard_widget .rtm-meta-links li:after {
34
+ background: #ddd;
35
+ content: ' ';
36
+ height: 14px;
37
+ position: absolute;
38
+ right: -1px;
39
+ top: 13px;
40
+ width: 1px;
41
+ }
42
+ #rtmedia_dashboard_widget .rtm-meta-links li:first-child:after, #rtmedia_dashboard_widget .rtm-meta-links li:last-child:after {
43
+ display: none;
44
+ }
45
+ #rtmedia_dashboard_widget .rtm-meta-links a {
46
+ display: block;
47
+ padding: 10px 8px;
48
+ }
49
+
50
+ /*------------------------------------*\
51
+ #CLEARFIX
52
+ \*------------------------------------*/
53
+ .clearfix:after {
54
+ content: "";
55
+ display: table;
56
+ clear: both;
57
+ }
app/assets/admin/css/widget.min.css ADDED
@@ -0,0 +1 @@
1
+ #rtmedia_dashboard_widget .rtm-column{width:46%}#rtmedia_dashboard_widget table{border-top:1px solid #ECECEC;margin-top:6px;padding-top:6px}#rtmedia_dashboard_widget td{padding:3px 0}#rtmedia_dashboard_widget .b{padding-right:5px;text-align:right;width:1%}#rtmedia_dashboard_widget .rtm-meta-container{border-top:1px solid #eee;clear:both;margin:12px -12px -12px;padding:0 12px}#rtmedia_dashboard_widget .rtm-meta-links{list-style:none;margin:0;padding:0}#rtmedia_dashboard_widget .rtm-meta-links li{display:inline-block;margin:0;position:relative}#rtmedia_dashboard_widget .rtm-meta-links li:after{background:#ddd;content:' ';height:14px;position:absolute;right:-1px;top:13px;width:1px}#rtmedia_dashboard_widget .rtm-meta-links li:first-child:after,#rtmedia_dashboard_widget .rtm-meta-links li:last-child:after{display:none}#rtmedia_dashboard_widget .rtm-meta-links a{display:block;padding:10px 8px}.clearfix:after{content:"";display:table;clear:both}
app/assets/admin/img/rtmedia-photo-filters.png ADDED
Binary file
app/assets/admin/js/admin.min.js ADDED
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * rtMedia JavaScript Library
3
+ * @package rtMedia
4
+ */
5
+ function rtmedia_addon_do_not_show(){var a={action:"rtmedia_addon_popup_not_show_again"};jQuery.post(rtmedia_admin_ajax,a,function(a){jQuery("#TB_window").remove(),jQuery("#TB_overlay").remove()})}"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a,b,c,d){var e={init:function(b,c){var d=this;d.elem=c,d.$elem=a(c),d.options=a.extend({},a.fn.rtTab.options,b),d.rtTabs()},rtTabs:function(){var c=this,d=c.options.activeTab;c.$elem.find("li:nth-child("+d+")").addClass("active"),c.rtTabContent(activeTabContent="yes"),c.rtClick();var e="false"===c.$elem.attr("data-hash")?!1:!0;if(e===!0){var f=b.location.hash;f&&c.$elem.find("li").find("a[href="+f+"]").trigger("click"),a(b).on("hashchange",function(){var a=b.location.hash;c.$elem.find("li").find("a[href="+a+"]").trigger("click")})}},rtClick:function(){var c=this,d=c.$elem.find("li"),e=d.find("a");e.on("click",function(e){e.preventDefault(),d.removeClass("active"),c.rtTabContent(),a(this).parent().addClass("active");var f=a(this).attr("href");a(f).removeClass("hide");var g="false"===c.$elem.attr("data-hash")?!1:!0;if(g===!0){var h=a(b).scrollTop();location.hash=a(this).attr("href"),a(b).scrollTop(h)}"function"==typeof c.options.onComplete&&c.options.onComplete.apply(c.elem,arguments)})},rtTabContent:function(b){var c=this,d=c.$elem.find("li"),e=d.find("a");e.each(function(){var c=a(this),d=c.attr("href");"yes"===b?c.parent().hasClass("active")||a(d).addClass("hide"):a(d).addClass("hide")})}};a.fn.rtTab=function(b){return this.each(function(){var c=Object.create(e);c.init(b,this),a.data(this,"rtTab",c)})},a.fn.rtTab.options={activeTab:1,onComplete:null}}(jQuery,window,document),jQuery(document).ready(function(a){a(".rtm-tabs").rtTab(),a('input[name^="rtmedia-options"]').on("change",function(){a(".rtm-save-settings-msg").remove(),0===a(".rtm-fly-warning").length&&(a(".rtm-button-container.top").prepend('<div class="rtm-warning rtm-fly-warning hide">Settings have changed, you should save them!</div>'),a(".rtm-fly-warning").slideDown())}),a(".rtm-img-size-setting .form-table tr:nth-child(7) td:last-child").attr("colspan","3"),a(".rtm-field-wrap .switch input[type=checkbox]").each(function(){var b=a(this);b.parents("table").attr("data-depends")||(b.is(":checked")?(b.parents("table").next(".rtm-notice").slideDown(),b.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideDown()})):(b.parents("table").next(".rtm-notice").slideUp(),b.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideUp()}))),b.parents("tr").next("tr").attr("data-depends")&&(b.is(":checked")?b.parents("tr").next("tr").slideDown():b.parents("tr").next("tr").slideUp())}),a(".rtm-field-wrap .switch input[type=checkbox]").on("change",function(){var b=a(this);b.parents("table").attr("data-depends")||(b.parents("table").next(".rtm-notice").slideToggle(),b.parents("table").siblings("table").each(function(){a(this).attr("data-depends")&&a(this).slideToggle()})),b.parents("tr").next("tr").attr("data-depends")&&b.parents("tr").next("tr").slideToggle()});var b=Backbone.View.extend({el:a(".bp-media-admin"),events:{"click .rtm-theme":"render","click .rtm-close":"close","click .rtm-previous":"previousTheme","click .rtm-next":"nextTheme",keyup:"keyEvent"},initialize:function(){_.bindAll(this,"render","close","nextTheme","previousTheme","keyEvent"),this.keyEvent()},render:function(b){a(".rtm-theme").removeClass("rtm-modal-open");var c=a(b.currentTarget).addClass("rtm-modal-open").find(".rtm-theme-content").html();a(".rtm-theme-overlay")[0]?(a(".rtm-theme-overlay").show(),a(this.el).find(".rtm-theme-content-wrap").empty().append(c)):a(this.el).append('<div class="theme-overlay rtm-theme-overlay"><div class="theme-backdrop rtm-close"></div><div class="rtm-theme-content-wrap">'+c+"</div></div>"),a(b.currentTarget).is(":first-child")?a(".rtm-previous").addClass("disabled"):a(b.currentTarget).is(":last-child")?a(".rtm-next").addClass("disabled"):a(".rtm-next, .rtm-previous").removeClass("disabled")},close:function(){a(".rtm-theme").removeClass("rtm-modal-open"),a(".rtm-theme-overlay").hide(),a(".rtm-next, .rtm-previous").removeClass("disabled")},nextTheme:function(b){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1},previousTheme:function(b){return a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1},keyEvent:function(){a("body").on("keyup",function(b){return 39===b.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:last-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").next().trigger("click"),!1):37===b.keyCode?(a(".rtm-next, .rtm-previous").removeClass("disabled"),a(".rtm-theme:first-child").hasClass("rtm-modal-open")&&a(b.currentTarget).addClass("disabled"),a(".rtm-modal-open").prev().trigger("click"),!1):void(27===b.keyCode&&a(".rtm-close").trigger("click"))})}});new b}),jQuery(document).ready(function(a){function b(a){return jQuery.post(ajaxurl,a,function(b){if(0!=b){var c=!1,d=Math.ceil((20*parseInt(b)+parseInt(a.values.finished))/parseInt(a.values.total)*100);d>100&&(d=100,c=!0),jQuery("#rtprogressbar>div").css("width",d+"%"),finished=jQuery("#rtprivacyinstaller span.finished").html(),jQuery("#rtprivacyinstaller span.finished").html(parseInt(finished)+a.count),c&&jQuery.post(ajaxurl,{action:"rtmedia_privacy_redirect"},function(a){window.location=settings_url})}else jQuery("#map_progress_msgs").html('<div class="map_mapping_failure">Row '+b+" failed.</div>")})}function c(a){return jQuery.getJSON(ajaxurl,a,function(b){if(favorites=!1,b){var c=Math.ceil((5*parseInt(b.page)+parseInt(a.values.finished))/parseInt(a.values.total)*100);comments_total=jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.total").html(),users_total=jQuery("#bpmedia-bpalbumimporter .bp-album-users span.total").html(),media_total=jQuery("#bpmedia-bpalbumimporter .bp-album-media span.total").html(),comments_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.finished").html(),users_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-users span.finished").html();var f=Math.ceil((parseInt(b.comments)+parseInt(comments_finished))/parseInt(comments_total)*100),g=Math.ceil(parseInt(b.users)/parseInt(users_total)*100);(c>100||100==c)&&(c=100,favorites=!0),jQuery(".bp-album-media #rtprogressbar>div").css("width",c+"%"),jQuery(".bp-album-comments #rtprogressbar>div").css("width",f+"%"),jQuery(".bp-album-users #rtprogressbar>div").css("width",g+"%"),media_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-media span.finished").html(),parseInt(media_finished)<parseInt(media_total)&&jQuery("#bpmedia-bpalbumimporter .bp-album-media span.finished").html(parseInt(media_finished)+a.count),jQuery("#bpmedia-bpalbumimporter .bp-album-comments span.finished").html(parseInt(b.comments)+parseInt(comments_finished)),jQuery("#bpmedia-bpalbumimporter .bp-album-users span.finished").html(parseInt(b.users)),favorites&&(favorite_data={action:"rtmedia_rt_album_import_favorites"},jQuery.post(ajaxurl,favorite_data,function(a){if(0!==a.favorites||"0"!==a.favorites){jQuery(".bp-album-favorites").length||jQuery(".bp-album-comments").after('<br /><div class="bp-album-favorites"><strong>User\'s Favorites: <span class="finished">0</span> / <span class="total">'+a.users+'</span></strong><div id="rtprogressbar"><div style="width:0%"></div></div></div>'),$favorites={},0!=a.offset||"0"!=a.offset?start=1*a.offset+1:start=1;for(var b=start;b<=a.users;b++)$count=1,b==a.users&&($count=parseInt(a.users%$count),0==$count&&($count=1)),newvals={action:"rtmedia_rt_album_import_step_favorites",offset:1*(b-1),redirect:b==a.users},$favorites[b]=newvals;var c=jQuery.Deferred();c.resolve(),jQuery.each($favorites,function(a,b){c=c.pipe(function(){return d(b)})})}else window.setTimeout(e,2e3)},"json"))}else jQuery("#map_progress_msgs").html('<div class="map_mapping_failure">Row '+b.page+" failed.</div>")})}function d(a){return jQuery.post(ajaxurl,a,function(a){redirect=!1,favorites_total=jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.total").html(),favorites_finished=jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.finished").html(),jQuery("#bpmedia-bpalbumimporter .bp-album-favorites span.finished").html(parseInt(favorites_finished)+1);var b=Math.ceil(parseInt(favorites_finished+1)/parseInt(favorites_total)*100);(b>100||100==b)&&(b=100,redirect=!0),jQuery(".bp-album-favorites #rtprogressbar>div").css("width",b+"%"),redirect&&window.setTimeout(e,2e3)})}function e(){window.location=document.URL}a(".rtm-save-settings-msg").length>0&&setTimeout(function(){a(".rtm-save-settings-msg").remove()},1e4),jQuery("#spread-the-word").on("click","#bp-media-add-linkback",function(){var a={action:"rtmedia_linkback",linkback:jQuery("#bp-media-add-linkback:checked").length};jQuery.post(rtmedia_admin_ajax,a,function(a){})}),jQuery("#bp-media-settings-boxes").on("change","#select-request",function(){if(jQuery(this).val()){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html('<div class="support_form_loader"></div>');var a={action:"rtmedia_select_request",form:jQuery(this).val()};jQuery.post(ajaxurl,a,function(a){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(a).fadeIn("slow")})}}),jQuery("#bp-media-settings-boxes").on("click","#cancel-request",function(){if(jQuery(this).val()){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html('<div class="support_form_loader"></div>');var a={action:"rtmedia_cancel_request"};jQuery.post(ajaxurl,a,function(a){jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(),jQuery("#bp_media_settings_form .bp-media-metabox-holder").html(a).fadeIn("slow")})}}),jQuery("#bp-media-settings-boxes").on("submit","#bp_media_settings_form, .rtmedia-settings-submit",function(a){var b=!0,c=new RegExp("^[0-9]+quot;);jQuery("input[name*='defaultSizes']").each(function(a){return c.test(jQuery(this).val())?void 0:(alert("Invalid value for "+jQuery(this).attr("name").replace("rtmedia-options[defaultSizes_","").replace("]","").replace(/_/g," ").replace(/(\b)([a-zA-Z] )/g,function(a){return a.toUpperCase()})),b=!1,!1)});var d=jQuery('input[name^="rtmedia-options[general_videothumbs]"]');if(b&&d.length>0&&"undefined"!=typeof d){var e="",f=0;if(d.val()<=0?(e+="Number of video thumbnails to be generated should be greater than 0 in media sizes settings. Setting it to default value 2.",f=2):c.test(d.val())||(e+="Invalid value for Number of video thumbnails in media sizes settings. Setting it to round value "+Math.round(d.val())+".",f=Math.round(d.val())),""!=e)return alert(e),d.val(f),b=!1,!1}var g=jQuery('input[name^="rtmedia-options[general_jpeg_image_quality]"]');if(b&&g.length>0&&"undefined"!=typeof g){var e="",h=0;if(g.val()<=0?(e+="Number of percentage in JPEG image quality should be greater than 0 in media sizes settings. Setting it to default value 90.",h=90):g.val()>100?(e+="Number of percentage in JPEG image quality should be less than 100 in media sizes settings. Setting it to 100.",h=100):c.test(g.val())||(e+="Invalid value for percentage in JPEG image quality in media sizes settings. Setting it to round value "+Math.round(g.val())+".",h=Math.round(g.val())),""!=e)return alert(e),g.val(h),b=!1,!1}var i=jQuery('input[name^="rtmedia-options[general_perPageMedia]"]');if(b&&i.length>0&&"undefined"!=typeof i){var e="",j=0;if(i.val()<1?(e+="Please enter positive integer value only. Setting number of media per page value to default value 10.",j=10):jQuery.isNumeric(i.val())&&Math.floor(i.val())!=i.val()&&(e+="Please enter positive integer value only. Setting number of media per page value to round value "+Math.round(i.val())+".",j=Math.round(i.val())),""!=e)return alert(e),i.val(j),b=!1,!1}b||a.preventDefault()}),jQuery(document).on("click","#bpm-services .encoding-try-now,#rtm-services .encoding-try-now",function(a){if(a.preventDefault(),confirm(rtmedia_admin_strings.are_you_sure)){jQuery(this).after('<img style="margin: 0 0 0 10px" src="'+rtmedia_admin_url+'images/wpspin_light.gif" />');var b={action:"rtmedia_free_encoding_subscribe"};jQuery.getJSON(ajaxurl,b,function(a){if(void 0===a.error&&a.apikey){var b=window.location.href,c=window.location.hash;b=b.replace(c,""),document.location.href=b+"&apikey="+a.apikey+c}else jQuery(".encoding-try-now").next().remove(),jQuery("#settings-error-encoding-error").remove(),jQuery("#bp-media-settings-boxes").before('<div class="error" id="settings-error-encoding-error"><p>'+a.error+"</p></div>")})}}),jQuery(document).on("click","#api-key-submit",function(a){a.preventDefault(),0==jQuery(this).next("img").length&&jQuery(this).after('<img style="margin: 0 0 0 10px" src="'+rtmedia_admin_url+'images/wpspin_light.gif" />');var b={action:"rtmedia_enter_api_key",apikey:jQuery("#new-api-key").val()};jQuery.getJSON(ajaxurl,b,function(a){if(void 0===a.error&&a.apikey){var b=window.location.href,c=window.location.hash;b=b.replace(c,""),-1==b.toString().indexOf("&apikey="+a.apikey)&&(b+="&apikey="+a.apikey),-1==b.toString().indexOf("&update=true")&&(b+="&update=true"),document.location.href=b+c}else jQuery("#settings-error-api-key-error").remove(),jQuery("h2:first").after('<div class="error" id="settings-error-api-key-error"><p>'+a.error+"</p></div>");jQuery("#api-key-submit").next("img").remove()})}),jQuery(document).on("click","#disable-encoding",function(a){if(a.preventDefault(),confirm(rtmedia_admin_strings.disable_encoding)){jQuery(this).after('<img style="margin: 0 0 0 10px" src="'+rtmedia_admin_url+'images/wpspin_light.gif" />');var b={action:"rtmedia_disable_encoding"};jQuery.post(ajaxurl,b,function(a){a?(jQuery(".settings-error-encoding-disabled").remove(),jQuery("#settings-encoding-successfully-updated").length>0?jQuery("#settings-encoding-successfully-updated p").html(a):jQuery("h2:first").after('<div class="updated" id="settings-encoding-successfully-updated"><p>'+a+"</p></div>"),jQuery("#rtmedia-encoding-usage").hide(),jQuery("#disable-encoding").next("img").remove(),jQuery("#disable-encoding").hide(),jQuery("#enable-encoding").show()):(jQuery("#settings-error-encoding-disabled").remove(),jQuery("h2:first").after('<div class="error" id="settings-error-encoding-disabled"><p>'+rtmedia_admin_strings.something_went_wrong+"</p></div>"))})}}),jQuery(document).on("click","#enable-encoding",function(a){if(a.preventDefault(),confirm(rtmedia_admin_strings.enable_encoding)){jQuery(this).after('<img style="margin: 0 0 0 10px" src="'+rtmedia_admin_url+'images/wpspin_light.gif" />');var b={action:"rtmedia_enable_encoding"};jQuery.post(ajaxurl,b,function(a){a?(jQuery(".settings-error-encoding-enabled").remove(),jQuery("#settings-encoding-successfully-updated").length>0?jQuery("#settings-encoding-successfully-updated p").html(a):jQuery("h2:first").after('<div class="updated" id="settings-encoding-successfully-updated"><p>'+a+"</p></div>"),jQuery("#enable-encoding").next("img").remove(),jQuery("#enable-encoding").hide(),jQuery("#disable-encoding").show()):(jQuery("#settings-error-encoding-disabled").remove(),jQuery("h2:first").after('<div class="error" id="settings-error-encoding-enabled"><p>'+rtmedia_admin_strings.something_went_wrong+"</p></div>"))})}}),jQuery(".bp-media-encoding-table").on("click",".bpm-unsubscribe",function(a){a.preventDefault(),jQuery("#bpm-unsubscribe-dialog").dialog({dialogClass:"wp-dialog",modal:!0,buttons:{Unsubscribe:function(){jQuery(this).dialog("close"),jQuery(".bpm-unsubscribe").after('<img style="margin: 0 0 0 10px" src="'+rtmedia_admin_url+'images/wpspin_light.gif" />');var a={action:"rtmedia_unsubscribe_encoding_service",note:jQuery("#bpm-unsubscribe-note").val(),plan:jQuery(".bpm-unsubscribe").attr("data-plan"),price:jQuery(".bpm-unsubscribe").attr("data-price")};jQuery.getJSON(ajaxurl,a,function(a){void 0===a.error&&a.updated?(jQuery(".bpm-unsubscribe").next().remove(),jQuery(".bpm-unsubscribe").after(a.form),jQuery(".bpm-unsubscribe").remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove(),jQuery("h2:first").after('<div class="updated" id="settings-unsubscribed-successfully"><p>'+a.updated+"</p></div>"),window.location.hash="#settings-unsubscribed-successfully"):(jQuery(".bpm-unsubscribe").next().remove(),jQuery("#settings-unsubscribed-successfully").remove(),jQuery("#settings-unsubscribe-error").remove(),jQuery("h2:first").after('<div class="error" id="settings-unsubscribe-error"><p>'+a.error+"</p></div>"),window.location.hash="#settings-unsubscribe-error")})}}})}),jQuery("#bpmedia-bpalbumimporter").on("change","#bp-album-import-accept",function(){jQuery(".bp-album-import-accept").toggleClass("i-accept"),jQuery(".bp-album-importer-wizard").slideToggle()}),jQuery("#rtprivacyinstall").click(function(a){a.preventDefault(),$progress_parent=jQuery("#rtprivacyinstaller"),$progress_parent.find(".rtprivacytype").each(function(){if($type=jQuery(this).attr("id"),"total"==$type){$values=[],jQuery(this).find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),$data={};for(var a=1;a<=$values.steps[0];a++)$count=20,a==$values.steps[0]&&($count=parseInt($values.laststep[0]),0==$count&&($count=20)),newvals={page:a,action:"rtmedia_privacy_install",count:$count,values:$values},$data[a]=newvals;var c=jQuery.Deferred();c.resolve(),jQuery.each($data,function(a,d){c=c.pipe(function(){return b(d)})})}})}),jQuery("#bpmedia-bpalbumimport-cleanup").click(function(a){a.preventDefault(),jQuery.post(ajaxurl,{action:"rtmedia_rt_album_cleanup"},function(a){window.location=settings_rt_album_import_url})}),jQuery("#bpmedia-bpalbumimporter").on("click","#bpmedia-bpalbumimport",function(a){if(a.preventDefault(),!jQuery("#bp-album-import-accept").prop("checked")){jQuery("html, body").animate({scrollTop:jQuery("#bp-album-import-accept").offset().top},500);var b=jQuery(".bp-album-import-accept"),d=500,e="#FFEBE8",f=3;return void function h(){b.css("background-color","#EE0000"),setTimeout(function(){b.css("background-color",e),--f&&setTimeout(h,d)},d)}()}jQuery(this).prop("disabled",!0),wp_admin_url=ajaxurl.replace("admin-ajax.php",""),jQuery(".bpm-ajax-loader").length||jQuery(this).after(' <img class="bpm-ajax-loader" src="'+wp_admin_url+'images/wpspin_light.gif" /> <strong>'+rtmedia_admin_strings.no_refresh+"</strong>"),$progress_parent=jQuery("#bpmedia-bpalbumimport"),$values=[],jQuery(this).parent().find("input").each(function(){$values[jQuery(this).attr("name")]=[jQuery(this).val()]}),0==$values.steps[0]&&($values.steps[0]=1),$data={};for(var f=1;f<=$values.steps[0];f++)$count=5,f==$values.steps[0]&&($count=parseInt($values.laststep[0]),0==$count&&($count=5)),newvals={page:f,action:"rtmedia_rt_album_import",count:$count,values:$values},$data[f]=newvals;var g=jQuery.Deferred();g.resolve(),jQuery.each($data,function(a,b){g=g.pipe(function(){return c(b)})})}),jQuery("#bp-media-settings-boxes").on("click",".interested",function(){jQuery(".interested-container").removeClass("hidden"),jQuery(".choice-free").attr("required","required")}),jQuery("#bp-media-settings-boxes").on("click",".not-interested",function(){jQuery(".interested-container").addClass("hidden"),jQuery(".choice-free").removeAttr("required")}),jQuery("#video-transcoding-main-container").on("click",".video-transcoding-survey",function(a){a.preventDefault();var b={action:"rtmedia_convert_videos_form",email:jQuery(".email").val(),url:jQuery(".url").val(),choice:jQuery('input[name="choice"]:checked').val(),interested:jQuery('input[name="interested"]:checked').val()};return jQuery.post(ajaxurl,b,function(a){jQuery("#video-transcoding-main-container").html("<p><strong>"+a+"</strong></p>")}),!1}),jQuery("#bpmedia-bpalbumimporter").on("click",".deactivate-bp-album",function(a){a.preventDefault(),$bpalbum=jQuery(this);var b={action:"rtmedia_rt_album_deactivate"};jQuery.get(ajaxurl,b,function(a){a?location.reload():$bpalbum.parent().after("<p>"+rtmedia_admin_strings.something_went_wrong+"</p>")})}),jQuery(".updated").on("click",".bpm-hide-encoding-notice",function(){jQuery(this).after('<img style="margin: 0 0 0 10px" src="'+rtmedia_admin_url+'images/wpspin_light.gif" />');var a={action:"rtmedia_hide_encoding_notice"};jQuery.post(ajaxurl,a,function(a){a&&jQuery(".bpm-hide-encoding-notice").closest(".updated").remove()})}),jQuery("#rtmedia-bp-enable-activity").is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0),jQuery("#rtmedia-bp-enable-activity").on("click",function(a){jQuery(this).is(":checked")?jQuery(".rtmedia-bp-activity-setting").prop("readonly",!1):jQuery(".rtmedia-bp-activity-setting").prop("readonly",!0)});var f="",g="";void 0!==rtmedia_on_label&&(f='data-on-label="'+rtmedia_on_label+'"'),void 0!==rtmedia_off_label&&(g='data-off-label="'+rtmedia_off_label+'"'),jQuery("#rtmedia-submit-request").click(function(){var b=jQuery("#name").val(),c=jQuery("#email").val(),d=jQuery("#website").val(),e=jQuery("#phone").val(),f=jQuery("#subject").val(),g=jQuery("#details").val(),h=jQuery('input[name="request_type"]').val(),i=jQuery('input[name="request_id"]').val(),j=jQuery('input[name="server_address"]').val(),k=jQuery('input[name="ip_address"]').val(),l=jQuery('input[name="server_type"]').val(),m=jQuery('input[name="user_agent"]').val(),n={name:b,email:c,website:d,phone:e,subject:f,details:g,request_id:i,request_type:"premium_support",server_address:j,ip_address:k,server_type:l,user_agent:m};if("bug_report"==h){var o=jQuery("#wp_admin_username").val();if(""==o)return alert("Please enter WP Admin Login."),!1;var p=jQuery("#wp_admin_pwd").val();if(""==p)return alert("Please enter WP Admin password."),!1;var q=jQuery("#ssh_ftp_host").val();if(""==q)return alert("Please enter SSH / FTP host."),!1;var r=jQuery("#ssh_ftp_username").val();if(""==r)return alert("Please enter SSH / FTP login."),!1;var s=jQuery("#ssh_ftp_pwd").val();if(""==s)return alert("Please enter SSH / FTP password."),!1;n={name:b,email:c,website:d,phone:e,subject:f,details:g,request_id:i,request_type:"premium_support",server_address:j,ip_address:k,server_type:l,user_agent:m,wp_admin_username:o,wp_admin_pwd:p,ssh_ftp_host:q,ssh_ftp_username:r,ssh_ftp_pwd:s}}for(formdata in n)if(""==n[formdata]&&"phone"!=formdata)return alert("Please enter "+formdata.replace("_"," ")+" field."),!1;return data={action:"rtmedia_submit_request",form_data:n},jQuery.post(ajaxurl,data,function(b){return b=b.trim(),"false"==b?(alert("Please fill all the fields."),!1):(a("#rtmedia_service_contact_container").empty(),void a("#rtmedia_service_contact_container").append(b))}),!1}),jQuery("#cancel-request").click(function(){return!1}),jQuery(".rtm_enable_masonry_view input[type=checkbox]").is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide(),jQuery(".rtm_enable_masonry_view input[type=checkbox]").on("click",function(a){jQuery(this).is(":checked")?jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").show():jQuery(".rtm_enable_masonry_view").parents(".metabox-holder").find(".rtmedia-info").hide()}),jQuery("#rtm-masonry-change-thumbnail-info").click(function(a){jQuery("html, body").animate({scrollTop:0},"500","swing")})}),jQuery(window).load(function(){jQuery(".rtmedia-addon-thickbox").trigger("click")});
app/assets/admin/js/settings.js ADDED
@@ -0,0 +1,788 @@