Version Description
- Fixed template issue (css).
- Add hooks and filters
- Other minor issues.
Download this release
Release Info
Developer | faishal |
Plugin | rtMedia for WordPress, BuddyPress and bbPress |
Version | 3.1.3 |
Comparing to | |
See all releases |
Code changes from version 3.1.2 to 3.1.3
- app/admin/RTMediaAdmin.php +3 -1
- app/admin/RTMediaFormHandler.php +21 -10
- app/assets/css/main.css +1 -1
- app/assets/css/settings.css +1 -1
- app/assets/js/rtMedia.backbone.js +30 -7
- app/assets/js/rtMedia.js +9 -3
- app/assets/sass/main.scss +20 -10
- app/assets/sass/settings.scss +4 -0
- app/helper/RTMediaModel.php +3 -3
- app/helper/RTMediaSupport.php +117 -7
- app/main/RTMedia.php +73 -126
- app/main/controllers/activity/RTMediaBuddyPressActivity.php +1 -0
- app/main/controllers/media/RTMediaAlbum.php +6 -2
- app/main/controllers/media/RTMediaUserInteraction.php +1 -3
- app/main/controllers/shortcodes/RTMediaGalleryShortcode.php +2 -0
- app/main/controllers/template/RTMediaAJAX.php +19 -4
- app/main/controllers/template/rt-template-functions.php +18 -7
- app/main/routers/RTMediaRouter.php +4 -2
- app/services/RTMediaEncoding.php +11 -0
- index.php +1 -1
- readme.txt +8 -3
- templates/media/album-gallery.php +2 -2
- trunk/CONTRIBUTING.md +19 -0
- trunk/app/admin/RTMediaAdmin.php +1139 -0
- trunk/app/admin/RTMediaFormHandler.php +529 -0
- trunk/app/assets/css/admin.css +660 -0
- trunk/app/assets/css/bootstrap-switch.css +184 -0
- trunk/app/assets/css/font-awesome.min.css +24 -0
- trunk/app/assets/css/grid-foundation.css +217 -0
- trunk/app/assets/css/image-edit.css +701 -0
- trunk/app/assets/css/jquery.plupload.queue.css +177 -0
- trunk/app/assets/css/jquery.powertip.min.css +1 -0
- trunk/app/assets/css/jquery.sliderTabs.min.css +1 -0
- trunk/app/assets/css/main.css +1 -0
- trunk/app/assets/css/settings.css +1 -0
- trunk/app/assets/css/style.css +51 -0
- trunk/app/assets/css/widget.css +39 -0
- trunk/app/assets/font/FontAwesome.otf +0 -0
- trunk/app/assets/font/fontawesome-webfont.eot +0 -0
- trunk/app/assets/font/fontawesome-webfont.svg +339 -0
- trunk/app/assets/font/fontawesome-webfont.ttf +0 -0
- trunk/app/assets/font/fontawesome-webfont.woff +0 -0
- trunk/app/assets/img/Popup-title-bg.png +0 -0
- trunk/app/assets/img/admin-menu.png +0 -0
- trunk/app/assets/img/audio_thumb.png +0 -0
- trunk/app/assets/img/backgrounds.gif +0 -0
- trunk/app/assets/img/boxspinner.gif +0 -0
- trunk/app/assets/img/bp-media-modal.png +0 -0
- trunk/app/assets/img/bp_media_social.png +0 -0
- trunk/app/assets/img/bpm-contest-banner.jpg +0 -0
- trunk/app/assets/img/bpm-icon-16.png +0 -0
- trunk/app/assets/img/bpm-icon-32.png +0 -0
- trunk/app/assets/img/buttons-disabled.png +0 -0
- trunk/app/assets/img/buttons.png +0 -0
- trunk/app/assets/img/close.png +0 -0
- trunk/app/assets/img/coming-soon.png +0 -0
- trunk/app/assets/img/delete.gif +0 -0
- trunk/app/assets/img/donate.gif +0 -0
- trunk/app/assets/img/donate.png +0 -0
- trunk/app/assets/img/done.gif +0 -0
- trunk/app/assets/img/drag-drop-bg.png +0 -0
- trunk/app/assets/img/error.gif +0 -0
- trunk/app/assets/img/image_thumb.png +0 -0
- trunk/app/assets/img/indicator.png +0 -0
- trunk/app/assets/img/indicatorActive.png +0 -0
- trunk/app/assets/img/leftArrow.png +0 -0
- trunk/app/assets/img/leftPanelArrow.png +0 -0
- trunk/app/assets/img/loader.gif +0 -0
- trunk/app/assets/img/logo_medibp_32.png +0 -0
- trunk/app/assets/img/mask-square.png +0 -0
- trunk/app/assets/img/mask.png +0 -0
- trunk/app/assets/img/paypal-donate-button.png +0 -0
- trunk/app/assets/img/private.png +0 -0
- trunk/app/assets/img/rightArrow.png +0 -0
- trunk/app/assets/img/rightPanelArrow.png +0 -0
- trunk/app/assets/img/rtCamp-bullet.png +0 -0
- trunk/app/assets/img/rtcamp-logo.png +0 -0
- trunk/app/assets/img/tab-icon.png +0 -0
- trunk/app/assets/img/throbber.gif +0 -0
- trunk/app/assets/img/thumb_default.png +0 -0
- trunk/app/assets/img/transp50.png +0 -0
- trunk/app/assets/img/video_thumb.png +0 -0
- trunk/app/assets/img/wpmini-grey.png +0 -0
- trunk/app/assets/js/admin.js +619 -0
- trunk/app/assets/js/bootstrap-switch.js +255 -0
- trunk/app/assets/js/bp-media-activity-uploader.js +222 -0
- trunk/app/assets/js/bp-media-uploader.js +119 -0
- trunk/app/assets/js/jquery.observehashchange.pack.js +20 -0
- trunk/app/assets/js/jquery.powertip.min.js +8 -0
- trunk/app/assets/js/jquery.sliderTabs.min.js +1 -0
- trunk/app/assets/js/main.js +827 -0
- trunk/app/assets/js/rtMedia.backbone.js +642 -0
- trunk/app/assets/js/rtMedia.js +212 -0
- trunk/app/assets/sass/config.rb +25 -0
- trunk/app/assets/sass/main.scss +433 -0
- trunk/app/assets/sass/settings.scss +80 -0
- trunk/app/helper/BPMediaBranding.php +23 -0
- trunk/app/helper/BPMediaLog.php +86 -0
- trunk/app/helper/RTMediaAddon.php +210 -0
- trunk/app/helper/RTMediaAdminWidget.php +36 -0
- trunk/app/helper/RTMediaCommentModel.php +44 -0
- trunk/app/helper/RTMediaFeed.php +62 -0
- trunk/app/helper/RTMediaInteractionModel.php +47 -0
- trunk/app/helper/RTMediaModel.php +249 -0
- trunk/app/helper/RTMediaSettings.php +255 -0
- trunk/app/helper/RTMediaSupport.php +421 -0
- trunk/app/helper/RTMediaUploadException.php +66 -0
- trunk/app/helper/db/RTDBModel.php +168 -0
- trunk/app/helper/db/RTDBUpdate.php +91 -0
- trunk/app/helper/db/rt_plugin_info.php +57 -0
- trunk/app/helper/rtDimensions.php +120 -0
- trunk/app/helper/rtForm.php +713 -0
- trunk/app/helper/rtFormInvalidArgumentsException.php +29 -0
- trunk/app/helper/rtPluginInfo.php +124 -0
- trunk/app/helper/rtPluginUpdate.php +130 -0
- trunk/app/helper/rtPluginUpdateChecker.php +555 -0
app/admin/RTMediaAdmin.php
CHANGED
@@ -79,7 +79,9 @@ if ( ! class_exists ( 'RTMediaAdmin' ) ) {
|
|
79 |
Â
}
|
80 |
Â
function rtmedia_advertisement(){ ?>
|
81 |
Â
<div class='rtmedia-admin-ad'>
|
82 |
-
<
|
Â
|
|
Â
|
|
83 |
Â
</div>
|
84 |
Â
<?php }
|
85 |
Â
// Create the function to output the contents of our Dashboard Widget
|
79 |
Â
}
|
80 |
Â
function rtmedia_advertisement(){ ?>
|
81 |
Â
<div class='rtmedia-admin-ad'>
|
82 |
+
<a href='http://rtcamp.com/store/rtmedia-pro/' target='_blank' title='rtMedia Pro'>
|
83 |
+
<img src='http://cdn.rtcamp.com/wp-content/uploads/2013/09/rtMedia-pro-ad-300x300px-2-RS.png?' alt='rtMedia Pro is released' />
|
84 |
+
</a>
|
85 |
Â
</div>
|
86 |
Â
<?php }
|
87 |
Â
// Create the function to output the contents of our Dashboard Widget
|
app/admin/RTMediaFormHandler.php
CHANGED
@@ -158,7 +158,8 @@ class RTMediaFormHandler {
|
|
158 |
Â
'callback' => array('RTMediaFormHandler', 'number'),
|
159 |
Â
'args' => array(
|
160 |
Â
'key' => 'general_perPageMedia',
|
161 |
-
'value' => $options['general_perPageMedia']
|
Â
|
|
162 |
Â
)
|
163 |
Â
),
|
164 |
Â
// 'general_enableMediaEndPoint' => array(
|
@@ -175,7 +176,8 @@ class RTMediaFormHandler {
|
|
175 |
Â
'callback' => array('RTMediaFormHandler', 'number'),
|
176 |
Â
'args' => array(
|
177 |
Â
'key' => 'general_videothumbs',
|
178 |
-
'value' => $options['general_videothumbs']
|
Â
|
|
179 |
Â
)
|
180 |
Â
),
|
181 |
Â
'general_showAdminMenu' => array(
|
@@ -242,11 +244,14 @@ class RTMediaFormHandler {
|
|
242 |
Â
global $rtmedia;
|
243 |
Â
|
244 |
Â
$render = array();
|
245 |
-
|
Â
|
|
Â
|
|
246 |
Â
foreach ($options as $key => $value) {
|
247 |
Â
$data = explode('_', $key);
|
248 |
-
if(!isset($render[$data[1]]))
|
249 |
-
|
Â
|
|
250 |
Â
}
|
251 |
Â
foreach ($options as $key => $value) {
|
252 |
Â
$data = explode('_', $key);
|
@@ -265,19 +270,24 @@ class RTMediaFormHandler {
|
|
265 |
Â
?>
|
266 |
Â
<div class="rt-table large-12">
|
267 |
Â
<div class="row rt-header">
|
Â
|
|
268 |
Â
<h4 class="columns large-3"><?php echo __("Media Type","rtmedia") ?></h4>
|
269 |
Â
<h4 class="columns large-3 rtm-show-tooltip" title="<?php echo __("Allows you to upload a particular media type on your post.","rtmedia"); ?>"><abbr><?php echo __("Allow Upload","rtmedia"); ?></abbr></h4>
|
270 |
Â
<h4 class="columns large-3 rtm-show-tooltip" title="<?php echo __("Put a specific media as a featured content on the post.","rtmedia"); ?>"><abbr><?php echo __("Set Featured","rtmedia"); ?></abbr></h4>
|
271 |
Â
<h4 class="columns large-3 rtm-show-tooltip" title="<?php echo __("File extensions that can be uploaded on the website.","rtmedia"); ?>"><abbr><?php echo __("File Extensions","rtmedia"); ?></abbr></h4>
|
Â
|
|
272 |
Â
</div>
|
Â
|
|
273 |
Â
<?php
|
274 |
Â
$even = 0;
|
275 |
Â
foreach ($render_data as $key=>$section) {
|
276 |
-
if( ++$even%2 )
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
Â
|
|
Â
|
|
281 |
Â
echo '<div class="columns large-3">' . $section['name'] . '</div>';
|
282 |
Â
$args = array('key' => 'allowedTypes_'.$key.'_enabled', 'value' => $section['enabled']);
|
283 |
Â
echo '<div class="columns large-3">';
|
@@ -288,6 +298,7 @@ class RTMediaFormHandler {
|
|
288 |
Â
self::checkbox($args);
|
289 |
Â
echo '</div>';
|
290 |
Â
echo '<div class="columns large-3">' . implode(', ', $section['extn']) . '</div>';
|
Â
|
|
291 |
Â
echo '</div>';
|
292 |
Â
}
|
293 |
Â
echo '</div>';
|
158 |
Â
'callback' => array('RTMediaFormHandler', 'number'),
|
159 |
Â
'args' => array(
|
160 |
Â
'key' => 'general_perPageMedia',
|
161 |
+
'value' => $options['general_perPageMedia'],
|
162 |
+
'class' => array('rtmedia-setting-text-box')
|
163 |
Â
)
|
164 |
Â
),
|
165 |
Â
// 'general_enableMediaEndPoint' => array(
|
176 |
Â
'callback' => array('RTMediaFormHandler', 'number'),
|
177 |
Â
'args' => array(
|
178 |
Â
'key' => 'general_videothumbs',
|
179 |
+
'value' => $options['general_videothumbs'],
|
180 |
+
'class' => array('rtmedia-setting-text-box')
|
181 |
Â
)
|
182 |
Â
),
|
183 |
Â
'general_showAdminMenu' => array(
|
244 |
Â
global $rtmedia;
|
245 |
Â
|
246 |
Â
$render = array();
|
247 |
+
$allowed_media_type = $rtmedia->allowed_types;
|
248 |
+
$allowed_media_type = apply_filters("allowed_media_type_settings", $allowed_media_type);
|
249 |
+
// var_dump($allowed_media_type);
|
250 |
Â
foreach ($options as $key => $value) {
|
251 |
Â
$data = explode('_', $key);
|
252 |
+
if(!isset($render[$data[1]])) {
|
253 |
+
$render[$data[1]] = self::get_type_details($allowed_media_type, $data[1]);
|
254 |
+
}
|
255 |
Â
}
|
256 |
Â
foreach ($options as $key => $value) {
|
257 |
Â
$data = explode('_', $key);
|
270 |
Â
?>
|
271 |
Â
<div class="rt-table large-12">
|
272 |
Â
<div class="row rt-header">
|
273 |
+
<?php do_action("rtmedia_type_settings_before_heading"); ?>
|
274 |
Â
<h4 class="columns large-3"><?php echo __("Media Type","rtmedia") ?></h4>
|
275 |
Â
<h4 class="columns large-3 rtm-show-tooltip" title="<?php echo __("Allows you to upload a particular media type on your post.","rtmedia"); ?>"><abbr><?php echo __("Allow Upload","rtmedia"); ?></abbr></h4>
|
276 |
Â
<h4 class="columns large-3 rtm-show-tooltip" title="<?php echo __("Put a specific media as a featured content on the post.","rtmedia"); ?>"><abbr><?php echo __("Set Featured","rtmedia"); ?></abbr></h4>
|
277 |
Â
<h4 class="columns large-3 rtm-show-tooltip" title="<?php echo __("File extensions that can be uploaded on the website.","rtmedia"); ?>"><abbr><?php echo __("File Extensions","rtmedia"); ?></abbr></h4>
|
278 |
+
<?php do_action("rtmedia_type_settings_after_heading"); ?>
|
279 |
Â
</div>
|
280 |
+
|
281 |
Â
<?php
|
282 |
Â
$even = 0;
|
283 |
Â
foreach ($render_data as $key=>$section) {
|
284 |
+
if( ++$even%2 ) {
|
285 |
+
echo '<div class="row rt-odd">';
|
286 |
+
}
|
287 |
+
else {
|
288 |
+
echo '<div class="row rt-even">';
|
289 |
+
}
|
290 |
+
do_action("rtmedia_type_settings_before_body");
|
291 |
Â
echo '<div class="columns large-3">' . $section['name'] . '</div>';
|
292 |
Â
$args = array('key' => 'allowedTypes_'.$key.'_enabled', 'value' => $section['enabled']);
|
293 |
Â
echo '<div class="columns large-3">';
|
298 |
Â
self::checkbox($args);
|
299 |
Â
echo '</div>';
|
300 |
Â
echo '<div class="columns large-3">' . implode(', ', $section['extn']) . '</div>';
|
301 |
+
do_action("rtmedia_type_settings_after_body",$key, $section);
|
302 |
Â
echo '</div>';
|
303 |
Â
}
|
304 |
Â
echo '</div>';
|
app/assets/css/main.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.rtmedia-container,.rtmedia-activity-container,#buddypress div.rtmedia-activity-container{padding:5px;margin:0;clear:left}.rtmedia-container html,.rtmedia-activity-container html,#buddypress div.rtmedia-activity-container html,.rtmedia-container body,.rtmedia-activity-container body,#buddypress div.rtmedia-activity-container body,.rtmedia-container div,.rtmedia-activity-container div,#buddypress div.rtmedia-activity-container div,.rtmedia-container span,.rtmedia-activity-container span,#buddypress div.rtmedia-activity-container span,.rtmedia-container applet,.rtmedia-activity-container applet,#buddypress div.rtmedia-activity-container applet,.rtmedia-container object,.rtmedia-activity-container object,#buddypress div.rtmedia-activity-container object,.rtmedia-container iframe,.rtmedia-activity-container iframe,#buddypress div.rtmedia-activity-container iframe,.rtmedia-container h1,.rtmedia-activity-container h1,#buddypress div.rtmedia-activity-container h1,.rtmedia-container h2,.rtmedia-activity-container h2,#buddypress div.rtmedia-activity-container h2,.rtmedia-container h3,.rtmedia-activity-container h3,#buddypress div.rtmedia-activity-container h3,.rtmedia-container h4,.rtmedia-activity-container h4,#buddypress div.rtmedia-activity-container h4,.rtmedia-container h5,.rtmedia-activity-container h5,#buddypress div.rtmedia-activity-container h5,.rtmedia-container h6,.rtmedia-activity-container h6,#buddypress div.rtmedia-activity-container h6,.rtmedia-container p,.rtmedia-activity-container p,#buddypress div.rtmedia-activity-container p,.rtmedia-container blockquote,.rtmedia-activity-container blockquote,#buddypress div.rtmedia-activity-container blockquote,.rtmedia-container pre,.rtmedia-activity-container pre,#buddypress div.rtmedia-activity-container pre,.rtmedia-container a,.rtmedia-activity-container a,#buddypress div.rtmedia-activity-container a,.rtmedia-container abbr,.rtmedia-activity-container abbr,#buddypress div.rtmedia-activity-container abbr,.rtmedia-container acronym,.rtmedia-activity-container acronym,#buddypress div.rtmedia-activity-container acronym,.rtmedia-container address,.rtmedia-activity-container address,#buddypress div.rtmedia-activity-container address,.rtmedia-container big,.rtmedia-activity-container big,#buddypress div.rtmedia-activity-container big,.rtmedia-container cite,.rtmedia-activity-container cite,#buddypress div.rtmedia-activity-container cite,.rtmedia-container code,.rtmedia-activity-container code,#buddypress div.rtmedia-activity-container code,.rtmedia-container del,.rtmedia-activity-container del,#buddypress div.rtmedia-activity-container del,.rtmedia-container dfn,.rtmedia-activity-container dfn,#buddypress div.rtmedia-activity-container dfn,.rtmedia-container em,.rtmedia-activity-container em,#buddypress div.rtmedia-activity-container em,.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img,.rtmedia-container ins,.rtmedia-activity-container ins,#buddypress div.rtmedia-activity-container ins,.rtmedia-container kbd,.rtmedia-activity-container kbd,#buddypress div.rtmedia-activity-container kbd,.rtmedia-container q,.rtmedia-activity-container q,#buddypress div.rtmedia-activity-container q,.rtmedia-container s,.rtmedia-activity-container s,#buddypress div.rtmedia-activity-container s,.rtmedia-container samp,.rtmedia-activity-container samp,#buddypress div.rtmedia-activity-container samp,.rtmedia-container small,.rtmedia-activity-container small,#buddypress div.rtmedia-activity-container small,.rtmedia-container strike,.rtmedia-activity-container strike,#buddypress div.rtmedia-activity-container strike,.rtmedia-container strong,.rtmedia-activity-container strong,#buddypress div.rtmedia-activity-container strong,.rtmedia-container sub,.rtmedia-activity-container sub,#buddypress div.rtmedia-activity-container sub,.rtmedia-container sup,.rtmedia-activity-container sup,#buddypress div.rtmedia-activity-container sup,.rtmedia-container tt,.rtmedia-activity-container tt,#buddypress div.rtmedia-activity-container tt,.rtmedia-container var,.rtmedia-activity-container var,#buddypress div.rtmedia-activity-container var,.rtmedia-container b,.rtmedia-activity-container b,#buddypress div.rtmedia-activity-container b,.rtmedia-container u,.rtmedia-activity-container u,#buddypress div.rtmedia-activity-container u,.rtmedia-container i,.rtmedia-activity-container i,#buddypress div.rtmedia-activity-container i,.rtmedia-container center,.rtmedia-activity-container center,#buddypress div.rtmedia-activity-container center,.rtmedia-container dl,.rtmedia-activity-container dl,#buddypress div.rtmedia-activity-container dl,.rtmedia-container dt,.rtmedia-activity-container dt,#buddypress div.rtmedia-activity-container dt,.rtmedia-container dd,.rtmedia-activity-container dd,#buddypress div.rtmedia-activity-container dd,.rtmedia-container ol,.rtmedia-activity-container ol,#buddypress div.rtmedia-activity-container ol,.rtmedia-container ul,.rtmedia-activity-container ul,#buddypress div.rtmedia-activity-container ul,.rtmedia-container li,.rtmedia-activity-container li,#buddypress div.rtmedia-activity-container li,.rtmedia-container fieldset,.rtmedia-activity-container fieldset,#buddypress div.rtmedia-activity-container fieldset,.rtmedia-container form,.rtmedia-activity-container form,#buddypress div.rtmedia-activity-container form,.rtmedia-container label,.rtmedia-activity-container label,#buddypress div.rtmedia-activity-container label,.rtmedia-container legend,.rtmedia-activity-container legend,#buddypress div.rtmedia-activity-container legend,.rtmedia-container table,.rtmedia-activity-container table,#buddypress div.rtmedia-activity-container table,.rtmedia-container caption,.rtmedia-activity-container caption,#buddypress div.rtmedia-activity-container caption,.rtmedia-container tbody,.rtmedia-activity-container tbody,#buddypress div.rtmedia-activity-container tbody,.rtmedia-container tfoot,.rtmedia-activity-container tfoot,#buddypress div.rtmedia-activity-container tfoot,.rtmedia-container thead,.rtmedia-activity-container thead,#buddypress div.rtmedia-activity-container thead,.rtmedia-container tr,.rtmedia-activity-container tr,#buddypress div.rtmedia-activity-container tr,.rtmedia-container th,.rtmedia-activity-container th,#buddypress div.rtmedia-activity-container th,.rtmedia-container td,.rtmedia-activity-container td,#buddypress div.rtmedia-activity-container td,.rtmedia-container article,.rtmedia-activity-container article,#buddypress div.rtmedia-activity-container article,.rtmedia-container aside,.rtmedia-activity-container aside,#buddypress div.rtmedia-activity-container aside,.rtmedia-container canvas,.rtmedia-activity-container canvas,#buddypress div.rtmedia-activity-container canvas,.rtmedia-container details,.rtmedia-activity-container details,#buddypress div.rtmedia-activity-container details,.rtmedia-container embed,.rtmedia-activity-container embed,#buddypress div.rtmedia-activity-container embed,.rtmedia-container figure,.rtmedia-activity-container figure,#buddypress div.rtmedia-activity-container figure,.rtmedia-container figcaption,.rtmedia-activity-container figcaption,#buddypress div.rtmedia-activity-container figcaption,.rtmedia-container footer,.rtmedia-activity-container footer,#buddypress div.rtmedia-activity-container footer,.rtmedia-container header,.rtmedia-activity-container header,#buddypress div.rtmedia-activity-container header,.rtmedia-container hgroup,.rtmedia-activity-container hgroup,#buddypress div.rtmedia-activity-container hgroup,.rtmedia-container menu,.rtmedia-activity-container menu,#buddypress div.rtmedia-activity-container menu,.rtmedia-container nav,.rtmedia-activity-container nav,#buddypress div.rtmedia-activity-container nav,.rtmedia-container output,.rtmedia-activity-container output,#buddypress div.rtmedia-activity-container output,.rtmedia-container ruby,.rtmedia-activity-container ruby,#buddypress div.rtmedia-activity-container ruby,.rtmedia-container section,.rtmedia-activity-container section,#buddypress div.rtmedia-activity-container section,.rtmedia-container summary,.rtmedia-activity-container summary,#buddypress div.rtmedia-activity-container summary,.rtmedia-container time,.rtmedia-activity-container time,#buddypress div.rtmedia-activity-container time,.rtmedia-container mark,.rtmedia-activity-container mark,#buddypress div.rtmedia-activity-container mark,.rtmedia-container audio,.rtmedia-activity-container audio,#buddypress div.rtmedia-activity-container audio,.rtmedia-container video,.rtmedia-activity-container video,#buddypress div.rtmedia-activity-container video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}.rtmedia-container html,.rtmedia-activity-container html,#buddypress div.rtmedia-activity-container html{line-height:1}.rtmedia-container ol,.rtmedia-activity-container ol,#buddypress div.rtmedia-activity-container ol,.rtmedia-container ul,.rtmedia-activity-container ul,#buddypress div.rtmedia-activity-container ul{list-style:none}.rtmedia-container table,.rtmedia-activity-container table,#buddypress div.rtmedia-activity-container table{border-collapse:collapse;border-spacing:0}.rtmedia-container caption,.rtmedia-activity-container caption,#buddypress div.rtmedia-activity-container caption,.rtmedia-container th,.rtmedia-activity-container th,#buddypress div.rtmedia-activity-container th,.rtmedia-container td,.rtmedia-activity-container td,#buddypress div.rtmedia-activity-container td{text-align:left;font-weight:normal;vertical-align:middle}.rtmedia-container q,.rtmedia-activity-container q,#buddypress div.rtmedia-activity-container q,.rtmedia-container blockquote,.rtmedia-activity-container blockquote,#buddypress div.rtmedia-activity-container blockquote{quotes:none}.rtmedia-container q:before,.rtmedia-activity-container q:before,#buddypress div.rtmedia-activity-container q:before,.rtmedia-container q:after,.rtmedia-activity-container q:after,#buddypress div.rtmedia-activity-container q:after,.rtmedia-container blockquote:before,.rtmedia-activity-container blockquote:before,#buddypress div.rtmedia-activity-container blockquote:before,.rtmedia-container blockquote:after,.rtmedia-activity-container blockquote:after,#buddypress div.rtmedia-activity-container blockquote:after{content:"";content:none}.rtmedia-container a img,.rtmedia-activity-container a img,#buddypress div.rtmedia-activity-container a img{border:none}.rtmedia-container article,.rtmedia-activity-container article,#buddypress div.rtmedia-activity-container article,.rtmedia-container aside,.rtmedia-activity-container aside,#buddypress div.rtmedia-activity-container aside,.rtmedia-container details,.rtmedia-activity-container details,#buddypress div.rtmedia-activity-container details,.rtmedia-container figcaption,.rtmedia-activity-container figcaption,#buddypress div.rtmedia-activity-container figcaption,.rtmedia-container figure,.rtmedia-activity-container figure,#buddypress div.rtmedia-activity-container figure,.rtmedia-container footer,.rtmedia-activity-container footer,#buddypress div.rtmedia-activity-container footer,.rtmedia-container header,.rtmedia-activity-container header,#buddypress div.rtmedia-activity-container header,.rtmedia-container hgroup,.rtmedia-activity-container hgroup,#buddypress div.rtmedia-activity-container hgroup,.rtmedia-container menu,.rtmedia-activity-container menu,#buddypress div.rtmedia-activity-container menu,.rtmedia-container nav,.rtmedia-activity-container nav,#buddypress div.rtmedia-activity-container nav,.rtmedia-container section,.rtmedia-activity-container section,#buddypress div.rtmedia-activity-container section,.rtmedia-container summary,.rtmedia-activity-container summary,#buddypress div.rtmedia-activity-container summary{display:block}.rtmedia-container *,.rtmedia-activity-container *,#buddypress div.rtmedia-activity-container *,.rtmedia-container *:before,.rtmedia-activity-container *:before,#buddypress div.rtmedia-activity-container *:before,.rtmedia-container *:after,.rtmedia-activity-container *:after,#buddypress div.rtmedia-activity-container *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.rtmedia-container html,.rtmedia-activity-container html,#buddypress div.rtmedia-activity-container html,.rtmedia-container body,.rtmedia-activity-container body,#buddypress div.rtmedia-activity-container body{font-size:100%}.rtmedia-container body,.rtmedia-activity-container body,#buddypress div.rtmedia-activity-container body{background:#fff;color:#222;padding:0;margin:0;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;font-weight:normal;font-style:normal;line-height:1;position:relative;cursor:default}.rtmedia-container a:hover,.rtmedia-activity-container a:hover,#buddypress div.rtmedia-activity-container a:hover{cursor:pointer}.rtmedia-container a:focus,.rtmedia-activity-container a:focus,#buddypress div.rtmedia-activity-container a:focus{outline:none}.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img,.rtmedia-container object,.rtmedia-activity-container object,#buddypress div.rtmedia-activity-container object,.rtmedia-container embed,.rtmedia-activity-container embed,#buddypress div.rtmedia-activity-container embed{max-width:100%;height:auto}.rtmedia-container object,.rtmedia-activity-container object,#buddypress div.rtmedia-activity-container object,.rtmedia-container embed,.rtmedia-activity-container embed,#buddypress div.rtmedia-activity-container embed{height:100%}.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img{-ms-interpolation-mode:bicubic}.rtmedia-container #map_canvas img,.rtmedia-activity-container #map_canvas img,.rtmedia-container #map_canvas embed,.rtmedia-activity-container #map_canvas embed,.rtmedia-container #map_canvas object,.rtmedia-activity-container #map_canvas object,.rtmedia-container .map_canvas img,.rtmedia-activity-container .map_canvas img,#buddypress div.rtmedia-activity-container .map_canvas img,.rtmedia-container .map_canvas embed,.rtmedia-activity-container .map_canvas embed,#buddypress div.rtmedia-activity-container .map_canvas embed,.rtmedia-container .map_canvas object,.rtmedia-activity-container .map_canvas object,#buddypress div.rtmedia-activity-container .map_canvas object{max-width:none !important}.rtmedia-container .left,.rtmedia-activity-container .left,#buddypress div.rtmedia-activity-container .left{float:left !important}.rtmedia-container .right,.rtmedia-activity-container .right,#buddypress div.rtmedia-activity-container .right{float:right !important}.rtmedia-container .text-left,.rtmedia-activity-container .text-left,#buddypress div.rtmedia-activity-container .text-left{text-align:left !important}.rtmedia-container .text-right,.rtmedia-activity-container .text-right,#buddypress div.rtmedia-activity-container .text-right{text-align:right !important}.rtmedia-container .text-center,.rtmedia-activity-container .text-center,#buddypress div.rtmedia-activity-container .text-center{text-align:center !important}.rtmedia-container .text-justify,.rtmedia-activity-container .text-justify,#buddypress div.rtmedia-activity-container .text-justify{text-align:justify !important}.rtmedia-container .hide,.rtmedia-activity-container .hide,#buddypress div.rtmedia-activity-container .hide{display:none}.rtmedia-container .antialiased,.rtmedia-activity-container .antialiased,#buddypress div.rtmedia-activity-container .antialiased{-webkit-font-smoothing:antialiased}.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img{display:inline-block;vertical-align:middle}.rtmedia-container textarea,.rtmedia-activity-container textarea,#buddypress div.rtmedia-activity-container textarea{height:auto;min-height:50px}.rtmedia-container select,.rtmedia-activity-container select,#buddypress div.rtmedia-activity-container select{width:100%}.rtmedia-container .row,.rtmedia-activity-container .row,#buddypress div.rtmedia-activity-container .row{width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:62.5em;*zoom:1}.rtmedia-container .row:before,.rtmedia-activity-container .row:before,#buddypress div.rtmedia-activity-container .row:before,.rtmedia-container .row:after,.rtmedia-activity-container .row:after,#buddypress div.rtmedia-activity-container .row:after{content:" ";display:table}.rtmedia-container .row:after,.rtmedia-activity-container .row:after,#buddypress div.rtmedia-activity-container .row:after{clear:both}.rtmedia-container .row.collapse .column,.rtmedia-activity-container .row.collapse .column,#buddypress div.rtmedia-activity-container .row.collapse .column,.rtmedia-container .row.collapse .columns,.rtmedia-activity-container .row.collapse .columns,#buddypress div.rtmedia-activity-container .row.collapse .columns{position:relative;padding-left:0;padding-right:0;float:left}.rtmedia-container .row .row,.rtmedia-activity-container .row .row,#buddypress div.rtmedia-activity-container .row .row{width:auto;margin-left:-0.9375em;margin-right:-0.9375em;margin-top:0;margin-bottom:0;max-width:none;*zoom:1}.rtmedia-container .row .row:before,.rtmedia-activity-container .row .row:before,#buddypress div.rtmedia-activity-container .row .row:before,.rtmedia-container .row .row:after,.rtmedia-activity-container .row .row:after,#buddypress div.rtmedia-activity-container .row .row:after{content:" ";display:table}.rtmedia-container .row .row:after,.rtmedia-activity-container .row .row:after,#buddypress div.rtmedia-activity-container .row .row:after{clear:both}.rtmedia-container .row .row.collapse,.rtmedia-activity-container .row .row.collapse,#buddypress div.rtmedia-activity-container .row .row.collapse{width:auto;margin:0;max-width:none;*zoom:1}.rtmedia-container .row .row.collapse:before,.rtmedia-activity-container .row .row.collapse:before,#buddypress div.rtmedia-activity-container .row .row.collapse:before,.rtmedia-container .row .row.collapse:after,.rtmedia-activity-container .row .row.collapse:after,#buddypress div.rtmedia-activity-container .row .row.collapse:after{content:" ";display:table}.rtmedia-container .row .row.collapse:after,.rtmedia-activity-container .row .row.collapse:after,#buddypress div.rtmedia-activity-container .row .row.collapse:after{clear:both}.rtmedia-container .column,.rtmedia-activity-container .column,#buddypress div.rtmedia-activity-container .column,.rtmedia-container .columns,.rtmedia-activity-container .columns,#buddypress div.rtmedia-activity-container .columns{position:relative;padding-left:0.9375em;padding-right:0.9375em;width:100%;float:left}@media only screen{.rtmedia-container .column,.rtmedia-activity-container .column,#buddypress div.rtmedia-activity-container .column,.rtmedia-container .columns,.rtmedia-activity-container .columns,#buddypress div.rtmedia-activity-container .columns{position:relative;padding-left:0.9375em;padding-right:0.9375em;float:left}.rtmedia-container .small-1,.rtmedia-activity-container .small-1,#buddypress div.rtmedia-activity-container .small-1{position:relative;width:8.33333%}.rtmedia-container .small-2,.rtmedia-activity-container .small-2,#buddypress div.rtmedia-activity-container .small-2{position:relative;width:16.66667%}.rtmedia-container .small-3,.rtmedia-activity-container .small-3,#buddypress div.rtmedia-activity-container .small-3{position:relative;width:25%}.rtmedia-container .small-4,.rtmedia-activity-container .small-4,#buddypress div.rtmedia-activity-container .small-4{position:relative;width:33.33333%}.rtmedia-container .small-5,.rtmedia-activity-container .small-5,#buddypress div.rtmedia-activity-container .small-5{position:relative;width:41.66667%}.rtmedia-container .small-6,.rtmedia-activity-container .small-6,#buddypress div.rtmedia-activity-container .small-6{position:relative;width:50%}.rtmedia-container .small-7,.rtmedia-activity-container .small-7,#buddypress div.rtmedia-activity-container .small-7{position:relative;width:58.33333%}.rtmedia-container .small-8,.rtmedia-activity-container .small-8,#buddypress div.rtmedia-activity-container .small-8{position:relative;width:66.66667%}.rtmedia-container .small-9,.rtmedia-activity-container .small-9,#buddypress div.rtmedia-activity-container .small-9{position:relative;width:75%}.rtmedia-container .small-10,.rtmedia-activity-container .small-10,#buddypress div.rtmedia-activity-container .small-10{position:relative;width:83.33333%}.rtmedia-container .small-11,.rtmedia-activity-container .small-11,#buddypress div.rtmedia-activity-container .small-11{position:relative;width:91.66667%}.rtmedia-container .small-12,.rtmedia-activity-container .small-12,#buddypress div.rtmedia-activity-container .small-12{position:relative;width:100%}.rtmedia-container .small-offset-0,.rtmedia-activity-container .small-offset-0,#buddypress div.rtmedia-activity-container .small-offset-0{position:relative;margin-left:0%}.rtmedia-container .small-offset-1,.rtmedia-activity-container .small-offset-1,#buddypress div.rtmedia-activity-container .small-offset-1{position:relative;margin-left:8.33333%}.rtmedia-container .small-offset-2,.rtmedia-activity-container .small-offset-2,#buddypress div.rtmedia-activity-container .small-offset-2{position:relative;margin-left:16.66667%}.rtmedia-container .small-offset-3,.rtmedia-activity-container .small-offset-3,#buddypress div.rtmedia-activity-container .small-offset-3{position:relative;margin-left:25%}.rtmedia-container .small-offset-4,.rtmedia-activity-container .small-offset-4,#buddypress div.rtmedia-activity-container .small-offset-4{position:relative;margin-left:33.33333%}.rtmedia-container .small-offset-5,.rtmedia-activity-container .small-offset-5,#buddypress div.rtmedia-activity-container .small-offset-5{position:relative;margin-left:41.66667%}.rtmedia-container .small-offset-6,.rtmedia-activity-container .small-offset-6,#buddypress div.rtmedia-activity-container .small-offset-6{position:relative;margin-left:50%}.rtmedia-container .small-offset-7,.rtmedia-activity-container .small-offset-7,#buddypress div.rtmedia-activity-container .small-offset-7{position:relative;margin-left:58.33333%}.rtmedia-container .small-offset-8,.rtmedia-activity-container .small-offset-8,#buddypress div.rtmedia-activity-container .small-offset-8{position:relative;margin-left:66.66667%}.rtmedia-container .small-offset-9,.rtmedia-activity-container .small-offset-9,#buddypress div.rtmedia-activity-container .small-offset-9{position:relative;margin-left:75%}.rtmedia-container .small-offset-10,.rtmedia-activity-container .small-offset-10,#buddypress div.rtmedia-activity-container .small-offset-10{position:relative;margin-left:83.33333%}.rtmedia-container [class*="column"]+[class*="column"]:last-child,.rtmedia-activity-container [class*="column"]+[class*="column"]:last-child,#buddypress div.rtmedia-activity-container [class*="column"]+[class*="column"]:last-child{float:right}.rtmedia-container [class*="column"]+[class*="column"].end,.rtmedia-activity-container [class*="column"]+[class*="column"].end,#buddypress div.rtmedia-activity-container [class*="column"]+[class*="column"].end{float:left}.rtmedia-container .column.small-centered,.rtmedia-activity-container .column.small-centered,#buddypress div.rtmedia-activity-container .column.small-centered,.rtmedia-container .columns.small-centered,.rtmedia-activity-container .columns.small-centered,#buddypress div.rtmedia-activity-container .columns.small-centered{position:relative;margin-left:auto;margin-right:auto;float:none !important}}@media only screen and (min-width: 768px){.rtmedia-container .large-1,.rtmedia-activity-container .large-1,#buddypress div.rtmedia-activity-container .large-1{position:relative;width:8.33333%}.rtmedia-container .large-2,.rtmedia-activity-container .large-2,#buddypress div.rtmedia-activity-container .large-2{position:relative;width:16.66667%}.rtmedia-container .large-3,.rtmedia-activity-container .large-3,#buddypress div.rtmedia-activity-container .large-3{position:relative;width:25%}.rtmedia-container .large-4,.rtmedia-activity-container .large-4,#buddypress div.rtmedia-activity-container .large-4{position:relative;width:33.33333%}.rtmedia-container .large-5,.rtmedia-activity-container .large-5,#buddypress div.rtmedia-activity-container .large-5{position:relative;width:41.66667%}.rtmedia-container .large-6,.rtmedia-activity-container .large-6,#buddypress div.rtmedia-activity-container .large-6{position:relative;width:50%}.rtmedia-container .large-7,.rtmedia-activity-container .large-7,#buddypress div.rtmedia-activity-container .large-7{position:relative;width:58.33333%}.rtmedia-container .large-8,.rtmedia-activity-container .large-8,#buddypress div.rtmedia-activity-container .large-8{position:relative;width:66.66667%}.rtmedia-container .large-9,.rtmedia-activity-container .large-9,#buddypress div.rtmedia-activity-container .large-9{position:relative;width:75%}.rtmedia-container .large-10,.rtmedia-activity-container .large-10,#buddypress div.rtmedia-activity-container .large-10{position:relative;width:83.33333%}.rtmedia-container .large-11,.rtmedia-activity-container .large-11,#buddypress div.rtmedia-activity-container .large-11{position:relative;width:91.66667%}.rtmedia-container .large-12,.rtmedia-activity-container .large-12,#buddypress div.rtmedia-activity-container .large-12{position:relative;width:100%}.rtmedia-container .row .large-offset-0,.rtmedia-activity-container .row .large-offset-0,#buddypress div.rtmedia-activity-container .row .large-offset-0{position:relative;margin-left:0%}.rtmedia-container .row .large-offset-1,.rtmedia-activity-container .row .large-offset-1,#buddypress div.rtmedia-activity-container .row .large-offset-1{position:relative;margin-left:8.33333%}.rtmedia-container .row .large-offset-2,.rtmedia-activity-container .row .large-offset-2,#buddypress div.rtmedia-activity-container .row .large-offset-2{position:relative;margin-left:16.66667%}.rtmedia-container .row .large-offset-3,.rtmedia-activity-container .row .large-offset-3,#buddypress div.rtmedia-activity-container .row .large-offset-3{position:relative;margin-left:25%}.rtmedia-container .row .large-offset-4,.rtmedia-activity-container .row .large-offset-4,#buddypress div.rtmedia-activity-container .row .large-offset-4{position:relative;margin-left:33.33333%}.rtmedia-container .row .large-offset-5,.rtmedia-activity-container .row .large-offset-5,#buddypress div.rtmedia-activity-container .row .large-offset-5{position:relative;margin-left:41.66667%}.rtmedia-container .row .large-offset-6,.rtmedia-activity-container .row .large-offset-6,#buddypress div.rtmedia-activity-container .row .large-offset-6{position:relative;margin-left:50%}.rtmedia-container .row .large-offset-7,.rtmedia-activity-container .row .large-offset-7,#buddypress div.rtmedia-activity-container .row .large-offset-7{position:relative;margin-left:58.33333%}.rtmedia-container .row .large-offset-8,.rtmedia-activity-container .row .large-offset-8,#buddypress div.rtmedia-activity-container .row .large-offset-8{position:relative;margin-left:66.66667%}.rtmedia-container .row .large-offset-9,.rtmedia-activity-container .row .large-offset-9,#buddypress div.rtmedia-activity-container .row .large-offset-9{position:relative;margin-left:75%}.rtmedia-container .row .large-offset-10,.rtmedia-activity-container .row .large-offset-10,#buddypress div.rtmedia-activity-container .row .large-offset-10{position:relative;margin-left:83.33333%}.rtmedia-container .row .large-offset-11,.rtmedia-activity-container .row .large-offset-11,#buddypress div.rtmedia-activity-container .row .large-offset-11{position:relative;margin-left:91.66667%}.rtmedia-container .push-1,.rtmedia-activity-container .push-1,#buddypress div.rtmedia-activity-container .push-1{position:relative;left:8.33333%;right:auto}.rtmedia-container .pull-1,.rtmedia-activity-container .pull-1,#buddypress div.rtmedia-activity-container .pull-1{position:relative;right:8.33333%;left:auto}.rtmedia-container .push-2,.rtmedia-activity-container .push-2,#buddypress div.rtmedia-activity-container .push-2{position:relative;left:16.66667%;right:auto}.rtmedia-container .pull-2,.rtmedia-activity-container .pull-2,#buddypress div.rtmedia-activity-container .pull-2{position:relative;right:16.66667%;left:auto}.rtmedia-container .push-3,.rtmedia-activity-container .push-3,#buddypress div.rtmedia-activity-container .push-3{position:relative;left:25%;right:auto}.rtmedia-container .pull-3,.rtmedia-activity-container .pull-3,#buddypress div.rtmedia-activity-container .pull-3{position:relative;right:25%;left:auto}.rtmedia-container .push-4,.rtmedia-activity-container .push-4,#buddypress div.rtmedia-activity-container .push-4{position:relative;left:33.33333%;right:auto}.rtmedia-container .pull-4,.rtmedia-activity-container .pull-4,#buddypress div.rtmedia-activity-container .pull-4{position:relative;right:33.33333%;left:auto}.rtmedia-container .push-5,.rtmedia-activity-container .push-5,#buddypress div.rtmedia-activity-container .push-5{position:relative;left:41.66667%;right:auto}.rtmedia-container .pull-5,.rtmedia-activity-container .pull-5,#buddypress div.rtmedia-activity-container .pull-5{position:relative;right:41.66667%;left:auto}.rtmedia-container .push-6,.rtmedia-activity-container .push-6,#buddypress div.rtmedia-activity-container .push-6{position:relative;left:50%;right:auto}.rtmedia-container .pull-6,.rtmedia-activity-container .pull-6,#buddypress div.rtmedia-activity-container .pull-6{position:relative;right:50%;left:auto}.rtmedia-container .push-7,.rtmedia-activity-container .push-7,#buddypress div.rtmedia-activity-container .push-7{position:relative;left:58.33333%;right:auto}.rtmedia-container .pull-7,.rtmedia-activity-container .pull-7,#buddypress div.rtmedia-activity-container .pull-7{position:relative;right:58.33333%;left:auto}.rtmedia-container .push-8,.rtmedia-activity-container .push-8,#buddypress div.rtmedia-activity-container .push-8{position:relative;left:66.66667%;right:auto}.rtmedia-container .pull-8,.rtmedia-activity-container .pull-8,#buddypress div.rtmedia-activity-container .pull-8{position:relative;right:66.66667%;left:auto}.rtmedia-container .push-9,.rtmedia-activity-container .push-9,#buddypress div.rtmedia-activity-container .push-9{position:relative;left:75%;right:auto}.rtmedia-container .pull-9,.rtmedia-activity-container .pull-9,#buddypress div.rtmedia-activity-container .pull-9{position:relative;right:75%;left:auto}.rtmedia-container .push-10,.rtmedia-activity-container .push-10,#buddypress div.rtmedia-activity-container .push-10{position:relative;left:83.33333%;right:auto}.rtmedia-container .pull-10,.rtmedia-activity-container .pull-10,#buddypress div.rtmedia-activity-container .pull-10{position:relative;right:83.33333%;left:auto}.rtmedia-container .push-11,.rtmedia-activity-container .push-11,#buddypress div.rtmedia-activity-container .push-11{position:relative;left:91.66667%;right:auto}.rtmedia-container .pull-11,.rtmedia-activity-container .pull-11,#buddypress div.rtmedia-activity-container .pull-11{position:relative;right:91.66667%;left:auto}.rtmedia-container .column.large-centered,.rtmedia-activity-container .column.large-centered,#buddypress div.rtmedia-activity-container .column.large-centered,.rtmedia-container .columns.large-centered,.rtmedia-activity-container .columns.large-centered,#buddypress div.rtmedia-activity-container .columns.large-centered{position:relative;margin-left:auto;margin-right:auto;float:none !important}.rtmedia-container .column.large-uncentered,.rtmedia-activity-container .column.large-uncentered,#buddypress div.rtmedia-activity-container .column.large-uncentered,.rtmedia-container .columns.large-uncentered,.rtmedia-activity-container .columns.large-uncentered,#buddypress div.rtmedia-activity-container .columns.large-uncentered{margin-left:0;margin-right:0;float:left !important}.rtmedia-container .column.large-uncentered.opposite,.rtmedia-activity-container .column.large-uncentered.opposite,#buddypress div.rtmedia-activity-container .column.large-uncentered.opposite,.rtmedia-container .columns.large-uncentered.opposite,.rtmedia-activity-container .columns.large-uncentered.opposite,#buddypress div.rtmedia-activity-container .columns.large-uncentered.opposite{float:right !important}}.rtmedia-container .show-for-small,.rtmedia-activity-container .show-for-small,#buddypress div.rtmedia-activity-container .show-for-small,.rtmedia-container .show-for-medium-down,.rtmedia-activity-container .show-for-medium-down,#buddypress div.rtmedia-activity-container .show-for-medium-down,.rtmedia-container .show-for-large-down,.rtmedia-activity-container .show-for-large-down,#buddypress div.rtmedia-activity-container .show-for-large-down{display:inherit !important}.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,#buddypress div.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-up,.rtmedia-activity-container .show-for-medium-up,#buddypress div.rtmedia-activity-container .show-for-medium-up,.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,#buddypress div.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-up,.rtmedia-activity-container .show-for-large-up,#buddypress div.rtmedia-activity-container .show-for-large-up,.rtmedia-container .show-for-xlarge,.rtmedia-activity-container .show-for-xlarge,#buddypress div.rtmedia-activity-container .show-for-xlarge{display:none !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,#buddypress div.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-up,.rtmedia-activity-container .hide-for-medium-up,#buddypress div.rtmedia-activity-container .hide-for-medium-up,.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,#buddypress div.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-up,.rtmedia-activity-container .hide-for-large-up,#buddypress div.rtmedia-activity-container .hide-for-large-up,.rtmedia-container .hide-for-xlarge,.rtmedia-activity-container .hide-for-xlarge,#buddypress div.rtmedia-activity-container .hide-for-xlarge{display:inherit !important}.rtmedia-container .hide-for-small,.rtmedia-activity-container .hide-for-small,#buddypress div.rtmedia-activity-container .hide-for-small,.rtmedia-container .hide-for-medium-down,.rtmedia-activity-container .hide-for-medium-down,#buddypress div.rtmedia-activity-container .hide-for-medium-down,.rtmedia-container .hide-for-large-down,.rtmedia-activity-container .hide-for-large-down,#buddypress div.rtmedia-activity-container .hide-for-large-down{display:none !important}.rtmedia-container table.show-for-small,.rtmedia-activity-container table.show-for-small,#buddypress div.rtmedia-activity-container table.show-for-small,.rtmedia-container table.show-for-medium-down,.rtmedia-activity-container table.show-for-medium-down,#buddypress div.rtmedia-activity-container table.show-for-medium-down,.rtmedia-container table.show-for-large-down,.rtmedia-activity-container table.show-for-large-down,#buddypress div.rtmedia-activity-container table.show-for-large-down,.rtmedia-container table.hide-for-medium,.rtmedia-activity-container table.hide-for-medium,#buddypress div.rtmedia-activity-container table.hide-for-medium,.rtmedia-container table.hide-for-medium-up,.rtmedia-activity-container table.hide-for-medium-up,#buddypress div.rtmedia-activity-container table.hide-for-medium-up,.rtmedia-container table.hide-for-large,.rtmedia-activity-container table.hide-for-large,#buddypress div.rtmedia-activity-container table.hide-for-large,.rtmedia-container table.hide-for-large-up,.rtmedia-activity-container table.hide-for-large-up,#buddypress div.rtmedia-activity-container table.hide-for-large-up,.rtmedia-container table.hide-for-xlarge,.rtmedia-activity-container table.hide-for-xlarge,#buddypress div.rtmedia-activity-container table.hide-for-xlarge{display:table}.rtmedia-container thead.show-for-small,.rtmedia-activity-container thead.show-for-small,#buddypress div.rtmedia-activity-container thead.show-for-small,.rtmedia-container thead.show-for-medium-down,.rtmedia-activity-container thead.show-for-medium-down,#buddypress div.rtmedia-activity-container thead.show-for-medium-down,.rtmedia-container thead.show-for-large-down,.rtmedia-activity-container thead.show-for-large-down,#buddypress div.rtmedia-activity-container thead.show-for-large-down,.rtmedia-container thead.hide-for-medium,.rtmedia-activity-container thead.hide-for-medium,#buddypress div.rtmedia-activity-container thead.hide-for-medium,.rtmedia-container thead.hide-for-medium-up,.rtmedia-activity-container thead.hide-for-medium-up,#buddypress div.rtmedia-activity-container thead.hide-for-medium-up,.rtmedia-container thead.hide-for-large,.rtmedia-activity-container thead.hide-for-large,#buddypress div.rtmedia-activity-container thead.hide-for-large,.rtmedia-container thead.hide-for-large-up,.rtmedia-activity-container thead.hide-for-large-up,#buddypress div.rtmedia-activity-container thead.hide-for-large-up,.rtmedia-container thead.hide-for-xlarge,.rtmedia-activity-container thead.hide-for-xlarge,#buddypress div.rtmedia-activity-container thead.hide-for-xlarge{display:table-header-group !important}.rtmedia-container tbody.show-for-small,.rtmedia-activity-container tbody.show-for-small,#buddypress div.rtmedia-activity-container tbody.show-for-small,.rtmedia-container tbody.show-for-medium-down,.rtmedia-activity-container tbody.show-for-medium-down,#buddypress div.rtmedia-activity-container tbody.show-for-medium-down,.rtmedia-container tbody.show-for-large-down,.rtmedia-activity-container tbody.show-for-large-down,#buddypress div.rtmedia-activity-container tbody.show-for-large-down,.rtmedia-container tbody.hide-for-medium,.rtmedia-activity-container tbody.hide-for-medium,#buddypress div.rtmedia-activity-container tbody.hide-for-medium,.rtmedia-container tbody.hide-for-medium-up,.rtmedia-activity-container tbody.hide-for-medium-up,#buddypress div.rtmedia-activity-container tbody.hide-for-medium-up,.rtmedia-container tbody.hide-for-large,.rtmedia-activity-container tbody.hide-for-large,#buddypress div.rtmedia-activity-container tbody.hide-for-large,.rtmedia-container tbody.hide-for-large-up,.rtmedia-activity-container tbody.hide-for-large-up,#buddypress div.rtmedia-activity-container tbody.hide-for-large-up,.rtmedia-container tbody.hide-for-xlarge,.rtmedia-activity-container tbody.hide-for-xlarge,#buddypress div.rtmedia-activity-container tbody.hide-for-xlarge{display:table-row-group !important}.rtmedia-container tr.show-for-small,.rtmedia-activity-container tr.show-for-small,#buddypress div.rtmedia-activity-container tr.show-for-small,.rtmedia-container tr.show-for-medium-down,.rtmedia-activity-container tr.show-for-medium-down,#buddypress div.rtmedia-activity-container tr.show-for-medium-down,.rtmedia-container tr.show-for-large-down,.rtmedia-activity-container tr.show-for-large-down,#buddypress div.rtmedia-activity-container tr.show-for-large-down,.rtmedia-container tr.hide-for-medium,.rtmedia-activity-container tr.hide-for-medium,#buddypress div.rtmedia-activity-container tr.hide-for-medium,.rtmedia-container tr.hide-for-medium-up,.rtmedia-activity-container tr.hide-for-medium-up,#buddypress div.rtmedia-activity-container tr.hide-for-medium-up,.rtmedia-container tr.hide-for-large,.rtmedia-activity-container tr.hide-for-large,#buddypress div.rtmedia-activity-container tr.hide-for-large,.rtmedia-container tr.hide-for-large-up,.rtmedia-activity-container tr.hide-for-large-up,#buddypress div.rtmedia-activity-container tr.hide-for-large-up,.rtmedia-container tr.hide-for-xlarge,.rtmedia-activity-container tr.hide-for-xlarge,#buddypress div.rtmedia-activity-container tr.hide-for-xlarge{display:table-row !important}.rtmedia-container td.show-for-small,.rtmedia-activity-container td.show-for-small,#buddypress div.rtmedia-activity-container td.show-for-small,.rtmedia-container td.show-for-medium-down,.rtmedia-activity-container td.show-for-medium-down,#buddypress div.rtmedia-activity-container td.show-for-medium-down,.rtmedia-container td.show-for-large-down,.rtmedia-activity-container td.show-for-large-down,#buddypress div.rtmedia-activity-container td.show-for-large-down,.rtmedia-container td.hide-for-medium,.rtmedia-activity-container td.hide-for-medium,#buddypress div.rtmedia-activity-container td.hide-for-medium,.rtmedia-container td.hide-for-medium-up,.rtmedia-activity-container td.hide-for-medium-up,#buddypress div.rtmedia-activity-container td.hide-for-medium-up,.rtmedia-container td.hide-for-large,.rtmedia-activity-container td.hide-for-large,#buddypress div.rtmedia-activity-container td.hide-for-large,.rtmedia-container td.hide-for-large-up,.rtmedia-activity-container td.hide-for-large-up,#buddypress div.rtmedia-activity-container td.hide-for-large-up,.rtmedia-container td.hide-for-xlarge,.rtmedia-activity-container td.hide-for-xlarge,#buddypress div.rtmedia-activity-container td.hide-for-xlarge,.rtmedia-container th.show-for-small,.rtmedia-activity-container th.show-for-small,#buddypress div.rtmedia-activity-container th.show-for-small,.rtmedia-container th.show-for-medium-down,.rtmedia-activity-container th.show-for-medium-down,#buddypress div.rtmedia-activity-container th.show-for-medium-down,.rtmedia-container th.show-for-large-down,.rtmedia-activity-container th.show-for-large-down,#buddypress div.rtmedia-activity-container th.show-for-large-down,.rtmedia-container th.hide-for-medium,.rtmedia-activity-container th.hide-for-medium,#buddypress div.rtmedia-activity-container th.hide-for-medium,.rtmedia-container th.hide-for-medium-up,.rtmedia-activity-container th.hide-for-medium-up,#buddypress div.rtmedia-activity-container th.hide-for-medium-up,.rtmedia-container th.hide-for-large,.rtmedia-activity-container th.hide-for-large,#buddypress div.rtmedia-activity-container th.hide-for-large,.rtmedia-container th.hide-for-large-up,.rtmedia-activity-container th.hide-for-large-up,#buddypress div.rtmedia-activity-container th.hide-for-large-up,.rtmedia-container th.hide-for-xlarge,.rtmedia-activity-container th.hide-for-xlarge,#buddypress div.rtmedia-activity-container th.hide-for-xlarge{display:table-cell !important}@media only screen and (min-width: 768px){.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,#buddypress div.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-up,.rtmedia-activity-container .show-for-medium-up,#buddypress div.rtmedia-activity-container .show-for-medium-up{display:inherit !important}.rtmedia-container .show-for-small,.rtmedia-activity-container .show-for-small,#buddypress div.rtmedia-activity-container .show-for-small{display:none !important}.rtmedia-container .hide-for-small,.rtmedia-activity-container .hide-for-small,#buddypress div.rtmedia-activity-container .hide-for-small{display:inherit !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,#buddypress div.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-up,.rtmedia-activity-container .hide-for-medium-up,#buddypress div.rtmedia-activity-container .hide-for-medium-up{display:none !important}.rtmedia-container table.show-for-medium,.rtmedia-activity-container table.show-for-medium,#buddypress div.rtmedia-activity-container table.show-for-medium,.rtmedia-container table.show-for-medium-up,.rtmedia-activity-container table.show-for-medium-up,#buddypress div.rtmedia-activity-container table.show-for-medium-up,.rtmedia-container table.hide-for-small,.rtmedia-activity-container table.hide-for-small,#buddypress div.rtmedia-activity-container table.hide-for-small{display:table}.rtmedia-container thead.show-for-medium,.rtmedia-activity-container thead.show-for-medium,#buddypress div.rtmedia-activity-container thead.show-for-medium,.rtmedia-container thead.show-for-medium-up,.rtmedia-activity-container thead.show-for-medium-up,#buddypress div.rtmedia-activity-container thead.show-for-medium-up,.rtmedia-container thead.hide-for-small,.rtmedia-activity-container thead.hide-for-small,#buddypress div.rtmedia-activity-container thead.hide-for-small{display:table-header-group !important}.rtmedia-container tbody.show-for-medium,.rtmedia-activity-container tbody.show-for-medium,#buddypress div.rtmedia-activity-container tbody.show-for-medium,.rtmedia-container tbody.show-for-medium-up,.rtmedia-activity-container tbody.show-for-medium-up,#buddypress div.rtmedia-activity-container tbody.show-for-medium-up,.rtmedia-container tbody.hide-for-small,.rtmedia-activity-container tbody.hide-for-small,#buddypress div.rtmedia-activity-container tbody.hide-for-small{display:table-row-group !important}.rtmedia-container tr.show-for-medium,.rtmedia-activity-container tr.show-for-medium,#buddypress div.rtmedia-activity-container tr.show-for-medium,.rtmedia-container tr.show-for-medium-up,.rtmedia-activity-container tr.show-for-medium-up,#buddypress div.rtmedia-activity-container tr.show-for-medium-up,.rtmedia-container tr.hide-for-small,.rtmedia-activity-container tr.hide-for-small,#buddypress div.rtmedia-activity-container tr.hide-for-small{display:table-row !important}.rtmedia-container td.show-for-medium,.rtmedia-activity-container td.show-for-medium,#buddypress div.rtmedia-activity-container td.show-for-medium,.rtmedia-container td.show-for-medium-up,.rtmedia-activity-container td.show-for-medium-up,#buddypress div.rtmedia-activity-container td.show-for-medium-up,.rtmedia-container td.hide-for-small,.rtmedia-activity-container td.hide-for-small,#buddypress div.rtmedia-activity-container td.hide-for-small,.rtmedia-container th.show-for-medium,.rtmedia-activity-container th.show-for-medium,#buddypress div.rtmedia-activity-container th.show-for-medium,.rtmedia-container th.show-for-medium-up,.rtmedia-activity-container th.show-for-medium-up,#buddypress div.rtmedia-activity-container th.show-for-medium-up,.rtmedia-container th.hide-for-small,.rtmedia-activity-container th.hide-for-small,#buddypress div.rtmedia-activity-container th.hide-for-small{display:table-cell !important}}@media only screen and (min-width: 1280px){.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,#buddypress div.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-up,.rtmedia-activity-container .show-for-large-up,#buddypress div.rtmedia-activity-container .show-for-large-up{display:inherit !important}.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,#buddypress div.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-down,.rtmedia-activity-container .show-for-medium-down,#buddypress div.rtmedia-activity-container .show-for-medium-down{display:none !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,#buddypress div.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-down,.rtmedia-activity-container .hide-for-medium-down,#buddypress div.rtmedia-activity-container .hide-for-medium-down{display:inherit !important}.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,#buddypress div.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-up,.rtmedia-activity-container .hide-for-large-up,#buddypress div.rtmedia-activity-container .hide-for-large-up{display:none !important}.rtmedia-container table.show-for-large,.rtmedia-activity-container table.show-for-large,#buddypress div.rtmedia-activity-container table.show-for-large,.rtmedia-container table.show-for-large-up,.rtmedia-activity-container table.show-for-large-up,#buddypress div.rtmedia-activity-container table.show-for-large-up,.rtmedia-container table.hide-for-medium,.rtmedia-activity-container table.hide-for-medium,#buddypress div.rtmedia-activity-container table.hide-for-medium,.rtmedia-container table.hide-for-medium-down,.rtmedia-activity-container table.hide-for-medium-down,#buddypress div.rtmedia-activity-container table.hide-for-medium-down{display:table}.rtmedia-container thead.show-for-large,.rtmedia-activity-container thead.show-for-large,#buddypress div.rtmedia-activity-container thead.show-for-large,.rtmedia-container thead.show-for-large-up,.rtmedia-activity-container thead.show-for-large-up,#buddypress div.rtmedia-activity-container thead.show-for-large-up,.rtmedia-container thead.hide-for-medium,.rtmedia-activity-container thead.hide-for-medium,#buddypress div.rtmedia-activity-container thead.hide-for-medium,.rtmedia-container thead.hide-for-medium-down,.rtmedia-activity-container thead.hide-for-medium-down,#buddypress div.rtmedia-activity-container thead.hide-for-medium-down{display:table-header-group !important}.rtmedia-container tbody.show-for-large,.rtmedia-activity-container tbody.show-for-large,#buddypress div.rtmedia-activity-container tbody.show-for-large,.rtmedia-container tbody.show-for-large-up,.rtmedia-activity-container tbody.show-for-large-up,#buddypress div.rtmedia-activity-container tbody.show-for-large-up,.rtmedia-container tbody.hide-for-medium,.rtmedia-activity-container tbody.hide-for-medium,#buddypress div.rtmedia-activity-container tbody.hide-for-medium,.rtmedia-container tbody.hide-for-medium-down,.rtmedia-activity-container tbody.hide-for-medium-down,#buddypress div.rtmedia-activity-container tbody.hide-for-medium-down{display:table-row-group !important}.rtmedia-container tr.show-for-large,.rtmedia-activity-container tr.show-for-large,#buddypress div.rtmedia-activity-container tr.show-for-large,.rtmedia-container tr.show-for-large-up,.rtmedia-activity-container tr.show-for-large-up,#buddypress div.rtmedia-activity-container tr.show-for-large-up,.rtmedia-container tr.hide-for-medium,.rtmedia-activity-container tr.hide-for-medium,#buddypress div.rtmedia-activity-container tr.hide-for-medium,.rtmedia-container tr.hide-for-medium-down,.rtmedia-activity-container tr.hide-for-medium-down,#buddypress div.rtmedia-activity-container tr.hide-for-medium-down{display:table-row !important}.rtmedia-container td.show-for-large,.rtmedia-activity-container td.show-for-large,#buddypress div.rtmedia-activity-container td.show-for-large,.rtmedia-container td.show-for-large-up,.rtmedia-activity-container td.show-for-large-up,#buddypress div.rtmedia-activity-container td.show-for-large-up,.rtmedia-container td.hide-for-medium,.rtmedia-activity-container td.hide-for-medium,#buddypress div.rtmedia-activity-container td.hide-for-medium,.rtmedia-container td.hide-for-medium-down,.rtmedia-activity-container td.hide-for-medium-down,#buddypress div.rtmedia-activity-container td.hide-for-medium-down,.rtmedia-container th.show-for-large,.rtmedia-activity-container th.show-for-large,#buddypress div.rtmedia-activity-container th.show-for-large,.rtmedia-container th.show-for-large-up,.rtmedia-activity-container th.show-for-large-up,#buddypress div.rtmedia-activity-container th.show-for-large-up,.rtmedia-container th.hide-for-medium,.rtmedia-activity-container th.hide-for-medium,#buddypress div.rtmedia-activity-container th.hide-for-medium,.rtmedia-container th.hide-for-medium-down,.rtmedia-activity-container th.hide-for-medium-down,#buddypress div.rtmedia-activity-container th.hide-for-medium-down{display:table-cell !important}}@media only screen and (min-width: 1440px){.rtmedia-container .show-for-xlarge,.rtmedia-activity-container .show-for-xlarge,#buddypress div.rtmedia-activity-container .show-for-xlarge{display:inherit !important}.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,#buddypress div.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-down,.rtmedia-activity-container .show-for-large-down,#buddypress div.rtmedia-activity-container .show-for-large-down{display:none !important}.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,#buddypress div.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-down,.rtmedia-activity-container .hide-for-large-down,#buddypress div.rtmedia-activity-container .hide-for-large-down{display:inherit !important}.rtmedia-container .hide-for-xlarge,.rtmedia-activity-container .hide-for-xlarge,#buddypress div.rtmedia-activity-container .hide-for-xlarge{display:none !important}.rtmedia-container table.show-for-xlarge,.rtmedia-activity-container table.show-for-xlarge,#buddypress div.rtmedia-activity-container table.show-for-xlarge,.rtmedia-container table.hide-for-large,.rtmedia-activity-container table.hide-for-large,#buddypress div.rtmedia-activity-container table.hide-for-large,.rtmedia-container table.hide-for-large-down,.rtmedia-activity-container table.hide-for-large-down,#buddypress div.rtmedia-activity-container table.hide-for-large-down{display:table}.rtmedia-container thead.show-for-xlarge,.rtmedia-activity-container thead.show-for-xlarge,#buddypress div.rtmedia-activity-container thead.show-for-xlarge,.rtmedia-container thead.hide-for-large,.rtmedia-activity-container thead.hide-for-large,#buddypress div.rtmedia-activity-container thead.hide-for-large,.rtmedia-container thead.hide-for-large-down,.rtmedia-activity-container thead.hide-for-large-down,#buddypress div.rtmedia-activity-container thead.hide-for-large-down{display:table-header-group !important}.rtmedia-container tbody.show-for-xlarge,.rtmedia-activity-container tbody.show-for-xlarge,#buddypress div.rtmedia-activity-container tbody.show-for-xlarge,.rtmedia-container tbody.hide-for-large,.rtmedia-activity-container tbody.hide-for-large,#buddypress div.rtmedia-activity-container tbody.hide-for-large,.rtmedia-container tbody.hide-for-large-down,.rtmedia-activity-container tbody.hide-for-large-down,#buddypress div.rtmedia-activity-container tbody.hide-for-large-down{display:table-row-group !important}.rtmedia-container tr.show-for-xlarge,.rtmedia-activity-container tr.show-for-xlarge,#buddypress div.rtmedia-activity-container tr.show-for-xlarge,.rtmedia-container tr.hide-for-large,.rtmedia-activity-container tr.hide-for-large,#buddypress div.rtmedia-activity-container tr.hide-for-large,.rtmedia-container tr.hide-for-large-down,.rtmedia-activity-container tr.hide-for-large-down,#buddypress div.rtmedia-activity-container tr.hide-for-large-down{display:table-row !important}.rtmedia-container td.show-for-xlarge,.rtmedia-activity-container td.show-for-xlarge,#buddypress div.rtmedia-activity-container td.show-for-xlarge,.rtmedia-container td.hide-for-large,.rtmedia-activity-container td.hide-for-large,#buddypress div.rtmedia-activity-container td.hide-for-large,.rtmedia-container td.hide-for-large-down,.rtmedia-activity-container td.hide-for-large-down,#buddypress div.rtmedia-activity-container td.hide-for-large-down,.rtmedia-container th.show-for-xlarge,.rtmedia-activity-container th.show-for-xlarge,#buddypress div.rtmedia-activity-container th.show-for-xlarge,.rtmedia-container th.hide-for-large,.rtmedia-activity-container th.hide-for-large,#buddypress div.rtmedia-activity-container th.hide-for-large,.rtmedia-container th.hide-for-large-down,.rtmedia-activity-container th.hide-for-large-down,#buddypress div.rtmedia-activity-container th.hide-for-large-down{display:table-cell !important}}.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,#buddypress div.rtmedia-activity-container .show-for-landscape,.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,#buddypress div.rtmedia-activity-container .hide-for-portrait{display:inherit !important}.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,#buddypress div.rtmedia-activity-container .hide-for-landscape,.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait,#buddypress div.rtmedia-activity-container .show-for-portrait{display:none !important}.rtmedia-container table.hide-for-landscape,.rtmedia-activity-container table.hide-for-landscape,#buddypress div.rtmedia-activity-container table.hide-for-landscape,.rtmedia-container table.show-for-portrait,.rtmedia-activity-container table.show-for-portrait,#buddypress div.rtmedia-activity-container table.show-for-portrait{display:table}.rtmedia-container thead.hide-for-landscape,.rtmedia-activity-container thead.hide-for-landscape,#buddypress div.rtmedia-activity-container thead.hide-for-landscape,.rtmedia-container thead.show-for-portrait,.rtmedia-activity-container thead.show-for-portrait,#buddypress div.rtmedia-activity-container thead.show-for-portrait{display:table-header-group !important}.rtmedia-container tbody.hide-for-landscape,.rtmedia-activity-container tbody.hide-for-landscape,#buddypress div.rtmedia-activity-container tbody.hide-for-landscape,.rtmedia-container tbody.show-for-portrait,.rtmedia-activity-container tbody.show-for-portrait,#buddypress div.rtmedia-activity-container tbody.show-for-portrait{display:table-row-group !important}.rtmedia-container tr.hide-for-landscape,.rtmedia-activity-container tr.hide-for-landscape,#buddypress div.rtmedia-activity-container tr.hide-for-landscape,.rtmedia-container tr.show-for-portrait,.rtmedia-activity-container tr.show-for-portrait,#buddypress div.rtmedia-activity-container tr.show-for-portrait{display:table-row !important}.rtmedia-container td.hide-for-landscape,.rtmedia-activity-container td.hide-for-landscape,#buddypress div.rtmedia-activity-container td.hide-for-landscape,.rtmedia-container td.show-for-portrait,.rtmedia-activity-container td.show-for-portrait,#buddypress div.rtmedia-activity-container td.show-for-portrait,.rtmedia-container th.hide-for-landscape,.rtmedia-activity-container th.hide-for-landscape,#buddypress div.rtmedia-activity-container th.hide-for-landscape,.rtmedia-container th.show-for-portrait,.rtmedia-activity-container th.show-for-portrait,#buddypress div.rtmedia-activity-container th.show-for-portrait{display:table-cell !important}@media only screen and (orientation: landscape){.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,#buddypress div.rtmedia-activity-container .show-for-landscape,.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,#buddypress div.rtmedia-activity-container .hide-for-portrait{display:inherit !important}.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,#buddypress div.rtmedia-activity-container .hide-for-landscape,.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait,#buddypress div.rtmedia-activity-container .show-for-portrait{display:none !important}.rtmedia-container table.show-for-landscape,.rtmedia-activity-container table.show-for-landscape,#buddypress div.rtmedia-activity-container table.show-for-landscape,.rtmedia-container table.hide-for-portrait,.rtmedia-activity-container table.hide-for-portrait,#buddypress div.rtmedia-activity-container table.hide-for-portrait{display:table}.rtmedia-container thead.show-for-landscape,.rtmedia-activity-container thead.show-for-landscape,#buddypress div.rtmedia-activity-container thead.show-for-landscape,.rtmedia-container thead.hide-for-portrait,.rtmedia-activity-container thead.hide-for-portrait,#buddypress div.rtmedia-activity-container thead.hide-for-portrait{display:table-header-group !important}.rtmedia-container tbody.show-for-landscape,.rtmedia-activity-container tbody.show-for-landscape,#buddypress div.rtmedia-activity-container tbody.show-for-landscape,.rtmedia-container tbody.hide-for-portrait,.rtmedia-activity-container tbody.hide-for-portrait,#buddypress div.rtmedia-activity-container tbody.hide-for-portrait{display:table-row-group !important}.rtmedia-container tr.show-for-landscape,.rtmedia-activity-container tr.show-for-landscape,#buddypress div.rtmedia-activity-container tr.show-for-landscape,.rtmedia-container tr.hide-for-portrait,.rtmedia-activity-container tr.hide-for-portrait,#buddypress div.rtmedia-activity-container tr.hide-for-portrait{display:table-row !important}.rtmedia-container td.show-for-landscape,.rtmedia-activity-container td.show-for-landscape,#buddypress div.rtmedia-activity-container td.show-for-landscape,.rtmedia-container td.hide-for-portrait,.rtmedia-activity-container td.hide-for-portrait,#buddypress div.rtmedia-activity-container td.hide-for-portrait,.rtmedia-container th.show-for-landscape,.rtmedia-activity-container th.show-for-landscape,#buddypress div.rtmedia-activity-container th.show-for-landscape,.rtmedia-container th.hide-for-portrait,.rtmedia-activity-container th.hide-for-portrait,#buddypress div.rtmedia-activity-container th.hide-for-portrait{display:table-cell !important}}@media only screen and (orientation: portrait){.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait,#buddypress div.rtmedia-activity-container .show-for-portrait,.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,#buddypress div.rtmedia-activity-container .hide-for-landscape{display:inherit !important}.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,#buddypress div.rtmedia-activity-container .hide-for-portrait,.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,#buddypress div.rtmedia-activity-container .show-for-landscape{display:none !important}.rtmedia-container table.show-for-portrait,.rtmedia-activity-container table.show-for-portrait,#buddypress div.rtmedia-activity-container table.show-for-portrait,.rtmedia-container table.hide-for-landscape,.rtmedia-activity-container table.hide-for-landscape,#buddypress div.rtmedia-activity-container table.hide-for-landscape{display:table}.rtmedia-container thead.show-for-portrait,.rtmedia-activity-container thead.show-for-portrait,#buddypress div.rtmedia-activity-container thead.show-for-portrait,.rtmedia-container thead.hide-for-landscape,.rtmedia-activity-container thead.hide-for-landscape,#buddypress div.rtmedia-activity-container thead.hide-for-landscape{display:table-header-group !important}.rtmedia-container tbody.show-for-portrait,.rtmedia-activity-container tbody.show-for-portrait,#buddypress div.rtmedia-activity-container tbody.show-for-portrait,.rtmedia-container tbody.hide-for-landscape,.rtmedia-activity-container tbody.hide-for-landscape,#buddypress div.rtmedia-activity-container tbody.hide-for-landscape{display:table-row-group !important}.rtmedia-container tr.show-for-portrait,.rtmedia-activity-container tr.show-for-portrait,#buddypress div.rtmedia-activity-container tr.show-for-portrait,.rtmedia-container tr.hide-for-landscape,.rtmedia-activity-container tr.hide-for-landscape,#buddypress div.rtmedia-activity-container tr.hide-for-landscape{display:table-row !important}.rtmedia-container td.show-for-portrait,.rtmedia-activity-container td.show-for-portrait,#buddypress div.rtmedia-activity-container td.show-for-portrait,.rtmedia-container td.hide-for-landscape,.rtmedia-activity-container td.hide-for-landscape,#buddypress div.rtmedia-activity-container td.hide-for-landscape,.rtmedia-container th.show-for-portrait,.rtmedia-activity-container th.show-for-portrait,#buddypress div.rtmedia-activity-container th.show-for-portrait,.rtmedia-container th.hide-for-landscape,.rtmedia-activity-container th.hide-for-landscape,#buddypress div.rtmedia-activity-container th.hide-for-landscape{display:table-cell !important}}.rtmedia-container .show-for-touch,.rtmedia-activity-container .show-for-touch,#buddypress div.rtmedia-activity-container .show-for-touch{display:none !important}.rtmedia-container .hide-for-touch,.rtmedia-activity-container .hide-for-touch,#buddypress div.rtmedia-activity-container .hide-for-touch{display:inherit !important}.rtmedia-container .touch .show-for-touch,.rtmedia-activity-container .touch .show-for-touch,#buddypress div.rtmedia-activity-container .touch .show-for-touch{display:inherit !important}.rtmedia-container .touch .hide-for-touch,.rtmedia-activity-container .touch .hide-for-touch,#buddypress div.rtmedia-activity-container .touch .hide-for-touch{display:none !important}.rtmedia-container table.hide-for-touch,.rtmedia-activity-container table.hide-for-touch,#buddypress div.rtmedia-activity-container table.hide-for-touch{display:table}.rtmedia-container .touch table.show-for-touch,.rtmedia-activity-container .touch table.show-for-touch,#buddypress div.rtmedia-activity-container .touch table.show-for-touch{display:table}.rtmedia-container thead.hide-for-touch,.rtmedia-activity-container thead.hide-for-touch,#buddypress div.rtmedia-activity-container thead.hide-for-touch{display:table-header-group !important}.rtmedia-container .touch thead.show-for-touch,.rtmedia-activity-container .touch thead.show-for-touch,#buddypress div.rtmedia-activity-container .touch thead.show-for-touch{display:table-header-group !important}.rtmedia-container tbody.hide-for-touch,.rtmedia-activity-container tbody.hide-for-touch,#buddypress div.rtmedia-activity-container tbody.hide-for-touch{display:table-row-group !important}.rtmedia-container .touch tbody.show-for-touch,.rtmedia-activity-container .touch tbody.show-for-touch,#buddypress div.rtmedia-activity-container .touch tbody.show-for-touch{display:table-row-group !important}.rtmedia-container tr.hide-for-touch,.rtmedia-activity-container tr.hide-for-touch,#buddypress div.rtmedia-activity-container tr.hide-for-touch{display:table-row !important}.rtmedia-container .touch tr.show-for-touch,.rtmedia-activity-container .touch tr.show-for-touch,#buddypress div.rtmedia-activity-container .touch tr.show-for-touch{display:table-row !important}.rtmedia-container td.hide-for-touch,.rtmedia-activity-container td.hide-for-touch,#buddypress div.rtmedia-activity-container td.hide-for-touch{display:table-cell !important}.rtmedia-container .touch td.show-for-touch,.rtmedia-activity-container .touch td.show-for-touch,#buddypress div.rtmedia-activity-container .touch td.show-for-touch{display:table-cell !important}.rtmedia-container th.hide-for-touch,.rtmedia-activity-container th.hide-for-touch,#buddypress div.rtmedia-activity-container th.hide-for-touch{display:table-cell !important}.rtmedia-container .touch th.show-for-touch,.rtmedia-activity-container .touch th.show-for-touch,#buddypress div.rtmedia-activity-container .touch th.show-for-touch{display:table-cell !important}.rtmedia-container .flex-video,.rtmedia-activity-container .flex-video,#buddypress div.rtmedia-activity-container .flex-video{position:relative;padding-top:1.5625em;padding-bottom:67.5%;height:0;margin-bottom:1em;overflow:hidden}.rtmedia-container .flex-video.widescreen,.rtmedia-activity-container .flex-video.widescreen,#buddypress div.rtmedia-activity-container .flex-video.widescreen{padding-bottom:57.25%}.rtmedia-container .flex-video.vimeo,.rtmedia-activity-container .flex-video.vimeo,#buddypress div.rtmedia-activity-container .flex-video.vimeo{padding-top:0}.rtmedia-container .flex-video iframe,.rtmedia-activity-container .flex-video iframe,#buddypress div.rtmedia-activity-container .flex-video iframe,.rtmedia-container .flex-video object,.rtmedia-activity-container .flex-video object,#buddypress div.rtmedia-activity-container .flex-video object,.rtmedia-container .flex-video embed,.rtmedia-activity-container .flex-video embed,#buddypress div.rtmedia-activity-container .flex-video embed,.rtmedia-container .flex-video video,.rtmedia-activity-container .flex-video video,#buddypress div.rtmedia-activity-container .flex-video video{position:absolute;top:0;left:0;width:100%;height:100%}.rtmedia-container .row,.rtmedia-activity-container .row,#buddypress div.rtmedia-activity-container .row{max-width:95%}.rtmedia-container .rtmedia-item-title,.rtmedia-activity-container .rtmedia-item-title,#buddypress div.rtmedia-activity-container .rtmedia-item-title{text-align:center}.rtmedia-container .rtmedia-item-title h4,.rtmedia-activity-container .rtmedia-item-title h4,#buddypress div.rtmedia-activity-container .rtmedia-item-title h4{text-overflow:ellipsis;white-space:nowrap;width:100%;overflow:hidden;font-size:1.1em;text-align:center}.rtmedia-container .rtmedia-success,.rtmedia-activity-container .rtmedia-success,#buddypress div.rtmedia-activity-container .rtmedia-success{display:block;padding:10px;border:1px solid #008000;background-color:#90EE90;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.rtmedia-container h2,.rtmedia-activity-container h2,#buddypress div.rtmedia-activity-container h2{font-size:1.4em;font-weight:bold;line-height:2.4em}.rtmedia-container .drag-drop,.rtmedia-activity-container .drag-drop,#buddypress div.rtmedia-activity-container .drag-drop{border:4px dashed #DDD;text-align:center;background:#fafafa;overflow:hidden;padding:15px 0}.rtmedia-container .drag-drop.dragover,.rtmedia-activity-container .drag-drop.dragover,#buddypress div.rtmedia-activity-container .drag-drop.dragover{border-color:#83b4d8}.rtmedia-container .rtmedia-action-update,.rtmedia-activity-container .rtmedia-action-update,#buddypress div.rtmedia-activity-container .rtmedia-action-update{float:left;margin-top:12px;margin-right:10px}.rtmedia-container .rtmedia-list,.rtmedia-activity-container .rtmedia-list,#buddypress div.rtmedia-activity-container .rtmedia-list{list-style:none}.rtmedia-container .rtmedia-list .rtmedia-list-item,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item{word-wrap:break-word;margin:10px;float:left}.rtmedia-container .rtmedia-list .rtmedia-list-item a,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a{text-decoration:none}.rtmedia-container .rtmedia-list .rtmedia-list-item a h4,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a h4,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a h4{line-height:1.4em;font-size:1.2em;padding-top:10px}.rtmedia-container .rtmedia-list .rtmedia-list-item.media-type-music,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-music,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-music,.rtmedia-container .rtmedia-list .rtmedia-list-item.media-type-video,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-video,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-video{width:100%}.rtmedia-container .rtmedia-list .rtmedia-list-item.media-type-music .mejs-controls .mejs-time-rail,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-music .mejs-controls .mejs-time-rail,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-music .mejs-controls .mejs-time-rail,.rtmedia-container .rtmedia-list .rtmedia-list-item.media-type-video .mejs-controls .mejs-time-rail,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-video .mejs-controls .mejs-time-rail,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-video .mejs-controls .mejs-time-rail{margin:8px 2px 2px 0}.rtmedia-container .rtmedia-media img,.rtmedia-activity-container .rtmedia-media img,#buddypress div.rtmedia-activity-container .rtmedia-media img{max-width:100%}.rtmedia-container .rtmedia-item-thumbnail,.rtmedia-activity-container .rtmedia-item-thumbnail,#buddypress div.rtmedia-activity-container .rtmedia-item-thumbnail{text-align:center}.rtmedia-container .rtmedia-item-thumbnail img,.rtmedia-activity-container .rtmedia-item-thumbnail img,#buddypress div.rtmedia-activity-container .rtmedia-item-thumbnail img{vertical-align:middle}.rtmedia-container .rtmedia_next_prev,.rtmedia-activity-container .rtmedia_next_prev,#buddypress div.rtmedia-activity-container .rtmedia_next_prev{clear:both}.rtmedia-container .rtmedia_next_prev a,.rtmedia-activity-container .rtmedia_next_prev a,#buddypress div.rtmedia-activity-container .rtmedia_next_prev a{display:block;clear:both;background-color:#E9E9E9;padding:10px;text-align:center;text-decoration:none;color:#000;margin:15px}.rtmedia-container .rtmedia-item-comments-container,.rtmedia-activity-container .rtmedia-item-comments-container,#buddypress div.rtmedia-activity-container .rtmedia-item-comments-container{margin:3% 3%}.rtmedia-container .rtmedia-comment,.rtmedia-activity-container .rtmedia-comment,#buddypress div.rtmedia-activity-container .rtmedia-comment{list-style:none;background:#f6f6f6;border:1px solid #ddd;-moz-border-radius:3px;border-radius:3px;margin:5px 0;padding:1px 5px 25px;width:391px;max-width:100%}.rtmedia-container .rtmedia-comment .rtmedia-comment-author,.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-author,#buddypress div.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-author{display:block}.rtmedia-container .rtmedia-comment .rtmedia-comment-content,.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-content,#buddypress div.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-content{display:block}.rtmedia-container .rtmedia-comment .rtmedia-comment-date,.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-date,#buddypress div.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-date{display:block;float:right}.rtmedia-container .rtmedia-bp-header,.rtmedia-activity-container .rtmedia-bp-header,#buddypress div.rtmedia-activity-container .rtmedia-bp-header{width:460px;margin:auto}.rtmedia-container #div-attache-rtmedia,.rtmedia-activity-container #div-attache-rtmedia,#buddypress div.rtmedia-activity-container #div-attache-rtmedia{display:none}.rtmedia-container #rtMedia-update-queue-list p span,.rtmedia-activity-container #rtMedia-update-queue-list p span{margin-right:20px}.rtmedia-container .rtmedia-move-container,.rtmedia-activity-container .rtmedia-move-container,#buddypress div.rtmedia-activity-container .rtmedia-move-container{display:none}.rtmedia-container #rtmedia-add-media-button-post-update,.rtmedia-activity-container #rtmedia-add-media-button-post-update,#buddypress div.rtmedia-activity-container #rtmedia-add-media-button-post-update{float:left;margin-top:10px;margin-right:20px}.rtmedia-container #whats-new-post-in-box,.rtmedia-activity-container #whats-new-post-in-box,#buddypress div.rtmedia-activity-container #whats-new-post-in-box{float:left}.rtmedia-container .rtmedia-activity-text,.rtmedia-activity-container .rtmedia-activity-text,#buddypress div.rtmedia-activity-container .rtmedia-activity-text{display:block;padding-bottom:10px}.rtmedia-container .rtmedia-merge-container,.rtmedia-activity-container .rtmedia-merge-container,#buddypress div.rtmedia-activity-container .rtmedia-merge-container{display:none}.rtmedia-container .rtmedia-create-new-album-container,.rtmedia-activity-container .rtmedia-create-new-album-container,#buddypress div.rtmedia-activity-container .rtmedia-create-new-album-container{display:none}.rtmedia-container select,.rtmedia-activity-container select,#buddypress div.rtmedia-activity-container select{width:auto}.rtmedia-container.rtmedia-single-container .row,.rtmedia-single-container.rtmedia-activity-container .row,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row{background-color:#FFF}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container{padding-top:10px;padding-bottom:10px}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media div.mejs-layers div.mejs-poster,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media div.mejs-layers div.mejs-poster{overflow:hidden}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media .mejs-layers .mejs-overlay-button,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media .mejs-layers .mejs-overlay-button{margin:-50px 0 0 -50px}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media .mejs-layers .mejs-poster,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media .mejs-layers .mejs-poster{overflow:hidden}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media-title,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media-title{margin:0 0 5px 0;display:block;font-weight:bold;letter-spacing:1px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta{padding:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta div.userprofile,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta div.userprofile,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta div.userprofile{float:left;padding:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta div.username,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta div.username,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta div.username{padding:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta button,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta button,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta button{color:#5E5E5E;background-color:#EBEBEB;background-repeat:repeat-x;background-image:-moz-linear-gradient(top, #f9f9f9, #ebebeb);background-image:-ms-linear-gradient(top, #f9f9f9, #ebebeb);background-image:-webkit-linear-gradient(top, #f9f9f9, #ebebeb);background-image:-o-linear-gradient(top, #f9f9f9, #ebebeb);background-image:linear-gradient(top, #f9f9f9,#ebebeb)}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta>a,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta>a,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta>a{float:left;margin:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta .rtmedia-item-actions>a,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>a,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>a{display:inline-block;float:left}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta .rtmedia-item-actions>form,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>form,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>form{float:left;margin-right:5px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta .rtmedia-item-actions .rtmedia-action-buttons span,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions .rtmedia-action-buttons span,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions .rtmedia-action-buttons span{background:#EEE;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;border-radius:50%;border:1px solid #CCC;color:#999;display:inline;font-size:70%;margin-left:2px;margin-right:2px;padding:3px 6px;text-align:center;vertical-align:middle}.rtmedia-container.rtmedia-single-container .row .rtmedia-item-comments,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments{background-color:transparent}.rtmedia-container.rtmedia-single-container .row .rtmedia-item-comments div,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments div,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments div{background-color:transparent}.rtmedia-container #wp-description-editor-tools a.wp-switch-editor,.rtmedia-activity-container #wp-description-editor-tools a.wp-switch-editor{margin:5px 5px 0 0;padding:4px 5px 2px;float:right;cursor:pointer;border:1px solid;border-color:#DFDFDF #DFDFDF #CCC;font:13px/18px Arial,Helvetica,sans-serif normal;height:auto}.rtmedia-container #description_toolbargroup .mceToolbar td,.rtmedia-activity-container #description_toolbargroup .mceToolbar td{padding:0px}.rtmedia-container #wp-description-editor-container,.rtmedia-activity-container #wp-description-editor-container,#buddypress div.rtmedia-activity-container #wp-description-editor-container{border-width:1px;border-style:solid;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;border-color:#CCC #CCC #DFDFDF}.rtmedia-container .rtmedia-change-cover-arts p,.rtmedia-activity-container .rtmedia-change-cover-arts p,#buddypress div.rtmedia-activity-container .rtmedia-change-cover-arts p{padding:5px 0}#buddypress div.rtmedia-activity-container ul.rtmedia-list li{float:left;padding:10px}#buddypress div.rtmedia-activity-container ul.rtmedia-list li .rtmedia-item-thumbnail{overflow:hidden}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video{float:none}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail{margin:0 auto;overflow:hidden}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail .mejs-overlay-button{margin:-50px 0 0 -50px}#buddypress .mejs-controls button,.rtmedia-container .mejs-controls button,.rtmedia-activity-container .mejs-controls button,#buddypress div.rtmedia-activity-container .mejs-controls button{padding:4px 8px;border:none;background:rgba(0,0,0,0) url("../../../lib/media-element/controls.png") no-repeat}#buddypress .mejs-controls .mejs-play button,.rtmedia-container .mejs-controls .mejs-play button,.rtmedia-activity-container .mejs-controls .mejs-play button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-play button{background-position:0 0}#buddypress .mejs-controls .mejs-pause button,.rtmedia-container .mejs-controls .mejs-pause button,.rtmedia-activity-container .mejs-controls .mejs-pause button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-pause button{background-position:0 -16px}#buddypress .mejs-controls .mejs-unmute button,.rtmedia-container .mejs-controls .mejs-unmute button,.rtmedia-activity-container .mejs-controls .mejs-unmute button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-unmute button{background-position:-16px 0}#buddypress .mejs-controls .mejs-mute button,.rtmedia-container .mejs-controls .mejs-mute button,.rtmedia-activity-container .mejs-controls .mejs-mute button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-mute button{background-position:-16px -16px}#buddypress .mejs-controls .mejs-fullscreen-button button,.rtmedia-container .mejs-controls .mejs-fullscreen-button button,.rtmedia-activity-container .mejs-controls .mejs-fullscreen-button button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-fullscreen-button button{background-position:-32px 0}#buddypress .mejs-controls .mejs-unfullscreen button,.rtmedia-container .mejs-controls .mejs-unfullscreen button,.rtmedia-activity-container .mejs-controls .mejs-unfullscreen button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-unfullscreen button{background-position:-32px -16px}.mfp-content #rtmedia-single-media-container .rtmedia-media{text-align:center;background-color:#333}.mfp-content #rtmedia-single-media-container .rtmedia-media img{max-height:95%}#rtmedia-action-update{float:left;padding-right:10px}#header{z-index:1 !important}.bp_media_content video{background-color:black}.rtmedia-success{display:block;padding:10px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;background-color:#2ECC71;color:white}.rtmedia-error{color:white;display:block;padding:10px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;background-color:#E74C3C}.rtmp-uploaded-file{width:100%}.close{cursor:pointer;color:red}button.mfp-arrow,button.mfp-arrow:active{margin-top:-30px}button.mfp-close{margin-top:-10px}#object-nav li,#group-admins li,.item-list-tabs li{list-style:none}
|
1 |
+
.rtmedia-container,.rtmedia-activity-container,#buddypress div.rtmedia-activity-container{padding:5px;margin:0;clear:left}.rtmedia-container html,.rtmedia-activity-container html,#buddypress div.rtmedia-activity-container html,.rtmedia-container body,.rtmedia-activity-container body,#buddypress div.rtmedia-activity-container body,.rtmedia-container div,.rtmedia-activity-container div,#buddypress div.rtmedia-activity-container div,.rtmedia-container span,.rtmedia-activity-container span,#buddypress div.rtmedia-activity-container span,.rtmedia-container applet,.rtmedia-activity-container applet,#buddypress div.rtmedia-activity-container applet,.rtmedia-container object,.rtmedia-activity-container object,#buddypress div.rtmedia-activity-container object,.rtmedia-container iframe,.rtmedia-activity-container iframe,#buddypress div.rtmedia-activity-container iframe,.rtmedia-container h1,.rtmedia-activity-container h1,#buddypress div.rtmedia-activity-container h1,.rtmedia-container h2,.rtmedia-activity-container h2,#buddypress div.rtmedia-activity-container h2,.rtmedia-container h3,.rtmedia-activity-container h3,#buddypress div.rtmedia-activity-container h3,.rtmedia-container h4,.rtmedia-activity-container h4,#buddypress div.rtmedia-activity-container h4,.rtmedia-container h5,.rtmedia-activity-container h5,#buddypress div.rtmedia-activity-container h5,.rtmedia-container h6,.rtmedia-activity-container h6,#buddypress div.rtmedia-activity-container h6,.rtmedia-container p,.rtmedia-activity-container p,#buddypress div.rtmedia-activity-container p,.rtmedia-container blockquote,.rtmedia-activity-container blockquote,#buddypress div.rtmedia-activity-container blockquote,.rtmedia-container pre,.rtmedia-activity-container pre,#buddypress div.rtmedia-activity-container pre,.rtmedia-container a,.rtmedia-activity-container a,#buddypress div.rtmedia-activity-container a,.rtmedia-container abbr,.rtmedia-activity-container abbr,#buddypress div.rtmedia-activity-container abbr,.rtmedia-container acronym,.rtmedia-activity-container acronym,#buddypress div.rtmedia-activity-container acronym,.rtmedia-container address,.rtmedia-activity-container address,#buddypress div.rtmedia-activity-container address,.rtmedia-container big,.rtmedia-activity-container big,#buddypress div.rtmedia-activity-container big,.rtmedia-container cite,.rtmedia-activity-container cite,#buddypress div.rtmedia-activity-container cite,.rtmedia-container code,.rtmedia-activity-container code,#buddypress div.rtmedia-activity-container code,.rtmedia-container del,.rtmedia-activity-container del,#buddypress div.rtmedia-activity-container del,.rtmedia-container dfn,.rtmedia-activity-container dfn,#buddypress div.rtmedia-activity-container dfn,.rtmedia-container em,.rtmedia-activity-container em,#buddypress div.rtmedia-activity-container em,.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img,.rtmedia-container ins,.rtmedia-activity-container ins,#buddypress div.rtmedia-activity-container ins,.rtmedia-container kbd,.rtmedia-activity-container kbd,#buddypress div.rtmedia-activity-container kbd,.rtmedia-container q,.rtmedia-activity-container q,#buddypress div.rtmedia-activity-container q,.rtmedia-container s,.rtmedia-activity-container s,#buddypress div.rtmedia-activity-container s,.rtmedia-container samp,.rtmedia-activity-container samp,#buddypress div.rtmedia-activity-container samp,.rtmedia-container small,.rtmedia-activity-container small,#buddypress div.rtmedia-activity-container small,.rtmedia-container strike,.rtmedia-activity-container strike,#buddypress div.rtmedia-activity-container strike,.rtmedia-container strong,.rtmedia-activity-container strong,#buddypress div.rtmedia-activity-container strong,.rtmedia-container sub,.rtmedia-activity-container sub,#buddypress div.rtmedia-activity-container sub,.rtmedia-container sup,.rtmedia-activity-container sup,#buddypress div.rtmedia-activity-container sup,.rtmedia-container tt,.rtmedia-activity-container tt,#buddypress div.rtmedia-activity-container tt,.rtmedia-container var,.rtmedia-activity-container var,#buddypress div.rtmedia-activity-container var,.rtmedia-container b,.rtmedia-activity-container b,#buddypress div.rtmedia-activity-container b,.rtmedia-container u,.rtmedia-activity-container u,#buddypress div.rtmedia-activity-container u,.rtmedia-container i,.rtmedia-activity-container i,#buddypress div.rtmedia-activity-container i,.rtmedia-container center,.rtmedia-activity-container center,#buddypress div.rtmedia-activity-container center,.rtmedia-container dl,.rtmedia-activity-container dl,#buddypress div.rtmedia-activity-container dl,.rtmedia-container dt,.rtmedia-activity-container dt,#buddypress div.rtmedia-activity-container dt,.rtmedia-container dd,.rtmedia-activity-container dd,#buddypress div.rtmedia-activity-container dd,.rtmedia-container ol,.rtmedia-activity-container ol,#buddypress div.rtmedia-activity-container ol,.rtmedia-container ul,.rtmedia-activity-container ul,#buddypress div.rtmedia-activity-container ul,.rtmedia-container li,.rtmedia-activity-container li,#buddypress div.rtmedia-activity-container li,.rtmedia-container fieldset,.rtmedia-activity-container fieldset,#buddypress div.rtmedia-activity-container fieldset,.rtmedia-container form,.rtmedia-activity-container form,#buddypress div.rtmedia-activity-container form,.rtmedia-container label,.rtmedia-activity-container label,#buddypress div.rtmedia-activity-container label,.rtmedia-container legend,.rtmedia-activity-container legend,#buddypress div.rtmedia-activity-container legend,.rtmedia-container table,.rtmedia-activity-container table,#buddypress div.rtmedia-activity-container table,.rtmedia-container caption,.rtmedia-activity-container caption,#buddypress div.rtmedia-activity-container caption,.rtmedia-container tbody,.rtmedia-activity-container tbody,#buddypress div.rtmedia-activity-container tbody,.rtmedia-container tfoot,.rtmedia-activity-container tfoot,#buddypress div.rtmedia-activity-container tfoot,.rtmedia-container thead,.rtmedia-activity-container thead,#buddypress div.rtmedia-activity-container thead,.rtmedia-container tr,.rtmedia-activity-container tr,#buddypress div.rtmedia-activity-container tr,.rtmedia-container th,.rtmedia-activity-container th,#buddypress div.rtmedia-activity-container th,.rtmedia-container td,.rtmedia-activity-container td,#buddypress div.rtmedia-activity-container td,.rtmedia-container article,.rtmedia-activity-container article,#buddypress div.rtmedia-activity-container article,.rtmedia-container aside,.rtmedia-activity-container aside,#buddypress div.rtmedia-activity-container aside,.rtmedia-container canvas,.rtmedia-activity-container canvas,#buddypress div.rtmedia-activity-container canvas,.rtmedia-container details,.rtmedia-activity-container details,#buddypress div.rtmedia-activity-container details,.rtmedia-container embed,.rtmedia-activity-container embed,#buddypress div.rtmedia-activity-container embed,.rtmedia-container figure,.rtmedia-activity-container figure,#buddypress div.rtmedia-activity-container figure,.rtmedia-container figcaption,.rtmedia-activity-container figcaption,#buddypress div.rtmedia-activity-container figcaption,.rtmedia-container footer,.rtmedia-activity-container footer,#buddypress div.rtmedia-activity-container footer,.rtmedia-container header,.rtmedia-activity-container header,#buddypress div.rtmedia-activity-container header,.rtmedia-container hgroup,.rtmedia-activity-container hgroup,#buddypress div.rtmedia-activity-container hgroup,.rtmedia-container menu,.rtmedia-activity-container menu,#buddypress div.rtmedia-activity-container menu,.rtmedia-container nav,.rtmedia-activity-container nav,#buddypress div.rtmedia-activity-container nav,.rtmedia-container output,.rtmedia-activity-container output,#buddypress div.rtmedia-activity-container output,.rtmedia-container ruby,.rtmedia-activity-container ruby,#buddypress div.rtmedia-activity-container ruby,.rtmedia-container section,.rtmedia-activity-container section,#buddypress div.rtmedia-activity-container section,.rtmedia-container summary,.rtmedia-activity-container summary,#buddypress div.rtmedia-activity-container summary,.rtmedia-container time,.rtmedia-activity-container time,#buddypress div.rtmedia-activity-container time,.rtmedia-container mark,.rtmedia-activity-container mark,#buddypress div.rtmedia-activity-container mark,.rtmedia-container audio,.rtmedia-activity-container audio,#buddypress div.rtmedia-activity-container audio,.rtmedia-container video,.rtmedia-activity-container video,#buddypress div.rtmedia-activity-container video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}.rtmedia-container html,.rtmedia-activity-container html,#buddypress div.rtmedia-activity-container html{line-height:1}.rtmedia-container ol,.rtmedia-activity-container ol,#buddypress div.rtmedia-activity-container ol,.rtmedia-container ul,.rtmedia-activity-container ul,#buddypress div.rtmedia-activity-container ul{list-style:none}.rtmedia-container table,.rtmedia-activity-container table,#buddypress div.rtmedia-activity-container table{border-collapse:collapse;border-spacing:0}.rtmedia-container caption,.rtmedia-activity-container caption,#buddypress div.rtmedia-activity-container caption,.rtmedia-container th,.rtmedia-activity-container th,#buddypress div.rtmedia-activity-container th,.rtmedia-container td,.rtmedia-activity-container td,#buddypress div.rtmedia-activity-container td{text-align:left;font-weight:normal;vertical-align:middle}.rtmedia-container q,.rtmedia-activity-container q,#buddypress div.rtmedia-activity-container q,.rtmedia-container blockquote,.rtmedia-activity-container blockquote,#buddypress div.rtmedia-activity-container blockquote{quotes:none}.rtmedia-container q:before,.rtmedia-activity-container q:before,#buddypress div.rtmedia-activity-container q:before,.rtmedia-container q:after,.rtmedia-activity-container q:after,#buddypress div.rtmedia-activity-container q:after,.rtmedia-container blockquote:before,.rtmedia-activity-container blockquote:before,#buddypress div.rtmedia-activity-container blockquote:before,.rtmedia-container blockquote:after,.rtmedia-activity-container blockquote:after,#buddypress div.rtmedia-activity-container blockquote:after{content:"";content:none}.rtmedia-container a img,.rtmedia-activity-container a img,#buddypress div.rtmedia-activity-container a img{border:none}.rtmedia-container article,.rtmedia-activity-container article,#buddypress div.rtmedia-activity-container article,.rtmedia-container aside,.rtmedia-activity-container aside,#buddypress div.rtmedia-activity-container aside,.rtmedia-container details,.rtmedia-activity-container details,#buddypress div.rtmedia-activity-container details,.rtmedia-container figcaption,.rtmedia-activity-container figcaption,#buddypress div.rtmedia-activity-container figcaption,.rtmedia-container figure,.rtmedia-activity-container figure,#buddypress div.rtmedia-activity-container figure,.rtmedia-container footer,.rtmedia-activity-container footer,#buddypress div.rtmedia-activity-container footer,.rtmedia-container header,.rtmedia-activity-container header,#buddypress div.rtmedia-activity-container header,.rtmedia-container hgroup,.rtmedia-activity-container hgroup,#buddypress div.rtmedia-activity-container hgroup,.rtmedia-container menu,.rtmedia-activity-container menu,#buddypress div.rtmedia-activity-container menu,.rtmedia-container nav,.rtmedia-activity-container nav,#buddypress div.rtmedia-activity-container nav,.rtmedia-container section,.rtmedia-activity-container section,#buddypress div.rtmedia-activity-container section,.rtmedia-container summary,.rtmedia-activity-container summary,#buddypress div.rtmedia-activity-container summary{display:block}.rtmedia-container *,.rtmedia-activity-container *,#buddypress div.rtmedia-activity-container *,.rtmedia-container *:before,.rtmedia-activity-container *:before,#buddypress div.rtmedia-activity-container *:before,.rtmedia-container *:after,.rtmedia-activity-container *:after,#buddypress div.rtmedia-activity-container *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.rtmedia-container html,.rtmedia-activity-container html,#buddypress div.rtmedia-activity-container html,.rtmedia-container body,.rtmedia-activity-container body,#buddypress div.rtmedia-activity-container body{font-size:100%}.rtmedia-container body,.rtmedia-activity-container body,#buddypress div.rtmedia-activity-container body{background:#fff;color:#222;padding:0;margin:0;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;font-weight:normal;font-style:normal;line-height:1;position:relative;cursor:default}.rtmedia-container a:hover,.rtmedia-activity-container a:hover,#buddypress div.rtmedia-activity-container a:hover{cursor:pointer}.rtmedia-container a:focus,.rtmedia-activity-container a:focus,#buddypress div.rtmedia-activity-container a:focus{outline:none}.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img,.rtmedia-container object,.rtmedia-activity-container object,#buddypress div.rtmedia-activity-container object,.rtmedia-container embed,.rtmedia-activity-container embed,#buddypress div.rtmedia-activity-container embed{max-width:100%;height:auto}.rtmedia-container object,.rtmedia-activity-container object,#buddypress div.rtmedia-activity-container object,.rtmedia-container embed,.rtmedia-activity-container embed,#buddypress div.rtmedia-activity-container embed{height:100%}.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img{-ms-interpolation-mode:bicubic}.rtmedia-container #map_canvas img,.rtmedia-activity-container #map_canvas img,.rtmedia-container #map_canvas embed,.rtmedia-activity-container #map_canvas embed,.rtmedia-container #map_canvas object,.rtmedia-activity-container #map_canvas object,.rtmedia-container .map_canvas img,.rtmedia-activity-container .map_canvas img,#buddypress div.rtmedia-activity-container .map_canvas img,.rtmedia-container .map_canvas embed,.rtmedia-activity-container .map_canvas embed,#buddypress div.rtmedia-activity-container .map_canvas embed,.rtmedia-container .map_canvas object,.rtmedia-activity-container .map_canvas object,#buddypress div.rtmedia-activity-container .map_canvas object{max-width:none !important}.rtmedia-container .left,.rtmedia-activity-container .left,#buddypress div.rtmedia-activity-container .left{float:left !important}.rtmedia-container .right,.rtmedia-activity-container .right,#buddypress div.rtmedia-activity-container .right{float:right !important}.rtmedia-container .text-left,.rtmedia-activity-container .text-left,#buddypress div.rtmedia-activity-container .text-left{text-align:left !important}.rtmedia-container .text-right,.rtmedia-activity-container .text-right,#buddypress div.rtmedia-activity-container .text-right{text-align:right !important}.rtmedia-container .text-center,.rtmedia-activity-container .text-center,#buddypress div.rtmedia-activity-container .text-center{text-align:center !important}.rtmedia-container .text-justify,.rtmedia-activity-container .text-justify,#buddypress div.rtmedia-activity-container .text-justify{text-align:justify !important}.rtmedia-container .hide,.rtmedia-activity-container .hide,#buddypress div.rtmedia-activity-container .hide{display:none}.rtmedia-container .antialiased,.rtmedia-activity-container .antialiased,#buddypress div.rtmedia-activity-container .antialiased{-webkit-font-smoothing:antialiased}.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img{display:inline-block;vertical-align:middle}.rtmedia-container textarea,.rtmedia-activity-container textarea,#buddypress div.rtmedia-activity-container textarea{height:auto;min-height:50px}.rtmedia-container select,.rtmedia-activity-container select,#buddypress div.rtmedia-activity-container select{width:100%}.rtmedia-container .row,.rtmedia-activity-container .row,#buddypress div.rtmedia-activity-container .row{width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:62.5em;*zoom:1}.rtmedia-container .row:before,.rtmedia-activity-container .row:before,#buddypress div.rtmedia-activity-container .row:before,.rtmedia-container .row:after,.rtmedia-activity-container .row:after,#buddypress div.rtmedia-activity-container .row:after{content:" ";display:table}.rtmedia-container .row:after,.rtmedia-activity-container .row:after,#buddypress div.rtmedia-activity-container .row:after{clear:both}.rtmedia-container .row.collapse .column,.rtmedia-activity-container .row.collapse .column,#buddypress div.rtmedia-activity-container .row.collapse .column,.rtmedia-container .row.collapse .columns,.rtmedia-activity-container .row.collapse .columns,#buddypress div.rtmedia-activity-container .row.collapse .columns{position:relative;padding-left:0;padding-right:0;float:left}.rtmedia-container .row .row,.rtmedia-activity-container .row .row,#buddypress div.rtmedia-activity-container .row .row{width:auto;margin-left:-0.9375em;margin-right:-0.9375em;margin-top:0;margin-bottom:0;max-width:none;*zoom:1}.rtmedia-container .row .row:before,.rtmedia-activity-container .row .row:before,#buddypress div.rtmedia-activity-container .row .row:before,.rtmedia-container .row .row:after,.rtmedia-activity-container .row .row:after,#buddypress div.rtmedia-activity-container .row .row:after{content:" ";display:table}.rtmedia-container .row .row:after,.rtmedia-activity-container .row .row:after,#buddypress div.rtmedia-activity-container .row .row:after{clear:both}.rtmedia-container .row .row.collapse,.rtmedia-activity-container .row .row.collapse,#buddypress div.rtmedia-activity-container .row .row.collapse{width:auto;margin:0;max-width:none;*zoom:1}.rtmedia-container .row .row.collapse:before,.rtmedia-activity-container .row .row.collapse:before,#buddypress div.rtmedia-activity-container .row .row.collapse:before,.rtmedia-container .row .row.collapse:after,.rtmedia-activity-container .row .row.collapse:after,#buddypress div.rtmedia-activity-container .row .row.collapse:after{content:" ";display:table}.rtmedia-container .row .row.collapse:after,.rtmedia-activity-container .row .row.collapse:after,#buddypress div.rtmedia-activity-container .row .row.collapse:after{clear:both}.rtmedia-container .column,.rtmedia-activity-container .column,#buddypress div.rtmedia-activity-container .column,.rtmedia-container .columns,.rtmedia-activity-container .columns,#buddypress div.rtmedia-activity-container .columns{position:relative;padding-left:0.9375em;padding-right:0.9375em;width:100%;float:left}@media only screen{.rtmedia-container .column,.rtmedia-activity-container .column,#buddypress div.rtmedia-activity-container .column,.rtmedia-container .columns,.rtmedia-activity-container .columns,#buddypress div.rtmedia-activity-container .columns{position:relative;padding-left:0.9375em;padding-right:0.9375em;float:left}.rtmedia-container .small-1,.rtmedia-activity-container .small-1,#buddypress div.rtmedia-activity-container .small-1{position:relative;width:8.33333%}.rtmedia-container .small-2,.rtmedia-activity-container .small-2,#buddypress div.rtmedia-activity-container .small-2{position:relative;width:16.66667%}.rtmedia-container .small-3,.rtmedia-activity-container .small-3,#buddypress div.rtmedia-activity-container .small-3{position:relative;width:25%}.rtmedia-container .small-4,.rtmedia-activity-container .small-4,#buddypress div.rtmedia-activity-container .small-4{position:relative;width:33.33333%}.rtmedia-container .small-5,.rtmedia-activity-container .small-5,#buddypress div.rtmedia-activity-container .small-5{position:relative;width:41.66667%}.rtmedia-container .small-6,.rtmedia-activity-container .small-6,#buddypress div.rtmedia-activity-container .small-6{position:relative;width:50%}.rtmedia-container .small-7,.rtmedia-activity-container .small-7,#buddypress div.rtmedia-activity-container .small-7{position:relative;width:58.33333%}.rtmedia-container .small-8,.rtmedia-activity-container .small-8,#buddypress div.rtmedia-activity-container .small-8{position:relative;width:66.66667%}.rtmedia-container .small-9,.rtmedia-activity-container .small-9,#buddypress div.rtmedia-activity-container .small-9{position:relative;width:75%}.rtmedia-container .small-10,.rtmedia-activity-container .small-10,#buddypress div.rtmedia-activity-container .small-10{position:relative;width:83.33333%}.rtmedia-container .small-11,.rtmedia-activity-container .small-11,#buddypress div.rtmedia-activity-container .small-11{position:relative;width:91.66667%}.rtmedia-container .small-12,.rtmedia-activity-container .small-12,#buddypress div.rtmedia-activity-container .small-12{position:relative;width:100%}.rtmedia-container .small-offset-0,.rtmedia-activity-container .small-offset-0,#buddypress div.rtmedia-activity-container .small-offset-0{position:relative;margin-left:0%}.rtmedia-container .small-offset-1,.rtmedia-activity-container .small-offset-1,#buddypress div.rtmedia-activity-container .small-offset-1{position:relative;margin-left:8.33333%}.rtmedia-container .small-offset-2,.rtmedia-activity-container .small-offset-2,#buddypress div.rtmedia-activity-container .small-offset-2{position:relative;margin-left:16.66667%}.rtmedia-container .small-offset-3,.rtmedia-activity-container .small-offset-3,#buddypress div.rtmedia-activity-container .small-offset-3{position:relative;margin-left:25%}.rtmedia-container .small-offset-4,.rtmedia-activity-container .small-offset-4,#buddypress div.rtmedia-activity-container .small-offset-4{position:relative;margin-left:33.33333%}.rtmedia-container .small-offset-5,.rtmedia-activity-container .small-offset-5,#buddypress div.rtmedia-activity-container .small-offset-5{position:relative;margin-left:41.66667%}.rtmedia-container .small-offset-6,.rtmedia-activity-container .small-offset-6,#buddypress div.rtmedia-activity-container .small-offset-6{position:relative;margin-left:50%}.rtmedia-container .small-offset-7,.rtmedia-activity-container .small-offset-7,#buddypress div.rtmedia-activity-container .small-offset-7{position:relative;margin-left:58.33333%}.rtmedia-container .small-offset-8,.rtmedia-activity-container .small-offset-8,#buddypress div.rtmedia-activity-container .small-offset-8{position:relative;margin-left:66.66667%}.rtmedia-container .small-offset-9,.rtmedia-activity-container .small-offset-9,#buddypress div.rtmedia-activity-container .small-offset-9{position:relative;margin-left:75%}.rtmedia-container .small-offset-10,.rtmedia-activity-container .small-offset-10,#buddypress div.rtmedia-activity-container .small-offset-10{position:relative;margin-left:83.33333%}.rtmedia-container [class*="column"]+[class*="column"]:last-child,.rtmedia-activity-container [class*="column"]+[class*="column"]:last-child,#buddypress div.rtmedia-activity-container [class*="column"]+[class*="column"]:last-child{float:right}.rtmedia-container [class*="column"]+[class*="column"].end,.rtmedia-activity-container [class*="column"]+[class*="column"].end,#buddypress div.rtmedia-activity-container [class*="column"]+[class*="column"].end{float:left}.rtmedia-container .column.small-centered,.rtmedia-activity-container .column.small-centered,#buddypress div.rtmedia-activity-container .column.small-centered,.rtmedia-container .columns.small-centered,.rtmedia-activity-container .columns.small-centered,#buddypress div.rtmedia-activity-container .columns.small-centered{position:relative;margin-left:auto;margin-right:auto;float:none !important}}@media only screen and (min-width: 768px){.rtmedia-container .large-1,.rtmedia-activity-container .large-1,#buddypress div.rtmedia-activity-container .large-1{position:relative;width:8.33333%}.rtmedia-container .large-2,.rtmedia-activity-container .large-2,#buddypress div.rtmedia-activity-container .large-2{position:relative;width:16.66667%}.rtmedia-container .large-3,.rtmedia-activity-container .large-3,#buddypress div.rtmedia-activity-container .large-3{position:relative;width:25%}.rtmedia-container .large-4,.rtmedia-activity-container .large-4,#buddypress div.rtmedia-activity-container .large-4{position:relative;width:33.33333%}.rtmedia-container .large-5,.rtmedia-activity-container .large-5,#buddypress div.rtmedia-activity-container .large-5{position:relative;width:41.66667%}.rtmedia-container .large-6,.rtmedia-activity-container .large-6,#buddypress div.rtmedia-activity-container .large-6{position:relative;width:50%}.rtmedia-container .large-7,.rtmedia-activity-container .large-7,#buddypress div.rtmedia-activity-container .large-7{position:relative;width:58.33333%}.rtmedia-container .large-8,.rtmedia-activity-container .large-8,#buddypress div.rtmedia-activity-container .large-8{position:relative;width:66.66667%}.rtmedia-container .large-9,.rtmedia-activity-container .large-9,#buddypress div.rtmedia-activity-container .large-9{position:relative;width:75%}.rtmedia-container .large-10,.rtmedia-activity-container .large-10,#buddypress div.rtmedia-activity-container .large-10{position:relative;width:83.33333%}.rtmedia-container .large-11,.rtmedia-activity-container .large-11,#buddypress div.rtmedia-activity-container .large-11{position:relative;width:91.66667%}.rtmedia-container .large-12,.rtmedia-activity-container .large-12,#buddypress div.rtmedia-activity-container .large-12{position:relative;width:100%}.rtmedia-container .row .large-offset-0,.rtmedia-activity-container .row .large-offset-0,#buddypress div.rtmedia-activity-container .row .large-offset-0{position:relative;margin-left:0%}.rtmedia-container .row .large-offset-1,.rtmedia-activity-container .row .large-offset-1,#buddypress div.rtmedia-activity-container .row .large-offset-1{position:relative;margin-left:8.33333%}.rtmedia-container .row .large-offset-2,.rtmedia-activity-container .row .large-offset-2,#buddypress div.rtmedia-activity-container .row .large-offset-2{position:relative;margin-left:16.66667%}.rtmedia-container .row .large-offset-3,.rtmedia-activity-container .row .large-offset-3,#buddypress div.rtmedia-activity-container .row .large-offset-3{position:relative;margin-left:25%}.rtmedia-container .row .large-offset-4,.rtmedia-activity-container .row .large-offset-4,#buddypress div.rtmedia-activity-container .row .large-offset-4{position:relative;margin-left:33.33333%}.rtmedia-container .row .large-offset-5,.rtmedia-activity-container .row .large-offset-5,#buddypress div.rtmedia-activity-container .row .large-offset-5{position:relative;margin-left:41.66667%}.rtmedia-container .row .large-offset-6,.rtmedia-activity-container .row .large-offset-6,#buddypress div.rtmedia-activity-container .row .large-offset-6{position:relative;margin-left:50%}.rtmedia-container .row .large-offset-7,.rtmedia-activity-container .row .large-offset-7,#buddypress div.rtmedia-activity-container .row .large-offset-7{position:relative;margin-left:58.33333%}.rtmedia-container .row .large-offset-8,.rtmedia-activity-container .row .large-offset-8,#buddypress div.rtmedia-activity-container .row .large-offset-8{position:relative;margin-left:66.66667%}.rtmedia-container .row .large-offset-9,.rtmedia-activity-container .row .large-offset-9,#buddypress div.rtmedia-activity-container .row .large-offset-9{position:relative;margin-left:75%}.rtmedia-container .row .large-offset-10,.rtmedia-activity-container .row .large-offset-10,#buddypress div.rtmedia-activity-container .row .large-offset-10{position:relative;margin-left:83.33333%}.rtmedia-container .row .large-offset-11,.rtmedia-activity-container .row .large-offset-11,#buddypress div.rtmedia-activity-container .row .large-offset-11{position:relative;margin-left:91.66667%}.rtmedia-container .push-1,.rtmedia-activity-container .push-1,#buddypress div.rtmedia-activity-container .push-1{position:relative;left:8.33333%;right:auto}.rtmedia-container .pull-1,.rtmedia-activity-container .pull-1,#buddypress div.rtmedia-activity-container .pull-1{position:relative;right:8.33333%;left:auto}.rtmedia-container .push-2,.rtmedia-activity-container .push-2,#buddypress div.rtmedia-activity-container .push-2{position:relative;left:16.66667%;right:auto}.rtmedia-container .pull-2,.rtmedia-activity-container .pull-2,#buddypress div.rtmedia-activity-container .pull-2{position:relative;right:16.66667%;left:auto}.rtmedia-container .push-3,.rtmedia-activity-container .push-3,#buddypress div.rtmedia-activity-container .push-3{position:relative;left:25%;right:auto}.rtmedia-container .pull-3,.rtmedia-activity-container .pull-3,#buddypress div.rtmedia-activity-container .pull-3{position:relative;right:25%;left:auto}.rtmedia-container .push-4,.rtmedia-activity-container .push-4,#buddypress div.rtmedia-activity-container .push-4{position:relative;left:33.33333%;right:auto}.rtmedia-container .pull-4,.rtmedia-activity-container .pull-4,#buddypress div.rtmedia-activity-container .pull-4{position:relative;right:33.33333%;left:auto}.rtmedia-container .push-5,.rtmedia-activity-container .push-5,#buddypress div.rtmedia-activity-container .push-5{position:relative;left:41.66667%;right:auto}.rtmedia-container .pull-5,.rtmedia-activity-container .pull-5,#buddypress div.rtmedia-activity-container .pull-5{position:relative;right:41.66667%;left:auto}.rtmedia-container .push-6,.rtmedia-activity-container .push-6,#buddypress div.rtmedia-activity-container .push-6{position:relative;left:50%;right:auto}.rtmedia-container .pull-6,.rtmedia-activity-container .pull-6,#buddypress div.rtmedia-activity-container .pull-6{position:relative;right:50%;left:auto}.rtmedia-container .push-7,.rtmedia-activity-container .push-7,#buddypress div.rtmedia-activity-container .push-7{position:relative;left:58.33333%;right:auto}.rtmedia-container .pull-7,.rtmedia-activity-container .pull-7,#buddypress div.rtmedia-activity-container .pull-7{position:relative;right:58.33333%;left:auto}.rtmedia-container .push-8,.rtmedia-activity-container .push-8,#buddypress div.rtmedia-activity-container .push-8{position:relative;left:66.66667%;right:auto}.rtmedia-container .pull-8,.rtmedia-activity-container .pull-8,#buddypress div.rtmedia-activity-container .pull-8{position:relative;right:66.66667%;left:auto}.rtmedia-container .push-9,.rtmedia-activity-container .push-9,#buddypress div.rtmedia-activity-container .push-9{position:relative;left:75%;right:auto}.rtmedia-container .pull-9,.rtmedia-activity-container .pull-9,#buddypress div.rtmedia-activity-container .pull-9{position:relative;right:75%;left:auto}.rtmedia-container .push-10,.rtmedia-activity-container .push-10,#buddypress div.rtmedia-activity-container .push-10{position:relative;left:83.33333%;right:auto}.rtmedia-container .pull-10,.rtmedia-activity-container .pull-10,#buddypress div.rtmedia-activity-container .pull-10{position:relative;right:83.33333%;left:auto}.rtmedia-container .push-11,.rtmedia-activity-container .push-11,#buddypress div.rtmedia-activity-container .push-11{position:relative;left:91.66667%;right:auto}.rtmedia-container .pull-11,.rtmedia-activity-container .pull-11,#buddypress div.rtmedia-activity-container .pull-11{position:relative;right:91.66667%;left:auto}.rtmedia-container .column.large-centered,.rtmedia-activity-container .column.large-centered,#buddypress div.rtmedia-activity-container .column.large-centered,.rtmedia-container .columns.large-centered,.rtmedia-activity-container .columns.large-centered,#buddypress div.rtmedia-activity-container .columns.large-centered{position:relative;margin-left:auto;margin-right:auto;float:none !important}.rtmedia-container .column.large-uncentered,.rtmedia-activity-container .column.large-uncentered,#buddypress div.rtmedia-activity-container .column.large-uncentered,.rtmedia-container .columns.large-uncentered,.rtmedia-activity-container .columns.large-uncentered,#buddypress div.rtmedia-activity-container .columns.large-uncentered{margin-left:0;margin-right:0;float:left !important}.rtmedia-container .column.large-uncentered.opposite,.rtmedia-activity-container .column.large-uncentered.opposite,#buddypress div.rtmedia-activity-container .column.large-uncentered.opposite,.rtmedia-container .columns.large-uncentered.opposite,.rtmedia-activity-container .columns.large-uncentered.opposite,#buddypress div.rtmedia-activity-container .columns.large-uncentered.opposite{float:right !important}}.rtmedia-container .show-for-small,.rtmedia-activity-container .show-for-small,#buddypress div.rtmedia-activity-container .show-for-small,.rtmedia-container .show-for-medium-down,.rtmedia-activity-container .show-for-medium-down,#buddypress div.rtmedia-activity-container .show-for-medium-down,.rtmedia-container .show-for-large-down,.rtmedia-activity-container .show-for-large-down,#buddypress div.rtmedia-activity-container .show-for-large-down{display:inherit !important}.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,#buddypress div.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-up,.rtmedia-activity-container .show-for-medium-up,#buddypress div.rtmedia-activity-container .show-for-medium-up,.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,#buddypress div.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-up,.rtmedia-activity-container .show-for-large-up,#buddypress div.rtmedia-activity-container .show-for-large-up,.rtmedia-container .show-for-xlarge,.rtmedia-activity-container .show-for-xlarge,#buddypress div.rtmedia-activity-container .show-for-xlarge{display:none !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,#buddypress div.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-up,.rtmedia-activity-container .hide-for-medium-up,#buddypress div.rtmedia-activity-container .hide-for-medium-up,.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,#buddypress div.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-up,.rtmedia-activity-container .hide-for-large-up,#buddypress div.rtmedia-activity-container .hide-for-large-up,.rtmedia-container .hide-for-xlarge,.rtmedia-activity-container .hide-for-xlarge,#buddypress div.rtmedia-activity-container .hide-for-xlarge{display:inherit !important}.rtmedia-container .hide-for-small,.rtmedia-activity-container .hide-for-small,#buddypress div.rtmedia-activity-container .hide-for-small,.rtmedia-container .hide-for-medium-down,.rtmedia-activity-container .hide-for-medium-down,#buddypress div.rtmedia-activity-container .hide-for-medium-down,.rtmedia-container .hide-for-large-down,.rtmedia-activity-container .hide-for-large-down,#buddypress div.rtmedia-activity-container .hide-for-large-down{display:none !important}.rtmedia-container table.show-for-small,.rtmedia-activity-container table.show-for-small,#buddypress div.rtmedia-activity-container table.show-for-small,.rtmedia-container table.show-for-medium-down,.rtmedia-activity-container table.show-for-medium-down,#buddypress div.rtmedia-activity-container table.show-for-medium-down,.rtmedia-container table.show-for-large-down,.rtmedia-activity-container table.show-for-large-down,#buddypress div.rtmedia-activity-container table.show-for-large-down,.rtmedia-container table.hide-for-medium,.rtmedia-activity-container table.hide-for-medium,#buddypress div.rtmedia-activity-container table.hide-for-medium,.rtmedia-container table.hide-for-medium-up,.rtmedia-activity-container table.hide-for-medium-up,#buddypress div.rtmedia-activity-container table.hide-for-medium-up,.rtmedia-container table.hide-for-large,.rtmedia-activity-container table.hide-for-large,#buddypress div.rtmedia-activity-container table.hide-for-large,.rtmedia-container table.hide-for-large-up,.rtmedia-activity-container table.hide-for-large-up,#buddypress div.rtmedia-activity-container table.hide-for-large-up,.rtmedia-container table.hide-for-xlarge,.rtmedia-activity-container table.hide-for-xlarge,#buddypress div.rtmedia-activity-container table.hide-for-xlarge{display:table}.rtmedia-container thead.show-for-small,.rtmedia-activity-container thead.show-for-small,#buddypress div.rtmedia-activity-container thead.show-for-small,.rtmedia-container thead.show-for-medium-down,.rtmedia-activity-container thead.show-for-medium-down,#buddypress div.rtmedia-activity-container thead.show-for-medium-down,.rtmedia-container thead.show-for-large-down,.rtmedia-activity-container thead.show-for-large-down,#buddypress div.rtmedia-activity-container thead.show-for-large-down,.rtmedia-container thead.hide-for-medium,.rtmedia-activity-container thead.hide-for-medium,#buddypress div.rtmedia-activity-container thead.hide-for-medium,.rtmedia-container thead.hide-for-medium-up,.rtmedia-activity-container thead.hide-for-medium-up,#buddypress div.rtmedia-activity-container thead.hide-for-medium-up,.rtmedia-container thead.hide-for-large,.rtmedia-activity-container thead.hide-for-large,#buddypress div.rtmedia-activity-container thead.hide-for-large,.rtmedia-container thead.hide-for-large-up,.rtmedia-activity-container thead.hide-for-large-up,#buddypress div.rtmedia-activity-container thead.hide-for-large-up,.rtmedia-container thead.hide-for-xlarge,.rtmedia-activity-container thead.hide-for-xlarge,#buddypress div.rtmedia-activity-container thead.hide-for-xlarge{display:table-header-group !important}.rtmedia-container tbody.show-for-small,.rtmedia-activity-container tbody.show-for-small,#buddypress div.rtmedia-activity-container tbody.show-for-small,.rtmedia-container tbody.show-for-medium-down,.rtmedia-activity-container tbody.show-for-medium-down,#buddypress div.rtmedia-activity-container tbody.show-for-medium-down,.rtmedia-container tbody.show-for-large-down,.rtmedia-activity-container tbody.show-for-large-down,#buddypress div.rtmedia-activity-container tbody.show-for-large-down,.rtmedia-container tbody.hide-for-medium,.rtmedia-activity-container tbody.hide-for-medium,#buddypress div.rtmedia-activity-container tbody.hide-for-medium,.rtmedia-container tbody.hide-for-medium-up,.rtmedia-activity-container tbody.hide-for-medium-up,#buddypress div.rtmedia-activity-container tbody.hide-for-medium-up,.rtmedia-container tbody.hide-for-large,.rtmedia-activity-container tbody.hide-for-large,#buddypress div.rtmedia-activity-container tbody.hide-for-large,.rtmedia-container tbody.hide-for-large-up,.rtmedia-activity-container tbody.hide-for-large-up,#buddypress div.rtmedia-activity-container tbody.hide-for-large-up,.rtmedia-container tbody.hide-for-xlarge,.rtmedia-activity-container tbody.hide-for-xlarge,#buddypress div.rtmedia-activity-container tbody.hide-for-xlarge{display:table-row-group !important}.rtmedia-container tr.show-for-small,.rtmedia-activity-container tr.show-for-small,#buddypress div.rtmedia-activity-container tr.show-for-small,.rtmedia-container tr.show-for-medium-down,.rtmedia-activity-container tr.show-for-medium-down,#buddypress div.rtmedia-activity-container tr.show-for-medium-down,.rtmedia-container tr.show-for-large-down,.rtmedia-activity-container tr.show-for-large-down,#buddypress div.rtmedia-activity-container tr.show-for-large-down,.rtmedia-container tr.hide-for-medium,.rtmedia-activity-container tr.hide-for-medium,#buddypress div.rtmedia-activity-container tr.hide-for-medium,.rtmedia-container tr.hide-for-medium-up,.rtmedia-activity-container tr.hide-for-medium-up,#buddypress div.rtmedia-activity-container tr.hide-for-medium-up,.rtmedia-container tr.hide-for-large,.rtmedia-activity-container tr.hide-for-large,#buddypress div.rtmedia-activity-container tr.hide-for-large,.rtmedia-container tr.hide-for-large-up,.rtmedia-activity-container tr.hide-for-large-up,#buddypress div.rtmedia-activity-container tr.hide-for-large-up,.rtmedia-container tr.hide-for-xlarge,.rtmedia-activity-container tr.hide-for-xlarge,#buddypress div.rtmedia-activity-container tr.hide-for-xlarge{display:table-row !important}.rtmedia-container td.show-for-small,.rtmedia-activity-container td.show-for-small,#buddypress div.rtmedia-activity-container td.show-for-small,.rtmedia-container td.show-for-medium-down,.rtmedia-activity-container td.show-for-medium-down,#buddypress div.rtmedia-activity-container td.show-for-medium-down,.rtmedia-container td.show-for-large-down,.rtmedia-activity-container td.show-for-large-down,#buddypress div.rtmedia-activity-container td.show-for-large-down,.rtmedia-container td.hide-for-medium,.rtmedia-activity-container td.hide-for-medium,#buddypress div.rtmedia-activity-container td.hide-for-medium,.rtmedia-container td.hide-for-medium-up,.rtmedia-activity-container td.hide-for-medium-up,#buddypress div.rtmedia-activity-container td.hide-for-medium-up,.rtmedia-container td.hide-for-large,.rtmedia-activity-container td.hide-for-large,#buddypress div.rtmedia-activity-container td.hide-for-large,.rtmedia-container td.hide-for-large-up,.rtmedia-activity-container td.hide-for-large-up,#buddypress div.rtmedia-activity-container td.hide-for-large-up,.rtmedia-container td.hide-for-xlarge,.rtmedia-activity-container td.hide-for-xlarge,#buddypress div.rtmedia-activity-container td.hide-for-xlarge,.rtmedia-container th.show-for-small,.rtmedia-activity-container th.show-for-small,#buddypress div.rtmedia-activity-container th.show-for-small,.rtmedia-container th.show-for-medium-down,.rtmedia-activity-container th.show-for-medium-down,#buddypress div.rtmedia-activity-container th.show-for-medium-down,.rtmedia-container th.show-for-large-down,.rtmedia-activity-container th.show-for-large-down,#buddypress div.rtmedia-activity-container th.show-for-large-down,.rtmedia-container th.hide-for-medium,.rtmedia-activity-container th.hide-for-medium,#buddypress div.rtmedia-activity-container th.hide-for-medium,.rtmedia-container th.hide-for-medium-up,.rtmedia-activity-container th.hide-for-medium-up,#buddypress div.rtmedia-activity-container th.hide-for-medium-up,.rtmedia-container th.hide-for-large,.rtmedia-activity-container th.hide-for-large,#buddypress div.rtmedia-activity-container th.hide-for-large,.rtmedia-container th.hide-for-large-up,.rtmedia-activity-container th.hide-for-large-up,#buddypress div.rtmedia-activity-container th.hide-for-large-up,.rtmedia-container th.hide-for-xlarge,.rtmedia-activity-container th.hide-for-xlarge,#buddypress div.rtmedia-activity-container th.hide-for-xlarge{display:table-cell !important}@media only screen and (min-width: 768px){.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,#buddypress div.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-up,.rtmedia-activity-container .show-for-medium-up,#buddypress div.rtmedia-activity-container .show-for-medium-up{display:inherit !important}.rtmedia-container .show-for-small,.rtmedia-activity-container .show-for-small,#buddypress div.rtmedia-activity-container .show-for-small{display:none !important}.rtmedia-container .hide-for-small,.rtmedia-activity-container .hide-for-small,#buddypress div.rtmedia-activity-container .hide-for-small{display:inherit !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,#buddypress div.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-up,.rtmedia-activity-container .hide-for-medium-up,#buddypress div.rtmedia-activity-container .hide-for-medium-up{display:none !important}.rtmedia-container table.show-for-medium,.rtmedia-activity-container table.show-for-medium,#buddypress div.rtmedia-activity-container table.show-for-medium,.rtmedia-container table.show-for-medium-up,.rtmedia-activity-container table.show-for-medium-up,#buddypress div.rtmedia-activity-container table.show-for-medium-up,.rtmedia-container table.hide-for-small,.rtmedia-activity-container table.hide-for-small,#buddypress div.rtmedia-activity-container table.hide-for-small{display:table}.rtmedia-container thead.show-for-medium,.rtmedia-activity-container thead.show-for-medium,#buddypress div.rtmedia-activity-container thead.show-for-medium,.rtmedia-container thead.show-for-medium-up,.rtmedia-activity-container thead.show-for-medium-up,#buddypress div.rtmedia-activity-container thead.show-for-medium-up,.rtmedia-container thead.hide-for-small,.rtmedia-activity-container thead.hide-for-small,#buddypress div.rtmedia-activity-container thead.hide-for-small{display:table-header-group !important}.rtmedia-container tbody.show-for-medium,.rtmedia-activity-container tbody.show-for-medium,#buddypress div.rtmedia-activity-container tbody.show-for-medium,.rtmedia-container tbody.show-for-medium-up,.rtmedia-activity-container tbody.show-for-medium-up,#buddypress div.rtmedia-activity-container tbody.show-for-medium-up,.rtmedia-container tbody.hide-for-small,.rtmedia-activity-container tbody.hide-for-small,#buddypress div.rtmedia-activity-container tbody.hide-for-small{display:table-row-group !important}.rtmedia-container tr.show-for-medium,.rtmedia-activity-container tr.show-for-medium,#buddypress div.rtmedia-activity-container tr.show-for-medium,.rtmedia-container tr.show-for-medium-up,.rtmedia-activity-container tr.show-for-medium-up,#buddypress div.rtmedia-activity-container tr.show-for-medium-up,.rtmedia-container tr.hide-for-small,.rtmedia-activity-container tr.hide-for-small,#buddypress div.rtmedia-activity-container tr.hide-for-small{display:table-row !important}.rtmedia-container td.show-for-medium,.rtmedia-activity-container td.show-for-medium,#buddypress div.rtmedia-activity-container td.show-for-medium,.rtmedia-container td.show-for-medium-up,.rtmedia-activity-container td.show-for-medium-up,#buddypress div.rtmedia-activity-container td.show-for-medium-up,.rtmedia-container td.hide-for-small,.rtmedia-activity-container td.hide-for-small,#buddypress div.rtmedia-activity-container td.hide-for-small,.rtmedia-container th.show-for-medium,.rtmedia-activity-container th.show-for-medium,#buddypress div.rtmedia-activity-container th.show-for-medium,.rtmedia-container th.show-for-medium-up,.rtmedia-activity-container th.show-for-medium-up,#buddypress div.rtmedia-activity-container th.show-for-medium-up,.rtmedia-container th.hide-for-small,.rtmedia-activity-container th.hide-for-small,#buddypress div.rtmedia-activity-container th.hide-for-small{display:table-cell !important}}@media only screen and (min-width: 1280px){.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,#buddypress div.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-up,.rtmedia-activity-container .show-for-large-up,#buddypress div.rtmedia-activity-container .show-for-large-up{display:inherit !important}.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,#buddypress div.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-down,.rtmedia-activity-container .show-for-medium-down,#buddypress div.rtmedia-activity-container .show-for-medium-down{display:none !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,#buddypress div.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-down,.rtmedia-activity-container .hide-for-medium-down,#buddypress div.rtmedia-activity-container .hide-for-medium-down{display:inherit !important}.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,#buddypress div.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-up,.rtmedia-activity-container .hide-for-large-up,#buddypress div.rtmedia-activity-container .hide-for-large-up{display:none !important}.rtmedia-container table.show-for-large,.rtmedia-activity-container table.show-for-large,#buddypress div.rtmedia-activity-container table.show-for-large,.rtmedia-container table.show-for-large-up,.rtmedia-activity-container table.show-for-large-up,#buddypress div.rtmedia-activity-container table.show-for-large-up,.rtmedia-container table.hide-for-medium,.rtmedia-activity-container table.hide-for-medium,#buddypress div.rtmedia-activity-container table.hide-for-medium,.rtmedia-container table.hide-for-medium-down,.rtmedia-activity-container table.hide-for-medium-down,#buddypress div.rtmedia-activity-container table.hide-for-medium-down{display:table}.rtmedia-container thead.show-for-large,.rtmedia-activity-container thead.show-for-large,#buddypress div.rtmedia-activity-container thead.show-for-large,.rtmedia-container thead.show-for-large-up,.rtmedia-activity-container thead.show-for-large-up,#buddypress div.rtmedia-activity-container thead.show-for-large-up,.rtmedia-container thead.hide-for-medium,.rtmedia-activity-container thead.hide-for-medium,#buddypress div.rtmedia-activity-container thead.hide-for-medium,.rtmedia-container thead.hide-for-medium-down,.rtmedia-activity-container thead.hide-for-medium-down,#buddypress div.rtmedia-activity-container thead.hide-for-medium-down{display:table-header-group !important}.rtmedia-container tbody.show-for-large,.rtmedia-activity-container tbody.show-for-large,#buddypress div.rtmedia-activity-container tbody.show-for-large,.rtmedia-container tbody.show-for-large-up,.rtmedia-activity-container tbody.show-for-large-up,#buddypress div.rtmedia-activity-container tbody.show-for-large-up,.rtmedia-container tbody.hide-for-medium,.rtmedia-activity-container tbody.hide-for-medium,#buddypress div.rtmedia-activity-container tbody.hide-for-medium,.rtmedia-container tbody.hide-for-medium-down,.rtmedia-activity-container tbody.hide-for-medium-down,#buddypress div.rtmedia-activity-container tbody.hide-for-medium-down{display:table-row-group !important}.rtmedia-container tr.show-for-large,.rtmedia-activity-container tr.show-for-large,#buddypress div.rtmedia-activity-container tr.show-for-large,.rtmedia-container tr.show-for-large-up,.rtmedia-activity-container tr.show-for-large-up,#buddypress div.rtmedia-activity-container tr.show-for-large-up,.rtmedia-container tr.hide-for-medium,.rtmedia-activity-container tr.hide-for-medium,#buddypress div.rtmedia-activity-container tr.hide-for-medium,.rtmedia-container tr.hide-for-medium-down,.rtmedia-activity-container tr.hide-for-medium-down,#buddypress div.rtmedia-activity-container tr.hide-for-medium-down{display:table-row !important}.rtmedia-container td.show-for-large,.rtmedia-activity-container td.show-for-large,#buddypress div.rtmedia-activity-container td.show-for-large,.rtmedia-container td.show-for-large-up,.rtmedia-activity-container td.show-for-large-up,#buddypress div.rtmedia-activity-container td.show-for-large-up,.rtmedia-container td.hide-for-medium,.rtmedia-activity-container td.hide-for-medium,#buddypress div.rtmedia-activity-container td.hide-for-medium,.rtmedia-container td.hide-for-medium-down,.rtmedia-activity-container td.hide-for-medium-down,#buddypress div.rtmedia-activity-container td.hide-for-medium-down,.rtmedia-container th.show-for-large,.rtmedia-activity-container th.show-for-large,#buddypress div.rtmedia-activity-container th.show-for-large,.rtmedia-container th.show-for-large-up,.rtmedia-activity-container th.show-for-large-up,#buddypress div.rtmedia-activity-container th.show-for-large-up,.rtmedia-container th.hide-for-medium,.rtmedia-activity-container th.hide-for-medium,#buddypress div.rtmedia-activity-container th.hide-for-medium,.rtmedia-container th.hide-for-medium-down,.rtmedia-activity-container th.hide-for-medium-down,#buddypress div.rtmedia-activity-container th.hide-for-medium-down{display:table-cell !important}}@media only screen and (min-width: 1440px){.rtmedia-container .show-for-xlarge,.rtmedia-activity-container .show-for-xlarge,#buddypress div.rtmedia-activity-container .show-for-xlarge{display:inherit !important}.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,#buddypress div.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-down,.rtmedia-activity-container .show-for-large-down,#buddypress div.rtmedia-activity-container .show-for-large-down{display:none !important}.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,#buddypress div.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-down,.rtmedia-activity-container .hide-for-large-down,#buddypress div.rtmedia-activity-container .hide-for-large-down{display:inherit !important}.rtmedia-container .hide-for-xlarge,.rtmedia-activity-container .hide-for-xlarge,#buddypress div.rtmedia-activity-container .hide-for-xlarge{display:none !important}.rtmedia-container table.show-for-xlarge,.rtmedia-activity-container table.show-for-xlarge,#buddypress div.rtmedia-activity-container table.show-for-xlarge,.rtmedia-container table.hide-for-large,.rtmedia-activity-container table.hide-for-large,#buddypress div.rtmedia-activity-container table.hide-for-large,.rtmedia-container table.hide-for-large-down,.rtmedia-activity-container table.hide-for-large-down,#buddypress div.rtmedia-activity-container table.hide-for-large-down{display:table}.rtmedia-container thead.show-for-xlarge,.rtmedia-activity-container thead.show-for-xlarge,#buddypress div.rtmedia-activity-container thead.show-for-xlarge,.rtmedia-container thead.hide-for-large,.rtmedia-activity-container thead.hide-for-large,#buddypress div.rtmedia-activity-container thead.hide-for-large,.rtmedia-container thead.hide-for-large-down,.rtmedia-activity-container thead.hide-for-large-down,#buddypress div.rtmedia-activity-container thead.hide-for-large-down{display:table-header-group !important}.rtmedia-container tbody.show-for-xlarge,.rtmedia-activity-container tbody.show-for-xlarge,#buddypress div.rtmedia-activity-container tbody.show-for-xlarge,.rtmedia-container tbody.hide-for-large,.rtmedia-activity-container tbody.hide-for-large,#buddypress div.rtmedia-activity-container tbody.hide-for-large,.rtmedia-container tbody.hide-for-large-down,.rtmedia-activity-container tbody.hide-for-large-down,#buddypress div.rtmedia-activity-container tbody.hide-for-large-down{display:table-row-group !important}.rtmedia-container tr.show-for-xlarge,.rtmedia-activity-container tr.show-for-xlarge,#buddypress div.rtmedia-activity-container tr.show-for-xlarge,.rtmedia-container tr.hide-for-large,.rtmedia-activity-container tr.hide-for-large,#buddypress div.rtmedia-activity-container tr.hide-for-large,.rtmedia-container tr.hide-for-large-down,.rtmedia-activity-container tr.hide-for-large-down,#buddypress div.rtmedia-activity-container tr.hide-for-large-down{display:table-row !important}.rtmedia-container td.show-for-xlarge,.rtmedia-activity-container td.show-for-xlarge,#buddypress div.rtmedia-activity-container td.show-for-xlarge,.rtmedia-container td.hide-for-large,.rtmedia-activity-container td.hide-for-large,#buddypress div.rtmedia-activity-container td.hide-for-large,.rtmedia-container td.hide-for-large-down,.rtmedia-activity-container td.hide-for-large-down,#buddypress div.rtmedia-activity-container td.hide-for-large-down,.rtmedia-container th.show-for-xlarge,.rtmedia-activity-container th.show-for-xlarge,#buddypress div.rtmedia-activity-container th.show-for-xlarge,.rtmedia-container th.hide-for-large,.rtmedia-activity-container th.hide-for-large,#buddypress div.rtmedia-activity-container th.hide-for-large,.rtmedia-container th.hide-for-large-down,.rtmedia-activity-container th.hide-for-large-down,#buddypress div.rtmedia-activity-container th.hide-for-large-down{display:table-cell !important}}.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,#buddypress div.rtmedia-activity-container .show-for-landscape,.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,#buddypress div.rtmedia-activity-container .hide-for-portrait{display:inherit !important}.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,#buddypress div.rtmedia-activity-container .hide-for-landscape,.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait,#buddypress div.rtmedia-activity-container .show-for-portrait{display:none !important}.rtmedia-container table.hide-for-landscape,.rtmedia-activity-container table.hide-for-landscape,#buddypress div.rtmedia-activity-container table.hide-for-landscape,.rtmedia-container table.show-for-portrait,.rtmedia-activity-container table.show-for-portrait,#buddypress div.rtmedia-activity-container table.show-for-portrait{display:table}.rtmedia-container thead.hide-for-landscape,.rtmedia-activity-container thead.hide-for-landscape,#buddypress div.rtmedia-activity-container thead.hide-for-landscape,.rtmedia-container thead.show-for-portrait,.rtmedia-activity-container thead.show-for-portrait,#buddypress div.rtmedia-activity-container thead.show-for-portrait{display:table-header-group !important}.rtmedia-container tbody.hide-for-landscape,.rtmedia-activity-container tbody.hide-for-landscape,#buddypress div.rtmedia-activity-container tbody.hide-for-landscape,.rtmedia-container tbody.show-for-portrait,.rtmedia-activity-container tbody.show-for-portrait,#buddypress div.rtmedia-activity-container tbody.show-for-portrait{display:table-row-group !important}.rtmedia-container tr.hide-for-landscape,.rtmedia-activity-container tr.hide-for-landscape,#buddypress div.rtmedia-activity-container tr.hide-for-landscape,.rtmedia-container tr.show-for-portrait,.rtmedia-activity-container tr.show-for-portrait,#buddypress div.rtmedia-activity-container tr.show-for-portrait{display:table-row !important}.rtmedia-container td.hide-for-landscape,.rtmedia-activity-container td.hide-for-landscape,#buddypress div.rtmedia-activity-container td.hide-for-landscape,.rtmedia-container td.show-for-portrait,.rtmedia-activity-container td.show-for-portrait,#buddypress div.rtmedia-activity-container td.show-for-portrait,.rtmedia-container th.hide-for-landscape,.rtmedia-activity-container th.hide-for-landscape,#buddypress div.rtmedia-activity-container th.hide-for-landscape,.rtmedia-container th.show-for-portrait,.rtmedia-activity-container th.show-for-portrait,#buddypress div.rtmedia-activity-container th.show-for-portrait{display:table-cell !important}@media only screen and (orientation: landscape){.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,#buddypress div.rtmedia-activity-container .show-for-landscape,.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,#buddypress div.rtmedia-activity-container .hide-for-portrait{display:inherit !important}.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,#buddypress div.rtmedia-activity-container .hide-for-landscape,.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait,#buddypress div.rtmedia-activity-container .show-for-portrait{display:none !important}.rtmedia-container table.show-for-landscape,.rtmedia-activity-container table.show-for-landscape,#buddypress div.rtmedia-activity-container table.show-for-landscape,.rtmedia-container table.hide-for-portrait,.rtmedia-activity-container table.hide-for-portrait,#buddypress div.rtmedia-activity-container table.hide-for-portrait{display:table}.rtmedia-container thead.show-for-landscape,.rtmedia-activity-container thead.show-for-landscape,#buddypress div.rtmedia-activity-container thead.show-for-landscape,.rtmedia-container thead.hide-for-portrait,.rtmedia-activity-container thead.hide-for-portrait,#buddypress div.rtmedia-activity-container thead.hide-for-portrait{display:table-header-group !important}.rtmedia-container tbody.show-for-landscape,.rtmedia-activity-container tbody.show-for-landscape,#buddypress div.rtmedia-activity-container tbody.show-for-landscape,.rtmedia-container tbody.hide-for-portrait,.rtmedia-activity-container tbody.hide-for-portrait,#buddypress div.rtmedia-activity-container tbody.hide-for-portrait{display:table-row-group !important}.rtmedia-container tr.show-for-landscape,.rtmedia-activity-container tr.show-for-landscape,#buddypress div.rtmedia-activity-container tr.show-for-landscape,.rtmedia-container tr.hide-for-portrait,.rtmedia-activity-container tr.hide-for-portrait,#buddypress div.rtmedia-activity-container tr.hide-for-portrait{display:table-row !important}.rtmedia-container td.show-for-landscape,.rtmedia-activity-container td.show-for-landscape,#buddypress div.rtmedia-activity-container td.show-for-landscape,.rtmedia-container td.hide-for-portrait,.rtmedia-activity-container td.hide-for-portrait,#buddypress div.rtmedia-activity-container td.hide-for-portrait,.rtmedia-container th.show-for-landscape,.rtmedia-activity-container th.show-for-landscape,#buddypress div.rtmedia-activity-container th.show-for-landscape,.rtmedia-container th.hide-for-portrait,.rtmedia-activity-container th.hide-for-portrait,#buddypress div.rtmedia-activity-container th.hide-for-portrait{display:table-cell !important}}@media only screen and (orientation: portrait){.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait,#buddypress div.rtmedia-activity-container .show-for-portrait,.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,#buddypress div.rtmedia-activity-container .hide-for-landscape{display:inherit !important}.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,#buddypress div.rtmedia-activity-container .hide-for-portrait,.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,#buddypress div.rtmedia-activity-container .show-for-landscape{display:none !important}.rtmedia-container table.show-for-portrait,.rtmedia-activity-container table.show-for-portrait,#buddypress div.rtmedia-activity-container table.show-for-portrait,.rtmedia-container table.hide-for-landscape,.rtmedia-activity-container table.hide-for-landscape,#buddypress div.rtmedia-activity-container table.hide-for-landscape{display:table}.rtmedia-container thead.show-for-portrait,.rtmedia-activity-container thead.show-for-portrait,#buddypress div.rtmedia-activity-container thead.show-for-portrait,.rtmedia-container thead.hide-for-landscape,.rtmedia-activity-container thead.hide-for-landscape,#buddypress div.rtmedia-activity-container thead.hide-for-landscape{display:table-header-group !important}.rtmedia-container tbody.show-for-portrait,.rtmedia-activity-container tbody.show-for-portrait,#buddypress div.rtmedia-activity-container tbody.show-for-portrait,.rtmedia-container tbody.hide-for-landscape,.rtmedia-activity-container tbody.hide-for-landscape,#buddypress div.rtmedia-activity-container tbody.hide-for-landscape{display:table-row-group !important}.rtmedia-container tr.show-for-portrait,.rtmedia-activity-container tr.show-for-portrait,#buddypress div.rtmedia-activity-container tr.show-for-portrait,.rtmedia-container tr.hide-for-landscape,.rtmedia-activity-container tr.hide-for-landscape,#buddypress div.rtmedia-activity-container tr.hide-for-landscape{display:table-row !important}.rtmedia-container td.show-for-portrait,.rtmedia-activity-container td.show-for-portrait,#buddypress div.rtmedia-activity-container td.show-for-portrait,.rtmedia-container td.hide-for-landscape,.rtmedia-activity-container td.hide-for-landscape,#buddypress div.rtmedia-activity-container td.hide-for-landscape,.rtmedia-container th.show-for-portrait,.rtmedia-activity-container th.show-for-portrait,#buddypress div.rtmedia-activity-container th.show-for-portrait,.rtmedia-container th.hide-for-landscape,.rtmedia-activity-container th.hide-for-landscape,#buddypress div.rtmedia-activity-container th.hide-for-landscape{display:table-cell !important}}.rtmedia-container .show-for-touch,.rtmedia-activity-container .show-for-touch,#buddypress div.rtmedia-activity-container .show-for-touch{display:none !important}.rtmedia-container .hide-for-touch,.rtmedia-activity-container .hide-for-touch,#buddypress div.rtmedia-activity-container .hide-for-touch{display:inherit !important}.rtmedia-container .touch .show-for-touch,.rtmedia-activity-container .touch .show-for-touch,#buddypress div.rtmedia-activity-container .touch .show-for-touch{display:inherit !important}.rtmedia-container .touch .hide-for-touch,.rtmedia-activity-container .touch .hide-for-touch,#buddypress div.rtmedia-activity-container .touch .hide-for-touch{display:none !important}.rtmedia-container table.hide-for-touch,.rtmedia-activity-container table.hide-for-touch,#buddypress div.rtmedia-activity-container table.hide-for-touch{display:table}.rtmedia-container .touch table.show-for-touch,.rtmedia-activity-container .touch table.show-for-touch,#buddypress div.rtmedia-activity-container .touch table.show-for-touch{display:table}.rtmedia-container thead.hide-for-touch,.rtmedia-activity-container thead.hide-for-touch,#buddypress div.rtmedia-activity-container thead.hide-for-touch{display:table-header-group !important}.rtmedia-container .touch thead.show-for-touch,.rtmedia-activity-container .touch thead.show-for-touch,#buddypress div.rtmedia-activity-container .touch thead.show-for-touch{display:table-header-group !important}.rtmedia-container tbody.hide-for-touch,.rtmedia-activity-container tbody.hide-for-touch,#buddypress div.rtmedia-activity-container tbody.hide-for-touch{display:table-row-group !important}.rtmedia-container .touch tbody.show-for-touch,.rtmedia-activity-container .touch tbody.show-for-touch,#buddypress div.rtmedia-activity-container .touch tbody.show-for-touch{display:table-row-group !important}.rtmedia-container tr.hide-for-touch,.rtmedia-activity-container tr.hide-for-touch,#buddypress div.rtmedia-activity-container tr.hide-for-touch{display:table-row !important}.rtmedia-container .touch tr.show-for-touch,.rtmedia-activity-container .touch tr.show-for-touch,#buddypress div.rtmedia-activity-container .touch tr.show-for-touch{display:table-row !important}.rtmedia-container td.hide-for-touch,.rtmedia-activity-container td.hide-for-touch,#buddypress div.rtmedia-activity-container td.hide-for-touch{display:table-cell !important}.rtmedia-container .touch td.show-for-touch,.rtmedia-activity-container .touch td.show-for-touch,#buddypress div.rtmedia-activity-container .touch td.show-for-touch{display:table-cell !important}.rtmedia-container th.hide-for-touch,.rtmedia-activity-container th.hide-for-touch,#buddypress div.rtmedia-activity-container th.hide-for-touch{display:table-cell !important}.rtmedia-container .touch th.show-for-touch,.rtmedia-activity-container .touch th.show-for-touch,#buddypress div.rtmedia-activity-container .touch th.show-for-touch{display:table-cell !important}.rtmedia-container .flex-video,.rtmedia-activity-container .flex-video,#buddypress div.rtmedia-activity-container .flex-video{position:relative;padding-top:1.5625em;padding-bottom:67.5%;height:0;margin-bottom:1em;overflow:hidden}.rtmedia-container .flex-video.widescreen,.rtmedia-activity-container .flex-video.widescreen,#buddypress div.rtmedia-activity-container .flex-video.widescreen{padding-bottom:57.25%}.rtmedia-container .flex-video.vimeo,.rtmedia-activity-container .flex-video.vimeo,#buddypress div.rtmedia-activity-container .flex-video.vimeo{padding-top:0}.rtmedia-container .flex-video iframe,.rtmedia-activity-container .flex-video iframe,#buddypress div.rtmedia-activity-container .flex-video iframe,.rtmedia-container .flex-video object,.rtmedia-activity-container .flex-video object,#buddypress div.rtmedia-activity-container .flex-video object,.rtmedia-container .flex-video embed,.rtmedia-activity-container .flex-video embed,#buddypress div.rtmedia-activity-container .flex-video embed,.rtmedia-container .flex-video video,.rtmedia-activity-container .flex-video video,#buddypress div.rtmedia-activity-container .flex-video video{position:absolute;top:0;left:0;width:100%;height:100%}.rtmedia-container #buddypress li,.rtmedia-activity-container #buddypress li{list-style:none}.rtmedia-container .row,.rtmedia-activity-container .row,#buddypress div.rtmedia-activity-container .row{max-width:95%}.rtmedia-container .rtmedia-item-title,.rtmedia-activity-container .rtmedia-item-title,#buddypress div.rtmedia-activity-container .rtmedia-item-title{text-align:center}.rtmedia-container .rtmedia-item-title h4,.rtmedia-activity-container .rtmedia-item-title h4,#buddypress div.rtmedia-activity-container .rtmedia-item-title h4{text-overflow:ellipsis;white-space:nowrap;width:100%;overflow:hidden;font-size:1.1em;text-align:center}.rtmedia-container .rtmedia-success,.rtmedia-activity-container .rtmedia-success,#buddypress div.rtmedia-activity-container .rtmedia-success{display:block;padding:10px;border:1px solid #008000;background-color:#90EE90;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.rtmedia-container h2,.rtmedia-activity-container h2,#buddypress div.rtmedia-activity-container h2{font-size:1.4em;font-weight:bold;line-height:2.4em}.rtmedia-container .drag-drop,.rtmedia-activity-container .drag-drop,#buddypress div.rtmedia-activity-container .drag-drop{border:4px dashed #DDD;text-align:center;background:#fafafa;overflow:hidden;padding:15px 0}.rtmedia-container .drag-drop.dragover,.rtmedia-activity-container .drag-drop.dragover,#buddypress div.rtmedia-activity-container .drag-drop.dragover{border-color:#83b4d8}.rtmedia-container .rtmedia-action-update,.rtmedia-activity-container .rtmedia-action-update,#buddypress div.rtmedia-activity-container .rtmedia-action-update{float:left;margin-top:12px;margin-right:10px}.rtmedia-container .rtmedia-list,.rtmedia-activity-container .rtmedia-list,#buddypress div.rtmedia-activity-container .rtmedia-list{list-style:none}.rtmedia-container .rtmedia-list .rtmedia-list-item,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item{word-wrap:break-word;margin:10px;float:left;list-style:none}.rtmedia-container .rtmedia-list .rtmedia-list-item a,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a{text-decoration:none}.rtmedia-container .rtmedia-list .rtmedia-list-item a h4,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a h4,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a h4{line-height:1.4em;font-size:1.2em;padding-top:10px}.rtmedia-container .rtmedia-list .rtmedia-list-item.media-type-music,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-music,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-music,.rtmedia-container .rtmedia-list .rtmedia-list-item.media-type-video,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-video,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-video{width:100%}.rtmedia-container .rtmedia-list .rtmedia-list-item.media-type-music .mejs-controls .mejs-time-rail,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-music .mejs-controls .mejs-time-rail,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-music .mejs-controls .mejs-time-rail,.rtmedia-container .rtmedia-list .rtmedia-list-item.media-type-video .mejs-controls .mejs-time-rail,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-video .mejs-controls .mejs-time-rail,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-video .mejs-controls .mejs-time-rail{margin:8px 2px 2px 0}.rtmedia-container .rtmedia-media img,.rtmedia-activity-container .rtmedia-media img,#buddypress div.rtmedia-activity-container .rtmedia-media img{max-width:100%}.rtmedia-container .rtmedia-item-thumbnail,.rtmedia-activity-container .rtmedia-item-thumbnail,#buddypress div.rtmedia-activity-container .rtmedia-item-thumbnail{text-align:center}.rtmedia-container .rtmedia-item-thumbnail img,.rtmedia-activity-container .rtmedia-item-thumbnail img,#buddypress div.rtmedia-activity-container .rtmedia-item-thumbnail img{vertical-align:middle}.rtmedia-container .rtmedia_next_prev,.rtmedia-activity-container .rtmedia_next_prev,#buddypress div.rtmedia-activity-container .rtmedia_next_prev{clear:both}.rtmedia-container .rtmedia_next_prev a,.rtmedia-activity-container .rtmedia_next_prev a,#buddypress div.rtmedia-activity-container .rtmedia_next_prev a{display:block;clear:both;background-color:#E9E9E9;padding:10px;text-align:center;text-decoration:none;color:#000;margin:15px}.rtmedia-container .rtmedia-item-comments-container,.rtmedia-activity-container .rtmedia-item-comments-container,#buddypress div.rtmedia-activity-container .rtmedia-item-comments-container{margin:3% 3%}.rtmedia-container .rtmedia-comment,.rtmedia-activity-container .rtmedia-comment,#buddypress div.rtmedia-activity-container .rtmedia-comment{list-style:none;background:#f6f6f6;border:1px solid #ddd;-moz-border-radius:3px;border-radius:3px;margin:5px 0;padding:1px 5px 25px;width:391px;max-width:100%}.rtmedia-container .rtmedia-comment .rtmedia-comment-author,.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-author,#buddypress div.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-author{display:block}.rtmedia-container .rtmedia-comment .rtmedia-comment-content,.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-content,#buddypress div.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-content{display:block}.rtmedia-container .rtmedia-comment .rtmedia-comment-date,.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-date,#buddypress div.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-date{display:block;float:right}.rtmedia-container .rtmedia-bp-header,.rtmedia-activity-container .rtmedia-bp-header,#buddypress div.rtmedia-activity-container .rtmedia-bp-header{width:460px;margin:auto}.rtmedia-container #div-attache-rtmedia,.rtmedia-activity-container #div-attache-rtmedia,#buddypress div.rtmedia-activity-container #div-attache-rtmedia{display:none}.rtmedia-container #rtMedia-update-queue-list p span,.rtmedia-activity-container #rtMedia-update-queue-list p span{margin-right:20px}.rtmedia-container .rtmedia-move-container,.rtmedia-activity-container .rtmedia-move-container,#buddypress div.rtmedia-activity-container .rtmedia-move-container{display:none}.rtmedia-container #rtmedia-add-media-button-post-update,.rtmedia-activity-container #rtmedia-add-media-button-post-update,#buddypress div.rtmedia-activity-container #rtmedia-add-media-button-post-update{float:left;margin-top:10px;margin-right:20px}.rtmedia-container #whats-new-post-in-box,.rtmedia-activity-container #whats-new-post-in-box,#buddypress div.rtmedia-activity-container #whats-new-post-in-box{float:left}.rtmedia-container .rtmedia-activity-text,.rtmedia-activity-container .rtmedia-activity-text,#buddypress div.rtmedia-activity-container .rtmedia-activity-text{display:block;padding-bottom:10px}.rtmedia-container .rtmedia-merge-container,.rtmedia-activity-container .rtmedia-merge-container,#buddypress div.rtmedia-activity-container .rtmedia-merge-container{display:none}.rtmedia-container .rtmedia-create-new-album-container,.rtmedia-activity-container .rtmedia-create-new-album-container,#buddypress div.rtmedia-activity-container .rtmedia-create-new-album-container{display:none}.rtmedia-container select,.rtmedia-activity-container select,#buddypress div.rtmedia-activity-container select{width:auto}.rtmedia-container.rtmedia-single-container .row,.rtmedia-single-container.rtmedia-activity-container .row,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row{background-color:#FFF}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container{padding-top:10px;padding-bottom:10px}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media div.mejs-layers div.mejs-poster,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media div.mejs-layers div.mejs-poster{overflow:hidden}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media .mejs-layers .mejs-overlay-button,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media .mejs-layers .mejs-overlay-button{margin:-50px 0 0 -50px}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media .mejs-layers .mejs-poster,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media .mejs-layers .mejs-poster{overflow:hidden}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media-title,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media-title{margin:0 0 5px 0;display:block;font-weight:bold;letter-spacing:1px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta{padding:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta div.userprofile,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta div.userprofile,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta div.userprofile{float:left;padding:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta div.username,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta div.username,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta div.username{padding:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta button,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta button,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta button{color:#5E5E5E;background-color:#EBEBEB;background-repeat:repeat-x;background-image:-moz-linear-gradient(top, #f9f9f9, #ebebeb);background-image:-ms-linear-gradient(top, #f9f9f9, #ebebeb);background-image:-webkit-linear-gradient(top, #f9f9f9, #ebebeb);background-image:-o-linear-gradient(top, #f9f9f9, #ebebeb);background-image:linear-gradient(top, #f9f9f9,#ebebeb)}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta>a,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta>a,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta>a{float:left;margin:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta .rtmedia-item-actions>a,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>a,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>a{display:inline-block;float:left}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta .rtmedia-item-actions>form,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>form,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>form{float:left;margin-right:5px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta .rtmedia-item-actions .rtmedia-action-buttons span,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions .rtmedia-action-buttons span,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions .rtmedia-action-buttons span{background:#EEE;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;border-radius:50%;border:1px solid #CCC;color:#999;display:inline;font-size:70%;margin-left:2px;margin-right:2px;padding:3px 6px;text-align:center;vertical-align:middle}.rtmedia-container.rtmedia-single-container .row .rtmedia-item-comments,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments{background-color:transparent}.rtmedia-container.rtmedia-single-container .row .rtmedia-item-comments div,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments div,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments div{background-color:transparent}.rtmedia-container #wp-description-editor-tools a.wp-switch-editor,.rtmedia-activity-container #wp-description-editor-tools a.wp-switch-editor{margin:5px 5px 0 0;padding:4px 5px 2px;float:right;cursor:pointer;border:1px solid;border-color:#DFDFDF #DFDFDF #CCC;font:13px/18px Arial,Helvetica,sans-serif normal;height:auto}.rtmedia-container #description_toolbargroup .mceToolbar td,.rtmedia-activity-container #description_toolbargroup .mceToolbar td{padding:0px}.rtmedia-container #wp-description-editor-container,.rtmedia-activity-container #wp-description-editor-container,#buddypress div.rtmedia-activity-container #wp-description-editor-container{border-width:1px;border-style:solid;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;border-color:#CCC #CCC #DFDFDF}.rtmedia-container .rtmedia-change-cover-arts p,.rtmedia-activity-container .rtmedia-change-cover-arts p,#buddypress div.rtmedia-activity-container .rtmedia-change-cover-arts p{padding:5px 0}#buddypress div.rtmedia-activity-container ul.rtmedia-list li{float:left;padding:10px}#buddypress div.rtmedia-activity-container ul.rtmedia-list li .rtmedia-item-thumbnail{overflow:hidden}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video{float:none}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail{margin:0 auto;overflow:hidden}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail .mejs-overlay-button{margin:-50px 0 0 -50px}#buddypress .mejs-controls button,.rtmedia-container .mejs-controls button,.rtmedia-activity-container .mejs-controls button,#buddypress div.rtmedia-activity-container .mejs-controls button{padding:4px 8px;border:none;background:rgba(0,0,0,0) url("../../../lib/media-element/controls.png") no-repeat}#buddypress .mejs-controls .mejs-play button,.rtmedia-container .mejs-controls .mejs-play button,.rtmedia-activity-container .mejs-controls .mejs-play button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-play button{background-position:0 0}#buddypress .mejs-controls .mejs-pause button,.rtmedia-container .mejs-controls .mejs-pause button,.rtmedia-activity-container .mejs-controls .mejs-pause button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-pause button{background-position:0 -16px}#buddypress .mejs-controls .mejs-unmute button,.rtmedia-container .mejs-controls .mejs-unmute button,.rtmedia-activity-container .mejs-controls .mejs-unmute button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-unmute button{background-position:-16px 0}#buddypress .mejs-controls .mejs-mute button,.rtmedia-container .mejs-controls .mejs-mute button,.rtmedia-activity-container .mejs-controls .mejs-mute button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-mute button{background-position:-16px -16px}#buddypress .mejs-controls .mejs-fullscreen-button button,.rtmedia-container .mejs-controls .mejs-fullscreen-button button,.rtmedia-activity-container .mejs-controls .mejs-fullscreen-button button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-fullscreen-button button{background-position:-32px 0}#buddypress .mejs-controls .mejs-unfullscreen button,.rtmedia-container .mejs-controls .mejs-unfullscreen button,.rtmedia-activity-container .mejs-controls .mejs-unfullscreen button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-unfullscreen button{background-position:-32px -16px}.mfp-content #rtmedia-single-media-container .rtmedia-media{text-align:center;background-color:#333}.mfp-content #rtmedia-single-media-container .rtmedia-media img{max-height:95%}#rtmedia-action-update{float:left;padding-right:10px}#header{z-index:1 !important}.bp_media_content video{background-color:black}.rtmedia-success{display:block;padding:10px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;background-color:#2ECC71;color:white}.rtmedia-error{color:white;display:block;padding:10px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;background-color:#E74C3C}.rtmp-uploaded-file{width:100%}.close{cursor:pointer;color:red}button.mfp-arrow,button.mfp-arrow:active{margin-top:-30px}button.mfp-close{margin-top:-10px}#object-nav li,#group-admins li,.item-list-tabs li{list-style:none}.mejs-video .mejs-controls{position:abosulute}
|
app/assets/css/settings.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#bp-media-settings-boxes{margin:0}#bp-media-settings-boxes *,#bp-media-settings-boxes *:before,#bp-media-settings-boxes *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}#bp-media-settings-boxes html,#bp-media-settings-boxes body{font-size:100%}#bp-media-settings-boxes body{background:#fff;color:#222;padding:0;margin:0;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;font-weight:normal;font-style:normal;line-height:1;position:relative;cursor:default}#bp-media-settings-boxes a:hover{cursor:pointer}#bp-media-settings-boxes a:focus{outline:none}#bp-media-settings-boxes img,#bp-media-settings-boxes object,#bp-media-settings-boxes embed{max-width:100%;height:auto}#bp-media-settings-boxes object,#bp-media-settings-boxes embed{height:100%}#bp-media-settings-boxes img{-ms-interpolation-mode:bicubic}#bp-media-settings-boxes #map_canvas img,#bp-media-settings-boxes #map_canvas embed,#bp-media-settings-boxes #map_canvas object,#bp-media-settings-boxes .map_canvas img,#bp-media-settings-boxes .map_canvas embed,#bp-media-settings-boxes .map_canvas object{max-width:none !important}#bp-media-settings-boxes .left{float:left !important}#bp-media-settings-boxes .right{float:right !important}#bp-media-settings-boxes .text-left{text-align:left !important}#bp-media-settings-boxes .text-right{text-align:right !important}#bp-media-settings-boxes .text-center{text-align:center !important}#bp-media-settings-boxes .text-justify{text-align:justify !important}#bp-media-settings-boxes .hide{display:none}#bp-media-settings-boxes .antialiased{-webkit-font-smoothing:antialiased}#bp-media-settings-boxes img{display:inline-block;vertical-align:middle}#bp-media-settings-boxes textarea{height:auto;min-height:50px}#bp-media-settings-boxes select{width:100%}#bp-media-settings-boxes .section-container,#bp-media-settings-boxes .section-container.auto{width:100%;display:block;margin-bottom:1.25em;border:1px solid #ccc;border-top:none}#bp-media-settings-boxes .section-container>section,#bp-media-settings-boxes .section-container>.section,#bp-media-settings-boxes .section-container.auto>section,#bp-media-settings-boxes .section-container.auto>.section{position:relative}#bp-media-settings-boxes .section-container>section>.title,#bp-media-settings-boxes .section-container>.section>.title,#bp-media-settings-boxes .section-container.auto>section>.title,#bp-media-settings-boxes .section-container.auto>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container>section>.title a,#bp-media-settings-boxes .section-container>.section>.title a,#bp-media-settings-boxes .section-container.auto>section>.title a,#bp-media-settings-boxes .section-container.auto>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container>section>.title:hover,#bp-media-settings-boxes .section-container>.section>.title:hover,#bp-media-settings-boxes .section-container.auto>section>.title:hover,#bp-media-settings-boxes .section-container.auto>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container>section .content,#bp-media-settings-boxes .section-container>.section .content,#bp-media-settings-boxes .section-container.auto>section .content,#bp-media-settings-boxes .section-container.auto>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container>section .content>*:last-child,#bp-media-settings-boxes .section-container>.section .content>*:last-child,#bp-media-settings-boxes .section-container.auto>section .content>*:last-child,#bp-media-settings-boxes .section-container.auto>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container>section .content>*:first-child,#bp-media-settings-boxes .section-container>.section .content>*:first-child,#bp-media-settings-boxes .section-container.auto>section .content>*:first-child,#bp-media-settings-boxes .section-container.auto>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.auto>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.auto>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container>section.active>.content,#bp-media-settings-boxes .section-container>.section.active>.content,#bp-media-settings-boxes .section-container.auto>section.active>.content,#bp-media-settings-boxes .section-container.auto>.section.active>.content{display:block}#bp-media-settings-boxes .section-container>section.active>.title,#bp-media-settings-boxes .section-container>.section.active>.title,#bp-media-settings-boxes .section-container.auto>section.active>.title,#bp-media-settings-boxes .section-container.auto>.section.active>.title{background:#d5d5d5}#bp-media-settings-boxes .section-container>section.active>.title a,#bp-media-settings-boxes .section-container>.section.active>.title a,#bp-media-settings-boxes .section-container.auto>section.active>.title a,#bp-media-settings-boxes .section-container.auto>.section.active>.title a{color:#333}#bp-media-settings-boxes .section-container>section>.title,#bp-media-settings-boxes .section-container>.section>.title,#bp-media-settings-boxes .section-container.auto>section>.title,#bp-media-settings-boxes .section-container.auto>.section>.title{top:0;width:100%;margin:0;border-top:solid 1px #ccc}#bp-media-settings-boxes .section-container>section>.title a,#bp-media-settings-boxes .section-container>.section>.title a,#bp-media-settings-boxes .section-container.auto>section>.title a,#bp-media-settings-boxes .section-container.auto>.section>.title a{width:100%}#bp-media-settings-boxes .section-container.tabs{border:0;position:relative}#bp-media-settings-boxes .section-container.tabs>section,#bp-media-settings-boxes .section-container.tabs>.section{border:0;position:static}#bp-media-settings-boxes .section-container.tabs>section>.title,#bp-media-settings-boxes .section-container.tabs>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container.tabs>section>.title a,#bp-media-settings-boxes .section-container.tabs>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container.tabs>section>.title:hover,#bp-media-settings-boxes .section-container.tabs>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container.tabs>section .content,#bp-media-settings-boxes .section-container.tabs>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container.tabs>section .content>*:last-child,#bp-media-settings-boxes .section-container.tabs>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container.tabs>section .content>*:first-child,#bp-media-settings-boxes .section-container.tabs>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container.tabs>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.tabs>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container.tabs>section.active>.content,#bp-media-settings-boxes .section-container.tabs>.section.active>.content{display:block}#bp-media-settings-boxes .section-container.tabs>section.active>.title,#bp-media-settings-boxes .section-container.tabs>.section.active>.title{background:#fff}#bp-media-settings-boxes .section-container.tabs>section.active>.title a,#bp-media-settings-boxes .section-container.tabs>.section.active>.title a{color:#333}#bp-media-settings-boxes .section-container.tabs>section>.title,#bp-media-settings-boxes .section-container.tabs>.section>.title{width:auto;border:solid 1px #ccc;border-right:0;border-bottom:0;position:absolute;top:0;z-index:1}#bp-media-settings-boxes .section-container.tabs>section>.title a,#bp-media-settings-boxes .section-container.tabs>.section>.title a{width:100%}#bp-media-settings-boxes .section-container.tabs>section:last-child .title,#bp-media-settings-boxes .section-container.tabs>.section:last-child .title{border-right:solid 1px #ccc}#bp-media-settings-boxes .section-container.tabs>section .content,#bp-media-settings-boxes .section-container.tabs>.section .content{border:solid 1px #ccc;position:absolute;z-index:10;display:none;top:-1px}#bp-media-settings-boxes .section-container.tabs>section.active>.title,#bp-media-settings-boxes .section-container.tabs>.section.active>.title{z-index:11;border-bottom:0;background-color:#fff}#bp-media-settings-boxes .section-container.tabs>section.active>.content,#bp-media-settings-boxes .section-container.tabs>.section.active>.content{position:relative}@media only screen and (min-width: 768px){#bp-media-settings-boxes .section-container.auto{border:0;position:relative}#bp-media-settings-boxes .section-container.auto>section,#bp-media-settings-boxes .section-container.auto>.section{border:0;position:static}#bp-media-settings-boxes .section-container.auto>section>.title,#bp-media-settings-boxes .section-container.auto>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container.auto>section>.title a,#bp-media-settings-boxes .section-container.auto>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container.auto>section>.title:hover,#bp-media-settings-boxes .section-container.auto>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container.auto>section .content,#bp-media-settings-boxes .section-container.auto>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container.auto>section .content>*:last-child,#bp-media-settings-boxes .section-container.auto>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container.auto>section .content>*:first-child,#bp-media-settings-boxes .section-container.auto>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container.auto>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.auto>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container.auto>section.active>.content,#bp-media-settings-boxes .section-container.auto>.section.active>.content{display:block}#bp-media-settings-boxes .section-container.auto>section.active>.title,#bp-media-settings-boxes .section-container.auto>.section.active>.title{background:#fff}#bp-media-settings-boxes .section-container.auto>section.active>.title a,#bp-media-settings-boxes .section-container.auto>.section.active>.title a{color:#333}#bp-media-settings-boxes .section-container.auto>section>.title,#bp-media-settings-boxes .section-container.auto>.section>.title{width:auto;border:solid 1px #ccc;border-right:0;border-bottom:0;position:absolute;top:0;z-index:1}#bp-media-settings-boxes .section-container.auto>section>.title a,#bp-media-settings-boxes .section-container.auto>.section>.title a{width:100%}#bp-media-settings-boxes .section-container.auto>section:last-child .title,#bp-media-settings-boxes .section-container.auto>.section:last-child .title{border-right:solid 1px #ccc}#bp-media-settings-boxes .section-container.auto>section .content,#bp-media-settings-boxes .section-container.auto>.section .content{border:solid 1px #ccc;position:absolute;z-index:10;display:none;top:-1px}#bp-media-settings-boxes .section-container.auto>section.active>.title,#bp-media-settings-boxes .section-container.auto>.section.active>.title{z-index:11;border-bottom:0;background-color:#fff}#bp-media-settings-boxes .section-container.auto>section.active>.content,#bp-media-settings-boxes .section-container.auto>.section.active>.content{position:relative}#bp-media-settings-boxes .section-container.accordion .section{padding-top:0 !important}#bp-media-settings-boxes .section-container.vertical-tabs{border:1px solid #ccc;position:relative}#bp-media-settings-boxes .section-container.vertical-tabs section,#bp-media-settings-boxes .section-container.vertical-tabs .section{padding-top:0 !important;border:0;position:static}#bp-media-settings-boxes .section-container.vertical-tabs section>.title,#bp-media-settings-boxes .section-container.vertical-tabs .section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container.vertical-tabs section>.title a,#bp-media-settings-boxes .section-container.vertical-tabs .section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container.vertical-tabs section>.title:hover,#bp-media-settings-boxes .section-container.vertical-tabs .section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container.vertical-tabs section .content,#bp-media-settings-boxes .section-container.vertical-tabs .section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container.vertical-tabs section .content>*:last-child,#bp-media-settings-boxes .section-container.vertical-tabs .section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container.vertical-tabs section .content>*:first-child,#bp-media-settings-boxes .section-container.vertical-tabs .section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container.vertical-tabs section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.vertical-tabs .section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container.vertical-tabs section.active>.content,#bp-media-settings-boxes .section-container.vertical-tabs .section.active>.content{display:block}#bp-media-settings-boxes .section-container.vertical-tabs section.active>.title,#bp-media-settings-boxes .section-container.vertical-tabs .section.active>.title{background:#d5d5d5}#bp-media-settings-boxes .section-container.vertical-tabs section.active>.title a,#bp-media-settings-boxes .section-container.vertical-tabs .section.active>.title a{color:#333}#bp-media-settings-boxes .section-container.vertical-tabs section>.title,#bp-media-settings-boxes .section-container.vertical-tabs .section>.title{position:absolute;border-top:solid 1px #ccc;width:12.5em}#bp-media-settings-boxes .section-container.vertical-tabs section:first-child .title,#bp-media-settings-boxes .section-container.vertical-tabs .section:first-child .title{border-top:0}#bp-media-settings-boxes .section-container.vertical-tabs section .content,#bp-media-settings-boxes .section-container.vertical-tabs .section .content{display:block;position:relative;left:12.5em;border-left:solid 1px #ccc;z-index:10}#bp-media-settings-boxes .section-container.vertical-tabs section.active>.title,#bp-media-settings-boxes .section-container.vertical-tabs .section.active>.title{background-color:#d5d5d5;width:12.5625em;border-right:solid 0 transparent;z-index:11}#bp-media-settings-boxes .section-container.vertical-tabs section.active:last-child .title,#bp-media-settings-boxes .section-container.vertical-tabs .section.active:last-child .title{border-bottom:0}#bp-media-settings-boxes .section-container.vertical-nav{border:0;position:relative}#bp-media-settings-boxes .section-container.vertical-nav>section,#bp-media-settings-boxes .section-container.vertical-nav>.section{padding-top:0 !important;position:relative}#bp-media-settings-boxes .section-container.vertical-nav>section>.title,#bp-media-settings-boxes .section-container.vertical-nav>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container.vertical-nav>section>.title a,#bp-media-settings-boxes .section-container.vertical-nav>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container.vertical-nav>section>.title:hover,#bp-media-settings-boxes .section-container.vertical-nav>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container.vertical-nav>section .content,#bp-media-settings-boxes .section-container.vertical-nav>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container.vertical-nav>section .content>*:last-child,#bp-media-settings-boxes .section-container.vertical-nav>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container.vertical-nav>section .content>*:first-child,#bp-media-settings-boxes .section-container.vertical-nav>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container.vertical-nav>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.vertical-nav>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container.vertical-nav>section.active>.content,#bp-media-settings-boxes .section-container.vertical-nav>.section.active>.content{display:block}#bp-media-settings-boxes .section-container.vertical-nav>section.active>.title,#bp-media-settings-boxes .section-container.vertical-nav>.section.active>.title{background:#d5d5d5}#bp-media-settings-boxes .section-container.vertical-nav>section.active>.title a,#bp-media-settings-boxes .section-container.vertical-nav>.section.active>.title a{color:#333}#bp-media-settings-boxes .section-container.vertical-nav>section>.title,#bp-media-settings-boxes .section-container.vertical-nav>.section>.title{border-top:none;border:solid 1px #ccc}#bp-media-settings-boxes .section-container.vertical-nav>section>.title a,#bp-media-settings-boxes .section-container.vertical-nav>.section>.title a{display:block;width:100%}#bp-media-settings-boxes .section-container.vertical-nav>section .content,#bp-media-settings-boxes .section-container.vertical-nav>.section .content{display:none}#bp-media-settings-boxes .section-container.vertical-nav>section:first-child .title,#bp-media-settings-boxes .section-container.vertical-nav>.section:first-child .title{border-bottom:none}#bp-media-settings-boxes .section-container.vertical-nav>section.active>.content,#bp-media-settings-boxes .section-container.vertical-nav>.section.active>.content{display:block;position:absolute;left:100%;top:0px;z-index:999;min-width:12.5em;border:solid 1px #ccc}#bp-media-settings-boxes .section-container.horizontal-nav{position:relative;background:#efefef;border:1px solid #ccc}#bp-media-settings-boxes .section-container.horizontal-nav>section,#bp-media-settings-boxes .section-container.horizontal-nav>.section{padding-top:0;border:0;position:static}#bp-media-settings-boxes .section-container.horizontal-nav>section>.title,#bp-media-settings-boxes .section-container.horizontal-nav>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container.horizontal-nav>section>.title a,#bp-media-settings-boxes .section-container.horizontal-nav>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container.horizontal-nav>section>.title:hover,#bp-media-settings-boxes .section-container.horizontal-nav>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container.horizontal-nav>section .content,#bp-media-settings-boxes .section-container.horizontal-nav>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container.horizontal-nav>section .content>*:last-child,#bp-media-settings-boxes .section-container.horizontal-nav>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container.horizontal-nav>section .content>*:first-child,#bp-media-settings-boxes .section-container.horizontal-nav>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container.horizontal-nav>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.horizontal-nav>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container.horizontal-nav>section.active>.content,#bp-media-settings-boxes .section-container.horizontal-nav>.section.active>.content{display:block}#bp-media-settings-boxes .section-container.horizontal-nav>section.active>.title,#bp-media-settings-boxes .section-container.horizontal-nav>.section.active>.title{background:#d5d5d5}#bp-media-settings-boxes .section-container.horizontal-nav>section.active>.title a,#bp-media-settings-boxes .section-container.horizontal-nav>.section.active>.title a{color:#333}#bp-media-settings-boxes .section-container.horizontal-nav>section>.title,#bp-media-settings-boxes .section-container.horizontal-nav>.section>.title{width:auto;border:solid 1px #ccc;border-left:0;top:-1px;position:absolute;z-index:1}#bp-media-settings-boxes .section-container.horizontal-nav>section>.title a,#bp-media-settings-boxes .section-container.horizontal-nav>.section>.title a{width:100%}#bp-media-settings-boxes .section-container.horizontal-nav>section .content,#bp-media-settings-boxes .section-container.horizontal-nav>.section .content{display:none}#bp-media-settings-boxes .section-container.horizontal-nav>section.active>.content,#bp-media-settings-boxes .section-container.horizontal-nav>.section.active>.content{display:block;position:absolute;z-index:999;left:0;top:-2px;min-width:12.5em;border:solid 1px #ccc}}#bp-media-settings-boxes .no-js .section-container.auto,#bp-media-settings-boxes .no-js .section-container.accordion,#bp-media-settings-boxes .no-js .section-container.tabs,#bp-media-settings-boxes .no-js .section-container.vertical-tabs,#bp-media-settings-boxes .no-js .section-container.vertical-nav,#bp-media-settings-boxes .no-js .section-container.horizontal-nav{width:100%;display:block;margin-bottom:1.25em;border:1px solid #ccc;border-top:none}#bp-media-settings-boxes .no-js .section-container.auto>section,#bp-media-settings-boxes .no-js .section-container.auto>.section,#bp-media-settings-boxes .no-js .section-container.accordion>section,#bp-media-settings-boxes .no-js .section-container.accordion>.section,#bp-media-settings-boxes .no-js .section-container.tabs>section,#bp-media-settings-boxes .no-js .section-container.tabs>.section,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section{position:relative}#bp-media-settings-boxes .no-js .section-container.auto>section>.title,#bp-media-settings-boxes .no-js .section-container.auto>.section>.title,#bp-media-settings-boxes .no-js .section-container.accordion>section>.title,#bp-media-settings-boxes .no-js .section-container.accordion>.section>.title,#bp-media-settings-boxes .no-js .section-container.tabs>section>.title,#bp-media-settings-boxes .no-js .section-container.tabs>.section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .no-js .section-container.auto>section>.title a,#bp-media-settings-boxes .no-js .section-container.auto>.section>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>section>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>.section>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>section>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>.section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .no-js .section-container.auto>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.auto>.section>.title:hover,#bp-media-settings-boxes .no-js .section-container.accordion>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.accordion>.section>.title:hover,#bp-media-settings-boxes .no-js .section-container.tabs>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.tabs>.section>.title:hover,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section>.title:hover,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section>.title:hover,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .no-js .section-container.auto>section .content,#bp-media-settings-boxes .no-js .section-container.auto>.section .content,#bp-media-settings-boxes .no-js .section-container.accordion>section .content,#bp-media-settings-boxes .no-js .section-container.accordion>.section .content,#bp-media-settings-boxes .no-js .section-container.tabs>section .content,#bp-media-settings-boxes .no-js .section-container.tabs>.section .content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .no-js .section-container.auto>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.auto>.section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.accordion>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.accordion>.section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.tabs>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.tabs>.section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .no-js .section-container.auto>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.auto>.section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.accordion>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.accordion>.section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.tabs>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.tabs>.section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .no-js .section-container.auto>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.auto>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.accordion>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.accordion>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.tabs>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.tabs>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .no-js .section-container.auto>section.active>.content,#bp-media-settings-boxes .no-js .section-container.auto>.section.active>.content,#bp-media-settings-boxes .no-js .section-container.accordion>section.active>.content,#bp-media-settings-boxes .no-js .section-container.accordion>.section.active>.content,#bp-media-settings-boxes .no-js .section-container.tabs>section.active>.content,#bp-media-settings-boxes .no-js .section-container.tabs>.section.active>.content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section.active>.content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section.active>.content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section.active>.content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section.active>.content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section.active>.content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section.active>.content{display:block}#bp-media-settings-boxes .no-js .section-container.auto>section.active>.title,#bp-media-settings-boxes .no-js .section-container.auto>.section.active>.title,#bp-media-settings-boxes .no-js .section-container.accordion>section.active>.title,#bp-media-settings-boxes .no-js .section-container.accordion>.section.active>.title,#bp-media-settings-boxes .no-js .section-container.tabs>section.active>.title,#bp-media-settings-boxes .no-js .section-container.tabs>.section.active>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section.active>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section.active>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section.active>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section.active>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section.active>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section.active>.title{background:#d5d5d5}#bp-media-settings-boxes .no-js .section-container.auto>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.auto>.section.active>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>.section.active>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>.section.active>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section.active>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section.active>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section.active>.title a{color:#333}#bp-media-settings-boxes .no-js .section-container.auto>section>.title,#bp-media-settings-boxes .no-js .section-container.auto>.section>.title,#bp-media-settings-boxes .no-js .section-container.accordion>section>.title,#bp-media-settings-boxes .no-js .section-container.accordion>.section>.title,#bp-media-settings-boxes .no-js .section-container.tabs>section>.title,#bp-media-settings-boxes .no-js .section-container.tabs>.section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section>.title{top:0;width:100%;margin:0;border-top:solid 1px #ccc}#bp-media-settings-boxes .no-js .section-container.auto>section>.title a,#bp-media-settings-boxes .no-js .section-container.auto>.section>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>section>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>.section>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>section>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>.section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section>.title a{width:100%}#bp-media-settings-boxes .no-js .section-container.auto>section .title,#bp-media-settings-boxes .no-js .section-container.auto>.section .title,#bp-media-settings-boxes .no-js .section-container.accordion>section .title,#bp-media-settings-boxes .no-js .section-container.accordion>.section .title,#bp-media-settings-boxes .no-js .section-container.tabs>section .title,#bp-media-settings-boxes .no-js .section-container.tabs>.section .title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .title{position:static;width:100%;border-left:0;border-right:0}#bp-media-settings-boxes .no-js .section-container.auto>section .content,#bp-media-settings-boxes .no-js .section-container.auto>.section .content,#bp-media-settings-boxes .no-js .section-container.accordion>section .content,#bp-media-settings-boxes .no-js .section-container.accordion>.section .content,#bp-media-settings-boxes .no-js .section-container.tabs>section .content,#bp-media-settings-boxes .no-js .section-container.tabs>.section .content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .content{position:static;display:block;width:100%;border-left:0;border-right:0;border-bottom:0}#bp-media-settings-boxes .has-switch{border-radius:0}#bp-media-settings-boxes .has-switch label{padding:6px;border-radius:0}#bp-media-settings-boxes .has-switch span.switch-left{border-radius:0}#bp-media-settings-boxes .has-switch span.switch-right{border-radius:0}#bp-media-settings-boxes .section-container section .title a{font-size:13px;text-decoration:none;font-weight:bold;color:#555}#bp-media-settings-boxes .section-container section .title a:hover{color:#000}#bp-media-settings-boxes .section-container section.active .title a{color:#000}#bp-media-settings-boxes .section-container .rtmedia-size-content-setting .rt-form-dimension input[type="text"]{margin-left:32px}#bp-media-settings-boxes .section-container .rtmedia-size-content-setting .rt-form-dimension span{margin-left:36px}#bp-media-settings-boxes .section-container.vertical-tabs section .title a,#bp-media-settings-boxes .section-container.auto section .title a{font-size:13px}#bp-media-settings-boxes .section-container.vertical-tabs section.active .title a,#bp-media-settings-boxes .section-container.auto section.active .title a{color:#000}#bp-media-settings-boxes .global-album-settings .default-global-albums{padding:5px 0;overflow:hidden}#bp-media-settings-boxes .global-album-settings .default-global-albums:hover{background-color:#EEE}
|
1 |
+
#bp-media-settings-boxes{margin:0}#bp-media-settings-boxes *,#bp-media-settings-boxes *:before,#bp-media-settings-boxes *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}#bp-media-settings-boxes html,#bp-media-settings-boxes body{font-size:100%}#bp-media-settings-boxes body{background:#fff;color:#222;padding:0;margin:0;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;font-weight:normal;font-style:normal;line-height:1;position:relative;cursor:default}#bp-media-settings-boxes a:hover{cursor:pointer}#bp-media-settings-boxes a:focus{outline:none}#bp-media-settings-boxes img,#bp-media-settings-boxes object,#bp-media-settings-boxes embed{max-width:100%;height:auto}#bp-media-settings-boxes object,#bp-media-settings-boxes embed{height:100%}#bp-media-settings-boxes img{-ms-interpolation-mode:bicubic}#bp-media-settings-boxes #map_canvas img,#bp-media-settings-boxes #map_canvas embed,#bp-media-settings-boxes #map_canvas object,#bp-media-settings-boxes .map_canvas img,#bp-media-settings-boxes .map_canvas embed,#bp-media-settings-boxes .map_canvas object{max-width:none !important}#bp-media-settings-boxes .left{float:left !important}#bp-media-settings-boxes .right{float:right !important}#bp-media-settings-boxes .text-left{text-align:left !important}#bp-media-settings-boxes .text-right{text-align:right !important}#bp-media-settings-boxes .text-center{text-align:center !important}#bp-media-settings-boxes .text-justify{text-align:justify !important}#bp-media-settings-boxes .hide{display:none}#bp-media-settings-boxes .antialiased{-webkit-font-smoothing:antialiased}#bp-media-settings-boxes img{display:inline-block;vertical-align:middle}#bp-media-settings-boxes textarea{height:auto;min-height:50px}#bp-media-settings-boxes select{width:100%}#bp-media-settings-boxes .section-container,#bp-media-settings-boxes .section-container.auto{width:100%;display:block;margin-bottom:1.25em;border:1px solid #ccc;border-top:none}#bp-media-settings-boxes .section-container>section,#bp-media-settings-boxes .section-container>.section,#bp-media-settings-boxes .section-container.auto>section,#bp-media-settings-boxes .section-container.auto>.section{position:relative}#bp-media-settings-boxes .section-container>section>.title,#bp-media-settings-boxes .section-container>.section>.title,#bp-media-settings-boxes .section-container.auto>section>.title,#bp-media-settings-boxes .section-container.auto>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container>section>.title a,#bp-media-settings-boxes .section-container>.section>.title a,#bp-media-settings-boxes .section-container.auto>section>.title a,#bp-media-settings-boxes .section-container.auto>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container>section>.title:hover,#bp-media-settings-boxes .section-container>.section>.title:hover,#bp-media-settings-boxes .section-container.auto>section>.title:hover,#bp-media-settings-boxes .section-container.auto>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container>section .content,#bp-media-settings-boxes .section-container>.section .content,#bp-media-settings-boxes .section-container.auto>section .content,#bp-media-settings-boxes .section-container.auto>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container>section .content>*:last-child,#bp-media-settings-boxes .section-container>.section .content>*:last-child,#bp-media-settings-boxes .section-container.auto>section .content>*:last-child,#bp-media-settings-boxes .section-container.auto>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container>section .content>*:first-child,#bp-media-settings-boxes .section-container>.section .content>*:first-child,#bp-media-settings-boxes .section-container.auto>section .content>*:first-child,#bp-media-settings-boxes .section-container.auto>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.auto>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.auto>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container>section.active>.content,#bp-media-settings-boxes .section-container>.section.active>.content,#bp-media-settings-boxes .section-container.auto>section.active>.content,#bp-media-settings-boxes .section-container.auto>.section.active>.content{display:block}#bp-media-settings-boxes .section-container>section.active>.title,#bp-media-settings-boxes .section-container>.section.active>.title,#bp-media-settings-boxes .section-container.auto>section.active>.title,#bp-media-settings-boxes .section-container.auto>.section.active>.title{background:#d5d5d5}#bp-media-settings-boxes .section-container>section.active>.title a,#bp-media-settings-boxes .section-container>.section.active>.title a,#bp-media-settings-boxes .section-container.auto>section.active>.title a,#bp-media-settings-boxes .section-container.auto>.section.active>.title a{color:#333}#bp-media-settings-boxes .section-container>section>.title,#bp-media-settings-boxes .section-container>.section>.title,#bp-media-settings-boxes .section-container.auto>section>.title,#bp-media-settings-boxes .section-container.auto>.section>.title{top:0;width:100%;margin:0;border-top:solid 1px #ccc}#bp-media-settings-boxes .section-container>section>.title a,#bp-media-settings-boxes .section-container>.section>.title a,#bp-media-settings-boxes .section-container.auto>section>.title a,#bp-media-settings-boxes .section-container.auto>.section>.title a{width:100%}#bp-media-settings-boxes .section-container.tabs{border:0;position:relative}#bp-media-settings-boxes .section-container.tabs>section,#bp-media-settings-boxes .section-container.tabs>.section{border:0;position:static}#bp-media-settings-boxes .section-container.tabs>section>.title,#bp-media-settings-boxes .section-container.tabs>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container.tabs>section>.title a,#bp-media-settings-boxes .section-container.tabs>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container.tabs>section>.title:hover,#bp-media-settings-boxes .section-container.tabs>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container.tabs>section .content,#bp-media-settings-boxes .section-container.tabs>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container.tabs>section .content>*:last-child,#bp-media-settings-boxes .section-container.tabs>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container.tabs>section .content>*:first-child,#bp-media-settings-boxes .section-container.tabs>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container.tabs>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.tabs>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container.tabs>section.active>.content,#bp-media-settings-boxes .section-container.tabs>.section.active>.content{display:block}#bp-media-settings-boxes .section-container.tabs>section.active>.title,#bp-media-settings-boxes .section-container.tabs>.section.active>.title{background:#fff}#bp-media-settings-boxes .section-container.tabs>section.active>.title a,#bp-media-settings-boxes .section-container.tabs>.section.active>.title a{color:#333}#bp-media-settings-boxes .section-container.tabs>section>.title,#bp-media-settings-boxes .section-container.tabs>.section>.title{width:auto;border:solid 1px #ccc;border-right:0;border-bottom:0;position:absolute;top:0;z-index:1}#bp-media-settings-boxes .section-container.tabs>section>.title a,#bp-media-settings-boxes .section-container.tabs>.section>.title a{width:100%}#bp-media-settings-boxes .section-container.tabs>section:last-child .title,#bp-media-settings-boxes .section-container.tabs>.section:last-child .title{border-right:solid 1px #ccc}#bp-media-settings-boxes .section-container.tabs>section .content,#bp-media-settings-boxes .section-container.tabs>.section .content{border:solid 1px #ccc;position:absolute;z-index:10;display:none;top:-1px}#bp-media-settings-boxes .section-container.tabs>section.active>.title,#bp-media-settings-boxes .section-container.tabs>.section.active>.title{z-index:11;border-bottom:0;background-color:#fff}#bp-media-settings-boxes .section-container.tabs>section.active>.content,#bp-media-settings-boxes .section-container.tabs>.section.active>.content{position:relative}@media only screen and (min-width: 768px){#bp-media-settings-boxes .section-container.auto{border:0;position:relative}#bp-media-settings-boxes .section-container.auto>section,#bp-media-settings-boxes .section-container.auto>.section{border:0;position:static}#bp-media-settings-boxes .section-container.auto>section>.title,#bp-media-settings-boxes .section-container.auto>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container.auto>section>.title a,#bp-media-settings-boxes .section-container.auto>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container.auto>section>.title:hover,#bp-media-settings-boxes .section-container.auto>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container.auto>section .content,#bp-media-settings-boxes .section-container.auto>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container.auto>section .content>*:last-child,#bp-media-settings-boxes .section-container.auto>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container.auto>section .content>*:first-child,#bp-media-settings-boxes .section-container.auto>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container.auto>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.auto>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container.auto>section.active>.content,#bp-media-settings-boxes .section-container.auto>.section.active>.content{display:block}#bp-media-settings-boxes .section-container.auto>section.active>.title,#bp-media-settings-boxes .section-container.auto>.section.active>.title{background:#fff}#bp-media-settings-boxes .section-container.auto>section.active>.title a,#bp-media-settings-boxes .section-container.auto>.section.active>.title a{color:#333}#bp-media-settings-boxes .section-container.auto>section>.title,#bp-media-settings-boxes .section-container.auto>.section>.title{width:auto;border:solid 1px #ccc;border-right:0;border-bottom:0;position:absolute;top:0;z-index:1}#bp-media-settings-boxes .section-container.auto>section>.title a,#bp-media-settings-boxes .section-container.auto>.section>.title a{width:100%}#bp-media-settings-boxes .section-container.auto>section:last-child .title,#bp-media-settings-boxes .section-container.auto>.section:last-child .title{border-right:solid 1px #ccc}#bp-media-settings-boxes .section-container.auto>section .content,#bp-media-settings-boxes .section-container.auto>.section .content{border:solid 1px #ccc;position:absolute;z-index:10;display:none;top:-1px}#bp-media-settings-boxes .section-container.auto>section.active>.title,#bp-media-settings-boxes .section-container.auto>.section.active>.title{z-index:11;border-bottom:0;background-color:#fff}#bp-media-settings-boxes .section-container.auto>section.active>.content,#bp-media-settings-boxes .section-container.auto>.section.active>.content{position:relative}#bp-media-settings-boxes .section-container.accordion .section{padding-top:0 !important}#bp-media-settings-boxes .section-container.vertical-tabs{border:1px solid #ccc;position:relative}#bp-media-settings-boxes .section-container.vertical-tabs section,#bp-media-settings-boxes .section-container.vertical-tabs .section{padding-top:0 !important;border:0;position:static}#bp-media-settings-boxes .section-container.vertical-tabs section>.title,#bp-media-settings-boxes .section-container.vertical-tabs .section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container.vertical-tabs section>.title a,#bp-media-settings-boxes .section-container.vertical-tabs .section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container.vertical-tabs section>.title:hover,#bp-media-settings-boxes .section-container.vertical-tabs .section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container.vertical-tabs section .content,#bp-media-settings-boxes .section-container.vertical-tabs .section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container.vertical-tabs section .content>*:last-child,#bp-media-settings-boxes .section-container.vertical-tabs .section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container.vertical-tabs section .content>*:first-child,#bp-media-settings-boxes .section-container.vertical-tabs .section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container.vertical-tabs section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.vertical-tabs .section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container.vertical-tabs section.active>.content,#bp-media-settings-boxes .section-container.vertical-tabs .section.active>.content{display:block}#bp-media-settings-boxes .section-container.vertical-tabs section.active>.title,#bp-media-settings-boxes .section-container.vertical-tabs .section.active>.title{background:#d5d5d5}#bp-media-settings-boxes .section-container.vertical-tabs section.active>.title a,#bp-media-settings-boxes .section-container.vertical-tabs .section.active>.title a{color:#333}#bp-media-settings-boxes .section-container.vertical-tabs section>.title,#bp-media-settings-boxes .section-container.vertical-tabs .section>.title{position:absolute;border-top:solid 1px #ccc;width:12.5em}#bp-media-settings-boxes .section-container.vertical-tabs section:first-child .title,#bp-media-settings-boxes .section-container.vertical-tabs .section:first-child .title{border-top:0}#bp-media-settings-boxes .section-container.vertical-tabs section .content,#bp-media-settings-boxes .section-container.vertical-tabs .section .content{display:block;position:relative;left:12.5em;border-left:solid 1px #ccc;z-index:10}#bp-media-settings-boxes .section-container.vertical-tabs section.active>.title,#bp-media-settings-boxes .section-container.vertical-tabs .section.active>.title{background-color:#d5d5d5;width:12.5625em;border-right:solid 0 transparent;z-index:11}#bp-media-settings-boxes .section-container.vertical-tabs section.active:last-child .title,#bp-media-settings-boxes .section-container.vertical-tabs .section.active:last-child .title{border-bottom:0}#bp-media-settings-boxes .section-container.vertical-nav{border:0;position:relative}#bp-media-settings-boxes .section-container.vertical-nav>section,#bp-media-settings-boxes .section-container.vertical-nav>.section{padding-top:0 !important;position:relative}#bp-media-settings-boxes .section-container.vertical-nav>section>.title,#bp-media-settings-boxes .section-container.vertical-nav>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container.vertical-nav>section>.title a,#bp-media-settings-boxes .section-container.vertical-nav>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container.vertical-nav>section>.title:hover,#bp-media-settings-boxes .section-container.vertical-nav>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container.vertical-nav>section .content,#bp-media-settings-boxes .section-container.vertical-nav>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container.vertical-nav>section .content>*:last-child,#bp-media-settings-boxes .section-container.vertical-nav>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container.vertical-nav>section .content>*:first-child,#bp-media-settings-boxes .section-container.vertical-nav>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container.vertical-nav>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.vertical-nav>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container.vertical-nav>section.active>.content,#bp-media-settings-boxes .section-container.vertical-nav>.section.active>.content{display:block}#bp-media-settings-boxes .section-container.vertical-nav>section.active>.title,#bp-media-settings-boxes .section-container.vertical-nav>.section.active>.title{background:#d5d5d5}#bp-media-settings-boxes .section-container.vertical-nav>section.active>.title a,#bp-media-settings-boxes .section-container.vertical-nav>.section.active>.title a{color:#333}#bp-media-settings-boxes .section-container.vertical-nav>section>.title,#bp-media-settings-boxes .section-container.vertical-nav>.section>.title{border-top:none;border:solid 1px #ccc}#bp-media-settings-boxes .section-container.vertical-nav>section>.title a,#bp-media-settings-boxes .section-container.vertical-nav>.section>.title a{display:block;width:100%}#bp-media-settings-boxes .section-container.vertical-nav>section .content,#bp-media-settings-boxes .section-container.vertical-nav>.section .content{display:none}#bp-media-settings-boxes .section-container.vertical-nav>section:first-child .title,#bp-media-settings-boxes .section-container.vertical-nav>.section:first-child .title{border-bottom:none}#bp-media-settings-boxes .section-container.vertical-nav>section.active>.content,#bp-media-settings-boxes .section-container.vertical-nav>.section.active>.content{display:block;position:absolute;left:100%;top:0px;z-index:999;min-width:12.5em;border:solid 1px #ccc}#bp-media-settings-boxes .section-container.horizontal-nav{position:relative;background:#efefef;border:1px solid #ccc}#bp-media-settings-boxes .section-container.horizontal-nav>section,#bp-media-settings-boxes .section-container.horizontal-nav>.section{padding-top:0;border:0;position:static}#bp-media-settings-boxes .section-container.horizontal-nav>section>.title,#bp-media-settings-boxes .section-container.horizontal-nav>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container.horizontal-nav>section>.title a,#bp-media-settings-boxes .section-container.horizontal-nav>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container.horizontal-nav>section>.title:hover,#bp-media-settings-boxes .section-container.horizontal-nav>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container.horizontal-nav>section .content,#bp-media-settings-boxes .section-container.horizontal-nav>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container.horizontal-nav>section .content>*:last-child,#bp-media-settings-boxes .section-container.horizontal-nav>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container.horizontal-nav>section .content>*:first-child,#bp-media-settings-boxes .section-container.horizontal-nav>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container.horizontal-nav>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.horizontal-nav>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container.horizontal-nav>section.active>.content,#bp-media-settings-boxes .section-container.horizontal-nav>.section.active>.content{display:block}#bp-media-settings-boxes .section-container.horizontal-nav>section.active>.title,#bp-media-settings-boxes .section-container.horizontal-nav>.section.active>.title{background:#d5d5d5}#bp-media-settings-boxes .section-container.horizontal-nav>section.active>.title a,#bp-media-settings-boxes .section-container.horizontal-nav>.section.active>.title a{color:#333}#bp-media-settings-boxes .section-container.horizontal-nav>section>.title,#bp-media-settings-boxes .section-container.horizontal-nav>.section>.title{width:auto;border:solid 1px #ccc;border-left:0;top:-1px;position:absolute;z-index:1}#bp-media-settings-boxes .section-container.horizontal-nav>section>.title a,#bp-media-settings-boxes .section-container.horizontal-nav>.section>.title a{width:100%}#bp-media-settings-boxes .section-container.horizontal-nav>section .content,#bp-media-settings-boxes .section-container.horizontal-nav>.section .content{display:none}#bp-media-settings-boxes .section-container.horizontal-nav>section.active>.content,#bp-media-settings-boxes .section-container.horizontal-nav>.section.active>.content{display:block;position:absolute;z-index:999;left:0;top:-2px;min-width:12.5em;border:solid 1px #ccc}}#bp-media-settings-boxes .no-js .section-container.auto,#bp-media-settings-boxes .no-js .section-container.accordion,#bp-media-settings-boxes .no-js .section-container.tabs,#bp-media-settings-boxes .no-js .section-container.vertical-tabs,#bp-media-settings-boxes .no-js .section-container.vertical-nav,#bp-media-settings-boxes .no-js .section-container.horizontal-nav{width:100%;display:block;margin-bottom:1.25em;border:1px solid #ccc;border-top:none}#bp-media-settings-boxes .no-js .section-container.auto>section,#bp-media-settings-boxes .no-js .section-container.auto>.section,#bp-media-settings-boxes .no-js .section-container.accordion>section,#bp-media-settings-boxes .no-js .section-container.accordion>.section,#bp-media-settings-boxes .no-js .section-container.tabs>section,#bp-media-settings-boxes .no-js .section-container.tabs>.section,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section{position:relative}#bp-media-settings-boxes .no-js .section-container.auto>section>.title,#bp-media-settings-boxes .no-js .section-container.auto>.section>.title,#bp-media-settings-boxes .no-js .section-container.accordion>section>.title,#bp-media-settings-boxes .no-js .section-container.accordion>.section>.title,#bp-media-settings-boxes .no-js .section-container.tabs>section>.title,#bp-media-settings-boxes .no-js .section-container.tabs>.section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .no-js .section-container.auto>section>.title a,#bp-media-settings-boxes .no-js .section-container.auto>.section>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>section>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>.section>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>section>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>.section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .no-js .section-container.auto>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.auto>.section>.title:hover,#bp-media-settings-boxes .no-js .section-container.accordion>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.accordion>.section>.title:hover,#bp-media-settings-boxes .no-js .section-container.tabs>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.tabs>.section>.title:hover,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section>.title:hover,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section>.title:hover,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .no-js .section-container.auto>section .content,#bp-media-settings-boxes .no-js .section-container.auto>.section .content,#bp-media-settings-boxes .no-js .section-container.accordion>section .content,#bp-media-settings-boxes .no-js .section-container.accordion>.section .content,#bp-media-settings-boxes .no-js .section-container.tabs>section .content,#bp-media-settings-boxes .no-js .section-container.tabs>.section .content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .no-js .section-container.auto>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.auto>.section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.accordion>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.accordion>.section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.tabs>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.tabs>.section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .no-js .section-container.auto>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.auto>.section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.accordion>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.accordion>.section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.tabs>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.tabs>.section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .no-js .section-container.auto>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.auto>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.accordion>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.accordion>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.tabs>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.tabs>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .no-js .section-container.auto>section.active>.content,#bp-media-settings-boxes .no-js .section-container.auto>.section.active>.content,#bp-media-settings-boxes .no-js .section-container.accordion>section.active>.content,#bp-media-settings-boxes .no-js .section-container.accordion>.section.active>.content,#bp-media-settings-boxes .no-js .section-container.tabs>section.active>.content,#bp-media-settings-boxes .no-js .section-container.tabs>.section.active>.content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section.active>.content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section.active>.content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section.active>.content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section.active>.content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section.active>.content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section.active>.content{display:block}#bp-media-settings-boxes .no-js .section-container.auto>section.active>.title,#bp-media-settings-boxes .no-js .section-container.auto>.section.active>.title,#bp-media-settings-boxes .no-js .section-container.accordion>section.active>.title,#bp-media-settings-boxes .no-js .section-container.accordion>.section.active>.title,#bp-media-settings-boxes .no-js .section-container.tabs>section.active>.title,#bp-media-settings-boxes .no-js .section-container.tabs>.section.active>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section.active>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section.active>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section.active>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section.active>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section.active>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section.active>.title{background:#d5d5d5}#bp-media-settings-boxes .no-js .section-container.auto>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.auto>.section.active>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>.section.active>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>.section.active>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section.active>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section.active>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section.active>.title a{color:#333}#bp-media-settings-boxes .no-js .section-container.auto>section>.title,#bp-media-settings-boxes .no-js .section-container.auto>.section>.title,#bp-media-settings-boxes .no-js .section-container.accordion>section>.title,#bp-media-settings-boxes .no-js .section-container.accordion>.section>.title,#bp-media-settings-boxes .no-js .section-container.tabs>section>.title,#bp-media-settings-boxes .no-js .section-container.tabs>.section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section>.title{top:0;width:100%;margin:0;border-top:solid 1px #ccc}#bp-media-settings-boxes .no-js .section-container.auto>section>.title a,#bp-media-settings-boxes .no-js .section-container.auto>.section>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>section>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>.section>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>section>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>.section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section>.title a{width:100%}#bp-media-settings-boxes .no-js .section-container.auto>section .title,#bp-media-settings-boxes .no-js .section-container.auto>.section .title,#bp-media-settings-boxes .no-js .section-container.accordion>section .title,#bp-media-settings-boxes .no-js .section-container.accordion>.section .title,#bp-media-settings-boxes .no-js .section-container.tabs>section .title,#bp-media-settings-boxes .no-js .section-container.tabs>.section .title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .title{position:static;width:100%;border-left:0;border-right:0}#bp-media-settings-boxes .no-js .section-container.auto>section .content,#bp-media-settings-boxes .no-js .section-container.auto>.section .content,#bp-media-settings-boxes .no-js .section-container.accordion>section .content,#bp-media-settings-boxes .no-js .section-container.accordion>.section .content,#bp-media-settings-boxes .no-js .section-container.tabs>section .content,#bp-media-settings-boxes .no-js .section-container.tabs>.section .content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .content{position:static;display:block;width:100%;border-left:0;border-right:0;border-bottom:0}#bp-media-settings-boxes .has-switch{border-radius:0}#bp-media-settings-boxes .has-switch label{padding:6px;border-radius:0}#bp-media-settings-boxes .has-switch span.switch-left{border-radius:0}#bp-media-settings-boxes .has-switch span.switch-right{border-radius:0}#bp-media-settings-boxes .rtmedia-setting-text-box{width:55px;text-align:right}#bp-media-settings-boxes .section-container section .title a{font-size:13px;text-decoration:none;font-weight:bold;color:#555}#bp-media-settings-boxes .section-container section .title a:hover{color:#000}#bp-media-settings-boxes .section-container section.active .title a{color:#000}#bp-media-settings-boxes .section-container .rtmedia-size-content-setting .rt-form-dimension input[type="text"]{margin-left:32px}#bp-media-settings-boxes .section-container .rtmedia-size-content-setting .rt-form-dimension span{margin-left:36px}#bp-media-settings-boxes .section-container.vertical-tabs section .title a,#bp-media-settings-boxes .section-container.auto section .title a{font-size:13px}#bp-media-settings-boxes .section-container.vertical-tabs section.active .title a,#bp-media-settings-boxes .section-container.auto section.active .title a{color:#000}#bp-media-settings-boxes .global-album-settings .default-global-albums{padding:5px 0;overflow:hidden}#bp-media-settings-boxes .global-album-settings .default-global-albums:hover{background-color:#EEE}
|
app/assets/js/rtMedia.backbone.js
CHANGED
@@ -3,6 +3,7 @@ var nextpage = 2;
|
|
3 |
Â
var upload_sync = false;
|
4 |
Â
var activity_id = -1;
|
5 |
Â
var uploaderObj;
|
Â
|
|
6 |
Â
|
7 |
Â
jQuery(function($) {
|
8 |
Â
|
@@ -77,7 +78,7 @@ jQuery(function($) {
|
|
77 |
Â
json: true,
|
78 |
Â
rtmedia_page: nextpage
|
79 |
Â
};
|
80 |
-
|
81 |
Â
if (el != undefined) {
|
82 |
Â
$(el).children("input[type=hidden]").each(function(e) {
|
83 |
Â
query[$(this).attr("name")] = $(this).val();
|
@@ -96,6 +97,7 @@ jQuery(function($) {
|
|
96 |
Â
},
|
97 |
Â
reloadView: function() {
|
98 |
Â
upload_sync = true;
|
Â
|
|
99 |
Â
this.getNext();
|
100 |
Â
}
|
101 |
Â
|
@@ -151,7 +153,7 @@ jQuery(function($) {
|
|
151 |
Â
|
152 |
Â
},
|
153 |
Â
appendTo: function(media) {
|
154 |
-
console.log("append");
|
155 |
Â
var mediaView = new rtMedia.MediaView({
|
156 |
Â
model: media
|
157 |
Â
});
|
@@ -251,13 +253,20 @@ jQuery(function($) {
|
|
251 |
Â
var upload_size_error = false;
|
252 |
Â
var upload_error = "";
|
253 |
Â
var upload_error_sep = "";
|
Â
|
|
254 |
Â
$.each(files, function(i, file) {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
255 |
Â
if (uploaderObj.uploader.settings.max_file_size < file.size) {
|
256 |
Â
upload_size_error = true
|
257 |
Â
upload_error += upload_error_sep + file.name;
|
258 |
Â
upload_error_sep = ",";
|
259 |
Â
var tr = "<tr style='background-color:lightpink;color:black' id='" + file.id + "'><td>" + file.name + "(" + plupload.formatSize(file.size) + ")" + "</td><td colspan='3'> Max file size is " + plupload.formatSize(uploaderObj.uploader.settings.max_file_size) + "</td></tr>"
|
260 |
-
$("#rtMedia-queue-list tbody").append(tr)
|
261 |
Â
return true;
|
262 |
Â
}
|
263 |
Â
tdName = document.createElement("td");
|
@@ -289,6 +298,10 @@ jQuery(function($) {
|
|
289 |
Â
});
|
290 |
Â
|
291 |
Â
});
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
292 |
Â
if (upload_size_error) {
|
293 |
Â
// alert(upload_error + " because max file size is " + plupload.formatSize(uploaderObj.uploader.settings.max_file_size) );
|
294 |
Â
}
|
@@ -314,7 +327,7 @@ jQuery(function($) {
|
|
314 |
Â
up.settings.multipart_params[$(this).attr("name")] = $(this).val();
|
315 |
Â
});
|
316 |
Â
up.settings.multipart_params.activity_id = activity_id;
|
317 |
-
|
318 |
Â
up.settings.multipart_params.album_id = $('#rtmedia-uploader-form .rtmedia-user-album-list').find(":selected").val();
|
319 |
Â
else if ($('#rtmedia-uploader-form .rtmedia-current-album').length > 0)
|
320 |
Â
up.settings.multipart_params.album_id = $('#rtmedia-uploader-form .rtmedia-current-album').val();
|
@@ -395,7 +408,7 @@ jQuery(document).ready(function($) {
|
|
395 |
Â
$("#rtmedia-action-update").append($("#rtm-file_upload-ui .privacy"));
|
396 |
Â
}
|
397 |
Â
}
|
398 |
-
|
399 |
Â
$("#whats-new-form").on('click', '#rtmedia-add-media-button-post-update', function(e) {
|
400 |
Â
$("#div-attache-rtmedia").toggle();
|
401 |
Â
objUploadView.uploader.refresh();
|
@@ -403,9 +416,16 @@ jQuery(document).ready(function($) {
|
|
403 |
Â
//whats-new-post-in
|
404 |
Â
|
405 |
Â
|
406 |
-
objUploadView.uploader.bind('FilesAdded', function(
|
407 |
Â
//$("#aw-whats-new-submit").attr('disabled', 'disabled');
|
408 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
409 |
Â
tdName = document.createElement("span");
|
410 |
Â
tdName.innerHTML = file.name;
|
411 |
Â
tdStatus = document.createElement("span");
|
@@ -417,6 +437,9 @@ jQuery(document).ready(function($) {
|
|
417 |
Â
tr.appendChild(tdStatus);
|
418 |
Â
$("#rtMedia-update-queue-list").append(tr);
|
419 |
Â
});
|
Â
|
|
Â
|
|
Â
|
|
420 |
Â
});
|
421 |
Â
|
422 |
Â
objUploadView.uploader.bind('FileUploaded', function(up, file, res) {
|
3 |
Â
var upload_sync = false;
|
4 |
Â
var activity_id = -1;
|
5 |
Â
var uploaderObj;
|
6 |
+
var objUploadView ;
|
7 |
Â
|
8 |
Â
jQuery(function($) {
|
9 |
Â
|
78 |
Â
json: true,
|
79 |
Â
rtmedia_page: nextpage
|
80 |
Â
};
|
81 |
+
el = jQuery(".rtmedia-list").parent().parent();
|
82 |
Â
if (el != undefined) {
|
83 |
Â
$(el).children("input[type=hidden]").each(function(e) {
|
84 |
Â
query[$(this).attr("name")] = $(this).val();
|
97 |
Â
},
|
98 |
Â
reloadView: function() {
|
99 |
Â
upload_sync = true;
|
100 |
+
nextpage = 1;
|
101 |
Â
this.getNext();
|
102 |
Â
}
|
103 |
Â
|
153 |
Â
|
154 |
Â
},
|
155 |
Â
appendTo: function(media) {
|
156 |
+
//console.log("append");
|
157 |
Â
var mediaView = new rtMedia.MediaView({
|
158 |
Â
model: media
|
159 |
Â
});
|
253 |
Â
var upload_size_error = false;
|
254 |
Â
var upload_error = "";
|
255 |
Â
var upload_error_sep = "";
|
256 |
+
var upload_remove_array= [];
|
257 |
Â
$.each(files, function(i, file) {
|
258 |
+
var hook_respo = rtMediaHook.call('rtmedia_js_file_added', [up,file, "#rtMedia-queue-list tbody"]);
|
259 |
+
if( hook_respo == false){
|
260 |
+
file.status = -1;
|
261 |
+
upload_remove_array.push(file.id);
|
262 |
+
return true;
|
263 |
+
}
|
264 |
Â
if (uploaderObj.uploader.settings.max_file_size < file.size) {
|
265 |
Â
upload_size_error = true
|
266 |
Â
upload_error += upload_error_sep + file.name;
|
267 |
Â
upload_error_sep = ",";
|
268 |
Â
var tr = "<tr style='background-color:lightpink;color:black' id='" + file.id + "'><td>" + file.name + "(" + plupload.formatSize(file.size) + ")" + "</td><td colspan='3'> Max file size is " + plupload.formatSize(uploaderObj.uploader.settings.max_file_size) + "</td></tr>"
|
269 |
+
$("#rtMedia-queue-list tbody").append(tr);
|
270 |
Â
return true;
|
271 |
Â
}
|
272 |
Â
tdName = document.createElement("td");
|
298 |
Â
});
|
299 |
Â
|
300 |
Â
});
|
301 |
+
$.each(upload_remove_array, function(i, rfile) {
|
302 |
+
up.removeFile(up.getFile(rfile));
|
303 |
+
});
|
304 |
+
|
305 |
Â
if (upload_size_error) {
|
306 |
Â
// alert(upload_error + " because max file size is " + plupload.formatSize(uploaderObj.uploader.settings.max_file_size) );
|
307 |
Â
}
|
327 |
Â
up.settings.multipart_params[$(this).attr("name")] = $(this).val();
|
328 |
Â
});
|
329 |
Â
up.settings.multipart_params.activity_id = activity_id;
|
330 |
+
if ($('#rtmedia-uploader-form .rtmedia-user-album-list').length > 0)
|
331 |
Â
up.settings.multipart_params.album_id = $('#rtmedia-uploader-form .rtmedia-user-album-list').find(":selected").val();
|
332 |
Â
else if ($('#rtmedia-uploader-form .rtmedia-current-album').length > 0)
|
333 |
Â
up.settings.multipart_params.album_id = $('#rtmedia-uploader-form .rtmedia-current-album').val();
|
408 |
Â
$("#rtmedia-action-update").append($("#rtm-file_upload-ui .privacy"));
|
409 |
Â
}
|
410 |
Â
}
|
411 |
+
objUploadView = new UploadView(rtMedia_update_plupload_config);
|
412 |
Â
$("#whats-new-form").on('click', '#rtmedia-add-media-button-post-update', function(e) {
|
413 |
Â
$("#div-attache-rtmedia").toggle();
|
414 |
Â
objUploadView.uploader.refresh();
|
416 |
Â
//whats-new-post-in
|
417 |
Â
|
418 |
Â
|
419 |
+
objUploadView.uploader.bind('FilesAdded', function(upl, rfiles) {
|
420 |
Â
//$("#aw-whats-new-submit").attr('disabled', 'disabled');
|
421 |
+
objUploadView.upload_remove_array= [];
|
422 |
+
$.each(rfiles, function(i, file) {
|
423 |
+
var hook_respo = rtMediaHook.call('rtmedia_js_file_added', [upl,file, "#rtMedia-update-queue-list"]);
|
424 |
+
if( hook_respo == false){
|
425 |
+
file.status = -1;
|
426 |
+
upload_remove_array.push(file.id);
|
427 |
+
return true;
|
428 |
+
}
|
429 |
Â
tdName = document.createElement("span");
|
430 |
Â
tdName.innerHTML = file.name;
|
431 |
Â
tdStatus = document.createElement("span");
|
437 |
Â
tr.appendChild(tdStatus);
|
438 |
Â
$("#rtMedia-update-queue-list").append(tr);
|
439 |
Â
});
|
440 |
+
$.each(objUploadView.upload_remove_array, function(i, rfile) {
|
441 |
+
objUploadView.uploader.removeFile(objUploadView.uploader.getFile(rfile));
|
442 |
+
});
|
443 |
Â
});
|
444 |
Â
|
445 |
Â
objUploadView.uploader.bind('FileUploaded', function(up, file, res) {
|
app/assets/js/rtMedia.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
Â
var rtMagnificPopup;
|
2 |
Â
var rtMediaHook = {
|
3 |
Â
hooks: [],
|
Â
|
|
4 |
Â
register: function(name, callback) {
|
5 |
Â
if ('undefined' == typeof(rtMediaHook.hooks[name]))
|
6 |
Â
rtMediaHook.hooks[name] = []
|
@@ -8,10 +9,14 @@ var rtMediaHook = {
|
|
8 |
Â
},
|
9 |
Â
call: function(name, arguments) {
|
10 |
Â
if ('undefined' != typeof(rtMediaHook.hooks[name]))
|
11 |
-
for (i = 0; i < rtMediaHook.hooks[name].length; ++i)
|
12 |
Â
if (true != rtMediaHook.hooks[name][i](arguments)) {
|
Â
|
|
Â
|
|
13 |
Â
break;
|
14 |
Â
}
|
Â
|
|
Â
|
|
15 |
Â
}
|
16 |
Â
}
|
17 |
Â
jQuery('document').ready(function($) {
|
@@ -79,10 +84,10 @@ jQuery('document').ready(function($) {
|
|
79 |
Â
rtMediaHook.call('rtmedia_js_popup_after_content_added', []);
|
80 |
Â
},
|
81 |
Â
close: function(e) {
|
82 |
-
console.log(e);
|
83 |
Â
},
|
84 |
Â
BeforeChange: function(e) {
|
85 |
-
console.log(e);
|
86 |
Â
}
|
87 |
Â
}
|
88 |
Â
});
|
@@ -132,6 +137,7 @@ jQuery('document').ready(function($) {
|
|
132 |
Â
var old_val = $("#rtmedia_create_new_album").html();
|
133 |
Â
$("#rtmedia_create_new_album").prepend("<img src='" + rMedia_loading_file + "'/>");
|
134 |
Â
jQuery.post(rtmedia_ajax_url, data, function(response) {
|
Â
|
|
135 |
Â
if (response) {
|
136 |
Â
response = response.trim();
|
137 |
Â
var flag = true;
|
1 |
Â
var rtMagnificPopup;
|
2 |
Â
var rtMediaHook = {
|
3 |
Â
hooks: [],
|
4 |
+
is_break : false,
|
5 |
Â
register: function(name, callback) {
|
6 |
Â
if ('undefined' == typeof(rtMediaHook.hooks[name]))
|
7 |
Â
rtMediaHook.hooks[name] = []
|
9 |
Â
},
|
10 |
Â
call: function(name, arguments) {
|
11 |
Â
if ('undefined' != typeof(rtMediaHook.hooks[name]))
|
12 |
+
for (i = 0; i < rtMediaHook.hooks[name].length; ++i){
|
13 |
Â
if (true != rtMediaHook.hooks[name][i](arguments)) {
|
14 |
+
rtMediaHook.is_break=true;
|
15 |
+
return false;
|
16 |
Â
break;
|
17 |
Â
}
|
18 |
+
}
|
19 |
+
return true;
|
20 |
Â
}
|
21 |
Â
}
|
22 |
Â
jQuery('document').ready(function($) {
|
84 |
Â
rtMediaHook.call('rtmedia_js_popup_after_content_added', []);
|
85 |
Â
},
|
86 |
Â
close: function(e) {
|
87 |
+
//console.log(e);
|
88 |
Â
},
|
89 |
Â
BeforeChange: function(e) {
|
90 |
+
//console.log(e);
|
91 |
Â
}
|
92 |
Â
}
|
93 |
Â
});
|
137 |
Â
var old_val = $("#rtmedia_create_new_album").html();
|
138 |
Â
$("#rtmedia_create_new_album").prepend("<img src='" + rMedia_loading_file + "'/>");
|
139 |
Â
jQuery.post(rtmedia_ajax_url, data, function(response) {
|
140 |
+
response = response.trim();
|
141 |
Â
if (response) {
|
142 |
Â
response = response.trim();
|
143 |
Â
var flag = true;
|
app/assets/sass/main.scss
CHANGED
@@ -5,6 +5,11 @@
|
|
5 |
Â
@import "foundation/components/grid";
|
6 |
Â
@import "foundation/components/visibility";
|
7 |
Â
@import "foundation/components/flex-video";
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
8 |
Â
.row{
|
9 |
Â
max-width:95%;
|
10 |
Â
}
|
@@ -59,6 +64,7 @@
|
|
59 |
Â
word-wrap: break-word;
|
60 |
Â
margin:10px;
|
61 |
Â
float:left;
|
Â
|
|
62 |
Â
a {
|
63 |
Â
text-decoration:none;
|
64 |
Â
h4 {
|
@@ -73,7 +79,7 @@
|
|
73 |
Â
.mejs-controls {
|
74 |
Â
.mejs-time-rail {
|
75 |
Â
margin: 8px 2px 2px 0;
|
76 |
-
}
|
77 |
Â
}
|
78 |
Â
}
|
79 |
Â
}
|
@@ -186,7 +192,7 @@
|
|
186 |
Â
}
|
187 |
Â
.mejs-layers .mejs-poster {
|
188 |
Â
overflow: hidden;
|
189 |
-
}
|
190 |
Â
}
|
191 |
Â
.rtmedia-media-title {
|
192 |
Â
margin: 0 0 5px 0;
|
@@ -309,7 +315,7 @@
|
|
309 |
Â
overflow:hidden;
|
310 |
Â
.mejs-overlay-button{
|
311 |
Â
margin: -50px 0 0 -50px;
|
312 |
-
}
|
313 |
Â
}
|
314 |
Â
}
|
315 |
Â
}
|
@@ -321,7 +327,7 @@
|
|
321 |
Â
|
322 |
Â
|
323 |
Â
#buddypress, .rtmedia-container {
|
324 |
-
.mejs-controls {
|
325 |
Â
button {
|
326 |
Â
padding: 4px 8px;
|
327 |
Â
border: none;
|
@@ -349,12 +355,12 @@
|
|
349 |
Â
}
|
350 |
Â
.mejs-fullscreen-button {
|
351 |
Â
button {
|
352 |
-
background-position: -32px 0;
|
353 |
-
}
|
354 |
Â
}
|
355 |
Â
.mejs-unfullscreen {
|
356 |
Â
button{
|
357 |
-
background-position: -32px -16px;
|
358 |
Â
}
|
359 |
Â
}
|
360 |
Â
}
|
@@ -402,7 +408,7 @@
|
|
402 |
Â
}
|
403 |
Â
.rtmp-uploaded-file {
|
404 |
Â
width: 100%;
|
405 |
-
}
|
406 |
Â
.close {
|
407 |
Â
cursor: pointer;
|
408 |
Â
color : red;
|
@@ -413,11 +419,15 @@ button.mfp-arrow,button.mfp-arrow:active {
|
|
413 |
Â
}
|
414 |
Â
|
415 |
Â
button.mfp-close {
|
416 |
-
margin-top:-10px;
|
417 |
Â
}
|
418 |
Â
|
419 |
Â
#object-nav,#group-admins,.item-list-tabs{
|
420 |
Â
li{
|
421 |
Â
list-style:none;
|
422 |
Â
}
|
423 |
-
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
5 |
Â
@import "foundation/components/grid";
|
6 |
Â
@import "foundation/components/visibility";
|
7 |
Â
@import "foundation/components/flex-video";
|
8 |
+
#buddypress{
|
9 |
+
li{
|
10 |
+
list-style:none;
|
11 |
+
}
|
12 |
+
}
|
13 |
Â
.row{
|
14 |
Â
max-width:95%;
|
15 |
Â
}
|
64 |
Â
word-wrap: break-word;
|
65 |
Â
margin:10px;
|
66 |
Â
float:left;
|
67 |
+
list-style:none;
|
68 |
Â
a {
|
69 |
Â
text-decoration:none;
|
70 |
Â
h4 {
|
79 |
Â
.mejs-controls {
|
80 |
Â
.mejs-time-rail {
|
81 |
Â
margin: 8px 2px 2px 0;
|
82 |
+
}
|
83 |
Â
}
|
84 |
Â
}
|
85 |
Â
}
|
192 |
Â
}
|
193 |
Â
.mejs-layers .mejs-poster {
|
194 |
Â
overflow: hidden;
|
195 |
+
}
|
196 |
Â
}
|
197 |
Â
.rtmedia-media-title {
|
198 |
Â
margin: 0 0 5px 0;
|
315 |
Â
overflow:hidden;
|
316 |
Â
.mejs-overlay-button{
|
317 |
Â
margin: -50px 0 0 -50px;
|
318 |
+
}
|
319 |
Â
}
|
320 |
Â
}
|
321 |
Â
}
|
327 |
Â
|
328 |
Â
|
329 |
Â
#buddypress, .rtmedia-container {
|
330 |
+
.mejs-controls {
|
331 |
Â
button {
|
332 |
Â
padding: 4px 8px;
|
333 |
Â
border: none;
|
355 |
Â
}
|
356 |
Â
.mejs-fullscreen-button {
|
357 |
Â
button {
|
358 |
+
background-position: -32px 0;
|
359 |
+
}
|
360 |
Â
}
|
361 |
Â
.mejs-unfullscreen {
|
362 |
Â
button{
|
363 |
+
background-position: -32px -16px;
|
364 |
Â
}
|
365 |
Â
}
|
366 |
Â
}
|
408 |
Â
}
|
409 |
Â
.rtmp-uploaded-file {
|
410 |
Â
width: 100%;
|
411 |
+
}
|
412 |
Â
.close {
|
413 |
Â
cursor: pointer;
|
414 |
Â
color : red;
|
419 |
Â
}
|
420 |
Â
|
421 |
Â
button.mfp-close {
|
422 |
+
margin-top:-10px;
|
423 |
Â
}
|
424 |
Â
|
425 |
Â
#object-nav,#group-admins,.item-list-tabs{
|
426 |
Â
li{
|
427 |
Â
list-style:none;
|
428 |
Â
}
|
429 |
+
}
|
430 |
+
|
431 |
+
.mejs-video .mejs-controls {
|
432 |
+
position: abosulute;
|
433 |
+
}
|
app/assets/sass/settings.scss
CHANGED
@@ -15,6 +15,10 @@
|
|
15 |
Â
.has-switch span.switch-right {
|
16 |
Â
border-radius: 0;
|
17 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
18 |
Â
.section-container {
|
19 |
Â
section {
|
20 |
Â
.title {
|
15 |
Â
.has-switch span.switch-right {
|
16 |
Â
border-radius: 0;
|
17 |
Â
}
|
18 |
+
.rtmedia-setting-text-box {
|
19 |
+
width: 55px;
|
20 |
+
text-align: right;
|
21 |
+
}
|
22 |
Â
.section-container {
|
23 |
Â
section {
|
24 |
Â
.title {
|
app/helper/RTMediaModel.php
CHANGED
@@ -71,11 +71,11 @@ class RTMediaModel extends RTDBModel {
|
|
71 |
Â
}
|
72 |
Â
}
|
73 |
Â
$qorder_by = " ORDER BY {$this->table_name}.$order_by";
|
74 |
-
|
75 |
Â
$join = apply_filters ( 'rtmedia-model-join-query', $join, $this->table_name );
|
76 |
Â
$where = apply_filters ( 'rtmedia-model-where-query', $where, $this->table_name );
|
77 |
Â
$qorder_by = apply_filters ( 'rtmedia-model-order-by-query', $qorder_by, $this->table_name );
|
78 |
-
|
79 |
Â
$sql = $select . $join . $where .$qorder_by;
|
80 |
Â
if ( is_integer ( $offset ) && is_integer ( $per_page ) ) {
|
81 |
Â
$sql .= ' LIMIT ' . $offset . ',' . $per_page;
|
@@ -246,4 +246,4 @@ class RTMediaModel extends RTDBModel {
|
|
246 |
Â
|
247 |
Â
}
|
248 |
Â
|
249 |
-
?>
|
71 |
Â
}
|
72 |
Â
}
|
73 |
Â
$qorder_by = " ORDER BY {$this->table_name}.$order_by";
|
74 |
+
|
75 |
Â
$join = apply_filters ( 'rtmedia-model-join-query', $join, $this->table_name );
|
76 |
Â
$where = apply_filters ( 'rtmedia-model-where-query', $where, $this->table_name );
|
77 |
Â
$qorder_by = apply_filters ( 'rtmedia-model-order-by-query', $qorder_by, $this->table_name );
|
78 |
+
|
79 |
Â
$sql = $select . $join . $where .$qorder_by;
|
80 |
Â
if ( is_integer ( $offset ) && is_integer ( $per_page ) ) {
|
81 |
Â
$sql .= ' LIMIT ' . $offset . ',' . $per_page;
|
246 |
Â
|
247 |
Â
}
|
248 |
Â
|
249 |
+
?>
|
app/helper/RTMediaSupport.php
CHANGED
@@ -10,11 +10,17 @@ if (!class_exists('RTMediaSupport')) {
|
|
10 |
Â
class RTMediaSupport {
|
11 |
Â
|
12 |
Â
var $debug_info;
|
13 |
-
|
14 |
Â
public function __construct($init = true) {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
15 |
Â
if($init) {
|
16 |
Â
$this->debug_info();
|
17 |
-
|
Â
|
|
Â
|
|
18 |
Â
}
|
19 |
Â
}
|
20 |
Â
|
@@ -37,11 +43,51 @@ if (!class_exists('RTMediaSupport')) {
|
|
37 |
Â
//$this->get_form("premium_support");
|
38 |
Â
}
|
39 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
40 |
Â
function call_get_form () {
|
41 |
Â
if(isset($_REQUEST['page']) && $_REQUEST['page'] == 'rtmedia-support') {
|
42 |
-
echo "<
|
43 |
-
$this->
|
44 |
-
|
Â
|
|
Â
|
|
Â
|
|
45 |
Â
}
|
46 |
Â
}
|
47 |
Â
|
@@ -51,9 +97,53 @@ if (!class_exists('RTMediaSupport')) {
|
|
51 |
Â
}
|
52 |
Â
}
|
53 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
54 |
Â
public function debug_info() {
|
55 |
Â
global $wpdb, $wp_version, $bp;
|
56 |
Â
$debug_info = array();
|
Â
|
|
Â
|
|
57 |
Â
$debug_info['PHP'] = PHP_VERSION;
|
58 |
Â
$debug_info['MYSQL'] = $wpdb->db_version();
|
59 |
Â
$debug_info['WordPress'] = $wp_version;
|
@@ -76,6 +166,22 @@ if (!class_exists('RTMediaSupport')) {
|
|
76 |
Â
$debug_info['[php.ini] post_max_size'] = ini_get('post_max_size');
|
77 |
Â
$debug_info['[php.ini] upload_max_filesize'] = ini_get('upload_max_filesize');
|
78 |
Â
$debug_info['[php.ini] memory_limit'] = ini_get('memory_limit');
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
79 |
Â
$this->debug_info = $debug_info;
|
80 |
Â
}
|
81 |
Â
|
@@ -274,7 +380,7 @@ if (!class_exists('RTMediaSupport')) {
|
|
274 |
Â
$message .= '<table>';
|
275 |
Â
foreach ($this->debug_info as $configuration => $value) {
|
276 |
Â
$message .= '<tr>
|
277 |
-
<td>' . $configuration . '</td><td>' . $value . '</td>
|
278 |
Â
</tr>';
|
279 |
Â
}
|
280 |
Â
$message .= '</table>';
|
@@ -289,18 +395,22 @@ if (!class_exists('RTMediaSupport')) {
|
|
289 |
Â
else {
|
290 |
Â
$support_email = "support@rtcamp.com";
|
291 |
Â
}
|
292 |
-
$support_email = "support+m2p-37e6afd@rtcamp.com";
|
293 |
Â
if (wp_mail($support_email, '[rtmedia] ' . $mail_type . ' from ' . str_replace(array('http://', 'https://'), '', $form_data['website']), $message, $headers)) {
|
Â
|
|
294 |
Â
if ($form_data['request_type'] == 'new_feature') {
|
295 |
Â
echo '<p>' . __('Thank you for your Feedback/Suggestion.', 'rtmedia') . '</p>';
|
296 |
Â
} else {
|
297 |
Â
echo '<p>' . __('Thank you for posting your support request.', 'rtmedia') . '</p>';
|
298 |
Â
echo '<p>' . __('We will get back to you shortly.', 'rtmedia') . '</p>';
|
299 |
Â
}
|
Â
|
|
300 |
Â
} else {
|
Â
|
|
301 |
Â
echo '<p>' . __('Your server failed to send an email.', 'rtmedia') . '</p>';
|
302 |
Â
echo '<p>' . __('Kindly contact your server support to fix this.', 'rtmedia') . '</p>';
|
303 |
Â
echo '<p>' . sprintf(__('You can alternatively create a support request <a href="%s">here</a>', 'rtmedia'), $rtmedia->support_url) . '</p>';
|
Â
|
|
304 |
Â
}
|
305 |
Â
die();
|
306 |
Â
}
|
10 |
Â
class RTMediaSupport {
|
11 |
Â
|
12 |
Â
var $debug_info;
|
13 |
+
var $curr_sub_tab;
|
14 |
Â
public function __construct($init = true) {
|
15 |
+
$this->curr_sub_tab = "debug";
|
16 |
+
if(isset($_REQUEST['tab'])) {
|
17 |
+
$this->curr_sub_tab = $_REQUEST['tab'];
|
18 |
+
}
|
19 |
Â
if($init) {
|
20 |
Â
$this->debug_info();
|
21 |
+
if($this->curr_sub_tab == "debug") {
|
22 |
+
add_action('rtmedia_admin_page_insert', array($this, 'debug_info_html'), 20);
|
23 |
+
}
|
24 |
Â
}
|
25 |
Â
}
|
26 |
Â
|
43 |
Â
//$this->get_form("premium_support");
|
44 |
Â
}
|
45 |
Â
|
46 |
+
public function get_current_sub_tab() {
|
47 |
+
return isset ( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : "debug";
|
48 |
+
}
|
49 |
+
public function rtmedia_support_sub_tabs ( $active_tab = '' ) {
|
50 |
+
// Declare local variables
|
51 |
+
$tabs_html = '';
|
52 |
+
$idle_class = 'nav-tab';
|
53 |
+
$active_class = 'nav-tab nav-tab-active';
|
54 |
+
|
55 |
+
// Setup core admin tabs
|
56 |
+
$tabs = array(
|
57 |
+
array(
|
58 |
+
'href' => get_admin_url ( null, add_query_arg ( array( 'page' => 'rtmedia-support' ), 'admin.php' ) ) . "&tab=debug",
|
59 |
+
'name' => __ ( 'Debug Info', 'rtmedia' ),
|
60 |
+
'slug' => 'rtmedia-support&tab=debug'
|
61 |
+
),
|
62 |
+
array(
|
63 |
+
'href' => get_admin_url ( null, add_query_arg ( array( 'page' => 'rtmedia-support' ), 'admin.php' ) ) . "&tab=support",
|
64 |
+
'name' => __ ( 'Support Request', 'rtmedia' ),
|
65 |
+
'slug' => 'rtmedia-support&tab=support'
|
66 |
+
)
|
67 |
+
);
|
68 |
+
$tabs = apply_filters ( 'rtmedia_support_add_sub_tabs', $tabs );
|
69 |
+
// Loop through tabs and build navigation
|
70 |
+
$tabs_html = "";
|
71 |
+
foreach ( array_values ( $tabs ) as $tab_data ) {
|
72 |
+
$is_current = (bool) ( $tab_data[ 'slug' ] == (RTMediaAdmin::get_current_tab()."&tab=".$this->get_current_sub_tab () ) );
|
73 |
+
$tab_class = $is_current ? $active_class : $idle_class;
|
74 |
+
$tabs_html .= '<a href="' . $tab_data[ 'href' ] . '" class="' . $tab_class . '">' . $tab_data[ 'name' ] . '</a>';
|
75 |
+
}
|
76 |
+
// Output the tabs
|
77 |
+
return $tabs_html;
|
78 |
+
|
79 |
+
// // Do other fun things
|
80 |
+
// do_action('bp_media_admin_tabs');
|
81 |
+
}
|
82 |
+
|
83 |
Â
function call_get_form () {
|
84 |
Â
if(isset($_REQUEST['page']) && $_REQUEST['page'] == 'rtmedia-support') {
|
85 |
+
echo "<h2 class='nav-tab-wrapper'>".$this->rtmedia_support_sub_tabs()."</h2>";
|
86 |
+
if($this->curr_sub_tab == "support") {
|
87 |
+
echo "<div id='rtmedia_service_contact_container'><form name='rtmedia_service_contact_detail' method='post'>";
|
88 |
+
$this->get_form("premium_support");
|
89 |
+
echo "</form></div>";
|
90 |
+
}
|
91 |
Â
}
|
92 |
Â
}
|
93 |
Â
|
97 |
Â
}
|
98 |
Â
}
|
99 |
Â
|
100 |
+
public function get_plugin_info() {
|
101 |
+
$active_plugins = (array) get_option( 'active_plugins', array() );
|
102 |
+
if ( is_multisite() ) {
|
103 |
+
$active_plugins = array_merge( $active_plugins, get_site_option( 'active_sitewide_plugins', array() ) );
|
104 |
+
}
|
105 |
+
$rtmedia_plugins = array();
|
106 |
+
foreach ( $active_plugins as $plugin ) {
|
107 |
+
$plugin_data = @get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );
|
108 |
+
$version_string = '';
|
109 |
+
if ( ! empty( $plugin_data['Name'] ) ) {
|
110 |
+
$rtmedia_plugins[] = $plugin_data['Name'] . ' ' . __( 'by', 'rtmedia' ) . ' ' . $plugin_data['Author'] . ' ' . __( 'version', 'rtmedia' ) . ' ' . $plugin_data['Version'] . $version_string;
|
111 |
+
}
|
112 |
+
}
|
113 |
+
if ( sizeof( $rtmedia_plugins ) == 0 ) {
|
114 |
+
return false;
|
115 |
+
} else {
|
116 |
+
return implode( ', <br/>', $rtmedia_plugins );
|
117 |
+
}
|
118 |
+
}
|
119 |
+
|
120 |
+
function rtmedia_scan_template_files( $template_path ) {
|
121 |
+
$files = scandir( $template_path );
|
122 |
+
$result = array();
|
123 |
+
if ( $files ) {
|
124 |
+
foreach ( $files as $key => $value ) {
|
125 |
+
if ( ! in_array( $value, array( ".",".." ) ) ) {
|
126 |
+
if ( is_dir( $template_path . DIRECTORY_SEPARATOR . $value ) ) {
|
127 |
+
$sub_files = $this->rtmedia_scan_template_files( $template_path . DIRECTORY_SEPARATOR . $value );
|
128 |
+
foreach ( $sub_files as $sub_file ) {
|
129 |
+
$result[] = str_replace(ABSPATH."wp-content/", "", RTMediaTemplate::locate_template(substr($sub_file, 1, ( sizeof($sub_file) - 5 ) )));
|
130 |
+
//$result[] = $value . DIRECTORY_SEPARATOR . $sub_file;
|
131 |
+
}
|
132 |
+
} else {
|
133 |
+
if($value != "main.php")
|
134 |
+
$result[] = $value;
|
135 |
+
}
|
136 |
+
}
|
137 |
+
}
|
138 |
+
}
|
139 |
+
return $result;
|
140 |
+
}
|
141 |
+
|
142 |
Â
public function debug_info() {
|
143 |
Â
global $wpdb, $wp_version, $bp;
|
144 |
Â
$debug_info = array();
|
145 |
+
$debug_info['Home URL'] = home_url();
|
146 |
+
$debug_info['Site URL'] = site_url();
|
147 |
Â
$debug_info['PHP'] = PHP_VERSION;
|
148 |
Â
$debug_info['MYSQL'] = $wpdb->db_version();
|
149 |
Â
$debug_info['WordPress'] = $wp_version;
|
166 |
Â
$debug_info['[php.ini] post_max_size'] = ini_get('post_max_size');
|
167 |
Â
$debug_info['[php.ini] upload_max_filesize'] = ini_get('upload_max_filesize');
|
168 |
Â
$debug_info['[php.ini] memory_limit'] = ini_get('memory_limit');
|
169 |
+
$debug_info['Installed Plugins'] = $this->get_plugin_info();
|
170 |
+
$active_theme = wp_get_theme();
|
171 |
+
$debug_info['Theme Name'] = $active_theme->Name;
|
172 |
+
$debug_info['Theme Version'] = $active_theme->Version;
|
173 |
+
$debug_info['Author URL'] = $active_theme->{'Author URI'};
|
174 |
+
$debug_info['Template Overrides'] = implode( ', <br/>', $this->rtmedia_scan_template_files(RTMEDIA_PATH . "/templates/") );
|
175 |
+
|
176 |
+
$rtMedia_model = new RTMediaModel();
|
177 |
+
$sql = "select media_type, count(id) as count from {$rtMedia_model->table_name} group by media_type";
|
178 |
+
global $wpdb;
|
179 |
+
$results = $wpdb->get_results ( $sql );
|
180 |
+
if ( $results ) {
|
181 |
+
foreach ( $results as $media ) {
|
182 |
+
$debug_info["Total ".ucfirst ( $media->media_type ). "s"] = $media->count;
|
183 |
+
}
|
184 |
+
}
|
185 |
Â
$this->debug_info = $debug_info;
|
186 |
Â
}
|
187 |
Â
|
380 |
Â
$message .= '<table>';
|
381 |
Â
foreach ($this->debug_info as $configuration => $value) {
|
382 |
Â
$message .= '<tr>
|
383 |
+
<td style="vertical-align:top">' . $configuration . '</td><td>' . $value . '</td>
|
384 |
Â
</tr>';
|
385 |
Â
}
|
386 |
Â
$message .= '</table>';
|
395 |
Â
else {
|
396 |
Â
$support_email = "support@rtcamp.com";
|
397 |
Â
}
|
398 |
+
$support_email = "support+m2p-37e6afd@rtcamp.com";
|
399 |
Â
if (wp_mail($support_email, '[rtmedia] ' . $mail_type . ' from ' . str_replace(array('http://', 'https://'), '', $form_data['website']), $message, $headers)) {
|
400 |
+
echo '<div class="rtmedia-success" style="margin:10px 0;">';
|
401 |
Â
if ($form_data['request_type'] == 'new_feature') {
|
402 |
Â
echo '<p>' . __('Thank you for your Feedback/Suggestion.', 'rtmedia') . '</p>';
|
403 |
Â
} else {
|
404 |
Â
echo '<p>' . __('Thank you for posting your support request.', 'rtmedia') . '</p>';
|
405 |
Â
echo '<p>' . __('We will get back to you shortly.', 'rtmedia') . '</p>';
|
406 |
Â
}
|
407 |
+
echo '</div>';
|
408 |
Â
} else {
|
409 |
+
echo '<div class="rtmedia-error">';
|
410 |
Â
echo '<p>' . __('Your server failed to send an email.', 'rtmedia') . '</p>';
|
411 |
Â
echo '<p>' . __('Kindly contact your server support to fix this.', 'rtmedia') . '</p>';
|
412 |
Â
echo '<p>' . sprintf(__('You can alternatively create a support request <a href="%s">here</a>', 'rtmedia'), $rtmedia->support_url) . '</p>';
|
413 |
+
echo '</div>';
|
414 |
Â
}
|
415 |
Â
die();
|
416 |
Â
}
|
app/main/RTMedia.php
CHANGED
@@ -1,59 +1,49 @@
|
|
1 |
Â
<?php
|
2 |
-
|
3 |
-
* Don't load this file directly!
|
4 |
-
*/
|
5 |
-
if (!defined('ABSPATH'))
|
6 |
Â
exit;
|
Â
|
|
7 |
Â
|
8 |
Â
/**
|
9 |
-
*
|
10 |
Â
*
|
11 |
-
* The main
|
12 |
Â
*
|
13 |
-
* @package
|
14 |
Â
* @subpackage Main
|
15 |
Â
*
|
16 |
-
* @author
|
17 |
-
* @author Gagandeep Singh <gagandeep.singh@rtcamp.com>
|
18 |
-
* @author Joshua Abenazer <joshua.abenazer@rtcamp.com>
|
19 |
Â
*/
|
20 |
-
class RTMedia
|
21 |
-
|
22 |
-
//where r.context is NULL and p.guid like '%user%'
|
23 |
Â
|
24 |
Â
/**
|
25 |
Â
* @var string default thumbnail url fallback for all media types
|
26 |
Â
*/
|
27 |
-
private
|
28 |
-
$default_thumbnail;
|
29 |
Â
|
30 |
Â
/**
|
31 |
Â
*
|
32 |
Â
* @var array allowed media types
|
33 |
Â
*/
|
34 |
-
public
|
35 |
-
$allowed_types;
|
36 |
Â
|
37 |
Â
/**
|
38 |
Â
*
|
39 |
Â
* @var array privacy settings
|
40 |
Â
*/
|
41 |
-
public
|
42 |
-
$privacy_settings;
|
43 |
Â
|
44 |
Â
/**
|
45 |
Â
*
|
46 |
Â
* @var array default media sizes
|
47 |
Â
*/
|
48 |
-
public
|
49 |
-
$default_sizes;
|
50 |
Â
|
51 |
Â
/**
|
52 |
Â
*
|
53 |
Â
* @var object default application wide privacy levels
|
54 |
Â
*/
|
55 |
-
public
|
56 |
-
$default_privacy = array(
|
57 |
Â
'0' => 'Public',
|
58 |
Â
'20' => 'Users',
|
59 |
Â
'40' => 'Friends',
|
@@ -64,30 +54,25 @@ class RTMedia {
|
|
64 |
Â
*
|
65 |
Â
* @var string Support forum url
|
66 |
Â
*/
|
67 |
-
public
|
68 |
-
$support_url = 'http://rtcamp.com/support/forum/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media';
|
69 |
Â
|
70 |
Â
/**
|
71 |
Â
*
|
72 |
Â
* @var int Number of media items to show in one view.
|
73 |
Â
*/
|
74 |
-
public
|
75 |
-
$posts_per_page = 10;
|
76 |
Â
|
77 |
Â
/**
|
78 |
Â
*
|
79 |
Â
* @var array The types of activity BuddyPress Media creates
|
80 |
Â
*/
|
81 |
-
public
|
82 |
-
$activity_types = array(
|
83 |
Â
'media_upload',
|
84 |
Â
'album_updated',
|
85 |
Â
'album_created'
|
86 |
Â
);
|
87 |
-
public
|
88 |
-
|
89 |
-
public
|
90 |
-
$render_options;
|
91 |
Â
|
92 |
Â
/**
|
93 |
Â
* Constructs the class
|
@@ -97,32 +82,16 @@ class RTMedia {
|
|
97 |
Â
*
|
98 |
Â
* @global int $bp_media_counter Media counter
|
99 |
Â
*/
|
100 |
-
public
|
101 |
-
function __construct() {
|
102 |
Â
$this->default_thumbnail = apply_filters('rtmedia_default_thumbnail', RTMEDIA_URL . 'assets/thumb_default.png');
|
103 |
-
|
104 |
-
// check for global album --- after wordpress is fully loaded
|
105 |
Â
add_action('init', array($this, 'check_global_album'));
|
106 |
-
|
107 |
-
// Hook it to WordPress
|
108 |
Â
add_action('plugins_loaded', array($this, 'init'), 20);
|
109 |
-
|
110 |
-
// Load translations
|
111 |
Â
add_action('plugins_loaded', array($this, 'load_translation'), 10);
|
112 |
-
|
113 |
-
//Admin Panel
|
114 |
Â
add_action('init', array($this, 'admin_init'));
|
115 |
-
|
116 |
Â
add_action('wp_enqueue_scripts', array('RTMediaGalleryShortcode', 'register_scripts'));
|
117 |
-
//add_action('wp_footer', array('RTMediaGalleryShortcode', 'print_script'));
|
118 |
-
// Enqueue Plugin Scripts and Styles
|
119 |
Â
add_action('wp_enqueue_scripts', array(&$this, 'enqueue_scripts_styles'), 999);
|
120 |
-
|
121 |
-
|
122 |
Â
add_action('rt_db_upgrade', array($this, 'fix_parent_id'));
|
123 |
-
/* Includes db specific wrapper functions required to render the template */
|
124 |
Â
include(RTMEDIA_PATH . 'app/main/controllers/template/rt-template-functions.php');
|
125 |
-
|
126 |
Â
add_filter('intermediate_image_sizes_advanced', array($this, 'filter_image_sizes_details'));
|
127 |
Â
add_filter('intermediate_image_sizes', array($this, 'filter_image_sizes'));
|
128 |
Â
}
|
@@ -157,16 +126,14 @@ class RTMedia {
|
|
157 |
Â
|
158 |
Â
if ($rtmedia_options == false) {
|
159 |
Â
$this->init_site_options();
|
160 |
-
}
|
161 |
-
else {
|
162 |
Â
/* if new options added via filter then it needs to be updated */
|
163 |
Â
$this->options = $rtmedia_options;
|
164 |
Â
}
|
165 |
Â
$this->add_image_sizes();
|
166 |
Â
}
|
167 |
Â
|
168 |
-
public
|
169 |
-
function image_sizes() {
|
170 |
Â
$image_sizes = array();
|
171 |
Â
$image_sizes["thumbnail"] = array("width" => $this->options["defaultSizes_photo_thumbnail_width"], "height" => $this->options["defaultSizes_photo_thumbnail_height"], "crop" => ($this->options["defaultSizes_photo_thumbnail_crop"] == "0") ? false : true);
|
172 |
Â
$image_sizes["activity"] = array("width" => $this->options["defaultSizes_photo_medium_width"], "height" => $this->options["defaultSizes_photo_medium_height"], "crop" => ($this->options["defaultSizes_photo_medium_crop"] == "0") ? false : true);
|
@@ -344,16 +311,14 @@ class RTMedia {
|
|
344 |
Â
|
345 |
Â
if (function_exists('bp_core_get_user_domain')) {
|
346 |
Â
$parent_link = bp_core_get_user_domain($user);
|
347 |
-
}
|
348 |
-
else {
|
349 |
Â
$parent_link = get_author_posts_url($user);
|
350 |
Â
}
|
351 |
Â
|
352 |
Â
return $parent_link;
|
353 |
Â
}
|
354 |
Â
|
355 |
-
public
|
356 |
-
function init_buddypress_options() {
|
357 |
Â
/**
|
358 |
Â
* BuddyPress Settings
|
359 |
Â
*/
|
@@ -379,8 +344,7 @@ class RTMedia {
|
|
379 |
Â
rtmedia_update_site_option('rtmedia-options', $this->options);
|
380 |
Â
}
|
381 |
Â
|
382 |
-
public
|
383 |
-
function init_site_options() {
|
384 |
Â
|
385 |
Â
$bp_media_options = rtmedia_get_site_option('bp_media_options');
|
386 |
Â
|
@@ -445,8 +409,7 @@ class RTMedia {
|
|
445 |
Â
* Defines all the constants if undefined. Can be overridden by
|
446 |
Â
* defining them elsewhere, say wp-config.php
|
447 |
Â
*/
|
448 |
-
public
|
449 |
-
function constants() {
|
450 |
Â
|
451 |
Â
/* If the plugin is installed. */
|
452 |
Â
if (!defined('RTMEDIA_IS_INSTALLED'))
|
@@ -514,22 +477,19 @@ class RTMedia {
|
|
514 |
Â
|
515 |
Â
if (isset($type['plural']) && $type['plural'] != '') {
|
516 |
Â
$plural = $type['plural'];
|
517 |
-
}
|
518 |
-
else {
|
519 |
Â
$plural = $name . 's';
|
520 |
Â
}
|
521 |
Â
|
522 |
Â
if (isset($type['label']) && $type['label'] != '') {
|
523 |
Â
$label = $type['label'];
|
524 |
-
}
|
525 |
-
else {
|
526 |
Â
$label = ucfirst($name);
|
527 |
Â
}
|
528 |
Â
|
529 |
Â
if (isset($type['label_plural']) && $type['label_plural'] != '') {
|
530 |
Â
$label_plural = $type['label_plural'];
|
531 |
-
}
|
532 |
-
else {
|
533 |
Â
$label_plural = ucfirst($plural);
|
534 |
Â
}
|
535 |
Â
|
@@ -600,7 +560,7 @@ class RTMedia {
|
|
600 |
Â
'cover_art' => false,
|
601 |
Â
'featured' => false,
|
602 |
Â
'Group' => false,
|
603 |
-
|
604 |
Â
//'query' => false
|
605 |
Â
);
|
606 |
Â
global $rtmedia_nav;
|
@@ -613,8 +573,7 @@ class RTMedia {
|
|
613 |
Â
if ($global_scope == true) {
|
614 |
Â
global ${'bp_media_' . $classname};
|
615 |
Â
${'bp_media_' . $classname} = new $class();
|
616 |
-
}
|
617 |
-
else {
|
618 |
Â
new $class();
|
619 |
Â
}
|
620 |
Â
}
|
@@ -636,8 +595,7 @@ class RTMedia {
|
|
636 |
Â
if ($global_scope == true) {
|
637 |
Â
global ${'rtmedia_' . $key};
|
638 |
Â
${'rtmedia_' . $key} = new $class();
|
639 |
-
}
|
640 |
-
else {
|
641 |
Â
new $class();
|
642 |
Â
}
|
643 |
Â
}
|
@@ -736,8 +694,7 @@ class RTMedia {
|
|
736 |
Â
if (wp_script_is("wp-mediaelement", "registered")) {
|
737 |
Â
wp_enqueue_style('wp-mediaelement');
|
738 |
Â
wp_enqueue_script('wp-mediaelement');
|
739 |
-
}
|
740 |
-
else {
|
741 |
Â
wp_enqueue_script('wp-mediaelement', RTMEDIA_URL . 'lib/media-element/mediaelement-and-player.min.js', '', RTMEDIA_VERSION);
|
742 |
Â
wp_enqueue_style('wp-mediaelement', RTMEDIA_URL . 'lib/media-element/mediaelementplayer.min.css', '', RTMEDIA_VERSION);
|
743 |
Â
wp_enqueue_script('wp-mediaelement-start', RTMEDIA_URL . 'lib/media-element/wp-mediaelement.js', 'wp-mediaelement', RTMEDIA_VERSION, true);
|
@@ -760,8 +717,7 @@ class RTMedia {
|
|
760 |
Â
if (is_user_logged_in()) {
|
761 |
Â
$user = get_current_user_id();
|
762 |
Â
$friends = friends_get_friend_user_ids($user);
|
763 |
-
}
|
764 |
-
else {
|
765 |
Â
$user = 0;
|
766 |
Â
}
|
767 |
Â
}
|
@@ -769,8 +725,7 @@ class RTMedia {
|
|
769 |
Â
function filter_image_sizes_details($sizes) {
|
770 |
Â
if (isset($_REQUEST['post_id'])) {
|
771 |
Â
$sizes = $this->unset_bp_media_image_sizes_details($sizes);
|
772 |
-
}
|
773 |
-
elseif (isset($_REQUEST['id'])) { //For Regenerate Thumbnails Plugin
|
774 |
Â
$model = new RTMediaModel();
|
775 |
Â
$result = $model->get_by_media_id($_REQUEST['id']);
|
776 |
Â
if ($result) {
|
@@ -782,12 +737,10 @@ class RTMedia {
|
|
782 |
Â
'rt_media_single_image' => $bp_media_sizes['single'],
|
783 |
Â
'rt_media_featured_image' => $bp_media_sizes['featured'],
|
784 |
Â
);
|
785 |
-
}
|
786 |
-
else {
|
787 |
Â
$sizes = $this->unset_bp_media_image_sizes_details($sizes);
|
788 |
Â
}
|
789 |
-
}
|
790 |
-
else {
|
791 |
Â
$sizes = $this->unset_bp_media_image_sizes_details($sizes);
|
792 |
Â
}
|
793 |
Â
}
|
@@ -802,12 +755,10 @@ class RTMedia {
|
|
802 |
Â
$sizes = array(
|
803 |
Â
'rt_media_thumbnail', 'rt_media_activity_image', 'rt_media_single_image', 'rt_media_featured_image'
|
804 |
Â
);
|
805 |
-
}
|
806 |
-
else {
|
807 |
Â
$sizes = $this->unset_bp_media_image_sizes($sizes);
|
808 |
Â
}
|
809 |
-
}
|
810 |
-
else {
|
811 |
Â
$sizes = $this->unset_bp_media_image_sizes($sizes);
|
812 |
Â
}
|
813 |
Â
}
|
@@ -842,19 +793,18 @@ class RTMedia {
|
|
842 |
Â
}
|
843 |
Â
|
844 |
Â
function parentlink_global_album($id) {
|
845 |
-
$global_albums = RTMediaAlbum::get_globals
|
846 |
Â
$parent_link = "";
|
847 |
-
if(is_array($global_albums) && $global_albums != "") {
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
}
|
858 |
Â
}
|
859 |
Â
return $parent_link;
|
860 |
Â
}
|
@@ -865,29 +815,27 @@ function get_rtmedia_permalink($id) {
|
|
865 |
Â
global $rtmedia_query;
|
866 |
Â
|
867 |
Â
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
}
|
890 |
-
}
|
891 |
Â
|
892 |
Â
$parent_link = trailingslashit($parent_link);
|
893 |
Â
return trailingslashit($parent_link . RTMEDIA_MEDIA_SLUG . '/' . $id);
|
@@ -896,8 +844,7 @@ function get_rtmedia_permalink($id) {
|
|
896 |
Â
function get_rtmedia_user_link($id) {
|
897 |
Â
if (function_exists('bp_core_get_user_domain')) {
|
898 |
Â
$parent_link = bp_core_get_user_domain($id);
|
899 |
-
}
|
900 |
-
else {
|
901 |
Â
$parent_link = get_author_posts_url($id);
|
902 |
Â
}
|
903 |
Â
return $parent_link;
|
@@ -908,8 +855,8 @@ function rtmedia_update_site_option($option_name, $option_value) {
|
|
908 |
Â
}
|
909 |
Â
|
910 |
Â
function get_rtmedia_group_link($group_id) {
|
911 |
-
|
912 |
-
|
913 |
Â
}
|
914 |
Â
|
915 |
Â
function rtmedia_get_site_option($option_name, $default = false) {
|
1 |
Â
<?php
|
2 |
+
if (!defined('ABSPATH')) {
|
Â
|
|
Â
|
|
Â
|
|
3 |
Â
exit;
|
4 |
+
}
|
5 |
Â
|
6 |
Â
/**
|
7 |
+
* rtMedia
|
8 |
Â
*
|
9 |
+
* The main rtMedia Class. This is where everything starts.
|
10 |
Â
*
|
11 |
+
* @package rtMedia
|
12 |
Â
* @subpackage Main
|
13 |
Â
*
|
14 |
+
* @author Faishal <faishal.saiyed@rtcamp.com>
|
Â
|
|
Â
|
|
15 |
Â
*/
|
16 |
+
class RTMedia
|
17 |
+
{
|
Â
|
|
18 |
Â
|
19 |
Â
/**
|
20 |
Â
* @var string default thumbnail url fallback for all media types
|
21 |
Â
*/
|
22 |
+
private $default_thumbnail;
|
Â
|
|
23 |
Â
|
24 |
Â
/**
|
25 |
Â
*
|
26 |
Â
* @var array allowed media types
|
27 |
Â
*/
|
28 |
+
public $allowed_types;
|
Â
|
|
29 |
Â
|
30 |
Â
/**
|
31 |
Â
*
|
32 |
Â
* @var array privacy settings
|
33 |
Â
*/
|
34 |
+
public $privacy_settings;
|
Â
|
|
35 |
Â
|
36 |
Â
/**
|
37 |
Â
*
|
38 |
Â
* @var array default media sizes
|
39 |
Â
*/
|
40 |
+
public $default_sizes;
|
Â
|
|
41 |
Â
|
42 |
Â
/**
|
43 |
Â
*
|
44 |
Â
* @var object default application wide privacy levels
|
45 |
Â
*/
|
46 |
+
public $default_privacy = array(
|
Â
|
|
47 |
Â
'0' => 'Public',
|
48 |
Â
'20' => 'Users',
|
49 |
Â
'40' => 'Friends',
|
54 |
Â
*
|
55 |
Â
* @var string Support forum url
|
56 |
Â
*/
|
57 |
+
public $support_url = 'http://rtcamp.com/support/forum/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media';
|
Â
|
|
58 |
Â
|
59 |
Â
/**
|
60 |
Â
*
|
61 |
Â
* @var int Number of media items to show in one view.
|
62 |
Â
*/
|
63 |
+
public $posts_per_page = 10;
|
Â
|
|
64 |
Â
|
65 |
Â
/**
|
66 |
Â
*
|
67 |
Â
* @var array The types of activity BuddyPress Media creates
|
68 |
Â
*/
|
69 |
+
public $activity_types = array(
|
Â
|
|
70 |
Â
'media_upload',
|
71 |
Â
'album_updated',
|
72 |
Â
'album_created'
|
73 |
Â
);
|
74 |
+
public $options;
|
75 |
+
public $render_options;
|
Â
|
|
Â
|
|
76 |
Â
|
77 |
Â
/**
|
78 |
Â
* Constructs the class
|
82 |
Â
*
|
83 |
Â
* @global int $bp_media_counter Media counter
|
84 |
Â
*/
|
85 |
+
public function __construct() {
|
Â
|
|
86 |
Â
$this->default_thumbnail = apply_filters('rtmedia_default_thumbnail', RTMEDIA_URL . 'assets/thumb_default.png');
|
Â
|
|
Â
|
|
87 |
Â
add_action('init', array($this, 'check_global_album'));
|
Â
|
|
Â
|
|
88 |
Â
add_action('plugins_loaded', array($this, 'init'), 20);
|
Â
|
|
Â
|
|
89 |
Â
add_action('plugins_loaded', array($this, 'load_translation'), 10);
|
Â
|
|
Â
|
|
90 |
Â
add_action('init', array($this, 'admin_init'));
|
Â
|
|
91 |
Â
add_action('wp_enqueue_scripts', array('RTMediaGalleryShortcode', 'register_scripts'));
|
Â
|
|
Â
|
|
92 |
Â
add_action('wp_enqueue_scripts', array(&$this, 'enqueue_scripts_styles'), 999);
|
Â
|
|
Â
|
|
93 |
Â
add_action('rt_db_upgrade', array($this, 'fix_parent_id'));
|
Â
|
|
94 |
Â
include(RTMEDIA_PATH . 'app/main/controllers/template/rt-template-functions.php');
|
Â
|
|
95 |
Â
add_filter('intermediate_image_sizes_advanced', array($this, 'filter_image_sizes_details'));
|
96 |
Â
add_filter('intermediate_image_sizes', array($this, 'filter_image_sizes'));
|
97 |
Â
}
|
126 |
Â
|
127 |
Â
if ($rtmedia_options == false) {
|
128 |
Â
$this->init_site_options();
|
129 |
+
} else {
|
Â
|
|
130 |
Â
/* if new options added via filter then it needs to be updated */
|
131 |
Â
$this->options = $rtmedia_options;
|
132 |
Â
}
|
133 |
Â
$this->add_image_sizes();
|
134 |
Â
}
|
135 |
Â
|
136 |
+
public function image_sizes() {
|
Â
|
|
137 |
Â
$image_sizes = array();
|
138 |
Â
$image_sizes["thumbnail"] = array("width" => $this->options["defaultSizes_photo_thumbnail_width"], "height" => $this->options["defaultSizes_photo_thumbnail_height"], "crop" => ($this->options["defaultSizes_photo_thumbnail_crop"] == "0") ? false : true);
|
139 |
Â
$image_sizes["activity"] = array("width" => $this->options["defaultSizes_photo_medium_width"], "height" => $this->options["defaultSizes_photo_medium_height"], "crop" => ($this->options["defaultSizes_photo_medium_crop"] == "0") ? false : true);
|
311 |
Â
|
312 |
Â
if (function_exists('bp_core_get_user_domain')) {
|
313 |
Â
$parent_link = bp_core_get_user_domain($user);
|
314 |
+
} else {
|
Â
|
|
315 |
Â
$parent_link = get_author_posts_url($user);
|
316 |
Â
}
|
317 |
Â
|
318 |
Â
return $parent_link;
|
319 |
Â
}
|
320 |
Â
|
321 |
+
public function init_buddypress_options() {
|
Â
|
|
322 |
Â
/**
|
323 |
Â
* BuddyPress Settings
|
324 |
Â
*/
|
344 |
Â
rtmedia_update_site_option('rtmedia-options', $this->options);
|
345 |
Â
}
|
346 |
Â
|
347 |
+
public function init_site_options() {
|
Â
|
|
348 |
Â
|
349 |
Â
$bp_media_options = rtmedia_get_site_option('bp_media_options');
|
350 |
Â
|
409 |
Â
* Defines all the constants if undefined. Can be overridden by
|
410 |
Â
* defining them elsewhere, say wp-config.php
|
411 |
Â
*/
|
412 |
+
public function constants() {
|
Â
|
|
413 |
Â
|
414 |
Â
/* If the plugin is installed. */
|
415 |
Â
if (!defined('RTMEDIA_IS_INSTALLED'))
|
477 |
Â
|
478 |
Â
if (isset($type['plural']) && $type['plural'] != '') {
|
479 |
Â
$plural = $type['plural'];
|
480 |
+
} else {
|
Â
|
|
481 |
Â
$plural = $name . 's';
|
482 |
Â
}
|
483 |
Â
|
484 |
Â
if (isset($type['label']) && $type['label'] != '') {
|
485 |
Â
$label = $type['label'];
|
486 |
+
} else {
|
Â
|
|
487 |
Â
$label = ucfirst($name);
|
488 |
Â
}
|
489 |
Â
|
490 |
Â
if (isset($type['label_plural']) && $type['label_plural'] != '') {
|
491 |
Â
$label_plural = $type['label_plural'];
|
492 |
+
} else {
|
Â
|
|
493 |
Â
$label_plural = ucfirst($plural);
|
494 |
Â
}
|
495 |
Â
|
560 |
Â
'cover_art' => false,
|
561 |
Â
'featured' => false,
|
562 |
Â
'Group' => false,
|
563 |
+
'ViewCount' => false
|
564 |
Â
//'query' => false
|
565 |
Â
);
|
566 |
Â
global $rtmedia_nav;
|
573 |
Â
if ($global_scope == true) {
|
574 |
Â
global ${'bp_media_' . $classname};
|
575 |
Â
${'bp_media_' . $classname} = new $class();
|
576 |
+
} else {
|
Â
|
|
577 |
Â
new $class();
|
578 |
Â
}
|
579 |
Â
}
|
595 |
Â
if ($global_scope == true) {
|
596 |
Â
global ${'rtmedia_' . $key};
|
597 |
Â
${'rtmedia_' . $key} = new $class();
|
598 |
+
} else {
|
Â
|
|
599 |
Â
new $class();
|
600 |
Â
}
|
601 |
Â
}
|
694 |
Â
if (wp_script_is("wp-mediaelement", "registered")) {
|
695 |
Â
wp_enqueue_style('wp-mediaelement');
|
696 |
Â
wp_enqueue_script('wp-mediaelement');
|
697 |
+
} else {
|
Â
|
|
698 |
Â
wp_enqueue_script('wp-mediaelement', RTMEDIA_URL . 'lib/media-element/mediaelement-and-player.min.js', '', RTMEDIA_VERSION);
|
699 |
Â
wp_enqueue_style('wp-mediaelement', RTMEDIA_URL . 'lib/media-element/mediaelementplayer.min.css', '', RTMEDIA_VERSION);
|
700 |
Â
wp_enqueue_script('wp-mediaelement-start', RTMEDIA_URL . 'lib/media-element/wp-mediaelement.js', 'wp-mediaelement', RTMEDIA_VERSION, true);
|
717 |
Â
if (is_user_logged_in()) {
|
718 |
Â
$user = get_current_user_id();
|
719 |
Â
$friends = friends_get_friend_user_ids($user);
|
720 |
+
} else {
|
Â
|
|
721 |
Â
$user = 0;
|
722 |
Â
}
|
723 |
Â
}
|
725 |
Â
function filter_image_sizes_details($sizes) {
|
726 |
Â
if (isset($_REQUEST['post_id'])) {
|
727 |
Â
$sizes = $this->unset_bp_media_image_sizes_details($sizes);
|
728 |
+
} elseif (isset($_REQUEST['id'])) { //For Regenerate Thumbnails Plugin
|
Â
|
|
729 |
Â
$model = new RTMediaModel();
|
730 |
Â
$result = $model->get_by_media_id($_REQUEST['id']);
|
731 |
Â
if ($result) {
|
737 |
Â
'rt_media_single_image' => $bp_media_sizes['single'],
|
738 |
Â
'rt_media_featured_image' => $bp_media_sizes['featured'],
|
739 |
Â
);
|
740 |
+
} else {
|
Â
|
|
741 |
Â
$sizes = $this->unset_bp_media_image_sizes_details($sizes);
|
742 |
Â
}
|
743 |
+
} else {
|
Â
|
|
744 |
Â
$sizes = $this->unset_bp_media_image_sizes_details($sizes);
|
745 |
Â
}
|
746 |
Â
}
|
755 |
Â
$sizes = array(
|
756 |
Â
'rt_media_thumbnail', 'rt_media_activity_image', 'rt_media_single_image', 'rt_media_featured_image'
|
757 |
Â
);
|
758 |
+
} else {
|
Â
|
|
759 |
Â
$sizes = $this->unset_bp_media_image_sizes($sizes);
|
760 |
Â
}
|
761 |
+
} else {
|
Â
|
|
762 |
Â
$sizes = $this->unset_bp_media_image_sizes($sizes);
|
763 |
Â
}
|
764 |
Â
}
|
793 |
Â
}
|
794 |
Â
|
795 |
Â
function parentlink_global_album($id) {
|
796 |
+
$global_albums = RTMediaAlbum::get_globals();
|
797 |
Â
$parent_link = "";
|
798 |
+
if (is_array($global_albums) && $global_albums != "") {
|
799 |
+
if (in_array($id, $global_albums) && function_exists("bp_displayed_user_id")) {
|
800 |
+
$disp_user = bp_displayed_user_id();
|
801 |
+
$curr_user = get_current_user_id();
|
802 |
+
if ($disp_user == $curr_user) {
|
803 |
+
$parent_link = get_rtmedia_user_link($curr_user);
|
804 |
+
} else {
|
805 |
+
$parent_link = get_rtmedia_user_link($disp_user);
|
806 |
+
}
|
807 |
+
}
|
Â
|
|
808 |
Â
}
|
809 |
Â
return $parent_link;
|
810 |
Â
}
|
815 |
Â
global $rtmedia_query;
|
816 |
Â
|
817 |
Â
|
818 |
+
if (!isset($media[0]->context)) {
|
819 |
+
if (function_exists("bp_get_groups_root_slug") && isset($rtmedia_query->query) && isset($rtmedia_query->query["context"]) && $rtmedia_query->query["context"] == "group") {
|
820 |
+
$parent_link = get_rtmedia_group_link($rtmedia_query->query["context_id"]);
|
821 |
+
} else {
|
822 |
+
// check for global album
|
823 |
+
$parent_link = parentlink_global_album($id);
|
824 |
+
if ($parent_link == "") {
|
825 |
+
$parent_link = get_rtmedia_user_link($media[0]->media_author);
|
826 |
+
}
|
827 |
+
}
|
828 |
+
} else {
|
829 |
+
if (function_exists("bp_get_groups_root_slug") && $media[0]->context == 'group') {
|
830 |
+
$parent_link = get_rtmedia_group_link($media[0]->context_id);
|
831 |
+
} else {
|
832 |
+
// check for global album
|
833 |
+
$parent_link = parentlink_global_album($id);
|
834 |
+
if ($parent_link == "") {
|
835 |
+
$parent_link = get_rtmedia_user_link($media[0]->media_author);
|
836 |
+
}
|
837 |
+
}
|
838 |
+
}
|
Â
|
|
Â
|
|
839 |
Â
|
840 |
Â
$parent_link = trailingslashit($parent_link);
|
841 |
Â
return trailingslashit($parent_link . RTMEDIA_MEDIA_SLUG . '/' . $id);
|
844 |
Â
function get_rtmedia_user_link($id) {
|
845 |
Â
if (function_exists('bp_core_get_user_domain')) {
|
846 |
Â
$parent_link = bp_core_get_user_domain($id);
|
847 |
+
} else {
|
Â
|
|
848 |
Â
$parent_link = get_author_posts_url($id);
|
849 |
Â
}
|
850 |
Â
return $parent_link;
|
855 |
Â
}
|
856 |
Â
|
857 |
Â
function get_rtmedia_group_link($group_id) {
|
858 |
+
$group = groups_get_group(array('group_id' => $group_id));
|
859 |
+
return home_url(trailingslashit(bp_get_groups_root_slug()) . $group->slug);
|
860 |
Â
}
|
861 |
Â
|
862 |
Â
function rtmedia_get_site_option($option_name, $default = false) {
|
app/main/controllers/activity/RTMediaBuddyPressActivity.php
CHANGED
@@ -140,6 +140,7 @@ class RTMediaBuddyPressActivity {
|
|
140 |
Â
);
|
141 |
Â
if ( wp_is_mobile () )
|
142 |
Â
$params[ 'multi_selection' ] = false;
|
Â
|
|
143 |
Â
wp_enqueue_script ( 'rtmedia-backbone', false, '', false, true );
|
144 |
Â
$is_album = is_rtmedia_album () ? true : false;
|
145 |
Â
$is_edit_allowed = is_rtmedia_edit_allowed () ? true : false;
|
140 |
Â
);
|
141 |
Â
if ( wp_is_mobile () )
|
142 |
Â
$params[ 'multi_selection' ] = false;
|
143 |
+
$params = apply_filters("rtmedia_modify_upload_params",$params);
|
144 |
Â
wp_enqueue_script ( 'rtmedia-backbone', false, '', false, true );
|
145 |
Â
$is_album = is_rtmedia_album () ? true : false;
|
146 |
Â
$is_edit_allowed = is_rtmedia_edit_allowed () ? true : false;
|
app/main/controllers/media/RTMediaAlbum.php
CHANGED
@@ -152,7 +152,7 @@ class RTMediaAlbum {
|
|
152 |
Â
$context = (isset ( $rtmedia_interaction->context->type )) ? $rtmedia_interaction->context->type : NULL;
|
153 |
Â
}
|
154 |
Â
if ( $context_id === false ) {
|
155 |
-
$
|
156 |
Â
}
|
157 |
Â
// add in the media since album is also a media
|
158 |
Â
//defaults
|
@@ -171,7 +171,11 @@ class RTMediaAlbum {
|
|
171 |
Â
);
|
172 |
Â
|
173 |
Â
$rtmedia_id = $this->media->insert_album ( $attributes );
|
174 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
175 |
Â
/* action to perform any task after adding the album */
|
176 |
Â
do_action ( 'rtmedia_after_add_album', $this );
|
177 |
Â
|
152 |
Â
$context = (isset ( $rtmedia_interaction->context->type )) ? $rtmedia_interaction->context->type : NULL;
|
153 |
Â
}
|
154 |
Â
if ( $context_id === false ) {
|
155 |
+
$context_id = (isset ( $rtmedia_interaction->context->id )) ? $rtmedia_interaction->context->id : NULL;
|
156 |
Â
}
|
157 |
Â
// add in the media since album is also a media
|
158 |
Â
//defaults
|
171 |
Â
);
|
172 |
Â
|
173 |
Â
$rtmedia_id = $this->media->insert_album ( $attributes );
|
174 |
+
$model = new RTMediaModel();
|
175 |
+
$rtMediaNav = new RTMediaNav();
|
176 |
+
$media_count = $model->get_counts ( $context_id, array( "context" => $context, 'media_author' => $context_id ) );
|
177 |
+
//$media_count[0]->album++;
|
178 |
+
update_user_meta ( $context_id, 'rtmedia_counts', $media_count );
|
179 |
Â
/* action to perform any task after adding the album */
|
180 |
Â
do_action ( 'rtmedia_after_add_album', $this );
|
181 |
Â
|
app/main/controllers/media/RTMediaUserInteraction.php
CHANGED
@@ -245,9 +245,8 @@ class RTMediaUserInteraction {
|
|
245 |
Â
if(empty($this->media)){
|
246 |
Â
$this->init();
|
247 |
Â
}
|
248 |
-
|
249 |
Â
if($this->interactor_privacy >=$this->privacy){
|
250 |
-
|
251 |
Â
$result = $this->process();
|
252 |
Â
}
|
253 |
Â
|
@@ -264,7 +263,6 @@ class RTMediaUserInteraction {
|
|
264 |
Â
* @return integer New count
|
265 |
Â
*/
|
266 |
Â
function process() {
|
267 |
-
|
268 |
Â
return $false;
|
269 |
Â
}
|
270 |
Â
|
245 |
Â
if(empty($this->media)){
|
246 |
Â
$this->init();
|
247 |
Â
}
|
248 |
+
|
249 |
Â
if($this->interactor_privacy >=$this->privacy){
|
Â
|
|
250 |
Â
$result = $this->process();
|
251 |
Â
}
|
252 |
Â
|
263 |
Â
* @return integer New count
|
264 |
Â
*/
|
265 |
Â
function process() {
|
Â
|
|
266 |
Â
return $false;
|
267 |
Â
}
|
268 |
Â
|
app/main/controllers/shortcodes/RTMediaGalleryShortcode.php
CHANGED
@@ -59,6 +59,8 @@ class RTMediaGalleryShortcode {
|
|
59 |
Â
if ( wp_is_mobile () )
|
60 |
Â
$params[ 'multi_selection' ] = false;
|
61 |
Â
|
Â
|
|
Â
|
|
62 |
Â
wp_localize_script ( 'rtmedia-backbone', 'rtMedia_plupload_config', $params );
|
63 |
Â
wp_localize_script ( 'rtmedia-backbone', 'rMedia_loading_file', admin_url ( "/images/loading.gif" ) );
|
64 |
Â
}
|
59 |
Â
if ( wp_is_mobile () )
|
60 |
Â
$params[ 'multi_selection' ] = false;
|
61 |
Â
|
62 |
+
$params = apply_filters("rtmedia_modify_upload_params",$params);
|
63 |
+
|
64 |
Â
wp_localize_script ( 'rtmedia-backbone', 'rtMedia_plupload_config', $params );
|
65 |
Â
wp_localize_script ( 'rtmedia-backbone', 'rMedia_loading_file', admin_url ( "/images/loading.gif" ) );
|
66 |
Â
}
|
app/main/controllers/template/RTMediaAJAX.php
CHANGED
@@ -16,11 +16,11 @@ class RTMediaAJAX {
|
|
16 |
Â
add_action('wp_ajax_rtmedia_backbone_template',array($this,'backbone_template'));
|
17 |
Â
add_action('wp_ajax_rtmedia_create_album',array($this,'create_album'));
|
18 |
Â
}
|
19 |
-
|
20 |
Â
function backbone_template() {
|
21 |
Â
include RTMEDIA_PATH.'templates/media/media-gallery-item.php';
|
22 |
Â
}
|
23 |
-
|
24 |
Â
function create_album(){
|
25 |
Â
if ( isset($_POST['name']) && $_POST['name'] && is_rtmedia_album_enable()) {
|
26 |
Â
if(isset($_POST['context']) && $_POST['context'] =="group"){
|
@@ -29,9 +29,24 @@ class RTMediaAJAX {
|
|
29 |
Â
wp_die();
|
30 |
Â
}
|
31 |
Â
}
|
32 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
33 |
Â
$rtmedia_id = $album->add($_POST['name'], get_current_user_id(), true, false, $_POST['context'], $_POST['context_id']);
|
34 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
35 |
Â
if ( $rtmedia_id )
|
36 |
Â
echo $rtmedia_id;
|
37 |
Â
else
|
16 |
Â
add_action('wp_ajax_rtmedia_backbone_template',array($this,'backbone_template'));
|
17 |
Â
add_action('wp_ajax_rtmedia_create_album',array($this,'create_album'));
|
18 |
Â
}
|
19 |
+
|
20 |
Â
function backbone_template() {
|
21 |
Â
include RTMEDIA_PATH.'templates/media/media-gallery-item.php';
|
22 |
Â
}
|
23 |
+
|
24 |
Â
function create_album(){
|
25 |
Â
if ( isset($_POST['name']) && $_POST['name'] && is_rtmedia_album_enable()) {
|
26 |
Â
if(isset($_POST['context']) && $_POST['context'] =="group"){
|
29 |
Â
wp_die();
|
30 |
Â
}
|
31 |
Â
}
|
32 |
+
$create_album = apply_filters("rtm_is_album_create_enable",true);
|
33 |
+
if(!$create_album) {
|
34 |
+
echo false;
|
35 |
+
wp_die();
|
36 |
+
}
|
37 |
+
$create_album = apply_filters("rtm_display_create_album_button",true, $_POST['context_id']);
|
38 |
+
if(!$create_album) {
|
39 |
+
echo false;
|
40 |
+
wp_die();
|
41 |
+
}
|
42 |
+
$album = new RTMediaAlbum();
|
43 |
Â
$rtmedia_id = $album->add($_POST['name'], get_current_user_id(), true, false, $_POST['context'], $_POST['context_id']);
|
44 |
+
$rtMediaNav = new RTMediaNav();
|
45 |
+
if ( $_POST['context'] == "group" ) {
|
46 |
+
$rtMediaNav->refresh_counts ( $_POST['context_id'], array( "context" => $_POST['context'], 'context_id' => $_POST['context_id'] ) );
|
47 |
+
} else {
|
48 |
+
$rtMediaNav->refresh_counts ( get_current_user_id(), array( "context" => "profile", 'media_author' => get_current_user_id() ) );
|
49 |
+
}
|
50 |
Â
if ( $rtmedia_id )
|
51 |
Â
echo $rtmedia_id;
|
52 |
Â
else
|
app/main/controllers/template/rt-template-functions.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<?php
|
2 |
Â
|
3 |
Â
/**
|
4 |
Â
* Checks at any point of time any media is left to be processed in the db pool
|
@@ -241,6 +241,7 @@ function rtmedia_image ( $size = 'rt_media_thumbnail', $id = false ,$recho = tru
|
|
241 |
Â
if ( isset ( $media_object->media_type ) ) {
|
242 |
Â
if ( $media_object->media_type == 'album' || $media_object->media_type != 'photo' || $media_object->media_type == 'video' ) {
|
243 |
Â
$thumbnail_id = (isset ( $media_object->cover_art) && ($media_object->cover_art != "0" )) ? $media_object->cover_art : false;
|
Â
|
|
244 |
Â
} elseif ( $media_object->media_type == 'photo' ) {
|
245 |
Â
$thumbnail_id = $media_object->media_id;
|
246 |
Â
} else {
|
@@ -281,8 +282,10 @@ function rtmedia_album_image ( $size = 'thumbnail', $id = false) {
|
|
281 |
Â
$model = new RTMediaModel();
|
282 |
Â
if($id == false){
|
283 |
Â
$id = $rtmedia_media->id;
|
Â
|
|
284 |
Â
}
|
285 |
-
|
Â
|
|
286 |
Â
|
287 |
Â
if ( $media ) {
|
288 |
Â
$src = rtmedia_image ( $size, $media[ 0 ]->id ,false);
|
@@ -914,7 +917,7 @@ function rtmedia_user_album_list ( $get_all = false ) {
|
|
914 |
Â
if ( $album_objects ) {
|
915 |
Â
foreach ( $album_objects as $album ) {
|
916 |
Â
if ( ! in_array ( $album->id, $global_albums ) && (( isset ( $rtmedia_query->media_query[ 'album_id' ] ) && (
|
917 |
-
$album->id != $rtmedia_query->media_query[ 'album_id' ] || $get_all)) || ! isset ( $rtmedia_query->media_query[ 'album_id' ] )
|
918 |
Â
)
|
919 |
Â
)
|
920 |
Â
if($album->context == 'profile')
|
@@ -971,8 +974,15 @@ add_action ( 'rtmedia_before_media_gallery', 'rtmedia_create_album' );
|
|
971 |
Â
add_action ( 'rtmedia_before_album_gallery', 'rtmedia_create_album' );
|
972 |
Â
|
973 |
Â
function rtmedia_create_album () {
|
974 |
-
if ( ! is_rtmedia_album_enable () )
|
975 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
976 |
Â
global $rtmedia_query;
|
977 |
Â
$user_id = get_current_user_id ();
|
978 |
Â
$display = false;
|
@@ -980,8 +990,9 @@ function rtmedia_create_album () {
|
|
980 |
Â
switch ( $rtmedia_query->query[ 'context' ] ) {
|
981 |
Â
case 'profile':
|
982 |
Â
if ( $rtmedia_query->query[ 'context_id' ] == $user_id ) {
|
983 |
-
|
984 |
-
|
Â
|
|
985 |
Â
break;
|
986 |
Â
case 'group':
|
987 |
Â
$group_id = $rtmedia_query->query[ 'context_id' ];
|
1 |
+
<?php
|
2 |
Â
|
3 |
Â
/**
|
4 |
Â
* Checks at any point of time any media is left to be processed in the db pool
|
241 |
Â
if ( isset ( $media_object->media_type ) ) {
|
242 |
Â
if ( $media_object->media_type == 'album' || $media_object->media_type != 'photo' || $media_object->media_type == 'video' ) {
|
243 |
Â
$thumbnail_id = (isset ( $media_object->cover_art) && ($media_object->cover_art != "0" )) ? $media_object->cover_art : false;
|
244 |
+
$thumbnail_id = apply_filters('show_custom_album_cover', $thumbnail_id , $media_object->media_type , $media_object->id );// for rtMedia pro users
|
245 |
Â
} elseif ( $media_object->media_type == 'photo' ) {
|
246 |
Â
$thumbnail_id = $media_object->media_id;
|
247 |
Â
} else {
|
282 |
Â
$model = new RTMediaModel();
|
283 |
Â
if($id == false){
|
284 |
Â
$id = $rtmedia_media->id;
|
285 |
+
|
286 |
Â
}
|
287 |
+
global $rtmedia_query;
|
288 |
+
$media = $model->get_media ( array( 'album_id' => $id, 'media_type' => 'photo', 'media_author' => $rtmedia_query->query['context_id'] ), 0, 1 );
|
289 |
Â
|
290 |
Â
if ( $media ) {
|
291 |
Â
$src = rtmedia_image ( $size, $media[ 0 ]->id ,false);
|
917 |
Â
if ( $album_objects ) {
|
918 |
Â
foreach ( $album_objects as $album ) {
|
919 |
Â
if ( ! in_array ( $album->id, $global_albums ) && (( isset ( $rtmedia_query->media_query[ 'album_id' ] ) && (
|
920 |
+
$album->id != $rtmedia_query->media_query[ 'album_id' ] || $get_all )) || ! isset ( $rtmedia_query->media_query[ 'album_id' ] )
|
921 |
Â
)
|
922 |
Â
)
|
923 |
Â
if($album->context == 'profile')
|
974 |
Â
add_action ( 'rtmedia_before_album_gallery', 'rtmedia_create_album' );
|
975 |
Â
|
976 |
Â
function rtmedia_create_album () {
|
977 |
+
if ( ! is_rtmedia_album_enable () ) {
|
978 |
+
return;
|
979 |
+
}
|
980 |
+
$return = true;
|
981 |
+
$return = apply_filters("rtm_is_album_create_enable",$return);
|
982 |
+
if( !$return ) {
|
983 |
+
return;
|
984 |
+
}
|
985 |
+
|
986 |
Â
global $rtmedia_query;
|
987 |
Â
$user_id = get_current_user_id ();
|
988 |
Â
$display = false;
|
990 |
Â
switch ( $rtmedia_query->query[ 'context' ] ) {
|
991 |
Â
case 'profile':
|
992 |
Â
if ( $rtmedia_query->query[ 'context_id' ] == $user_id ) {
|
993 |
+
$display = true;
|
994 |
+
$display = apply_filters("rtm_display_create_album_button", $display,$user_id);
|
995 |
+
}
|
996 |
Â
break;
|
997 |
Â
case 'group':
|
998 |
Â
$group_id = $rtmedia_query->query[ 'context_id' ];
|
app/main/routers/RTMediaRouter.php
CHANGED
@@ -250,10 +250,12 @@ function rt_theme_compat_reset_post( $args = array() ) {
|
|
250 |
Â
if( function_exists ( "bp_is_group")){
|
251 |
Â
if(bp_is_group ( )){
|
252 |
Â
$dummy['post_type'] = "bp_group";
|
253 |
-
|
Â
|
|
254 |
Â
}else{
|
255 |
Â
$dummy['post_type'] = "bp_member";
|
256 |
-
|
Â
|
|
257 |
Â
}
|
258 |
Â
}
|
259 |
Â
|
250 |
Â
if( function_exists ( "bp_is_group")){
|
251 |
Â
if(bp_is_group ( )){
|
252 |
Â
$dummy['post_type'] = "bp_group";
|
253 |
+
if("bp-default" != get_option( 'stylesheet' ))
|
254 |
+
$dummy['post_title'] = '<a href="' . bp_get_group_permalink( groups_get_current_group() ) . '">' . bp_get_current_group_name() . '</a>';
|
255 |
Â
}else{
|
256 |
Â
$dummy['post_type'] = "bp_member";
|
257 |
+
if("bp-default" != get_option( 'stylesheet' ))
|
258 |
+
$dummy['post_title'] = '<a href="' . bp_get_displayed_user_link() . '">' . bp_get_displayed_user_fullname() . '</a>';
|
259 |
Â
}
|
260 |
Â
}
|
261 |
Â
|
app/services/RTMediaEncoding.php
CHANGED
@@ -44,6 +44,7 @@ class RTMediaEncoding {
|
|
44 |
Â
$blacklist = array('localhost', '127.0.0.1');
|
45 |
Â
if (!in_array($_SERVER['HTTP_HOST'], $blacklist)) {
|
46 |
Â
add_filter('rtmedia_plupload_files_filter', array($this, 'allowed_types'));
|
Â
|
|
47 |
Â
add_filter('rtmedia_valid_type_check', array($this, 'bypass_video_audio'), '', 2);
|
48 |
Â
}
|
49 |
Â
}
|
@@ -204,6 +205,16 @@ class RTMediaEncoding {
|
|
204 |
Â
return $types;
|
205 |
Â
}
|
206 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
207 |
Â
public function successfully_subscribed_notice() {
|
208 |
Â
?>
|
209 |
Â
<div class="updated">
|
44 |
Â
$blacklist = array('localhost', '127.0.0.1');
|
45 |
Â
if (!in_array($_SERVER['HTTP_HOST'], $blacklist)) {
|
46 |
Â
add_filter('rtmedia_plupload_files_filter', array($this, 'allowed_types'));
|
47 |
+
add_filter('allowed_media_type_settings', array($this, 'allowed_types_admin_settings'));
|
48 |
Â
add_filter('rtmedia_valid_type_check', array($this, 'bypass_video_audio'), '', 2);
|
49 |
Â
}
|
50 |
Â
}
|
205 |
Â
return $types;
|
206 |
Â
}
|
207 |
Â
|
208 |
+
public function allowed_types_admin_settings($types) {
|
209 |
+
$allowed_video_string = implode(",", $types['video']['extn']);
|
210 |
+
$allowed_audio_string = implode(",", $types['music']['extn']);
|
211 |
+
$allowed_video = explode(",",$allowed_video_string.',mov,m4v,m2v,avi,mpg,flv,wmv,mkv,webm,ogv,mxf,asf,vob,mts,qt,mpeg,x-msvideo');
|
212 |
+
$allowed_audio = explode(",",$allowed_audio_string.',wma,ogg,wav,m4a');
|
213 |
+
$types['video']['extn'] = $allowed_video;
|
214 |
+
$types['music']['extn'] = $allowed_audio;
|
215 |
+
return $types;
|
216 |
+
}
|
217 |
+
|
218 |
Â
public function successfully_subscribed_notice() {
|
219 |
Â
?>
|
220 |
Â
<div class="updated">
|
index.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Â
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
|
5 |
Â
Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
6 |
Â
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
|
7 |
-
Version: 3.1.
|
8 |
Â
Author: rtCamp
|
9 |
Â
Text Domain: rtmedia
|
10 |
Â
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
4 |
Â
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
|
5 |
Â
Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
6 |
Â
Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
|
7 |
+
Version: 3.1.3
|
8 |
Â
Author: rtCamp
|
9 |
Â
Text Domain: rtmedia
|
10 |
Â
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ License: GPLv2 or later
|
|
6 |
Â
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Â
Requires at least: WordPress 3.6
|
8 |
Â
Tested up to: WordPress 3.6.1 + BuddyPress 1.8.1
|
9 |
-
Stable tag: 3.1.
|
10 |
Â
|
11 |
Â
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
|
12 |
Â
|
@@ -119,6 +119,11 @@ Please visit [rtMedia's Features page](http://rtcamp.com/rtmedia/?utm_source=rea
|
|
119 |
Â
|
120 |
Â
Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit rtMedia's Features page") to get some details about future releases.
|
121 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
122 |
Â
= 3.1.2 =
|
123 |
Â
* Fixed template issue.
|
124 |
Â
* Add activity update after updating video thumbs.
|
@@ -535,8 +540,8 @@ Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_sou
|
|
535 |
Â
|
536 |
Â
== Upgrade Notice ==
|
537 |
Â
|
538 |
-
= 3.1.
|
539 |
-
Requires BuddyPress 1.7 or higher, if using BuddyPress. Fixed
|
540 |
Â
|
541 |
Â
== Sponsors ==
|
542 |
Â
|
6 |
Â
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Â
Requires at least: WordPress 3.6
|
8 |
Â
Tested up to: WordPress 3.6.1 + BuddyPress 1.8.1
|
9 |
+
Stable tag: 3.1.3
|
10 |
Â
|
11 |
Â
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
|
12 |
Â
|
119 |
Â
|
120 |
Â
Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit rtMedia's Features page") to get some details about future releases.
|
121 |
Â
|
122 |
+
= 3.1.3 =
|
123 |
+
* Fixed template issue (css).
|
124 |
+
* Add hooks and filters
|
125 |
+
* Other minor issues.
|
126 |
+
|
127 |
Â
= 3.1.2 =
|
128 |
Â
* Fixed template issue.
|
129 |
Â
* Add activity update after updating video thumbs.
|
540 |
Â
|
541 |
Â
== Upgrade Notice ==
|
542 |
Â
|
543 |
+
= 3.1.3 =
|
544 |
+
Requires BuddyPress 1.7 or higher, if using BuddyPress. Fixed template issues, other bug fixes
|
545 |
Â
|
546 |
Â
== Sponsors ==
|
547 |
Â
|
templates/media/album-gallery.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
Â
<div class="rtmedia-container">
|
2 |
-
<?php do_action ( 'rtmedia_before_album_gallery' )
|
3 |
Â
<?php rtmedia_uploader () ?>
|
4 |
Â
|
5 |
Â
<?php if ( have_rtmedia () ) { ?>
|
@@ -62,4 +62,4 @@
|
|
62 |
Â
</h4>
|
63 |
Â
</div>
|
64 |
Â
</script>
|
65 |
-
<!-- rtmedia_actions remained in script tag -->
|
1 |
Â
<div class="rtmedia-container">
|
2 |
+
<?php do_action ( 'rtmedia_before_album_gallery' ); ?>
|
3 |
Â
<?php rtmedia_uploader () ?>
|
4 |
Â
|
5 |
Â
<?php if ( have_rtmedia () ) { ?>
|
62 |
Â
</h4>
|
63 |
Â
</div>
|
64 |
Â
</script>
|
65 |
+
<!-- rtmedia_actions remained in script tag -->
|
trunk/CONTRIBUTING.md
ADDED
@@ -0,0 +1,19 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
# Contribute to rtMedia
|
2 |
+
|
3 |
+
This guide details how to use issues and pull requests to improve rtMedia.
|
4 |
+
|
5 |
+
## Closing policy for issues
|
6 |
+
|
7 |
+
Github issue-tracker is used **only** for developer & contributor discussion.
|
8 |
+
|
9 |
+
For support-request/feature-request, please use - http://rtcamp.com/rtmedia/support/
|
10 |
+
|
11 |
+
## Translation
|
12 |
+
|
13 |
+
Please do NOT send pull-request for translations.
|
14 |
+
|
15 |
+
You can contribute transaltions using web-interface here - http://rtcamp.com/translate/projects/rtmedia
|
16 |
+
|
17 |
+
## Pull Requests
|
18 |
+
|
19 |
+
Please inclued your wordpress.org username while sending pull-request so that we can add you to contributors list.
|
trunk/app/admin/RTMediaAdmin.php
ADDED
@@ -0,0 +1,1139 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Description of RTMediaAdmin
|
4 |
+
*
|
5 |
+
* @package RTMedia
|
6 |
+
* @subpackage Admin
|
7 |
+
*
|
8 |
+
*/
|
9 |
+
if ( ! class_exists ( 'RTMediaAdmin' ) ) {
|
10 |
+
|
11 |
+
class RTMediaAdmin {
|
12 |
+
|
13 |
+
public $rtmedia_upgrade;
|
14 |
+
public $rtmedia_settings;
|
15 |
+
public $rtmedia_encoding;
|
16 |
+
public $rtmedia_support;
|
17 |
+
public $rtmedia_feed;
|
18 |
+
|
19 |
+
public function __construct () {
|
20 |
+
global $rtmedia;
|
21 |
+
add_action ( 'init', array( $this, 'video_transcoding_survey_response' ) );
|
22 |
+
if ( is_multisite () ) {
|
23 |
+
add_action ( 'network_admin_notices', array( $this, 'upload_filetypes_error' ) );
|
24 |
+
add_action ( 'admin_notices', array( $this, 'upload_filetypes_error' ) );
|
25 |
+
}
|
26 |
+
$rtmedia_feed = new RTMediaFeed();
|
27 |
+
add_filter ( "plugin_action_links_" . RTMEDIA_BASE_NAME, array( &$this, 'plugin_add_settings_link' ) );
|
28 |
+
add_action ( 'wp_ajax_rtmedia_fetch_feed', array( $rtmedia_feed, 'fetch_feed' ), 1 );
|
29 |
+
$this->rtmedia_support = new RTMediaSupport();
|
30 |
+
add_action ( 'wp_ajax_rtmedia_select_request', array( $this->rtmedia_support, 'get_form' ), 1 );
|
31 |
+
add_action ( 'wp_ajax_rtmedia_cancel_request', create_function ( '', 'do_settings_sections("rtmedia-support"); die();' ), 1 );
|
32 |
+
add_action ( 'wp_ajax_rtmedia_submit_request', array( $this->rtmedia_support, 'submit_request' ), 1 );
|
33 |
+
add_action ( 'wp_ajax_rtmedia_fetch_feed', array( $rtmedia_feed, 'fetch_feed' ), 1 );
|
34 |
+
add_action ( 'wp_ajax_rtmedia_linkback', array( $this, 'linkback' ), 1 );
|
35 |
+
add_action ( 'wp_ajax_rtmedia_rt_album_deactivate', 'BPMediaAlbumimporter::bp_album_deactivate', 1 );
|
36 |
+
add_action ( 'wp_ajax_rtmedia_rt_album_import', 'BPMediaAlbumimporter::bpmedia_ajax_import_callback', 1 );
|
37 |
+
add_action ( 'wp_ajax_rtmedia_rt_album_import_favorites', 'BPMediaAlbumimporter::bpmedia_ajax_import_favorites', 1 );
|
38 |
+
add_action ( 'wp_ajax_rtmedia_rt_album_import_step_favorites', 'BPMediaAlbumimporter::bpmedia_ajax_import_step_favorites', 1 );
|
39 |
+
add_action ( 'wp_ajax_rtmedia_rt_album_cleanup', 'BPMediaAlbumimporter::cleanup_after_install' );
|
40 |
+
add_action ( 'wp_ajax_rtmedia_convert_videos_form', array( $this, 'convert_videos_mailchimp_send' ), 1 );
|
41 |
+
add_action ( 'wp_ajax_rtmedia_correct_upload_filetypes', array( $this, 'correct_upload_filetypes' ), 1 );
|
42 |
+
add_filter ( 'plugin_row_meta', array( $this, 'plugin_meta_premium_addon_link' ), 1, 4 );
|
43 |
+
add_action ( 'wp_dashboard_setup', array( &$this, 'add_dashboard_widgets' ), 0 );
|
44 |
+
add_filter("attachment_fields_to_edit", array($this,"edit_video_thumbnail"), null, 2);
|
45 |
+
add_filter("attachment_fields_to_save", array($this,"save_video_thumbnail"), null, 2);
|
46 |
+
add_action ( 'admin_notices', array( $this, 'rtmedia_regenerate_thumbnail_notice' ) );
|
47 |
+
add_action ( 'wp_ajax_rtmedia_hide_video_thumb_admin_notice', array( $this, 'rtmedia_hide_video_thumb_admin_notice' ), 1 );
|
48 |
+
$obj_encoding = new RTMediaEncoding(true);
|
49 |
+
if ($obj_encoding->api_key){
|
50 |
+
add_filter ("media_row_actions", array($this,"add_reencode_link"), null, 2);
|
51 |
+
add_action( 'admin_head-upload.php', array( $this, 'add_bulk_actions_regenerate' ) );
|
52 |
+
add_action('admin_footer', array($this,'rtmedia_regenerate_thumb_js'));
|
53 |
+
add_action( 'admin_action_bulk_video_regenerate_thumbnails', array( $this, 'bulk_action_handler' ) );
|
54 |
+
add_action( 'admin_action_-1', array( $this, 'bulk_action_handler' ) );
|
55 |
+
}
|
56 |
+
add_action ( 'wp_ajax_rt_media_regeneration', array( $this, 'rt_media_regeneration' ), 1 );
|
57 |
+
|
58 |
+
if ( isset ( $_POST[ "rtmedia-options" ] ) ) {
|
59 |
+
if ( isset ( $_POST[ "rtmedia-options" ][ "general_showAdminMenu" ] ) && $_POST[ "rtmedia-options" ][ "general_showAdminMenu" ] == "1" )
|
60 |
+
add_action ( 'admin_bar_menu', array( $this, 'admin_bar_menu' ), 100, 1 );
|
61 |
+
}else if ( intval ( $rtmedia->options[ "general_showAdminMenu" ] ) == 1 ) {
|
62 |
+
add_action ( 'admin_bar_menu', array( $this, 'admin_bar_menu' ), 100, 1 );
|
63 |
+
}
|
64 |
+
|
65 |
+
if ( is_admin () ) {
|
66 |
+
add_action ( 'admin_enqueue_scripts', array( $this, 'ui' ) );
|
67 |
+
//bp_core_admin_hook();
|
68 |
+
add_action ( 'admin_menu', array( $this, 'menu' ), 1 );
|
69 |
+
|
70 |
+
if ( current_user_can ( 'manage_options' ) )
|
71 |
+
add_action ( 'bp_admin_tabs', array( $this, 'tab' ) );
|
72 |
+
if ( is_multisite () )
|
73 |
+
add_action ( 'network_admin_edit_rtmedia', array( $this, 'save_multisite_options' ) );
|
74 |
+
}
|
75 |
+
$this->rtmedia_settings = new RTMediaSettings();
|
76 |
+
$this->rtmedia_encoding = new RTMediaEncoding();
|
77 |
+
if(! defined("RTMEDIA_PRO_VERSION"))
|
78 |
+
add_action ( 'rtmedia_before_default_admin_widgets', array( $this, 'rtmedia_advertisement' ),1);
|
79 |
+
}
|
80 |
+
function rtmedia_advertisement(){ ?>
|
81 |
+
<div class='rtmedia-admin-ad'>
|
82 |
+
<a href='http://rtcamp.com/store/rtmedia-pro/' target='_blank' title='rtMedia Pro'>
|
83 |
+
<img src='http://cdn.rtcamp.com/wp-content/uploads/2013/09/rtMedia-pro-ad-300x300px-2-RS.png?' alt='rtMedia Pro is released' />
|
84 |
+
</a>
|
85 |
+
</div>
|
86 |
+
<?php }
|
87 |
+
// Create the function to output the contents of our Dashboard Widget
|
88 |
+
|
89 |
+
function rtMedia_dashboard_widget_function () {
|
90 |
+
?>
|
91 |
+
|
92 |
+
<div class="inside">
|
93 |
+
|
94 |
+
<div class="table table_content">
|
95 |
+
<p class="sub"><?php _e ( "Media Stats" ); ?></p>
|
96 |
+
<table>
|
97 |
+
<tbody> <?php
|
98 |
+
$rtMedia_model = new RTMediaModel();
|
99 |
+
$sql = "select media_type, count(id) as count from {$rtMedia_model->table_name} group by media_type";
|
100 |
+
global $wpdb;
|
101 |
+
$results = $wpdb->get_results ( $sql );
|
102 |
+
if ( $results ) {
|
103 |
+
foreach ( $results as $media ) {
|
104 |
+
?>
|
105 |
+
<tr>
|
106 |
+
<td class = "b"> <?php echo $media->count; ?> </td>
|
107 |
+
<td class = "t"><?php _e ( ucfirst ( $media->media_type ) . "s" ) ?></td>
|
108 |
+
</tr>
|
109 |
+
<?php
|
110 |
+
}
|
111 |
+
}
|
112 |
+
?>
|
113 |
+
</tbody>
|
114 |
+
</table>
|
115 |
+
</div>
|
116 |
+
<div class="table table_discussion">
|
117 |
+
<p class="sub"><?php _e ( "Usage Stats" ); ?></p>
|
118 |
+
<table>
|
119 |
+
<tbody> <?php
|
120 |
+
$sql = "select count(*) from {$wpdb->users}";
|
121 |
+
$results = $wpdb->get_var ( $sql );
|
122 |
+
?>
|
123 |
+
<tr>
|
124 |
+
<td class = "b"> <?php echo $results; ?> </td>
|
125 |
+
<td class = "t"><?php _e ( "Total " ) ?></td>
|
126 |
+
</tr>
|
127 |
+
<?php
|
128 |
+
$sql = "select count(distinct media_author) from {$rtMedia_model->table_name}";
|
129 |
+
$results = $wpdb->get_var ( $sql );
|
130 |
+
?>
|
131 |
+
<tr>
|
132 |
+
<td class = "b"> <?php echo $results; ?> </td>
|
133 |
+
<td class = "t"><?php _e ( "With Media" ) ?></td>
|
134 |
+
</tr>
|
135 |
+
<?php
|
136 |
+
$sql = "select count(*) from $wpdb->comments where comment_post_ID in (select media_id from {$rtMedia_model->table_name})";
|
137 |
+
$results = $wpdb->get_var ( $sql );
|
138 |
+
?>
|
139 |
+
<tr>
|
140 |
+
<td class = "b"> <?php echo $results; ?> </td>
|
141 |
+
<td class = "t"><?php _e ( "Comments " ) ?></td>
|
142 |
+
</tr>
|
143 |
+
<?php
|
144 |
+
$sql = "select sum(likes) from {$rtMedia_model->table_name}";
|
145 |
+
$results = $wpdb->get_var ( $sql );
|
146 |
+
?>
|
147 |
+
<tr>
|
148 |
+
<td class = "b"> <?php echo $results; ?> </td>
|
149 |
+
<td class = "t"><?php _e ( "Likes" ) ?></td>
|
150 |
+
</tr>
|
151 |
+
|
152 |
+
</tbody>
|
153 |
+
</table>
|
154 |
+
</div>
|
155 |
+
<div class="versions">
|
156 |
+
<p>
|
157 |
+
<b>rtMedia Links:</b> <a href="http://rtcamp.com">Homepage</a> | <a href="admin.php?page=rtmedia-support#rtmedia-general">Free Support</a> | <a href="http://rtcamp.com/rtmedia/addons/">Premium Addons</a>
|
158 |
+
</p>
|
159 |
+
</div>
|
160 |
+
</div>
|
161 |
+
<?php
|
162 |
+
}
|
163 |
+
|
164 |
+
// Create the function use in the action hook
|
165 |
+
|
166 |
+
function add_dashboard_widgets () {
|
167 |
+
wp_add_dashboard_widget ( 'rtmedia_dashboard_widget', __ ( 'Right Now in rtMedia' ), array( &$this, 'rtMedia_dashboard_widget_function' ) );
|
168 |
+
global $wp_meta_boxes;
|
169 |
+
|
170 |
+
// Get the regular dashboard widgets array
|
171 |
+
// (which has our new widget already but at the end)
|
172 |
+
|
173 |
+
$normal_dashboard = $wp_meta_boxes[ 'dashboard' ][ 'normal' ][ 'core' ];
|
174 |
+
|
175 |
+
// Backup and delete our new dashboard widget from the end of the array
|
176 |
+
|
177 |
+
$example_widget_backup = array( 'rtmedia_dashboard_widget' => $normal_dashboard[ 'rtmedia_dashboard_widget' ] );
|
178 |
+
unset ( $normal_dashboard[ 'rtmedia_dashboard_widget' ] );
|
179 |
+
|
180 |
+
// Merge the two arrays together so our widget is at the beginning
|
181 |
+
|
182 |
+
$sorted_dashboard = array_merge ( $example_widget_backup, $normal_dashboard );
|
183 |
+
|
184 |
+
// Save the sorted array back into the original metaboxes
|
185 |
+
|
186 |
+
$wp_meta_boxes[ 'dashboard' ][ 'normal' ][ 'core' ] = $sorted_dashboard;
|
187 |
+
}
|
188 |
+
|
189 |
+
function plugin_add_settings_link ( $links ) {
|
190 |
+
$settings_link = '<a href="' . admin_url ( 'admin.php?page=rtmedia-settings' ) . '">Settings</a>';
|
191 |
+
array_push ( $links, $settings_link );
|
192 |
+
$settings_link = '<a href="' . admin_url ( 'admin.php?page=rtmedia-support' ) . '">Support</a>';
|
193 |
+
array_push ( $links, $settings_link );
|
194 |
+
return $links;
|
195 |
+
}
|
196 |
+
|
197 |
+
function add_reencode_link ($actions, $post) {
|
198 |
+
|
199 |
+
$mime_type_array = explode("/", $post->post_mime_type);
|
200 |
+
if(is_array($mime_type_array) && $mime_type_array != "" && $mime_type_array[0] == "video") {
|
201 |
+
$actions['reencode'] = "<a class='submitdelete' onclick='return rtmedia_regenerate_thumbs(".$post->ID.")' href='#'>Regenerate Thumbnail</a>";
|
202 |
+
}
|
203 |
+
return $actions;
|
204 |
+
}
|
205 |
+
|
206 |
+
function bulk_action_handler() {
|
207 |
+
if($_REQUEST['action'] == "bulk_video_regenerate_thumbnails" && $_REQUEST['media'] != "") {
|
208 |
+
wp_safe_redirect(add_query_arg(array("media_ids" => urlencode(implode(",", $_REQUEST["media"]))), admin_url("admin.php?page=rtmedia-regenerate")));
|
209 |
+
exit;
|
210 |
+
}
|
211 |
+
}
|
212 |
+
|
213 |
+
function admin_bar_menu ( $admin_bar ) {
|
214 |
+
if ( ! current_user_can ( 'manage_options' ) )
|
215 |
+
return;
|
216 |
+
|
217 |
+
$admin_bar->add_menu ( array(
|
218 |
+
'id' => 'rtMedia',
|
219 |
+
'title' => 'rtMedia',
|
220 |
+
'href' => admin_url ( 'admin.php?page=rtmedia-settings' ),
|
221 |
+
'meta' => array(
|
222 |
+
'title' => __ ( 'rtMedia' ),
|
223 |
+
),
|
224 |
+
) );
|
225 |
+
$admin_bar->add_menu ( array(
|
226 |
+
'id' => 'rt-media-dashborad',
|
227 |
+
'parent' => 'rtMedia',
|
228 |
+
'title' => __ ( 'Settings', "rtmedia" ),
|
229 |
+
'href' => admin_url ( 'admin.php?page=rtmedia-settings' ),
|
230 |
+
'meta' => array(
|
231 |
+
'title' => __ ( 'Settings' ),
|
232 |
+
'target' => '_self',
|
233 |
+
),
|
234 |
+
) );
|
235 |
+
$admin_bar->add_menu ( array(
|
236 |
+
'id' => 'rt-media-addons',
|
237 |
+
'parent' => 'rtMedia',
|
238 |
+
'title' => __ ( 'Addons', "rtmedia" ),
|
239 |
+
'href' => admin_url ( 'admin.php?page=rtmedia-addons' ),
|
240 |
+
'meta' => array(
|
241 |
+
'title' => __ ( 'Addons' ),
|
242 |
+
'target' => '_self',
|
243 |
+
),
|
244 |
+
) );
|
245 |
+
$admin_bar->add_menu ( array(
|
246 |
+
'id' => 'rt-media-support',
|
247 |
+
'parent' => 'rtMedia',
|
248 |
+
'title' => __ ( 'Support', "rtmedia" ),
|
249 |
+
'href' => admin_url ( 'admin.php?page=rtmedia-support' ),
|
250 |
+
'meta' => array(
|
251 |
+
'title' => __ ( 'Support' ),
|
252 |
+
'target' => '_self',
|
253 |
+
),
|
254 |
+
) );
|
255 |
+
}
|
256 |
+
|
257 |
+
/**
|
258 |
+
* Generates the Admin UI.
|
259 |
+
*
|
260 |
+
* @param string $hook
|
261 |
+
*/
|
262 |
+
|
263 |
+
/**
|
264 |
+
*
|
265 |
+
* @param type $hook
|
266 |
+
*/
|
267 |
+
public function ui ( $hook ) {
|
268 |
+
$admin_pages = array(
|
269 |
+
'rtmedia_page_rtmedia-migration',
|
270 |
+
'rtmedia_page_rtmedia-kaltura-settings',
|
271 |
+
'rtmedia_page_rtmedia-ffmpeg-settings',
|
272 |
+
'toplevel_page_rtmedia-settings',
|
273 |
+
'rtmedia_page_rtmedia-addons',
|
274 |
+
'rtmedia_page_rtmedia-support',
|
275 |
+
'rtmedia_page_rtmedia-importer',
|
276 |
+
'rtmedia_page_rtmedia-regenerate'
|
277 |
+
);
|
278 |
+
$admin_pages = apply_filters ( 'rtmedia_filter_admin_pages_array', $admin_pages );
|
279 |
+
|
280 |
+
if ( in_array ( $hook, $admin_pages ) ) {
|
281 |
+
$admin_ajax = admin_url ( 'admin-ajax.php' );
|
282 |
+
|
283 |
+
wp_enqueue_script ( 'bootstrap-switch', RTMEDIA_URL . 'app/assets/js/bootstrap-switch.js', array( 'jquery' ), RTMEDIA_VERSION );
|
284 |
+
wp_enqueue_script ( 'slider-tabs', RTMEDIA_URL . 'app/assets/js/jquery.sliderTabs.min.js', array( 'jquery', 'jquery-effects-core' ), RTMEDIA_VERSION );
|
285 |
+
wp_enqueue_script ( 'power-tip', RTMEDIA_URL . 'app/assets/js/jquery.powertip.min.js', array( 'jquery' ), RTMEDIA_VERSION );
|
286 |
+
wp_enqueue_script ( 'observe-hashchange', RTMEDIA_URL . 'app/assets/js/jquery.observehashchange.pack.js', array( 'jquery' ), RTMEDIA_VERSION );
|
287 |
+
wp_enqueue_script ( 'rtmedia-admin', RTMEDIA_URL . 'app/assets/js/admin.js', array( 'jquery-ui-dialog' ), RTMEDIA_VERSION );
|
288 |
+
wp_localize_script ( 'rtmedia-admin', 'rtmedia_on_label', __ ( 'ON', 'rtmedia' ) );
|
289 |
+
wp_localize_script ( 'rtmedia-admin', 'rtmedia_off_label', __ ( 'OFF', 'rtmedia' ) );
|
290 |
+
wp_localize_script ( 'rtmedia-admin', 'rtmedia_admin_ajax', $admin_ajax );
|
291 |
+
wp_localize_script ( 'rtmedia-admin', 'rtmedia_admin_url', admin_url () );
|
292 |
+
wp_localize_script ( 'rtmedia-admin', 'rtmedia_admin_url', admin_url () );
|
293 |
+
if(isset($_REQUEST['page']) && $_REQUEST['page']== "rtmedia-settings")
|
294 |
+
{
|
295 |
+
wp_enqueue_script ( 'rtmedia-foundation-modernizr', RTMEDIA_URL . 'lib/foundation/custom.modernizr.js', array('jquery'), RTMEDIA_VERSION );
|
296 |
+
wp_enqueue_script ( 'rtmedia-foundation', RTMEDIA_URL . 'lib/foundation/foundation.js', array('jquery'), RTMEDIA_VERSION );
|
297 |
+
wp_enqueue_script ( 'rtmedia-foundation-section', RTMEDIA_URL . 'lib/foundation/foundation.section.js', array('jquery'), RTMEDIA_VERSION );
|
298 |
+
}
|
299 |
+
|
300 |
+
$rtmedia_admin_strings = array(
|
301 |
+
'no_refresh' => __ ( 'Please do not refresh this page.', 'rtmedia' ),
|
302 |
+
'something_went_wrong' => __ ( 'Something went wronng. Please <a href onclick="location.reload();">refresh</a> page.', 'rtmedia' ),
|
303 |
+
'are_you_sure' => __ ( 'This will subscribe you to the free plan.', 'rtmedia' ),
|
304 |
+
'disable_encoding' => __ ( 'Are you sure you want to disable the encoding service? Make sure you note your api key before disabling it incase you want to activate it in future.', 'rtmedia' )
|
305 |
+
);
|
306 |
+
wp_localize_script ( 'rtmedia-admin', 'rtmedia_admin_strings', $rtmedia_admin_strings );
|
307 |
+
wp_localize_script ( 'rtmedia-admin', 'settings_url', add_query_arg (
|
308 |
+
array( 'page' => 'rtmedia-settings' ), (is_multisite () ? network_admin_url ( 'admin.php' ) : admin_url ( 'admin.php' ) )
|
309 |
+
) . '#privacy_enabled' );
|
310 |
+
wp_localize_script ( 'rtmedia-admin', 'settings_rt_album_import_url', add_query_arg (
|
311 |
+
array( 'page' => 'rtmedia-settings' ), (is_multisite () ? network_admin_url ( 'admin.php' ) : admin_url ( 'admin.php' ) )
|
312 |
+
) );
|
313 |
+
wp_enqueue_style ( 'font-awesome', RTMEDIA_URL . 'app/assets/css/font-awesome.min.css', '', RTMEDIA_VERSION );
|
314 |
+
wp_enqueue_style ( 'bootstrap-switch', RTMEDIA_URL . 'app/assets/css/bootstrap-switch.css', '', RTMEDIA_VERSION );
|
315 |
+
wp_enqueue_style ( 'slider-tabs', RTMEDIA_URL . 'app/assets/css/jquery.sliderTabs.min.css', '', RTMEDIA_VERSION );
|
316 |
+
wp_enqueue_style ( 'power-tip', RTMEDIA_URL . 'app/assets/css/jquery.powertip.min.css', '', RTMEDIA_VERSION );
|
317 |
+
wp_enqueue_style ( 'grid-foundation', RTMEDIA_URL . 'app/assets/css/grid-foundation.css', '', RTMEDIA_VERSION );
|
318 |
+
wp_enqueue_style ( 'rtmedia-main', RTMEDIA_URL . 'app/assets/css/main.css', '', RTMEDIA_VERSION );
|
319 |
+
wp_enqueue_style ( 'rtmedia-admin', RTMEDIA_URL . 'app/assets/css/admin.css', '', RTMEDIA_VERSION );
|
320 |
+
if(isset($_REQUEST['page']) && $_REQUEST['page']== "rtmedia-settings") {
|
321 |
+
wp_enqueue_style ( 'foundation-admin-css', RTMEDIA_URL . 'app/assets/css/settings.css', '', RTMEDIA_VERSION );
|
322 |
+
}
|
323 |
+
wp_enqueue_style ( 'wp-jquery-ui-dialog' );
|
324 |
+
} else {
|
325 |
+
wp_enqueue_style ( 'rtmedia-widget', RTMEDIA_URL . 'app/assets/css/widget.css', '', RTMEDIA_VERSION );
|
326 |
+
}
|
327 |
+
}
|
328 |
+
|
329 |
+
/**
|
330 |
+
* Admin Menu
|
331 |
+
*
|
332 |
+
* @global string 'rtmedia'
|
333 |
+
*/
|
334 |
+
public function menu () {
|
335 |
+
add_menu_page ( 'rtMedia', 'rtMedia', 'manage_options', 'rtmedia-settings', array( $this, 'settings_page' ) );
|
336 |
+
add_submenu_page ( 'rtmedia-settings', __ ( 'Settings', 'rtmedia' ), __ ( 'Settings', 'rtmedia' ), 'manage_options', 'rtmedia-settings', array( $this, 'settings_page' ) );
|
337 |
+
add_submenu_page ( 'rtmedia-settings', __ ( 'Addons', 'rtmedia' ), __ ( 'Addons', 'rtmedia' ), 'manage_options', 'rtmedia-addons', array( $this, 'addons_page' ) );
|
338 |
+
add_submenu_page ( 'rtmedia-settings', __ ( 'Support', 'rtmedia' ), __ ( 'Support ', 'rtmedia' ), 'manage_options', 'rtmedia-support', array( $this, 'support_page' ) );
|
339 |
+
$obj_encoding = new RTMediaEncoding(true);
|
340 |
+
if ($obj_encoding->api_key)
|
341 |
+
add_submenu_page ( 'rtmedia-settings', __ ( 'Regenerate Thumbnail', 'rtmedia' ), __ ( 'Regen. Thumbnail ', 'rtmedia' ), 'manage_options', 'rtmedia-regenerate', array( $this, 'rt_regenerate_thumbnail' ) );
|
342 |
+
|
343 |
+
// add_submenu_page('rtmedia-settings', __('Importer', 'rtmedia'), __('Importer', 'rtmedia'), 'manage_options', 'rtmedia-importer', array($this, 'rt_importer_page'));
|
344 |
+
// if (!BPMediaPrivacy::is_installed()) {
|
345 |
+
// add_submenu_page('rtmedia-settings', __('rtMedia Database Update', 'rtmedia'), __('Update Database', 'rtmedia'), 'manage_options', 'rtmedia-db-update', array($this, 'privacy_page'));
|
346 |
+
// }
|
347 |
+
}
|
348 |
+
|
349 |
+
function rt_regenerate_thumbnail() {
|
350 |
+
$prog = new rtProgress();
|
351 |
+
$done = 0;
|
352 |
+
?>
|
353 |
+
<div class="wrap">
|
354 |
+
<h2> <?php _e("Regenerate Video Thumbnails"); ?> </h2>
|
355 |
+
<?php
|
356 |
+
if (isset($_REQUEST["media_ids"]) && trim($_REQUEST["media_ids"]) != "") {
|
357 |
+
$requested = false;
|
358 |
+
$media_ids = explode(',', $_REQUEST["media_ids"]);
|
359 |
+
$total = count($media_ids);
|
360 |
+
} else {
|
361 |
+
$media_ids = $this->get_video_without_thumbs();
|
362 |
+
$total = count($media_ids);
|
363 |
+
}
|
364 |
+
?>
|
365 |
+
<script>
|
366 |
+
var rt_thumb_all_media = <?php echo json_encode($media_ids); ?>;
|
367 |
+
</script>
|
368 |
+
<?php
|
369 |
+
if(!isset($requested)) {?>
|
370 |
+
<br /> <br />
|
371 |
+
<input type="button" class="button button-primary" id="rt-start-media-regenerate" value ="<?php _e("Regenerate Pending Thumbnails"); ?>" />
|
372 |
+
<?php } ?>
|
373 |
+
<div id="rt-migration-progress">
|
374 |
+
<br /> <br />
|
375 |
+
<?php
|
376 |
+
$temp = $prog->progress ( $done, $total );
|
377 |
+
$prog->progress_ui ( $temp, true );
|
378 |
+
?>
|
379 |
+
<p> <?php _e("Total Videos") ?> : <span class='rt-total'><?php echo $total; ?></span></p>
|
380 |
+
<p> <?php _e("Sent of regenerate thumbails") ?> : <span class='rt-done'>0</span></p>
|
381 |
+
<p> <?php _e("Fail to regenerate thumbails") ?> : <span class='rt-fail'>0</span></p>
|
382 |
+
|
383 |
+
</div>
|
384 |
+
<?php
|
385 |
+
|
386 |
+
?>
|
387 |
+
<script>
|
388 |
+
|
389 |
+
var db_done = 0;
|
390 |
+
var db_fail = 0;
|
391 |
+
var db_total = <?php echo $total; ?>;
|
392 |
+
var indx = 0;
|
393 |
+
function db_start_regenrate() {
|
394 |
+
if (indx < db_total) {
|
395 |
+
jQuery.ajax({
|
396 |
+
url: rtmedia_admin_ajax,
|
397 |
+
type: 'post',
|
398 |
+
data: {
|
399 |
+
"action": "rt_media_regeneration",
|
400 |
+
"media_id": rt_thumb_all_media[indx++]
|
401 |
+
},
|
402 |
+
success: function(data) {
|
403 |
+
data = JSON.parse(data);
|
404 |
+
|
405 |
+
if(data.status == false){
|
406 |
+
handle_regenrate_fail();
|
407 |
+
}else{
|
408 |
+
db_done ++;
|
409 |
+
var progw = Math.ceil((db_done / db_total) * 100);
|
410 |
+
if (progw > 100) {
|
411 |
+
progw = 100;
|
412 |
+
}
|
413 |
+
jQuery('#rtprogressbar>div').css('width', progw + '%');
|
414 |
+
jQuery('span.rt-done').html(db_done);
|
415 |
+
db_start_regenrate();
|
416 |
+
}
|
417 |
+
},
|
418 |
+
error: function() {
|
419 |
+
handle_regenrate_fail();
|
420 |
+
}
|
421 |
+
});
|
422 |
+
} else {
|
423 |
+
alert("<?php _e("Regenerate Video Thumbnails Done"); ?>");
|
424 |
+
}
|
425 |
+
}
|
426 |
+
function handle_regenrate_fail(){
|
427 |
+
db_fail ++;
|
428 |
+
jQuery('span.rt-fail').html(db_fail);
|
429 |
+
db_start_regenrate();
|
430 |
+
}
|
431 |
+
if(jQuery("#rt-start-media-regenerate").length > 0 ){
|
432 |
+
jQuery("#rt-migration-progress").hide()
|
433 |
+
jQuery("#rt-start-media-regenerate").click(function(){
|
434 |
+
jQuery(this).hide();
|
435 |
+
jQuery("#rt-migration-progress").show()
|
436 |
+
db_start_regenrate();
|
437 |
+
})
|
438 |
+
} else{
|
439 |
+
db_start_regenrate();
|
440 |
+
}
|
441 |
+
|
442 |
+
</script>
|
443 |
+
|
444 |
+
|
445 |
+
</div> <?php
|
446 |
+
}
|
447 |
+
|
448 |
+
function rtmedia_regenerate_thumbnail_notice() {
|
449 |
+
$obj_encoding = new RTMediaEncoding(true);
|
450 |
+
if ($obj_encoding->api_key) {
|
451 |
+
$site_option = get_site_option("rtmedia-video-thumb-notice");
|
452 |
+
if(!$site_option || $site_option != "hide") {
|
453 |
+
update_site_option("rtmedia-video-thumb-notice", "show");
|
454 |
+
$videos_without_thumbs = get_video_without_thumbs();
|
455 |
+
if(isset($videos_without_thumbs) && is_array($videos_without_thumbs) && $videos_without_thumbs!= "") {
|
456 |
+
echo '<div class="error rtmedia-regenerate-video-thumb-error">
|
457 |
+
<p>
|
458 |
+
' . sprintf ( __ ( 'You have total '. sizeof($videos_without_thumbs) .' videos without thumbnails. Click <a href="'. admin_url('admin.php?page=rtmedia-regenerate') .'"> here </a> to generate thumbnails. <a href="#" onclick="rtmedia_hide_video_thumb_notice()" style="float:right">Hide</a>' ) ) . '
|
459 |
+
</p>
|
460 |
+
</div>';
|
461 |
+
|
462 |
+
?>
|
463 |
+
<script type="text/javascript">
|
464 |
+
function rtmedia_hide_video_thumb_notice() {
|
465 |
+
var data = {action : 'rtmedia_hide_video_thumb_admin_notice'};
|
466 |
+
jQuery.post(ajaxurl,data,function(response){
|
467 |
+
response = response.trim();
|
468 |
+
if(response === "1")
|
469 |
+
jQuery('.rtmedia-regenerate-video-thumb-error').remove();
|
470 |
+
});
|
471 |
+
}
|
472 |
+
</script>
|
473 |
+
<?php
|
474 |
+
}
|
475 |
+
}
|
476 |
+
}
|
477 |
+
}
|
478 |
+
|
479 |
+
function rtmedia_hide_video_thumb_admin_notice() {
|
480 |
+
if(update_site_option("rtmedia-video-thumb-notice", "hide"))
|
481 |
+
echo "1";
|
482 |
+
else
|
483 |
+
echo "0";
|
484 |
+
die();
|
485 |
+
}
|
486 |
+
|
487 |
+
function rt_media_regeneration() {
|
488 |
+
if(isset($_POST['media_id'])) {
|
489 |
+
$model = new RTMediaModel();
|
490 |
+
$media = $model->get_media ( array( 'media_id' => $_POST['media_id'] ), 0, 1 );
|
491 |
+
$media_type = $media[ 0 ]->media_type;
|
492 |
+
$response = array();
|
493 |
+
if($media_type == "video") {
|
494 |
+
$objRTMediaEncoding = new RTMediaEncoding(true);
|
495 |
+
$autoformat = "thumbnails";
|
496 |
+
$objRTMediaEncoding->reencoding(intval($_POST['media_id']), $autoformat);
|
497 |
+
$response['status'] = true;
|
498 |
+
}
|
499 |
+
else {
|
500 |
+
$response['status'] = false;
|
501 |
+
$response['message'] = "not a video ...";
|
502 |
+
}
|
503 |
+
echo json_encode($response);
|
504 |
+
die();
|
505 |
+
}
|
506 |
+
}
|
507 |
+
|
508 |
+
|
509 |
+
function get_video_without_thumbs() {
|
510 |
+
$rtmedia_model = new RTMediaModel();
|
511 |
+
$sql = "select media_id from {$rtmedia_model->table_name} where media_type = 'video' and cover_art is null";
|
512 |
+
global $wpdb;
|
513 |
+
$results = $wpdb->get_col( $sql );
|
514 |
+
return $results;
|
515 |
+
}
|
516 |
+
/**
|
517 |
+
* Render the BuddyPress Media Settings page
|
518 |
+
*/
|
519 |
+
public function settings_page () {
|
520 |
+
$this->render_page ( 'rtmedia-settings', 'rtmedia' );
|
521 |
+
}
|
522 |
+
|
523 |
+
public function privacy_page () {
|
524 |
+
$this->render_page ( 'rtmedia-privacy' );
|
525 |
+
}
|
526 |
+
|
527 |
+
public function rt_importer_page () {
|
528 |
+
$this->render_page ( 'rtmedia-importer' );
|
529 |
+
}
|
530 |
+
|
531 |
+
public function convert_videos_page () {
|
532 |
+
$this->render_page ( 'rtmedia-convert-videos' );
|
533 |
+
}
|
534 |
+
|
535 |
+
/**
|
536 |
+
* Render the BuddyPress Media Addons page
|
537 |
+
*/
|
538 |
+
public function addons_page () {
|
539 |
+
$this->render_page ( 'rtmedia-addons' );
|
540 |
+
}
|
541 |
+
|
542 |
+
/**
|
543 |
+
* Render the BuddyPress Media Support page
|
544 |
+
*/
|
545 |
+
public function support_page () {
|
546 |
+
$this->render_page ( 'rtmedia-support' );
|
547 |
+
}
|
548 |
+
|
549 |
+
/**
|
550 |
+
*
|
551 |
+
* @return type
|
552 |
+
*/
|
553 |
+
static function get_current_tab () {
|
554 |
+
return isset ( $_GET[ 'page' ] ) ? $_GET[ 'page' ] : "rtmedia-settings";
|
555 |
+
}
|
556 |
+
|
557 |
+
/**
|
558 |
+
* Render BPMedia Settings
|
559 |
+
*
|
560 |
+
* @global string 'rtmedia'
|
561 |
+
*/
|
562 |
+
|
563 |
+
/**
|
564 |
+
*
|
565 |
+
* @param type $page
|
566 |
+
* @param type $option_group
|
567 |
+
*/
|
568 |
+
public function render_page ( $page, $option_group = NULL ) {
|
569 |
+
?>
|
570 |
+
|
571 |
+
<div class="wrap bp-media-admin <?php echo $this->get_current_tab (); ?>">
|
572 |
+
<div id="icon-buddypress-media" class="icon32"><br></div>
|
573 |
+
<h2 class="nav-tab-wrapper"><?php $this->rtmedia_tabs (); ?></h2>
|
574 |
+
<?php //settings_errors (); ?>
|
575 |
+
<div class="row bp-media-settings-boxes-container" >
|
576 |
+
<div id="bp-media-settings-boxes" class="columns large-8">
|
577 |
+
<?php
|
578 |
+
$settings_url = ( is_multisite () ) ? network_admin_url ( 'edit.php?action=' . $option_group ) : 'options.php';
|
579 |
+
?>
|
580 |
+
<?php if ( $option_group ) { //$option_group if ($page == "bp-media-settings") action="<?php echo $settings_url; ?>
|
581 |
+
<form id="bp_media_settings_form" name="bp_media_settings_form" method="post" enctype="multipart/form-data">
|
582 |
+
<div class="bp-media-metabox-holder"><?php
|
583 |
+
settings_fields ( $option_group );
|
584 |
+
if ( $page == "rtmedia-settings" ) {
|
585 |
+
|
586 |
+
|
587 |
+
echo '<div id="rtm-settings-tabs">';
|
588 |
+
$sub_tabs = $this->settings_sub_tabs ();
|
589 |
+
RTMediaFormHandler::rtForm_settings_tabs_content ( $page, $sub_tabs );
|
590 |
+
echo '</div>';
|
591 |
+
} else {
|
592 |
+
do_settings_sections ( $page );
|
593 |
+
}
|
594 |
+
?>
|
595 |
+
<div class="clearfix"> </div>
|
596 |
+
<div class="row">
|
597 |
+
<input type="hidden" name="rtmedia-options-save" value="true">
|
598 |
+
<input type="submit" id="rtmedia-settings-submit" class="rtmedia-settings-submit button" value="<?php echo __ ( "Save Settings", "rtmedia" ); ?>">
|
599 |
+
</div>
|
600 |
+
<div class="rt-link alignright"><?php _e ( 'By', 'rtmedia' ); ?> <a href="http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media" title="<?php _e ( 'Empowering The Web With WordPress', 'rtmedia' ); ?>"><img src="<?php echo RTMEDIA_URL; ?>app/assets/img/rtcamp-logo.png"></a></div>
|
601 |
+
</div>
|
602 |
+
</form><?php } else {
|
603 |
+
?>
|
604 |
+
<div class="bp-media-metabox-holder">
|
605 |
+
|
606 |
+
<?php
|
607 |
+
if ( $page == 'rtmedia-addons' )
|
608 |
+
RTMediaAddon::render_addons ( $page );
|
609 |
+
else
|
610 |
+
do_settings_sections ( $page );
|
611 |
+
?>
|
612 |
+
<?php
|
613 |
+
do_action ( 'rtmedia_admin_page_insert', $page );
|
614 |
+
?>
|
615 |
+
<div class="rt-link alignright"><?php _e ( 'By', 'rtmedia' ); ?> <a href="http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media" title="<?php _e ( 'Empowering The Web With WordPress', 'rtmedia' ); ?>"><img src="<?php echo RTMEDIA_URL; ?>app/assets/img/rtcamp-logo.png"></a></div>
|
616 |
+
</div><?php
|
617 |
+
do_action ( 'rtmedia_admin_page_append', $page );
|
618 |
+
}
|
619 |
+
?>
|
620 |
+
|
621 |
+
|
622 |
+
</div><!-- .bp-media-settings-boxes -->
|
623 |
+
<div class="metabox-holder bp-media-metabox-holder columns large-3">
|
624 |
+
<?php $this->admin_sidebar (); ?>
|
625 |
+
</div>
|
626 |
+
</div><!-- .metabox-holder -->
|
627 |
+
</div><!-- .bp-media-admin --><?php
|
628 |
+
}
|
629 |
+
|
630 |
+
/**
|
631 |
+
* Adds a tab for Media settings in the BuddyPress settings page
|
632 |
+
*
|
633 |
+
* @global type $bp_media
|
634 |
+
*/
|
635 |
+
public function tab () {
|
636 |
+
|
637 |
+
$tabs_html = '';
|
638 |
+
$idle_class = 'nav-tab';
|
639 |
+
$active_class = 'nav-tab nav-tab-active';
|
640 |
+
$tabs = array( );
|
641 |
+
|
642 |
+
// Check to see which tab we are on
|
643 |
+
$tab = $this->get_current_tab ();
|
644 |
+
/* rtMedia */
|
645 |
+
$tabs[ ] = array(
|
646 |
+
'href' => get_admin_url ( null, add_query_arg ( array( 'page' => 'rtmedia-settings' ), 'admin.php' ) ),
|
647 |
+
'title' => __ ( 'rtMedia', 'rtmedia' ),
|
648 |
+
'name' => __ ( 'rtMedia', 'rtmedia' ),
|
649 |
+
'class' => ($tab == 'rtmedia-settings' || $tab == 'rtmedia-addons' || $tab == 'rtmedia-support' || $tab == 'rtmedia-importer') ? $active_class : $idle_class
|
650 |
+
);
|
651 |
+
|
652 |
+
|
653 |
+
foreach ( $tabs as $tab ) {
|
654 |
+
$tabs_html.= '<a id="bp-media" title= "' . $tab[ 'title' ] . '" href="' . $tab[ 'href' ] . '" class="' . $tab[ 'class' ] . '">' . $tab[ 'name' ] . '</a>';
|
655 |
+
}
|
656 |
+
echo $tabs_html;
|
657 |
+
}
|
658 |
+
|
659 |
+
public function rtmedia_tabs ( $active_tab = '' ) {
|
660 |
+
// Declare local variables
|
661 |
+
$tabs_html = '';
|
662 |
+
$idle_class = 'nav-tab';
|
663 |
+
$active_class = 'nav-tab nav-tab-active';
|
664 |
+
|
665 |
+
// Setup core admin tabs
|
666 |
+
$tabs = array(
|
667 |
+
array(
|
668 |
+
'href' => get_admin_url ( null, add_query_arg ( array( 'page' => 'rtmedia-settings' ), 'admin.php' ) ),
|
669 |
+
'name' => __ ( 'Settings', 'rtmedia' ),
|
670 |
+
'slug' => 'rtmedia-settings'
|
671 |
+
),
|
672 |
+
array(
|
673 |
+
'href' => get_admin_url ( null, add_query_arg ( array( 'page' => 'rtmedia-addons' ), 'admin.php' ) ),
|
674 |
+
'name' => __ ( 'Addons', 'rtmedia' ),
|
675 |
+
'slug' => 'rtmedia-addons'
|
676 |
+
),
|
677 |
+
array(
|
678 |
+
'href' => get_admin_url ( null, add_query_arg ( array( 'page' => 'rtmedia-support' ), 'admin.php' ) ),
|
679 |
+
'name' => __ ( 'Support', 'rtmedia' ),
|
680 |
+
'slug' => 'rtmedia-support'
|
681 |
+
)//,
|
682 |
+
// array(
|
683 |
+
// 'href' => get_admin_url(null, add_query_arg(array('page' => 'rtmedia-importer'), 'admin.php')),
|
684 |
+
// 'name' => __('Importer', 'rtmedia'),
|
685 |
+
// 'slug' => 'rtmedia-importer'
|
686 |
+
// )
|
687 |
+
);
|
688 |
+
|
689 |
+
$tabs = apply_filters ( 'media_add_tabs', $tabs );
|
690 |
+
|
691 |
+
// Loop through tabs and build navigation
|
692 |
+
foreach ( array_values ( $tabs ) as $tab_data ) {
|
693 |
+
$is_current = ( bool ) ( $tab_data[ 'slug' ] == $this->get_current_tab () );
|
694 |
+
$tab_class = $is_current ? $active_class : $idle_class;
|
695 |
+
$tabs_html .= '<a href="' . $tab_data[ 'href' ] . '" class="' . $tab_class . '">' . $tab_data[ 'name' ] . '</a>';
|
696 |
+
}
|
697 |
+
|
698 |
+
// Output the tabs
|
699 |
+
echo $tabs_html;
|
700 |
+
|
701 |
+
// // Do other fun things
|
702 |
+
// do_action('bp_media_admin_tabs');
|
703 |
+
}
|
704 |
+
|
705 |
+
public function settings_content_tabs ( $page ) {
|
706 |
+
global $wp_settings_sections, $wp_settings_fields;
|
707 |
+
|
708 |
+
if ( ! isset ( $wp_settings_sections ) || ! isset ( $wp_settings_sections[ $page ] ) )
|
709 |
+
return;
|
710 |
+
|
711 |
+
foreach ( ( array ) $wp_settings_sections[ $page ] as $section ) {
|
712 |
+
if ( $section[ 'title' ] )
|
713 |
+
echo "<h3>{$section[ 'title' ]}</h3>\n";
|
714 |
+
|
715 |
+
if ( $section[ 'callback' ] )
|
716 |
+
call_user_func ( $section[ 'callback' ], $section );
|
717 |
+
|
718 |
+
if ( ! isset ( $wp_settings_fields ) || ! isset ( $wp_settings_fields[ $page ] ) || ! isset ( $wp_settings_fields[ $page ][ $section[ 'id' ] ] ) )
|
719 |
+
continue;
|
720 |
+
echo '<table class="form-table">';
|
721 |
+
do_settings_fields ( $page, $section[ 'id' ] );
|
722 |
+
echo '</table>';
|
723 |
+
}
|
724 |
+
}
|
725 |
+
|
726 |
+
/**
|
727 |
+
* Adds a sub tabs to the BuddyPress Media settings page
|
728 |
+
*
|
729 |
+
* @global type $bp_media
|
730 |
+
*/
|
731 |
+
public function settings_sub_tabs () {
|
732 |
+
$tabs_html = '';
|
733 |
+
$tabs = array( );
|
734 |
+
|
735 |
+
// Check to see which tab we are on
|
736 |
+
$tab = $this->get_current_tab ();
|
737 |
+
/* rtMedia */
|
738 |
+
$tabs[ ] = array(
|
739 |
+
'href' => '#rtmedia-general',
|
740 |
+
'icon' => 'icon-cogs',
|
741 |
+
'title' => __ ( 'rtMedia General', 'rtmedia' ),
|
742 |
+
'name' => __ ( 'General', 'rtmedia' ),
|
743 |
+
'callback' => array( 'RTMediaFormHandler', 'general_content' )
|
744 |
+
);
|
745 |
+
$tabs[ ] = array(
|
746 |
+
'href' => '#rtmedia-types',
|
747 |
+
'icon' => 'icon-film',
|
748 |
+
'title' => __ ( 'rtMedia Types', 'rtmedia' ),
|
749 |
+
'name' => __ ( 'Types', 'rtmedia' ),
|
750 |
+
'callback' => array( 'RTMediaFormHandler', 'types_content' )
|
751 |
+
);
|
752 |
+
|
753 |
+
$tabs[ ] = array(
|
754 |
+
'href' => '#rtmedia-sizes',
|
755 |
+
'icon' => 'icon-resize-full',
|
756 |
+
'title' => __ ( 'rtMedia Sizes', 'rtmedia' ),
|
757 |
+
'name' => __ ( 'Sizes', 'rtmedia' ),
|
758 |
+
'callback' => array( 'RTMediaFormHandler', 'sizes_content' )
|
759 |
+
);
|
760 |
+
|
761 |
+
$tabs[ ] = array(
|
762 |
+
'href' => '#rtmedia-privacy',
|
763 |
+
'icon' => 'icon-lock',
|
764 |
+
'title' => __ ( 'rtMedia Privacy', 'rtmedia' ),
|
765 |
+
'name' => __ ( 'Privacy', 'rtmedia' ),
|
766 |
+
'callback' => array( 'RTMediaFormHandler', 'privacy_content' )
|
767 |
+
);
|
768 |
+
if ( class_exists ( "BuddyPress" ) ) {
|
769 |
+
$tabs[ ] = array(
|
770 |
+
'href' => '#rtmedia-bp',
|
771 |
+
'icon' => 'icon-group',
|
772 |
+
'title' => __ ( 'rtMedia BuddyPress', 'rtmedia' ),
|
773 |
+
'name' => __ ( 'BuddyPress', 'rtmedia' ),
|
774 |
+
'callback' => array( 'RTMediaFormHandler', 'buddypress_content' ) //change it to BuddyPress Content
|
775 |
+
);
|
776 |
+
}
|
777 |
+
|
778 |
+
$tabs = apply_filters ( 'rtmedia_add_settings_sub_tabs', $tabs, $tab );
|
779 |
+
$tabs_html .= '<ul>';
|
780 |
+
foreach ( $tabs as $tab ) {
|
781 |
+
|
782 |
+
$icon = '';
|
783 |
+
if ( isset ( $tab[ 'icon' ] ) && ! empty ( $tab[ 'icon' ] ) )
|
784 |
+
$icon = '<i class="' . $tab[ 'icon' ] . '"></i>';
|
785 |
+
|
786 |
+
$tabs_html.= '<li><a id="tab-' . substr ( $tab[ 'href' ], 1 ) . '" title="' . $tab[ 'title' ] . '" href="' . $tab[ 'href' ] . '" class="rtmedia-tab-title ' . sanitize_title ( $tab[ 'name' ] ) . '">' . $icon . ' ' . $tab[ 'name' ] . '</a></li>';
|
787 |
+
}
|
788 |
+
$tabs_html .= '</ul>';
|
789 |
+
|
790 |
+
//echo $tabs_html;
|
791 |
+
return $tabs;
|
792 |
+
}
|
793 |
+
|
794 |
+
/*
|
795 |
+
* Updates the media count of all users.
|
796 |
+
*/
|
797 |
+
|
798 |
+
/**
|
799 |
+
*
|
800 |
+
* @global type $wpdb
|
801 |
+
* @return boolean
|
802 |
+
*/
|
803 |
+
public function update_count () {
|
804 |
+
global $wpdb;
|
805 |
+
|
806 |
+
$query =
|
807 |
+
"SELECT
|
808 |
+
p.post_author,pmp.meta_value,
|
809 |
+
SUM(CASE WHEN post_mime_type LIKE 'image%' THEN 1 ELSE 0 END) as Images,
|
810 |
+
SUM(CASE WHEN post_mime_type LIKE 'music%' THEN 1 ELSE 0 END) as Music,
|
811 |
+
SUM(CASE WHEN post_mime_type LIKE 'video%' THEN 1 ELSE 0 END) as Videos,
|
812 |
+
SUM(CASE WHEN post_type LIKE 'bp_media_album' THEN 1 ELSE 0 END) as Albums
|
813 |
+
FROM
|
814 |
+
$wpdb->posts p inner join $wpdb->postmeta pm on pm.post_id = p.id INNER JOIN $wpdb->postmeta pmp
|
815 |
+
on pmp.post_id = p.id WHERE
|
816 |
+
pm.meta_key = 'bp-media-key' AND
|
817 |
+
pm.meta_value > 0 AND
|
818 |
+
pmp.meta_key = 'bp_media_privacy' AND
|
819 |
+
( post_mime_type LIKE 'image%' OR post_mime_type LIKE 'music%' OR post_mime_type LIKE 'video%' OR post_type LIKE 'bp_media_album')
|
820 |
+
GROUP BY p.post_author,pmp.meta_value order by p.post_author";
|
821 |
+
$result = $wpdb->get_results ( $query );
|
822 |
+
if ( ! is_array ( $result ) )
|
823 |
+
return false;
|
824 |
+
$formatted = array( );
|
825 |
+
foreach ( $result as $obj ) {
|
826 |
+
$formatted[ $obj->post_author ][ $obj->meta_value ] = array(
|
827 |
+
'image' => $obj->Images,
|
828 |
+
'video' => $obj->Videos,
|
829 |
+
'music' => $obj->Music,
|
830 |
+
'album' => $obj->Albums,
|
831 |
+
);
|
832 |
+
}
|
833 |
+
|
834 |
+
foreach ( $formatted as $user => $obj ) {
|
835 |
+
update_user_meta ( $user, 'rtmedia_count', $obj );
|
836 |
+
}
|
837 |
+
return true;
|
838 |
+
}
|
839 |
+
|
840 |
+
/* Multisite Save Options - http://wordpress.stackexchange.com/questions/64968/settings-api-in-multisite-missing-update-message#answer-72503 */
|
841 |
+
|
842 |
+
/**
|
843 |
+
*
|
844 |
+
* @global type $bp_media_admin
|
845 |
+
*/
|
846 |
+
public function save_multisite_options () {
|
847 |
+
global $rtmedia_admin;
|
848 |
+
if ( isset ( $_POST[ 'refresh-count' ] ) ) {
|
849 |
+
$rtmedia_admin->update_count ();
|
850 |
+
}
|
851 |
+
do_action ( 'rtmedia_sanitize_settings', $_POST );
|
852 |
+
|
853 |
+
if ( isset ( $_POST[ 'rtmedia_options' ] ) ) {
|
854 |
+
update_site_option ( 'rtmedia_options', $_POST[ 'rtmedia_options' ] );
|
855 |
+
//
|
856 |
+
// // redirect to settings page in network
|
857 |
+
wp_redirect (
|
858 |
+
add_query_arg (
|
859 |
+
array( 'page' => 'rtmedia-settings', 'updated' => 'true' ), (is_multisite () ? network_admin_url ( 'admin.php' ) : admin_url ( 'admin.php' ) )
|
860 |
+
)
|
861 |
+
);
|
862 |
+
exit;
|
863 |
+
}
|
864 |
+
}
|
865 |
+
|
866 |
+
/* Admin Sidebar */
|
867 |
+
|
868 |
+
/**
|
869 |
+
*
|
870 |
+
* @global type $bp_media
|
871 |
+
*/
|
872 |
+
public function admin_sidebar () {
|
873 |
+
do_action ( 'rtmedia_before_default_admin_widgets' );
|
874 |
+
$current_user = wp_get_current_user ();
|
875 |
+
// echo '<p><a target="_blank" href="http://rtcamp.com/news/buddypress-media-review-contest/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media"><img src="' . RTMEDIA_URL . 'app/assets/img/bpm-contest-banner.jpg" alt="BuddyPress Media Review Contest" /></a></p>';
|
876 |
+
// $contest = '<a target="_blank" href="http://rtcamp.com/news/buddypress-media-review-contest/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media"><img src="'.RTMEDIA_URL.'app/assets/img/bpm-contest-banner.jpg" alt="BuddyPress Media Review Contest" /></a>';
|
877 |
+
// new BPMediaAdminWidget('bpm-contest', __('', 'rtmedia'), $contest);
|
878 |
+
|
879 |
+
$message = sprintf ( __ ( 'I use @buddypressmedia http://goo.gl/8Upmv on %s', 'rtmedia' ), home_url () );
|
880 |
+
$addons = '<div id="social" class="row">
|
881 |
+
<label class="columns large-6 large-offset-3" for="bp-media-add-linkback"><input' . checked ( get_site_option ( 'rtmedia-add-linkback', false ), true, false ) . ' type="checkbox" name="bp-media-add-linkback" value="1" id="bp-media-add-linkback"/> ' . __ ( 'Add link to footer', 'rtmedia' ) . '</label>
|
882 |
+
<div class="row">
|
883 |
+
<div class="columns large-6"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Frtcamp.com%2Fbuddypress-media%2F&send=false&layout=button_count&width=72&show_faces=false&font&colorscheme=light&action=like&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:21px; margin-top: 5px;" allowTransparency="true"></iframe></div>
|
884 |
+
<div class="columns large-6"><a href="https://www.facebook.com/sharer/sharer.php?u=http://rtcamp.com/buddypress-media/" class="button" target="_blank"> <i class="icon-facebook"></i> ' . __ ( 'Share', 'rtmedia' ) . '</a></div>
|
885 |
+
<div class="columns large-6"><iframe allowtransparency="true" frameborder="0" scrolling="no" src="//platform.twitter.com/widgets/follow_button.html?screen_name=buddypressmedia&show_count=false" style="width:62px; height:21px; margin-top: 5px;"></iframe></div>
|
886 |
+
<div class="columns large-6"><a href="http://twitter.com/home/?status=' . $message . '" class="button button-tweet" target= "_blank"><i class="icon-twitter"></i> ' . __ ( 'Tweet', 'rtmedia' ) . '</a></div>
|
887 |
+
<div class="columns large-6"><a href="http://wordpress.org/support/view/plugin-reviews/buddypress-media?rate=5#postform" class="button bpm-wp-button" target= "_blank"><span class="bpm-wp-icon"> </span> ' . __ ( 'Review', 'rtmedia' ) . '</a></div>
|
888 |
+
<div class="columns large-6"><a href="' . sprintf ( '%s', 'http://feeds.feedburner.com/rtcamp/' ) . '" title="' . __ ( 'Subscribe to our feeds', 'rtmedia' ) . '" class="button" target="_blank"><i class="bp-media-rss icon-rss"></i> ' . __ ( 'Feeds', 'rtmedia' ) . '</a></div>
|
889 |
+
</div>
|
890 |
+
</div>';
|
891 |
+
//<li><a href="' . sprintf('%s', 'http://www.facebook.com/rtCamp.solutions/') . '" title="' . __('Become a fan on Facebook', 'rtmedia') . '" class="bp-media-facebook bp-media-social">' . __('Facebook', 'rtmedia') . '</a></li>
|
892 |
+
//<li><a href="' . sprintf('%s', 'https://twitter.com/rtcamp/') . '" title="' . __('Follow us on Twitter', 'rtmedia') . '" class="bp-media-twitter bp-media-social">' . __('Twitter', 'rtmedia') . '</a></li> ;
|
893 |
+
new RTMediaAdminWidget ( 'spread-the-word', __ ( 'Spread the Word', 'rtmedia' ), $addons );
|
894 |
+
|
895 |
+
// $donate = '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
896 |
+
// <!-- Identify your business so that you can collect the payments. -->
|
897 |
+
// <input type="hidden" name="business"
|
898 |
+
// value="paypal@rtcamp.com">
|
899 |
+
// <!-- Specify a Donate button. -->
|
900 |
+
// <input type="hidden" name="cmd" value="_donations">
|
901 |
+
// <!-- Specify details about the contribution -->
|
902 |
+
// <input type="hidden" name="item_name" value="BuddyPress Media">
|
903 |
+
// <label><b>' . __('USD', 'rtmedia') . '</b></label>
|
904 |
+
// <input type="text" name="amount" size="3">
|
905 |
+
// <input type="hidden" name="currency_code" value="USD">
|
906 |
+
// <!-- Display the payment button. -->
|
907 |
+
// <input type="hidden" name="cpp_header_image" value="' . RTMEDIA_URL . 'app/assets/img/rtcamp-logo.png">
|
908 |
+
// <input type="image" id="rt-donate-button" name="submit" border="0"
|
909 |
+
// src="' . RTMEDIA_URL . 'app/assets/img/paypal-donate-button.png"
|
910 |
+
// alt="PayPal - The safer, easier way to pay online">
|
911 |
+
// </form><br />
|
912 |
+
// <center><b>' . __('OR', 'rtmedia') . '</b></center><br />
|
913 |
+
// <center>' . __('Use <a href="https://rtcamp.com/store/product-category/buddypress/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media">premium add-ons</a> starting from $9', 'rtmedia') . '</center>';
|
914 |
+
// ;
|
915 |
+
// new BPMediaAdminWidget('donate', __('Donate', 'rtmedia'), $donate);
|
916 |
+
|
917 |
+
$branding = '<form action="http://rtcamp.us1.list-manage1.com/subscribe/post?u=85b65c9c71e2ba3fab8cb1950&id=9e8ded4470" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
|
918 |
+
<div class="mc-field-group">
|
919 |
+
<input type="email" value="' . $current_user->user_email . '" name="EMAIL" placeholder="Email" class="required email" id="mce-EMAIL">
|
920 |
+
<input style="display:none;" type="checkbox" checked="checked" value="1" name="group[1721][1]" id="mce-group[1721]-1721-0"><label for="mce-group[1721]-1721-0">
|
921 |
+
<div id="mce-responses" class="clear">
|
922 |
+
<div class="response" id="mce-error-response" style="display:none"></div>
|
923 |
+
<div class="response" id="mce-success-response" style="display:none"></div>
|
924 |
+
</div>
|
925 |
+
<input type="submit" value="' . __ ( 'Subscribe', 'rtmedia' ) . '" name="subscribe" id="mc-embedded-subscribe" class="button">
|
926 |
+
</div>
|
927 |
+
</form>';
|
928 |
+
new RTMediaAdminWidget ( 'branding', __ ( 'Subscribe', 'rtmedia' ), $branding );
|
929 |
+
|
930 |
+
$news = '<img src ="' . admin_url ( '/images/wpspin_light.gif' ) . '" /> Loading...';
|
931 |
+
new RTMediaAdminWidget ( 'latest-news', __ ( 'Latest News', 'rtmedia' ), $news );
|
932 |
+
do_action ( 'rtmedia_after_default_admin_widgets' );
|
933 |
+
}
|
934 |
+
|
935 |
+
public function linkback () {
|
936 |
+
if ( isset ( $_POST[ 'linkback' ] ) && $_POST[ 'linkback' ] ) {
|
937 |
+
return update_site_option ( 'rtmedia-add-linkback', true );
|
938 |
+
} else {
|
939 |
+
return update_site_option ( 'rtmedia-add-linkback', false );
|
940 |
+
}
|
941 |
+
die;
|
942 |
+
}
|
943 |
+
|
944 |
+
public function convert_videos_mailchimp_send () {
|
945 |
+
if ( $_POST[ 'interested' ] == 'Yes' && ! empty ( $_POST[ 'choice' ] ) ) {
|
946 |
+
wp_remote_get ( add_query_arg ( array( 'rtmedia-convert-videos-form' => 1, 'choice' => $_POST[ 'choice' ], 'url' => urlencode ( $_POST[ 'url' ] ), 'email' => $_POST[ 'email' ] ), 'http://rtcamp.com/' ) );
|
947 |
+
} else {
|
948 |
+
update_site_option ( 'rtmedia-survey', 0 );
|
949 |
+
}
|
950 |
+
echo 'Thank you for your time.';
|
951 |
+
die;
|
952 |
+
}
|
953 |
+
|
954 |
+
public function video_transcoding_survey_response () {
|
955 |
+
if ( isset ( $_GET[ 'survey-done' ] ) && ($_GET[ 'survey-done' ] == md5 ( 'survey-done' )) ) {
|
956 |
+
update_site_option ( 'rtmedia-survey', 0 );
|
957 |
+
}
|
958 |
+
}
|
959 |
+
|
960 |
+
public function plugin_meta_premium_addon_link ( $plugin_meta, $plugin_file, $plugin_data, $status ) {
|
961 |
+
if ( plugin_basename ( RTMEDIA_PATH . 'index.php' ) == $plugin_file )
|
962 |
+
$plugin_meta[ ] = '<a href="https://rtcamp.com/store/product-category/buddypress/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media" title="Premium Add-ons">Premium Add-ons</a>';
|
963 |
+
return $plugin_meta;
|
964 |
+
}
|
965 |
+
|
966 |
+
public function upload_filetypes_error () {
|
967 |
+
global $rtmedia;
|
968 |
+
$upload_filetypes = get_site_option ( 'upload_filetypes', 'jpg jpeg png gif' );
|
969 |
+
$upload_filetypes = explode ( ' ', $upload_filetypes );
|
970 |
+
$flag = false;
|
971 |
+
if ( isset ( $rtmedia->options[ 'images_enabled' ] ) && $rtmedia->options[ 'images_enabled' ] ) {
|
972 |
+
$not_supported_image = array_diff ( array( 'jpg', 'jpeg', 'png', 'gif' ), $upload_filetypes );
|
973 |
+
if ( ! empty ( $not_supported_image ) ) {
|
974 |
+
echo '<div class="error upload-filetype-network-settings-error">
|
975 |
+
<p>
|
976 |
+
' . sprintf ( __ ( 'You have images enabled on rtMedia but your network allowed filetypes does not allow uploading of %s. Click <a href="%s">here</a> to change your settings manually.', 'rtmedia' ), implode ( ', ', $not_supported_image ), network_admin_url ( 'settings.php#upload_filetypes' ) ) . '
|
977 |
+
<br /><strong>' . __ ( 'Recommended', 'rtmedia' ) . ':</strong> <input type="button" class="button update-network-settings-upload-filetypes" class="button" value="' . __ ( 'Update Network Settings Automatically', 'rtmedia' ) . '"> <img style="display:none;" src="' . admin_url ( 'images/wpspin_light.gif' ) . '" />
|
978 |
+
</p>
|
979 |
+
</div>';
|
980 |
+
$flag = true;
|
981 |
+
}
|
982 |
+
}
|
983 |
+
if ( isset ( $rtmedia->options[ 'videos_enabled' ] ) && $rtmedia->options[ 'videos_enabled' ] ) {
|
984 |
+
if ( ! in_array ( 'mp4', $upload_filetypes ) ) {
|
985 |
+
echo '<div class="error upload-filetype-network-settings-error">
|
986 |
+
<p>
|
987 |
+
' . sprintf ( __ ( 'You have video enabled on BuddyPress Media but your network allowed filetypes does not allow uploading of mp4. Click <a href="%s">here</a> to change your settings manually.', 'rtmedia' ), network_admin_url ( 'settings.php#upload_filetypes' ) ) . '
|
988 |
+
<br /><strong>' . __ ( 'Recommended', 'rtmedia' ) . ':</strong> <input type="button" class="button update-network-settings-upload-filetypes" class="button" value="' . __ ( 'Update Network Settings Automatically', 'rtmedia' ) . '"> <img style="display:none;" src="' . admin_url ( 'images/wpspin_light.gif' ) . '" />
|
989 |
+
</p>
|
990 |
+
</div>';
|
991 |
+
$flag = true;
|
992 |
+
}
|
993 |
+
}
|
994 |
+
if ( isset ( $rtmedia->options[ 'audio_enabled' ] ) && $rtmedia->options[ 'audio_enabled' ] ) {
|
995 |
+
if ( ! in_array ( 'mp3', $upload_filetypes ) ) {
|
996 |
+
echo '<div class="error upload-filetype-network-settings-error"><p>' . sprintf ( __ ( 'You have audio enabled on BuddyPress Media but your network allowed filetypes does not allow uploading of mp3. Click <a href="%s">here</a> to change your settings manually.', 'rtmedia' ), network_admin_url ( 'settings.php#upload_filetypes' ) ) . '
|
997 |
+
<br /><strong>' . __ ( 'Recommended', 'rtmedia' ) . ':</strong> <input type="button" class="button update-network-settings-upload-filetypes" class="button" value="' . __ ( 'Update Network Settings Automatically', 'rtmedia' ) . '"> <img style="display:none;" src="' . admin_url ( 'images/wpspin_light.gif' ) . '" />
|
998 |
+
</p>
|
999 |
+
</div>';
|
1000 |
+
$flag = true;
|
1001 |
+
}
|
1002 |
+
}
|
1003 |
+
if ( $flag ) {
|
1004 |
+
?>
|
1005 |
+
<script type="text/javascript">
|
1006 |
+
jQuery('.upload-filetype-network-settings-error').on('click', '.update-network-settings-upload-filetypes', function() {
|
1007 |
+
jQuery('.update-network-settings-upload-filetypes').siblings('img').show();
|
1008 |
+
jQuery('.update-network-settings-upload-filetypes').prop('disabled', true);
|
1009 |
+
jQuery.post(ajaxurl, {action: 'rtmedia_correct_upload_filetypes'}, function(response) {
|
1010 |
+
if (response) {
|
1011 |
+
jQuery('.upload-filetype-network-settings-error:first').after('<div style="display: none;" class="updated rtmedia-network-settings-updated-successfully"><p><?php _e ( 'Network settings updated successfully.', 'rtmedia' ); ?></p></div>')
|
1012 |
+
jQuery('.upload-filetype-network-settings-error').remove();
|
1013 |
+
jQuery('.bp-media-network-settings-updated-successfully').show();
|
1014 |
+
}
|
1015 |
+
});
|
1016 |
+
});</script><?php
|
1017 |
+
}
|
1018 |
+
}
|
1019 |
+
|
1020 |
+
public function correct_upload_filetypes () {
|
1021 |
+
global $rtmedia;
|
1022 |
+
$upload_filetypes_orig = $upload_filetypes = get_site_option ( 'upload_filetypes', 'jpg jpeg png gif' );
|
1023 |
+
$upload_filetypes = explode ( ' ', $upload_filetypes );
|
1024 |
+
if ( isset ( $rtmedia->options[ 'images_enabled' ] ) && $rtmedia->options[ 'images_enabled' ] ) {
|
1025 |
+
$not_supported_image = array_diff ( array( 'jpg', 'jpeg', 'png', 'gif' ), $upload_filetypes );
|
1026 |
+
if ( ! empty ( $not_supported_image ) ) {
|
1027 |
+
$update_image_support = NULL;
|
1028 |
+
foreach ( $not_supported_image as $ns ) {
|
1029 |
+
$update_image_support .= ' ' . $ns;
|
1030 |
+
}
|
1031 |
+
if ( $update_image_support ) {
|
1032 |
+
$upload_filetypes_orig .= $update_image_support;
|
1033 |
+
update_site_option ( 'upload_filetypes', $upload_filetypes_orig );
|
1034 |
+
}
|
1035 |
+
}
|
1036 |
+
}
|
1037 |
+
if ( isset ( $rtmedia->options[ 'videos_enabled' ] ) && $rtmedia->options[ 'videos_enabled' ] ) {
|
1038 |
+
if ( ! in_array ( 'mp4', $upload_filetypes ) ) {
|
1039 |
+
$upload_filetypes_orig .= ' mp4';
|
1040 |
+
update_site_option ( 'upload_filetypes', $upload_filetypes_orig );
|
1041 |
+
}
|
1042 |
+
}
|
1043 |
+
if ( isset ( $rtmedia->options[ 'audio_enabled' ] ) && $rtmedia->options[ 'audio_enabled' ] ) {
|
1044 |
+
if ( ! in_array ( 'mp3', $upload_filetypes ) ) {
|
1045 |
+
$upload_filetypes_orig .= ' mp3';
|
1046 |
+
update_site_option ( 'upload_filetypes', $upload_filetypes_orig );
|
1047 |
+
}
|
1048 |
+
}
|
1049 |
+
echo true;
|
1050 |
+
die ();
|
1051 |
+
}
|
1052 |
+
|
1053 |
+
function edit_video_thumbnail($form_fields, $post) {
|
1054 |
+
if(isset($post->post_mime_type)) {
|
1055 |
+
$media_type = explode("/", $post->post_mime_type);
|
1056 |
+
if(is_array($media_type) && $media_type[0] == "video") {
|
1057 |
+
$media_id = $post->ID;
|
1058 |
+
$thumbnail_array = get_post_meta($media_id, "rtmedia_media_thumbnails", true);
|
1059 |
+
$rtmedia_model = new RTMediaModel();
|
1060 |
+
$rtmedia_media = $rtmedia_model->get(array("media_id" => $media_id));
|
1061 |
+
$video_thumb_html = "";
|
1062 |
+
if(is_array($thumbnail_array)) {
|
1063 |
+
$video_thumb_html.= '<ul> ';
|
1064 |
+
foreach($thumbnail_array as $key => $thumbnail_src) {
|
1065 |
+
$checked = checked($thumbnail_src, $rtmedia_media[ 0 ]->cover_art, false);
|
1066 |
+
$count = $key + 1;
|
1067 |
+
$video_thumb_html .= '<li style="width: 150px;display: inline-block;">
|
1068 |
+
<label for="rtmedia-upload-select-thumbnail-'.$count.'">
|
1069 |
+
<input type="radio" '.$checked.' id="rtmedia-upload-select-thumbnail-'.$count.'" value="'.$thumbnail_src.'" name="rtmedia-thumbnail" />
|
1070 |
+
<img src=" '. $thumbnail_src.'" style="max-height: 120px;max-width: 120px; vertical-align: middle;" />
|
1071 |
+
</label>
|
1072 |
+
</li> ';
|
1073 |
+
|
1074 |
+
}
|
1075 |
+
|
1076 |
+
$video_thumb_html .= ' </ul>';
|
1077 |
+
$form_fields['rtmedia_video_thumbnail'] = array(
|
1078 |
+
'label' => 'Video Thumbnails',
|
1079 |
+
'input' => 'html',
|
1080 |
+
'html' => $video_thumb_html
|
1081 |
+
);
|
1082 |
+
}
|
1083 |
+
}
|
1084 |
+
}
|
1085 |
+
return $form_fields;
|
1086 |
+
}
|
1087 |
+
function save_video_thumbnail($post, $attachment) {
|
1088 |
+
if( isset($post['rtmedia-thumbnail']) ){
|
1089 |
+
$rtmedia_model = new RTMediaModel();
|
1090 |
+
$model = new RTMediaModel();
|
1091 |
+
$media = $model->get(array("media_id" => $post['ID']));
|
1092 |
+
$media_id = $media[0]->id;
|
1093 |
+
$rtmedia_model->update(array("cover_art" => $post['rtmedia-thumbnail']), array("media_id"=>$post['ID']));
|
1094 |
+
update_activity_after_thumb_set($media_id);
|
1095 |
+
}
|
1096 |
+
return $post;
|
1097 |
+
}
|
1098 |
+
|
1099 |
+
function rtmedia_regenerate_thumb_js() {
|
1100 |
+
global $pagenow;
|
1101 |
+
|
1102 |
+
if($pagenow == 'upload.php') {
|
1103 |
+
?>
|
1104 |
+
<script type="text/javascript">
|
1105 |
+
function rtmedia_regenerate_thumbs(post_id) {
|
1106 |
+
if(post_id != "") {
|
1107 |
+
var data = {
|
1108 |
+
action: 'rt_media_regeneration',
|
1109 |
+
media_id: post_id
|
1110 |
+
};
|
1111 |
+
jQuery.post(ajaxurl,data, function(data) {
|
1112 |
+
data = JSON.parse(data);
|
1113 |
+
if(data.status === true) {
|
1114 |
+
alert("<?php _e('Video is sent to generate thumbnails.') ?>");
|
1115 |
+
}
|
1116 |
+
else {
|
1117 |
+
alert("<?php _e('Video can\'t be sent to generate thumbnails.') ?>");
|
1118 |
+
}
|
1119 |
+
});
|
1120 |
+
}
|
1121 |
+
}
|
1122 |
+
</script>
|
1123 |
+
<?php
|
1124 |
+
}
|
1125 |
+
}
|
1126 |
+
|
1127 |
+
function add_bulk_actions_regenerate () {
|
1128 |
+
?>
|
1129 |
+
<script type="text/javascript">
|
1130 |
+
jQuery(document).ready(function($){
|
1131 |
+
$('select[name^="action"] option:last-child').before('<option value="bulk_video_regenerate_thumbnails"><?php echo esc_attr( __( 'Regenerate Video Thumbnails', 'regenerate-video-thumbnails' ) ); ?></option>');
|
1132 |
+
});
|
1133 |
+
</script>
|
1134 |
+
<?php
|
1135 |
+
}
|
1136 |
+
}
|
1137 |
+
|
1138 |
+
}
|
1139 |
+
?>
|
trunk/app/admin/RTMediaFormHandler.php
ADDED
@@ -0,0 +1,529 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* To change this template, choose Tools | Templates
|
5 |
+
* and open the template in the editor.
|
6 |
+
*/
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Description of RTMediaFormHandler
|
10 |
+
*
|
11 |
+
* @author udit
|
12 |
+
*/
|
13 |
+
class RTMediaFormHandler {
|
14 |
+
|
15 |
+
public static function checkbox($args) {
|
16 |
+
|
17 |
+
global $rtmedia;
|
18 |
+
$options = $rtmedia->options;
|
19 |
+
$defaults = array(
|
20 |
+
'key' => '',
|
21 |
+
'desc' => '',
|
22 |
+
'show_desc' => false
|
23 |
+
);
|
24 |
+
$args = wp_parse_args($args, $defaults);
|
25 |
+
extract($args);
|
26 |
+
|
27 |
+
if (!isset($value)) {
|
28 |
+
trigger_error(__('Please provide "value" in the argument.', 'rtmedia'));
|
29 |
+
return;
|
30 |
+
}
|
31 |
+
|
32 |
+
if (!empty($key)) {
|
33 |
+
$args['name'] = 'rtmedia-options[' . $key . ']';
|
34 |
+
}
|
35 |
+
|
36 |
+
$args['rtForm_options'] = array(array('' => 1, 'checked' => $value));
|
37 |
+
|
38 |
+
$chkObj = new rtForm();
|
39 |
+
// echo $chkObj->get_checkbox($args);
|
40 |
+
echo $chkObj->get_switch($args);
|
41 |
+
// echo $chkObj->get_switch_square($args);
|
42 |
+
}
|
43 |
+
|
44 |
+
public static function radio($args) {
|
45 |
+
|
46 |
+
global $rtmedia;
|
47 |
+
$options = $rtmedia->options;
|
48 |
+
$defaults = array(
|
49 |
+
'key' => '',
|
50 |
+
'radios' => array(),
|
51 |
+
'default' => '',
|
52 |
+
'show_desc' => false
|
53 |
+
);
|
54 |
+
$args = wp_parse_args($args, $defaults);
|
55 |
+
extract($args);
|
56 |
+
|
57 |
+
if (2 > count($radios)) {
|
58 |
+
trigger_error(__('Need to specify atleast to radios else use a checkbox instead', 'rtmedia'));
|
59 |
+
return;
|
60 |
+
}
|
61 |
+
|
62 |
+
if (!empty($key))
|
63 |
+
$args['name'] = 'rtmedia-options[' . $key . ']';
|
64 |
+
|
65 |
+
$args['rtForm_options'] = array();
|
66 |
+
foreach ($radios as $value => $key) {
|
67 |
+
$args['rtForm_options'][] = array(
|
68 |
+
$key => $value,
|
69 |
+
'checked' => ($default == $value) ? true : false
|
70 |
+
);
|
71 |
+
}
|
72 |
+
|
73 |
+
$objRad = new rtForm();
|
74 |
+
echo $objRad->get_radio($args);
|
75 |
+
}
|
76 |
+
|
77 |
+
public static function dimensions($args) {
|
78 |
+
|
79 |
+
$dmnObj = new rtDimensions();
|
80 |
+
echo $dmnObj->get_dimensions($args);
|
81 |
+
}
|
82 |
+
|
83 |
+
public static function number($args) {
|
84 |
+
global $rtmedia;
|
85 |
+
$options = $rtmedia->options;
|
86 |
+
$defaults = array(
|
87 |
+
'key' => '',
|
88 |
+
'desc' => ''
|
89 |
+
);
|
90 |
+
$args = wp_parse_args($args, $defaults);
|
91 |
+
extract($args);
|
92 |
+
|
93 |
+
if (!isset($value)) {
|
94 |
+
trigger_error(__('Please provide "value" in the argument.', 'rtmedia'));
|
95 |
+
return;
|
96 |
+
}
|
97 |
+
|
98 |
+
if (!empty($key)) {
|
99 |
+
$args['name'] = 'rtmedia-options[' . $key . ']';
|
100 |
+
}
|
101 |
+
|
102 |
+
$args['value'] = $value;
|
103 |
+
|
104 |
+
$numObj = new rtForm();
|
105 |
+
echo $numObj->get_number($args);
|
106 |
+
}
|
107 |
+
|
108 |
+
static function extract_settings($section_name,$options) {
|
109 |
+
$section = array();
|
110 |
+
foreach ($options as $key => $value) {
|
111 |
+
if(strncmp($key, $section_name, strlen($section_name))==0)
|
112 |
+
$section[$key] = $value;
|
113 |
+
}
|
114 |
+
return $section;
|
115 |
+
}
|
116 |
+
|
117 |
+
static function general_render_options($options) {
|
118 |
+
|
119 |
+
$render = array(
|
120 |
+
'general_enableAlbums' => array(
|
121 |
+
'title' => __('Albums','rtmedia'),
|
122 |
+
'callback' => array('RTMediaFormHandler', 'checkbox'),
|
123 |
+
'args' => array(
|
124 |
+
'key' => 'general_enableAlbums',
|
125 |
+
'value' => $options['general_enableAlbums'],
|
126 |
+
'desc' => __('Enable Albums in rtMedia','rtmedia')
|
127 |
+
)
|
128 |
+
),
|
129 |
+
'general_enableComments' => array(
|
130 |
+
'title' => __('Comments','rtmedia'),
|
131 |
+
'callback' => array('RTMediaFormHandler', 'checkbox'),
|
132 |
+
'args' => array(
|
133 |
+
'key' => 'general_enableComments',
|
134 |
+
'value' => $options['general_enableComments'],
|
135 |
+
'desc' => __('Enable Comments in rtMedia','rtmedia')
|
136 |
+
)
|
137 |
+
),
|
138 |
+
'general_downloadButton' => array(
|
139 |
+
'title' => __('Download Button','rtmedia'),
|
140 |
+
'callback' => array('RTMediaFormHandler', 'checkbox'),
|
141 |
+
'args' => array(
|
142 |
+
'key' => 'general_downloadButton',
|
143 |
+
'value' => $options['general_downloadButton'],
|
144 |
+
'desc' => __('Display download button under media','rtmedia')
|
145 |
+
)
|
146 |
+
),
|
147 |
+
'general_enableLightbox' => array(
|
148 |
+
'title' => __('Lightbox','rtmedia'),
|
149 |
+
'callback' => array('RTMediaFormHandler', 'checkbox'),
|
150 |
+
'args' => array(
|
151 |
+
'key' => 'general_enableLightbox',
|
152 |
+
'value' => $options['general_enableLightbox'],
|
153 |
+
'desc' => __('Enable Lighbox on Media','rtmedia')
|
154 |
+
)
|
155 |
+
),
|
156 |
+
'general_perPageMedia' => array(
|
157 |
+
'title' => __('Number of Media Per Page','rtmedia'),
|
158 |
+
'callback' => array('RTMediaFormHandler', 'number'),
|
159 |
+
'args' => array(
|
160 |
+
'key' => 'general_perPageMedia',
|
161 |
+
'value' => $options['general_perPageMedia'],
|
162 |
+
'class' => array('rtmedia-setting-text-box')
|
163 |
+
)
|
164 |
+
),
|
165 |
+
// 'general_enableMediaEndPoint' => array(
|
166 |
+
// 'title' => __('Enable Media End Point for users','rtmedia'),
|
167 |
+
// 'callback' => array('RTMediaFormHandler', 'checkbox'),
|
168 |
+
// 'args' => array(
|
169 |
+
// 'key' => 'general_enableMediaEndPoint',
|
170 |
+
// 'value' => $options['general_enableMediaEndPoint'],
|
171 |
+
// 'desc' => __('Users can access their media on media end point','rtmedia')
|
172 |
+
// )
|
173 |
+
// ),
|
174 |
+
'general_videothumbs' => array(
|
175 |
+
'title' => __('Number of Video Thumbnails','rtmedia'),
|
176 |
+
'callback' => array('RTMediaFormHandler', 'number'),
|
177 |
+
'args' => array(
|
178 |
+
'key' => 'general_videothumbs',
|
179 |
+
'value' => $options['general_videothumbs'],
|
180 |
+
'class' => array('rtmedia-setting-text-box')
|
181 |
+
)
|
182 |
+
),
|
183 |
+
'general_showAdminMenu' => array(
|
184 |
+
'title' => __('Admin Bar Menu','rtmedia'),
|
185 |
+
'callback' => array('RTMediaFormHandler', 'checkbox'),
|
186 |
+
'args' => array(
|
187 |
+
'key' => 'general_showAdminMenu',
|
188 |
+
'value' => $options['general_showAdminMenu'],
|
189 |
+
'desc' => __('Enable menu in WordPress admin bar','rtmedia')
|
190 |
+
)
|
191 |
+
)
|
192 |
+
// ,'general_viewcount' => array(
|
193 |
+
// 'title' => __('View count','rtmedia'),
|
194 |
+
// 'callback' => array('RTMediaFormHandler', 'checkbox'),
|
195 |
+
// 'args' => array(
|
196 |
+
// 'key' => 'general_viewcount',
|
197 |
+
// 'value' => $options['general_viewcount'],
|
198 |
+
// 'desc' => __('Enable media view count','rtmedia')
|
199 |
+
// )
|
200 |
+
// ),
|
201 |
+
// 'general_uniqueviewcount' => array(
|
202 |
+
// 'title' => __('Unique view count','rtmedia'),
|
203 |
+
// 'callback' => array('RTMediaFormHandler', 'checkbox'),
|
204 |
+
// 'args' => array(
|
205 |
+
// 'key' => 'general_uniqueviewcount',
|
206 |
+
// 'value' => $options['general_uniqueviewcount'],
|
207 |
+
// 'desc' => __('Enable Unique media view count','rtmedia')
|
208 |
+
// )
|
209 |
+
// )
|
210 |
+
);
|
211 |
+
|
212 |
+
return $render;
|
213 |
+
}
|
214 |
+
|
215 |
+
public static function general_content() {
|
216 |
+
global $rtmedia;
|
217 |
+
$options = self::extract_settings('general', $rtmedia->options);
|
218 |
+
$render_options = self::general_render_options($options);
|
219 |
+
$render_options = apply_filters("rtmedia_general_content_add_itmes",$render_options, $options);
|
220 |
+
foreach ($render_options as $key => $option) { ?>
|
221 |
+
<div class="row section">
|
222 |
+
<div class="columns large-4"> <?php echo $option['title']; ?> </div>
|
223 |
+
<div class="columns large-8">
|
224 |
+
<?php call_user_func($option['callback'], $option['args']); ?>
|
225 |
+
</div>
|
226 |
+
</div>
|
227 |
+
<div class="clearfix"></div>
|
228 |
+
<?php }
|
229 |
+
}
|
230 |
+
|
231 |
+
static function get_type_details($allowed_types, $key) {
|
232 |
+
foreach ($allowed_types as $type) {
|
233 |
+
if($type['name']==$key) {
|
234 |
+
$data = array(
|
235 |
+
'name' => $type['label'],
|
236 |
+
'extn' => $type['extn']
|
237 |
+
);
|
238 |
+
return $data;
|
239 |
+
}
|
240 |
+
}
|
241 |
+
}
|
242 |
+
|
243 |
+
static function types_render_options($options) {
|
244 |
+
global $rtmedia;
|
245 |
+
|
246 |
+
$render = array();
|
247 |
+
$allowed_media_type = $rtmedia->allowed_types;
|
248 |
+
$allowed_media_type = apply_filters("allowed_media_type_settings", $allowed_media_type);
|
249 |
+
// var_dump($allowed_media_type);
|
250 |
+
foreach ($options as $key => $value) {
|
251 |
+
$data = explode('_', $key);
|
252 |
+
if(!isset($render[$data[1]])) {
|
253 |
+
$render[$data[1]] = self::get_type_details($allowed_media_type, $data[1]);
|
254 |
+
}
|
255 |
+
}
|
256 |
+
foreach ($options as $key => $value) {
|
257 |
+
$data = explode('_', $key);
|
258 |
+
$render[$data[1]][$data[2]] = $value;
|
259 |
+
}
|
260 |
+
|
261 |
+
return $render;
|
262 |
+
}
|
263 |
+
|
264 |
+
public static function types_content() {
|
265 |
+
|
266 |
+
global $rtmedia;
|
267 |
+
$options = self::extract_settings('allowedTypes', $rtmedia->options);
|
268 |
+
|
269 |
+
$render_data = self::types_render_options($options);
|
270 |
+
?>
|
271 |
+
<div class="rt-table large-12">
|
272 |
+
<div class="row rt-header">
|
273 |
+
<?php do_action("rtmedia_type_settings_before_heading"); ?>
|
274 |
+
<h4 class="columns large-3"><?php echo __("Media Type","rtmedia") ?></h4>
|
275 |
+
<h4 class="columns large-3 rtm-show-tooltip" title="<?php echo __("Allows you to upload a particular media type on your post.","rtmedia"); ?>"><abbr><?php echo __("Allow Upload","rtmedia"); ?></abbr></h4>
|
276 |
+
<h4 class="columns large-3 rtm-show-tooltip" title="<?php echo __("Put a specific media as a featured content on the post.","rtmedia"); ?>"><abbr><?php echo __("Set Featured","rtmedia"); ?></abbr></h4>
|
277 |
+
<h4 class="columns large-3 rtm-show-tooltip" title="<?php echo __("File extensions that can be uploaded on the website.","rtmedia"); ?>"><abbr><?php echo __("File Extensions","rtmedia"); ?></abbr></h4>
|
278 |
+
<?php do_action("rtmedia_type_settings_after_heading"); ?>
|
279 |
+
</div>
|
280 |
+
|
281 |
+
<?php
|
282 |
+
$even = 0;
|
283 |
+
foreach ($render_data as $key=>$section) {
|
284 |
+
if( ++$even%2 ) {
|
285 |
+
echo '<div class="row rt-odd">';
|
286 |
+
}
|
287 |
+
else {
|
288 |
+
echo '<div class="row rt-even">';
|
289 |
+
}
|
290 |
+
do_action("rtmedia_type_settings_before_body");
|
291 |
+
echo '<div class="columns large-3">' . $section['name'] . '</div>';
|
292 |
+
$args = array('key' => 'allowedTypes_'.$key.'_enabled', 'value' => $section['enabled']);
|
293 |
+
echo '<div class="columns large-3">';
|
294 |
+
self::checkbox($args);
|
295 |
+
echo '</div>';
|
296 |
+
$args = array('key' => 'allowedTypes_'.$key.'_featured', 'value' => $section['featured']);
|
297 |
+
echo '<div class="columns large-3">';
|
298 |
+
self::checkbox($args);
|
299 |
+
echo '</div>';
|
300 |
+
echo '<div class="columns large-3">' . implode(', ', $section['extn']) . '</div>';
|
301 |
+
do_action("rtmedia_type_settings_after_body",$key, $section);
|
302 |
+
echo '</div>';
|
303 |
+
}
|
304 |
+
echo '</div>';
|
305 |
+
}
|
306 |
+
|
307 |
+
static function sizes_render_options($options) {
|
308 |
+
|
309 |
+
$render = array();
|
310 |
+
foreach ($options as $key => $value) {
|
311 |
+
$data = explode('_', $key);
|
312 |
+
if(!isset($render[$data[1]])) {
|
313 |
+
$render[$data[1]] = array();
|
314 |
+
$render[$data[1]]['title'] = __($data[1],"rtmedia");
|
315 |
+
}
|
316 |
+
if(!isset($render[$data[1]][$data[2]])) {
|
317 |
+
$render[$data[1]][$data[2]] = array();
|
318 |
+
$render[$data[1]][$data[2]]['title'] = __($data[2],"rtmedia");
|
319 |
+
}
|
320 |
+
$render[$data[1]][$data[2]][$data[3]] = $value;
|
321 |
+
}
|
322 |
+
return $render;
|
323 |
+
}
|
324 |
+
|
325 |
+
public static function sizes_content() {
|
326 |
+
|
327 |
+
global $rtmedia;
|
328 |
+
$options = self::extract_settings('defaultSizes',$rtmedia->options);
|
329 |
+
$render_data = self::sizes_render_options($options);
|
330 |
+
|
331 |
+
//container
|
332 |
+
echo '<div class="rt-table large-12 rtmedia-size-content-setting">';
|
333 |
+
|
334 |
+
//header
|
335 |
+
echo '<div class="rt-header row">';
|
336 |
+
echo '<h4 class="columns large-3">' . __("Category","rtmedia") . '</h4>';
|
337 |
+
echo '<h4 class="columns large-3">' . __("Entity","rtmedia") . '</h4>';
|
338 |
+
echo '<h4 class="columns large-6"><span class="large-offset-2">' . __("Width","rtmedia") . '</span><span class="large-offset-2">' . __("Height","rtmedia") . '</span><span class="large-offset-2">' . __("Crop","rtmedia") . '</span></h4>';
|
339 |
+
echo'</div>';
|
340 |
+
|
341 |
+
//body
|
342 |
+
$even = 0;
|
343 |
+
foreach ($render_data as $parent_key => $section) {
|
344 |
+
if( ++$even%2 )
|
345 |
+
echo '<div class="row rt-odd">';
|
346 |
+
else
|
347 |
+
echo '<div class="row rt-even">';
|
348 |
+
echo '<div class="columns large-3">' . ucfirst($section['title']) . '</div>';
|
349 |
+
$entities = $section;
|
350 |
+
unset($entities['title']);
|
351 |
+
echo '<div class="columns large-3">';
|
352 |
+
foreach ($entities as $entity) {
|
353 |
+
echo '<div class="row">' . ucfirst($entity['title']) . '</div>';
|
354 |
+
}
|
355 |
+
echo '</div>';
|
356 |
+
echo '<div class="columns large-6">';
|
357 |
+
foreach ($entities as $entity) {
|
358 |
+
$args = array(
|
359 |
+
'key' => 'defaultSizes_'.$parent_key.'_'.$entity['title'],
|
360 |
+
);
|
361 |
+
foreach ($entity as $child_key=>$value) {
|
362 |
+
if($child_key!='title') {
|
363 |
+
$args[$child_key] = $value;
|
364 |
+
}
|
365 |
+
}
|
366 |
+
self::dimensions($args);
|
367 |
+
}
|
368 |
+
echo '</div>';
|
369 |
+
echo '</div>';
|
370 |
+
}
|
371 |
+
|
372 |
+
echo '</div>';
|
373 |
+
}
|
374 |
+
|
375 |
+
static function privacy_render_options($options) {
|
376 |
+
|
377 |
+
global $rtmedia;
|
378 |
+
|
379 |
+
$render = array(
|
380 |
+
'enable' => array(
|
381 |
+
'title' => __("Enable Privacy","rtmedia"),
|
382 |
+
'callback' => array("RTMediaFormHandler", "checkbox"),
|
383 |
+
'args' => array(
|
384 |
+
'id' => 'rtmedia-privacy-enable',
|
385 |
+
'key' => 'privacy_enabled',
|
386 |
+
'value' => $options['privacy_enabled']
|
387 |
+
)
|
388 |
+
),
|
389 |
+
'default' => array(
|
390 |
+
'title' => __("Default Privacy","rtmedia"),
|
391 |
+
'callback' => array("RTMediaFormHandler","radio"),
|
392 |
+
'args' => array(
|
393 |
+
'key' => 'privacy_default',
|
394 |
+
'radios' => $rtmedia->privacy_settings['levels'],
|
395 |
+
'default' => $options['privacy_default']
|
396 |
+
),
|
397 |
+
),
|
398 |
+
'user_override' => array(
|
399 |
+
'title' => __("User Override","rtmedia"),
|
400 |
+
'callback' => array("RTMediaFormHandler", "checkbox"),
|
401 |
+
'args' => array(
|
402 |
+
'key' => 'privacy_userOverride',
|
403 |
+
'value' => $options['privacy_userOverride']
|
404 |
+
)
|
405 |
+
)
|
406 |
+
);
|
407 |
+
|
408 |
+
return $render;
|
409 |
+
}
|
410 |
+
|
411 |
+
public static function privacy_content() {
|
412 |
+
|
413 |
+
global $rtmedia;
|
414 |
+
$options = self::extract_settings('privacy', $rtmedia->options);
|
415 |
+
|
416 |
+
$render_data = self::privacy_render_options($options);
|
417 |
+
|
418 |
+
echo '<div class="large-12">';
|
419 |
+
foreach ($render_data as $key=>$privacy) {
|
420 |
+
echo '<div class="row section">';
|
421 |
+
echo '<div class="columns large-4">' . $privacy['title'] . '</div>';
|
422 |
+
echo '<div class="columns large-8">';
|
423 |
+
if($key != "enable")
|
424 |
+
call_user_func($privacy['callback'], array_merge_recursive($privacy['args'], array('class' => array("privacy-driven-disable"))));
|
425 |
+
else
|
426 |
+
call_user_func($privacy['callback'], $privacy['args']);
|
427 |
+
echo '</div>';
|
428 |
+
echo '</div>';
|
429 |
+
}
|
430 |
+
echo '</div>';
|
431 |
+
}
|
432 |
+
|
433 |
+
static function buddypress_render_options($options) {
|
434 |
+
|
435 |
+
|
436 |
+
$render = array(
|
437 |
+
'rtmedia-enable-on-profile' => array(
|
438 |
+
'title' => __('Enable Media in Profile','rtmedia'),
|
439 |
+
'callback' => array('RTMediaFormHandler', 'checkbox'),
|
440 |
+
'args' => array(
|
441 |
+
'key' => 'buddypress_enableOnProfile',
|
442 |
+
'value' => $options['buddypress_enableOnProfile'],
|
443 |
+
'desc' => __('Enable Media on BuddyPress Profile','rtmedia')
|
444 |
+
)
|
445 |
+
),
|
446 |
+
'rtmedia-enable-on-group' => array(
|
447 |
+
'title' => __('Enable Media in Group','rtmedia'),
|
448 |
+
'callback' => array('RTMediaFormHandler', 'checkbox'),
|
449 |
+
'args' => array(
|
450 |
+
'key' => 'buddypress_enableOnGroup',
|
451 |
+
'value' => $options['buddypress_enableOnGroup'],
|
452 |
+
'desc' => __('Enable Media on BuddyPress Groups','rtmedia')
|
453 |
+
)
|
454 |
+
),
|
455 |
+
'rtmedia-enable-on-activity' => array(
|
456 |
+
'title' => __('Enable Media in Activity','rtmedia'),
|
457 |
+
'callback' => array('RTMediaFormHandler', 'checkbox'),
|
458 |
+
'args' => array(
|
459 |
+
'key' => 'buddypress_enableOnActivity',
|
460 |
+
'value' => $options['buddypress_enableOnActivity'],
|
461 |
+
'desc' => __('Enable Media on BuddyPress Activities','rtmedia')
|
462 |
+
)
|
463 |
+
)
|
464 |
+
);
|
465 |
+
|
466 |
+
return $render;
|
467 |
+
}
|
468 |
+
|
469 |
+
public static function buddypress_content() {
|
470 |
+
|
471 |
+
global $rtmedia;
|
472 |
+
$options = self::extract_settings('buddypress', $rtmedia->options);
|
473 |
+
|
474 |
+
$render_data = self::buddypress_render_options($options);
|
475 |
+
|
476 |
+
echo '<div class="large-12">';
|
477 |
+
foreach ($render_data as $option) { ?>
|
478 |
+
<div class="row section">
|
479 |
+
<div class="columns large-4"><?php echo $option['title']; ?></div>
|
480 |
+
<div class="columns large-8">
|
481 |
+
<?php call_user_func($option['callback'], $option['args']); ?>
|
482 |
+
</div>
|
483 |
+
</div>
|
484 |
+
<?php }
|
485 |
+
echo '</div>';
|
486 |
+
}
|
487 |
+
|
488 |
+
public static function rtForm_settings_tabs_content($page, $sub_tabs) {
|
489 |
+
$rtmedia_admin_ui_handler = "<div class='section-container auto' data-options='deep_linking: true' data-section=''>";
|
490 |
+
$rtmedia_admin_ui_handler = apply_filters("rtmedia_admin_ui_handler_filter",$rtmedia_admin_ui_handler);
|
491 |
+
echo $rtmedia_admin_ui_handler;
|
492 |
+
$sub_tabs = apply_filters("rtmedia_pro_settings_tabs_content",$sub_tabs);
|
493 |
+
foreach ($sub_tabs as $tab) {
|
494 |
+
if ( isset ( $tab[ 'icon' ] ) && ! empty ( $tab[ 'icon' ] ) )
|
495 |
+
$icon = '<i class="' . $tab[ 'icon' ] . '"></i>';
|
496 |
+
$tab_without_hash = explode("#", $tab[ 'href' ]);
|
497 |
+
$tab_without_hash = $tab_without_hash[1];
|
498 |
+
echo '<section> <p class="title" data-section-title><a id="tab-' . substr ( $tab[ 'href' ], 1 ) . '" title="' . $tab[ 'title' ] . '" href="' . $tab[ 'href' ] . '" class="rtmedia-tab-title ' . sanitize_title ( $tab[ 'name' ] ) . '">' . $icon . ' ' . $tab[ 'name' ] . '</a> </p> <div class="content" data-section-content data-slug="' . $tab_without_hash . '">';
|
499 |
+
call_user_func($tab['callback'], $page);
|
500 |
+
echo '</div> </section>';
|
501 |
+
}
|
502 |
+
?>
|
503 |
+
</div>
|
504 |
+
<div class="clearfix"></div>
|
505 |
+
<?php
|
506 |
+
}
|
507 |
+
|
508 |
+
public static function rtForm_do_settings_fields($page, $section) {
|
509 |
+
global $wp_settings_fields;
|
510 |
+
|
511 |
+
if (!isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section]))
|
512 |
+
return;
|
513 |
+
|
514 |
+
foreach ((array) $wp_settings_fields[$page][$section] as $field) {
|
515 |
+
echo '<div class="row">';
|
516 |
+
echo '<div class="large-11 columns">';
|
517 |
+
|
518 |
+
if (isset($field['args']['label_for']) && !empty($field['args']['label_for']))
|
519 |
+
call_user_func($field['callback'], array_merge($field['args'], array('label' => $field['args']['label_for'])));
|
520 |
+
else if (isset($field['title']) && !empty($field['title']))
|
521 |
+
call_user_func($field['callback'], array_merge($field['args'], array('label' => $field['title'])));
|
522 |
+
else
|
523 |
+
call_user_func($field['callback'], $field['args']);
|
524 |
+
echo '</div>';
|
525 |
+
echo '</div>';
|
526 |
+
}
|
527 |
+
}
|
528 |
+
}
|
529 |
+
?>
|
trunk/app/assets/css/admin.css
ADDED
@@ -0,0 +1,660 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/**
|
2 |
+
* Legacy
|
3 |
+
*/
|
4 |
+
|
5 |
+
/*
|
6 |
+
* Default stylesheet for BuddyPress Media
|
7 |
+
*/
|
8 |
+
#wpbody-content div.wrap.bp-media-admin .columns-2{margin-right:320px;padding-top: 0;margin-top: 15px;width: 620px}
|
9 |
+
#wpbody-content .bp-media-settings-tabs{margin-bottom: 0; }
|
10 |
+
#wpbody-content .bp-media-settings-tabs .media-nav-tab{margin: 0 10px; text-decoration: underline; text-transform: capitalize}
|
11 |
+
#wpbody-content .bp-media-settings-tabs .media-nav-tab.media-nav-tab-active{font-weight: bold}
|
12 |
+
|
13 |
+
#wpbody-content .wrap div.bp-media-metabox-holder{padding-top: 0; margin-top:10px;}
|
14 |
+
.bp-media-social{background: url('../img/bp_media_social.png');height: 35px;width: 35px;display: inline-block;font-size: 0px;margin-right:5px;}
|
15 |
+
.bp-media-facebook{background-position: 0px 0px;}
|
16 |
+
.bp-media-facebook:hover{background-position: 0px 36px;}
|
17 |
+
.bp-media-twitter{background-position: 80px 0px;}
|
18 |
+
.bp-media-twitter:hover{background-position: 80px 36px;}
|
19 |
+
.bp-media-rss{font-size: 14px;}
|
20 |
+
.bp-media-support .support_list{ margin-left: 25px}
|
21 |
+
.bp-media-support .support_list li{list-style: disc;margin-bottom: 10px}
|
22 |
+
|
23 |
+
div#icon-buddypress-media { background: url('../img/bpm-icon-32.png'); background-position-y: 35px; }
|
24 |
+
|
25 |
+
#adminmenu li.toplevel_page_bp-media-settings .wp-menu-image a{background:url('../img/bpm-icon-16.png') center 1px no-repeat;}
|
26 |
+
#adminmenu li.toplevel_page_bp-media-settings:hover .wp-menu-image a,
|
27 |
+
#adminmenu li.current.toplevel_page_bp-media-settings .wp-menu-image a{background-position: center 1px;}
|
28 |
+
#adminmenu li.toplevel_page_bp-media-settings .wp-menu-image a img{display:none;}
|
29 |
+
#bp-media-settings-boxes{margin:10px;}
|
30 |
+
#debug-info{clear:left;border:none; overflow: hidden; padding: 10px; margin: 10px 0 20px 0; -webkit-border-bottom-left-radius:3px;border-bottom-left-radius:3px;-webkit-border-top-right-radius:3px;border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-bottom-right-radius:3px; }
|
31 |
+
#debug-info th, #debug-info td{ border: 1px #e5e5e5 solid; border-left:none; border-right:none;}
|
32 |
+
.nav-tab-wrapper a#bp-media{background:url('../img/bpm-icon-32.png') transparent no-repeat; padding-left:32px;}
|
33 |
+
.nav-tab-wrapper a#bp-media:hover,.nav-tab-wrapper a#bp-media.nav-tab-active{background-position:left -96px;}
|
34 |
+
.metabox-holder .postbox#latest-news .inside ul li{list-style: disc inside;}
|
35 |
+
/*.metabox-holder .postbox#latest-news .inside ul li{background: transparent url('../img/bpm-icon-32.png') -5px 0px no-repeat; padding-left: 32px;}*/
|
36 |
+
/*.metabox-holder .postbox#latest-news .inside ul li:hover{background-position-y: -96px;}*/
|
37 |
+
#branding{min-height: 25px;}
|
38 |
+
#branding .inside{min-height: 25px;}
|
39 |
+
#branding #logo{text-align:center;padding: 10px 0;display:block;}
|
40 |
+
#social{display:block;margin:0;clear: both;}
|
41 |
+
#branding #mc-embedded-subscribe-form{float: left;width: 100%;}
|
42 |
+
#branding label{float: right;}
|
43 |
+
#branding #mc-embedded-subscribe{float: right;padding: 0 3px;}
|
44 |
+
#branding #mce-EMAIL{float: left;}
|
45 |
+
#social .row .large-6{display:inline; vertical-align: middle; padding:0; text-align:center;}
|
46 |
+
#spread-the-word .button{display:inline-block; margin: 5px 0px;}
|
47 |
+
#spread-the-word label{display:block;}
|
48 |
+
#spread-the-word .inside{}
|
49 |
+
#spread-the-word .button-tweet, #bpmedia-bpalbumimporter .button-import-tweet{background: #33ACE6; border-color: #3399DD #3399DD #2288CC; color: #FFFFFF !important; text-shadow: -1px -1px 0 #3399DD;}
|
50 |
+
#spread-the-word .button-tweet:hover, #bpmedia-bpalbumimporter .button-import-tweet:hover{background: #3399DD;border-color: #2288CC;box-shadow: 0 0 4px rgba(82, 168, 236, 0.75);}
|
51 |
+
#spread-the-word .button-rating{background: #8A8A8A; border-color: #222; color: #FFFFFF !important; text-shadow: -1px -1px 0 #444;}
|
52 |
+
#spread-the-word .button-rating:hover{background: #7E7E7E;border-color: #444;box-shadow: 0 0 4px rgba(128,128,128, 0.75);}
|
53 |
+
.wrap.bp-media-admin .bp-media-settings-tabs a.nav-tab{padding-left:20px;background:url('../img/tab-icon.png') 3px -4px no-repeat;}
|
54 |
+
.wrap.bp-media-admin .bp-media-settings-tabs a.nav-tab.addons{background-position-y:-34px;}
|
55 |
+
.wrap.bp-media-admin .bp-media-settings-tabs a.nav-tab.support{background-position-y:-64px;}
|
56 |
+
.wrap.bp-media-admin .bp-media-settings-tabs a.nav-tab.update-database{background-position-y:-94px;}
|
57 |
+
.wrap.bp-media-admin .bp-media-settings-tabs a.nav-tab.ffmpeg{background-position-y:-154px;}
|
58 |
+
.wrap.bp-media-admin .bp-media-settings-tabs a.nav-tab.kaltura{background-position-y:-184px;}
|
59 |
+
.wrap.bp-media-admin .bp-media-settings-tabs a.nav-tab.convert-videos{background-position-y:-214px;}
|
60 |
+
.wrap.bp-media-admin .bp-media-settings-tabs a.nav-tab.insta{background-position-y:-244px;}
|
61 |
+
.wrap.bp-media-admin .bp-media-settings-tabs a.nav-tab.watermark{background-position-y:-274px;}
|
62 |
+
.wrap.bp-media-admin .row {max-width: 97%;}
|
63 |
+
#bpm-unsubscribe-dialog { display: none; }
|
64 |
+
#bpm-unsubscribe-dialog p { margin: 10px; }
|
65 |
+
|
66 |
+
table.bp-media-encoding-table td, table.bp-media-encoding-table th {
|
67 |
+
border-left-color: #fff;
|
68 |
+
border-right-color: #dfdfdf;
|
69 |
+
border-width: 1px;
|
70 |
+
vertical-align: middle;
|
71 |
+
text-align: center;
|
72 |
+
font-family: sans-serif;
|
73 |
+
}
|
74 |
+
table.bp-media-encoding-table th {
|
75 |
+
font-weight: bold;
|
76 |
+
}
|
77 |
+
|
78 |
+
/* Addons page Styling */
|
79 |
+
|
80 |
+
a.toplevel_page_bp-media-settings div.wp-menu-image{
|
81 |
+
background:url('../img/admin-menu.png') 0 -32px no-repeat;
|
82 |
+
}
|
83 |
+
|
84 |
+
#rt-donate-button, .rt-link img{vertical-align: middle;}
|
85 |
+
#adminmenu .menu-icon-generic.toplevel_page_bp-media-settings div.wp-menu-image{
|
86 |
+
background-position: 0 -32px;
|
87 |
+
}
|
88 |
+
#adminmenu .menu-icon-generic.wp-has-current-submenu.toplevel_page_bp-media-settings div.wp-menu-image,
|
89 |
+
#adminmenu .menu-icon-generic.toplevel_page_bp-media-settings:hover div.wp-menu-image{
|
90 |
+
background-position-y:0;
|
91 |
+
}
|
92 |
+
|
93 |
+
#bp-media-addons-list_metabox {background: #ffffff}
|
94 |
+
.products ul:after, ul.products:after {clear: both;content: "";display: block;}
|
95 |
+
.products ul, ul.products {clear: both;list-style: none outside none;margin: 0 0 14px;padding: 0;}
|
96 |
+
.bp-media-addon {margin: 0;}
|
97 |
+
.bp-media-addon.first { }
|
98 |
+
.bp-media-addon {margin: 20px 10px 30px;padding: 5px;position: relative;border: 1px solid #ccc;}
|
99 |
+
.bp-media-addon h4 {background: none repeat scroll 0 0 transparent;border: 0 none;color: #006999;cursor: pointer;font-family: "HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif;font-size: 20px;font-weight: normal;line-height: 26px;margin: 0 0 10px;}
|
100 |
+
.bp-media-addon a {text-decoration: none;}
|
101 |
+
.bp-media-addon a img, div.product div.images img {box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4);}
|
102 |
+
.bp-media-addon a img {display: block;height: auto;margin: 5px 15px 5px 5px;transition: all 0.2s ease-in-out 0s;float: left; width: 200px}
|
103 |
+
|
104 |
+
.bp-media-addon .price, .bp-media-addon .price .amount, .bp-media-addon .price ins {color: #85AD74;font-size: 25px;font-weight: bold;}
|
105 |
+
.bp-media-addon .price {line-height: 1.4em;color: #85AD74;display: block;font-weight: normal;margin-bottom: 0.5em;}
|
106 |
+
.coming-soon { background: url("../img/coming-soon.png"); z-index: 5; position:absolute;height:191px; opacity:0.9;}
|
107 |
+
.coming-soon.coming-soon-l { background-position: 0 0; width:250px; top:-12px; left:-18px;}
|
108 |
+
.coming-soon.coming-soon-r { background-position: 347px 0; width:174px; bottom:-14px; right:-12px;}
|
109 |
+
.coming-soon.coming-soon-r:hover{background-position: 175px 0;}
|
110 |
+
|
111 |
+
.bp-media-addon .product_footer{margin: 20px 0 0;overflow: hidden;}
|
112 |
+
.bp-media-addon .add_to_cart_button{background: #C45200; color: #FFFFFF;display: inline-block;font-size: 18px;font-weight: bold; line-height: 1.4em; margin: 0 20px; padding: 4px 15px;text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6)}
|
113 |
+
.bp-media-addon .product_footer .product_demo_link{font-size: 16px;margin: 8px 20px; font-weight: bold}
|
114 |
+
|
115 |
+
.bp-media-addon .add_to_cart_button:hover{background: none repeat scroll 0 0 #D75A00;
|
116 |
+
box-shadow: 0 1px rgba(0, 0, 0, 0.2), 0 0 1px rgba(0, 0, 0, 0.4) inset;
|
117 |
+
color: #FFFFFF;}
|
118 |
+
|
119 |
+
div.i-accept{ background-color: #dff0d8 !important; }
|
120 |
+
div.bp-album-import-accept{ padding: 1px 2px; margin-bottom: 15px; }
|
121 |
+
.bp-album-importer-wizard { display: none; margin-top: 15px; }
|
122 |
+
#setting-error-bp-album-importer { line-height: 1.8em; }
|
123 |
+
.wp-core-ui .btn-warning {
|
124 |
+
color: #ffffff;
|
125 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
126 |
+
background-color: #faa732;
|
127 |
+
*background-color: #f89406;
|
128 |
+
background-image: -moz-linear-gradient(top, #fbb450, #f89406);
|
129 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
|
130 |
+
background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
|
131 |
+
background-image: -o-linear-gradient(top, #fbb450, #f89406);
|
132 |
+
background-image: linear-gradient(to bottom, #fbb450, #f89406);
|
133 |
+
background-repeat: repeat-x;
|
134 |
+
border-color: #f89406 #f89406 #ad6704;
|
135 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
136 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);
|
137 |
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
138 |
+
}
|
139 |
+
|
140 |
+
#item-body a.btn-danger {
|
141 |
+
padding: 4px 10px;
|
142 |
+
color: #ffffff;
|
143 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
144 |
+
background-color: #da4f49;
|
145 |
+
*background-color: #bd362f;
|
146 |
+
background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
|
147 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
|
148 |
+
background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f);
|
149 |
+
background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
|
150 |
+
background-image: linear-gradient(to bottom, #ee5f5b, #bd362f);
|
151 |
+
background-repeat: repeat-x;
|
152 |
+
border-color: #bd362f #bd362f #802420;
|
153 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
154 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0);
|
155 |
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
156 |
+
}
|
157 |
+
|
158 |
+
#item-body a.btn-danger:hover,
|
159 |
+
#item-body a.btn-danger:focus,
|
160 |
+
#item-body a.btn-danger:active,
|
161 |
+
#item-body a.btn-danger.active,
|
162 |
+
#item-body a.btn-danger.disabled,
|
163 |
+
#item-body a.btn-danger[disabled] {
|
164 |
+
color: #ffffff;
|
165 |
+
border-color: #bd362f #bd362f #802420;
|
166 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
167 |
+
background: #bd362f;
|
168 |
+
*background: #a9302a;
|
169 |
+
}
|
170 |
+
|
171 |
+
#item-body a.btn-danger:active,
|
172 |
+
#item-body a.btn-danger.active {
|
173 |
+
border-color: #bd362f #bd362f #802420;
|
174 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
175 |
+
background: #942a25 \9;
|
176 |
+
}
|
177 |
+
|
178 |
+
|
179 |
+
.wp-core-ui .btn-warning:hover,
|
180 |
+
.wp-core-ui .btn-warning:focus,
|
181 |
+
.wp-core-ui .btn-warning:active,
|
182 |
+
.wp-core-ui .btn-warning.active,
|
183 |
+
.wp-core-ui .btn-warning.disabled,
|
184 |
+
.wp-core-ui .btn-warning[disabled] {
|
185 |
+
color: #ffffff;
|
186 |
+
background: #f89406;
|
187 |
+
background-color: #f89406;
|
188 |
+
*background: #df8505;
|
189 |
+
*background-color: #df8505;
|
190 |
+
}
|
191 |
+
|
192 |
+
/* Admin bar Menu */
|
193 |
+
#wpadminbar .bp-media-settings-menu > .ab-item .ab-icon{background: url("../img/bpm-icon-16.png") no-repeat scroll -8px -7px transparent}
|
194 |
+
#wpadminbar .bp-media-settings-menu:hover .ab-icon{background-position: -8px -41px}
|
195 |
+
|
196 |
+
/* BuddyPress media admin support form styling */
|
197 |
+
.bp-media-updated, .bp-media-error{border-radius: 3px; padding: 0 7px; margin: 5px 0 15px; border: 1px solid}
|
198 |
+
.bp-media-updated p, .bp-media-error p{margin: 0.5em 0;padding: 2px;}
|
199 |
+
.bp-media-updated{background-color: #FFFFE0;border-color: #E6DB55;}
|
200 |
+
.bp-media-error{background-color: #FFEBE8;border-color: #CC0000;}
|
201 |
+
.bp-media-form li{margin-bottom: 10px}
|
202 |
+
.bp-media-form .bp-media-label{display: inline-block;margin-right: 10px;width: 150px;vertical-align: top; }
|
203 |
+
.bp-media-form .bp-media-input{background-color: #FFFFFF;border: 1px solid #DFDFDF;border-radius: 3px 3px 3px 3px;color: #333333;line-height: 16px;padding: 5px;width: 220px;}
|
204 |
+
.bp-media-form .bp-media-checkbox{margin-right: 10px; margin-left: 160px}
|
205 |
+
.bp-media-form .bp-media-textarea{background-color: #FFFFFF;border: 1px solid #DFDFDF;border-radius: 3px 3px 3px 3px;color: #333333;height: 175px;line-height: 16px;padding: 5px;width: 400px;}
|
206 |
+
.bp-media-form .bp-media-select{margin: 0;max-width: 400px;}
|
207 |
+
.bp-media-support-attachment label{float: left}
|
208 |
+
.bp-media-support-attachment .more-attachment{margin-left: 160px; margin-top: 10px}
|
209 |
+
.bp-media-support-attachment .more-attachment:first-child{margin-top: 0px}
|
210 |
+
.bp-media-support-attachment .add-more-attachment-btn{clear: both;display: inline-block;margin-left: 160px;margin-top: 10px;}
|
211 |
+
.template_select_label{float: left}
|
212 |
+
.template_select_container{overflow-x:scroll; width:405px;float: left}
|
213 |
+
#bp_media_settings_form .support_form_loader{height: 100px; width: 200px; background: url("../img/loader.gif") no-repeat }
|
214 |
+
/* Miscellaneous */
|
215 |
+
#normal-sortables .postbox .bp-media-form .submit{float: none; margin-left: 150px}
|
216 |
+
.rt-success{background-color: #E1FFDF;border-color: #2ACF2A;}
|
217 |
+
.rt-update{background-color: #FFEAA6;border-color:#E1CA82;}
|
218 |
+
img.bp-media-donation-image{display:block;margin: 10px auto;}
|
219 |
+
#donate form{text-align: center;}
|
220 |
+
/*Transcoding Teaser*/
|
221 |
+
.para-blockquote { background: #E5E5E5; padding: 10px; font-style: italic; }
|
222 |
+
#latest-update img, #members-list .update img, #members-list .update {display:block; overflow: hidden;}
|
223 |
+
|
224 |
+
.encoding-used,
|
225 |
+
.encoding-remaining { display: inline-block; width: 10px; height: 10px; margin-right: 5px;}
|
226 |
+
.encoding-used { background : #fb6003; }
|
227 |
+
.encoding-remaining { background: #444; }
|
228 |
+
|
229 |
+
.bp_media_content img{max-width:100%;}
|
230 |
+
.bp_media_content .mejs-poster img{max-width: 100%;}
|
231 |
+
.media .album-edit{display:inline;}
|
232 |
+
.media #item-body h3 {float: left;}
|
233 |
+
.media #item-body .bp-media-gallery h3 { float:none; }
|
234 |
+
.media .bp-media-album-actions {float: left; margin-left: 15px;}
|
235 |
+
.media .bulk-move, .media .bulk-delete {display: none;}
|
236 |
+
.bp-media-list h3 {display:block;font-size:20px;font-weight:bold;}
|
237 |
+
ul.bp-media-gallery{overflow: hidden}
|
238 |
+
.bp_media_description {display:block;margin-top:20px;}
|
239 |
+
#bp-media-upload-form, #message, .bp-media-action-wrapper, #bp-media-user-privacy {clear:left;}
|
240 |
+
.bp-media-album-action-ui { display:none; }
|
241 |
+
.bp-media-album-description {clear:left;font-size:1.2em}
|
242 |
+
ul.bp-media-gallery.item-list{clear:left;overflow:visible;margin: 1% 0;width: auto;}
|
243 |
+
#item-body ul.bp-media-gallery li{float: left;margin: 1% 1% 0;width: 18%;border-bottom: none;padding: 0;position: static;height:auto; display:block;}
|
244 |
+
ul.bp-media-gallery li img{max-width:150px;width:100%;height:auto;-moz-box-shadow: 1px 1px 10px #a0a0a0;-webkit-box-shadow: 1px 1px 10px #a0a0a0;box-shadow: 1px 1px 10px #a0a0a0;-moz-transition: box-shadow 0.2s linear;-webkit-transition: box-shadow 0.2s linear;transition: box-shadow 0.2s linear;}
|
245 |
+
ul.bp-media-gallery li img:hover{-moz-box-shadow: 1px 1px 10px #333;-webkit-box-shadow: 1px 1px 10px #333;box-shadow: 1px 1px 10px #333;}
|
246 |
+
ul.bp-media-gallery h3{max-width: 150px;overflow: hidden;text-align: center;font-size: 110%;white-space: nowrap;height: 20px;margin: 10px 0px;}
|
247 |
+
ul.bp-media-gallery a{width:150px;}
|
248 |
+
ul.bp-media-gallery li span img{height: 150px;}
|
249 |
+
.bp-media-single .activity-list .activity-content,.bp-media-single div.activity-comments{margin-left:0;}
|
250 |
+
#bp-media-selected-album{max-width: 320px;}
|
251 |
+
/*li.media div.activity-content div.activity-inner p{display:none;}*/
|
252 |
+
.bp-media-list h3{margin-bottom:10px;}
|
253 |
+
#bp-media-footer {color: #4D4D4D;text-align: center;text-shadow: #FAFAFA 1px 1px 0;}
|
254 |
+
/*#bp-media-upload-ui{position: relative;}*/
|
255 |
+
#item-body:after,ul.bp-media-gallery.item-list:after{content: " ";clear: both;display: block;text-indent: -9999em;}
|
256 |
+
#item-body{position: relative;}
|
257 |
+
|
258 |
+
|
259 |
+
.bp-media-ajax-spinner { display: none; vertical-align: -3px;}
|
260 |
+
#bp-media-activity-upload-ui { width: 50%;}
|
261 |
+
.bp-media-area-allocate{height: 10px;width: 100%;display: block;}
|
262 |
+
li #bp-media-upload-ui {padding: 0;max-width: 158px;position: relative;}
|
263 |
+
#bp-media-upload-ui {margin-top: 10px; clear: left;}
|
264 |
+
#upload-container .drag-drop{border: 4px dashed #DDD;text-align: center;background: #fafafa;overflow: hidden;padding: 15px 0;}
|
265 |
+
#bp-media-upload-ui.hover #drag-drop-area {border-color: #83b4d8;}
|
266 |
+
li #bp-media-upload-ui #drag-drop-area{max-width: 150px;min-height: auto;}
|
267 |
+
/*.albums li #bp-media-upload-ui #drag-drop-area{padding: 20px 0 10px;}*/
|
268 |
+
#upload-container .drag-drop-inside{float: left;width: 48%;}
|
269 |
+
.albums #bp-media-upload-ui .drag-drop-inside{float: none;width: auto;}
|
270 |
+
li #bp-media-upload-ui .drag-drop-inside,li #bp-media-upload-ui #bp-media-album-prompt{float: none;max-width: 100%;width: auto;}
|
271 |
+
li #bp-media-upload-ui #bp-media-album-prompt{margin: 8px auto 0;max-width: 144px;}
|
272 |
+
#bp-media-upload-ui #bp-media-album-prompt{float: left;width: 47%;}
|
273 |
+
#bp-media-upload-ui .drag-drop-info{font-size:16px;}
|
274 |
+
#bp-media-upload-ui .drag-drop-inside p.drag-drop-info{font-size: 20px;line-height: 100%;}
|
275 |
+
#bp-media-upload-ui .drag-drop-buttons input,#bp-media-album-prompt input.button{-moz-box-sizing: content-box;border-color: #BBBBBB;border-radius: 15px;border-style: solid;border-width: 1px;color: #464646;cursor: pointer;font-size: 13px !important;line-height: 13px;padding: 5px 10px;text-decoration: none;}
|
276 |
+
li #bp-media-album-prompt input.button{font-size: 12px !important;padding: 3px 8px;text-decoration: none;margin-top: 5px;}
|
277 |
+
#bp-media-selected-album{max-width: 140px;font-size: 14px;width: 100%;}
|
278 |
+
li #bp-media-album-prompt > p,li #bp-media-upload-ui #drag-drop-area p{display: none;}
|
279 |
+
.albums li #bp-media-album-prompt > p,.albums li #bp-media-upload-ui #drag-drop-area p{display: block;}
|
280 |
+
li #bp-media-upload-ui #drag-drop-area p.drag-drop-buttons{display: block;}
|
281 |
+
#bp-media-album-prompt div.hide{display: none;margin: 0;}
|
282 |
+
#bp-media-album-prompt > span{font-size: 16px;}
|
283 |
+
.bp-media-album-content { display: inline }
|
284 |
+
/*#bp-media-upload-ui .drag-drop-inside p,#bp-media-album-prompt #bp_media_album_new{font-size: 14px;margin: 0;}*/
|
285 |
+
#bp-media-album-prompt #bp_media_album_new{max-width: 90%;}
|
286 |
+
li #bp-media-album-prompt #bp_media_album_new{margin: 0;max-width: 134px;width: 94%;}
|
287 |
+
#bp-media-upload-ui .drag-drop-to{width: 22px;line-height: 22px;margin: 40px auto 0;float: left;}
|
288 |
+
li #bp-media-upload-ui .drag-drop-to{width: 100%;line-height: 22px;margin: 0;float: none;}
|
289 |
+
#bp-media-album-in {background-color: #333333;border-radius: 11px 11px 11px 11px;color: #FFFFFF;display: block;float: left;font-size: 14px;line-height: 22px;width: 22px;}
|
290 |
+
.upload #bp-media-album-or{font-size: 14px;}
|
291 |
+
li #bp-media-album-in, .albums li #bp-media-album-or{float: none;margin: 20px auto;}
|
292 |
+
#bp-media-album-prompt #create-new{background-color: #DF562C;color: #fff;}
|
293 |
+
|
294 |
+
#bp-media-uploaded-files{background: none repeat scroll 0 0 #DDDDDD;margin-top: 5px;width: 100%;}
|
295 |
+
li #bp-media-uploaded-files{left: 0;position: absolute;top: 155px;}
|
296 |
+
#bp-media-uploaded-files .error{padding: 5px;text-align: center;}
|
297 |
+
.bp-media-progressbar{height: 28px;margin: 6px 10px 0 0;line-height: 2em;padding: 0;overflow: hidden;margin-bottom: 2px;border: 1px solid #D1D1D1;background: white;background-image: linear-gradient(bottom,white 0,#F7F7F7 100%);background-image: -o-linear-gradient(bottom,white 0,#F7F7F7 100%);background-image: -moz-linear-gradient(bottom,white 0,#F7F7F7 100%);background-image: -webkit-linear-gradient(bottom,white 0,#F7F7F7 100%);background-image: -ms-linear-gradient(bottom,white 0,#F7F7F7 100%);-webkit-border-radius: 3px;border-radius: 3px;-webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1)}
|
298 |
+
.bp-media-progress-text{z-index: 10;position: relative;width: 100%;padding: 0 8px;text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);color: rgba(0, 0, 0, 0.6);font-size:16px;line-height: 28px;height: 28px;}
|
299 |
+
.bp-media-progress-completed{z-index: 9;width: 0;height: 35px;margin-top: -35px;background-color: #83B4D8;background-image: linear-gradient(bottom,#72A7CF 0,#90C5EE 100%);background-image: -o-linear-gradient(bottom,#72A7CF 0,#90C5EE 100%);background-image: -moz-linear-gradient(bottom,#72A7CF 0,#90C5EE 100%);background-image: -webkit-linear-gradient(bottom,#72A7CF 0,#90C5EE 100%);background-image: -ms-linear-gradient(bottom,#72A7CF 0,#90C5EE 100%);-webkit-border-radius: 3px;border-radius: 3px;-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);}
|
300 |
+
.bpm-aligncenter{display: inline-block;text-align: center;width: 100%;}
|
301 |
+
#bp-media-premium-addons ul,#bp-media-premium-addons li{list-style:disc;margin-left:10px;}
|
302 |
+
.bp-media-single div.bp_media_content{text-align:center;width: auto;
|
303 |
+
margin: 0 auto;
|
304 |
+
position: relative; clear: both; }
|
305 |
+
.bp-media-single .bp_media_content .mejs-container{margin-left:auto;margin-right:auto;}
|
306 |
+
|
307 |
+
.bp-media-actions{margin:20px 0;}
|
308 |
+
.bp-media-actions a{display:inline-block;}
|
309 |
+
|
310 |
+
.media-tabs-container .ui-tabs-panel{}
|
311 |
+
.media-tabs-container .ui-tabs-hide{display: none}
|
312 |
+
|
313 |
+
.media-tabs-container .ui-tabs-nav{clear: both;display: block;margin: 0 0 15px;overflow: hidden;}
|
314 |
+
.media-tabs-container .ui-state-default{border-left: 1px solid;float: left;line-height: 110%;padding: 0 5px; list-style: none;}
|
315 |
+
.media-tabs-container .ui-state-default:first-child{margin-left: 0px;border: 0; padding-left: 0}
|
316 |
+
|
317 |
+
.media-tabs-container .ui-state-default a{text-decoration: none}
|
318 |
+
.media-tabs-container .ui-state-default.ui-state-active a{text-decoration: underline}
|
319 |
+
|
320 |
+
.media-tabs-container .widget-item-listing li{position:relative; margin-top: 10px;overflow: hidden;min-height: 52px; float:left; width:50%;}
|
321 |
+
.media-tabs-container .widget-item-listing li img{max-width:90%; margin:0 auto; float: left; display: block }
|
322 |
+
.media-tabs-container .widget-item-listing li h3 {position:absolute; bottom:0;margin: 0; display:none; background:#fff none; width:100%;text-align:center;}
|
323 |
+
.media-tabs-container .widget-item-listing li:hover h3{display:block;}
|
324 |
+
.media-tabs-container .widget-item-listing li h3 a{font-size: 13px;font-weight: normal;word-wrap: break-word; }
|
325 |
+
|
326 |
+
#bp-media-show-more{width: 200px;margin-left: auto;margin-right: auto;display: block;height: 30px;line-height: 30px;font-size: 20px;}
|
327 |
+
#bp-media-show-more-sc {display:block; margin: 0 auto;}
|
328 |
+
#bp-media-upload-ui.activity-component{margin-left: 74px;margin-top: 10px;}
|
329 |
+
ul#activity-stream li.media.album_updated ul{}
|
330 |
+
ul#activity-stream li.media.album_updated ul li,ul.bp-media-list-media li{float: left;margin-right:2%}
|
331 |
+
|
332 |
+
|
333 |
+
body.media {overflow:auto;}
|
334 |
+
.media ul#bp-media-upload-set-privacy li input[type="radio"]{float:left;}
|
335 |
+
/* Privacy settings */
|
336 |
+
#bp-media-upload-set-privacy li{margin: 10px 0;overflow: hidden;}
|
337 |
+
#bp-media-upload-set-privacy .album-set-privacy-radio{}
|
338 |
+
#bp-media-upload-set-privacy .album-set-privacy-label{margin: 0;font-weight: normal;}
|
339 |
+
|
340 |
+
.bp-media-single .delete-activity-single,.bp-media-single .delete-activity{
|
341 |
+
color: #ff0000;
|
342 |
+
font-weight:bold;
|
343 |
+
}
|
344 |
+
.simplemodal-overlay{
|
345 |
+
background:#333 none;
|
346 |
+
z-index: 100000;
|
347 |
+
}
|
348 |
+
.simplemodal-container{
|
349 |
+
background:#fff none;
|
350 |
+
}
|
351 |
+
.bp-media-mod-title{
|
352 |
+
display:none;
|
353 |
+
}
|
354 |
+
|
355 |
+
.bp-media-ajax-single{
|
356 |
+
padding:0;
|
357 |
+
}
|
358 |
+
.bp-media-ajax-single .lightbox-spinner{
|
359 |
+
height:24px;
|
360 |
+
width:24px;
|
361 |
+
background: url("../img/boxspinner.gif") center center;
|
362 |
+
left:50%;
|
363 |
+
top:50%;
|
364 |
+
position:absolute;
|
365 |
+
}
|
366 |
+
.simplemodal-container .simplemodal-close{
|
367 |
+
background: url("../img/bp-media-modal.png") right bottom no-repeat;
|
368 |
+
width:22px;
|
369 |
+
height:22px;
|
370 |
+
display:block;
|
371 |
+
position:absolute;
|
372 |
+
right:0px;
|
373 |
+
top:0px;
|
374 |
+
cursor: pointer;
|
375 |
+
}
|
376 |
+
.simplemodal-container .simplemodal-close:hover{
|
377 |
+
background-position: right top;
|
378 |
+
}
|
379 |
+
.simplemodal-container a.modal-ctrl{
|
380 |
+
position:absolute;
|
381 |
+
height:100%;
|
382 |
+
height:100px;
|
383 |
+
width:100px;
|
384 |
+
top:50%;
|
385 |
+
margin-top:-50px;
|
386 |
+
cursor: pointer;
|
387 |
+
}
|
388 |
+
.simplemodal-container a.modal-ctrl:hover{
|
389 |
+
background: #232323 none;
|
390 |
+
}
|
391 |
+
.simplemodal-container a.modal-ctrl span.img-icon{
|
392 |
+
display: block;
|
393 |
+
height:22px;
|
394 |
+
width:22px;
|
395 |
+
margin:39px auto 39px 10px;
|
396 |
+
|
397 |
+
background: url("../img/bp-media-modal.png") left bottom no-repeat;
|
398 |
+
}
|
399 |
+
.simplemodal-container a.modal-next span.img-icon{
|
400 |
+
background-position: center bottom;
|
401 |
+
margin:39px 10px 39px auto;
|
402 |
+
}
|
403 |
+
.simplemodal-container a.modal-prev:hover span.img-icon{
|
404 |
+
background-position: left top;
|
405 |
+
}
|
406 |
+
.simplemodal-container a.modal-next:hover span.img-icon{
|
407 |
+
background-position: center top;
|
408 |
+
}
|
409 |
+
.simplemodal-container a.modal-prev:hover,
|
410 |
+
.simplemodal-container a.modal-next:hover{
|
411 |
+
background:url("../img/") no-repeat;
|
412 |
+
}
|
413 |
+
.simplemodal-container a.modal-prev{
|
414 |
+
left: 0px;
|
415 |
+
}
|
416 |
+
.simplemodal-container a.modal-next{
|
417 |
+
right: 0px;
|
418 |
+
}
|
419 |
+
|
420 |
+
.bp-media-ajax-single .bp-media-mod-title{
|
421 |
+
display:block;
|
422 |
+
margin-top:22px;
|
423 |
+
}
|
424 |
+
.bp-media-ajax-single .bp-media-mod-title h2{
|
425 |
+
margin: 5px 0;
|
426 |
+
padding:0;
|
427 |
+
}
|
428 |
+
.bp-media-ajax-single .bp-media-mod-title p{
|
429 |
+
line-height:1.4em;
|
430 |
+
}
|
431 |
+
.bp-media-ajax-single .bp_media_content img,
|
432 |
+
.bp-media-ajax-single .bp_media_content video,
|
433 |
+
.bp-media-ajax-single .bp_media_content audio{
|
434 |
+
max-width: 100%;
|
435 |
+
display:inline-block;
|
436 |
+
margin:0 auto;
|
437 |
+
vertical-align: middle;
|
438 |
+
background:#fff none;
|
439 |
+
max-height:600px;
|
440 |
+
}
|
441 |
+
.bp-media-ajax-single .bp_media_author{
|
442 |
+
position:absolute;
|
443 |
+
top:0;
|
444 |
+
left:0;
|
445 |
+
}
|
446 |
+
.bp-media-ajax-single .bp-media-content-wrap,
|
447 |
+
.bp-media-ajax-single .bp_media_content{
|
448 |
+
float:left;
|
449 |
+
width:auto;
|
450 |
+
margin:0;
|
451 |
+
position:relative;
|
452 |
+
overflow:hidden;
|
453 |
+
height:480px;
|
454 |
+
min-width:640px;
|
455 |
+
background: #333 none;
|
456 |
+
display:table;
|
457 |
+
|
458 |
+
}
|
459 |
+
.bp-media-ajax-single .bp_media_content{
|
460 |
+
display:table-cell;
|
461 |
+
vertical-align: middle;
|
462 |
+
float:none;
|
463 |
+
}
|
464 |
+
.bp-media-ajax-single .bp-media-content-wrap .bp_media_description{
|
465 |
+
display:block;
|
466 |
+
position:absolute;
|
467 |
+
bottom:0;
|
468 |
+
left:0;
|
469 |
+
}
|
470 |
+
.bp-media-ajax-single .bp-media-meta-content-wrap{
|
471 |
+
float:left;
|
472 |
+
width:250px;
|
473 |
+
margin:0;
|
474 |
+
min-height:480px;
|
475 |
+
margin-left:10px;
|
476 |
+
overflow:auto;
|
477 |
+
}
|
478 |
+
.bp-media-ajax-single .bp-media-meta-content-wrap .activity-meta{
|
479 |
+
margin:0;
|
480 |
+
}
|
481 |
+
.bp-media-ajax-single .bp-media-meta-content-wrap .activity-meta a{
|
482 |
+
padding: 2px 8px;
|
483 |
+
margin: 5px 5px 0 0;
|
484 |
+
display:inline-block;
|
485 |
+
}
|
486 |
+
.bp-media-ajax-single .bp-media-meta-content-wrap div.activity-comments ul li > ul{
|
487 |
+
margin-left:0;
|
488 |
+
padding-left:0;
|
489 |
+
}
|
490 |
+
.bp-media-ajax-single .bp-media-meta-content-wrap div.activity-comments form div.ac-reply-content{
|
491 |
+
margin-left:0;
|
492 |
+
padding-left:0;
|
493 |
+
}
|
494 |
+
/*.bp-media-ajax-single .bp-media-meta-content-wrap div.activity-meta a {
|
495 |
+
padding: 0;
|
496 |
+
float:left;
|
497 |
+
}*/
|
498 |
+
.bp-media-ajax-preloader{
|
499 |
+
display:none;
|
500 |
+
}
|
501 |
+
|
502 |
+
#adminmenu li#toplevel_page_bp-media-settings a.toplevel_page_bp-media-settings { font-size: 12px; }
|
503 |
+
|
504 |
+
@media (min-width: 981px) and (max-width: 1096px) {
|
505 |
+
li #bp-media-upload-ui #drag-drop-area{padding: 10px 0;}
|
506 |
+
/* li #bp-media-upload-ui .drag-drop-inside{margin: 0 auto;}*/
|
507 |
+
li #bp-media-album-in, .albums li #bp-media-album-or{margin: 15px auto;}
|
508 |
+
li #bp-media-upload-ui .drag-drop-inside p.drag-drop-info{font-size: 17px;}
|
509 |
+
li #bp-media-upload-ui .drag-drop-buttons input{padding: 3px 8px;}
|
510 |
+
li #bp-media-uploaded-files{top: 130px}
|
511 |
+
li #bp-media-upload-ui #bp-media-album-prompt{margin-top: 0;}
|
512 |
+
li #bp-media-album-prompt input.button{padding: 3px;}
|
513 |
+
/* .albums li #bp-media-upload-ui #drag-drop-area{padding: 10px 0 0;}*/
|
514 |
+
}
|
515 |
+
@media (max-width: 980px) {
|
516 |
+
#item-body ul.bp-media-gallery li{width: 23%;}
|
517 |
+
li #bp-media-upload-ui #drag-drop-area{min-height: auto;}
|
518 |
+
}
|
519 |
+
@media (min-width: 850px) and (max-width: 930px) {
|
520 |
+
li #bp-media-album-in, .albums li #bp-media-album-or{margin: 15px auto;}
|
521 |
+
li #bp-media-upload-ui .drag-drop-inside p.drag-drop-info{font-size: 17px;}
|
522 |
+
li #bp-media-upload-ui .drag-drop-buttons input{padding: 3px 8px;}
|
523 |
+
}
|
524 |
+
@media (max-width: 850px) {
|
525 |
+
#item-body ul.bp-media-gallery li{width: 31%;}
|
526 |
+
#bp-media-upload-ui .drag-drop-inside{width: 47%;}
|
527 |
+
#bp-media-upload-ui #bp-media-album-prompt{width: 46%;}
|
528 |
+
}
|
529 |
+
@media (min-width: 481px) and (max-width: 525px) {
|
530 |
+
li #bp-media-album-in, .albums li #bp-media-album-or{margin: 15px auto;}
|
531 |
+
li #bp-media-upload-ui .drag-drop-inside p.drag-drop-info{font-size: 17px;}
|
532 |
+
li #bp-media-upload-ui .drag-drop-buttons input{padding: 3px 8px;}
|
533 |
+
}
|
534 |
+
@media (max-width: 480px) {
|
535 |
+
#item-body ul.bp-media-gallery li{width: 48%;}
|
536 |
+
li #bp-media-upload-ui{max-width: 170px;}
|
537 |
+
ul.bp-media-gallery li img,li #bp-media-upload-ui #drag-drop-area{max-width: 170px;width: 100%;}
|
538 |
+
li #bp-media-upload-ui #drag-drop-area{max-width: 162px;padding: 20px 0;}
|
539 |
+
#bp-media-upload-ui .drag-drop-area{padding: 23px 0 10px;}
|
540 |
+
/* li #bp-media-upload-ui .drag-drop-inside{margin: 0 auto 23px;}*/
|
541 |
+
}
|
542 |
+
@media (max-width: 379px) {
|
543 |
+
#bp-media-upload-ui{min-height: 190px;}
|
544 |
+
#item-body ul.bp-media-gallery li{width: 95%;}
|
545 |
+
#bp-media-upload-ui .drag-drop-inside{float: none;width: 100%;}
|
546 |
+
#bp-media-album-in{float: none;}
|
547 |
+
#bp-media-upload-ui #bp-media-album-prompt{margin: 15px auto 15px;float: none;width: 100%}
|
548 |
+
#bp-media-upload-ui .drag-drop-inside p,#bp-media-album-prompt #bp_media_album_new{margin-bottom: 5px;}
|
549 |
+
}
|
550 |
+
|
551 |
+
|
552 |
+
|
553 |
+
|
554 |
+
/*------ custom CSS ------*/
|
555 |
+
/* line 5, ../sass/admin.scss */
|
556 |
+
.clearfix {
|
557 |
+
overflow: hidden;
|
558 |
+
*zoom: 1;
|
559 |
+
}
|
560 |
+
|
561 |
+
/* line 9, ../sass/admin.scss */
|
562 |
+
.pull-right {
|
563 |
+
float: right;
|
564 |
+
}
|
565 |
+
|
566 |
+
/* line 13, ../sass/admin.scss */
|
567 |
+
.pull-left {
|
568 |
+
float: left;
|
569 |
+
}
|
570 |
+
|
571 |
+
/* line 17, ../sass/admin.scss */
|
572 |
+
.inline {
|
573 |
+
display: inline;
|
574 |
+
}
|
575 |
+
|
576 |
+
/* line 21, ../sass/admin.scss */
|
577 |
+
.entity {
|
578 |
+
min-height: 25px !important;
|
579 |
+
}
|
580 |
+
|
581 |
+
/* line 25, ../sass/admin.scss */
|
582 |
+
.section {
|
583 |
+
margin-top: 5px !important;
|
584 |
+
margin-bottom: 5px !important;
|
585 |
+
}
|
586 |
+
|
587 |
+
/* line 32, ../sass/admin.scss */
|
588 |
+
.rt-table div.rt-header {
|
589 |
+
border-bottom-color: #F3F3F3;
|
590 |
+
border-bottom-width: 1px;
|
591 |
+
border-bottom-style: solid;
|
592 |
+
margin-bottom: 5px !important;
|
593 |
+
padding-bottom: 5px !important;
|
594 |
+
}
|
595 |
+
/* line 39, ../sass/admin.scss */
|
596 |
+
.rt-table div.rt-header h4 {
|
597 |
+
margin: 0;
|
598 |
+
}
|
599 |
+
/* line 44, ../sass/admin.scss */
|
600 |
+
.rt-table div.row {
|
601 |
+
margin: 2px;
|
602 |
+
padding: 2px;
|
603 |
+
}
|
604 |
+
/* line 48, ../sass/admin.scss */
|
605 |
+
.rt-table div.row.rt-odd {
|
606 |
+
background-color: #F3F3F3;
|
607 |
+
}
|
608 |
+
/* line 52, ../sass/admin.scss */
|
609 |
+
.rt-table div.row.rt-even {
|
610 |
+
background-color: #FFFFFF;
|
611 |
+
}
|
612 |
+
|
613 |
+
/* line 58, ../sass/admin.scss */
|
614 |
+
abbr {
|
615 |
+
border-bottom: dotted 1px;
|
616 |
+
}
|
617 |
+
|
618 |
+
/* line 62, ../sass/admin.scss */
|
619 |
+
.rt-description {
|
620 |
+
color: #666666;
|
621 |
+
font-style: italic;
|
622 |
+
}
|
623 |
+
|
624 |
+
/* line 69, ../sass/admin.scss */
|
625 |
+
.bpm-wp-button .bpm-wp-icon {
|
626 |
+
background-image: url(../img/wpmini-grey.png);
|
627 |
+
width: 20px;
|
628 |
+
height: 24px;
|
629 |
+
font-size: 14px;
|
630 |
+
background-repeat: no-repeat;
|
631 |
+
padding: 0 6px;
|
632 |
+
}
|
633 |
+
|
634 |
+
#rtprogressbar {
|
635 |
+
background-color: #444;
|
636 |
+
border-radius: 13px;
|
637 |
+
padding: 3px;
|
638 |
+
margin-bottom: 10px;
|
639 |
+
}
|
640 |
+
|
641 |
+
#rtprogressbar div {
|
642 |
+
background-color: #fb6003;
|
643 |
+
width: 0;
|
644 |
+
height: 20px;
|
645 |
+
border-radius: 10px;
|
646 |
+
}
|
647 |
+
|
648 |
+
#rtmedia_dashboard_widget p .sub{
|
649 |
+
padding: 0px;
|
650 |
+
margin : 0px;
|
651 |
+
color: #8F8F8F;
|
652 |
+
font-size: 14px
|
653 |
+
}
|
654 |
+
|
655 |
+
.rtmedia-admin-ad{
|
656 |
+
padding: 3px;
|
657 |
+
}
|
658 |
+
.rtmedia-admin-ad img{
|
659 |
+
text-align: center;
|
660 |
+
}
|
trunk/app/assets/css/bootstrap-switch.css
ADDED
@@ -0,0 +1,184 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/* line 9, ../sass/bootstrap-switch.scss */
|
2 |
+
.fui-cross,
|
3 |
+
.fui-check {
|
4 |
+
display: inline-block;
|
5 |
+
speak: none;
|
6 |
+
font-style: normal;
|
7 |
+
font-weight: normal;
|
8 |
+
font-variant: normal;
|
9 |
+
text-transform: none;
|
10 |
+
-webkit-font-smoothing: antialiased;
|
11 |
+
}
|
12 |
+
|
13 |
+
/* line 18, ../sass/bootstrap-switch.scss */
|
14 |
+
.fui-cross:before {
|
15 |
+
content: "\2716";
|
16 |
+
}
|
17 |
+
|
18 |
+
/* line 21, ../sass/bootstrap-switch.scss */
|
19 |
+
.fui-check:before {
|
20 |
+
content: "\2714";
|
21 |
+
}
|
22 |
+
|
23 |
+
/* Switch checkbox */
|
24 |
+
/* line 44, ../sass/bootstrap-switch.scss */
|
25 |
+
.has-switch {
|
26 |
+
border-radius: 30px;
|
27 |
+
display: inline-block;
|
28 |
+
cursor: pointer;
|
29 |
+
line-height: 1.231;
|
30 |
+
overflow: hidden;
|
31 |
+
position: relative;
|
32 |
+
text-align: left;
|
33 |
+
width: 55px;
|
34 |
+
height: 20px;
|
35 |
+
-webkit-mask: url("../img/mask.png") 0 0 no-repeat;
|
36 |
+
mask: url("../img/mask.png") 0 0 no-repeat;
|
37 |
+
-webkit-user-select: none;
|
38 |
+
-moz-user-select: none;
|
39 |
+
user-select: none;
|
40 |
+
}
|
41 |
+
/* line 58, ../sass/bootstrap-switch.scss */
|
42 |
+
.has-switch.deactivate {
|
43 |
+
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=5000);
|
44 |
+
opacity: 50;
|
45 |
+
cursor: default !important;
|
46 |
+
}
|
47 |
+
/* line 61, ../sass/bootstrap-switch.scss */
|
48 |
+
.has-switch.deactivate label, .has-switch.deactivate span {
|
49 |
+
cursor: default !important;
|
50 |
+
}
|
51 |
+
/* line 66, ../sass/bootstrap-switch.scss */
|
52 |
+
.has-switch > div {
|
53 |
+
width: 162%;
|
54 |
+
position: relative;
|
55 |
+
top: 0;
|
56 |
+
}
|
57 |
+
/* line 71, ../sass/bootstrap-switch.scss */
|
58 |
+
.has-switch > div.switch-animate {
|
59 |
+
-webkit-transition: left 0.25s ease-out;
|
60 |
+
-moz-transition: left 0.25s ease-out;
|
61 |
+
-o-transition: left 0.25s ease-out;
|
62 |
+
transition: left 0.25s ease-out;
|
63 |
+
}
|
64 |
+
/* line 75, ../sass/bootstrap-switch.scss */
|
65 |
+
.has-switch > div.switch-off {
|
66 |
+
left: -63%;
|
67 |
+
}
|
68 |
+
/* line 78, ../sass/bootstrap-switch.scss */
|
69 |
+
.has-switch > div.switch-off label {
|
70 |
+
background-color: #2a95c5;
|
71 |
+
border-color: #bdc3c7;
|
72 |
+
-webkit-box-shadow: -1px 0 0 rgba(255, 255, 255, 0.5);
|
73 |
+
-moz-box-shadow: -1px 0 0 rgba(255, 255, 255, 0.5);
|
74 |
+
box-shadow: -1px 0 0 rgba(255, 255, 255, 0.5);
|
75 |
+
}
|
76 |
+
/* line 85, ../sass/bootstrap-switch.scss */
|
77 |
+
.has-switch > div.switch-on {
|
78 |
+
left: 0%;
|
79 |
+
}
|
80 |
+
/* line 88, ../sass/bootstrap-switch.scss */
|
81 |
+
.has-switch > div.switch-on label {
|
82 |
+
background-color: #bdc3c7;
|
83 |
+
}
|
84 |
+
/* line 94, ../sass/bootstrap-switch.scss */
|
85 |
+
.has-switch input[type=checkbox] {
|
86 |
+
display: none;
|
87 |
+
}
|
88 |
+
/* line 98, ../sass/bootstrap-switch.scss */
|
89 |
+
.has-switch span {
|
90 |
+
cursor: pointer;
|
91 |
+
font-size: 10.71px;
|
92 |
+
font-weight: 700;
|
93 |
+
float: left;
|
94 |
+
height: 20px;
|
95 |
+
line-height: 19px;
|
96 |
+
margin: 0;
|
97 |
+
padding-top: 1px;
|
98 |
+
position: relative;
|
99 |
+
text-align: center;
|
100 |
+
width: 50%;
|
101 |
+
z-index: 1;
|
102 |
+
-webkit-box-sizing: border-box;
|
103 |
+
-moz-box-sizing: border-box;
|
104 |
+
box-sizing: border-box;
|
105 |
+
-webkit-transition: 0.25s ease-out;
|
106 |
+
-moz-transition: 0.25s ease-out;
|
107 |
+
-o-transition: 0.25s ease-out;
|
108 |
+
transition: 0.25s ease-out;
|
109 |
+
}
|
110 |
+
/* line 114, ../sass/bootstrap-switch.scss */
|
111 |
+
.has-switch span.switch-left {
|
112 |
+
border-radius: 30px 0 0 30px;
|
113 |
+
background-color: #2a95c5;
|
114 |
+
color: white;
|
115 |
+
border-left: 1px solid transparent;
|
116 |
+
}
|
117 |
+
/* line 121, ../sass/bootstrap-switch.scss */
|
118 |
+
.has-switch span.switch-right {
|
119 |
+
border-radius: 0 30px 30px 0;
|
120 |
+
background-color: #bdc3c7;
|
121 |
+
color: white;
|
122 |
+
text-indent: 7px;
|
123 |
+
}
|
124 |
+
/* line 127, ../sass/bootstrap-switch.scss */
|
125 |
+
.has-switch span.switch-right [class*="fui-"] {
|
126 |
+
text-indent: 0;
|
127 |
+
}
|
128 |
+
/* line 133, ../sass/bootstrap-switch.scss */
|
129 |
+
.has-switch label {
|
130 |
+
border: 4px solid #2a95c5;
|
131 |
+
border-radius: 50%;
|
132 |
+
float: left;
|
133 |
+
height: 12px;
|
134 |
+
margin: 0 -12px 0 -10px;
|
135 |
+
padding: 0;
|
136 |
+
position: relative;
|
137 |
+
vertical-align: middle;
|
138 |
+
width: 12px;
|
139 |
+
z-index: 100;
|
140 |
+
-webkit-transition: 0.25s ease-out;
|
141 |
+
-moz-transition: 0.25s ease-out;
|
142 |
+
-o-transition: 0.25s ease-out;
|
143 |
+
transition: 0.25s ease-out;
|
144 |
+
}
|
145 |
+
|
146 |
+
/* line 150, ../sass/bootstrap-switch.scss */
|
147 |
+
.switch-square {
|
148 |
+
border-radius: 6px;
|
149 |
+
-webkit-mask: url("../img/mask.png") 0 0 no-repeat;
|
150 |
+
mask: url("../img/mask.png") 0 0 no-repeat;
|
151 |
+
}
|
152 |
+
/* line 157, ../sass/bootstrap-switch.scss */
|
153 |
+
.switch-square > div.switch-off label {
|
154 |
+
border-color: #2a95c5;
|
155 |
+
border-radius: 6px 0 0 6px;
|
156 |
+
}
|
157 |
+
/* line 164, ../sass/bootstrap-switch.scss */
|
158 |
+
.switch-square span {
|
159 |
+
-webkit-transition: 0.25s ease-out;
|
160 |
+
-moz-transition: 0.25s ease-out;
|
161 |
+
-o-transition: 0.25s ease-out;
|
162 |
+
transition: 0.25s ease-out;
|
163 |
+
}
|
164 |
+
/* line 168, ../sass/bootstrap-switch.scss */
|
165 |
+
.switch-square span.switch-left {
|
166 |
+
border-radius: 6px 0 0 6px;
|
167 |
+
}
|
168 |
+
/* line 170, ../sass/bootstrap-switch.scss */
|
169 |
+
.switch-square span.switch-left [class*="fui-"] {
|
170 |
+
text-indent: -10px;
|
171 |
+
}
|
172 |
+
/* line 175, ../sass/bootstrap-switch.scss */
|
173 |
+
.switch-square span.switch-right {
|
174 |
+
border-radius: 0 6px 6px 0;
|
175 |
+
}
|
176 |
+
/* line 177, ../sass/bootstrap-switch.scss */
|
177 |
+
.switch-square span.switch-right [class*="fui-"] {
|
178 |
+
text-indent: 5px;
|
179 |
+
}
|
180 |
+
/* line 183, ../sass/bootstrap-switch.scss */
|
181 |
+
.switch-square label {
|
182 |
+
border-radius: 0 6px 6px 0;
|
183 |
+
border-color: #bdc3c7;
|
184 |
+
}
|
trunk/app/assets/css/font-awesome.min.css
ADDED
@@ -0,0 +1,24 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/*!
|
2 |
+
* Font Awesome 3.1.0
|
3 |
+
* the iconic font designed for Bootstrap
|
4 |
+
* -------------------------------------------------------
|
5 |
+
* The full suite of pictographic icons, examples, and documentation
|
6 |
+
* can be found at: http://fontawesome.io
|
7 |
+
*
|
8 |
+
* License
|
9 |
+
* -------------------------------------------------------
|
10 |
+
* - The Font Awesome font is licensed under the SIL Open Font License v1.1 -
|
11 |
+
* http://scripts.sil.org/OFL
|
12 |
+
* - Font Awesome CSS, LESS, and SASS files are licensed under the MIT License -
|
13 |
+
* http://opensource.org/licenses/mit-license.html
|
14 |
+
* - Font Awesome documentation licensed under CC BY 3.0 License -
|
15 |
+
* http://creativecommons.org/licenses/by/3.0/
|
16 |
+
* - Attribution is no longer required in Font Awesome 3.0, but much appreciated:
|
17 |
+
* "Font Awesome by Dave Gandy - http://fontawesome.io"
|
18 |
+
|
19 |
+
* Contact
|
20 |
+
* -------------------------------------------------------
|
21 |
+
* Email: dave@fontawesome.io
|
22 |
+
* Twitter: http://twitter.com/fortaweso_me
|
23 |
+
* Work: Lead Product Designer @ http://kyruus.com
|
24 |
+
*/@font-face{font-family:'FontAwesome';src:url('../font/fontawesome-webfont.eot?v=3.1.0');src:url('../font/fontawesome-webfont.eot?#iefix&v=3.1.0') format('embedded-opentype'),url('../font/fontawesome-webfont.woff?v=3.1.0') format('woff'),url('../font/fontawesome-webfont.ttf?v=3.1.0') format('truetype'),url('../font/fontawesome-webfont.svg#fontawesomeregular?v=3.1.0') format('svg');font-weight:normal;font-style:normal}[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em}[class^="icon-"]:before,[class*=" icon-"]:before{text-decoration:inherit;display:inline-block;speak:none}.icon-large:before{vertical-align:-10%;font-size:1.3333333333333333em}a [class^="icon-"],a [class*=" icon-"],a [class^="icon-"]:before,a [class*=" icon-"]:before{display:inline}[class^="icon-"].icon-fixed-width,[class*=" icon-"].icon-fixed-width{display:inline-block;width:1.2857142857142858em;text-align:center}[class^="icon-"].icon-fixed-width.icon-large,[class*=" icon-"].icon-fixed-width.icon-large{width:1.5714285714285714em}ul.icons-ul{list-style-type:none;text-indent:-0.7142857142857143em;margin-left:2.142857142857143em}ul.icons-ul>li .icon-li{width:.7142857142857143em;display:inline-block;text-align:center}[class^="icon-"].hide,[class*=" icon-"].hide{display:none}.icon-muted{color:#eee}.icon-light{color:#fff}.icon-dark{color:#333}.icon-border{border:solid 1px #eee;padding:.2em .25em .15em;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.icon-2x{font-size:2em}.icon-2x.icon-border{border-width:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.icon-3x{font-size:3em}.icon-3x.icon-border{border-width:3px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.icon-4x{font-size:4em}.icon-4x.icon-border{border-width:4px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.icon-5x{font-size:5em}.icon-5x.icon-border{border-width:5px;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px}.pull-right{float:right}.pull-left{float:left}[class^="icon-"].pull-left,[class*=" icon-"].pull-left{margin-right:.3em}[class^="icon-"].pull-right,[class*=" icon-"].pull-right{margin-left:.3em}[class^="icon-"],[class*=" icon-"]{display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0 0;background-repeat:repeat;margin-top:0}.icon-white,.nav-pills>.active>a>[class^="icon-"],.nav-pills>.active>a>[class*=" icon-"],.nav-list>.active>a>[class^="icon-"],.nav-list>.active>a>[class*=" icon-"],.navbar-inverse .nav>.active>a>[class^="icon-"],.navbar-inverse .nav>.active>a>[class*=" icon-"],.dropdown-menu>li>a:hover>[class^="icon-"],.dropdown-menu>li>a:hover>[class*=" icon-"],.dropdown-menu>.active>a>[class^="icon-"],.dropdown-menu>.active>a>[class*=" icon-"],.dropdown-submenu:hover>a>[class^="icon-"],.dropdown-submenu:hover>a>[class*=" icon-"]{background-image:none}.btn [class^="icon-"].icon-large,.nav [class^="icon-"].icon-large,.btn [class*=" icon-"].icon-large,.nav [class*=" icon-"].icon-large{line-height:.9em}.btn [class^="icon-"].icon-spin,.nav [class^="icon-"].icon-spin,.btn [class*=" icon-"].icon-spin,.nav [class*=" icon-"].icon-spin{display:inline-block}.nav-tabs [class^="icon-"],.nav-pills [class^="icon-"],.nav-tabs [class*=" icon-"],.nav-pills [class*=" icon-"],.nav-tabs [class^="icon-"].icon-large,.nav-pills [class^="icon-"].icon-large,.nav-tabs [class*=" icon-"].icon-large,.nav-pills [class*=" icon-"].icon-large{line-height:.9em}.btn [class^="icon-"].pull-left.icon-2x,.btn [class*=" icon-"].pull-left.icon-2x,.btn [class^="icon-"].pull-right.icon-2x,.btn [class*=" icon-"].pull-right.icon-2x{margin-top:.18em}.btn [class^="icon-"].icon-spin.icon-large,.btn [class*=" icon-"].icon-spin.icon-large{line-height:.8em}.btn.btn-small [class^="icon-"].pull-left.icon-2x,.btn.btn-small [class*=" icon-"].pull-left.icon-2x,.btn.btn-small [class^="icon-"].pull-right.icon-2x,.btn.btn-small [class*=" icon-"].pull-right.icon-2x{margin-top:.25em}.btn.btn-large [class^="icon-"],.btn.btn-large [class*=" icon-"]{margin-top:0}.btn.btn-large [class^="icon-"].pull-left.icon-2x,.btn.btn-large [class*=" icon-"].pull-left.icon-2x,.btn.btn-large [class^="icon-"].pull-right.icon-2x,.btn.btn-large [class*=" icon-"].pull-right.icon-2x{margin-top:.05em}.btn.btn-large [class^="icon-"].pull-left.icon-2x,.btn.btn-large [class*=" icon-"].pull-left.icon-2x{margin-right:.2em}.btn.btn-large [class^="icon-"].pull-right.icon-2x,.btn.btn-large [class*=" icon-"].pull-right.icon-2x{margin-left:.2em}.icon-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:-35%}.icon-stack [class^="icon-"],.icon-stack [class*=" icon-"]{display:block;text-align:center;position:absolute;width:100%;height:100%;font-size:1em;line-height:inherit;*line-height:2em}.icon-stack .icon-stack-base{font-size:2em;*line-height:1em}.icon-spin{display:inline-block;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0%{-ms-transform:rotate(0deg)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.icon-rotate-90:before{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}.icon-rotate-180:before{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2)}.icon-rotate-270:before{-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.icon-flip-horizontal:before{-webkit-transform:scale(-1,1);-moz-transform:scale(-1,1);-ms-transform:scale(-1,1);-o-transform:scale(-1,1);transform:scale(-1,1)}.icon-flip-vertical:before{-webkit-transform:scale(1,-1);-moz-transform:scale(1,-1);-ms-transform:scale(1,-1);-o-transform:scale(1,-1);transform:scale(1,-1)}.icon-glass:before{content:"\f000"}.icon-music:before{content:"\f001"}.icon-search:before{content:"\f002"}.icon-envelope:before{content:"\f003"}.icon-heart:before{content:"\f004"}.icon-star:before{content:"\f005"}.icon-star-empty:before{content:"\f006"}.icon-user:before{content:"\f007"}.icon-film:before{content:"\f008"}.icon-th-large:before{content:"\f009"}.icon-th:before{content:"\f00a"}.icon-th-list:before{content:"\f00b"}.icon-ok:before{content:"\f00c"}.icon-remove:before{content:"\f00d"}.icon-zoom-in:before{content:"\f00e"}.icon-zoom-out:before{content:"\f010"}.icon-off:before{content:"\f011"}.icon-signal:before{content:"\f012"}.icon-cog:before{content:"\f013"}.icon-trash:before{content:"\f014"}.icon-home:before{content:"\f015"}.icon-file:before{content:"\f016"}.icon-time:before{content:"\f017"}.icon-road:before{content:"\f018"}.icon-download-alt:before{content:"\f019"}.icon-download:before{content:"\f01a"}.icon-upload:before{content:"\f01b"}.icon-inbox:before{content:"\f01c"}.icon-play-circle:before{content:"\f01d"}.icon-repeat:before,.icon-rotate-right:before{content:"\f01e"}.icon-refresh:before{content:"\f021"}.icon-list-alt:before{content:"\f022"}.icon-lock:before{content:"\f023"}.icon-flag:before{content:"\f024"}.icon-headphones:before{content:"\f025"}.icon-volume-off:before{content:"\f026"}.icon-volume-down:before{content:"\f027"}.icon-volume-up:before{content:"\f028"}.icon-qrcode:before{content:"\f029"}.icon-barcode:before{content:"\f02a"}.icon-tag:before{content:"\f02b"}.icon-tags:before{content:"\f02c"}.icon-book:before{content:"\f02d"}.icon-bookmark:before{content:"\f02e"}.icon-print:before{content:"\f02f"}.icon-camera:before{content:"\f030"}.icon-font:before{content:"\f031"}.icon-bold:before{content:"\f032"}.icon-italic:before{content:"\f033"}.icon-text-height:before{content:"\f034"}.icon-text-width:before{content:"\f035"}.icon-align-left:before{content:"\f036"}.icon-align-center:before{content:"\f037"}.icon-align-right:before{content:"\f038"}.icon-align-justify:before{content:"\f039"}.icon-list:before{content:"\f03a"}.icon-indent-left:before{content:"\f03b"}.icon-indent-right:before{content:"\f03c"}.icon-facetime-video:before{content:"\f03d"}.icon-picture:before{content:"\f03e"}.icon-pencil:before{content:"\f040"}.icon-map-marker:before{content:"\f041"}.icon-adjust:before{content:"\f042"}.icon-tint:before{content:"\f043"}.icon-edit:before{content:"\f044"}.icon-share:before{content:"\f045"}.icon-check:before{content:"\f046"}.icon-move:before{content:"\f047"}.icon-step-backward:before{content:"\f048"}.icon-fast-backward:before{content:"\f049"}.icon-backward:before{content:"\f04a"}.icon-play:before{content:"\f04b"}.icon-pause:before{content:"\f04c"}.icon-stop:before{content:"\f04d"}.icon-forward:before{content:"\f04e"}.icon-fast-forward:before{content:"\f050"}.icon-step-forward:before{content:"\f051"}.icon-eject:before{content:"\f052"}.icon-chevron-left:before{content:"\f053"}.icon-chevron-right:before{content:"\f054"}.icon-plus-sign:before{content:"\f055"}.icon-minus-sign:before{content:"\f056"}.icon-remove-sign:before{content:"\f057"}.icon-ok-sign:before{content:"\f058"}.icon-question-sign:before{content:"\f059"}.icon-info-sign:before{content:"\f05a"}.icon-screenshot:before{content:"\f05b"}.icon-remove-circle:before{content:"\f05c"}.icon-ok-circle:before{content:"\f05d"}.icon-ban-circle:before{content:"\f05e"}.icon-arrow-left:before{content:"\f060"}.icon-arrow-right:before{content:"\f061"}.icon-arrow-up:before{content:"\f062"}.icon-arrow-down:before{content:"\f063"}.icon-share-alt:before,.icon-mail-forward:before{content:"\f064"}.icon-resize-full:before{content:"\f065"}.icon-resize-small:before{content:"\f066"}.icon-plus:before{content:"\f067"}.icon-minus:before{content:"\f068"}.icon-asterisk:before{content:"\f069"}.icon-exclamation-sign:before{content:"\f06a"}.icon-gift:before{content:"\f06b"}.icon-leaf:before{content:"\f06c"}.icon-fire:before{content:"\f06d"}.icon-eye-open:before{content:"\f06e"}.icon-eye-close:before{content:"\f070"}.icon-warning-sign:before{content:"\f071"}.icon-plane:before{content:"\f072"}.icon-calendar:before{content:"\f073"}.icon-random:before{content:"\f074"}.icon-comment:before{content:"\f075"}.icon-magnet:before{content:"\f076"}.icon-chevron-up:before{content:"\f077"}.icon-chevron-down:before{content:"\f078"}.icon-retweet:before{content:"\f079"}.icon-shopping-cart:before{content:"\f07a"}.icon-folder-close:before{content:"\f07b"}.icon-folder-open:before{content:"\f07c"}.icon-resize-vertical:before{content:"\f07d"}.icon-resize-horizontal:before{content:"\f07e"}.icon-bar-chart:before{content:"\f080"}.icon-twitter-sign:before{content:"\f081"}.icon-facebook-sign:before{content:"\f082"}.icon-camera-retro:before{content:"\f083"}.icon-key:before{content:"\f084"}.icon-cogs:before{content:"\f085"}.icon-comments:before{content:"\f086"}.icon-thumbs-up:before{content:"\f087"}.icon-thumbs-down:before{content:"\f088"}.icon-star-half:before{content:"\f089"}.icon-heart-empty:before{content:"\f08a"}.icon-signout:before{content:"\f08b"}.icon-linkedin-sign:before{content:"\f08c"}.icon-pushpin:before{content:"\f08d"}.icon-external-link:before{content:"\f08e"}.icon-signin:before{content:"\f090"}.icon-trophy:before{content:"\f091"}.icon-github-sign:before{content:"\f092"}.icon-upload-alt:before{content:"\f093"}.icon-lemon:before{content:"\f094"}.icon-phone:before{content:"\f095"}.icon-check-empty:before{content:"\f096"}.icon-bookmark-empty:before{content:"\f097"}.icon-phone-sign:before{content:"\f098"}.icon-twitter:before{content:"\f099"}.icon-facebook:before{content:"\f09a"}.icon-github:before{content:"\f09b"}.icon-unlock:before{content:"\f09c"}.icon-credit-card:before{content:"\f09d"}.icon-rss:before{content:"\f09e"}.icon-hdd:before{content:"\f0a0"}.icon-bullhorn:before{content:"\f0a1"}.icon-bell:before{content:"\f0a2"}.icon-certificate:before{content:"\f0a3"}.icon-hand-right:before{content:"\f0a4"}.icon-hand-left:before{content:"\f0a5"}.icon-hand-up:before{content:"\f0a6"}.icon-hand-down:before{content:"\f0a7"}.icon-circle-arrow-left:before{content:"\f0a8"}.icon-circle-arrow-right:before{content:"\f0a9"}.icon-circle-arrow-up:before{content:"\f0aa"}.icon-circle-arrow-down:before{content:"\f0ab"}.icon-globe:before{content:"\f0ac"}.icon-wrench:before{content:"\f0ad"}.icon-tasks:before{content:"\f0ae"}.icon-filter:before{content:"\f0b0"}.icon-briefcase:before{content:"\f0b1"}.icon-fullscreen:before{content:"\f0b2"}.icon-group:before{content:"\f0c0"}.icon-link:before{content:"\f0c1"}.icon-cloud:before{content:"\f0c2"}.icon-beaker:before{content:"\f0c3"}.icon-cut:before{content:"\f0c4"}.icon-copy:before{content:"\f0c5"}.icon-paper-clip:before{content:"\f0c6"}.icon-save:before{content:"\f0c7"}.icon-sign-blank:before{content:"\f0c8"}.icon-reorder:before{content:"\f0c9"}.icon-list-ul:before{content:"\f0ca"}.icon-list-ol:before{content:"\f0cb"}.icon-strikethrough:before{content:"\f0cc"}.icon-underline:before{content:"\f0cd"}.icon-table:before{content:"\f0ce"}.icon-magic:before{content:"\f0d0"}.icon-truck:before{content:"\f0d1"}.icon-pinterest:before{content:"\f0d2"}.icon-pinterest-sign:before{content:"\f0d3"}.icon-google-plus-sign:before{content:"\f0d4"}.icon-google-plus:before{content:"\f0d5"}.icon-money:before{content:"\f0d6"}.icon-caret-down:before{content:"\f0d7"}.icon-caret-up:before{content:"\f0d8"}.icon-caret-left:before{content:"\f0d9"}.icon-caret-right:before{content:"\f0da"}.icon-columns:before{content:"\f0db"}.icon-sort:before{content:"\f0dc"}.icon-sort-down:before{content:"\f0dd"}.icon-sort-up:before{content:"\f0de"}.icon-envelope-alt:before{content:"\f0e0"}.icon-linkedin:before{content:"\f0e1"}.icon-undo:before,.icon-rotate-left:before{content:"\f0e2"}.icon-legal:before{content:"\f0e3"}.icon-dashboard:before{content:"\f0e4"}.icon-comment-alt:before{content:"\f0e5"}.icon-comments-alt:before{content:"\f0e6"}.icon-bolt:before{content:"\f0e7"}.icon-sitemap:before{content:"\f0e8"}.icon-umbrella:before{content:"\f0e9"}.icon-paste:before{content:"\f0ea"}.icon-lightbulb:before{content:"\f0eb"}.icon-exchange:before{content:"\f0ec"}.icon-cloud-download:before{content:"\f0ed"}.icon-cloud-upload:before{content:"\f0ee"}.icon-user-md:before{content:"\f0f0"}.icon-stethoscope:before{content:"\f0f1"}.icon-suitcase:before{content:"\f0f2"}.icon-bell-alt:before{content:"\f0f3"}.icon-coffee:before{content:"\f0f4"}.icon-food:before{content:"\f0f5"}.icon-file-alt:before{content:"\f0f6"}.icon-building:before{content:"\f0f7"}.icon-hospital:before{content:"\f0f8"}.icon-ambulance:before{content:"\f0f9"}.icon-medkit:before{content:"\f0fa"}.icon-fighter-jet:before{content:"\f0fb"}.icon-beer:before{content:"\f0fc"}.icon-h-sign:before{content:"\f0fd"}.icon-plus-sign-alt:before{content:"\f0fe"}.icon-double-angle-left:before{content:"\f100"}.icon-double-angle-right:before{content:"\f101"}.icon-double-angle-up:before{content:"\f102"}.icon-double-angle-down:before{content:"\f103"}.icon-angle-left:before{content:"\f104"}.icon-angle-right:before{content:"\f105"}.icon-angle-up:before{content:"\f106"}.icon-angle-down:before{content:"\f107"}.icon-desktop:before{content:"\f108"}.icon-laptop:before{content:"\f109"}.icon-tablet:before{content:"\f10a"}.icon-mobile-phone:before{content:"\f10b"}.icon-circle-blank:before{content:"\f10c"}.icon-quote-left:before{content:"\f10d"}.icon-quote-right:before{content:"\f10e"}.icon-spinner:before{content:"\f110"}.icon-circle:before{content:"\f111"}.icon-reply:before,.icon-mail-reply:before{content:"\f112"}.icon-folder-close-alt:before{content:"\f114"}.icon-folder-open-alt:before{content:"\f115"}.icon-expand-alt:before{content:"\f116"}.icon-collapse-alt:before{content:"\f117"}.icon-smile:before{content:"\f118"}.icon-frown:before{content:"\f119"}.icon-meh:before{content:"\f11a"}.icon-gamepad:before{content:"\f11b"}.icon-keyboard:before{content:"\f11c"}.icon-flag-alt:before{content:"\f11d"}.icon-flag-checkered:before{content:"\f11e"}.icon-terminal:before{content:"\f120"}.icon-code:before{content:"\f121"}.icon-reply-all:before{content:"\f122"}.icon-mail-reply-all:before{content:"\f122"}.icon-star-half-full:before,.icon-star-half-empty:before{content:"\f123"}.icon-location-arrow:before{content:"\f124"}.icon-crop:before{content:"\f125"}.icon-code-fork:before{content:"\f126"}.icon-unlink:before{content:"\f127"}.icon-question:before{content:"\f128"}.icon-info:before{content:"\f129"}.icon-exclamation:before{content:"\f12a"}.icon-superscript:before{content:"\f12b"}.icon-subscript:before{content:"\f12c"}.icon-eraser:before{content:"\f12d"}.icon-puzzle-piece:before{content:"\f12e"}.icon-microphone:before{content:"\f130"}.icon-microphone-off:before{content:"\f131"}.icon-shield:before{content:"\f132"}.icon-calendar-empty:before{content:"\f133"}.icon-fire-extinguisher:before{content:"\f134"}.icon-rocket:before{content:"\f135"}.icon-maxcdn:before{content:"\f136"}.icon-chevron-sign-left:before{content:"\f137"}.icon-chevron-sign-right:before{content:"\f138"}.icon-chevron-sign-up:before{content:"\f139"}.icon-chevron-sign-down:before{content:"\f13a"}.icon-html5:before{content:"\f13b"}.icon-css3:before{content:"\f13c"}.icon-anchor:before{content:"\f13d"}.icon-unlock-alt:before{content:"\f13e"}.icon-bullseye:before{content:"\f140"}.icon-ellipsis-horizontal:before{content:"\f141"}.icon-ellipsis-vertical:before{content:"\f142"}.icon-rss-sign:before{content:"\f143"}.icon-play-sign:before{content:"\f144"}.icon-ticket:before{content:"\f145"}.icon-minus-sign-alt:before{content:"\f146"}.icon-check-minus:before{content:"\f147"}.icon-level-up:before{content:"\f148"}.icon-level-down:before{content:"\f149"}.icon-check-sign:before{content:"\f14a"}.icon-edit-sign:before{content:"\f14b"}.icon-external-link-sign:before{content:"\f14c"}.icon-share-sign:before{content:"\f14d"}
|
trunk/app/assets/css/grid-foundation.css
ADDED
@@ -0,0 +1,217 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/* Grid HTML Classes */
|
2 |
+
/* line 116, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
3 |
+
.row {
|
4 |
+
width: 100%;
|
5 |
+
margin-left: auto;
|
6 |
+
margin-right: auto;
|
7 |
+
margin-top: 0;
|
8 |
+
margin-bottom: 0;
|
9 |
+
max-width: 62.5em;
|
10 |
+
*zoom: 1;
|
11 |
+
}
|
12 |
+
/* line 101, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_global.scss */
|
13 |
+
.row:before, .row:after {
|
14 |
+
content: " ";
|
15 |
+
display: table;
|
16 |
+
}
|
17 |
+
/* line 102, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_global.scss */
|
18 |
+
.row:after {
|
19 |
+
clear: both;
|
20 |
+
}
|
21 |
+
/* line 121, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
22 |
+
.row.collapse .column,
|
23 |
+
.row.collapse .columns {
|
24 |
+
position: relative;
|
25 |
+
padding-left: 0;
|
26 |
+
padding-right: 0;
|
27 |
+
float: left;
|
28 |
+
}
|
29 |
+
|
30 |
+
/* line 130, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
31 |
+
.column,
|
32 |
+
.columns {
|
33 |
+
position: relative;
|
34 |
+
padding-left: 0.9375em;
|
35 |
+
padding-right: 0.9375em;
|
36 |
+
width: 100%;
|
37 |
+
float: left;
|
38 |
+
}
|
39 |
+
|
40 |
+
@media only screen {
|
41 |
+
/* line 135, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
42 |
+
.column,
|
43 |
+
.columns {
|
44 |
+
position: relative;
|
45 |
+
padding-left: 0.9375em;
|
46 |
+
padding-right: 0.9375em;
|
47 |
+
float: left;
|
48 |
+
}
|
49 |
+
|
50 |
+
/* line 149, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
51 |
+
.column.small-centered,
|
52 |
+
.columns.small-centered {
|
53 |
+
position: relative;
|
54 |
+
margin-left: auto;
|
55 |
+
margin-right: auto;
|
56 |
+
float: none !important;
|
57 |
+
}
|
58 |
+
}
|
59 |
+
/* Styles for screens that are atleast 768px; */
|
60 |
+
@media only screen and (min-width: 48em) {
|
61 |
+
/* line 156, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
62 |
+
.large-1 {
|
63 |
+
position: relative;
|
64 |
+
width: 8.33333%;
|
65 |
+
}
|
66 |
+
|
67 |
+
/* line 156, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
68 |
+
.large-2 {
|
69 |
+
position: relative;
|
70 |
+
width: 16.66667%;
|
71 |
+
}
|
72 |
+
|
73 |
+
/* line 156, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
74 |
+
.large-3 {
|
75 |
+
position: relative;
|
76 |
+
width: 25%;
|
77 |
+
}
|
78 |
+
|
79 |
+
/* line 156, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
80 |
+
.large-4 {
|
81 |
+
position: relative;
|
82 |
+
width: 33.33333%;
|
83 |
+
}
|
84 |
+
|
85 |
+
/* line 156, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
86 |
+
.large-5 {
|
87 |
+
position: relative;
|
88 |
+
width: 41.66667%;
|
89 |
+
}
|
90 |
+
|
91 |
+
/* line 156, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
92 |
+
.large-6 {
|
93 |
+
position: relative;
|
94 |
+
width: 50%;
|
95 |
+
}
|
96 |
+
|
97 |
+
/* line 156, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
98 |
+
.large-7 {
|
99 |
+
position: relative;
|
100 |
+
width: 58.33333%;
|
101 |
+
}
|
102 |
+
|
103 |
+
/* line 156, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
104 |
+
.large-8 {
|
105 |
+
position: relative;
|
106 |
+
width: 66.66667%;
|
107 |
+
}
|
108 |
+
|
109 |
+
/* line 156, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
110 |
+
.large-9 {
|
111 |
+
position: relative;
|
112 |
+
width: 75%;
|
113 |
+
}
|
114 |
+
|
115 |
+
/* line 156, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
116 |
+
.large-10 {
|
117 |
+
position: relative;
|
118 |
+
width: 83.33333%;
|
119 |
+
}
|
120 |
+
|
121 |
+
/* line 156, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
122 |
+
.large-11 {
|
123 |
+
position: relative;
|
124 |
+
width: 91.66667%;
|
125 |
+
}
|
126 |
+
|
127 |
+
/* line 156, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
128 |
+
.large-12 {
|
129 |
+
position: relative;
|
130 |
+
width: 100%;
|
131 |
+
}
|
132 |
+
|
133 |
+
/* line 160, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
134 |
+
.row .large-offset-1 {
|
135 |
+
position: relative;
|
136 |
+
margin-left: 8.33333%;
|
137 |
+
}
|
138 |
+
|
139 |
+
/* line 160, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
140 |
+
.row .large-offset-2 {
|
141 |
+
position: relative;
|
142 |
+
margin-left: 16.66667%;
|
143 |
+
}
|
144 |
+
|
145 |
+
/* line 160, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
146 |
+
.row .large-offset-3 {
|
147 |
+
position: relative;
|
148 |
+
margin-left: 25%;
|
149 |
+
}
|
150 |
+
|
151 |
+
/* line 160, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
152 |
+
.row .large-offset-4 {
|
153 |
+
position: relative;
|
154 |
+
margin-left: 33.33333%;
|
155 |
+
}
|
156 |
+
|
157 |
+
/* line 160, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
158 |
+
.row .large-offset-5 {
|
159 |
+
position: relative;
|
160 |
+
margin-left: 41.66667%;
|
161 |
+
}
|
162 |
+
|
163 |
+
/* line 160, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
164 |
+
.row .large-offset-6 {
|
165 |
+
position: relative;
|
166 |
+
margin-left: 50%;
|
167 |
+
}
|
168 |
+
|
169 |
+
/* line 160, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
170 |
+
.row .large-offset-7 {
|
171 |
+
position: relative;
|
172 |
+
margin-left: 58.33333%;
|
173 |
+
}
|
174 |
+
|
175 |
+
/* line 160, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
176 |
+
.row .large-offset-8 {
|
177 |
+
position: relative;
|
178 |
+
margin-left: 66.66667%;
|
179 |
+
}
|
180 |
+
|
181 |
+
/* line 160, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
182 |
+
.row .large-offset-9 {
|
183 |
+
position: relative;
|
184 |
+
margin-left: 75%;
|
185 |
+
}
|
186 |
+
|
187 |
+
/* line 160, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
188 |
+
.row .large-offset-10 {
|
189 |
+
position: relative;
|
190 |
+
margin-left: 83.33333%;
|
191 |
+
}
|
192 |
+
|
193 |
+
/* line 160, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
194 |
+
.row .large-offset-11 {
|
195 |
+
position: relative;
|
196 |
+
margin-left: 91.66667%;
|
197 |
+
}
|
198 |
+
|
199 |
+
|
200 |
+
|
201 |
+
/* line 174, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
202 |
+
.column.large-centered,
|
203 |
+
.columns.large-centered {
|
204 |
+
position: relative;
|
205 |
+
margin-left: auto;
|
206 |
+
margin-right: auto;
|
207 |
+
float: none !important;
|
208 |
+
}
|
209 |
+
|
210 |
+
/* line 177, ../../../../../../../usr/lib/ruby/gems/1.8/gems/zurb-foundation-4.1.6/scss/foundation/components/_grid.scss */
|
211 |
+
.column.large-uncentered,
|
212 |
+
.columns.large-uncentered {
|
213 |
+
margin-left: 0;
|
214 |
+
margin-right: 0;
|
215 |
+
float: none;
|
216 |
+
}
|
217 |
+
}
|
trunk/app/assets/css/image-edit.css
ADDED
@@ -0,0 +1,701 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/*------------------------------------------------------------------------------
|
2 |
+
14.0 - Media Screen
|
3 |
+
------------------------------------------------------------------------------*/
|
4 |
+
|
5 |
+
.media-item .describe {
|
6 |
+
border-collapse: collapse;
|
7 |
+
width: 100%;
|
8 |
+
border-top-style: solid;
|
9 |
+
border-top-width: 1px;
|
10 |
+
clear: both;
|
11 |
+
cursor: default;
|
12 |
+
}
|
13 |
+
|
14 |
+
.media-item.media-blank .describe {
|
15 |
+
border: 0;
|
16 |
+
}
|
17 |
+
|
18 |
+
.media-item .describe th {
|
19 |
+
vertical-align: top;
|
20 |
+
text-align: left;
|
21 |
+
padding: 5px 10px 10px;
|
22 |
+
width: 140px;
|
23 |
+
}
|
24 |
+
|
25 |
+
.media-item .describe .align th {
|
26 |
+
padding-top: 0;
|
27 |
+
}
|
28 |
+
|
29 |
+
.media-item .media-item-info tr {
|
30 |
+
background-color: transparent;
|
31 |
+
}
|
32 |
+
|
33 |
+
.media-item .describe td {
|
34 |
+
padding: 0 8px 8px 0;
|
35 |
+
vertical-align: top;
|
36 |
+
}
|
37 |
+
|
38 |
+
.media-item thead.media-item-info td {
|
39 |
+
padding: 4px 10px 0;
|
40 |
+
}
|
41 |
+
|
42 |
+
.media-item .media-item-info .A1B1 {
|
43 |
+
padding: 0 0 0 10px;
|
44 |
+
}
|
45 |
+
|
46 |
+
.media-item td.savesend {
|
47 |
+
padding-bottom: 15px;
|
48 |
+
}
|
49 |
+
|
50 |
+
.media-item .thumbnail {
|
51 |
+
max-height: 128px;
|
52 |
+
max-width: 128px;
|
53 |
+
}
|
54 |
+
|
55 |
+
#wpbody-content #async-upload-wrap a {
|
56 |
+
display: none;
|
57 |
+
}
|
58 |
+
|
59 |
+
.media-upload-form {
|
60 |
+
margin-top: 20px;
|
61 |
+
}
|
62 |
+
|
63 |
+
.media-upload-form td label {
|
64 |
+
margin-right: 6px;
|
65 |
+
margin-left: 2px;
|
66 |
+
}
|
67 |
+
|
68 |
+
.media-upload-form .align .field label {
|
69 |
+
display: inline;
|
70 |
+
padding: 0 0 0 23px;
|
71 |
+
margin: 0 1em 0 3px;
|
72 |
+
font-weight: bold;
|
73 |
+
}
|
74 |
+
|
75 |
+
.media-upload-form tr.image-size label {
|
76 |
+
margin: 0 0 0 5px;
|
77 |
+
font-weight: bold;
|
78 |
+
}
|
79 |
+
|
80 |
+
.media-upload-form th.label label {
|
81 |
+
font-weight: bold;
|
82 |
+
margin: 0.5em;
|
83 |
+
font-size: 13px;
|
84 |
+
}
|
85 |
+
|
86 |
+
.media-upload-form th.label label span {
|
87 |
+
padding: 0 5px;
|
88 |
+
}
|
89 |
+
|
90 |
+
abbr.required {
|
91 |
+
border: medium none;
|
92 |
+
text-decoration: none;
|
93 |
+
}
|
94 |
+
|
95 |
+
.media-item .describe input[type="text"],
|
96 |
+
.media-item .describe textarea {
|
97 |
+
width: 460px;
|
98 |
+
}
|
99 |
+
|
100 |
+
.media-item .describe p.help {
|
101 |
+
margin: 0;
|
102 |
+
padding: 0 0 0 5px;
|
103 |
+
}
|
104 |
+
|
105 |
+
.media-item .edit-attachment,
|
106 |
+
.describe-toggle-on,
|
107 |
+
.describe-toggle-off {
|
108 |
+
display: block;
|
109 |
+
line-height: 36px;
|
110 |
+
float: right;
|
111 |
+
margin-right: 15px;
|
112 |
+
}
|
113 |
+
|
114 |
+
.media-item .describe-toggle-off,
|
115 |
+
.media-item.open .describe-toggle-on {
|
116 |
+
display: none;
|
117 |
+
}
|
118 |
+
|
119 |
+
.media-item.open .describe-toggle-off {
|
120 |
+
display: block;
|
121 |
+
}
|
122 |
+
|
123 |
+
#media-items .media-item {
|
124 |
+
border-style: solid;
|
125 |
+
border-width: 1px;
|
126 |
+
min-height: 36px;
|
127 |
+
position: relative;
|
128 |
+
margin-top: -1px;
|
129 |
+
width: 100%;
|
130 |
+
}
|
131 |
+
|
132 |
+
#media-items {
|
133 |
+
width: 623px;
|
134 |
+
}
|
135 |
+
|
136 |
+
.media-new-php #media-items {
|
137 |
+
margin: 1em 0;
|
138 |
+
}
|
139 |
+
|
140 |
+
#media-items:empty {
|
141 |
+
border: 0 none;
|
142 |
+
}
|
143 |
+
|
144 |
+
.media-item .filename {
|
145 |
+
line-height: 36px;
|
146 |
+
overflow: hidden;
|
147 |
+
padding: 0 10px;
|
148 |
+
}
|
149 |
+
|
150 |
+
.media-item .error-div {
|
151 |
+
padding-left: 10px;
|
152 |
+
}
|
153 |
+
|
154 |
+
.media-item .pinkynail {
|
155 |
+
float: left;
|
156 |
+
margin: 2px 2px 0;
|
157 |
+
max-width: 40px;
|
158 |
+
max-height: 32px;
|
159 |
+
}
|
160 |
+
|
161 |
+
.media-item .startopen,
|
162 |
+
.media-item .startclosed {
|
163 |
+
display: none;
|
164 |
+
}
|
165 |
+
|
166 |
+
.media-item .original {
|
167 |
+
position: relative;
|
168 |
+
height: 34px;
|
169 |
+
}
|
170 |
+
|
171 |
+
.media-item .progress {
|
172 |
+
float: right;
|
173 |
+
height: 22px;
|
174 |
+
margin: 6px 10px 0 0;
|
175 |
+
width: 200px;
|
176 |
+
line-height: 2em;
|
177 |
+
padding: 0;
|
178 |
+
overflow: hidden;
|
179 |
+
margin-bottom: 2px;
|
180 |
+
border: 1px solid #d1d1d1;
|
181 |
+
background: #f7f7f7;
|
182 |
+
background-image: -webkit-gradient(linear, left bottom, left top, from(#fff), to(#f7f7f7));
|
183 |
+
background-image: -webkit-linear-gradient(bottom, #fff, #f7f7f7);
|
184 |
+
background-image: -moz-linear-gradient(bottom, #fff, #f7f7f7);
|
185 |
+
background-image: -o-linear-gradient(bottom, #fff, #f7f7f7);
|
186 |
+
background-image: linear-gradient(to top, #fff, #f7f7f7);
|
187 |
+
-webkit-border-radius: 3px;
|
188 |
+
border-radius: 3px;
|
189 |
+
-webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
|
190 |
+
box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
|
191 |
+
}
|
192 |
+
|
193 |
+
.media-item .bar {
|
194 |
+
z-index: 9;
|
195 |
+
width: 0;
|
196 |
+
height: 100%;
|
197 |
+
margin-top: -24px;
|
198 |
+
background-color: #8cc1e9;
|
199 |
+
background-image: -webkit-gradient(linear, left bottom, left top, from(#72a7cf), to(#8cc1e9));
|
200 |
+
background-image: -webkit-linear-gradient(bottom, #72a7cf, #8cc1e9);
|
201 |
+
background-image: -moz-linear-gradient(bottom, #72a7cf, #8cc1e9);
|
202 |
+
background-image: -o-linear-gradient(bottom, #72a7cf, #8cc1e9);
|
203 |
+
background-image: linear-gradient(to top, #72a7cf, #8cc1e9);
|
204 |
+
-webkit-border-radius: 3px;
|
205 |
+
border-radius: 3px;
|
206 |
+
-webkit-box-shadow: 0 0 3px rgba(0,0,0,0.3);
|
207 |
+
box-shadow: 0 0 3px rgba(0,0,0,0.3);
|
208 |
+
}
|
209 |
+
|
210 |
+
.media-item .progress .percent {
|
211 |
+
z-index: 10;
|
212 |
+
position: relative;
|
213 |
+
width: 200px;
|
214 |
+
padding: 0 8px;
|
215 |
+
text-shadow: 0 1px 0 rgba(255,255,255,0.4);
|
216 |
+
color: rgba(0,0,0,0.6);
|
217 |
+
}
|
218 |
+
|
219 |
+
.upload-php .fixed .column-parent {
|
220 |
+
width: 15%;
|
221 |
+
}
|
222 |
+
|
223 |
+
.js .html-uploader #plupload-upload-ui {
|
224 |
+
display: none;
|
225 |
+
}
|
226 |
+
|
227 |
+
.js .html-uploader #html-upload-ui {
|
228 |
+
display: block;
|
229 |
+
}
|
230 |
+
|
231 |
+
.media-upload-form .media-item.error {
|
232 |
+
margin: 0;
|
233 |
+
padding: 0;
|
234 |
+
}
|
235 |
+
|
236 |
+
.media-upload-form .media-item.error p,
|
237 |
+
.media-item .error-div {
|
238 |
+
line-height: 16px;
|
239 |
+
margin: 5px 10px;
|
240 |
+
padding: 0;
|
241 |
+
}
|
242 |
+
|
243 |
+
.media-item .error-div a.dismiss {
|
244 |
+
display: block;
|
245 |
+
float: right;
|
246 |
+
margin: 5px 4px 0 15px;
|
247 |
+
}
|
248 |
+
|
249 |
+
/*------------------------------------------------------------------------------
|
250 |
+
14.1 - Media Library
|
251 |
+
------------------------------------------------------------------------------*/
|
252 |
+
|
253 |
+
.find-box {
|
254 |
+
width: 600px;
|
255 |
+
height: 300px;
|
256 |
+
overflow: hidden;
|
257 |
+
padding: 33px 0 51px;
|
258 |
+
position: absolute;
|
259 |
+
z-index: 1000;
|
260 |
+
}
|
261 |
+
|
262 |
+
.find-box-head {
|
263 |
+
cursor: move;
|
264 |
+
font-weight: bold;
|
265 |
+
height: 2em;
|
266 |
+
line-height: 2em;
|
267 |
+
padding: 1px 12px;
|
268 |
+
position: absolute;
|
269 |
+
top: 5px;
|
270 |
+
width: 100%;
|
271 |
+
}
|
272 |
+
|
273 |
+
.find-box-inside {
|
274 |
+
overflow: auto;
|
275 |
+
padding: 6px;
|
276 |
+
height: 100%;
|
277 |
+
}
|
278 |
+
|
279 |
+
.find-box-search {
|
280 |
+
overflow: hidden;
|
281 |
+
padding: 9px;
|
282 |
+
position: relative;
|
283 |
+
}
|
284 |
+
|
285 |
+
.find-box-search .spinner {
|
286 |
+
float: none;
|
287 |
+
left: 125px;
|
288 |
+
position: absolute;
|
289 |
+
top: 9px;
|
290 |
+
}
|
291 |
+
|
292 |
+
#find-posts-input {
|
293 |
+
float: left;
|
294 |
+
width: 140px;
|
295 |
+
height: 24px;
|
296 |
+
}
|
297 |
+
|
298 |
+
#find-posts-search {
|
299 |
+
float: left;
|
300 |
+
margin: 1px 4px 0 3px;
|
301 |
+
}
|
302 |
+
|
303 |
+
#find-posts-response {
|
304 |
+
margin: 8px 0;
|
305 |
+
padding: 0 1px 6px;
|
306 |
+
}
|
307 |
+
|
308 |
+
#find-posts-response table {
|
309 |
+
width: 100%;
|
310 |
+
}
|
311 |
+
|
312 |
+
#find-posts-response .found-radio {
|
313 |
+
padding: 3px 0 0 8px;
|
314 |
+
width: 15px;
|
315 |
+
}
|
316 |
+
|
317 |
+
.find-box-buttons {
|
318 |
+
padding: 8px;
|
319 |
+
overflow: hidden;
|
320 |
+
}
|
321 |
+
|
322 |
+
.find-box #resize-se {
|
323 |
+
position: absolute;
|
324 |
+
right: 1px;
|
325 |
+
bottom: 1px;
|
326 |
+
}
|
327 |
+
|
328 |
+
.ui-find-overlay {
|
329 |
+
position: absolute;
|
330 |
+
top: 0;
|
331 |
+
left: 0;
|
332 |
+
background-color: #000;
|
333 |
+
opacity: 0.6;
|
334 |
+
filter: alpha(opacity=60);
|
335 |
+
}
|
336 |
+
|
337 |
+
ul#dismissed-updates {
|
338 |
+
display: none;
|
339 |
+
}
|
340 |
+
|
341 |
+
form.upgrade {
|
342 |
+
margin-top: 8px;
|
343 |
+
}
|
344 |
+
|
345 |
+
form.upgrade .hint {
|
346 |
+
font-style: italic;
|
347 |
+
font-size: 85%;
|
348 |
+
margin: -0.5em 0 2em 0;
|
349 |
+
}
|
350 |
+
|
351 |
+
#poststuff .inside .the-tagcloud {
|
352 |
+
margin: 5px 0 10px;
|
353 |
+
padding: 8px;
|
354 |
+
border-width: 1px;
|
355 |
+
border-style: solid;
|
356 |
+
line-height: 1.8em;
|
357 |
+
word-spacing: 3px;
|
358 |
+
-webkit-border-radius: 6px;
|
359 |
+
border-radius: 6px;
|
360 |
+
}
|
361 |
+
|
362 |
+
.drag-drop #drag-drop-area {
|
363 |
+
border: 4px dashed #DDDDDD;
|
364 |
+
height: 200px;
|
365 |
+
}
|
366 |
+
|
367 |
+
.drag-drop .drag-drop-inside {
|
368 |
+
margin: 70px auto 0;
|
369 |
+
width: 250px;
|
370 |
+
}
|
371 |
+
|
372 |
+
.drag-drop-inside p {
|
373 |
+
color: #aaa;
|
374 |
+
font-size: 14px;
|
375 |
+
margin: 5px 0;
|
376 |
+
display: none;
|
377 |
+
}
|
378 |
+
|
379 |
+
.drag-drop .drag-drop-inside p {
|
380 |
+
text-align: center;
|
381 |
+
}
|
382 |
+
|
383 |
+
.drag-drop-inside p.drag-drop-info {
|
384 |
+
font-size: 20px;
|
385 |
+
}
|
386 |
+
|
387 |
+
.drag-drop .drag-drop-inside p,
|
388 |
+
.drag-drop-inside p.drag-drop-buttons {
|
389 |
+
display: block;
|
390 |
+
}
|
391 |
+
|
392 |
+
/*
|
393 |
+
#drag-drop-area:-moz-drag-over {
|
394 |
+
border-color: #83b4d8;
|
395 |
+
}
|
396 |
+
borger color while dragging a file over the uploader drop area */
|
397 |
+
.drag-drop.drag-over #drag-drop-area {
|
398 |
+
border-color: #83b4d8;
|
399 |
+
}
|
400 |
+
|
401 |
+
#plupload-upload-ui {
|
402 |
+
position: relative;
|
403 |
+
}
|
404 |
+
|
405 |
+
/*------------------------------------------------------------------------------
|
406 |
+
14.2 - Image Editor
|
407 |
+
------------------------------------------------------------------------------*/
|
408 |
+
|
409 |
+
.describe .image-editor {
|
410 |
+
vertical-align: top;
|
411 |
+
}
|
412 |
+
|
413 |
+
.imgedit-wrap {
|
414 |
+
position: relative;
|
415 |
+
}
|
416 |
+
|
417 |
+
.imgedit-settings p {
|
418 |
+
margin: 8px 0;
|
419 |
+
}
|
420 |
+
|
421 |
+
.post-php .imgedit-wrap table {
|
422 |
+
width: 100%;
|
423 |
+
}
|
424 |
+
|
425 |
+
.describe .imgedit-wrap table td,
|
426 |
+
.wp_attachment_holder .imgedit-wrap table td {
|
427 |
+
vertical-align: top;
|
428 |
+
padding-top: 0;
|
429 |
+
}
|
430 |
+
|
431 |
+
.describe .imgedit-wrap table td.imgedit-settings {
|
432 |
+
padding: 0 5px;
|
433 |
+
}
|
434 |
+
|
435 |
+
.wp_attachment_holder .imgedit-wrap table td.imgedit-settings {
|
436 |
+
width: 250px;
|
437 |
+
}
|
438 |
+
|
439 |
+
td.imgedit-settings input {
|
440 |
+
margin-top: 0;
|
441 |
+
vertical-align: middle;
|
442 |
+
}
|
443 |
+
|
444 |
+
.imgedit-wait {
|
445 |
+
position: absolute;
|
446 |
+
top: 0;
|
447 |
+
background: #fff url(../../../../../../wp-admin/images/wpspin_light.gif) no-repeat scroll 22px 10px;
|
448 |
+
background-size: 16px 16px;
|
449 |
+
opacity: 0.7;
|
450 |
+
filter: alpha(opacity=70);
|
451 |
+
width: 100%;
|
452 |
+
height: 500px;
|
453 |
+
display: none;
|
454 |
+
}
|
455 |
+
|
456 |
+
.spinner {
|
457 |
+
background: url(../../../../../../wp-admin/images/wpspin_light.gif) no-repeat;
|
458 |
+
background-size: 16px 16px;
|
459 |
+
display: none;
|
460 |
+
float: right;
|
461 |
+
opacity: 0.7;
|
462 |
+
filter: alpha(opacity=70);
|
463 |
+
width: 16px;
|
464 |
+
height: 16px;
|
465 |
+
margin: 5px 5px 0;
|
466 |
+
}
|
467 |
+
|
468 |
+
.no-float {
|
469 |
+
float: none;
|
470 |
+
}
|
471 |
+
|
472 |
+
.media-disabled,
|
473 |
+
.imgedit-settings .disabled {
|
474 |
+
color: grey;
|
475 |
+
}
|
476 |
+
|
477 |
+
.wp_attachment_image,
|
478 |
+
.A1B1 {
|
479 |
+
overflow: hidden;
|
480 |
+
}
|
481 |
+
|
482 |
+
.wp_attachment_image .button,
|
483 |
+
.A1B1 .button {
|
484 |
+
float: left;
|
485 |
+
}
|
486 |
+
|
487 |
+
.no-js .wp_attachment_image .button {
|
488 |
+
display: none;
|
489 |
+
}
|
490 |
+
|
491 |
+
.wp_attachment_image .spinner,
|
492 |
+
.A1B1 .spinner {
|
493 |
+
float: left;
|
494 |
+
padding: 0 4px 4px;
|
495 |
+
vertical-align: bottom;
|
496 |
+
}
|
497 |
+
|
498 |
+
.imgedit-menu {
|
499 |
+
margin: 0 0 12px;
|
500 |
+
min-width: 300px;
|
501 |
+
}
|
502 |
+
|
503 |
+
.imgedit-menu div {
|
504 |
+
float: left;
|
505 |
+
width: 32px;
|
506 |
+
height: 32px;
|
507 |
+
}
|
508 |
+
|
509 |
+
.imgedit-crop-wrap {
|
510 |
+
position: relative;
|
511 |
+
}
|
512 |
+
|
513 |
+
.imgedit-crop {
|
514 |
+
background: transparent url('../../../../../../wp-admin/images/imgedit-icons.png') no-repeat scroll -9px -31px;
|
515 |
+
margin: 0 8px 0 0;
|
516 |
+
}
|
517 |
+
|
518 |
+
.imgedit-crop.disabled:hover {
|
519 |
+
background-position: -9px -31px;
|
520 |
+
}
|
521 |
+
|
522 |
+
.imgedit-crop:hover {
|
523 |
+
background-position: -9px -1px;
|
524 |
+
}
|
525 |
+
|
526 |
+
.imgedit-rleft {
|
527 |
+
background: transparent url('../../../../../../wp-admin/images/imgedit-icons.png') no-repeat scroll -46px -31px;
|
528 |
+
margin: 0 3px;
|
529 |
+
}
|
530 |
+
|
531 |
+
.imgedit-rleft.disabled:hover {
|
532 |
+
background-position: -46px -31px;
|
533 |
+
}
|
534 |
+
|
535 |
+
.imgedit-rleft:hover {
|
536 |
+
background-position: -46px -1px;
|
537 |
+
}
|
538 |
+
|
539 |
+
.imgedit-rright {
|
540 |
+
background: transparent url('../../../../../../wp-admin/images/imgedit-icons.png') no-repeat scroll -77px -31px;
|
541 |
+
margin: 0 8px 0 3px;
|
542 |
+
}
|
543 |
+
|
544 |
+
.imgedit-rright.disabled:hover {
|
545 |
+
background-position: -77px -31px;
|
546 |
+
}
|
547 |
+
|
548 |
+
.imgedit-rright:hover {
|
549 |
+
background-position: -77px -1px;
|
550 |
+
}
|
551 |
+
|
552 |
+
.imgedit-flipv {
|
553 |
+
background: transparent url('../../../../../../wp-admin/images/imgedit-icons.png') no-repeat scroll -115px -31px;
|
554 |
+
margin: 0 3px;
|
555 |
+
}
|
556 |
+
|
557 |
+
.imgedit-flipv.disabled:hover {
|
558 |
+
background-position: -115px -31px;
|
559 |
+
}
|
560 |
+
|
561 |
+
.imgedit-flipv:hover {
|
562 |
+
background-position: -115px -1px;
|
563 |
+
}
|
564 |
+
|
565 |
+
.imgedit-fliph {
|
566 |
+
background: transparent url('../../../../../../wp-admin/images/imgedit-icons.png') no-repeat scroll -147px -31px;
|
567 |
+
margin: 0 8px 0 3px;
|
568 |
+
}
|
569 |
+
|
570 |
+
.imgedit-fliph.disabled:hover {
|
571 |
+
background-position: -147px -31px;
|
572 |
+
}
|
573 |
+
|
574 |
+
.imgedit-fliph:hover {
|
575 |
+
background-position: -147px -1px;
|
576 |
+
}
|
577 |
+
|
578 |
+
.imgedit-undo {
|
579 |
+
background: transparent url('../../../../../../wp-admin/images/imgedit-icons.png') no-repeat scroll -184px -31px;
|
580 |
+
margin: 0 3px;
|
581 |
+
}
|
582 |
+
|
583 |
+
.imgedit-undo.disabled:hover {
|
584 |
+
background-position: -184px -31px;
|
585 |
+
}
|
586 |
+
|
587 |
+
.imgedit-undo:hover {
|
588 |
+
background-position: -184px -1px;
|
589 |
+
}
|
590 |
+
|
591 |
+
.imgedit-redo {
|
592 |
+
background: transparent url('../../../../../../wp-admin/images/imgedit-icons.png') no-repeat scroll -215px -31px;
|
593 |
+
margin: 0 8px 0 3px;
|
594 |
+
}
|
595 |
+
|
596 |
+
.imgedit-redo.disabled:hover {
|
597 |
+
background-position: -215px -31px;
|
598 |
+
}
|
599 |
+
|
600 |
+
.imgedit-redo:hover {
|
601 |
+
background-position: -215px -1px;
|
602 |
+
}
|
603 |
+
|
604 |
+
.imgedit-applyto img {
|
605 |
+
margin: 0 8px 0 0;
|
606 |
+
}
|
607 |
+
|
608 |
+
.imgedit-group-top {
|
609 |
+
margin: 5px 0;
|
610 |
+
}
|
611 |
+
|
612 |
+
.imgedit-applyto .imgedit-label {
|
613 |
+
padding: 2px 0 0;
|
614 |
+
display: block;
|
615 |
+
}
|
616 |
+
|
617 |
+
.imgedit-help {
|
618 |
+
display: none;
|
619 |
+
font-style: italic;
|
620 |
+
margin-bottom: 8px;
|
621 |
+
}
|
622 |
+
|
623 |
+
a.imgedit-help-toggle {
|
624 |
+
text-decoration: none;
|
625 |
+
}
|
626 |
+
|
627 |
+
.form-table td.imgedit-response {
|
628 |
+
padding: 0;
|
629 |
+
}
|
630 |
+
|
631 |
+
.imgedit-submit {
|
632 |
+
margin: 8px 0;
|
633 |
+
}
|
634 |
+
|
635 |
+
.imgedit-submit-btn {
|
636 |
+
margin-left: 20px;
|
637 |
+
}
|
638 |
+
|
639 |
+
.imgedit-wrap .nowrap {
|
640 |
+
white-space: nowrap;
|
641 |
+
}
|
642 |
+
|
643 |
+
span.imgedit-scale-warn {
|
644 |
+
color: red;
|
645 |
+
font-size: 20px;
|
646 |
+
font-style: normal;
|
647 |
+
visibility: hidden;
|
648 |
+
vertical-align: middle;
|
649 |
+
}
|
650 |
+
|
651 |
+
.imgedit-group {
|
652 |
+
border-width: 1px;
|
653 |
+
border-style: solid;
|
654 |
+
-webkit-border-radius: 3px;
|
655 |
+
border-radius: 3px;
|
656 |
+
margin-bottom: 8px;
|
657 |
+
padding: 2px 10px;
|
658 |
+
}
|
659 |
+
|
660 |
+
.wp_attachment_details {
|
661 |
+
margin-bottom: 20px;
|
662 |
+
}
|
663 |
+
|
664 |
+
.imgedit-menu div {
|
665 |
+
border-color: #d5d5d5;
|
666 |
+
background-color: #f1f1f1;
|
667 |
+
}
|
668 |
+
|
669 |
+
.imgedit-menu div:hover {
|
670 |
+
border-color: #c1c1c1;
|
671 |
+
background-color: #eaeaea;
|
672 |
+
}
|
673 |
+
|
674 |
+
.imgedit-menu div.disabled {
|
675 |
+
border-color: #ccc;
|
676 |
+
background-color: #ddd;
|
677 |
+
filter: alpha(opacity=50);
|
678 |
+
opacity: 0.5;
|
679 |
+
}
|
680 |
+
|
681 |
+
/*------------------------------------------------------------------------------
|
682 |
+
Custom Styles
|
683 |
+
------------------------------------------------------------------------------*/
|
684 |
+
|
685 |
+
.bp-media-image-editor-cotnainer { margin-top : 35px; }
|
686 |
+
.wp_attachment_image .bp-media-image-edit { float: left; }
|
687 |
+
.wp_attachment_image .thumbnail { max-width: 300px; }
|
688 |
+
.wp_attachment_image .spinner { display: none; }
|
689 |
+
.bp-media-image-editor-cotnainer .hidden { display: none; }
|
690 |
+
.bp-media-image-editor-cotnainer div.updated {
|
691 |
+
margin: 5px 0 15px;
|
692 |
+
background-color: #ffffe0;
|
693 |
+
border-color: #e6db55;
|
694 |
+
padding: 0 .6em;
|
695 |
+
-webkit-border-radius: 3px;
|
696 |
+
border-radius: 3px;
|
697 |
+
border-width: 1px;
|
698 |
+
border-style: solid;
|
699 |
+
}
|
700 |
+
|
701 |
+
.bp-media-image-editor-cotnainer div.updated p { margin: .5em 0;padding: 2px; }
|
trunk/app/assets/css/jquery.plupload.queue.css
ADDED
@@ -0,0 +1,177 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/*
|
2 |
+
Plupload
|
3 |
+
------------------------------------------------------------------- */
|
4 |
+
|
5 |
+
.plupload_button {
|
6 |
+
display: -moz-inline-box; /* FF < 3*/
|
7 |
+
display: inline-block;
|
8 |
+
font: normal 12px sans-serif;
|
9 |
+
text-decoration: none;
|
10 |
+
color: #42454a;
|
11 |
+
border: 1px solid #bababa;
|
12 |
+
padding: 2px 8px 3px 20px;
|
13 |
+
margin-right: 4px;
|
14 |
+
background: #f3f3f3 url('../img/buttons.png') no-repeat 0 center;
|
15 |
+
outline: 0;
|
16 |
+
|
17 |
+
/* Optional rounded corners for browsers that support it */
|
18 |
+
-moz-border-radius: 3px;
|
19 |
+
-khtml-border-radius: 3px;
|
20 |
+
-webkit-border-radius: 3px;
|
21 |
+
border-radius: 3px;
|
22 |
+
}
|
23 |
+
|
24 |
+
.plupload_button:hover {
|
25 |
+
color: #000;
|
26 |
+
text-decoration: none;
|
27 |
+
}
|
28 |
+
|
29 |
+
.plupload_disabled, a.plupload_disabled:hover {
|
30 |
+
color: #737373;
|
31 |
+
border-color: #c5c5c5;
|
32 |
+
background: #ededed url('../img/buttons-disabled.png') no-repeat 0 center;
|
33 |
+
cursor: default;
|
34 |
+
}
|
35 |
+
|
36 |
+
.plupload_add {
|
37 |
+
background-position: -181px center;
|
38 |
+
}
|
39 |
+
|
40 |
+
.plupload_wrapper {
|
41 |
+
font: normal 11px Verdana,sans-serif;
|
42 |
+
width: 100%;
|
43 |
+
}
|
44 |
+
|
45 |
+
.plupload_container {
|
46 |
+
padding: 8px;
|
47 |
+
background: url('../img/transp50.png');
|
48 |
+
/*-moz-border-radius: 5px;*/
|
49 |
+
}
|
50 |
+
|
51 |
+
.plupload_container input {
|
52 |
+
border: 1px solid #DDD;
|
53 |
+
font: normal 11px Verdana,sans-serif;
|
54 |
+
width: 98%;
|
55 |
+
}
|
56 |
+
|
57 |
+
.plupload_header {background: #2A2C2E url('../img/backgrounds.gif') repeat-x;}
|
58 |
+
.plupload_header_content {
|
59 |
+
background: url('../img/backgrounds.gif') no-repeat 0 -317px;
|
60 |
+
min-height: 56px;
|
61 |
+
padding-left: 60px;
|
62 |
+
color: #FFF;
|
63 |
+
}
|
64 |
+
.plupload_header_title {
|
65 |
+
font: normal 18px sans-serif;
|
66 |
+
padding: 6px 0 3px;
|
67 |
+
}
|
68 |
+
.plupload_header_text {
|
69 |
+
font: normal 12px sans-serif;
|
70 |
+
}
|
71 |
+
|
72 |
+
.plupload_filelist {
|
73 |
+
margin: 0;
|
74 |
+
padding: 0;
|
75 |
+
list-style: none;
|
76 |
+
}
|
77 |
+
|
78 |
+
.plupload_scroll .plupload_filelist {
|
79 |
+
height: 185px;
|
80 |
+
background: #F5F5F5;
|
81 |
+
overflow-y: scroll;
|
82 |
+
}
|
83 |
+
|
84 |
+
.plupload_filelist li {
|
85 |
+
padding: 10px 8px;
|
86 |
+
background: #F5F5F5 url('../img/backgrounds.gif') repeat-x 0 -156px;
|
87 |
+
border-bottom: 1px solid #DDD;
|
88 |
+
}
|
89 |
+
|
90 |
+
.plupload_filelist_header, .plupload_filelist_footer {
|
91 |
+
background: #DFDFDF;
|
92 |
+
padding: 8px 8px;
|
93 |
+
color: #42454A;
|
94 |
+
}
|
95 |
+
.plupload_filelist_header {
|
96 |
+
border-top: 1px solid #EEE;
|
97 |
+
border-bottom: 1px solid #CDCDCD;
|
98 |
+
}
|
99 |
+
|
100 |
+
.plupload_filelist_footer {border-top: 1px solid #FFF; height: 22px; line-height: 20px; vertical-align: middle;}
|
101 |
+
.plupload_file_name {float: left; overflow: hidden}
|
102 |
+
.plupload_file_status {color: #777;}
|
103 |
+
.plupload_file_status span {color: #42454A;}
|
104 |
+
.plupload_file_size, .plupload_file_status, .plupload_progress {
|
105 |
+
float: right;
|
106 |
+
width: 80px;
|
107 |
+
}
|
108 |
+
.plupload_file_size, .plupload_file_status, .plupload_file_action {text-align: right;}
|
109 |
+
|
110 |
+
.plupload_filelist .plupload_file_name {width: 205px}
|
111 |
+
|
112 |
+
.plupload_file_action {
|
113 |
+
float: right;
|
114 |
+
width: 16px;
|
115 |
+
height: 16px;
|
116 |
+
margin-left: 15px;
|
117 |
+
}
|
118 |
+
|
119 |
+
.plupload_file_action * {
|
120 |
+
display: none;
|
121 |
+
width: 16px;
|
122 |
+
height: 16px;
|
123 |
+
}
|
124 |
+
|
125 |
+
li.plupload_uploading {background: #ECF3DC url('../img/backgrounds.gif') repeat-x 0 -238px;}
|
126 |
+
li.plupload_done {color:#AAA}
|
127 |
+
|
128 |
+
li.plupload_delete a {
|
129 |
+
background: url('../img/delete.gif');
|
130 |
+
}
|
131 |
+
|
132 |
+
li.plupload_failed a {
|
133 |
+
background: url('../img/error.gif');
|
134 |
+
cursor: default;
|
135 |
+
}
|
136 |
+
|
137 |
+
li.plupload_done a {
|
138 |
+
background: url('../img/done.gif');
|
139 |
+
cursor: default;
|
140 |
+
}
|
141 |
+
|
142 |
+
.plupload_progress, .plupload_upload_status {
|
143 |
+
display: none;
|
144 |
+
}
|
145 |
+
|
146 |
+
.plupload_progress_container {
|
147 |
+
margin-top: 3px;
|
148 |
+
border: 1px solid #CCC;
|
149 |
+
background: #FFF;
|
150 |
+
padding: 1px;
|
151 |
+
}
|
152 |
+
.plupload_progress_bar {
|
153 |
+
width: 0px;
|
154 |
+
height: 7px;
|
155 |
+
background: #CDEB8B;
|
156 |
+
}
|
157 |
+
|
158 |
+
.plupload_scroll .plupload_filelist_header .plupload_file_action, .plupload_scroll .plupload_filelist_footer .plupload_file_action {
|
159 |
+
margin-right: 17px;
|
160 |
+
}
|
161 |
+
|
162 |
+
/* Floats */
|
163 |
+
|
164 |
+
.plupload_clear,.plupload_clearer {clear: both;}
|
165 |
+
.plupload_clearer, .plupload_progress_bar {
|
166 |
+
display: block;
|
167 |
+
font-size: 0;
|
168 |
+
line-height: 0;
|
169 |
+
}
|
170 |
+
|
171 |
+
li.plupload_droptext {
|
172 |
+
background: transparent;
|
173 |
+
text-align: center;
|
174 |
+
vertical-align: middle;
|
175 |
+
border: 0;
|
176 |
+
line-height: 165px;
|
177 |
+
}
|
trunk/app/assets/css/jquery.powertip.min.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
#powerTip{cursor:default;background-color:#333;background-color:rgba(0,0,0,.8);border-radius:6px;color:#fff;display:none;padding:10px;position:absolute;white-space:nowrap;z-index:2147483647}#powerTip:before{content:"";position:absolute}#powerTip.n:before,#powerTip.s:before{border-right:5px solid transparent;border-left:5px solid transparent;left:50%;margin-left:-5px}#powerTip.e:before,#powerTip.w:before{border-bottom:5px solid transparent;border-top:5px solid transparent;margin-top:-5px;top:50%}#powerTip.n:before{border-top:10px solid #333;border-top:10px solid rgba(0,0,0,.8);bottom:-10px}#powerTip.e:before{border-right:10px solid #333;border-right:10px solid rgba(0,0,0,.8);left:-10px}#powerTip.s:before{border-bottom:10px solid #333;border-bottom:10px solid rgba(0,0,0,.8);top:-10px}#powerTip.w:before{border-left:10px solid #333;border-left:10px solid rgba(0,0,0,.8);right:-10px}#powerTip.ne:before,#powerTip.se:before{border-right:10px solid transparent;border-left:0;left:10px}#powerTip.nw:before,#powerTip.sw:before{border-left:10px solid transparent;border-right:0;right:10px}#powerTip.ne:before,#powerTip.nw:before{border-top:10px solid #333;border-top:10px solid rgba(0,0,0,.8);bottom:-10px}#powerTip.se:before,#powerTip.sw:before{border-bottom:10px solid #333;border-bottom:10px solid rgba(0,0,0,.8);top:-10px}#powerTip.nw-alt:before,#powerTip.ne-alt:before,#powerTip.sw-alt:before,#powerTip.se-alt:before{border-top:10px solid #333;border-top:10px solid rgba(0,0,0,.8);bottom:-10px;border-left:5px solid transparent;border-right:5px solid transparent;left:10px}#powerTip.ne-alt:before{left:auto;right:10px}#powerTip.sw-alt:before,#powerTip.se-alt:before{border-top:0;border-bottom:10px solid #333;border-bottom:10px solid rgba(0,0,0,.8);bottom:auto;top:-10px}#powerTip.se-alt:before{left:auto;right:10px}
|
trunk/app/assets/css/jquery.sliderTabs.min.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
.ui-slider-tabs{}.ui-slider-tabs-list-wrapper{ position: relative;width:100%;font-family:Arial,sans-serif;margin:0 0 -1px 0;z-index:50;}.ui-slider-tabs-list-wrapper.bottom{ margin: -1px 0 0 0;}.ui-slider-tabs-list-container{ overflow: hidden;}.ui-slider-tabs-list{ padding:0;margin:0 0 0 0;list-style: none;}.ui-slider-tabs-list li{ display: inline-block;border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf;border-top:1px solid #cfcfcf;margin:0;font-size:13px;font-weight:bold;background:#fcfcfc;background: -moz-linear-gradient(top,#fcfcfc 0%,#f5f5f5 100%);background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#fcfcfc),color-stop(100%,#f5f5f5));background: -webkit-linear-gradient(top,#fcfcfc 0%,#f5f5f5 100%);background: -o-linear-gradient(top,#fcfcfc 0%,#f5f5f5 100%);background: -ms-linear-gradient(top,#fcfcfc 0%,#f5f5f5 100%);background: linear-gradient(top,#fcfcfc 0%,#f5f5f5 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc',endColorstr='#f5f5f5',GradientType=0 );}.ui-slider-tabs-list li a{ display:block;padding:8px 15px;text-decoration: none;color:#555;text-shadow:0px 1px 0px #fff;margin:0;}.ui-slider-tabs-list li a:hover{ color:#000;}.ui-slider-tabs-list li.selected{ border-bottom-color:#fff;border-top-color:#cfcfcf;background:#ffffff;background: -moz-linear-gradient(top,#ffffff 0%,#ffffff 100%);background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#ffffff),color-stop(100%,#ffffff));background: -webkit-linear-gradient(top,#ffffff 0%,#ffffff 100%);background: -o-linear-gradient(top,#ffffff 0%,#ffffff 100%);background: -ms-linear-gradient(top,#ffffff 0%,#ffffff 100%);background: linear-gradient(top,#ffffff 0%,#ffffff 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff',endColorstr='#ffffff',GradientType=0 );}.ui-slider-tabs-list-wrapper.bottom .ui-slider-tabs-list li.selected{ border-top-color:#fff;border-bottom-color:#cfcfcf;}.ui-slider-tabs-list li.selected a{ cursor:default;color:#000;}.ui-slider-tabs-list li:first-of-type{ border-left:1px solid #cfcfcf;}.ui-slider-tabs-content-container{ position: relative;border:1px solid #cfcfcf;z-index:1;overflow: hidden;background-color:#fff;}.ui-slider-tab-content{ position:absolute;display: none;top:0;left:0;padding:10px;}.ui-slider-left-arrow,.ui-slider-right-arrow,.ui-slider-left-arrow.edge:hover,.ui-slider-right-arrow.edge:hover{ display:block;position:absolute;border:1px solid #cfcfcf;background:#fcfcfc;background: -moz-linear-gradient(top,#fcfcfc 0%,#f5f5f5 100%);background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#fcfcfc),color-stop(100%,#f5f5f5));background: -webkit-linear-gradient(top,#fcfcfc 0%,#f5f5f5 100%);background: -o-linear-gradient(top,#fcfcfc 0%,#f5f5f5 100%);background: -ms-linear-gradient(top,#fcfcfc 0%,#f5f5f5 100%);background: linear-gradient(top,#fcfcfc 0%,#f5f5f5 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc',endColorstr='#f5f5f5',GradientType=0 );}.ui-slider-left-arrow:hover,.ui-slider-right-arrow:hover{ background:#ffffff;background: -moz-linear-gradient(top,#ffffff 0%,#ffffff 100%);background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#ffffff),color-stop(100%,#ffffff));background: -webkit-linear-gradient(top,#ffffff 0%,#ffffff 100%);background: -o-linear-gradient(top,#ffffff 0%,#ffffff 100%);background: -ms-linear-gradient(top,#ffffff 0%,#ffffff 100%);background: linear-gradient(top,#ffffff 0%,#ffffff 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff',endColorstr='#ffffff',GradientType=0 );}.ui-slider-left-arrow{ left:0;top:0;box-shadow:2px 0px 1px rgba(0,0,0,.06);border-top-left-radius:4px;}.ui-slider-left-arrow div{ background-image: url('../img/leftArrow.png');background-repeat: no-repeat;background-position:center center;height: inherit;}.ui-slider-left-arrow.edge div{ opacity: .25;}.ui-slider-left-arrow.edge{ box-shadow: none;cursor:default;}.ui-slider-tabs-list-wrapper.bottom .ui-slider-left-arrow{ border-top-left-radius:0;border-bottom-left-radius:4px;}.ui-slider-right-arrow{ top:0;right:0;box-shadow: -2px 0px 1px rgba(0,0,0,.06);border-top-right-radius:4px;}.ui-slider-right-arrow div{ background-image: url('../img/rightArrow.png');background-repeat: no-repeat;background-position:center center;height: inherit;}.ui-slider-right-arrow.edge div{ opacity: .25;}.ui-slider-right-arrow.edge{ box-shadow: none;cursor:default;}.ui-slider-tabs-list-wrapper.bottom .ui-slider-right-arrow{ border-top-right-radius:0;border-bottom-right-radius:4px;}.ui-slider-tabs-indicator-container{ position:absolute;bottom:0;left:0;width:100%;text-align:center;}.ui-slider-tabs-indicator{ width:10px;height:10px;background-image: url('../img/indicator.png');background-repeat: no-repeat;display: inline-block;margin-right:3px;cursor: pointer;}.ui-slider-tabs-indicator.selected{ background-image: url('../img/indicatorActive.png');}.ui-slider-tabs-leftPanelArrow{ position:absolute;left:0px;width:30px;height:35px;background-image: url('../img/leftPanelArrow.png');background-repeat: no-repeat;background-position:center center;cursor: pointer;opacity:0.5;-moz-opacity:0.5;filter:alpha(opacity=5);}.ui-slider-tabs-rightPanelArrow{ position:absolute;right:0px;width:30px;height:35px;background-image: url('../img/rightPanelArrow.png');background-repeat: no-repeat;background-position:center center;cursor: pointer;opacity:0.5;-moz-opacity:0.5;filter:alpha(opacity=5);}.ui-slider-tabs-rightPanelArrow.showOnHover,.ui-slider-tabs-leftPanelArrow.showOnHover{ opacity:0;display: none;}.ui-slider-tabs-content-container:hover .ui-slider-tabs-rightPanelArrow.showOnHover,.ui-slider-tabs-content-container:hover .ui-slider-tabs-leftPanelArrow.showOnHover{ opacity: .5;display: inline-block;}.ui-slider-tabs-content-container .ui-slider-tabs-rightPanelArrow:hover,.ui-slider-tabs-content-container .ui-slider-tabs-leftPanelArrow:hover,.ui-slider-tabs-content-container .ui-slider-tabs-rightPanelArrow.showOnHover:hover,.ui-slider-tabs-content-container .ui-slider-tabs-leftPanelArrow.showOnHover:hover{ opacity:1;}
|
trunk/app/assets/css/main.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
.rtmedia-container,.rtmedia-activity-container,#buddypress div.rtmedia-activity-container{padding:5px;margin:0;clear:left}.rtmedia-container html,.rtmedia-activity-container html,#buddypress div.rtmedia-activity-container html,.rtmedia-container body,.rtmedia-activity-container body,#buddypress div.rtmedia-activity-container body,.rtmedia-container div,.rtmedia-activity-container div,#buddypress div.rtmedia-activity-container div,.rtmedia-container span,.rtmedia-activity-container span,#buddypress div.rtmedia-activity-container span,.rtmedia-container applet,.rtmedia-activity-container applet,#buddypress div.rtmedia-activity-container applet,.rtmedia-container object,.rtmedia-activity-container object,#buddypress div.rtmedia-activity-container object,.rtmedia-container iframe,.rtmedia-activity-container iframe,#buddypress div.rtmedia-activity-container iframe,.rtmedia-container h1,.rtmedia-activity-container h1,#buddypress div.rtmedia-activity-container h1,.rtmedia-container h2,.rtmedia-activity-container h2,#buddypress div.rtmedia-activity-container h2,.rtmedia-container h3,.rtmedia-activity-container h3,#buddypress div.rtmedia-activity-container h3,.rtmedia-container h4,.rtmedia-activity-container h4,#buddypress div.rtmedia-activity-container h4,.rtmedia-container h5,.rtmedia-activity-container h5,#buddypress div.rtmedia-activity-container h5,.rtmedia-container h6,.rtmedia-activity-container h6,#buddypress div.rtmedia-activity-container h6,.rtmedia-container p,.rtmedia-activity-container p,#buddypress div.rtmedia-activity-container p,.rtmedia-container blockquote,.rtmedia-activity-container blockquote,#buddypress div.rtmedia-activity-container blockquote,.rtmedia-container pre,.rtmedia-activity-container pre,#buddypress div.rtmedia-activity-container pre,.rtmedia-container a,.rtmedia-activity-container a,#buddypress div.rtmedia-activity-container a,.rtmedia-container abbr,.rtmedia-activity-container abbr,#buddypress div.rtmedia-activity-container abbr,.rtmedia-container acronym,.rtmedia-activity-container acronym,#buddypress div.rtmedia-activity-container acronym,.rtmedia-container address,.rtmedia-activity-container address,#buddypress div.rtmedia-activity-container address,.rtmedia-container big,.rtmedia-activity-container big,#buddypress div.rtmedia-activity-container big,.rtmedia-container cite,.rtmedia-activity-container cite,#buddypress div.rtmedia-activity-container cite,.rtmedia-container code,.rtmedia-activity-container code,#buddypress div.rtmedia-activity-container code,.rtmedia-container del,.rtmedia-activity-container del,#buddypress div.rtmedia-activity-container del,.rtmedia-container dfn,.rtmedia-activity-container dfn,#buddypress div.rtmedia-activity-container dfn,.rtmedia-container em,.rtmedia-activity-container em,#buddypress div.rtmedia-activity-container em,.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img,.rtmedia-container ins,.rtmedia-activity-container ins,#buddypress div.rtmedia-activity-container ins,.rtmedia-container kbd,.rtmedia-activity-container kbd,#buddypress div.rtmedia-activity-container kbd,.rtmedia-container q,.rtmedia-activity-container q,#buddypress div.rtmedia-activity-container q,.rtmedia-container s,.rtmedia-activity-container s,#buddypress div.rtmedia-activity-container s,.rtmedia-container samp,.rtmedia-activity-container samp,#buddypress div.rtmedia-activity-container samp,.rtmedia-container small,.rtmedia-activity-container small,#buddypress div.rtmedia-activity-container small,.rtmedia-container strike,.rtmedia-activity-container strike,#buddypress div.rtmedia-activity-container strike,.rtmedia-container strong,.rtmedia-activity-container strong,#buddypress div.rtmedia-activity-container strong,.rtmedia-container sub,.rtmedia-activity-container sub,#buddypress div.rtmedia-activity-container sub,.rtmedia-container sup,.rtmedia-activity-container sup,#buddypress div.rtmedia-activity-container sup,.rtmedia-container tt,.rtmedia-activity-container tt,#buddypress div.rtmedia-activity-container tt,.rtmedia-container var,.rtmedia-activity-container var,#buddypress div.rtmedia-activity-container var,.rtmedia-container b,.rtmedia-activity-container b,#buddypress div.rtmedia-activity-container b,.rtmedia-container u,.rtmedia-activity-container u,#buddypress div.rtmedia-activity-container u,.rtmedia-container i,.rtmedia-activity-container i,#buddypress div.rtmedia-activity-container i,.rtmedia-container center,.rtmedia-activity-container center,#buddypress div.rtmedia-activity-container center,.rtmedia-container dl,.rtmedia-activity-container dl,#buddypress div.rtmedia-activity-container dl,.rtmedia-container dt,.rtmedia-activity-container dt,#buddypress div.rtmedia-activity-container dt,.rtmedia-container dd,.rtmedia-activity-container dd,#buddypress div.rtmedia-activity-container dd,.rtmedia-container ol,.rtmedia-activity-container ol,#buddypress div.rtmedia-activity-container ol,.rtmedia-container ul,.rtmedia-activity-container ul,#buddypress div.rtmedia-activity-container ul,.rtmedia-container li,.rtmedia-activity-container li,#buddypress div.rtmedia-activity-container li,.rtmedia-container fieldset,.rtmedia-activity-container fieldset,#buddypress div.rtmedia-activity-container fieldset,.rtmedia-container form,.rtmedia-activity-container form,#buddypress div.rtmedia-activity-container form,.rtmedia-container label,.rtmedia-activity-container label,#buddypress div.rtmedia-activity-container label,.rtmedia-container legend,.rtmedia-activity-container legend,#buddypress div.rtmedia-activity-container legend,.rtmedia-container table,.rtmedia-activity-container table,#buddypress div.rtmedia-activity-container table,.rtmedia-container caption,.rtmedia-activity-container caption,#buddypress div.rtmedia-activity-container caption,.rtmedia-container tbody,.rtmedia-activity-container tbody,#buddypress div.rtmedia-activity-container tbody,.rtmedia-container tfoot,.rtmedia-activity-container tfoot,#buddypress div.rtmedia-activity-container tfoot,.rtmedia-container thead,.rtmedia-activity-container thead,#buddypress div.rtmedia-activity-container thead,.rtmedia-container tr,.rtmedia-activity-container tr,#buddypress div.rtmedia-activity-container tr,.rtmedia-container th,.rtmedia-activity-container th,#buddypress div.rtmedia-activity-container th,.rtmedia-container td,.rtmedia-activity-container td,#buddypress div.rtmedia-activity-container td,.rtmedia-container article,.rtmedia-activity-container article,#buddypress div.rtmedia-activity-container article,.rtmedia-container aside,.rtmedia-activity-container aside,#buddypress div.rtmedia-activity-container aside,.rtmedia-container canvas,.rtmedia-activity-container canvas,#buddypress div.rtmedia-activity-container canvas,.rtmedia-container details,.rtmedia-activity-container details,#buddypress div.rtmedia-activity-container details,.rtmedia-container embed,.rtmedia-activity-container embed,#buddypress div.rtmedia-activity-container embed,.rtmedia-container figure,.rtmedia-activity-container figure,#buddypress div.rtmedia-activity-container figure,.rtmedia-container figcaption,.rtmedia-activity-container figcaption,#buddypress div.rtmedia-activity-container figcaption,.rtmedia-container footer,.rtmedia-activity-container footer,#buddypress div.rtmedia-activity-container footer,.rtmedia-container header,.rtmedia-activity-container header,#buddypress div.rtmedia-activity-container header,.rtmedia-container hgroup,.rtmedia-activity-container hgroup,#buddypress div.rtmedia-activity-container hgroup,.rtmedia-container menu,.rtmedia-activity-container menu,#buddypress div.rtmedia-activity-container menu,.rtmedia-container nav,.rtmedia-activity-container nav,#buddypress div.rtmedia-activity-container nav,.rtmedia-container output,.rtmedia-activity-container output,#buddypress div.rtmedia-activity-container output,.rtmedia-container ruby,.rtmedia-activity-container ruby,#buddypress div.rtmedia-activity-container ruby,.rtmedia-container section,.rtmedia-activity-container section,#buddypress div.rtmedia-activity-container section,.rtmedia-container summary,.rtmedia-activity-container summary,#buddypress div.rtmedia-activity-container summary,.rtmedia-container time,.rtmedia-activity-container time,#buddypress div.rtmedia-activity-container time,.rtmedia-container mark,.rtmedia-activity-container mark,#buddypress div.rtmedia-activity-container mark,.rtmedia-container audio,.rtmedia-activity-container audio,#buddypress div.rtmedia-activity-container audio,.rtmedia-container video,.rtmedia-activity-container video,#buddypress div.rtmedia-activity-container video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}.rtmedia-container html,.rtmedia-activity-container html,#buddypress div.rtmedia-activity-container html{line-height:1}.rtmedia-container ol,.rtmedia-activity-container ol,#buddypress div.rtmedia-activity-container ol,.rtmedia-container ul,.rtmedia-activity-container ul,#buddypress div.rtmedia-activity-container ul{list-style:none}.rtmedia-container table,.rtmedia-activity-container table,#buddypress div.rtmedia-activity-container table{border-collapse:collapse;border-spacing:0}.rtmedia-container caption,.rtmedia-activity-container caption,#buddypress div.rtmedia-activity-container caption,.rtmedia-container th,.rtmedia-activity-container th,#buddypress div.rtmedia-activity-container th,.rtmedia-container td,.rtmedia-activity-container td,#buddypress div.rtmedia-activity-container td{text-align:left;font-weight:normal;vertical-align:middle}.rtmedia-container q,.rtmedia-activity-container q,#buddypress div.rtmedia-activity-container q,.rtmedia-container blockquote,.rtmedia-activity-container blockquote,#buddypress div.rtmedia-activity-container blockquote{quotes:none}.rtmedia-container q:before,.rtmedia-activity-container q:before,#buddypress div.rtmedia-activity-container q:before,.rtmedia-container q:after,.rtmedia-activity-container q:after,#buddypress div.rtmedia-activity-container q:after,.rtmedia-container blockquote:before,.rtmedia-activity-container blockquote:before,#buddypress div.rtmedia-activity-container blockquote:before,.rtmedia-container blockquote:after,.rtmedia-activity-container blockquote:after,#buddypress div.rtmedia-activity-container blockquote:after{content:"";content:none}.rtmedia-container a img,.rtmedia-activity-container a img,#buddypress div.rtmedia-activity-container a img{border:none}.rtmedia-container article,.rtmedia-activity-container article,#buddypress div.rtmedia-activity-container article,.rtmedia-container aside,.rtmedia-activity-container aside,#buddypress div.rtmedia-activity-container aside,.rtmedia-container details,.rtmedia-activity-container details,#buddypress div.rtmedia-activity-container details,.rtmedia-container figcaption,.rtmedia-activity-container figcaption,#buddypress div.rtmedia-activity-container figcaption,.rtmedia-container figure,.rtmedia-activity-container figure,#buddypress div.rtmedia-activity-container figure,.rtmedia-container footer,.rtmedia-activity-container footer,#buddypress div.rtmedia-activity-container footer,.rtmedia-container header,.rtmedia-activity-container header,#buddypress div.rtmedia-activity-container header,.rtmedia-container hgroup,.rtmedia-activity-container hgroup,#buddypress div.rtmedia-activity-container hgroup,.rtmedia-container menu,.rtmedia-activity-container menu,#buddypress div.rtmedia-activity-container menu,.rtmedia-container nav,.rtmedia-activity-container nav,#buddypress div.rtmedia-activity-container nav,.rtmedia-container section,.rtmedia-activity-container section,#buddypress div.rtmedia-activity-container section,.rtmedia-container summary,.rtmedia-activity-container summary,#buddypress div.rtmedia-activity-container summary{display:block}.rtmedia-container *,.rtmedia-activity-container *,#buddypress div.rtmedia-activity-container *,.rtmedia-container *:before,.rtmedia-activity-container *:before,#buddypress div.rtmedia-activity-container *:before,.rtmedia-container *:after,.rtmedia-activity-container *:after,#buddypress div.rtmedia-activity-container *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.rtmedia-container html,.rtmedia-activity-container html,#buddypress div.rtmedia-activity-container html,.rtmedia-container body,.rtmedia-activity-container body,#buddypress div.rtmedia-activity-container body{font-size:100%}.rtmedia-container body,.rtmedia-activity-container body,#buddypress div.rtmedia-activity-container body{background:#fff;color:#222;padding:0;margin:0;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;font-weight:normal;font-style:normal;line-height:1;position:relative;cursor:default}.rtmedia-container a:hover,.rtmedia-activity-container a:hover,#buddypress div.rtmedia-activity-container a:hover{cursor:pointer}.rtmedia-container a:focus,.rtmedia-activity-container a:focus,#buddypress div.rtmedia-activity-container a:focus{outline:none}.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img,.rtmedia-container object,.rtmedia-activity-container object,#buddypress div.rtmedia-activity-container object,.rtmedia-container embed,.rtmedia-activity-container embed,#buddypress div.rtmedia-activity-container embed{max-width:100%;height:auto}.rtmedia-container object,.rtmedia-activity-container object,#buddypress div.rtmedia-activity-container object,.rtmedia-container embed,.rtmedia-activity-container embed,#buddypress div.rtmedia-activity-container embed{height:100%}.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img{-ms-interpolation-mode:bicubic}.rtmedia-container #map_canvas img,.rtmedia-activity-container #map_canvas img,.rtmedia-container #map_canvas embed,.rtmedia-activity-container #map_canvas embed,.rtmedia-container #map_canvas object,.rtmedia-activity-container #map_canvas object,.rtmedia-container .map_canvas img,.rtmedia-activity-container .map_canvas img,#buddypress div.rtmedia-activity-container .map_canvas img,.rtmedia-container .map_canvas embed,.rtmedia-activity-container .map_canvas embed,#buddypress div.rtmedia-activity-container .map_canvas embed,.rtmedia-container .map_canvas object,.rtmedia-activity-container .map_canvas object,#buddypress div.rtmedia-activity-container .map_canvas object{max-width:none !important}.rtmedia-container .left,.rtmedia-activity-container .left,#buddypress div.rtmedia-activity-container .left{float:left !important}.rtmedia-container .right,.rtmedia-activity-container .right,#buddypress div.rtmedia-activity-container .right{float:right !important}.rtmedia-container .text-left,.rtmedia-activity-container .text-left,#buddypress div.rtmedia-activity-container .text-left{text-align:left !important}.rtmedia-container .text-right,.rtmedia-activity-container .text-right,#buddypress div.rtmedia-activity-container .text-right{text-align:right !important}.rtmedia-container .text-center,.rtmedia-activity-container .text-center,#buddypress div.rtmedia-activity-container .text-center{text-align:center !important}.rtmedia-container .text-justify,.rtmedia-activity-container .text-justify,#buddypress div.rtmedia-activity-container .text-justify{text-align:justify !important}.rtmedia-container .hide,.rtmedia-activity-container .hide,#buddypress div.rtmedia-activity-container .hide{display:none}.rtmedia-container .antialiased,.rtmedia-activity-container .antialiased,#buddypress div.rtmedia-activity-container .antialiased{-webkit-font-smoothing:antialiased}.rtmedia-container img,.rtmedia-activity-container img,#buddypress div.rtmedia-activity-container img{display:inline-block;vertical-align:middle}.rtmedia-container textarea,.rtmedia-activity-container textarea,#buddypress div.rtmedia-activity-container textarea{height:auto;min-height:50px}.rtmedia-container select,.rtmedia-activity-container select,#buddypress div.rtmedia-activity-container select{width:100%}.rtmedia-container .row,.rtmedia-activity-container .row,#buddypress div.rtmedia-activity-container .row{width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:62.5em;*zoom:1}.rtmedia-container .row:before,.rtmedia-activity-container .row:before,#buddypress div.rtmedia-activity-container .row:before,.rtmedia-container .row:after,.rtmedia-activity-container .row:after,#buddypress div.rtmedia-activity-container .row:after{content:" ";display:table}.rtmedia-container .row:after,.rtmedia-activity-container .row:after,#buddypress div.rtmedia-activity-container .row:after{clear:both}.rtmedia-container .row.collapse .column,.rtmedia-activity-container .row.collapse .column,#buddypress div.rtmedia-activity-container .row.collapse .column,.rtmedia-container .row.collapse .columns,.rtmedia-activity-container .row.collapse .columns,#buddypress div.rtmedia-activity-container .row.collapse .columns{position:relative;padding-left:0;padding-right:0;float:left}.rtmedia-container .row .row,.rtmedia-activity-container .row .row,#buddypress div.rtmedia-activity-container .row .row{width:auto;margin-left:-0.9375em;margin-right:-0.9375em;margin-top:0;margin-bottom:0;max-width:none;*zoom:1}.rtmedia-container .row .row:before,.rtmedia-activity-container .row .row:before,#buddypress div.rtmedia-activity-container .row .row:before,.rtmedia-container .row .row:after,.rtmedia-activity-container .row .row:after,#buddypress div.rtmedia-activity-container .row .row:after{content:" ";display:table}.rtmedia-container .row .row:after,.rtmedia-activity-container .row .row:after,#buddypress div.rtmedia-activity-container .row .row:after{clear:both}.rtmedia-container .row .row.collapse,.rtmedia-activity-container .row .row.collapse,#buddypress div.rtmedia-activity-container .row .row.collapse{width:auto;margin:0;max-width:none;*zoom:1}.rtmedia-container .row .row.collapse:before,.rtmedia-activity-container .row .row.collapse:before,#buddypress div.rtmedia-activity-container .row .row.collapse:before,.rtmedia-container .row .row.collapse:after,.rtmedia-activity-container .row .row.collapse:after,#buddypress div.rtmedia-activity-container .row .row.collapse:after{content:" ";display:table}.rtmedia-container .row .row.collapse:after,.rtmedia-activity-container .row .row.collapse:after,#buddypress div.rtmedia-activity-container .row .row.collapse:after{clear:both}.rtmedia-container .column,.rtmedia-activity-container .column,#buddypress div.rtmedia-activity-container .column,.rtmedia-container .columns,.rtmedia-activity-container .columns,#buddypress div.rtmedia-activity-container .columns{position:relative;padding-left:0.9375em;padding-right:0.9375em;width:100%;float:left}@media only screen{.rtmedia-container .column,.rtmedia-activity-container .column,#buddypress div.rtmedia-activity-container .column,.rtmedia-container .columns,.rtmedia-activity-container .columns,#buddypress div.rtmedia-activity-container .columns{position:relative;padding-left:0.9375em;padding-right:0.9375em;float:left}.rtmedia-container .small-1,.rtmedia-activity-container .small-1,#buddypress div.rtmedia-activity-container .small-1{position:relative;width:8.33333%}.rtmedia-container .small-2,.rtmedia-activity-container .small-2,#buddypress div.rtmedia-activity-container .small-2{position:relative;width:16.66667%}.rtmedia-container .small-3,.rtmedia-activity-container .small-3,#buddypress div.rtmedia-activity-container .small-3{position:relative;width:25%}.rtmedia-container .small-4,.rtmedia-activity-container .small-4,#buddypress div.rtmedia-activity-container .small-4{position:relative;width:33.33333%}.rtmedia-container .small-5,.rtmedia-activity-container .small-5,#buddypress div.rtmedia-activity-container .small-5{position:relative;width:41.66667%}.rtmedia-container .small-6,.rtmedia-activity-container .small-6,#buddypress div.rtmedia-activity-container .small-6{position:relative;width:50%}.rtmedia-container .small-7,.rtmedia-activity-container .small-7,#buddypress div.rtmedia-activity-container .small-7{position:relative;width:58.33333%}.rtmedia-container .small-8,.rtmedia-activity-container .small-8,#buddypress div.rtmedia-activity-container .small-8{position:relative;width:66.66667%}.rtmedia-container .small-9,.rtmedia-activity-container .small-9,#buddypress div.rtmedia-activity-container .small-9{position:relative;width:75%}.rtmedia-container .small-10,.rtmedia-activity-container .small-10,#buddypress div.rtmedia-activity-container .small-10{position:relative;width:83.33333%}.rtmedia-container .small-11,.rtmedia-activity-container .small-11,#buddypress div.rtmedia-activity-container .small-11{position:relative;width:91.66667%}.rtmedia-container .small-12,.rtmedia-activity-container .small-12,#buddypress div.rtmedia-activity-container .small-12{position:relative;width:100%}.rtmedia-container .small-offset-0,.rtmedia-activity-container .small-offset-0,#buddypress div.rtmedia-activity-container .small-offset-0{position:relative;margin-left:0%}.rtmedia-container .small-offset-1,.rtmedia-activity-container .small-offset-1,#buddypress div.rtmedia-activity-container .small-offset-1{position:relative;margin-left:8.33333%}.rtmedia-container .small-offset-2,.rtmedia-activity-container .small-offset-2,#buddypress div.rtmedia-activity-container .small-offset-2{position:relative;margin-left:16.66667%}.rtmedia-container .small-offset-3,.rtmedia-activity-container .small-offset-3,#buddypress div.rtmedia-activity-container .small-offset-3{position:relative;margin-left:25%}.rtmedia-container .small-offset-4,.rtmedia-activity-container .small-offset-4,#buddypress div.rtmedia-activity-container .small-offset-4{position:relative;margin-left:33.33333%}.rtmedia-container .small-offset-5,.rtmedia-activity-container .small-offset-5,#buddypress div.rtmedia-activity-container .small-offset-5{position:relative;margin-left:41.66667%}.rtmedia-container .small-offset-6,.rtmedia-activity-container .small-offset-6,#buddypress div.rtmedia-activity-container .small-offset-6{position:relative;margin-left:50%}.rtmedia-container .small-offset-7,.rtmedia-activity-container .small-offset-7,#buddypress div.rtmedia-activity-container .small-offset-7{position:relative;margin-left:58.33333%}.rtmedia-container .small-offset-8,.rtmedia-activity-container .small-offset-8,#buddypress div.rtmedia-activity-container .small-offset-8{position:relative;margin-left:66.66667%}.rtmedia-container .small-offset-9,.rtmedia-activity-container .small-offset-9,#buddypress div.rtmedia-activity-container .small-offset-9{position:relative;margin-left:75%}.rtmedia-container .small-offset-10,.rtmedia-activity-container .small-offset-10,#buddypress div.rtmedia-activity-container .small-offset-10{position:relative;margin-left:83.33333%}.rtmedia-container [class*="column"]+[class*="column"]:last-child,.rtmedia-activity-container [class*="column"]+[class*="column"]:last-child,#buddypress div.rtmedia-activity-container [class*="column"]+[class*="column"]:last-child{float:right}.rtmedia-container [class*="column"]+[class*="column"].end,.rtmedia-activity-container [class*="column"]+[class*="column"].end,#buddypress div.rtmedia-activity-container [class*="column"]+[class*="column"].end{float:left}.rtmedia-container .column.small-centered,.rtmedia-activity-container .column.small-centered,#buddypress div.rtmedia-activity-container .column.small-centered,.rtmedia-container .columns.small-centered,.rtmedia-activity-container .columns.small-centered,#buddypress div.rtmedia-activity-container .columns.small-centered{position:relative;margin-left:auto;margin-right:auto;float:none !important}}@media only screen and (min-width: 768px){.rtmedia-container .large-1,.rtmedia-activity-container .large-1,#buddypress div.rtmedia-activity-container .large-1{position:relative;width:8.33333%}.rtmedia-container .large-2,.rtmedia-activity-container .large-2,#buddypress div.rtmedia-activity-container .large-2{position:relative;width:16.66667%}.rtmedia-container .large-3,.rtmedia-activity-container .large-3,#buddypress div.rtmedia-activity-container .large-3{position:relative;width:25%}.rtmedia-container .large-4,.rtmedia-activity-container .large-4,#buddypress div.rtmedia-activity-container .large-4{position:relative;width:33.33333%}.rtmedia-container .large-5,.rtmedia-activity-container .large-5,#buddypress div.rtmedia-activity-container .large-5{position:relative;width:41.66667%}.rtmedia-container .large-6,.rtmedia-activity-container .large-6,#buddypress div.rtmedia-activity-container .large-6{position:relative;width:50%}.rtmedia-container .large-7,.rtmedia-activity-container .large-7,#buddypress div.rtmedia-activity-container .large-7{position:relative;width:58.33333%}.rtmedia-container .large-8,.rtmedia-activity-container .large-8,#buddypress div.rtmedia-activity-container .large-8{position:relative;width:66.66667%}.rtmedia-container .large-9,.rtmedia-activity-container .large-9,#buddypress div.rtmedia-activity-container .large-9{position:relative;width:75%}.rtmedia-container .large-10,.rtmedia-activity-container .large-10,#buddypress div.rtmedia-activity-container .large-10{position:relative;width:83.33333%}.rtmedia-container .large-11,.rtmedia-activity-container .large-11,#buddypress div.rtmedia-activity-container .large-11{position:relative;width:91.66667%}.rtmedia-container .large-12,.rtmedia-activity-container .large-12,#buddypress div.rtmedia-activity-container .large-12{position:relative;width:100%}.rtmedia-container .row .large-offset-0,.rtmedia-activity-container .row .large-offset-0,#buddypress div.rtmedia-activity-container .row .large-offset-0{position:relative;margin-left:0%}.rtmedia-container .row .large-offset-1,.rtmedia-activity-container .row .large-offset-1,#buddypress div.rtmedia-activity-container .row .large-offset-1{position:relative;margin-left:8.33333%}.rtmedia-container .row .large-offset-2,.rtmedia-activity-container .row .large-offset-2,#buddypress div.rtmedia-activity-container .row .large-offset-2{position:relative;margin-left:16.66667%}.rtmedia-container .row .large-offset-3,.rtmedia-activity-container .row .large-offset-3,#buddypress div.rtmedia-activity-container .row .large-offset-3{position:relative;margin-left:25%}.rtmedia-container .row .large-offset-4,.rtmedia-activity-container .row .large-offset-4,#buddypress div.rtmedia-activity-container .row .large-offset-4{position:relative;margin-left:33.33333%}.rtmedia-container .row .large-offset-5,.rtmedia-activity-container .row .large-offset-5,#buddypress div.rtmedia-activity-container .row .large-offset-5{position:relative;margin-left:41.66667%}.rtmedia-container .row .large-offset-6,.rtmedia-activity-container .row .large-offset-6,#buddypress div.rtmedia-activity-container .row .large-offset-6{position:relative;margin-left:50%}.rtmedia-container .row .large-offset-7,.rtmedia-activity-container .row .large-offset-7,#buddypress div.rtmedia-activity-container .row .large-offset-7{position:relative;margin-left:58.33333%}.rtmedia-container .row .large-offset-8,.rtmedia-activity-container .row .large-offset-8,#buddypress div.rtmedia-activity-container .row .large-offset-8{position:relative;margin-left:66.66667%}.rtmedia-container .row .large-offset-9,.rtmedia-activity-container .row .large-offset-9,#buddypress div.rtmedia-activity-container .row .large-offset-9{position:relative;margin-left:75%}.rtmedia-container .row .large-offset-10,.rtmedia-activity-container .row .large-offset-10,#buddypress div.rtmedia-activity-container .row .large-offset-10{position:relative;margin-left:83.33333%}.rtmedia-container .row .large-offset-11,.rtmedia-activity-container .row .large-offset-11,#buddypress div.rtmedia-activity-container .row .large-offset-11{position:relative;margin-left:91.66667%}.rtmedia-container .push-1,.rtmedia-activity-container .push-1,#buddypress div.rtmedia-activity-container .push-1{position:relative;left:8.33333%;right:auto}.rtmedia-container .pull-1,.rtmedia-activity-container .pull-1,#buddypress div.rtmedia-activity-container .pull-1{position:relative;right:8.33333%;left:auto}.rtmedia-container .push-2,.rtmedia-activity-container .push-2,#buddypress div.rtmedia-activity-container .push-2{position:relative;left:16.66667%;right:auto}.rtmedia-container .pull-2,.rtmedia-activity-container .pull-2,#buddypress div.rtmedia-activity-container .pull-2{position:relative;right:16.66667%;left:auto}.rtmedia-container .push-3,.rtmedia-activity-container .push-3,#buddypress div.rtmedia-activity-container .push-3{position:relative;left:25%;right:auto}.rtmedia-container .pull-3,.rtmedia-activity-container .pull-3,#buddypress div.rtmedia-activity-container .pull-3{position:relative;right:25%;left:auto}.rtmedia-container .push-4,.rtmedia-activity-container .push-4,#buddypress div.rtmedia-activity-container .push-4{position:relative;left:33.33333%;right:auto}.rtmedia-container .pull-4,.rtmedia-activity-container .pull-4,#buddypress div.rtmedia-activity-container .pull-4{position:relative;right:33.33333%;left:auto}.rtmedia-container .push-5,.rtmedia-activity-container .push-5,#buddypress div.rtmedia-activity-container .push-5{position:relative;left:41.66667%;right:auto}.rtmedia-container .pull-5,.rtmedia-activity-container .pull-5,#buddypress div.rtmedia-activity-container .pull-5{position:relative;right:41.66667%;left:auto}.rtmedia-container .push-6,.rtmedia-activity-container .push-6,#buddypress div.rtmedia-activity-container .push-6{position:relative;left:50%;right:auto}.rtmedia-container .pull-6,.rtmedia-activity-container .pull-6,#buddypress div.rtmedia-activity-container .pull-6{position:relative;right:50%;left:auto}.rtmedia-container .push-7,.rtmedia-activity-container .push-7,#buddypress div.rtmedia-activity-container .push-7{position:relative;left:58.33333%;right:auto}.rtmedia-container .pull-7,.rtmedia-activity-container .pull-7,#buddypress div.rtmedia-activity-container .pull-7{position:relative;right:58.33333%;left:auto}.rtmedia-container .push-8,.rtmedia-activity-container .push-8,#buddypress div.rtmedia-activity-container .push-8{position:relative;left:66.66667%;right:auto}.rtmedia-container .pull-8,.rtmedia-activity-container .pull-8,#buddypress div.rtmedia-activity-container .pull-8{position:relative;right:66.66667%;left:auto}.rtmedia-container .push-9,.rtmedia-activity-container .push-9,#buddypress div.rtmedia-activity-container .push-9{position:relative;left:75%;right:auto}.rtmedia-container .pull-9,.rtmedia-activity-container .pull-9,#buddypress div.rtmedia-activity-container .pull-9{position:relative;right:75%;left:auto}.rtmedia-container .push-10,.rtmedia-activity-container .push-10,#buddypress div.rtmedia-activity-container .push-10{position:relative;left:83.33333%;right:auto}.rtmedia-container .pull-10,.rtmedia-activity-container .pull-10,#buddypress div.rtmedia-activity-container .pull-10{position:relative;right:83.33333%;left:auto}.rtmedia-container .push-11,.rtmedia-activity-container .push-11,#buddypress div.rtmedia-activity-container .push-11{position:relative;left:91.66667%;right:auto}.rtmedia-container .pull-11,.rtmedia-activity-container .pull-11,#buddypress div.rtmedia-activity-container .pull-11{position:relative;right:91.66667%;left:auto}.rtmedia-container .column.large-centered,.rtmedia-activity-container .column.large-centered,#buddypress div.rtmedia-activity-container .column.large-centered,.rtmedia-container .columns.large-centered,.rtmedia-activity-container .columns.large-centered,#buddypress div.rtmedia-activity-container .columns.large-centered{position:relative;margin-left:auto;margin-right:auto;float:none !important}.rtmedia-container .column.large-uncentered,.rtmedia-activity-container .column.large-uncentered,#buddypress div.rtmedia-activity-container .column.large-uncentered,.rtmedia-container .columns.large-uncentered,.rtmedia-activity-container .columns.large-uncentered,#buddypress div.rtmedia-activity-container .columns.large-uncentered{margin-left:0;margin-right:0;float:left !important}.rtmedia-container .column.large-uncentered.opposite,.rtmedia-activity-container .column.large-uncentered.opposite,#buddypress div.rtmedia-activity-container .column.large-uncentered.opposite,.rtmedia-container .columns.large-uncentered.opposite,.rtmedia-activity-container .columns.large-uncentered.opposite,#buddypress div.rtmedia-activity-container .columns.large-uncentered.opposite{float:right !important}}.rtmedia-container .show-for-small,.rtmedia-activity-container .show-for-small,#buddypress div.rtmedia-activity-container .show-for-small,.rtmedia-container .show-for-medium-down,.rtmedia-activity-container .show-for-medium-down,#buddypress div.rtmedia-activity-container .show-for-medium-down,.rtmedia-container .show-for-large-down,.rtmedia-activity-container .show-for-large-down,#buddypress div.rtmedia-activity-container .show-for-large-down{display:inherit !important}.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,#buddypress div.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-up,.rtmedia-activity-container .show-for-medium-up,#buddypress div.rtmedia-activity-container .show-for-medium-up,.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,#buddypress div.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-up,.rtmedia-activity-container .show-for-large-up,#buddypress div.rtmedia-activity-container .show-for-large-up,.rtmedia-container .show-for-xlarge,.rtmedia-activity-container .show-for-xlarge,#buddypress div.rtmedia-activity-container .show-for-xlarge{display:none !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,#buddypress div.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-up,.rtmedia-activity-container .hide-for-medium-up,#buddypress div.rtmedia-activity-container .hide-for-medium-up,.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,#buddypress div.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-up,.rtmedia-activity-container .hide-for-large-up,#buddypress div.rtmedia-activity-container .hide-for-large-up,.rtmedia-container .hide-for-xlarge,.rtmedia-activity-container .hide-for-xlarge,#buddypress div.rtmedia-activity-container .hide-for-xlarge{display:inherit !important}.rtmedia-container .hide-for-small,.rtmedia-activity-container .hide-for-small,#buddypress div.rtmedia-activity-container .hide-for-small,.rtmedia-container .hide-for-medium-down,.rtmedia-activity-container .hide-for-medium-down,#buddypress div.rtmedia-activity-container .hide-for-medium-down,.rtmedia-container .hide-for-large-down,.rtmedia-activity-container .hide-for-large-down,#buddypress div.rtmedia-activity-container .hide-for-large-down{display:none !important}.rtmedia-container table.show-for-small,.rtmedia-activity-container table.show-for-small,#buddypress div.rtmedia-activity-container table.show-for-small,.rtmedia-container table.show-for-medium-down,.rtmedia-activity-container table.show-for-medium-down,#buddypress div.rtmedia-activity-container table.show-for-medium-down,.rtmedia-container table.show-for-large-down,.rtmedia-activity-container table.show-for-large-down,#buddypress div.rtmedia-activity-container table.show-for-large-down,.rtmedia-container table.hide-for-medium,.rtmedia-activity-container table.hide-for-medium,#buddypress div.rtmedia-activity-container table.hide-for-medium,.rtmedia-container table.hide-for-medium-up,.rtmedia-activity-container table.hide-for-medium-up,#buddypress div.rtmedia-activity-container table.hide-for-medium-up,.rtmedia-container table.hide-for-large,.rtmedia-activity-container table.hide-for-large,#buddypress div.rtmedia-activity-container table.hide-for-large,.rtmedia-container table.hide-for-large-up,.rtmedia-activity-container table.hide-for-large-up,#buddypress div.rtmedia-activity-container table.hide-for-large-up,.rtmedia-container table.hide-for-xlarge,.rtmedia-activity-container table.hide-for-xlarge,#buddypress div.rtmedia-activity-container table.hide-for-xlarge{display:table}.rtmedia-container thead.show-for-small,.rtmedia-activity-container thead.show-for-small,#buddypress div.rtmedia-activity-container thead.show-for-small,.rtmedia-container thead.show-for-medium-down,.rtmedia-activity-container thead.show-for-medium-down,#buddypress div.rtmedia-activity-container thead.show-for-medium-down,.rtmedia-container thead.show-for-large-down,.rtmedia-activity-container thead.show-for-large-down,#buddypress div.rtmedia-activity-container thead.show-for-large-down,.rtmedia-container thead.hide-for-medium,.rtmedia-activity-container thead.hide-for-medium,#buddypress div.rtmedia-activity-container thead.hide-for-medium,.rtmedia-container thead.hide-for-medium-up,.rtmedia-activity-container thead.hide-for-medium-up,#buddypress div.rtmedia-activity-container thead.hide-for-medium-up,.rtmedia-container thead.hide-for-large,.rtmedia-activity-container thead.hide-for-large,#buddypress div.rtmedia-activity-container thead.hide-for-large,.rtmedia-container thead.hide-for-large-up,.rtmedia-activity-container thead.hide-for-large-up,#buddypress div.rtmedia-activity-container thead.hide-for-large-up,.rtmedia-container thead.hide-for-xlarge,.rtmedia-activity-container thead.hide-for-xlarge,#buddypress div.rtmedia-activity-container thead.hide-for-xlarge{display:table-header-group !important}.rtmedia-container tbody.show-for-small,.rtmedia-activity-container tbody.show-for-small,#buddypress div.rtmedia-activity-container tbody.show-for-small,.rtmedia-container tbody.show-for-medium-down,.rtmedia-activity-container tbody.show-for-medium-down,#buddypress div.rtmedia-activity-container tbody.show-for-medium-down,.rtmedia-container tbody.show-for-large-down,.rtmedia-activity-container tbody.show-for-large-down,#buddypress div.rtmedia-activity-container tbody.show-for-large-down,.rtmedia-container tbody.hide-for-medium,.rtmedia-activity-container tbody.hide-for-medium,#buddypress div.rtmedia-activity-container tbody.hide-for-medium,.rtmedia-container tbody.hide-for-medium-up,.rtmedia-activity-container tbody.hide-for-medium-up,#buddypress div.rtmedia-activity-container tbody.hide-for-medium-up,.rtmedia-container tbody.hide-for-large,.rtmedia-activity-container tbody.hide-for-large,#buddypress div.rtmedia-activity-container tbody.hide-for-large,.rtmedia-container tbody.hide-for-large-up,.rtmedia-activity-container tbody.hide-for-large-up,#buddypress div.rtmedia-activity-container tbody.hide-for-large-up,.rtmedia-container tbody.hide-for-xlarge,.rtmedia-activity-container tbody.hide-for-xlarge,#buddypress div.rtmedia-activity-container tbody.hide-for-xlarge{display:table-row-group !important}.rtmedia-container tr.show-for-small,.rtmedia-activity-container tr.show-for-small,#buddypress div.rtmedia-activity-container tr.show-for-small,.rtmedia-container tr.show-for-medium-down,.rtmedia-activity-container tr.show-for-medium-down,#buddypress div.rtmedia-activity-container tr.show-for-medium-down,.rtmedia-container tr.show-for-large-down,.rtmedia-activity-container tr.show-for-large-down,#buddypress div.rtmedia-activity-container tr.show-for-large-down,.rtmedia-container tr.hide-for-medium,.rtmedia-activity-container tr.hide-for-medium,#buddypress div.rtmedia-activity-container tr.hide-for-medium,.rtmedia-container tr.hide-for-medium-up,.rtmedia-activity-container tr.hide-for-medium-up,#buddypress div.rtmedia-activity-container tr.hide-for-medium-up,.rtmedia-container tr.hide-for-large,.rtmedia-activity-container tr.hide-for-large,#buddypress div.rtmedia-activity-container tr.hide-for-large,.rtmedia-container tr.hide-for-large-up,.rtmedia-activity-container tr.hide-for-large-up,#buddypress div.rtmedia-activity-container tr.hide-for-large-up,.rtmedia-container tr.hide-for-xlarge,.rtmedia-activity-container tr.hide-for-xlarge,#buddypress div.rtmedia-activity-container tr.hide-for-xlarge{display:table-row !important}.rtmedia-container td.show-for-small,.rtmedia-activity-container td.show-for-small,#buddypress div.rtmedia-activity-container td.show-for-small,.rtmedia-container td.show-for-medium-down,.rtmedia-activity-container td.show-for-medium-down,#buddypress div.rtmedia-activity-container td.show-for-medium-down,.rtmedia-container td.show-for-large-down,.rtmedia-activity-container td.show-for-large-down,#buddypress div.rtmedia-activity-container td.show-for-large-down,.rtmedia-container td.hide-for-medium,.rtmedia-activity-container td.hide-for-medium,#buddypress div.rtmedia-activity-container td.hide-for-medium,.rtmedia-container td.hide-for-medium-up,.rtmedia-activity-container td.hide-for-medium-up,#buddypress div.rtmedia-activity-container td.hide-for-medium-up,.rtmedia-container td.hide-for-large,.rtmedia-activity-container td.hide-for-large,#buddypress div.rtmedia-activity-container td.hide-for-large,.rtmedia-container td.hide-for-large-up,.rtmedia-activity-container td.hide-for-large-up,#buddypress div.rtmedia-activity-container td.hide-for-large-up,.rtmedia-container td.hide-for-xlarge,.rtmedia-activity-container td.hide-for-xlarge,#buddypress div.rtmedia-activity-container td.hide-for-xlarge,.rtmedia-container th.show-for-small,.rtmedia-activity-container th.show-for-small,#buddypress div.rtmedia-activity-container th.show-for-small,.rtmedia-container th.show-for-medium-down,.rtmedia-activity-container th.show-for-medium-down,#buddypress div.rtmedia-activity-container th.show-for-medium-down,.rtmedia-container th.show-for-large-down,.rtmedia-activity-container th.show-for-large-down,#buddypress div.rtmedia-activity-container th.show-for-large-down,.rtmedia-container th.hide-for-medium,.rtmedia-activity-container th.hide-for-medium,#buddypress div.rtmedia-activity-container th.hide-for-medium,.rtmedia-container th.hide-for-medium-up,.rtmedia-activity-container th.hide-for-medium-up,#buddypress div.rtmedia-activity-container th.hide-for-medium-up,.rtmedia-container th.hide-for-large,.rtmedia-activity-container th.hide-for-large,#buddypress div.rtmedia-activity-container th.hide-for-large,.rtmedia-container th.hide-for-large-up,.rtmedia-activity-container th.hide-for-large-up,#buddypress div.rtmedia-activity-container th.hide-for-large-up,.rtmedia-container th.hide-for-xlarge,.rtmedia-activity-container th.hide-for-xlarge,#buddypress div.rtmedia-activity-container th.hide-for-xlarge{display:table-cell !important}@media only screen and (min-width: 768px){.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,#buddypress div.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-up,.rtmedia-activity-container .show-for-medium-up,#buddypress div.rtmedia-activity-container .show-for-medium-up{display:inherit !important}.rtmedia-container .show-for-small,.rtmedia-activity-container .show-for-small,#buddypress div.rtmedia-activity-container .show-for-small{display:none !important}.rtmedia-container .hide-for-small,.rtmedia-activity-container .hide-for-small,#buddypress div.rtmedia-activity-container .hide-for-small{display:inherit !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,#buddypress div.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-up,.rtmedia-activity-container .hide-for-medium-up,#buddypress div.rtmedia-activity-container .hide-for-medium-up{display:none !important}.rtmedia-container table.show-for-medium,.rtmedia-activity-container table.show-for-medium,#buddypress div.rtmedia-activity-container table.show-for-medium,.rtmedia-container table.show-for-medium-up,.rtmedia-activity-container table.show-for-medium-up,#buddypress div.rtmedia-activity-container table.show-for-medium-up,.rtmedia-container table.hide-for-small,.rtmedia-activity-container table.hide-for-small,#buddypress div.rtmedia-activity-container table.hide-for-small{display:table}.rtmedia-container thead.show-for-medium,.rtmedia-activity-container thead.show-for-medium,#buddypress div.rtmedia-activity-container thead.show-for-medium,.rtmedia-container thead.show-for-medium-up,.rtmedia-activity-container thead.show-for-medium-up,#buddypress div.rtmedia-activity-container thead.show-for-medium-up,.rtmedia-container thead.hide-for-small,.rtmedia-activity-container thead.hide-for-small,#buddypress div.rtmedia-activity-container thead.hide-for-small{display:table-header-group !important}.rtmedia-container tbody.show-for-medium,.rtmedia-activity-container tbody.show-for-medium,#buddypress div.rtmedia-activity-container tbody.show-for-medium,.rtmedia-container tbody.show-for-medium-up,.rtmedia-activity-container tbody.show-for-medium-up,#buddypress div.rtmedia-activity-container tbody.show-for-medium-up,.rtmedia-container tbody.hide-for-small,.rtmedia-activity-container tbody.hide-for-small,#buddypress div.rtmedia-activity-container tbody.hide-for-small{display:table-row-group !important}.rtmedia-container tr.show-for-medium,.rtmedia-activity-container tr.show-for-medium,#buddypress div.rtmedia-activity-container tr.show-for-medium,.rtmedia-container tr.show-for-medium-up,.rtmedia-activity-container tr.show-for-medium-up,#buddypress div.rtmedia-activity-container tr.show-for-medium-up,.rtmedia-container tr.hide-for-small,.rtmedia-activity-container tr.hide-for-small,#buddypress div.rtmedia-activity-container tr.hide-for-small{display:table-row !important}.rtmedia-container td.show-for-medium,.rtmedia-activity-container td.show-for-medium,#buddypress div.rtmedia-activity-container td.show-for-medium,.rtmedia-container td.show-for-medium-up,.rtmedia-activity-container td.show-for-medium-up,#buddypress div.rtmedia-activity-container td.show-for-medium-up,.rtmedia-container td.hide-for-small,.rtmedia-activity-container td.hide-for-small,#buddypress div.rtmedia-activity-container td.hide-for-small,.rtmedia-container th.show-for-medium,.rtmedia-activity-container th.show-for-medium,#buddypress div.rtmedia-activity-container th.show-for-medium,.rtmedia-container th.show-for-medium-up,.rtmedia-activity-container th.show-for-medium-up,#buddypress div.rtmedia-activity-container th.show-for-medium-up,.rtmedia-container th.hide-for-small,.rtmedia-activity-container th.hide-for-small,#buddypress div.rtmedia-activity-container th.hide-for-small{display:table-cell !important}}@media only screen and (min-width: 1280px){.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,#buddypress div.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-up,.rtmedia-activity-container .show-for-large-up,#buddypress div.rtmedia-activity-container .show-for-large-up{display:inherit !important}.rtmedia-container .show-for-medium,.rtmedia-activity-container .show-for-medium,#buddypress div.rtmedia-activity-container .show-for-medium,.rtmedia-container .show-for-medium-down,.rtmedia-activity-container .show-for-medium-down,#buddypress div.rtmedia-activity-container .show-for-medium-down{display:none !important}.rtmedia-container .hide-for-medium,.rtmedia-activity-container .hide-for-medium,#buddypress div.rtmedia-activity-container .hide-for-medium,.rtmedia-container .hide-for-medium-down,.rtmedia-activity-container .hide-for-medium-down,#buddypress div.rtmedia-activity-container .hide-for-medium-down{display:inherit !important}.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,#buddypress div.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-up,.rtmedia-activity-container .hide-for-large-up,#buddypress div.rtmedia-activity-container .hide-for-large-up{display:none !important}.rtmedia-container table.show-for-large,.rtmedia-activity-container table.show-for-large,#buddypress div.rtmedia-activity-container table.show-for-large,.rtmedia-container table.show-for-large-up,.rtmedia-activity-container table.show-for-large-up,#buddypress div.rtmedia-activity-container table.show-for-large-up,.rtmedia-container table.hide-for-medium,.rtmedia-activity-container table.hide-for-medium,#buddypress div.rtmedia-activity-container table.hide-for-medium,.rtmedia-container table.hide-for-medium-down,.rtmedia-activity-container table.hide-for-medium-down,#buddypress div.rtmedia-activity-container table.hide-for-medium-down{display:table}.rtmedia-container thead.show-for-large,.rtmedia-activity-container thead.show-for-large,#buddypress div.rtmedia-activity-container thead.show-for-large,.rtmedia-container thead.show-for-large-up,.rtmedia-activity-container thead.show-for-large-up,#buddypress div.rtmedia-activity-container thead.show-for-large-up,.rtmedia-container thead.hide-for-medium,.rtmedia-activity-container thead.hide-for-medium,#buddypress div.rtmedia-activity-container thead.hide-for-medium,.rtmedia-container thead.hide-for-medium-down,.rtmedia-activity-container thead.hide-for-medium-down,#buddypress div.rtmedia-activity-container thead.hide-for-medium-down{display:table-header-group !important}.rtmedia-container tbody.show-for-large,.rtmedia-activity-container tbody.show-for-large,#buddypress div.rtmedia-activity-container tbody.show-for-large,.rtmedia-container tbody.show-for-large-up,.rtmedia-activity-container tbody.show-for-large-up,#buddypress div.rtmedia-activity-container tbody.show-for-large-up,.rtmedia-container tbody.hide-for-medium,.rtmedia-activity-container tbody.hide-for-medium,#buddypress div.rtmedia-activity-container tbody.hide-for-medium,.rtmedia-container tbody.hide-for-medium-down,.rtmedia-activity-container tbody.hide-for-medium-down,#buddypress div.rtmedia-activity-container tbody.hide-for-medium-down{display:table-row-group !important}.rtmedia-container tr.show-for-large,.rtmedia-activity-container tr.show-for-large,#buddypress div.rtmedia-activity-container tr.show-for-large,.rtmedia-container tr.show-for-large-up,.rtmedia-activity-container tr.show-for-large-up,#buddypress div.rtmedia-activity-container tr.show-for-large-up,.rtmedia-container tr.hide-for-medium,.rtmedia-activity-container tr.hide-for-medium,#buddypress div.rtmedia-activity-container tr.hide-for-medium,.rtmedia-container tr.hide-for-medium-down,.rtmedia-activity-container tr.hide-for-medium-down,#buddypress div.rtmedia-activity-container tr.hide-for-medium-down{display:table-row !important}.rtmedia-container td.show-for-large,.rtmedia-activity-container td.show-for-large,#buddypress div.rtmedia-activity-container td.show-for-large,.rtmedia-container td.show-for-large-up,.rtmedia-activity-container td.show-for-large-up,#buddypress div.rtmedia-activity-container td.show-for-large-up,.rtmedia-container td.hide-for-medium,.rtmedia-activity-container td.hide-for-medium,#buddypress div.rtmedia-activity-container td.hide-for-medium,.rtmedia-container td.hide-for-medium-down,.rtmedia-activity-container td.hide-for-medium-down,#buddypress div.rtmedia-activity-container td.hide-for-medium-down,.rtmedia-container th.show-for-large,.rtmedia-activity-container th.show-for-large,#buddypress div.rtmedia-activity-container th.show-for-large,.rtmedia-container th.show-for-large-up,.rtmedia-activity-container th.show-for-large-up,#buddypress div.rtmedia-activity-container th.show-for-large-up,.rtmedia-container th.hide-for-medium,.rtmedia-activity-container th.hide-for-medium,#buddypress div.rtmedia-activity-container th.hide-for-medium,.rtmedia-container th.hide-for-medium-down,.rtmedia-activity-container th.hide-for-medium-down,#buddypress div.rtmedia-activity-container th.hide-for-medium-down{display:table-cell !important}}@media only screen and (min-width: 1440px){.rtmedia-container .show-for-xlarge,.rtmedia-activity-container .show-for-xlarge,#buddypress div.rtmedia-activity-container .show-for-xlarge{display:inherit !important}.rtmedia-container .show-for-large,.rtmedia-activity-container .show-for-large,#buddypress div.rtmedia-activity-container .show-for-large,.rtmedia-container .show-for-large-down,.rtmedia-activity-container .show-for-large-down,#buddypress div.rtmedia-activity-container .show-for-large-down{display:none !important}.rtmedia-container .hide-for-large,.rtmedia-activity-container .hide-for-large,#buddypress div.rtmedia-activity-container .hide-for-large,.rtmedia-container .hide-for-large-down,.rtmedia-activity-container .hide-for-large-down,#buddypress div.rtmedia-activity-container .hide-for-large-down{display:inherit !important}.rtmedia-container .hide-for-xlarge,.rtmedia-activity-container .hide-for-xlarge,#buddypress div.rtmedia-activity-container .hide-for-xlarge{display:none !important}.rtmedia-container table.show-for-xlarge,.rtmedia-activity-container table.show-for-xlarge,#buddypress div.rtmedia-activity-container table.show-for-xlarge,.rtmedia-container table.hide-for-large,.rtmedia-activity-container table.hide-for-large,#buddypress div.rtmedia-activity-container table.hide-for-large,.rtmedia-container table.hide-for-large-down,.rtmedia-activity-container table.hide-for-large-down,#buddypress div.rtmedia-activity-container table.hide-for-large-down{display:table}.rtmedia-container thead.show-for-xlarge,.rtmedia-activity-container thead.show-for-xlarge,#buddypress div.rtmedia-activity-container thead.show-for-xlarge,.rtmedia-container thead.hide-for-large,.rtmedia-activity-container thead.hide-for-large,#buddypress div.rtmedia-activity-container thead.hide-for-large,.rtmedia-container thead.hide-for-large-down,.rtmedia-activity-container thead.hide-for-large-down,#buddypress div.rtmedia-activity-container thead.hide-for-large-down{display:table-header-group !important}.rtmedia-container tbody.show-for-xlarge,.rtmedia-activity-container tbody.show-for-xlarge,#buddypress div.rtmedia-activity-container tbody.show-for-xlarge,.rtmedia-container tbody.hide-for-large,.rtmedia-activity-container tbody.hide-for-large,#buddypress div.rtmedia-activity-container tbody.hide-for-large,.rtmedia-container tbody.hide-for-large-down,.rtmedia-activity-container tbody.hide-for-large-down,#buddypress div.rtmedia-activity-container tbody.hide-for-large-down{display:table-row-group !important}.rtmedia-container tr.show-for-xlarge,.rtmedia-activity-container tr.show-for-xlarge,#buddypress div.rtmedia-activity-container tr.show-for-xlarge,.rtmedia-container tr.hide-for-large,.rtmedia-activity-container tr.hide-for-large,#buddypress div.rtmedia-activity-container tr.hide-for-large,.rtmedia-container tr.hide-for-large-down,.rtmedia-activity-container tr.hide-for-large-down,#buddypress div.rtmedia-activity-container tr.hide-for-large-down{display:table-row !important}.rtmedia-container td.show-for-xlarge,.rtmedia-activity-container td.show-for-xlarge,#buddypress div.rtmedia-activity-container td.show-for-xlarge,.rtmedia-container td.hide-for-large,.rtmedia-activity-container td.hide-for-large,#buddypress div.rtmedia-activity-container td.hide-for-large,.rtmedia-container td.hide-for-large-down,.rtmedia-activity-container td.hide-for-large-down,#buddypress div.rtmedia-activity-container td.hide-for-large-down,.rtmedia-container th.show-for-xlarge,.rtmedia-activity-container th.show-for-xlarge,#buddypress div.rtmedia-activity-container th.show-for-xlarge,.rtmedia-container th.hide-for-large,.rtmedia-activity-container th.hide-for-large,#buddypress div.rtmedia-activity-container th.hide-for-large,.rtmedia-container th.hide-for-large-down,.rtmedia-activity-container th.hide-for-large-down,#buddypress div.rtmedia-activity-container th.hide-for-large-down{display:table-cell !important}}.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,#buddypress div.rtmedia-activity-container .show-for-landscape,.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,#buddypress div.rtmedia-activity-container .hide-for-portrait{display:inherit !important}.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,#buddypress div.rtmedia-activity-container .hide-for-landscape,.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait,#buddypress div.rtmedia-activity-container .show-for-portrait{display:none !important}.rtmedia-container table.hide-for-landscape,.rtmedia-activity-container table.hide-for-landscape,#buddypress div.rtmedia-activity-container table.hide-for-landscape,.rtmedia-container table.show-for-portrait,.rtmedia-activity-container table.show-for-portrait,#buddypress div.rtmedia-activity-container table.show-for-portrait{display:table}.rtmedia-container thead.hide-for-landscape,.rtmedia-activity-container thead.hide-for-landscape,#buddypress div.rtmedia-activity-container thead.hide-for-landscape,.rtmedia-container thead.show-for-portrait,.rtmedia-activity-container thead.show-for-portrait,#buddypress div.rtmedia-activity-container thead.show-for-portrait{display:table-header-group !important}.rtmedia-container tbody.hide-for-landscape,.rtmedia-activity-container tbody.hide-for-landscape,#buddypress div.rtmedia-activity-container tbody.hide-for-landscape,.rtmedia-container tbody.show-for-portrait,.rtmedia-activity-container tbody.show-for-portrait,#buddypress div.rtmedia-activity-container tbody.show-for-portrait{display:table-row-group !important}.rtmedia-container tr.hide-for-landscape,.rtmedia-activity-container tr.hide-for-landscape,#buddypress div.rtmedia-activity-container tr.hide-for-landscape,.rtmedia-container tr.show-for-portrait,.rtmedia-activity-container tr.show-for-portrait,#buddypress div.rtmedia-activity-container tr.show-for-portrait{display:table-row !important}.rtmedia-container td.hide-for-landscape,.rtmedia-activity-container td.hide-for-landscape,#buddypress div.rtmedia-activity-container td.hide-for-landscape,.rtmedia-container td.show-for-portrait,.rtmedia-activity-container td.show-for-portrait,#buddypress div.rtmedia-activity-container td.show-for-portrait,.rtmedia-container th.hide-for-landscape,.rtmedia-activity-container th.hide-for-landscape,#buddypress div.rtmedia-activity-container th.hide-for-landscape,.rtmedia-container th.show-for-portrait,.rtmedia-activity-container th.show-for-portrait,#buddypress div.rtmedia-activity-container th.show-for-portrait{display:table-cell !important}@media only screen and (orientation: landscape){.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,#buddypress div.rtmedia-activity-container .show-for-landscape,.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,#buddypress div.rtmedia-activity-container .hide-for-portrait{display:inherit !important}.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,#buddypress div.rtmedia-activity-container .hide-for-landscape,.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait,#buddypress div.rtmedia-activity-container .show-for-portrait{display:none !important}.rtmedia-container table.show-for-landscape,.rtmedia-activity-container table.show-for-landscape,#buddypress div.rtmedia-activity-container table.show-for-landscape,.rtmedia-container table.hide-for-portrait,.rtmedia-activity-container table.hide-for-portrait,#buddypress div.rtmedia-activity-container table.hide-for-portrait{display:table}.rtmedia-container thead.show-for-landscape,.rtmedia-activity-container thead.show-for-landscape,#buddypress div.rtmedia-activity-container thead.show-for-landscape,.rtmedia-container thead.hide-for-portrait,.rtmedia-activity-container thead.hide-for-portrait,#buddypress div.rtmedia-activity-container thead.hide-for-portrait{display:table-header-group !important}.rtmedia-container tbody.show-for-landscape,.rtmedia-activity-container tbody.show-for-landscape,#buddypress div.rtmedia-activity-container tbody.show-for-landscape,.rtmedia-container tbody.hide-for-portrait,.rtmedia-activity-container tbody.hide-for-portrait,#buddypress div.rtmedia-activity-container tbody.hide-for-portrait{display:table-row-group !important}.rtmedia-container tr.show-for-landscape,.rtmedia-activity-container tr.show-for-landscape,#buddypress div.rtmedia-activity-container tr.show-for-landscape,.rtmedia-container tr.hide-for-portrait,.rtmedia-activity-container tr.hide-for-portrait,#buddypress div.rtmedia-activity-container tr.hide-for-portrait{display:table-row !important}.rtmedia-container td.show-for-landscape,.rtmedia-activity-container td.show-for-landscape,#buddypress div.rtmedia-activity-container td.show-for-landscape,.rtmedia-container td.hide-for-portrait,.rtmedia-activity-container td.hide-for-portrait,#buddypress div.rtmedia-activity-container td.hide-for-portrait,.rtmedia-container th.show-for-landscape,.rtmedia-activity-container th.show-for-landscape,#buddypress div.rtmedia-activity-container th.show-for-landscape,.rtmedia-container th.hide-for-portrait,.rtmedia-activity-container th.hide-for-portrait,#buddypress div.rtmedia-activity-container th.hide-for-portrait{display:table-cell !important}}@media only screen and (orientation: portrait){.rtmedia-container .show-for-portrait,.rtmedia-activity-container .show-for-portrait,#buddypress div.rtmedia-activity-container .show-for-portrait,.rtmedia-container .hide-for-landscape,.rtmedia-activity-container .hide-for-landscape,#buddypress div.rtmedia-activity-container .hide-for-landscape{display:inherit !important}.rtmedia-container .hide-for-portrait,.rtmedia-activity-container .hide-for-portrait,#buddypress div.rtmedia-activity-container .hide-for-portrait,.rtmedia-container .show-for-landscape,.rtmedia-activity-container .show-for-landscape,#buddypress div.rtmedia-activity-container .show-for-landscape{display:none !important}.rtmedia-container table.show-for-portrait,.rtmedia-activity-container table.show-for-portrait,#buddypress div.rtmedia-activity-container table.show-for-portrait,.rtmedia-container table.hide-for-landscape,.rtmedia-activity-container table.hide-for-landscape,#buddypress div.rtmedia-activity-container table.hide-for-landscape{display:table}.rtmedia-container thead.show-for-portrait,.rtmedia-activity-container thead.show-for-portrait,#buddypress div.rtmedia-activity-container thead.show-for-portrait,.rtmedia-container thead.hide-for-landscape,.rtmedia-activity-container thead.hide-for-landscape,#buddypress div.rtmedia-activity-container thead.hide-for-landscape{display:table-header-group !important}.rtmedia-container tbody.show-for-portrait,.rtmedia-activity-container tbody.show-for-portrait,#buddypress div.rtmedia-activity-container tbody.show-for-portrait,.rtmedia-container tbody.hide-for-landscape,.rtmedia-activity-container tbody.hide-for-landscape,#buddypress div.rtmedia-activity-container tbody.hide-for-landscape{display:table-row-group !important}.rtmedia-container tr.show-for-portrait,.rtmedia-activity-container tr.show-for-portrait,#buddypress div.rtmedia-activity-container tr.show-for-portrait,.rtmedia-container tr.hide-for-landscape,.rtmedia-activity-container tr.hide-for-landscape,#buddypress div.rtmedia-activity-container tr.hide-for-landscape{display:table-row !important}.rtmedia-container td.show-for-portrait,.rtmedia-activity-container td.show-for-portrait,#buddypress div.rtmedia-activity-container td.show-for-portrait,.rtmedia-container td.hide-for-landscape,.rtmedia-activity-container td.hide-for-landscape,#buddypress div.rtmedia-activity-container td.hide-for-landscape,.rtmedia-container th.show-for-portrait,.rtmedia-activity-container th.show-for-portrait,#buddypress div.rtmedia-activity-container th.show-for-portrait,.rtmedia-container th.hide-for-landscape,.rtmedia-activity-container th.hide-for-landscape,#buddypress div.rtmedia-activity-container th.hide-for-landscape{display:table-cell !important}}.rtmedia-container .show-for-touch,.rtmedia-activity-container .show-for-touch,#buddypress div.rtmedia-activity-container .show-for-touch{display:none !important}.rtmedia-container .hide-for-touch,.rtmedia-activity-container .hide-for-touch,#buddypress div.rtmedia-activity-container .hide-for-touch{display:inherit !important}.rtmedia-container .touch .show-for-touch,.rtmedia-activity-container .touch .show-for-touch,#buddypress div.rtmedia-activity-container .touch .show-for-touch{display:inherit !important}.rtmedia-container .touch .hide-for-touch,.rtmedia-activity-container .touch .hide-for-touch,#buddypress div.rtmedia-activity-container .touch .hide-for-touch{display:none !important}.rtmedia-container table.hide-for-touch,.rtmedia-activity-container table.hide-for-touch,#buddypress div.rtmedia-activity-container table.hide-for-touch{display:table}.rtmedia-container .touch table.show-for-touch,.rtmedia-activity-container .touch table.show-for-touch,#buddypress div.rtmedia-activity-container .touch table.show-for-touch{display:table}.rtmedia-container thead.hide-for-touch,.rtmedia-activity-container thead.hide-for-touch,#buddypress div.rtmedia-activity-container thead.hide-for-touch{display:table-header-group !important}.rtmedia-container .touch thead.show-for-touch,.rtmedia-activity-container .touch thead.show-for-touch,#buddypress div.rtmedia-activity-container .touch thead.show-for-touch{display:table-header-group !important}.rtmedia-container tbody.hide-for-touch,.rtmedia-activity-container tbody.hide-for-touch,#buddypress div.rtmedia-activity-container tbody.hide-for-touch{display:table-row-group !important}.rtmedia-container .touch tbody.show-for-touch,.rtmedia-activity-container .touch tbody.show-for-touch,#buddypress div.rtmedia-activity-container .touch tbody.show-for-touch{display:table-row-group !important}.rtmedia-container tr.hide-for-touch,.rtmedia-activity-container tr.hide-for-touch,#buddypress div.rtmedia-activity-container tr.hide-for-touch{display:table-row !important}.rtmedia-container .touch tr.show-for-touch,.rtmedia-activity-container .touch tr.show-for-touch,#buddypress div.rtmedia-activity-container .touch tr.show-for-touch{display:table-row !important}.rtmedia-container td.hide-for-touch,.rtmedia-activity-container td.hide-for-touch,#buddypress div.rtmedia-activity-container td.hide-for-touch{display:table-cell !important}.rtmedia-container .touch td.show-for-touch,.rtmedia-activity-container .touch td.show-for-touch,#buddypress div.rtmedia-activity-container .touch td.show-for-touch{display:table-cell !important}.rtmedia-container th.hide-for-touch,.rtmedia-activity-container th.hide-for-touch,#buddypress div.rtmedia-activity-container th.hide-for-touch{display:table-cell !important}.rtmedia-container .touch th.show-for-touch,.rtmedia-activity-container .touch th.show-for-touch,#buddypress div.rtmedia-activity-container .touch th.show-for-touch{display:table-cell !important}.rtmedia-container .flex-video,.rtmedia-activity-container .flex-video,#buddypress div.rtmedia-activity-container .flex-video{position:relative;padding-top:1.5625em;padding-bottom:67.5%;height:0;margin-bottom:1em;overflow:hidden}.rtmedia-container .flex-video.widescreen,.rtmedia-activity-container .flex-video.widescreen,#buddypress div.rtmedia-activity-container .flex-video.widescreen{padding-bottom:57.25%}.rtmedia-container .flex-video.vimeo,.rtmedia-activity-container .flex-video.vimeo,#buddypress div.rtmedia-activity-container .flex-video.vimeo{padding-top:0}.rtmedia-container .flex-video iframe,.rtmedia-activity-container .flex-video iframe,#buddypress div.rtmedia-activity-container .flex-video iframe,.rtmedia-container .flex-video object,.rtmedia-activity-container .flex-video object,#buddypress div.rtmedia-activity-container .flex-video object,.rtmedia-container .flex-video embed,.rtmedia-activity-container .flex-video embed,#buddypress div.rtmedia-activity-container .flex-video embed,.rtmedia-container .flex-video video,.rtmedia-activity-container .flex-video video,#buddypress div.rtmedia-activity-container .flex-video video{position:absolute;top:0;left:0;width:100%;height:100%}.rtmedia-container #buddypress li,.rtmedia-activity-container #buddypress li{list-style:none}.rtmedia-container .row,.rtmedia-activity-container .row,#buddypress div.rtmedia-activity-container .row{max-width:95%}.rtmedia-container .rtmedia-item-title,.rtmedia-activity-container .rtmedia-item-title,#buddypress div.rtmedia-activity-container .rtmedia-item-title{text-align:center}.rtmedia-container .rtmedia-item-title h4,.rtmedia-activity-container .rtmedia-item-title h4,#buddypress div.rtmedia-activity-container .rtmedia-item-title h4{text-overflow:ellipsis;white-space:nowrap;width:100%;overflow:hidden;font-size:1.1em;text-align:center}.rtmedia-container .rtmedia-success,.rtmedia-activity-container .rtmedia-success,#buddypress div.rtmedia-activity-container .rtmedia-success{display:block;padding:10px;border:1px solid #008000;background-color:#90EE90;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.rtmedia-container h2,.rtmedia-activity-container h2,#buddypress div.rtmedia-activity-container h2{font-size:1.4em;font-weight:bold;line-height:2.4em}.rtmedia-container .drag-drop,.rtmedia-activity-container .drag-drop,#buddypress div.rtmedia-activity-container .drag-drop{border:4px dashed #DDD;text-align:center;background:#fafafa;overflow:hidden;padding:15px 0}.rtmedia-container .drag-drop.dragover,.rtmedia-activity-container .drag-drop.dragover,#buddypress div.rtmedia-activity-container .drag-drop.dragover{border-color:#83b4d8}.rtmedia-container .rtmedia-action-update,.rtmedia-activity-container .rtmedia-action-update,#buddypress div.rtmedia-activity-container .rtmedia-action-update{float:left;margin-top:12px;margin-right:10px}.rtmedia-container .rtmedia-list,.rtmedia-activity-container .rtmedia-list,#buddypress div.rtmedia-activity-container .rtmedia-list{list-style:none}.rtmedia-container .rtmedia-list .rtmedia-list-item,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item{word-wrap:break-word;margin:10px;float:left;list-style:none}.rtmedia-container .rtmedia-list .rtmedia-list-item a,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a{text-decoration:none}.rtmedia-container .rtmedia-list .rtmedia-list-item a h4,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a h4,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item a h4{line-height:1.4em;font-size:1.2em;padding-top:10px}.rtmedia-container .rtmedia-list .rtmedia-list-item.media-type-music,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-music,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-music,.rtmedia-container .rtmedia-list .rtmedia-list-item.media-type-video,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-video,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-video{width:100%}.rtmedia-container .rtmedia-list .rtmedia-list-item.media-type-music .mejs-controls .mejs-time-rail,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-music .mejs-controls .mejs-time-rail,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-music .mejs-controls .mejs-time-rail,.rtmedia-container .rtmedia-list .rtmedia-list-item.media-type-video .mejs-controls .mejs-time-rail,.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-video .mejs-controls .mejs-time-rail,#buddypress div.rtmedia-activity-container .rtmedia-list .rtmedia-list-item.media-type-video .mejs-controls .mejs-time-rail{margin:8px 2px 2px 0}.rtmedia-container .rtmedia-media img,.rtmedia-activity-container .rtmedia-media img,#buddypress div.rtmedia-activity-container .rtmedia-media img{max-width:100%}.rtmedia-container .rtmedia-item-thumbnail,.rtmedia-activity-container .rtmedia-item-thumbnail,#buddypress div.rtmedia-activity-container .rtmedia-item-thumbnail{text-align:center}.rtmedia-container .rtmedia-item-thumbnail img,.rtmedia-activity-container .rtmedia-item-thumbnail img,#buddypress div.rtmedia-activity-container .rtmedia-item-thumbnail img{vertical-align:middle}.rtmedia-container .rtmedia_next_prev,.rtmedia-activity-container .rtmedia_next_prev,#buddypress div.rtmedia-activity-container .rtmedia_next_prev{clear:both}.rtmedia-container .rtmedia_next_prev a,.rtmedia-activity-container .rtmedia_next_prev a,#buddypress div.rtmedia-activity-container .rtmedia_next_prev a{display:block;clear:both;background-color:#E9E9E9;padding:10px;text-align:center;text-decoration:none;color:#000;margin:15px}.rtmedia-container .rtmedia-item-comments-container,.rtmedia-activity-container .rtmedia-item-comments-container,#buddypress div.rtmedia-activity-container .rtmedia-item-comments-container{margin:3% 3%}.rtmedia-container .rtmedia-comment,.rtmedia-activity-container .rtmedia-comment,#buddypress div.rtmedia-activity-container .rtmedia-comment{list-style:none;background:#f6f6f6;border:1px solid #ddd;-moz-border-radius:3px;border-radius:3px;margin:5px 0;padding:1px 5px 25px;width:391px;max-width:100%}.rtmedia-container .rtmedia-comment .rtmedia-comment-author,.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-author,#buddypress div.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-author{display:block}.rtmedia-container .rtmedia-comment .rtmedia-comment-content,.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-content,#buddypress div.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-content{display:block}.rtmedia-container .rtmedia-comment .rtmedia-comment-date,.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-date,#buddypress div.rtmedia-activity-container .rtmedia-comment .rtmedia-comment-date{display:block;float:right}.rtmedia-container .rtmedia-bp-header,.rtmedia-activity-container .rtmedia-bp-header,#buddypress div.rtmedia-activity-container .rtmedia-bp-header{width:460px;margin:auto}.rtmedia-container #div-attache-rtmedia,.rtmedia-activity-container #div-attache-rtmedia,#buddypress div.rtmedia-activity-container #div-attache-rtmedia{display:none}.rtmedia-container #rtMedia-update-queue-list p span,.rtmedia-activity-container #rtMedia-update-queue-list p span{margin-right:20px}.rtmedia-container .rtmedia-move-container,.rtmedia-activity-container .rtmedia-move-container,#buddypress div.rtmedia-activity-container .rtmedia-move-container{display:none}.rtmedia-container #rtmedia-add-media-button-post-update,.rtmedia-activity-container #rtmedia-add-media-button-post-update,#buddypress div.rtmedia-activity-container #rtmedia-add-media-button-post-update{float:left;margin-top:10px;margin-right:20px}.rtmedia-container #whats-new-post-in-box,.rtmedia-activity-container #whats-new-post-in-box,#buddypress div.rtmedia-activity-container #whats-new-post-in-box{float:left}.rtmedia-container .rtmedia-activity-text,.rtmedia-activity-container .rtmedia-activity-text,#buddypress div.rtmedia-activity-container .rtmedia-activity-text{display:block;padding-bottom:10px}.rtmedia-container .rtmedia-merge-container,.rtmedia-activity-container .rtmedia-merge-container,#buddypress div.rtmedia-activity-container .rtmedia-merge-container{display:none}.rtmedia-container .rtmedia-create-new-album-container,.rtmedia-activity-container .rtmedia-create-new-album-container,#buddypress div.rtmedia-activity-container .rtmedia-create-new-album-container{display:none}.rtmedia-container select,.rtmedia-activity-container select,#buddypress div.rtmedia-activity-container select{width:auto}.rtmedia-container.rtmedia-single-container .row,.rtmedia-single-container.rtmedia-activity-container .row,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row{background-color:#FFF}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container{padding-top:10px;padding-bottom:10px}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media div.mejs-layers div.mejs-poster,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media div.mejs-layers div.mejs-poster{overflow:hidden}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media .mejs-layers .mejs-overlay-button,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media .mejs-layers .mejs-overlay-button{margin:-50px 0 0 -50px}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media .mejs-layers .mejs-poster,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media .mejs-layers .mejs-poster{overflow:hidden}.rtmedia-container.rtmedia-single-container .row #rtmedia-single-media-container .rtmedia-media-title,.rtmedia-single-container.rtmedia-activity-container .row #rtmedia-single-media-container .rtmedia-media-title{margin:0 0 5px 0;display:block;font-weight:bold;letter-spacing:1px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta{padding:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta div.userprofile,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta div.userprofile,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta div.userprofile{float:left;padding:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta div.username,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta div.username,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta div.username{padding:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta button,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta button,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta button{color:#5E5E5E;background-color:#EBEBEB;background-repeat:repeat-x;background-image:-moz-linear-gradient(top, #f9f9f9, #ebebeb);background-image:-ms-linear-gradient(top, #f9f9f9, #ebebeb);background-image:-webkit-linear-gradient(top, #f9f9f9, #ebebeb);background-image:-o-linear-gradient(top, #f9f9f9, #ebebeb);background-image:linear-gradient(top, #f9f9f9,#ebebeb)}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta>a,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta>a,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta>a{float:left;margin:10px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta .rtmedia-item-actions>a,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>a,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>a{display:inline-block;float:left}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta .rtmedia-item-actions>form,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>form,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions>form{float:left;margin-right:5px}.rtmedia-container.rtmedia-single-container .row .rtmedia-single-meta .rtmedia-item-actions .rtmedia-action-buttons span,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions .rtmedia-action-buttons span,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-single-meta .rtmedia-item-actions .rtmedia-action-buttons span{background:#EEE;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;border-radius:50%;border:1px solid #CCC;color:#999;display:inline;font-size:70%;margin-left:2px;margin-right:2px;padding:3px 6px;text-align:center;vertical-align:middle}.rtmedia-container.rtmedia-single-container .row .rtmedia-item-comments,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments{background-color:transparent}.rtmedia-container.rtmedia-single-container .row .rtmedia-item-comments div,.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments div,#buddypress div.rtmedia-single-container.rtmedia-activity-container .row .rtmedia-item-comments div{background-color:transparent}.rtmedia-container #wp-description-editor-tools a.wp-switch-editor,.rtmedia-activity-container #wp-description-editor-tools a.wp-switch-editor{margin:5px 5px 0 0;padding:4px 5px 2px;float:right;cursor:pointer;border:1px solid;border-color:#DFDFDF #DFDFDF #CCC;font:13px/18px Arial,Helvetica,sans-serif normal;height:auto}.rtmedia-container #description_toolbargroup .mceToolbar td,.rtmedia-activity-container #description_toolbargroup .mceToolbar td{padding:0px}.rtmedia-container #wp-description-editor-container,.rtmedia-activity-container #wp-description-editor-container,#buddypress div.rtmedia-activity-container #wp-description-editor-container{border-width:1px;border-style:solid;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;border-color:#CCC #CCC #DFDFDF}.rtmedia-container .rtmedia-change-cover-arts p,.rtmedia-activity-container .rtmedia-change-cover-arts p,#buddypress div.rtmedia-activity-container .rtmedia-change-cover-arts p{padding:5px 0}#buddypress div.rtmedia-activity-container ul.rtmedia-list li{float:left;padding:10px}#buddypress div.rtmedia-activity-container ul.rtmedia-list li .rtmedia-item-thumbnail{overflow:hidden}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video{float:none}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail{margin:0 auto;overflow:hidden}#buddypress div.rtmedia-activity-container ul.rtmedia-list li.media-type-video .rtmedia-item-thumbnail .mejs-overlay-button{margin:-50px 0 0 -50px}#buddypress .mejs-controls button,.rtmedia-container .mejs-controls button,.rtmedia-activity-container .mejs-controls button,#buddypress div.rtmedia-activity-container .mejs-controls button{padding:4px 8px;border:none;background:rgba(0,0,0,0) url("../../../lib/media-element/controls.png") no-repeat}#buddypress .mejs-controls .mejs-play button,.rtmedia-container .mejs-controls .mejs-play button,.rtmedia-activity-container .mejs-controls .mejs-play button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-play button{background-position:0 0}#buddypress .mejs-controls .mejs-pause button,.rtmedia-container .mejs-controls .mejs-pause button,.rtmedia-activity-container .mejs-controls .mejs-pause button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-pause button{background-position:0 -16px}#buddypress .mejs-controls .mejs-unmute button,.rtmedia-container .mejs-controls .mejs-unmute button,.rtmedia-activity-container .mejs-controls .mejs-unmute button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-unmute button{background-position:-16px 0}#buddypress .mejs-controls .mejs-mute button,.rtmedia-container .mejs-controls .mejs-mute button,.rtmedia-activity-container .mejs-controls .mejs-mute button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-mute button{background-position:-16px -16px}#buddypress .mejs-controls .mejs-fullscreen-button button,.rtmedia-container .mejs-controls .mejs-fullscreen-button button,.rtmedia-activity-container .mejs-controls .mejs-fullscreen-button button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-fullscreen-button button{background-position:-32px 0}#buddypress .mejs-controls .mejs-unfullscreen button,.rtmedia-container .mejs-controls .mejs-unfullscreen button,.rtmedia-activity-container .mejs-controls .mejs-unfullscreen button,#buddypress div.rtmedia-activity-container .mejs-controls .mejs-unfullscreen button{background-position:-32px -16px}.mfp-content #rtmedia-single-media-container .rtmedia-media{text-align:center;background-color:#333}.mfp-content #rtmedia-single-media-container .rtmedia-media img{max-height:95%}#rtmedia-action-update{float:left;padding-right:10px}#header{z-index:1 !important}.bp_media_content video{background-color:black}.rtmedia-success{display:block;padding:10px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;background-color:#2ECC71;color:white}.rtmedia-error{color:white;display:block;padding:10px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;background-color:#E74C3C}.rtmp-uploaded-file{width:100%}.close{cursor:pointer;color:red}button.mfp-arrow,button.mfp-arrow:active{margin-top:-30px}button.mfp-close{margin-top:-10px}#object-nav li,#group-admins li,.item-list-tabs li{list-style:none}.mejs-video .mejs-controls{position:abosulute}
|
trunk/app/assets/css/settings.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
#bp-media-settings-boxes{margin:0}#bp-media-settings-boxes *,#bp-media-settings-boxes *:before,#bp-media-settings-boxes *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}#bp-media-settings-boxes html,#bp-media-settings-boxes body{font-size:100%}#bp-media-settings-boxes body{background:#fff;color:#222;padding:0;margin:0;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;font-weight:normal;font-style:normal;line-height:1;position:relative;cursor:default}#bp-media-settings-boxes a:hover{cursor:pointer}#bp-media-settings-boxes a:focus{outline:none}#bp-media-settings-boxes img,#bp-media-settings-boxes object,#bp-media-settings-boxes embed{max-width:100%;height:auto}#bp-media-settings-boxes object,#bp-media-settings-boxes embed{height:100%}#bp-media-settings-boxes img{-ms-interpolation-mode:bicubic}#bp-media-settings-boxes #map_canvas img,#bp-media-settings-boxes #map_canvas embed,#bp-media-settings-boxes #map_canvas object,#bp-media-settings-boxes .map_canvas img,#bp-media-settings-boxes .map_canvas embed,#bp-media-settings-boxes .map_canvas object{max-width:none !important}#bp-media-settings-boxes .left{float:left !important}#bp-media-settings-boxes .right{float:right !important}#bp-media-settings-boxes .text-left{text-align:left !important}#bp-media-settings-boxes .text-right{text-align:right !important}#bp-media-settings-boxes .text-center{text-align:center !important}#bp-media-settings-boxes .text-justify{text-align:justify !important}#bp-media-settings-boxes .hide{display:none}#bp-media-settings-boxes .antialiased{-webkit-font-smoothing:antialiased}#bp-media-settings-boxes img{display:inline-block;vertical-align:middle}#bp-media-settings-boxes textarea{height:auto;min-height:50px}#bp-media-settings-boxes select{width:100%}#bp-media-settings-boxes .section-container,#bp-media-settings-boxes .section-container.auto{width:100%;display:block;margin-bottom:1.25em;border:1px solid #ccc;border-top:none}#bp-media-settings-boxes .section-container>section,#bp-media-settings-boxes .section-container>.section,#bp-media-settings-boxes .section-container.auto>section,#bp-media-settings-boxes .section-container.auto>.section{position:relative}#bp-media-settings-boxes .section-container>section>.title,#bp-media-settings-boxes .section-container>.section>.title,#bp-media-settings-boxes .section-container.auto>section>.title,#bp-media-settings-boxes .section-container.auto>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container>section>.title a,#bp-media-settings-boxes .section-container>.section>.title a,#bp-media-settings-boxes .section-container.auto>section>.title a,#bp-media-settings-boxes .section-container.auto>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container>section>.title:hover,#bp-media-settings-boxes .section-container>.section>.title:hover,#bp-media-settings-boxes .section-container.auto>section>.title:hover,#bp-media-settings-boxes .section-container.auto>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container>section .content,#bp-media-settings-boxes .section-container>.section .content,#bp-media-settings-boxes .section-container.auto>section .content,#bp-media-settings-boxes .section-container.auto>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container>section .content>*:last-child,#bp-media-settings-boxes .section-container>.section .content>*:last-child,#bp-media-settings-boxes .section-container.auto>section .content>*:last-child,#bp-media-settings-boxes .section-container.auto>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container>section .content>*:first-child,#bp-media-settings-boxes .section-container>.section .content>*:first-child,#bp-media-settings-boxes .section-container.auto>section .content>*:first-child,#bp-media-settings-boxes .section-container.auto>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.auto>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.auto>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container>section.active>.content,#bp-media-settings-boxes .section-container>.section.active>.content,#bp-media-settings-boxes .section-container.auto>section.active>.content,#bp-media-settings-boxes .section-container.auto>.section.active>.content{display:block}#bp-media-settings-boxes .section-container>section.active>.title,#bp-media-settings-boxes .section-container>.section.active>.title,#bp-media-settings-boxes .section-container.auto>section.active>.title,#bp-media-settings-boxes .section-container.auto>.section.active>.title{background:#d5d5d5}#bp-media-settings-boxes .section-container>section.active>.title a,#bp-media-settings-boxes .section-container>.section.active>.title a,#bp-media-settings-boxes .section-container.auto>section.active>.title a,#bp-media-settings-boxes .section-container.auto>.section.active>.title a{color:#333}#bp-media-settings-boxes .section-container>section>.title,#bp-media-settings-boxes .section-container>.section>.title,#bp-media-settings-boxes .section-container.auto>section>.title,#bp-media-settings-boxes .section-container.auto>.section>.title{top:0;width:100%;margin:0;border-top:solid 1px #ccc}#bp-media-settings-boxes .section-container>section>.title a,#bp-media-settings-boxes .section-container>.section>.title a,#bp-media-settings-boxes .section-container.auto>section>.title a,#bp-media-settings-boxes .section-container.auto>.section>.title a{width:100%}#bp-media-settings-boxes .section-container.tabs{border:0;position:relative}#bp-media-settings-boxes .section-container.tabs>section,#bp-media-settings-boxes .section-container.tabs>.section{border:0;position:static}#bp-media-settings-boxes .section-container.tabs>section>.title,#bp-media-settings-boxes .section-container.tabs>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container.tabs>section>.title a,#bp-media-settings-boxes .section-container.tabs>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container.tabs>section>.title:hover,#bp-media-settings-boxes .section-container.tabs>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container.tabs>section .content,#bp-media-settings-boxes .section-container.tabs>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container.tabs>section .content>*:last-child,#bp-media-settings-boxes .section-container.tabs>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container.tabs>section .content>*:first-child,#bp-media-settings-boxes .section-container.tabs>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container.tabs>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.tabs>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container.tabs>section.active>.content,#bp-media-settings-boxes .section-container.tabs>.section.active>.content{display:block}#bp-media-settings-boxes .section-container.tabs>section.active>.title,#bp-media-settings-boxes .section-container.tabs>.section.active>.title{background:#fff}#bp-media-settings-boxes .section-container.tabs>section.active>.title a,#bp-media-settings-boxes .section-container.tabs>.section.active>.title a{color:#333}#bp-media-settings-boxes .section-container.tabs>section>.title,#bp-media-settings-boxes .section-container.tabs>.section>.title{width:auto;border:solid 1px #ccc;border-right:0;border-bottom:0;position:absolute;top:0;z-index:1}#bp-media-settings-boxes .section-container.tabs>section>.title a,#bp-media-settings-boxes .section-container.tabs>.section>.title a{width:100%}#bp-media-settings-boxes .section-container.tabs>section:last-child .title,#bp-media-settings-boxes .section-container.tabs>.section:last-child .title{border-right:solid 1px #ccc}#bp-media-settings-boxes .section-container.tabs>section .content,#bp-media-settings-boxes .section-container.tabs>.section .content{border:solid 1px #ccc;position:absolute;z-index:10;display:none;top:-1px}#bp-media-settings-boxes .section-container.tabs>section.active>.title,#bp-media-settings-boxes .section-container.tabs>.section.active>.title{z-index:11;border-bottom:0;background-color:#fff}#bp-media-settings-boxes .section-container.tabs>section.active>.content,#bp-media-settings-boxes .section-container.tabs>.section.active>.content{position:relative}@media only screen and (min-width: 768px){#bp-media-settings-boxes .section-container.auto{border:0;position:relative}#bp-media-settings-boxes .section-container.auto>section,#bp-media-settings-boxes .section-container.auto>.section{border:0;position:static}#bp-media-settings-boxes .section-container.auto>section>.title,#bp-media-settings-boxes .section-container.auto>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container.auto>section>.title a,#bp-media-settings-boxes .section-container.auto>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container.auto>section>.title:hover,#bp-media-settings-boxes .section-container.auto>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container.auto>section .content,#bp-media-settings-boxes .section-container.auto>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container.auto>section .content>*:last-child,#bp-media-settings-boxes .section-container.auto>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container.auto>section .content>*:first-child,#bp-media-settings-boxes .section-container.auto>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container.auto>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.auto>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container.auto>section.active>.content,#bp-media-settings-boxes .section-container.auto>.section.active>.content{display:block}#bp-media-settings-boxes .section-container.auto>section.active>.title,#bp-media-settings-boxes .section-container.auto>.section.active>.title{background:#fff}#bp-media-settings-boxes .section-container.auto>section.active>.title a,#bp-media-settings-boxes .section-container.auto>.section.active>.title a{color:#333}#bp-media-settings-boxes .section-container.auto>section>.title,#bp-media-settings-boxes .section-container.auto>.section>.title{width:auto;border:solid 1px #ccc;border-right:0;border-bottom:0;position:absolute;top:0;z-index:1}#bp-media-settings-boxes .section-container.auto>section>.title a,#bp-media-settings-boxes .section-container.auto>.section>.title a{width:100%}#bp-media-settings-boxes .section-container.auto>section:last-child .title,#bp-media-settings-boxes .section-container.auto>.section:last-child .title{border-right:solid 1px #ccc}#bp-media-settings-boxes .section-container.auto>section .content,#bp-media-settings-boxes .section-container.auto>.section .content{border:solid 1px #ccc;position:absolute;z-index:10;display:none;top:-1px}#bp-media-settings-boxes .section-container.auto>section.active>.title,#bp-media-settings-boxes .section-container.auto>.section.active>.title{z-index:11;border-bottom:0;background-color:#fff}#bp-media-settings-boxes .section-container.auto>section.active>.content,#bp-media-settings-boxes .section-container.auto>.section.active>.content{position:relative}#bp-media-settings-boxes .section-container.accordion .section{padding-top:0 !important}#bp-media-settings-boxes .section-container.vertical-tabs{border:1px solid #ccc;position:relative}#bp-media-settings-boxes .section-container.vertical-tabs section,#bp-media-settings-boxes .section-container.vertical-tabs .section{padding-top:0 !important;border:0;position:static}#bp-media-settings-boxes .section-container.vertical-tabs section>.title,#bp-media-settings-boxes .section-container.vertical-tabs .section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container.vertical-tabs section>.title a,#bp-media-settings-boxes .section-container.vertical-tabs .section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container.vertical-tabs section>.title:hover,#bp-media-settings-boxes .section-container.vertical-tabs .section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container.vertical-tabs section .content,#bp-media-settings-boxes .section-container.vertical-tabs .section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container.vertical-tabs section .content>*:last-child,#bp-media-settings-boxes .section-container.vertical-tabs .section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container.vertical-tabs section .content>*:first-child,#bp-media-settings-boxes .section-container.vertical-tabs .section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container.vertical-tabs section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.vertical-tabs .section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container.vertical-tabs section.active>.content,#bp-media-settings-boxes .section-container.vertical-tabs .section.active>.content{display:block}#bp-media-settings-boxes .section-container.vertical-tabs section.active>.title,#bp-media-settings-boxes .section-container.vertical-tabs .section.active>.title{background:#d5d5d5}#bp-media-settings-boxes .section-container.vertical-tabs section.active>.title a,#bp-media-settings-boxes .section-container.vertical-tabs .section.active>.title a{color:#333}#bp-media-settings-boxes .section-container.vertical-tabs section>.title,#bp-media-settings-boxes .section-container.vertical-tabs .section>.title{position:absolute;border-top:solid 1px #ccc;width:12.5em}#bp-media-settings-boxes .section-container.vertical-tabs section:first-child .title,#bp-media-settings-boxes .section-container.vertical-tabs .section:first-child .title{border-top:0}#bp-media-settings-boxes .section-container.vertical-tabs section .content,#bp-media-settings-boxes .section-container.vertical-tabs .section .content{display:block;position:relative;left:12.5em;border-left:solid 1px #ccc;z-index:10}#bp-media-settings-boxes .section-container.vertical-tabs section.active>.title,#bp-media-settings-boxes .section-container.vertical-tabs .section.active>.title{background-color:#d5d5d5;width:12.5625em;border-right:solid 0 transparent;z-index:11}#bp-media-settings-boxes .section-container.vertical-tabs section.active:last-child .title,#bp-media-settings-boxes .section-container.vertical-tabs .section.active:last-child .title{border-bottom:0}#bp-media-settings-boxes .section-container.vertical-nav{border:0;position:relative}#bp-media-settings-boxes .section-container.vertical-nav>section,#bp-media-settings-boxes .section-container.vertical-nav>.section{padding-top:0 !important;position:relative}#bp-media-settings-boxes .section-container.vertical-nav>section>.title,#bp-media-settings-boxes .section-container.vertical-nav>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container.vertical-nav>section>.title a,#bp-media-settings-boxes .section-container.vertical-nav>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container.vertical-nav>section>.title:hover,#bp-media-settings-boxes .section-container.vertical-nav>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container.vertical-nav>section .content,#bp-media-settings-boxes .section-container.vertical-nav>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container.vertical-nav>section .content>*:last-child,#bp-media-settings-boxes .section-container.vertical-nav>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container.vertical-nav>section .content>*:first-child,#bp-media-settings-boxes .section-container.vertical-nav>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container.vertical-nav>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.vertical-nav>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container.vertical-nav>section.active>.content,#bp-media-settings-boxes .section-container.vertical-nav>.section.active>.content{display:block}#bp-media-settings-boxes .section-container.vertical-nav>section.active>.title,#bp-media-settings-boxes .section-container.vertical-nav>.section.active>.title{background:#d5d5d5}#bp-media-settings-boxes .section-container.vertical-nav>section.active>.title a,#bp-media-settings-boxes .section-container.vertical-nav>.section.active>.title a{color:#333}#bp-media-settings-boxes .section-container.vertical-nav>section>.title,#bp-media-settings-boxes .section-container.vertical-nav>.section>.title{border-top:none;border:solid 1px #ccc}#bp-media-settings-boxes .section-container.vertical-nav>section>.title a,#bp-media-settings-boxes .section-container.vertical-nav>.section>.title a{display:block;width:100%}#bp-media-settings-boxes .section-container.vertical-nav>section .content,#bp-media-settings-boxes .section-container.vertical-nav>.section .content{display:none}#bp-media-settings-boxes .section-container.vertical-nav>section:first-child .title,#bp-media-settings-boxes .section-container.vertical-nav>.section:first-child .title{border-bottom:none}#bp-media-settings-boxes .section-container.vertical-nav>section.active>.content,#bp-media-settings-boxes .section-container.vertical-nav>.section.active>.content{display:block;position:absolute;left:100%;top:0px;z-index:999;min-width:12.5em;border:solid 1px #ccc}#bp-media-settings-boxes .section-container.horizontal-nav{position:relative;background:#efefef;border:1px solid #ccc}#bp-media-settings-boxes .section-container.horizontal-nav>section,#bp-media-settings-boxes .section-container.horizontal-nav>.section{padding-top:0;border:0;position:static}#bp-media-settings-boxes .section-container.horizontal-nav>section>.title,#bp-media-settings-boxes .section-container.horizontal-nav>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .section-container.horizontal-nav>section>.title a,#bp-media-settings-boxes .section-container.horizontal-nav>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .section-container.horizontal-nav>section>.title:hover,#bp-media-settings-boxes .section-container.horizontal-nav>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .section-container.horizontal-nav>section .content,#bp-media-settings-boxes .section-container.horizontal-nav>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .section-container.horizontal-nav>section .content>*:last-child,#bp-media-settings-boxes .section-container.horizontal-nav>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .section-container.horizontal-nav>section .content>*:first-child,#bp-media-settings-boxes .section-container.horizontal-nav>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .section-container.horizontal-nav>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .section-container.horizontal-nav>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .section-container.horizontal-nav>section.active>.content,#bp-media-settings-boxes .section-container.horizontal-nav>.section.active>.content{display:block}#bp-media-settings-boxes .section-container.horizontal-nav>section.active>.title,#bp-media-settings-boxes .section-container.horizontal-nav>.section.active>.title{background:#d5d5d5}#bp-media-settings-boxes .section-container.horizontal-nav>section.active>.title a,#bp-media-settings-boxes .section-container.horizontal-nav>.section.active>.title a{color:#333}#bp-media-settings-boxes .section-container.horizontal-nav>section>.title,#bp-media-settings-boxes .section-container.horizontal-nav>.section>.title{width:auto;border:solid 1px #ccc;border-left:0;top:-1px;position:absolute;z-index:1}#bp-media-settings-boxes .section-container.horizontal-nav>section>.title a,#bp-media-settings-boxes .section-container.horizontal-nav>.section>.title a{width:100%}#bp-media-settings-boxes .section-container.horizontal-nav>section .content,#bp-media-settings-boxes .section-container.horizontal-nav>.section .content{display:none}#bp-media-settings-boxes .section-container.horizontal-nav>section.active>.content,#bp-media-settings-boxes .section-container.horizontal-nav>.section.active>.content{display:block;position:absolute;z-index:999;left:0;top:-2px;min-width:12.5em;border:solid 1px #ccc}}#bp-media-settings-boxes .no-js .section-container.auto,#bp-media-settings-boxes .no-js .section-container.accordion,#bp-media-settings-boxes .no-js .section-container.tabs,#bp-media-settings-boxes .no-js .section-container.vertical-tabs,#bp-media-settings-boxes .no-js .section-container.vertical-nav,#bp-media-settings-boxes .no-js .section-container.horizontal-nav{width:100%;display:block;margin-bottom:1.25em;border:1px solid #ccc;border-top:none}#bp-media-settings-boxes .no-js .section-container.auto>section,#bp-media-settings-boxes .no-js .section-container.auto>.section,#bp-media-settings-boxes .no-js .section-container.accordion>section,#bp-media-settings-boxes .no-js .section-container.accordion>.section,#bp-media-settings-boxes .no-js .section-container.tabs>section,#bp-media-settings-boxes .no-js .section-container.tabs>.section,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section{position:relative}#bp-media-settings-boxes .no-js .section-container.auto>section>.title,#bp-media-settings-boxes .no-js .section-container.auto>.section>.title,#bp-media-settings-boxes .no-js .section-container.accordion>section>.title,#bp-media-settings-boxes .no-js .section-container.accordion>.section>.title,#bp-media-settings-boxes .no-js .section-container.tabs>section>.title,#bp-media-settings-boxes .no-js .section-container.tabs>.section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section>.title{background-color:#efefef;cursor:pointer;margin-bottom:0}#bp-media-settings-boxes .no-js .section-container.auto>section>.title a,#bp-media-settings-boxes .no-js .section-container.auto>.section>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>section>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>.section>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>section>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>.section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section>.title a{padding:0.9375em;display:inline-block;color:#333;font-size:0.875em;white-space:nowrap}#bp-media-settings-boxes .no-js .section-container.auto>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.auto>.section>.title:hover,#bp-media-settings-boxes .no-js .section-container.accordion>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.accordion>.section>.title:hover,#bp-media-settings-boxes .no-js .section-container.tabs>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.tabs>.section>.title:hover,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section>.title:hover,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section>.title:hover,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section>.title:hover,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section>.title:hover{background-color:#e2e2e2}#bp-media-settings-boxes .no-js .section-container.auto>section .content,#bp-media-settings-boxes .no-js .section-container.auto>.section .content,#bp-media-settings-boxes .no-js .section-container.accordion>section .content,#bp-media-settings-boxes .no-js .section-container.accordion>.section .content,#bp-media-settings-boxes .no-js .section-container.tabs>section .content,#bp-media-settings-boxes .no-js .section-container.tabs>.section .content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .content{display:none;padding:0.9375em;background-color:#fff}#bp-media-settings-boxes .no-js .section-container.auto>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.auto>.section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.accordion>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.accordion>.section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.tabs>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.tabs>.section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .content>*:last-child,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .content>*:last-child{margin-bottom:0}#bp-media-settings-boxes .no-js .section-container.auto>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.auto>.section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.accordion>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.accordion>.section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.tabs>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.tabs>.section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .content>*:first-child,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .content>*:first-child{padding-top:0}#bp-media-settings-boxes .no-js .section-container.auto>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.auto>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.accordion>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.accordion>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.tabs>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.tabs>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .content>*:last-child:not(.flex-video),#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .content>*:last-child:not(.flex-video){padding-bottom:0}#bp-media-settings-boxes .no-js .section-container.auto>section.active>.content,#bp-media-settings-boxes .no-js .section-container.auto>.section.active>.content,#bp-media-settings-boxes .no-js .section-container.accordion>section.active>.content,#bp-media-settings-boxes .no-js .section-container.accordion>.section.active>.content,#bp-media-settings-boxes .no-js .section-container.tabs>section.active>.content,#bp-media-settings-boxes .no-js .section-container.tabs>.section.active>.content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section.active>.content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section.active>.content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section.active>.content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section.active>.content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section.active>.content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section.active>.content{display:block}#bp-media-settings-boxes .no-js .section-container.auto>section.active>.title,#bp-media-settings-boxes .no-js .section-container.auto>.section.active>.title,#bp-media-settings-boxes .no-js .section-container.accordion>section.active>.title,#bp-media-settings-boxes .no-js .section-container.accordion>.section.active>.title,#bp-media-settings-boxes .no-js .section-container.tabs>section.active>.title,#bp-media-settings-boxes .no-js .section-container.tabs>.section.active>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section.active>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section.active>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section.active>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section.active>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section.active>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section.active>.title{background:#d5d5d5}#bp-media-settings-boxes .no-js .section-container.auto>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.auto>.section.active>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>.section.active>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>.section.active>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section.active>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section.active>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section.active>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section.active>.title a{color:#333}#bp-media-settings-boxes .no-js .section-container.auto>section>.title,#bp-media-settings-boxes .no-js .section-container.auto>.section>.title,#bp-media-settings-boxes .no-js .section-container.accordion>section>.title,#bp-media-settings-boxes .no-js .section-container.accordion>.section>.title,#bp-media-settings-boxes .no-js .section-container.tabs>section>.title,#bp-media-settings-boxes .no-js .section-container.tabs>.section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section>.title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section>.title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section>.title{top:0;width:100%;margin:0;border-top:solid 1px #ccc}#bp-media-settings-boxes .no-js .section-container.auto>section>.title a,#bp-media-settings-boxes .no-js .section-container.auto>.section>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>section>.title a,#bp-media-settings-boxes .no-js .section-container.accordion>.section>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>section>.title a,#bp-media-settings-boxes .no-js .section-container.tabs>.section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section>.title a,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section>.title a,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section>.title a{width:100%}#bp-media-settings-boxes .no-js .section-container.auto>section .title,#bp-media-settings-boxes .no-js .section-container.auto>.section .title,#bp-media-settings-boxes .no-js .section-container.accordion>section .title,#bp-media-settings-boxes .no-js .section-container.accordion>.section .title,#bp-media-settings-boxes .no-js .section-container.tabs>section .title,#bp-media-settings-boxes .no-js .section-container.tabs>.section .title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .title,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .title,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .title,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .title{position:static;width:100%;border-left:0;border-right:0}#bp-media-settings-boxes .no-js .section-container.auto>section .content,#bp-media-settings-boxes .no-js .section-container.auto>.section .content,#bp-media-settings-boxes .no-js .section-container.accordion>section .content,#bp-media-settings-boxes .no-js .section-container.accordion>.section .content,#bp-media-settings-boxes .no-js .section-container.tabs>section .content,#bp-media-settings-boxes .no-js .section-container.tabs>.section .content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>section .content,#bp-media-settings-boxes .no-js .section-container.vertical-tabs>.section .content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>section .content,#bp-media-settings-boxes .no-js .section-container.vertical-nav>.section .content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>section .content,#bp-media-settings-boxes .no-js .section-container.horizontal-nav>.section .content{position:static;display:block;width:100%;border-left:0;border-right:0;border-bottom:0}#bp-media-settings-boxes .has-switch{border-radius:0}#bp-media-settings-boxes .has-switch label{padding:6px;border-radius:0}#bp-media-settings-boxes .has-switch span.switch-left{border-radius:0}#bp-media-settings-boxes .has-switch span.switch-right{border-radius:0}#bp-media-settings-boxes .rtmedia-setting-text-box{width:55px;text-align:right}#bp-media-settings-boxes .section-container section .title a{font-size:13px;text-decoration:none;font-weight:bold;color:#555}#bp-media-settings-boxes .section-container section .title a:hover{color:#000}#bp-media-settings-boxes .section-container section.active .title a{color:#000}#bp-media-settings-boxes .section-container .rtmedia-size-content-setting .rt-form-dimension input[type="text"]{margin-left:32px}#bp-media-settings-boxes .section-container .rtmedia-size-content-setting .rt-form-dimension span{margin-left:36px}#bp-media-settings-boxes .section-container.vertical-tabs section .title a,#bp-media-settings-boxes .section-container.auto section .title a{font-size:13px}#bp-media-settings-boxes .section-container.vertical-tabs section.active .title a,#bp-media-settings-boxes .section-container.auto section.active .title a{color:#000}#bp-media-settings-boxes .global-album-settings .default-global-albums{padding:5px 0;overflow:hidden}#bp-media-settings-boxes .global-album-settings .default-global-albums:hover{background-color:#EEE}
|
trunk/app/assets/css/style.css
ADDED
@@ -0,0 +1,51 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/* RT MEDIA */
|
2 |
+
/* line 560, ../sass/main.scss */
|
3 |
+
.rtmedia-container {
|
4 |
+
margin: 1% 1%;
|
5 |
+
float:left;
|
6 |
+
}
|
7 |
+
|
8 |
+
/* line 564, ../sass/main.scss */
|
9 |
+
.rtmedia-list {
|
10 |
+
list-style: none;
|
11 |
+
margin: 1% 1%;
|
12 |
+
}
|
13 |
+
/* line 567, ../sass/main.scss */
|
14 |
+
.rtmedia-list-item {
|
15 |
+
display: inline-block;
|
16 |
+
margin: 3% 3% 0;
|
17 |
+
word-wrap: break-word;
|
18 |
+
}
|
19 |
+
|
20 |
+
.rtmedia-media img {
|
21 |
+
max-width: 100%;
|
22 |
+
}
|
23 |
+
|
24 |
+
.rtmedia-item-thumbnail img {
|
25 |
+
max-width: 100%;
|
26 |
+
}
|
27 |
+
|
28 |
+
.rtmedia-item-comments {
|
29 |
+
margin: 3% 3%;
|
30 |
+
}
|
31 |
+
|
32 |
+
.rtmedia-comment {
|
33 |
+
list-style: none;
|
34 |
+
background: #f6f6f6;
|
35 |
+
border: 1px solid #ddd;
|
36 |
+
-moz-border-radius: 3px;
|
37 |
+
border-radius: 3px;
|
38 |
+
margin: 3% 0;
|
39 |
+
padding: 1% 4% 8%;
|
40 |
+
position: relative;
|
41 |
+
width: 330px;
|
42 |
+
}
|
43 |
+
|
44 |
+
.rtmedia-comment-date {
|
45 |
+
float: right;
|
46 |
+
}
|
47 |
+
|
48 |
+
.rtmedia-bp-header {
|
49 |
+
width: 460px;
|
50 |
+
margin: auto;
|
51 |
+
}
|
trunk/app/assets/css/widget.css
ADDED
@@ -0,0 +1,39 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
#rtmedia_dashboard_widget p.sub{
|
2 |
+
padding: 0px;
|
3 |
+
margin : 0px;
|
4 |
+
color: #8F8F8F;
|
5 |
+
font-size: 14px
|
6 |
+
}
|
7 |
+
#rtmedia_dashboard_widget div.table{
|
8 |
+
width: 45%;
|
9 |
+
|
10 |
+
}
|
11 |
+
#rtmedia_dashboard_widget table{
|
12 |
+
margin-top: 5px;
|
13 |
+
border-top-color: #ECECEC;
|
14 |
+
border-top-width: 1px;
|
15 |
+
border-top-style: solid;
|
16 |
+
color:#21759b;
|
17 |
+
}
|
18 |
+
#rtmedia_dashboard_widget table td{
|
19 |
+
padding: 3px;
|
20 |
+
}
|
21 |
+
|
22 |
+
|
23 |
+
#rtmedia_dashboard_widget .table.table_content{
|
24 |
+
float: left;
|
25 |
+
}
|
26 |
+
#rtmedia_dashboard_widget .table.table_discussion{
|
27 |
+
float: right;
|
28 |
+
}
|
29 |
+
|
30 |
+
#rtmedia_dashboard_widget table td.b{
|
31 |
+
padding-right: 6px;
|
32 |
+
text-align: right;
|
33 |
+
font-size: 18px;
|
34 |
+
width: 1%;
|
35 |
+
font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif;
|
36 |
+
}
|
37 |
+
#rtmedia_dashboard_widget .versions{
|
38 |
+
clear:both;
|
39 |
+
}
|
trunk/app/assets/font/FontAwesome.otf
ADDED
Binary file
|
trunk/app/assets/font/fontawesome-webfont.eot
ADDED
Binary file
|
trunk/app/assets/font/fontawesome-webfont.svg
ADDED
@@ -0,0 +1,339 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?xml version="1.0" standalone="no"?>
|
2 |
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
3 |
+
<svg xmlns="http://www.w3.org/2000/svg">
|
4 |
+
<metadata></metadata>
|
5 |
+
<defs>
|
6 |
+
<font id="fontawesomeregular" horiz-adv-x="1536" >
|
7 |
+
<font-face units-per-em="1792" ascent="1536" descent="-256" />
|
8 |
+
<missing-glyph horiz-adv-x="448" />
|
9 |
+
<glyph unicode=" " horiz-adv-x="448" />
|
10 |
+
<glyph unicode="	" horiz-adv-x="448" />
|
11 |
+
<glyph unicode=" " horiz-adv-x="448" />
|
12 |
+
<glyph unicode="¨" horiz-adv-x="1792" />
|
13 |
+
<glyph unicode="©" horiz-adv-x="1792" />
|
14 |
+
<glyph unicode="®" horiz-adv-x="1792" />
|
15 |
+
<glyph unicode="´" horiz-adv-x="1792" />
|
16 |
+
<glyph unicode="Æ" horiz-adv-x="1792" />
|
17 |
+
<glyph unicode=" " horiz-adv-x="768" />
|
18 |
+
<glyph unicode=" " />
|
19 |
+
<glyph unicode=" " horiz-adv-x="768" />
|
20 |
+
<glyph unicode=" " />
|
21 |
+
<glyph unicode=" " horiz-adv-x="512" />
|
22 |
+
<glyph unicode=" " horiz-adv-x="384" />
|
23 |
+
<glyph unicode=" " horiz-adv-x="256" />
|
24 |
+
<glyph unicode=" " horiz-adv-x="256" />
|
25 |
+
<glyph unicode=" " horiz-adv-x="192" />
|
26 |
+
<glyph unicode=" " horiz-adv-x="307" />
|
27 |
+
<glyph unicode=" " horiz-adv-x="85" />
|
28 |
+
<glyph unicode=" " horiz-adv-x="307" />
|
29 |
+
<glyph unicode=" " horiz-adv-x="384" />
|
30 |
+
<glyph unicode="™" horiz-adv-x="1792" />
|
31 |
+
<glyph unicode="∞" horiz-adv-x="1792" />
|
32 |
+
<glyph unicode="≠" horiz-adv-x="1792" />
|
33 |
+
<glyph unicode="" horiz-adv-x="500" d="M0 0z" />
|
34 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1699 1350q0 -35 -43 -78l-632 -632v-768h320q26 0 45 -19t19 -45t-19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45t45 19h320v768l-632 632q-43 43 -43 78q0 23 18 36.5t38 17.5t43 4h1408q23 0 43 -4t38 -17.5t18 -36.5z" />
|
35 |
+
<glyph unicode="" d="M1536 1312v-1120q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v537l-768 -237v-709q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89 t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v967q0 31 19 56.5t49 35.5l832 256q12 4 28 4q40 0 68 -28t28 -68z" />
|
36 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -52 -38 -90t-90 -38q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5 t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" />
|
37 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1664 32v768q-32 -36 -69 -66q-268 -206 -426 -338q-51 -43 -83 -67t-86.5 -48.5t-102.5 -24.5h-1h-1q-48 0 -102.5 24.5t-86.5 48.5t-83 67q-158 132 -426 338q-37 30 -69 66v-768q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1664 1083v11v13.5t-0.5 13 t-3 12.5t-5.5 9t-9 7.5t-14 2.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5q0 -168 147 -284q193 -152 401 -317q6 -5 35 -29.5t46 -37.5t44.5 -31.5t50.5 -27.5t43 -9h1h1q20 0 43 9t50.5 27.5t44.5 31.5t46 37.5t35 29.5q208 165 401 317q54 43 100.5 115.5t46.5 131.5z M1792 1120v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47t47 -113z" />
|
38 |
+
<glyph unicode="" horiz-adv-x="1792" d="M896 -128q-26 0 -44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5q224 0 351 -124t127 -344q0 -221 -229 -450l-623 -600 q-18 -18 -44 -18z" />
|
39 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -21 -10.5 -35.5t-30.5 -14.5q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455 l502 -73q56 -9 56 -46z" />
|
40 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1137 532l306 297l-422 62l-189 382l-189 -382l-422 -62l306 -297l-73 -421l378 199l377 -199zM1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -50 -41 -50q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500 l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455l502 -73q56 -9 56 -46z" />
|
41 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1408 131q0 -120 -73 -189.5t-194 -69.5h-874q-121 0 -194 69.5t-73 189.5q0 53 3.5 103.5t14 109t26.5 108.5t43 97.5t62 81t85.5 53.5t111.5 20q9 0 42 -21.5t74.5 -48t108 -48t133.5 -21.5t133.5 21.5t108 48t74.5 48t42 21.5q61 0 111.5 -20t85.5 -53.5t62 -81 t43 -97.5t26.5 -108.5t14 -109t3.5 -103.5zM1088 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5z" />
|
42 |
+
<glyph unicode="" horiz-adv-x="1920" d="M384 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 320v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 704v128q0 26 -19 45t-45 19h-128 q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 -64v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM384 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45 t45 -19h128q26 0 45 19t19 45zM1792 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 704v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1792 320v128 q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 704v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19 t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1920 1248v-1344q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1344q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
|
43 |
+
<glyph unicode="" horiz-adv-x="1664" d="M768 512v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM768 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 512v-384q0 -52 -38 -90t-90 -38 h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" />
|
44 |
+
<glyph unicode="" horiz-adv-x="1792" d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 288v-192q0 -40 -28 -68t-68 -28h-320 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28 h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192 q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68z" />
|
45 |
+
<glyph unicode="" horiz-adv-x="1792" d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-960 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28 h960q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68z" />
|
46 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1671 970q0 -40 -28 -68l-724 -724l-136 -136q-28 -28 -68 -28t-68 28l-136 136l-362 362q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -295l656 657q28 28 68 28t68 -28l136 -136q28 -28 28 -68z" />
|
47 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1298 214q0 -40 -28 -68l-136 -136q-28 -28 -68 -28t-68 28l-294 294l-294 -294q-28 -28 -68 -28t-68 28l-136 136q-28 28 -28 68t28 68l294 294l-294 294q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -294l294 294q28 28 68 28t68 -28l136 -136q28 -28 28 -68 t-28 -68l-294 -294l294 -294q28 -28 28 -68z" />
|
48 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-224q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v224h-224q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h224v224q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5v-224h224 q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5 t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" />
|
49 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-576q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h576q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5z M1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z " />
|
50 |
+
<glyph unicode="" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61t-298 61t-245 164t-164 245t-61 298q0 182 80.5 343t226.5 270q43 32 95.5 25t83.5 -50q32 -42 24.5 -94.5t-49.5 -84.5q-98 -74 -151.5 -181t-53.5 -228q0 -104 40.5 -198.5t109.5 -163.5t163.5 -109.5 t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5q0 121 -53.5 228t-151.5 181q-42 32 -49.5 84.5t24.5 94.5q31 43 84 50t95 -25q146 -109 226.5 -270t80.5 -343zM896 1408v-640q0 -52 -38 -90t-90 -38t-90 38t-38 90v640q0 52 38 90t90 38t90 -38t38 -90z" />
|
51 |
+
<glyph unicode="" horiz-adv-x="1792" d="M256 96v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM640 224v-320q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v320q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1024 480v-576q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23 v576q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1408 864v-960q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v960q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 1376v-1472q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v1472q0 14 9 23t23 9h192q14 0 23 -9t9 -23z" />
|
52 |
+
<glyph unicode="" d="M1024 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1536 749v-222q0 -12 -8 -23t-20 -13l-185 -28q-19 -54 -39 -91q35 -50 107 -138q10 -12 10 -25t-9 -23q-27 -37 -99 -108t-94 -71q-12 0 -26 9l-138 108q-44 -23 -91 -38 q-16 -136 -29 -186q-7 -28 -36 -28h-222q-14 0 -24.5 8.5t-11.5 21.5l-28 184q-49 16 -90 37l-141 -107q-10 -9 -25 -9q-14 0 -25 11q-126 114 -165 168q-7 10 -7 23q0 12 8 23q15 21 51 66.5t54 70.5q-27 50 -41 99l-183 27q-13 2 -21 12.5t-8 23.5v222q0 12 8 23t19 13 l186 28q14 46 39 92q-40 57 -107 138q-10 12 -10 24q0 10 9 23q26 36 98.5 107.5t94.5 71.5q13 0 26 -10l138 -107q44 23 91 38q16 136 29 186q7 28 36 28h222q14 0 24.5 -8.5t11.5 -21.5l28 -184q49 -16 90 -37l142 107q9 9 24 9q13 0 25 -10q129 -119 165 -170q7 -8 7 -22 q0 -12 -8 -23q-15 -21 -51 -66.5t-54 -70.5q26 -50 41 -98l183 -28q13 -2 21 -12.5t8 -23.5z" />
|
53 |
+
<glyph unicode="" horiz-adv-x="1408" d="M512 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM768 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1024 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576 q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1152 76v948h-896v-948q0 -22 7 -40.5t14.5 -27t10.5 -8.5h832q3 0 10.5 8.5t14.5 27t7 40.5zM480 1152h448l-48 117q-7 9 -17 11h-317q-10 -2 -17 -11zM1408 1120v-64q0 -14 -9 -23t-23 -9h-96v-948q0 -83 -47 -143.5t-113 -60.5h-832 q-66 0 -113 58.5t-47 141.5v952h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h309l70 167q15 37 54 63t79 26h320q40 0 79 -26t54 -63l70 -167h309q14 0 23 -9t9 -23z" />
|
54 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1408 544v-480q0 -26 -19 -45t-45 -19h-384v384h-256v-384h-384q-26 0 -45 19t-19 45v480q0 1 0.5 3t0.5 3l575 474l575 -474q1 -2 1 -6zM1631 613l-62 -74q-8 -9 -21 -11h-3q-13 0 -21 7l-692 577l-692 -577q-12 -8 -24 -7q-13 2 -21 11l-62 74q-8 10 -7 23.5t11 21.5 l719 599q32 26 76 26t76 -26l244 -204v195q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-408l219 -182q10 -8 11 -21.5t-7 -23.5z" />
|
55 |
+
<glyph unicode="" horiz-adv-x="1280" d="M128 0h1024v768h-416q-40 0 -68 28t-28 68v416h-512v-1280zM768 896h299l-299 299v-299zM1280 768v-800q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h544q40 0 88 -20t76 -48l408 -408q28 -28 48 -76t20 -88z" />
|
56 |
+
<glyph unicode="" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM768 96q148 0 273 73t198 198t73 273t-73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273 t73 -273t198 -198t273 -73zM1024 640q26 0 45 -19t19 -45v-96q0 -26 -19 -45t-45 -19h-416q-26 0 -45 19t-19 45v480q0 26 19 45t45 19h96q26 0 45 -19t19 -45v-320h256z" />
|
57 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1111 540v4l-24 320q-1 13 -11 22.5t-23 9.5h-186q-13 0 -23 -9.5t-11 -22.5l-24 -320v-4q-1 -12 8 -20t21 -8h244q12 0 21 8t8 20zM1870 73q0 -73 -46 -73h-704q13 0 22 9.5t8 22.5l-20 256q-1 13 -11 22.5t-23 9.5h-272q-13 0 -23 -9.5t-11 -22.5l-20 -256 q-1 -13 8 -22.5t22 -9.5h-704q-46 0 -46 73q0 54 26 116l417 1044q8 19 26 33t38 14h339q-13 0 -23 -9.5t-11 -22.5l-15 -192q-1 -14 8 -23t22 -9h166q13 0 22 9t8 23l-15 192q-1 13 -11 22.5t-23 9.5h339q20 0 38 -14t26 -33l417 -1044q26 -62 26 -116z" />
|
58 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1280 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 416v-320q0 -40 -28 -68t-68 -28h-1472q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h465l135 -136 q58 -56 136 -56t136 56l136 136h464q40 0 68 -28t28 -68zM1339 985q17 -41 -14 -70l-448 -448q-18 -19 -45 -19t-45 19l-448 448q-31 29 -14 70q17 39 59 39h256v448q0 26 19 45t45 19h256q26 0 45 -19t19 -45v-448h256q42 0 59 -39z" />
|
59 |
+
<glyph unicode="" d="M1120 608q0 -12 -10 -24l-319 -319q-11 -9 -23 -9t-23 9l-320 320q-15 16 -7 35q8 20 30 20h192v352q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-352h192q14 0 23 -9t9 -23zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273 t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
60 |
+
<glyph unicode="" d="M1118 660q-8 -20 -30 -20h-192v-352q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v352h-192q-14 0 -23 9t-9 23q0 12 10 24l319 319q11 9 23 9t23 -9l320 -320q15 -16 7 -35zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198 t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
61 |
+
<glyph unicode="" d="M1023 576h316q-1 3 -2.5 8t-2.5 8l-212 496h-708l-212 -496q-1 -2 -2.5 -8t-2.5 -8h316l95 -192h320zM1536 546v-482q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v482q0 62 25 123l238 552q10 25 36.5 42t52.5 17h832q26 0 52.5 -17t36.5 -42l238 -552 q25 -61 25 -123z" />
|
62 |
+
<glyph unicode="" d="M1184 640q0 -37 -32 -55l-544 -320q-15 -9 -32 -9q-16 0 -32 8q-32 19 -32 56v640q0 37 32 56q33 18 64 -1l544 -320q32 -18 32 -55zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
63 |
+
<glyph unicode="" d="M1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l138 138q-148 137 -349 137q-104 0 -198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5q119 0 225 52t179 147q7 10 23 12q14 0 25 -9 l137 -138q9 -8 9.5 -20.5t-7.5 -22.5q-109 -132 -264 -204.5t-327 -72.5q-156 0 -298 61t-245 164t-164 245t-61 298t61 298t164 245t245 164t298 61q147 0 284.5 -55.5t244.5 -156.5l130 129q29 31 70 14q39 -17 39 -59z" />
|
64 |
+
<glyph unicode="" d="M1511 480q0 -5 -1 -7q-64 -268 -268 -434.5t-478 -166.5q-146 0 -282.5 55t-243.5 157l-129 -129q-19 -19 -45 -19t-45 19t-19 45v448q0 26 19 45t45 19h448q26 0 45 -19t19 -45t-19 -45l-137 -137q71 -66 161 -102t187 -36q134 0 250 65t186 179q11 17 53 117 q8 23 30 23h192q13 0 22.5 -9.5t9.5 -22.5zM1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-26 0 -45 19t-19 45t19 45l138 138q-148 137 -349 137q-134 0 -250 -65t-186 -179q-11 -17 -53 -117q-8 -23 -30 -23h-199q-13 0 -22.5 9.5t-9.5 22.5v7q65 268 270 434.5t480 166.5 q146 0 284 -55.5t245 -156.5l130 129q19 19 45 19t45 -19t19 -45z" />
|
65 |
+
<glyph unicode="" horiz-adv-x="1792" d="M384 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M384 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1536 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5z M1536 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5zM1536 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5 t9.5 -22.5zM1664 160v832q0 13 -9.5 22.5t-22.5 9.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1792 1248v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47 t47 -113z" />
|
66 |
+
<glyph unicode="" horiz-adv-x="1152" d="M704 512q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5q0 -37 19 -67t51 -47l-69 -229q-5 -15 5 -28t26 -13h192q16 0 26 13t5 28l-69 229q32 17 51 47t19 67zM320 768h512v192q0 106 -75 181t-181 75t-181 -75t-75 -181v-192zM1152 672v-576q0 -40 -28 -68 t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h32v192q0 184 132 316t316 132t316 -132t132 -316v-192h32q40 0 68 -28t28 -68z" />
|
67 |
+
<glyph unicode="" horiz-adv-x="1792" d="M320 1280q0 -72 -64 -110v-1266q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v1266q-64 38 -64 110q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -25 -12.5 -38.5t-39.5 -27.5q-215 -116 -369 -116q-61 0 -123.5 22t-108.5 48 t-115.5 48t-142.5 22q-192 0 -464 -146q-17 -9 -33 -9q-26 0 -45 19t-19 45v742q0 32 31 55q21 14 79 43q236 120 421 120q107 0 200 -29t219 -88q38 -19 88 -19q54 0 117.5 21t110 47t88 47t54.5 21q26 0 45 -19t19 -45z" />
|
68 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1664 650q0 -166 -60 -314l-20 -49l-185 -33q-22 -83 -90.5 -136.5t-156.5 -53.5v-32q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-32q71 0 130 -35.5t93 -95.5l68 12q29 95 29 193q0 148 -88 279t-236.5 209t-315.5 78 t-315.5 -78t-236.5 -209t-88 -279q0 -98 29 -193l68 -12q34 60 93 95.5t130 35.5v32q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v32q-88 0 -156.5 53.5t-90.5 136.5l-185 33l-20 49q-60 148 -60 314q0 151 67 291t179 242.5 t266 163.5t320 61t320 -61t266 -163.5t179 -242.5t67 -291z" />
|
69 |
+
<glyph unicode="" horiz-adv-x="768" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45z" />
|
70 |
+
<glyph unicode="" horiz-adv-x="1152" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 35.5 t12 57t-12 57t-29 35.5t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142z" />
|
71 |
+
<glyph unicode="" horiz-adv-x="1664" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 35.5 t12 57t-12 57t-29 35.5t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142zM1408 640q0 -153 -85 -282.5t-225 -188.5q-13 -5 -25 -5q-27 0 -46 19t-19 45q0 39 39 59q56 29 76 44q74 54 115.5 135.5t41.5 173.5t-41.5 173.5 t-115.5 135.5q-20 15 -76 44q-39 20 -39 59q0 26 19 45t45 19q13 0 26 -5q140 -59 225 -188.5t85 -282.5zM1664 640q0 -230 -127 -422.5t-338 -283.5q-13 -5 -26 -5q-26 0 -45 19t-19 45q0 36 39 59q7 4 22.5 10.5t22.5 10.5q46 25 82 51q123 91 192 227t69 289t-69 289 t-192 227q-36 26 -82 51q-7 4 -22.5 10.5t-22.5 10.5q-39 23 -39 59q0 26 19 45t45 19q13 0 26 -5q211 -91 338 -283.5t127 -422.5z" />
|
72 |
+
<glyph unicode="" horiz-adv-x="1408" d="M384 384v-128h-128v128h128zM384 1152v-128h-128v128h128zM1152 1152v-128h-128v128h128zM128 129h384v383h-384v-383zM128 896h384v384h-384v-384zM896 896h384v384h-384v-384zM640 640v-640h-640v640h640zM1152 128v-128h-128v128h128zM1408 128v-128h-128v128h128z M1408 640v-384h-384v128h-128v-384h-128v640h384v-128h128v128h128zM640 1408v-640h-640v640h640zM1408 1408v-640h-640v640h640z" />
|
73 |
+
<glyph unicode="" horiz-adv-x="1792" d="M63 0h-63v1408h63v-1408zM126 1h-32v1407h32v-1407zM220 1h-31v1407h31v-1407zM377 1h-31v1407h31v-1407zM534 1h-62v1407h62v-1407zM660 1h-31v1407h31v-1407zM723 1h-31v1407h31v-1407zM786 1h-31v1407h31v-1407zM943 1h-63v1407h63v-1407zM1100 1h-63v1407h63v-1407z M1226 1h-63v1407h63v-1407zM1352 1h-63v1407h63v-1407zM1446 1h-63v1407h63v-1407zM1635 1h-94v1407h94v-1407zM1698 1h-32v1407h32v-1407zM1792 0h-63v1408h63v-1408z" />
|
74 |
+
<glyph unicode="" d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5 l715 -714q37 -39 37 -91z" />
|
75 |
+
<glyph unicode="" horiz-adv-x="1920" d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5 l715 -714q37 -39 37 -91zM1899 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-36 0 -59 14t-53 45l470 470q37 37 37 90q0 52 -37 91l-715 714q-38 38 -102 64.5t-117 26.5h224q53 0 117 -26.5t102 -64.5l715 -714q37 -39 37 -91z" />
|
76 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1639 1058q40 -57 18 -129l-275 -906q-19 -64 -76.5 -107.5t-122.5 -43.5h-923q-77 0 -148.5 53.5t-99.5 131.5q-24 67 -2 127q0 4 3 27t4 37q1 8 -3 21.5t-3 19.5q2 11 8 21t16.5 23.5t16.5 23.5q23 38 45 91.5t30 91.5q3 10 0.5 30t-0.5 28q3 11 17 28t17 23 q21 36 42 92t25 90q1 9 -2.5 32t0.5 28q4 13 22 30.5t22 22.5q19 26 42.5 84.5t27.5 96.5q1 8 -3 25.5t-2 26.5q2 8 9 18t18 23t17 21q8 12 16.5 30.5t15 35t16 36t19.5 32t26.5 23.5t36 11.5t47.5 -5.5l-1 -3q38 9 51 9h761q74 0 114 -56t18 -130l-274 -906 q-36 -119 -71.5 -153.5t-128.5 -34.5h-869q-27 0 -38 -15q-11 -16 -1 -43q24 -70 144 -70h923q29 0 56 15.5t35 41.5l300 987q7 22 5 57q38 -15 59 -43zM575 1056q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5 t-16.5 -22.5zM492 800q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5t-16.5 -22.5z" />
|
77 |
+
<glyph unicode="" horiz-adv-x="1280" d="M1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289q0 34 19.5 62t52.5 41q21 9 44 9h1048z" />
|
78 |
+
<glyph unicode="" horiz-adv-x="1664" d="M384 0h896v256h-896v-256zM384 640h896v384h-160q-40 0 -68 28t-28 68v160h-640v-640zM1536 576q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 576v-416q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-160q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68 v160h-224q-13 0 -22.5 9.5t-9.5 22.5v416q0 79 56.5 135.5t135.5 56.5h64v544q0 40 28 68t68 28h672q40 0 88 -20t76 -48l152 -152q28 -28 48 -76t20 -88v-256h64q79 0 135.5 -56.5t56.5 -135.5z" />
|
79 |
+
<glyph unicode="" horiz-adv-x="1920" d="M960 864q119 0 203.5 -84.5t84.5 -203.5t-84.5 -203.5t-203.5 -84.5t-203.5 84.5t-84.5 203.5t84.5 203.5t203.5 84.5zM1664 1280q106 0 181 -75t75 -181v-896q0 -106 -75 -181t-181 -75h-1408q-106 0 -181 75t-75 181v896q0 106 75 181t181 75h224l51 136 q19 49 69.5 84.5t103.5 35.5h512q53 0 103.5 -35.5t69.5 -84.5l51 -136h224zM960 128q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
|
80 |
+
<glyph unicode="" horiz-adv-x="1664" d="M725 977l-170 -450q73 -1 153.5 -2t119 -1.5t52.5 -0.5l29 2q-32 95 -92 241q-53 132 -92 211zM21 -128h-21l2 79q22 7 80 18q89 16 110 31q20 16 48 68l237 616l280 724h75h53l11 -21l205 -480q103 -242 124 -297q39 -102 96 -235q26 -58 65 -164q24 -67 65 -149 q22 -49 35 -57q22 -19 69 -23q47 -6 103 -27q6 -39 6 -57q0 -14 -1 -26q-80 0 -192 8q-93 8 -189 8q-79 0 -135 -2l-200 -11l-58 -2q0 45 4 78l131 28q56 13 68 23q12 12 12 27t-6 32l-47 114l-92 228l-450 2q-29 -65 -104 -274q-23 -64 -23 -84q0 -31 17 -43 q26 -21 103 -32q3 0 13.5 -2t30 -5t40.5 -6q1 -28 1 -58q0 -17 -2 -27q-66 0 -349 20l-48 -8q-81 -14 -167 -14z" />
|
81 |
+
<glyph unicode="" horiz-adv-x="1408" d="M555 15q76 -32 140 -32q131 0 216 41t122 113q38 70 38 181q0 114 -41 180q-58 94 -141 126q-80 32 -247 32q-74 0 -101 -10v-144l-1 -173l3 -270q0 -15 12 -44zM541 761q43 -7 109 -7q175 0 264 65t89 224q0 112 -85 187q-84 75 -255 75q-52 0 -130 -13q0 -44 2 -77 q7 -122 6 -279l-1 -98q0 -43 1 -77zM0 -128l2 94q45 9 68 12q77 12 123 31q17 27 21 51q9 66 9 194l-2 497q-5 256 -9 404q-1 87 -11 109q-1 4 -12 12q-18 12 -69 15q-30 2 -114 13l-4 83l260 6l380 13l45 1q5 0 14 0.5t14 0.5q1 0 21.5 -0.5t40.5 -0.5h74q88 0 191 -27 q43 -13 96 -39q57 -29 102 -76q44 -47 65 -104t21 -122q0 -70 -32 -128t-95 -105q-26 -20 -150 -77q177 -41 267 -146q92 -106 92 -236q0 -76 -29 -161q-21 -62 -71 -117q-66 -72 -140 -108q-73 -36 -203 -60q-82 -15 -198 -11l-197 4q-84 2 -298 -11q-33 -3 -272 -11z" />
|
82 |
+
<glyph unicode="" horiz-adv-x="1024" d="M0 -126l17 85q4 1 77 20q76 19 116 39q29 37 41 101l27 139l56 268l12 64q8 44 17 84.5t16 67t12.5 46.5t9 30.5t3.5 11.5l29 157l16 63l22 135l8 50v38q-41 22 -144 28q-28 2 -38 4l19 103l317 -14q39 -2 73 -2q66 0 214 9q33 2 68 4.5t36 2.5q-2 -19 -6 -38 q-7 -29 -13 -51q-55 -19 -109 -31q-64 -16 -101 -31q-12 -31 -24 -88q-9 -44 -13 -82q-44 -199 -66 -306l-61 -311l-38 -158l-43 -235l-12 -45q-2 -7 1 -27q64 -15 119 -21q36 -5 66 -10q-1 -29 -7 -58q-7 -31 -9 -41q-18 0 -23 -1q-24 -2 -42 -2q-9 0 -28 3q-19 4 -145 17 l-198 2q-41 1 -174 -11q-74 -7 -98 -9z" />
|
83 |
+
<glyph unicode="" horiz-adv-x="1792" d="M81 1407l54 -27q20 -5 211 -5h130l19 3l115 1l215 -1h293l34 -2q14 -1 28 7t21 16l7 8l42 1q15 0 28 -1v-104.5t1 -131.5l1 -100l-1 -58q0 -32 -4 -51q-39 -15 -68 -18q-25 43 -54 128q-8 24 -15.5 62.5t-11.5 65.5t-6 29q-13 15 -27 19q-7 2 -42.5 2t-103.5 -1t-111 -1 q-34 0 -67 -5q-10 -97 -8 -136l1 -152v-332l3 -359l-1 -147q-1 -46 11 -85q49 -25 89 -32q2 0 18 -5t44 -13t43 -12q30 -8 50 -18q5 -45 5 -50q0 -10 -3 -29q-14 -1 -34 -1q-110 0 -187 10q-72 8 -238 8q-88 0 -233 -14q-48 -4 -70 -4q-2 22 -2 26l-1 26v9q21 33 79 49 q139 38 159 50q9 21 12 56q8 192 6 433l-5 428q-1 62 -0.5 118.5t0.5 102.5t-2 57t-6 15q-6 5 -14 6q-38 6 -148 6q-43 0 -100 -13.5t-73 -24.5q-13 -9 -22 -33t-22 -75t-24 -84q-6 -19 -19.5 -32t-20.5 -13q-44 27 -56 44v297v86zM1744 128q33 0 42 -18.5t-11 -44.5 l-126 -162q-20 -26 -49 -26t-49 26l-126 162q-20 26 -11 44.5t42 18.5h80v1024h-80q-33 0 -42 18.5t11 44.5l126 162q20 26 49 26t49 -26l126 -162q20 -26 11 -44.5t-42 -18.5h-80v-1024h80z" />
|
84 |
+
<glyph unicode="" d="M81 1407l54 -27q20 -5 211 -5h130l19 3l115 1l446 -1h318l34 -2q14 -1 28 7t21 16l7 8l42 1q15 0 28 -1v-104.5t1 -131.5l1 -100l-1 -58q0 -32 -4 -51q-39 -15 -68 -18q-25 43 -54 128q-8 24 -15.5 62.5t-11.5 65.5t-6 29q-13 15 -27 19q-7 2 -58.5 2t-138.5 -1t-128 -1 q-94 0 -127 -5q-10 -97 -8 -136l1 -152v52l3 -359l-1 -147q-1 -46 11 -85q49 -25 89 -32q2 0 18 -5t44 -13t43 -12q30 -8 50 -18q5 -45 5 -50q0 -10 -3 -29q-14 -1 -34 -1q-110 0 -187 10q-72 8 -238 8q-82 0 -233 -13q-45 -5 -70 -5q-2 22 -2 26l-1 26v9q21 33 79 49 q139 38 159 50q9 21 12 56q6 137 6 433l-5 44q0 265 -2 278q-2 11 -6 15q-6 5 -14 6q-38 6 -148 6q-50 0 -168.5 -14t-132.5 -24q-13 -9 -22 -33t-22 -75t-24 -84q-6 -19 -19.5 -32t-20.5 -13q-44 27 -56 44v297v86zM1505 113q26 -20 26 -49t-26 -49l-162 -126 q-26 -20 -44.5 -11t-18.5 42v80h-1024v-80q0 -33 -18.5 -42t-44.5 11l-162 126q-26 20 -26 49t26 49l162 126q26 20 44.5 11t18.5 -42v-80h1024v80q0 33 18.5 42t44.5 -11z" />
|
85 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45 t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
|
86 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h896q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45t-45 -19 h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-640q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h640q26 0 45 -19t19 -45z" />
|
87 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45 t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
|
88 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45 t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" />
|
89 |
+
<glyph unicode="" horiz-adv-x="1792" d="M256 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM256 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5 t9.5 -22.5zM256 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344 q13 0 22.5 -9.5t9.5 -22.5zM256 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5 t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192 q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5z" />
|
90 |
+
<glyph unicode="" horiz-adv-x="1792" d="M384 992v-576q0 -13 -9.5 -22.5t-22.5 -9.5q-14 0 -23 9l-288 288q-9 9 -9 23t9 23l288 288q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5 t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088 q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" />
|
91 |
+
<glyph unicode="" horiz-adv-x="1792" d="M352 704q0 -14 -9 -23l-288 -288q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v576q0 13 9.5 22.5t22.5 9.5q14 0 23 -9l288 -288q9 -9 9 -23zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5 t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088 q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" />
|
92 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 1184v-1088q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-403 403v-166q0 -119 -84.5 -203.5t-203.5 -84.5h-704q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h704q119 0 203.5 -84.5t84.5 -203.5v-165l403 402q18 19 45 19q12 0 25 -5 q39 -17 39 -59z" />
|
93 |
+
<glyph unicode="" horiz-adv-x="1920" d="M640 960q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1664 576v-448h-1408v192l320 320l160 -160l512 512zM1760 1280h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-1216q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5v1216 q0 13 -9.5 22.5t-22.5 9.5zM1920 1248v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
|
94 |
+
<glyph unicode="" d="M363 0l91 91l-235 235l-91 -91v-107h128v-128h107zM886 928q0 22 -22 22q-10 0 -17 -7l-542 -542q-7 -7 -7 -17q0 -22 22 -22q10 0 17 7l542 542q7 7 7 17zM832 1120l416 -416l-832 -832h-416v416zM1515 1024q0 -53 -37 -90l-166 -166l-416 416l166 165q36 38 90 38 q53 0 91 -38l235 -234q37 -39 37 -91z" />
|
95 |
+
<glyph unicode="" horiz-adv-x="1024" d="M768 896q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1024 896q0 -109 -33 -179l-364 -774q-16 -33 -47.5 -52t-67.5 -19t-67.5 19t-46.5 52l-365 774q-33 70 -33 179q0 212 150 362t362 150t362 -150t150 -362z" />
|
96 |
+
<glyph unicode="" d="M768 96v1088q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
97 |
+
<glyph unicode="" horiz-adv-x="1024" d="M512 384q0 36 -20 69q-1 1 -15.5 22.5t-25.5 38t-25 44t-21 50.5q-4 16 -21 16t-21 -16q-7 -23 -21 -50.5t-25 -44t-25.5 -38t-15.5 -22.5q-20 -33 -20 -69q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 512q0 -212 -150 -362t-362 -150t-362 150t-150 362 q0 145 81 275q6 9 62.5 90.5t101 151t99.5 178t83 201.5q9 30 34 47t51 17t51.5 -17t33.5 -47q28 -93 83 -201.5t99.5 -178t101 -151t62.5 -90.5q81 -127 81 -275z" />
|
98 |
+
<glyph unicode="" horiz-adv-x="1792" d="M888 352l116 116l-152 152l-116 -116v-56h96v-96h56zM1328 1072q-16 16 -33 -1l-350 -350q-17 -17 -1 -33t33 1l350 350q17 17 1 33zM1408 478v-190q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832 q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-14 -14 -32 -8q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v126q0 13 9 22l64 64q15 15 35 7t20 -29zM1312 1216l288 -288l-672 -672h-288v288zM1756 1084l-92 -92 l-288 288l92 92q28 28 68 28t68 -28l152 -152q28 -28 28 -68t-28 -68z" />
|
99 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1408 547v-259q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h255v0q13 0 22.5 -9.5t9.5 -22.5q0 -27 -26 -32q-77 -26 -133 -60q-10 -4 -16 -4h-112q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832 q66 0 113 47t47 113v214q0 19 18 29q28 13 54 37q16 16 35 8q21 -9 21 -29zM1645 1043l-384 -384q-18 -19 -45 -19q-12 0 -25 5q-39 17 -39 59v192h-160q-323 0 -438 -131q-119 -137 -74 -473q3 -23 -20 -34q-8 -2 -12 -2q-16 0 -26 13q-10 14 -21 31t-39.5 68.5t-49.5 99.5 t-38.5 114t-17.5 122q0 49 3.5 91t14 90t28 88t47 81.5t68.5 74t94.5 61.5t124.5 48.5t159.5 30.5t196.5 11h160v192q0 42 39 59q13 5 25 5q26 0 45 -19l384 -384q19 -19 19 -45t-19 -45z" />
|
100 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1408 606v-318q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-10 -10 -23 -10q-3 0 -9 2q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832 q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v254q0 13 9 22l64 64q10 10 23 10q6 0 12 -3q20 -8 20 -29zM1639 1095l-814 -814q-24 -24 -57 -24t-57 24l-430 430q-24 24 -24 57t24 57l110 110q24 24 57 24t57 -24l263 -263l647 647q24 24 57 24t57 -24l110 -110 q24 -24 24 -57t-24 -57z" />
|
101 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-384v-384h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v384h-384v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45 t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h384v384h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45t-19 -45t-45 -19h-128v-384h384v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" />
|
102 |
+
<glyph unicode="" horiz-adv-x="1024" d="M979 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 11 13 19z" />
|
103 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1747 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 11 13 19l710 710 q19 19 32 13t13 -32v-710q4 11 13 19z" />
|
104 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1619 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-8 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-19 19 -19 45t19 45l710 710q19 19 32 13t13 -32v-710q5 11 13 19z" />
|
105 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1384 609l-1328 -738q-23 -13 -39.5 -3t-16.5 36v1472q0 26 16.5 36t39.5 -3l1328 -738q23 -13 23 -31t-23 -31z" />
|
106 |
+
<glyph unicode="" d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45zM640 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45z" />
|
107 |
+
<glyph unicode="" d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
|
108 |
+
<glyph unicode="" horiz-adv-x="1664" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v710q0 26 13 32t32 -13l710 -710q19 -19 19 -45t-19 -45l-710 -710q-19 -19 -32 -13t-13 32v710q-5 -10 -13 -19z" />
|
109 |
+
<glyph unicode="" horiz-adv-x="1792" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v710q0 26 13 32t32 -13l710 -710q8 -8 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-5 -10 -13 -19l-710 -710 q-19 -19 -32 -13t-13 32v710q-5 -10 -13 -19z" />
|
110 |
+
<glyph unicode="" horiz-adv-x="1024" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-5 -10 -13 -19z" />
|
111 |
+
<glyph unicode="" horiz-adv-x="1538" d="M14 557l710 710q19 19 45 19t45 -19l710 -710q19 -19 13 -32t-32 -13h-1472q-26 0 -32 13t13 32zM1473 0h-1408q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1408q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19z" />
|
112 |
+
<glyph unicode="" horiz-adv-x="1152" d="M742 -37l-652 651q-37 37 -37 90.5t37 90.5l652 651q37 37 90.5 37t90.5 -37l75 -75q37 -37 37 -90.5t-37 -90.5l-486 -486l486 -485q37 -38 37 -91t-37 -90l-75 -75q-37 -37 -90.5 -37t-90.5 37z" />
|
113 |
+
<glyph unicode="" horiz-adv-x="1152" d="M1099 704q0 -52 -37 -91l-652 -651q-37 -37 -90 -37t-90 37l-76 75q-37 39 -37 91q0 53 37 90l486 486l-486 485q-37 39 -37 91q0 53 37 90l76 75q36 38 90 38t90 -38l652 -651q37 -37 37 -90z" />
|
114 |
+
<glyph unicode="" d="M1216 576v128q0 26 -19 45t-45 19h-256v256q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-256h-256q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h256v-256q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v256h256q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5 t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
115 |
+
<glyph unicode="" d="M1216 576v128q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5 t103 -385.5z" />
|
116 |
+
<glyph unicode="" d="M1149 414q0 26 -19 45l-181 181l181 181q19 19 19 45q0 27 -19 46l-90 90q-19 19 -46 19q-26 0 -45 -19l-181 -181l-181 181q-19 19 -45 19q-27 0 -46 -19l-90 -90q-19 -19 -19 -46q0 -26 19 -45l181 -181l-181 -181q-19 -19 -19 -45q0 -27 19 -46l90 -90q19 -19 46 -19 q26 0 45 19l181 181l181 -181q19 -19 45 -19q27 0 46 19l90 90q19 19 19 46zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
117 |
+
<glyph unicode="" d="M1284 802q0 28 -18 46l-91 90q-19 19 -45 19t-45 -19l-408 -407l-226 226q-19 19 -45 19t-45 -19l-91 -90q-18 -18 -18 -46q0 -27 18 -45l362 -362q19 -19 45 -19q27 0 46 19l543 543q18 18 18 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
118 |
+
<glyph unicode="" d="M896 160v192q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h192q14 0 23 9t9 23zM1152 832q0 88 -55.5 163t-138.5 116t-170 41q-243 0 -371 -213q-15 -24 8 -42l132 -100q7 -6 19 -6q16 0 25 12q53 68 86 92q34 24 86 24q48 0 85.5 -26t37.5 -59 q0 -38 -20 -61t-68 -45q-63 -28 -115.5 -86.5t-52.5 -125.5v-36q0 -14 9 -23t23 -9h192q14 0 23 9t9 23q0 19 21.5 49.5t54.5 49.5q32 18 49 28.5t46 35t44.5 48t28 60.5t12.5 81zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
119 |
+
<glyph unicode="" d="M1024 160v160q0 14 -9 23t-23 9h-96v512q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23t23 -9h96v-320h-96q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23t23 -9h448q14 0 23 9t9 23zM896 1056v160q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23 t23 -9h192q14 0 23 9t9 23zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
120 |
+
<glyph unicode="" d="M1197 512h-109q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h109q-32 108 -112.5 188.5t-188.5 112.5v-109q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v109q-108 -32 -188.5 -112.5t-112.5 -188.5h109q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-109 q32 -108 112.5 -188.5t188.5 -112.5v109q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-109q108 32 188.5 112.5t112.5 188.5zM1536 704v-128q0 -26 -19 -45t-45 -19h-143q-37 -161 -154.5 -278.5t-278.5 -154.5v-143q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v143 q-161 37 -278.5 154.5t-154.5 278.5h-143q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h143q37 161 154.5 278.5t278.5 154.5v143q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-143q161 -37 278.5 -154.5t154.5 -278.5h143q26 0 45 -19t19 -45z" />
|
121 |
+
<glyph unicode="" d="M1097 457l-146 -146q-10 -10 -23 -10t-23 10l-137 137l-137 -137q-10 -10 -23 -10t-23 10l-146 146q-10 10 -10 23t10 23l137 137l-137 137q-10 10 -10 23t10 23l146 146q10 10 23 10t23 -10l137 -137l137 137q10 10 23 10t23 -10l146 -146q10 -10 10 -23t-10 -23 l-137 -137l137 -137q10 -10 10 -23t-10 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5 t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
122 |
+
<glyph unicode="" d="M1171 723l-422 -422q-19 -19 -45 -19t-45 19l-294 294q-19 19 -19 45t19 45l102 102q19 19 45 19t45 -19l147 -147l275 275q19 19 45 19t45 -19l102 -102q19 -19 19 -45t-19 -45zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198 t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
123 |
+
<glyph unicode="" d="M1312 643q0 161 -87 295l-754 -753q137 -89 297 -89q111 0 211.5 43.5t173.5 116.5t116 174.5t43 212.5zM313 344l755 754q-135 91 -300 91q-148 0 -273 -73t-198 -199t-73 -274q0 -162 89 -299zM1536 643q0 -157 -61 -300t-163.5 -246t-245 -164t-298.5 -61t-298.5 61 t-245 164t-163.5 246t-61 300t61 299.5t163.5 245.5t245 164t298.5 61t298.5 -61t245 -164t163.5 -245.5t61 -299.5z" />
|
124 |
+
<glyph unicode="" d="M1536 640v-128q0 -53 -32.5 -90.5t-84.5 -37.5h-704l293 -294q38 -36 38 -90t-38 -90l-75 -76q-37 -37 -90 -37q-52 0 -91 37l-651 652q-37 37 -37 90q0 52 37 91l651 650q38 38 91 38q52 0 90 -38l75 -74q38 -38 38 -91t-38 -91l-293 -293h704q52 0 84.5 -37.5 t32.5 -90.5z" />
|
125 |
+
<glyph unicode="" d="M1472 576q0 -54 -37 -91l-651 -651q-39 -37 -91 -37q-51 0 -90 37l-75 75q-38 38 -38 91t38 91l293 293h-704q-52 0 -84.5 37.5t-32.5 90.5v128q0 53 32.5 90.5t84.5 37.5h704l-293 294q-38 36 -38 90t38 90l75 75q38 38 90 38q53 0 91 -38l651 -651q37 -35 37 -90z" />
|
126 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1611 565q0 -51 -37 -90l-75 -75q-38 -38 -91 -38q-54 0 -90 38l-294 293v-704q0 -52 -37.5 -84.5t-90.5 -32.5h-128q-53 0 -90.5 32.5t-37.5 84.5v704l-294 -293q-36 -38 -90 -38t-90 38l-75 75q-38 38 -38 90q0 53 38 91l651 651q35 37 90 37q54 0 91 -37l651 -651 q37 -39 37 -91z" />
|
127 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1611 704q0 -53 -37 -90l-651 -652q-39 -37 -91 -37q-53 0 -90 37l-651 652q-38 36 -38 90q0 53 38 91l74 75q39 37 91 37q53 0 90 -37l294 -294v704q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-704l294 294q37 37 90 37q52 0 91 -37l75 -75q37 -39 37 -91z" />
|
128 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 896q0 -26 -19 -45l-512 -512q-19 -19 -45 -19t-45 19t-19 45v256h-224q-98 0 -175.5 -6t-154 -21.5t-133 -42.5t-105.5 -69.5t-80 -101t-48.5 -138.5t-17.5 -181q0 -55 5 -123q0 -6 2.5 -23.5t2.5 -26.5q0 -15 -8.5 -25t-23.5 -10q-16 0 -28 17q-7 9 -13 22 t-13.5 30t-10.5 24q-127 285 -127 451q0 199 53 333q162 403 875 403h224v256q0 26 19 45t45 19t45 -19l512 -512q19 -19 19 -45z" />
|
129 |
+
<glyph unicode="" d="M755 480q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23zM1536 1344v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332 q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45z" />
|
130 |
+
<glyph unicode="" d="M768 576v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45zM1523 1248q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45 t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23z" />
|
131 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1408 800v-192q0 -40 -28 -68t-68 -28h-416v-416q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v416h-416q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h416v416q0 40 28 68t68 28h192q40 0 68 -28t28 -68v-416h416q40 0 68 -28t28 -68z" />
|
132 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1408 800v-192q0 -40 -28 -68t-68 -28h-1216q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h1216q40 0 68 -28t28 -68z" />
|
133 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1482 486q46 -26 59.5 -77.5t-12.5 -97.5l-64 -110q-26 -46 -77.5 -59.5t-97.5 12.5l-266 153v-307q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v307l-266 -153q-46 -26 -97.5 -12.5t-77.5 59.5l-64 110q-26 46 -12.5 97.5t59.5 77.5l266 154l-266 154 q-46 26 -59.5 77.5t12.5 97.5l64 110q26 46 77.5 59.5t97.5 -12.5l266 -153v307q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-307l266 153q46 26 97.5 12.5t77.5 -59.5l64 -110q26 -46 12.5 -97.5t-59.5 -77.5l-266 -154z" />
|
134 |
+
<glyph unicode="" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM896 161v190q0 14 -9 23.5t-22 9.5h-192q-13 0 -23 -10t-10 -23v-190q0 -13 10 -23t23 -10h192 q13 0 22 9.5t9 23.5zM894 505l18 621q0 12 -10 18q-10 8 -24 8h-220q-14 0 -24 -8q-10 -6 -10 -18l17 -621q0 -10 10 -17.5t24 -7.5h185q14 0 23.5 7.5t10.5 17.5z" />
|
135 |
+
<glyph unicode="" d="M928 180v56v468v192h-320v-192v-468v-56q0 -25 18 -38.5t46 -13.5h192q28 0 46 13.5t18 38.5zM472 1024h195l-126 161q-26 31 -69 31q-40 0 -68 -28t-28 -68t28 -68t68 -28zM1160 1120q0 40 -28 68t-68 28q-43 0 -69 -31l-125 -161h194q40 0 68 28t28 68zM1536 864v-320 q0 -14 -9 -23t-23 -9h-96v-416q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v416h-96q-14 0 -23 9t-9 23v320q0 14 9 23t23 9h440q-93 0 -158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5q107 0 168 -77l128 -165l128 165q61 77 168 77q93 0 158.5 -65.5t65.5 -158.5 t-65.5 -158.5t-158.5 -65.5h440q14 0 23 -9t9 -23z" />
|
136 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1280 832q0 26 -19 45t-45 19q-172 0 -318 -49.5t-259.5 -134t-235.5 -219.5q-19 -21 -19 -45q0 -26 19 -45t45 -19q24 0 45 19q27 24 74 71t67 66q137 124 268.5 176t313.5 52q26 0 45 19t19 45zM1792 1030q0 -95 -20 -193q-46 -224 -184.5 -383t-357.5 -268 q-214 -108 -438 -108q-148 0 -286 47q-15 5 -88 42t-96 37q-16 0 -39.5 -32t-45 -70t-52.5 -70t-60 -32q-30 0 -51 11t-31 24t-27 42q-2 4 -6 11t-5.5 10t-3 9.5t-1.5 13.5q0 35 31 73.5t68 65.5t68 56t31 48q0 4 -14 38t-16 44q-9 51 -9 104q0 115 43.5 220t119 184.5 t170.5 139t204 95.5q55 18 145 25.5t179.5 9t178.5 6t163.5 24t113.5 56.5l29.5 29.5t29.5 28t27 20t36.5 16t43.5 4.5q39 0 70.5 -46t47.5 -112t24 -124t8 -96z" />
|
137 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1408 -160v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1152 896q0 -78 -24.5 -144t-64 -112.5t-87.5 -88t-96 -77.5t-87.5 -72t-64 -81.5t-24.5 -96.5q0 -96 67 -224l-4 1l1 -1 q-90 41 -160 83t-138.5 100t-113.5 122.5t-72.5 150.5t-27.5 184q0 78 24.5 144t64 112.5t87.5 88t96 77.5t87.5 72t64 81.5t24.5 96.5q0 94 -66 224l3 -1l-1 1q90 -41 160 -83t138.5 -100t113.5 -122.5t72.5 -150.5t27.5 -184z" />
|
138 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1664 576q-152 236 -381 353q61 -104 61 -225q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 121 61 225q-229 -117 -381 -353q133 -205 333.5 -326.5t434.5 -121.5t434.5 121.5t333.5 326.5zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5 t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1792 576q0 -34 -20 -69q-140 -230 -376.5 -368.5t-499.5 -138.5t-499.5 139t-376.5 368q-20 35 -20 69t20 69q140 229 376.5 368t499.5 139t499.5 -139t376.5 -368q20 -35 20 -69z" />
|
139 |
+
<glyph unicode="" horiz-adv-x="1792" d="M555 201l78 141q-87 63 -136 159t-49 203q0 121 61 225q-229 -117 -381 -353q167 -258 427 -375zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1307 1151q0 -7 -1 -9 q-105 -188 -315 -566t-316 -567l-49 -89q-10 -16 -28 -16q-12 0 -134 70q-16 10 -16 28q0 12 44 87q-143 65 -263.5 173t-208.5 245q-20 31 -20 69t20 69q153 235 380 371t496 136q89 0 180 -17l54 97q10 16 28 16q5 0 18 -6t31 -15.5t33 -18.5t31.5 -18.5t19.5 -11.5 q16 -10 16 -27zM1344 704q0 -139 -79 -253.5t-209 -164.5l280 502q8 -45 8 -84zM1792 576q0 -35 -20 -69q-39 -64 -109 -145q-150 -172 -347.5 -267t-419.5 -95l74 132q212 18 392.5 137t301.5 307q-115 179 -282 294l63 112q95 -64 182.5 -153t144.5 -184q20 -34 20 -69z " />
|
140 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1024 161v190q0 14 -9.5 23.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -23.5v-190q0 -14 9.5 -23.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 23.5zM1022 535l18 459q0 12 -10 19q-13 11 -24 11h-220q-11 0 -24 -11q-10 -7 -10 -21l17 -457q0 -10 10 -16.5t24 -6.5h185 q14 0 23.5 6.5t10.5 16.5zM1008 1469l768 -1408q35 -63 -2 -126q-17 -29 -46.5 -46t-63.5 -17h-1536q-34 0 -63.5 17t-46.5 46q-37 63 -2 126l768 1408q17 31 47 49t65 18t65 -18t47 -49z" />
|
141 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1376 1376q44 -52 12 -148t-108 -172l-225 -225l160 -696q5 -19 -12 -33l-128 -96q-7 -6 -19 -6q-4 0 -7 1q-15 3 -21 16l-279 508l-195 -195l53 -194q5 -17 -8 -31l-96 -96q-9 -9 -23 -9h-2q-15 2 -24 13l-189 252l-252 189q-11 7 -13 23q-1 13 9 25l96 97q9 9 23 9 q6 0 8 -1l194 -53l195 195l-508 279q-14 8 -17 24q-2 16 9 27l128 128q14 13 30 8l665 -159l224 224q76 76 172 108t148 -12z" />
|
142 |
+
<glyph unicode="" horiz-adv-x="1664" d="M128 -128h288v288h-288v-288zM480 -128h320v288h-320v-288zM128 224h288v320h-288v-320zM480 224h320v320h-320v-320zM128 608h288v288h-288v-288zM864 -128h320v288h-320v-288zM480 608h320v288h-320v-288zM1248 -128h288v288h-288v-288zM864 224h320v320h-320v-320z M512 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1248 224h288v320h-288v-320zM864 608h320v288h-320v-288zM1248 608h288v288h-288v-288zM1280 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64 q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1664 1152v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47 h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />
|
143 |
+
<glyph unicode="" horiz-adv-x="1792" d="M666 1055q-60 -92 -137 -273q-22 45 -37 72.5t-40.5 63.5t-51 56.5t-63 35t-81.5 14.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q250 0 410 -225zM1792 256q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v192q-32 0 -85 -0.5t-81 -1t-73 1 t-71 5t-64 10.5t-63 18.5t-58 28.5t-59 40t-55 53.5t-56 69.5q59 93 136 273q22 -45 37 -72.5t40.5 -63.5t51 -56.5t63 -35t81.5 -14.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23zM1792 1152q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5 v192h-256q-48 0 -87 -15t-69 -45t-51 -61.5t-45 -77.5q-32 -62 -78 -171q-29 -66 -49.5 -111t-54 -105t-64 -100t-74 -83t-90 -68.5t-106.5 -42t-128 -16.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q48 0 87 15t69 45t51 61.5t45 77.5q32 62 78 171q29 66 49.5 111 t54 105t64 100t74 83t90 68.5t106.5 42t128 16.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" />
|
144 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 640q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22q-17 -2 -30.5 9t-17.5 29v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281 q0 130 71 248.5t191 204.5t286 136.5t348 50.5q244 0 450 -85.5t326 -233t120 -321.5z" />
|
145 |
+
<glyph unicode="" d="M1536 704v-128q0 -201 -98.5 -362t-274 -251.5t-395.5 -90.5t-395.5 90.5t-274 251.5t-98.5 362v128q0 26 19 45t45 19h384q26 0 45 -19t19 -45v-128q0 -52 23.5 -90t53.5 -57t71 -30t64 -13t44 -2t44 2t64 13t71 30t53.5 57t23.5 90v128q0 26 19 45t45 19h384 q26 0 45 -19t19 -45zM512 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45zM1536 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45z" />
|
146 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1611 320q0 -53 -37 -90l-75 -75q-38 -38 -91 -38q-54 0 -90 38l-486 485l-486 -485q-36 -38 -90 -38t-90 38l-75 75q-38 36 -38 90q0 53 38 91l651 651q37 37 90 37q52 0 91 -37l650 -651q38 -38 38 -91z" />
|
147 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1611 832q0 -53 -37 -90l-651 -651q-38 -38 -91 -38q-54 0 -90 38l-651 651q-38 36 -38 90q0 53 38 91l74 75q39 37 91 37q53 0 90 -37l486 -486l486 486q37 37 90 37q52 0 91 -37l75 -75q37 -39 37 -91z" />
|
148 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1280 32q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-8 0 -13.5 2t-9 7t-5.5 8t-3 11.5t-1 11.5v13v11v160v416h-192q-26 0 -45 19t-19 45q0 24 15 41l320 384q19 22 49 22t49 -22l320 -384q15 -17 15 -41q0 -26 -19 -45t-45 -19h-192v-384h576q16 0 25 -11l160 -192q7 -11 7 -21 zM1920 448q0 -24 -15 -41l-320 -384q-20 -23 -49 -23t-49 23l-320 384q-15 17 -15 41q0 26 19 45t45 19h192v384h-576q-16 0 -25 12l-160 192q-7 9 -7 20q0 13 9.5 22.5t22.5 9.5h960q8 0 13.5 -2t9 -7t5.5 -8t3 -11.5t1 -11.5v-13v-11v-160v-416h192q26 0 45 -19t19 -45z " />
|
149 |
+
<glyph unicode="" horiz-adv-x="1664" d="M640 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1536 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1664 1088v-512q0 -24 -16 -42.5t-41 -21.5 l-1044 -122q1 -7 4.5 -21.5t6 -26.5t2.5 -22q0 -16 -24 -64h920q26 0 45 -19t19 -45t-19 -45t-45 -19h-1024q-26 0 -45 19t-19 45q0 14 11 39.5t29.5 59.5t20.5 38l-177 823h-204q-26 0 -45 19t-19 45t19 45t45 19h256q16 0 28.5 -6.5t20 -15.5t13 -24.5t7.5 -26.5 t5.5 -29.5t4.5 -25.5h1201q26 0 45 -19t19 -45z" />
|
150 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" />
|
151 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1879 584q0 -31 -31 -66l-336 -396q-43 -51 -120.5 -86.5t-143.5 -35.5h-1088q-34 0 -60.5 13t-26.5 43q0 31 31 66l336 396q43 51 120.5 86.5t143.5 35.5h1088q34 0 60.5 -13t26.5 -43zM1536 928v-160h-832q-94 0 -197 -47.5t-164 -119.5l-337 -396l-5 -6q0 4 -0.5 12.5 t-0.5 12.5v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158z" />
|
152 |
+
<glyph unicode="" horiz-adv-x="768" d="M704 1216q0 -26 -19 -45t-45 -19h-128v-1024h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v1024h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45z" />
|
153 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-1024v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h1024v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" />
|
154 |
+
<glyph unicode="" horiz-adv-x="1920" d="M512 512v-384h-256v384h256zM896 1024v-896h-256v896h256zM1280 768v-640h-256v640h256zM1664 1152v-1024h-256v1024h256zM1792 32v1216q0 13 -9.5 22.5t-22.5 9.5h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-1216q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5z M1920 1248v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
|
155 |
+
<glyph unicode="" d="M1280 926q-56 -25 -121 -34q68 40 93 117q-65 -38 -134 -51q-61 66 -153 66q-87 0 -148.5 -61.5t-61.5 -148.5q0 -29 5 -48q-129 7 -242 65t-192 155q-29 -50 -29 -106q0 -114 91 -175q-47 1 -100 26v-2q0 -75 50 -133.5t123 -72.5q-29 -8 -51 -8q-13 0 -39 4 q21 -63 74.5 -104t121.5 -42q-116 -90 -261 -90q-26 0 -50 3q148 -94 322 -94q112 0 210 35.5t168 95t120.5 137t75 162t24.5 168.5q0 18 -1 27q63 45 105 109zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5 t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
156 |
+
<glyph unicode="" d="M1307 618l23 219h-198v109q0 49 15.5 68.5t71.5 19.5h110v219h-175q-152 0 -218 -72t-66 -213v-131h-131v-219h131v-635h262v635h175zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960 q119 0 203.5 -84.5t84.5 -203.5z" />
|
157 |
+
<glyph unicode="" horiz-adv-x="1792" d="M928 704q0 14 -9 23t-23 9q-66 0 -113 -47t-47 -113q0 -14 9 -23t23 -9t23 9t9 23q0 40 28 68t68 28q14 0 23 9t9 23zM1152 574q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM128 0h1536v128h-1536v-128zM1280 574q0 159 -112.5 271.5 t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM256 1216h384v128h-384v-128zM128 1024h1536v118v138h-828l-64 -128h-644v-128zM1792 1280v-1280q0 -53 -37.5 -90.5t-90.5 -37.5h-1536q-53 0 -90.5 37.5t-37.5 90.5v1280 q0 53 37.5 90.5t90.5 37.5h1536q53 0 90.5 -37.5t37.5 -90.5z" />
|
158 |
+
<glyph unicode="" horiz-adv-x="1792" d="M832 1024q0 80 -56 136t-136 56t-136 -56t-56 -136q0 -42 19 -83q-41 19 -83 19q-80 0 -136 -56t-56 -136t56 -136t136 -56t136 56t56 136q0 42 -19 83q41 -19 83 -19q80 0 136 56t56 136zM1683 320q0 -17 -49 -66t-66 -49q-9 0 -28.5 16t-36.5 33t-38.5 40t-24.5 26 l-96 -96l220 -220q28 -28 28 -68q0 -42 -39 -81t-81 -39q-40 0 -68 28l-671 671q-176 -131 -365 -131q-163 0 -265.5 102.5t-102.5 265.5q0 160 95 313t248 248t313 95q163 0 265.5 -102.5t102.5 -265.5q0 -189 -131 -365l355 -355l96 96q-3 3 -26 24.5t-40 38.5t-33 36.5 t-16 28.5q0 17 49 66t66 49q13 0 23 -10q6 -6 46 -44.5t82 -79.5t86.5 -86t73 -78t28.5 -41z" />
|
159 |
+
<glyph unicode="" horiz-adv-x="1920" d="M896 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1664 128q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 1152q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5 t90.5 37.5t37.5 90.5zM1280 731v-185q0 -10 -7 -19.5t-16 -10.5l-155 -24q-11 -35 -32 -76q34 -48 90 -115q7 -10 7 -20q0 -12 -7 -19q-23 -30 -82.5 -89.5t-78.5 -59.5q-11 0 -21 7l-115 90q-37 -19 -77 -31q-11 -108 -23 -155q-7 -24 -30 -24h-186q-11 0 -20 7.5t-10 17.5 l-23 153q-34 10 -75 31l-118 -89q-7 -7 -20 -7q-11 0 -21 8q-144 133 -144 160q0 9 7 19q10 14 41 53t47 61q-23 44 -35 82l-152 24q-10 1 -17 9.5t-7 19.5v185q0 10 7 19.5t16 10.5l155 24q11 35 32 76q-34 48 -90 115q-7 11 -7 20q0 12 7 20q22 30 82 89t79 59q11 0 21 -7 l115 -90q34 18 77 32q11 108 23 154q7 24 30 24h186q11 0 20 -7.5t10 -17.5l23 -153q34 -10 75 -31l118 89q8 7 20 7q11 0 21 -8q144 -133 144 -160q0 -9 -7 -19q-12 -16 -42 -54t-45 -60q23 -48 34 -82l152 -23q10 -2 17 -10.5t7 -19.5zM1920 198v-140q0 -16 -149 -31 q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20 t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31zM1920 1222v-140q0 -16 -149 -31q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68 q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70 q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31z" />
|
160 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1408 768q0 -139 -94 -257t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224 q0 139 94 257t256.5 186.5t353.5 68.5t353.5 -68.5t256.5 -186.5t94 -257zM1792 512q0 -120 -71 -224.5t-195 -176.5q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7 q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230z" />
|
161 |
+
<glyph unicode="" d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 768q0 51 -39 89.5t-89 38.5h-352q0 58 48 159.5t48 160.5q0 98 -32 145t-128 47q-26 -26 -38 -85t-30.5 -125.5t-59.5 -109.5q-22 -23 -77 -91q-4 -5 -23 -30t-31.5 -41t-34.5 -42.5 t-40 -44t-38.5 -35.5t-40 -27t-35.5 -9h-32v-640h32q13 0 31.5 -3t33 -6.5t38 -11t35 -11.5t35.5 -12.5t29 -10.5q211 -73 342 -73h121q192 0 192 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5q32 1 53.5 47t21.5 81zM1536 769 q0 -89 -49 -163q9 -33 9 -69q0 -77 -38 -144q3 -21 3 -43q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5h-36h-93q-96 0 -189.5 22.5t-216.5 65.5q-116 40 -138 40h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h274q36 24 137 155q58 75 107 128 q24 25 35.5 85.5t30.5 126.5t62 108q39 37 90 37q84 0 151 -32.5t102 -101.5t35 -186q0 -93 -48 -192h176q104 0 180 -76t76 -179z" />
|
162 |
+
<glyph unicode="" d="M256 1088q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 512q0 35 -21.5 81t-53.5 47q15 17 25 47.5t10 55.5q0 69 -53 119q18 32 18 69t-17.5 73.5t-47.5 52.5q5 30 5 56q0 85 -49 126t-136 41h-128q-131 0 -342 -73q-5 -2 -29 -10.5 t-35.5 -12.5t-35 -11.5t-38 -11t-33 -6.5t-31.5 -3h-32v-640h32q16 0 35.5 -9t40 -27t38.5 -35.5t40 -44t34.5 -42.5t31.5 -41t23 -30q55 -68 77 -91q41 -43 59.5 -109.5t30.5 -125.5t38 -85q96 0 128 47t32 145q0 59 -48 160.5t-48 159.5h352q50 0 89 38.5t39 89.5z M1536 511q0 -103 -76 -179t-180 -76h-176q48 -99 48 -192q0 -118 -35 -186q-35 -69 -102 -101.5t-151 -32.5q-51 0 -90 37q-34 33 -54 82t-25.5 90.5t-17.5 84.5t-31 64q-48 50 -107 127q-101 131 -137 155h-274q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5 h288q22 0 138 40q128 44 223 66t200 22h112q140 0 226.5 -79t85.5 -216v-5q60 -77 60 -178q0 -22 -3 -43q38 -67 38 -144q0 -36 -9 -69q49 -74 49 -163z" />
|
163 |
+
<glyph unicode="" horiz-adv-x="896" d="M832 1504v-1339l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41z" />
|
164 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1664 940q0 81 -21.5 143t-55 98.5t-81.5 59.5t-94 31t-98 8t-112 -25.5t-110.5 -64t-86.5 -72t-60 -61.5q-18 -22 -49 -22t-49 22q-24 28 -60 61.5t-86.5 72t-110.5 64t-112 25.5t-98 -8t-94 -31t-81.5 -59.5t-55 -98.5t-21.5 -143q0 -168 187 -355l581 -560l580 559 q188 188 188 356zM1792 940q0 -221 -229 -450l-623 -600q-18 -18 -44 -18t-44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5 q224 0 351 -124t127 -344z" />
|
165 |
+
<glyph unicode="" horiz-adv-x="1664" d="M640 96q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h320q13 0 22.5 -9.5t9.5 -22.5q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-66 0 -113 -47t-47 -113v-704 q0 -66 47 -113t113 -47h288h11h13t11.5 -1t11.5 -3t8 -5.5t7 -9t2 -13.5zM1568 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45z" />
|
166 |
+
<glyph unicode="" d="M237 122h231v694h-231v-694zM483 1030q-1 52 -36 86t-93 34t-94.5 -34t-36.5 -86q0 -51 35.5 -85.5t92.5 -34.5h1q59 0 95 34.5t36 85.5zM1068 122h231v398q0 154 -73 233t-193 79q-136 0 -209 -117h2v101h-231q3 -66 0 -694h231v388q0 38 7 56q15 35 45 59.5t74 24.5 q116 0 116 -157v-371zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
167 |
+
<glyph unicode="" horiz-adv-x="1152" d="M480 672v448q0 14 -9 23t-23 9t-23 -9t-9 -23v-448q0 -14 9 -23t23 -9t23 9t9 23zM1152 320q0 -26 -19 -45t-45 -19h-429l-51 -483q-2 -12 -10.5 -20.5t-20.5 -8.5h-1q-27 0 -32 27l-76 485h-404q-26 0 -45 19t-19 45q0 123 78.5 221.5t177.5 98.5v512q-52 0 -90 38 t-38 90t38 90t90 38h640q52 0 90 -38t38 -90t-38 -90t-90 -38v-512q99 0 177.5 -98.5t78.5 -221.5z" />
|
168 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1408 608v-320q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h704q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v320 q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1792 1472v-512q0 -26 -19 -45t-45 -19t-45 19l-176 176l-652 -652q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l652 652l-176 176q-19 19 -19 45t19 45t45 19h512q26 0 45 -19t19 -45z" />
|
169 |
+
<glyph unicode="" d="M1184 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45zM1536 992v-704q0 -119 -84.5 -203.5t-203.5 -84.5h-320q-13 0 -22.5 9.5t-9.5 22.5 q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q66 0 113 47t47 113v704q0 66 -47 113t-113 47h-288h-11h-13t-11.5 1t-11.5 3t-8 5.5t-7 9t-2 13.5q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q119 0 203.5 -84.5t84.5 -203.5z" />
|
170 |
+
<glyph unicode="" horiz-adv-x="1664" d="M458 653q-74 162 -74 371h-256v-96q0 -78 94.5 -162t235.5 -113zM1536 928v96h-256q0 -209 -74 -371q141 29 235.5 113t94.5 162zM1664 1056v-128q0 -71 -41.5 -143t-112 -130t-173 -97.5t-215.5 -44.5q-42 -54 -95 -95q-38 -34 -52.5 -72.5t-14.5 -89.5q0 -54 30.5 -91 t97.5 -37q75 0 133.5 -45.5t58.5 -114.5v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v64q0 69 58.5 114.5t133.5 45.5q67 0 97.5 37t30.5 91q0 51 -14.5 89.5t-52.5 72.5q-53 41 -95 95q-113 5 -215.5 44.5t-173 97.5t-112 130t-41.5 143v128q0 40 28 68t68 28h288v96 q0 66 47 113t113 47h576q66 0 113 -47t47 -113v-96h288q40 0 68 -28t28 -68z" />
|
171 |
+
<glyph unicode="" d="M394 184q-8 -9 -20 3q-13 11 -4 19q8 9 20 -3q12 -11 4 -19zM352 245q9 -12 0 -19q-8 -6 -17 7t0 18q9 7 17 -6zM291 305q-5 -7 -13 -2q-10 5 -7 12q3 5 13 2q10 -5 7 -12zM322 271q-6 -7 -16 3q-9 11 -2 16q6 6 16 -3q9 -11 2 -16zM451 159q-4 -12 -19 -6q-17 4 -13 15 t19 7q16 -5 13 -16zM514 154q0 -11 -16 -11q-17 -2 -17 11q0 11 16 11q17 2 17 -11zM572 164q2 -10 -14 -14t-18 8t14 15q16 2 18 -9zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-224q-16 0 -24.5 1t-19.5 5t-16 14.5t-5 27.5v239q0 97 -52 142q57 6 102.5 18t94 39 t81 66.5t53 105t20.5 150.5q0 121 -79 206q37 91 -8 204q-28 9 -81 -11t-92 -44l-38 -24q-93 26 -192 26t-192 -26q-16 11 -42.5 27t-83.5 38.5t-86 13.5q-44 -113 -7 -204q-79 -85 -79 -206q0 -85 20.5 -150t52.5 -105t80.5 -67t94 -39t102.5 -18q-40 -36 -49 -103 q-21 -10 -45 -15t-57 -5t-65.5 21.5t-55.5 62.5q-19 32 -48.5 52t-49.5 24l-20 3q-21 0 -29 -4.5t-5 -11.5t9 -14t13 -12l7 -5q22 -10 43.5 -38t31.5 -51l10 -23q13 -38 44 -61.5t67 -30t69.5 -7t55.5 3.5l23 4q0 -38 0.5 -103t0.5 -68q0 -22 -11 -33.5t-22 -13t-33 -1.5 h-224q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
172 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1280 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 288v-320q0 -40 -28 -68t-68 -28h-1472q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h427q21 -56 70.5 -92 t110.5 -36h256q61 0 110.5 36t70.5 92h427q40 0 68 -28t28 -68zM1339 936q-17 -40 -59 -40h-256v-448q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v448h-256q-42 0 -59 40q-17 39 14 69l448 448q18 19 45 19t45 -19l448 -448q31 -30 14 -69z" />
|
173 |
+
<glyph unicode="" d="M1407 710q0 44 -7 113.5t-18 96.5q-12 30 -17 44t-9 36.5t-4 48.5q0 23 5 68.5t5 67.5q0 37 -10 55q-4 1 -13 1q-19 0 -58 -4.5t-59 -4.5q-60 0 -176 24t-175 24q-43 0 -94.5 -11.5t-85 -23.5t-89.5 -34q-137 -54 -202 -103q-96 -73 -159.5 -189.5t-88 -236t-24.5 -248.5 q0 -40 12.5 -120t12.5 -121q0 -23 -11 -66.5t-11 -65.5t12 -36.5t34 -14.5q24 0 72.5 11t73.5 11q57 0 169.5 -15.5t169.5 -15.5q181 0 284 36q129 45 235.5 152.5t166 245.5t59.5 275zM1535 712q0 -165 -70 -327.5t-196 -288t-281 -180.5q-124 -44 -326 -44 q-57 0 -170 14.5t-169 14.5q-24 0 -72.5 -14.5t-73.5 -14.5q-73 0 -123.5 55.5t-50.5 128.5q0 24 11 68t11 67q0 40 -12.5 120.5t-12.5 121.5q0 111 18 217.5t54.5 209.5t100.5 194t150 156q78 59 232 120q194 78 316 78q60 0 175.5 -24t173.5 -24q19 0 57 5t58 5 q81 0 118 -50.5t37 -134.5q0 -23 -5 -68t-5 -68q0 -10 1 -18.5t3 -17t4 -13.5t6.5 -16t6.5 -17q16 -40 25 -118.5t9 -136.5z" />
|
174 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1408 296q0 -27 -10 -70.5t-21 -68.5q-21 -50 -122 -106q-94 -51 -186 -51q-27 0 -52.5 3.5t-57.5 12.5t-47.5 14.5t-55.5 20.5t-49 18q-98 35 -175 83q-128 79 -264.5 215.5t-215.5 264.5q-48 77 -83 175q-3 9 -18 49t-20.5 55.5t-14.5 47.5t-12.5 57.5t-3.5 52.5 q0 92 51 186q56 101 106 122q25 11 68.5 21t70.5 10q14 0 21 -3q18 -6 53 -76q11 -19 30 -54t35 -63.5t31 -53.5q3 -4 17.5 -25t21.5 -35.5t7 -28.5q0 -20 -28.5 -50t-62 -55t-62 -53t-28.5 -46q0 -9 5 -22.5t8.5 -20.5t14 -24t11.5 -19q76 -137 174 -235t235 -174 q2 -1 19 -11.5t24 -14t20.5 -8.5t22.5 -5q18 0 46 28.5t53 62t55 62t50 28.5q14 0 28.5 -7t35.5 -21.5t25 -17.5q25 -15 53.5 -31t63.5 -35t54 -30q70 -35 76 -53q3 -7 3 -21z" />
|
175 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1120 1280h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v832q0 66 -47 113t-113 47zM1408 1120v-832q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832 q119 0 203.5 -84.5t84.5 -203.5z" />
|
176 |
+
<glyph unicode="" horiz-adv-x="1280" d="M1152 1280h-1024v-1242l423 406l89 85l89 -85l423 -406v1242zM1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289 q0 34 19.5 62t52.5 41q21 9 44 9h1048z" />
|
177 |
+
<glyph unicode="" d="M1280 343q0 11 -2 16q-3 8 -38.5 29.5t-88.5 49.5l-53 29q-5 3 -19 13t-25 15t-21 5q-18 0 -47 -32.5t-57 -65.5t-44 -33q-7 0 -16.5 3.5t-15.5 6.5t-17 9.5t-14 8.5q-99 55 -170.5 126.5t-126.5 170.5q-2 3 -8.5 14t-9.5 17t-6.5 15.5t-3.5 16.5q0 13 20.5 33.5t45 38.5 t45 39.5t20.5 36.5q0 10 -5 21t-15 25t-13 19q-3 6 -15 28.5t-25 45.5t-26.5 47.5t-25 40.5t-16.5 18t-16 2q-48 0 -101 -22q-46 -21 -80 -94.5t-34 -130.5q0 -16 2.5 -34t5 -30.5t9 -33t10 -29.5t12.5 -33t11 -30q60 -164 216.5 -320.5t320.5 -216.5q6 -2 30 -11t33 -12.5 t29.5 -10t33 -9t30.5 -5t34 -2.5q57 0 130.5 34t94.5 80q22 53 22 101zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
178 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1620 1128q-67 -98 -162 -167q1 -14 1 -42q0 -130 -38 -259.5t-115.5 -248.5t-184.5 -210.5t-258 -146t-323 -54.5q-271 0 -496 145q35 -4 78 -4q225 0 401 138q-105 2 -188 64.5t-114 159.5q33 -5 61 -5q43 0 85 11q-112 23 -185.5 111.5t-73.5 205.5v4q68 -38 146 -41 q-66 44 -105 115t-39 154q0 88 44 163q121 -149 294.5 -238.5t371.5 -99.5q-8 38 -8 74q0 134 94.5 228.5t228.5 94.5q140 0 236 -102q109 21 205 78q-37 -115 -142 -178q93 10 186 50z" />
|
179 |
+
<glyph unicode="" horiz-adv-x="768" d="M511 980h257l-30 -284h-227v-824h-341v824h-170v284h170v171q0 182 86 275.5t283 93.5h227v-284h-142q-39 0 -62.5 -6.5t-34 -23.5t-13.5 -34.5t-3 -49.5v-142z" />
|
180 |
+
<glyph unicode="" d="M1536 640q0 -251 -146.5 -451.5t-378.5 -277.5q-27 -5 -39.5 7t-12.5 30v211q0 97 -52 142q57 6 102.5 18t94 39t81 66.5t53 105t20.5 150.5q0 121 -79 206q37 91 -8 204q-28 9 -81 -11t-92 -44l-38 -24q-93 26 -192 26t-192 -26q-16 11 -42.5 27t-83.5 38.5t-86 13.5 q-44 -113 -7 -204q-79 -85 -79 -206q0 -85 20.5 -150t52.5 -105t80.5 -67t94 -39t102.5 -18q-40 -36 -49 -103q-21 -10 -45 -15t-57 -5t-65.5 21.5t-55.5 62.5q-19 32 -48.5 52t-49.5 24l-20 3q-21 0 -29 -4.5t-5 -11.5t9 -14t13 -12l7 -5q22 -10 43.5 -38t31.5 -51l10 -23 q13 -38 44 -61.5t67 -30t69.5 -7t55.5 3.5l23 4q0 -38 0.5 -89t0.5 -54q0 -18 -13 -30t-40 -7q-232 77 -378.5 277.5t-146.5 451.5q0 209 103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
181 |
+
<glyph unicode="" horiz-adv-x="1664" d="M704 160q0 6 -15 57t-35 115.5t-20 65.5q32 16 51 47t19 67q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5q0 -36 19 -66.5t51 -47.5q0 -2 -20 -66t-35 -115t-15 -57q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5zM1664 960v-256q0 -26 -19 -45t-45 -19 h-64q-26 0 -45 19t-19 45v256q0 106 -75 181t-181 75t-181 -75t-75 -181v-192h96q40 0 68 -28t28 -68v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h672v192q0 185 131.5 316.5t316.5 131.5t316.5 -131.5t131.5 -316.5z" />
|
182 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1760 1408q66 0 113 -47t47 -113v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600zM160 1280q-13 0 -22.5 -9.5t-9.5 -22.5v-224h1664v224q0 13 -9.5 22.5t-22.5 9.5h-1600zM1760 0q13 0 22.5 9.5t9.5 22.5v608h-1664v-608 q0 -13 9.5 -22.5t22.5 -9.5h1600zM256 128v128h256v-128h-256zM640 128v128h384v-128h-384z" />
|
183 |
+
<glyph unicode="" horiz-adv-x="1408" d="M384 192q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM896 69q2 -28 -17 -48q-18 -21 -47 -21h-135q-25 0 -43 16.5t-20 41.5q-22 229 -184.5 391.5t-391.5 184.5q-25 2 -41.5 20t-16.5 43v135q0 29 21 47q17 17 43 17h5q160 -13 306 -80.5 t259 -181.5q114 -113 181.5 -259t80.5 -306zM1408 67q2 -27 -18 -47q-18 -20 -46 -20h-143q-26 0 -44.5 17.5t-19.5 42.5q-12 215 -101 408.5t-231.5 336t-336 231.5t-408.5 102q-25 1 -42.5 19.5t-17.5 43.5v143q0 28 20 46q18 18 44 18h3q262 -13 501.5 -120t425.5 -294 q187 -186 294 -425.5t120 -501.5z" />
|
184 |
+
<glyph unicode="" d="M1040 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1296 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1408 160v320q0 13 -9.5 22.5t-22.5 9.5 h-1216q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h1216q13 0 22.5 9.5t9.5 22.5zM178 640h1180l-157 482q-4 13 -16 21.5t-26 8.5h-782q-14 0 -26 -8.5t-16 -21.5zM1536 480v-320q0 -66 -47 -113t-113 -47h-1216q-66 0 -113 47t-47 113v320q0 25 16 75 l197 606q17 53 63 86t101 33h782q55 0 101 -33t63 -86l197 -606q16 -50 16 -75z" />
|
185 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1664 896q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5v-384q0 -52 -38 -90t-90 -38q-417 347 -812 380q-58 -19 -91 -66t-31 -100.5t40 -92.5q-20 -33 -23 -65.5t6 -58t33.5 -55t48 -50t61.5 -50.5q-29 -58 -111.5 -83t-168.5 -11.5t-132 55.5q-7 23 -29.5 87.5 t-32 94.5t-23 89t-15 101t3.5 98.5t22 110.5h-122q-66 0 -113 47t-47 113v192q0 66 47 113t113 47h480q435 0 896 384q52 0 90 -38t38 -90v-384zM1536 292v954q-394 -302 -768 -343v-270q377 -42 768 -341z" />
|
186 |
+
<glyph unicode="" horiz-adv-x="1664" d="M848 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM183 128h1298q-164 181 -246.5 411.5t-82.5 484.5q0 256 -320 256t-320 -256q0 -254 -82.5 -484.5t-246.5 -411.5zM1664 128q0 -52 -38 -90t-90 -38 h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q190 161 287 397.5t97 498.5q0 165 96 262t264 117q-8 18 -8 37q0 40 28 68t68 28t68 -28t28 -68q0 -19 -8 -37q168 -20 264 -117t96 -262q0 -262 97 -498.5t287 -397.5z" />
|
187 |
+
<glyph unicode="" d="M1376 640l138 -135q30 -28 20 -70q-12 -41 -52 -51l-188 -48l53 -186q12 -41 -19 -70q-29 -31 -70 -19l-186 53l-48 -188q-10 -40 -51 -52q-12 -2 -19 -2q-31 0 -51 22l-135 138l-135 -138q-28 -30 -70 -20q-41 11 -51 52l-48 188l-186 -53q-41 -12 -70 19q-31 29 -19 70 l53 186l-188 48q-40 10 -52 51q-10 42 20 70l138 135l-138 135q-30 28 -20 70q12 41 52 51l188 48l-53 186q-12 41 19 70q29 31 70 19l186 -53l48 188q10 41 51 51q41 12 70 -19l135 -139l135 139q29 30 70 19q41 -10 51 -51l48 -188l186 53q41 12 70 -19q31 -29 19 -70 l-53 -186l188 -48q40 -10 52 -51q10 -42 -20 -70z" />
|
188 |
+
<glyph unicode="" horiz-adv-x="1792" d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 768q0 51 -39 89.5t-89 38.5h-576q0 20 15 48.5t33 55t33 68t15 84.5q0 67 -44.5 97.5t-115.5 30.5q-24 0 -90 -139q-24 -44 -37 -65q-40 -64 -112 -145q-71 -81 -101 -106 q-69 -57 -140 -57h-32v-640h32q72 0 167 -32t193.5 -64t179.5 -32q189 0 189 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5h331q52 0 90 38t38 90zM1792 769q0 -105 -75.5 -181t-180.5 -76h-169q-4 -62 -37 -119q3 -21 3 -43 q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5q-133 0 -322 69q-164 59 -223 59h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h288q10 0 21.5 4.5t23.5 14t22.5 18t24 22.5t20.5 21.5t19 21.5t14 17q65 74 100 129q13 21 33 62t37 72t40.5 63t55 49.5 t69.5 17.5q125 0 206.5 -67t81.5 -189q0 -68 -22 -128h374q104 0 180 -76t76 -179z" />
|
189 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1376 128h32v640h-32q-35 0 -67.5 12t-62.5 37t-50 46t-49 54q-2 3 -3.5 4.5t-4 4.5t-4.5 5q-72 81 -112 145q-14 22 -38 68q-1 3 -10.5 22.5t-18.5 36t-20 35.5t-21.5 30.5t-18.5 11.5q-71 0 -115.5 -30.5t-44.5 -97.5q0 -43 15 -84.5t33 -68t33 -55t15 -48.5h-576 q-50 0 -89 -38.5t-39 -89.5q0 -52 38 -90t90 -38h331q-15 -17 -25 -47.5t-10 -55.5q0 -69 53 -119q-18 -32 -18 -69t17.5 -73.5t47.5 -52.5q-4 -24 -4 -56q0 -85 48.5 -126t135.5 -41q84 0 183 32t194 64t167 32zM1664 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45 t45 -19t45 19t19 45zM1792 768v-640q0 -53 -37.5 -90.5t-90.5 -37.5h-288q-59 0 -223 -59q-190 -69 -317 -69q-142 0 -230 77.5t-87 217.5l1 5q-61 76 -61 178q0 22 3 43q-33 57 -37 119h-169q-105 0 -180.5 76t-75.5 181q0 103 76 179t180 76h374q-22 60 -22 128 q0 122 81.5 189t206.5 67q38 0 69.5 -17.5t55 -49.5t40.5 -63t37 -72t33 -62q35 -55 100 -129q2 -3 14 -17t19 -21.5t20.5 -21.5t24 -22.5t22.5 -18t23.5 -14t21.5 -4.5h288q53 0 90.5 -37.5t37.5 -90.5z" />
|
190 |
+
<glyph unicode="" d="M1280 -64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 700q0 189 -167 189q-26 0 -56 -5q-16 30 -52.5 47.5t-73.5 17.5t-69 -18q-50 53 -119 53q-25 0 -55.5 -10t-47.5 -25v331q0 52 -38 90t-90 38q-51 0 -89.5 -39t-38.5 -89v-576 q-20 0 -48.5 15t-55 33t-68 33t-84.5 15q-67 0 -97.5 -44.5t-30.5 -115.5q0 -24 139 -90q44 -24 65 -37q64 -40 145 -112q81 -71 106 -101q57 -69 57 -140v-32h640v32q0 72 32 167t64 193.5t32 179.5zM1536 705q0 -133 -69 -322q-59 -164 -59 -223v-288q0 -53 -37.5 -90.5 t-90.5 -37.5h-640q-53 0 -90.5 37.5t-37.5 90.5v288q0 10 -4.5 21.5t-14 23.5t-18 22.5t-22.5 24t-21.5 20.5t-21.5 19t-17 14q-74 65 -129 100q-21 13 -62 33t-72 37t-63 40.5t-49.5 55t-17.5 69.5q0 125 67 206.5t189 81.5q68 0 128 -22v374q0 104 76 180t179 76 q105 0 181 -75.5t76 -180.5v-169q62 -4 119 -37q21 3 43 3q101 0 178 -60q139 1 219.5 -85t80.5 -227z" />
|
191 |
+
<glyph unicode="" d="M1408 576q0 84 -32 183t-64 194t-32 167v32h-640v-32q0 -35 -12 -67.5t-37 -62.5t-46 -50t-54 -49q-9 -8 -14 -12q-81 -72 -145 -112q-22 -14 -68 -38q-3 -1 -22.5 -10.5t-36 -18.5t-35.5 -20t-30.5 -21.5t-11.5 -18.5q0 -71 30.5 -115.5t97.5 -44.5q43 0 84.5 15t68 33 t55 33t48.5 15v-576q0 -50 38.5 -89t89.5 -39q52 0 90 38t38 90v331q46 -35 103 -35q69 0 119 53q32 -18 69 -18t73.5 17.5t52.5 47.5q24 -4 56 -4q85 0 126 48.5t41 135.5zM1280 1344q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 580 q0 -142 -77.5 -230t-217.5 -87l-5 1q-76 -61 -178 -61q-22 0 -43 3q-54 -30 -119 -37v-169q0 -105 -76 -180.5t-181 -75.5q-103 0 -179 76t-76 180v374q-54 -22 -128 -22q-121 0 -188.5 81.5t-67.5 206.5q0 38 17.5 69.5t49.5 55t63 40.5t72 37t62 33q55 35 129 100 q3 2 17 14t21.5 19t21.5 20.5t22.5 24t18 22.5t14 23.5t4.5 21.5v288q0 53 37.5 90.5t90.5 37.5h640q53 0 90.5 -37.5t37.5 -90.5v-288q0 -59 59 -223q69 -190 69 -317z" />
|
192 |
+
<glyph unicode="" d="M1280 576v128q0 26 -19 45t-45 19h-502l189 189q19 19 19 45t-19 45l-91 91q-18 18 -45 18t-45 -18l-362 -362l-91 -91q-18 -18 -18 -45t18 -45l91 -91l362 -362q18 -18 45 -18t45 18l91 91q18 18 18 45t-18 45l-189 189h502q26 0 45 19t19 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
193 |
+
<glyph unicode="" d="M1285 640q0 27 -18 45l-91 91l-362 362q-18 18 -45 18t-45 -18l-91 -91q-18 -18 -18 -45t18 -45l189 -189h-502q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h502l-189 -189q-19 -19 -19 -45t19 -45l91 -91q18 -18 45 -18t45 18l362 362l91 91q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
194 |
+
<glyph unicode="" d="M1284 641q0 27 -18 45l-362 362l-91 91q-18 18 -45 18t-45 -18l-91 -91l-362 -362q-18 -18 -18 -45t18 -45l91 -91q18 -18 45 -18t45 18l189 189v-502q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v502l189 -189q19 -19 45 -19t45 19l91 91q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
195 |
+
<glyph unicode="" d="M1284 639q0 27 -18 45l-91 91q-18 18 -45 18t-45 -18l-189 -189v502q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-502l-189 189q-19 19 -45 19t-45 -19l-91 -91q-18 -18 -18 -45t18 -45l362 -362l91 -91q18 -18 45 -18t45 18l91 91l362 362q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
196 |
+
<glyph unicode="" d="M1193 993q11 7 25 22v-1q0 -2 -9.5 -10t-11.5 -12q-1 1 -4 1zM1187 992q-1 1 -2.5 3t-1.5 3q3 -2 10 -5q-6 -4 -6 -1zM728 1175q-16 2 -26 5q1 0 6.5 -1t10.5 -2t9 -2zM773 1212q7 4 13.5 2.5t7.5 -7.5q-5 3 -21 5zM765 1206l-3 2q-2 3 -5.5 5t-4.5 2q2 -1 21 -3 q-6 -4 -8 -6zM663 1290v2q1 -2 3 -5.5t3 -5.5zM558 1250q0 -2 -1 -2l-1 2h2zM933 206v-1v1zM768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1240 162 l5 5q-7 10 -29 12q1 12 -14 26.5t-27 15.5q0 4 -10.5 11t-17.5 8q-9 2 -27 -9q-7 -3 -4 -5q-3 3 -12 11t-16 11q-2 1 -7.5 1t-8.5 2q-1 1 -6 4.5t-7 4.5t-6.5 3t-7.5 1.5t-7.5 -2.5t-8.5 -6t-4.5 -15.5t-2.5 -14.5q-8 6 -0.5 20t1.5 20q-7 7 -21 0.5t-21 -15.5 q-1 -1 -9.5 -5.5t-11.5 -7.5q-4 -6 -9 -17.5t-6 -13.5q0 2 -2.5 6.5t-2.5 6.5q-12 -2 -16 3q5 -16 8 -17l-4 2q-1 -6 3 -15t4 -11q1 -5 -1.5 -13t-2.5 -11q0 -2 5 -11q4 -19 -2 -32q0 -1 -3.5 -7t-6.5 -11l-2 -5l-2 1q-1 1 -2 0q-1 -6 -9 -13t-10 -11q-15 -23 -9 -38 q3 -8 10 -10q3 -1 3 2q1 -9 -11 -27q1 -1 4 -3q-17 0 -10 -14q202 36 352 181h-3zM680 347q16 3 30.5 -16t22.5 -23q41 -20 59 -11q0 -9 14 -28q3 -4 6.5 -11.5t5.5 -10.5q5 -7 19 -16t19 -16q6 3 9 9q13 -35 24 -34q5 0 8 8q0 -1 -0.5 -3t-1.5 -3q7 15 5 26l6 4q5 4 5 5 q-6 6 -9 -3q-30 -14 -48 22q-2 3 -4.5 8t-5 12t-1.5 11.5t6 4.5q11 0 12.5 1.5t-2.5 6t-4 7.5q-1 4 -1.5 12.5t-1.5 12.5l-5 6q-5 6 -11.5 13.5t-7.5 9.5q-4 -10 -16.5 -8.5t-18.5 9.5q1 -2 -0.5 -6.5t-1.5 -6.5q-14 0 -17 1q1 6 3 21t4 22q1 5 5.5 13.5t8 15.5t4.5 14 t-4.5 10.5t-18.5 2.5q-20 -1 -29 -22q-1 -3 -3 -11.5t-5 -12.5t-9 -7q-8 -3 -27 -2t-26 5q-14 8 -24 30.5t-11 41.5q0 10 3 27.5t3 27t-6 26.5q3 2 10 10.5t11 11.5q2 2 5 2h5t4 2t3 6q-1 1 -4 3q-3 3 -4 3q4 -3 19 -1t19 2q0 1 22 0q17 -13 24 2q0 1 -2.5 10.5t-0.5 14.5 q5 -29 32 -10q3 -4 16.5 -6t18.5 -5q3 -2 7 -5.5t6 -5t6 -0.5t9 7q11 -17 13 -25q11 -43 20 -48q8 -2 12.5 -2t5 10.5t0 15.5t-1.5 13l-2 37q-16 3 -20 12.5t1.5 20t16.5 19.5q1 1 16.5 8t21.5 12q24 19 17 39q9 -2 11 9l-5 3q-4 3 -8 5.5t-5 1.5q11 7 2 18q5 3 8 11.5 t9 11.5q9 -14 22 -3q8 9 2 18q5 8 22 11.5t20 9.5q5 -1 7 0t2 4.5v7.5t1 8.5t3 7.5q4 6 16 10.5t14 5.5l19 12q4 4 0 4q18 -2 32 11q13 12 -5 23q2 7 -4 10.5t-16 5.5q3 1 12 0.5t12 1.5q15 11 -7 17q-20 5 -47 -13q-3 -2 -13 -12t-17 -11q15 18 5 22q8 -1 22.5 9t15.5 11 q4 2 10.5 2.5t8.5 1.5q71 25 92 -1q8 11 11 15t9.5 9t15.5 8q21 7 23 9l1 23q-12 -1 -18 8t-7 22l-6 -8q0 6 -3.5 7.5t-7.5 0.5t-9.5 -2t-7.5 0q-9 2 -19.5 15.5t-14.5 16.5q9 0 9 5q-2 5 -10 8q1 6 -2 8t-9 0q-2 12 -1 13q-6 1 -11 11t-8 10q-2 0 -4.5 -2t-5 -5.5l-5 -7 t-3.5 -5.5l-2 -2q-12 6 -24 -10q-9 1 -17 -2q15 6 2 13q-11 5 -21 2q12 5 10 14t-12 16q1 0 4 -1t4 -1q-1 5 -9.5 9.5t-19.5 9t-14 6.5q-7 5 -36 10.5t-36 1.5q-5 -3 -6 -6t1.5 -8.5t3.5 -8.5q6 -23 5 -27q-1 -3 -8.5 -8t-5.5 -12q1 -4 11.5 -10t12.5 -12q5 -13 -4 -25 q-4 -5 -15 -11t-14 -10q-5 -5 -3.5 -11.5t0.5 -9.5q1 1 1 2.5t1 2.5q0 -13 11 -22q8 -6 -16 -18q-20 -11 -20 -4q1 8 -7.5 16t-10.5 12t-3.5 19t-9.5 21q-6 4 -19 4t-18 -5q0 10 -49 30q-17 8 -58 4q7 1 0 17q-8 16 -21 12q-8 25 -4 35q2 5 9 14t9 15q1 3 15.5 6t16.5 8 q1 4 -2.5 6.5t-9.5 4.5q53 -6 63 18q5 9 3 14q0 -1 2 -1t2 -1q12 3 7 17q19 8 26 8q5 -1 11 -6t10 -5q17 -3 21.5 10t-9.5 23q7 -4 7 6q-1 13 -7 19q-3 2 -6.5 2.5t-6.5 0t-7 0.5q-1 0 -8 2q-1 -1 -2 -1h-8q-4 -2 -4 -5v-1q-1 -3 4 -6l5 -1l3 -2q-1 0 -2.5 -2.5t-2.5 -2.5 q0 -3 3 -5q-2 -1 -14 -7.5t-17 -10.5q-1 -1 -4 -2.5t-4 -2.5q-2 -1 -4 2t-4 9t-4 11.5t-4.5 10t-5.5 4.5q-12 0 -18 -17q3 10 -13 17.5t-25 7.5q20 15 -9 30l-1 1q-30 -4 -45 -7q-2 -6 3 -12q-1 -7 6 -9q0 -1 0.5 -1t0.5 -1q0 1 -0.5 1t-0.5 1q3 -1 10.5 -1.5t9.5 -1.5 q3 -1 4.5 -2l7.5 -5t5.5 -6t-2.5 -5q-2 -1 -9 -4t-12.5 -5.5t-6.5 -3.5q-3 -5 0 -16t-2 -15q-5 5 -10 18.5t-8 17.5q8 -9 -30 -6l-8 1q-4 0 -15 -2t-16 -1q-7 0 -29 6q7 17 5 25q5 0 7 2l-6 3q-3 -1 -25 -9q2 -3 8 -9.5t9 -11.5q-22 6 -27 -2q0 -1 -9 0q-25 1 -24 -7 q1 -4 9 -12q0 -9 -1 -9q-27 22 -30 23q-172 -83 -276 -248q1 -2 2.5 -11t3.5 -8.5t11 4.5q9 -9 3 -21q2 2 36 -21q56 -40 22 -53v5.5t1 6.5q-9 -1 -19 5q-3 -6 0.5 -20t11.5 -14q-8 0 -10.5 -17t-2.5 -38.5t-1 -25.5l2 -1q-3 -13 6 -37.5t24 -20.5q-4 -18 5 -21q-1 -4 0 -8 t4.5 -8.5t6 -7l7.5 -7.5l6 -6q28 -11 41 -29q4 -6 10.5 -24.5t15.5 -25.5q-2 -6 10 -21.5t11 -25.5q-1 0 -2.5 -0.5t-2.5 -0.5q3 -8 16.5 -16t16.5 -14q2 -3 2.5 -10.5t3 -12t8.5 -2.5q3 24 -26 68q-16 27 -18 31q-3 5 -5.5 16.5t-4.5 15.5q27 -9 26 -13q-5 -10 26 -52 q2 -3 10 -10t11 -12q3 -4 9.5 -14.5t10.5 -15.5q-1 0 -3 -2l-3 -3q4 -2 9 -5t8 -4.5t7.5 -5t7.5 -7.5q16 -18 20 -33q1 -4 0.5 -15.5t1.5 -16.5q2 -6 6 -11t11.5 -10t11.5 -7t14.5 -6.5t11.5 -5.5q2 -1 18 -11t25 -14q10 -4 16.5 -4.5t16 2.5t15.5 4z" />
|
197 |
+
<glyph unicode="" horiz-adv-x="1664" d="M384 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1028 484l-682 -682q-37 -37 -90 -37q-52 0 -91 37l-106 108q-38 36 -38 90q0 53 38 91l681 681q39 -98 114.5 -173.5t173.5 -114.5zM1662 919q0 -39 -23 -106q-47 -134 -164.5 -217.5 t-258.5 -83.5q-185 0 -316.5 131.5t-131.5 316.5t131.5 316.5t316.5 131.5q58 0 121.5 -16.5t107.5 -46.5q16 -11 16 -28t-16 -28l-293 -169v-224l193 -107q5 3 79 48.5t135.5 81t70.5 35.5q15 0 23.5 -10t8.5 -25z" />
|
198 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1024 128h640v128h-640v-128zM640 640h1024v128h-1024v-128zM1280 1152h384v128h-384v-128zM1792 320v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 832v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19 t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" />
|
199 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1403 1241q17 -41 -14 -70l-493 -493v-742q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-256 256q-19 19 -19 45v486l-493 493q-31 29 -14 70q17 39 59 39h1280q42 0 59 -39z" />
|
200 |
+
<glyph unicode="" horiz-adv-x="1792" d="M640 1280h512v128h-512v-128zM1792 640v-480q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v480h672v-160q0 -26 19 -45t45 -19h320q26 0 45 19t19 45v160h672zM1024 640v-128h-256v128h256zM1792 1120v-384h-1792v384q0 66 47 113t113 47h352v160q0 40 28 68 t68 28h576q40 0 68 -28t28 -68v-160h352q66 0 113 -47t47 -113z" />
|
201 |
+
<glyph unicode="" d="M1283 995l-355 -355l355 -355l144 144q29 31 70 14q39 -17 39 -59v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l144 144l-355 355l-355 -355l144 -144q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l144 -144 l355 355l-355 355l-144 -144q-19 -19 -45 -19q-12 0 -24 5q-40 17 -40 59v448q0 26 19 45t45 19h448q42 0 59 -40q17 -39 -14 -69l-144 -144l355 -355l355 355l-144 144q-31 30 -14 69q17 40 59 40h448q26 0 45 -19t19 -45v-448q0 -42 -39 -59q-13 -5 -25 -5q-26 0 -45 19z " />
|
202 |
+
<glyph unicode="" horiz-adv-x="1920" d="M593 640q-162 -5 -265 -128h-134q-82 0 -138 40.5t-56 118.5q0 353 124 353q6 0 43.5 -21t97.5 -42.5t119 -21.5q67 0 133 23q-5 -37 -5 -66q0 -139 81 -256zM1664 3q0 -120 -73 -189.5t-194 -69.5h-874q-121 0 -194 69.5t-73 189.5q0 53 3.5 103.5t14 109t26.5 108.5 t43 97.5t62 81t85.5 53.5t111.5 20q10 0 43 -21.5t73 -48t107 -48t135 -21.5t135 21.5t107 48t73 48t43 21.5q61 0 111.5 -20t85.5 -53.5t62 -81t43 -97.5t26.5 -108.5t14 -109t3.5 -103.5zM640 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75 t75 -181zM1344 896q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5zM1920 671q0 -78 -56 -118.5t-138 -40.5h-134q-103 123 -265 128q81 117 81 256q0 29 -5 66q66 -23 133 -23q59 0 119 21.5t97.5 42.5 t43.5 21q124 0 124 -353zM1792 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181z" />
|
203 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1456 320q0 40 -28 68l-208 208q-28 28 -68 28q-42 0 -72 -32q3 -3 19 -18.5t21.5 -21.5t15 -19t13 -25.5t3.5 -27.5q0 -40 -28 -68t-68 -28q-15 0 -27.5 3.5t-25.5 13t-19 15t-21.5 21.5t-18.5 19q-33 -31 -33 -73q0 -40 28 -68l206 -207q27 -27 68 -27q40 0 68 26 l147 146q28 28 28 67zM753 1025q0 40 -28 68l-206 207q-28 28 -68 28q-39 0 -68 -27l-147 -146q-28 -28 -28 -67q0 -40 28 -68l208 -208q27 -27 68 -27q42 0 72 31q-3 3 -19 18.5t-21.5 21.5t-15 19t-13 25.5t-3.5 27.5q0 40 28 68t68 28q15 0 27.5 -3.5t25.5 -13t19 -15 t21.5 -21.5t18.5 -19q33 31 33 73zM1648 320q0 -120 -85 -203l-147 -146q-83 -83 -203 -83q-121 0 -204 85l-206 207q-83 83 -83 203q0 123 88 209l-88 88q-86 -88 -208 -88q-120 0 -204 84l-208 208q-84 84 -84 204t85 203l147 146q83 83 203 83q121 0 204 -85l206 -207 q83 -83 83 -203q0 -123 -88 -209l88 -88q86 88 208 88q120 0 204 -84l208 -208q84 -84 84 -204z" />
|
204 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088q-185 0 -316.5 131.5t-131.5 316.5q0 132 71 241.5t187 163.5q-2 28 -2 43q0 212 150 362t362 150q158 0 286.5 -88t187.5 -230q70 62 166 62q106 0 181 -75t75 -181q0 -75 -41 -138q129 -30 213 -134.5t84 -239.5z " />
|
205 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1527 88q56 -89 21.5 -152.5t-140.5 -63.5h-1152q-106 0 -140.5 63.5t21.5 152.5l503 793v399h-64q-26 0 -45 19t-19 45t19 45t45 19h512q26 0 45 -19t19 -45t-19 -45t-45 -19h-64v-399zM748 813l-272 -429h712l-272 429l-20 31v37v399h-128v-399v-37z" />
|
206 |
+
<glyph unicode="" horiz-adv-x="1792" d="M960 640q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1260 576l507 -398q28 -20 25 -56q-5 -35 -35 -51l-128 -64q-13 -7 -29 -7q-17 0 -31 8l-690 387l-110 -66q-8 -4 -12 -5q14 -49 10 -97q-7 -77 -56 -147.5t-132 -123.5q-132 -84 -277 -84 q-136 0 -222 78q-90 84 -79 207q7 76 56 147t131 124q132 84 278 84q83 0 151 -31q9 13 22 22l122 73l-122 73q-13 9 -22 22q-68 -31 -151 -31q-146 0 -278 84q-82 53 -131 124t-56 147q-5 59 15.5 113t63.5 93q85 79 222 79q145 0 277 -84q83 -52 132 -123t56 -148 q4 -48 -10 -97q4 -1 12 -5l110 -66l690 387q14 8 31 8q16 0 29 -7l128 -64q30 -16 35 -51q3 -36 -25 -56zM579 836q46 42 21 108t-106 117q-92 59 -192 59q-74 0 -113 -36q-46 -42 -21 -108t106 -117q92 -59 192 -59q74 0 113 36zM494 91q81 51 106 117t-21 108 q-39 36 -113 36q-100 0 -192 -59q-81 -51 -106 -117t21 -108q39 -36 113 -36q100 0 192 59zM672 704l96 -58v11q0 36 33 56l14 8l-79 47l-26 -26q-3 -3 -10 -11t-12 -12q-2 -2 -4 -3.5t-3 -2.5zM896 480l96 -32l736 576l-128 64l-768 -431v-113l-160 -96l9 -8q2 -2 7 -6 q4 -4 11 -12t11 -12l26 -26zM1600 64l128 64l-520 408l-177 -138q-2 -3 -13 -7z" />
|
207 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1696 1152q40 0 68 -28t28 -68v-1216q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v288h-544q-40 0 -68 28t-28 68v672q0 40 20 88t48 76l408 408q28 28 76 48t88 20h416q40 0 68 -28t28 -68v-328q68 40 128 40h416zM1152 939l-299 -299h299v299zM512 1323l-299 -299 h299v299zM708 676l316 316v416h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h512v256q0 40 20 88t48 76zM1664 -128v1152h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h896z" />
|
208 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1404 151q0 -117 -79 -196t-196 -79q-135 0 -235 100l-777 776q-113 115 -113 271q0 159 110 270t269 111q158 0 273 -113l605 -606q10 -10 10 -22q0 -16 -30.5 -46.5t-46.5 -30.5q-13 0 -23 10l-606 607q-79 77 -181 77q-106 0 -179 -75t-73 -181q0 -105 76 -181 l776 -777q63 -63 145 -63q64 0 106 42t42 106q0 82 -63 145l-581 581q-26 24 -60 24q-29 0 -48 -19t-19 -48q0 -32 25 -59l410 -410q10 -10 10 -22q0 -16 -31 -47t-47 -31q-12 0 -22 10l-410 410q-63 61 -63 149q0 82 57 139t139 57q88 0 149 -63l581 -581q100 -98 100 -235 z" />
|
209 |
+
<glyph unicode="" d="M384 0h768v384h-768v-384zM1280 0h128v896q0 14 -10 38.5t-20 34.5l-281 281q-10 10 -34 20t-39 10v-416q0 -40 -28 -68t-68 -28h-576q-40 0 -68 28t-28 68v416h-128v-1280h128v416q0 40 28 68t68 28h832q40 0 68 -28t28 -68v-416zM896 928v320q0 13 -9.5 22.5t-22.5 9.5 h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5zM1536 896v-928q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h928q40 0 88 -20t76 -48l280 -280q28 -28 48 -76t20 -88z" />
|
210 |
+
<glyph unicode="" d="M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
211 |
+
<glyph unicode="" d="M1536 192v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 704v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 1216v-128q0 -26 -19 -45 t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
|
212 |
+
<glyph unicode="" horiz-adv-x="1792" d="M384 128q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM384 640q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5 t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1152q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z M1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" />
|
213 |
+
<glyph unicode="" horiz-adv-x="1792" d="M381 -84q0 -80 -54.5 -126t-135.5 -46q-106 0 -172 66l57 88q49 -45 106 -45q29 0 50.5 14.5t21.5 42.5q0 64 -105 56l-26 56q8 10 32.5 43.5t42.5 54t37 38.5v1q-16 0 -48.5 -1t-48.5 -1v-53h-106v152h333v-88l-95 -115q51 -12 81 -49t30 -88zM383 543v-159h-362 q-6 36 -6 54q0 51 23.5 93t56.5 68t66 47.5t56.5 43.5t23.5 45q0 25 -14.5 38.5t-39.5 13.5q-46 0 -81 -58l-85 59q24 51 71.5 79.5t105.5 28.5q73 0 123 -41.5t50 -112.5q0 -50 -34 -91.5t-75 -64.5t-75.5 -50.5t-35.5 -52.5h127v60h105zM1792 224v-192q0 -13 -9.5 -22.5 t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1123v-99h-335v99h107q0 41 0.5 122t0.5 121v12h-2q-8 -17 -50 -54l-71 76l136 127h106v-404h108zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5 t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" />
|
214 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1760 640q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1728q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h1728zM483 704q-28 35 -51 80q-48 97 -48 188q0 181 134 309q133 127 393 127q50 0 167 -19q66 -12 177 -48q10 -38 21 -118q14 -123 14 -183q0 -18 -5 -45l-12 -3l-84 6 l-14 2q-50 149 -103 205q-88 91 -210 91q-114 0 -182 -59q-67 -58 -67 -146q0 -73 66 -140t279 -129q69 -20 173 -66q58 -28 95 -52h-743zM990 448h411q7 -39 7 -92q0 -111 -41 -212q-23 -55 -71 -104q-37 -35 -109 -81q-80 -48 -153 -66q-80 -21 -203 -21q-114 0 -195 23 l-140 40q-57 16 -72 28q-8 8 -8 22v13q0 108 -2 156q-1 30 0 68l2 37v44l102 2q15 -34 30 -71t22.5 -56t12.5 -27q35 -57 80 -94q43 -36 105 -57q59 -22 132 -22q64 0 139 27q77 26 122 86q47 61 47 129q0 84 -81 157q-34 29 -137 71z" />
|
215 |
+
<glyph unicode="" d="M48 1313q-37 2 -45 4l-3 88q13 1 40 1q60 0 112 -4q132 -7 166 -7q86 0 168 3q116 4 146 5q56 0 86 2l-1 -14l2 -64v-9q-60 -9 -124 -9q-60 0 -79 -25q-13 -14 -13 -132q0 -13 0.5 -32.5t0.5 -25.5l1 -229l14 -280q6 -124 51 -202q35 -59 96 -92q88 -47 177 -47 q104 0 191 28q56 18 99 51q48 36 65 64q36 56 53 114q21 73 21 229q0 79 -3.5 128t-11 122.5t-13.5 159.5l-4 59q-5 67 -24 88q-34 35 -77 34l-100 -2l-14 3l2 86h84l205 -10q76 -3 196 10l18 -2q6 -38 6 -51q0 -7 -4 -31q-45 -12 -84 -13q-73 -11 -79 -17q-15 -15 -15 -41 q0 -7 1.5 -27t1.5 -31q8 -19 22 -396q6 -195 -15 -304q-15 -76 -41 -122q-38 -65 -112 -123q-75 -57 -182 -89q-109 -33 -255 -33q-167 0 -284 46q-119 47 -179 122q-61 76 -83 195q-16 80 -16 237v333q0 188 -17 213q-25 36 -147 39zM1536 -96v64q0 14 -9 23t-23 9h-1472 q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h1472q14 0 23 9t9 23z" />
|
216 |
+
<glyph unicode="" horiz-adv-x="1664" d="M512 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23 v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 160v192 q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192 q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1664 1248v-1088q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1344q66 0 113 -47t47 -113 z" />
|
217 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1190 955l293 293l-107 107l-293 -293zM1637 1248q0 -27 -18 -45l-1286 -1286q-18 -18 -45 -18t-45 18l-198 198q-18 18 -18 45t18 45l1286 1286q18 18 45 18t45 -18l198 -198q18 -18 18 -45zM286 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM636 1276 l196 -60l-196 -60l-60 -196l-60 196l-196 60l196 60l60 196zM1566 798l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM926 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98z" />
|
218 |
+
<glyph unicode="" horiz-adv-x="1792" d="M640 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM256 640h384v256h-158q-13 0 -22 -9l-195 -195q-9 -9 -9 -22v-30zM1536 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM1792 1216v-1024q0 -15 -4 -26.5t-13.5 -18.5 t-16.5 -11.5t-23.5 -6t-22.5 -2t-25.5 0t-22.5 0.5q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-64q-3 0 -22.5 -0.5t-25.5 0t-22.5 2t-23.5 6t-16.5 11.5t-13.5 18.5t-4 26.5q0 26 19 45t45 19v320q0 8 -0.5 35t0 38 t2.5 34.5t6.5 37t14 30.5t22.5 30l198 198q19 19 50.5 32t58.5 13h160v192q0 26 19 45t45 19h1024q26 0 45 -19t19 -45z" />
|
219 |
+
<glyph unicode="" d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103q-111 0 -218 32q59 93 78 164q9 34 54 211q20 -39 73 -67.5t114 -28.5q121 0 216 68.5t147 188.5t52 270q0 114 -59.5 214t-172.5 163t-255 63q-105 0 -196 -29t-154.5 -77t-109 -110.5t-67 -129.5t-21.5 -134 q0 -104 40 -183t117 -111q30 -12 38 20q2 7 8 31t8 30q6 23 -11 43q-51 61 -51 151q0 151 104.5 259.5t273.5 108.5q151 0 235.5 -82t84.5 -213q0 -170 -68.5 -289t-175.5 -119q-61 0 -98 43.5t-23 104.5q8 35 26.5 93.5t30 103t11.5 75.5q0 50 -27 83t-77 33 q-62 0 -105 -57t-43 -142q0 -73 25 -122l-99 -418q-17 -70 -13 -177q-206 91 -333 281t-127 423q0 209 103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
220 |
+
<glyph unicode="" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-725q85 122 108 210q9 34 53 209q21 -39 73.5 -67t112.5 -28q181 0 295.5 147.5t114.5 373.5q0 84 -35 162.5t-96.5 139t-152.5 97t-197 36.5q-104 0 -194.5 -28.5t-153 -76.5 t-107.5 -109.5t-66.5 -128t-21.5 -132.5q0 -102 39.5 -180t116.5 -110q13 -5 23.5 0t14.5 19q10 44 15 61q6 23 -11 42q-50 62 -50 150q0 150 103.5 256.5t270.5 106.5q149 0 232.5 -81t83.5 -210q0 -168 -67.5 -286t-173.5 -118q-60 0 -97 43.5t-23 103.5q8 34 26.5 92.5 t29.5 102t11 74.5q0 49 -26.5 81.5t-75.5 32.5q-61 0 -103.5 -56.5t-42.5 -139.5q0 -72 24 -121l-98 -414q-24 -100 -7 -254h-183q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960z" />
|
221 |
+
<glyph unicode="" d="M678 -57q0 -38 -10 -71h-380q-95 0 -171.5 56.5t-103.5 147.5q24 45 69 77.5t100 49.5t107 24t107 7q32 0 49 -2q6 -4 30.5 -21t33 -23t31 -23t32 -25.5t27.5 -25.5t26.5 -29.5t21 -30.5t17.5 -34.5t9.5 -36t4.5 -40.5zM385 294q-234 -7 -385 -85v433q103 -118 273 -118 q32 0 70 5q-21 -61 -21 -86q0 -67 63 -149zM558 805q0 -100 -43.5 -160.5t-140.5 -60.5q-51 0 -97 26t-78 67.5t-56 93.5t-35.5 104t-11.5 99q0 96 51.5 165t144.5 69q66 0 119 -41t84 -104t47 -130t16 -128zM1536 896v-736q0 -119 -84.5 -203.5t-203.5 -84.5h-468 q39 73 39 157q0 66 -22 122.5t-55.5 93t-72 71t-72 59.5t-55.5 54.5t-22 59.5q0 36 23 68t56 61.5t65.5 64.5t55.5 93t23 131t-26.5 145.5t-75.5 118.5q-6 6 -14 11t-12.5 7.5t-10 9.5t-10.5 17h135l135 64h-437q-138 0 -244.5 -38.5t-182.5 -133.5q0 126 81 213t207 87h960 q119 0 203.5 -84.5t84.5 -203.5v-96h-256v256h-128v-256h-256v-128h256v-256h128v256h256z" />
|
222 |
+
<glyph unicode="" horiz-adv-x="1664" d="M876 71q0 21 -4.5 40.5t-9.5 36t-17.5 34.5t-21 30.5t-26.5 29.5t-27.5 25.5t-32 25.5t-31 23t-33 23t-30.5 21q-17 2 -50 2q-54 0 -106 -7t-108 -25t-98 -46t-69 -75t-27 -107q0 -68 35.5 -121.5t93 -84t120.5 -45.5t127 -15q59 0 112.5 12.5t100.5 39t74.5 73.5 t27.5 110zM756 933q0 60 -16.5 127.5t-47 130.5t-84 104t-119.5 41q-93 0 -144 -69t-51 -165q0 -47 11.5 -99t35.5 -104t56 -93.5t78 -67.5t97 -26q97 0 140.5 60.5t43.5 160.5zM625 1408h437l-135 -79h-135q71 -45 110 -126t39 -169q0 -74 -23 -131.5t-56 -92.5t-66 -64.5 t-56 -61t-23 -67.5q0 -26 16.5 -51t43 -48t58.5 -48t64 -55.5t58.5 -66t43 -85t16.5 -106.5q0 -160 -140 -282q-152 -131 -420 -131q-59 0 -119.5 10t-122 33.5t-108.5 58t-77 89t-30 121.5q0 61 37 135q32 64 96 110.5t145 71t155 36t150 13.5q-64 83 -64 149q0 12 2 23.5 t5 19.5t8 21.5t7 21.5q-40 -5 -70 -5q-149 0 -255.5 98t-106.5 246q0 140 95 250.5t234 141.5q94 20 187 20zM1664 1152v-128h-256v-256h-128v256h-256v128h256v256h128v-256h256z" />
|
223 |
+
<glyph unicode="" horiz-adv-x="1920" d="M768 384h384v96h-128v448h-114l-148 -137l77 -80q42 37 55 57h2v-288h-128v-96zM1280 640q0 -70 -21 -142t-59.5 -134t-101.5 -101t-138 -39t-138 39t-101.5 101t-59.5 134t-21 142t21 142t59.5 134t101.5 101t138 39t138 -39t101.5 -101t59.5 -134t21 -142zM1792 384 v512q-106 0 -181 75t-75 181h-1152q0 -106 -75 -181t-181 -75v-512q106 0 181 -75t75 -181h1152q0 106 75 181t181 75zM1920 1216v-1152q0 -26 -19 -45t-45 -19h-1792q-26 0 -45 19t-19 45v1152q0 26 19 45t45 19h1792q26 0 45 -19t19 -45z" />
|
224 |
+
<glyph unicode="" horiz-adv-x="1024" d="M1024 832q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" />
|
225 |
+
<glyph unicode="" horiz-adv-x="1024" d="M1024 320q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
|
226 |
+
<glyph unicode="" horiz-adv-x="640" d="M640 1088v-896q0 -26 -19 -45t-45 -19t-45 19l-448 448q-19 19 -19 45t19 45l448 448q19 19 45 19t45 -19t19 -45z" />
|
227 |
+
<glyph unicode="" horiz-adv-x="640" d="M576 640q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19t-19 45v896q0 26 19 45t45 19t45 -19l448 -448q19 -19 19 -45z" />
|
228 |
+
<glyph unicode="" horiz-adv-x="1664" d="M160 0h608v1152h-640v-1120q0 -13 9.5 -22.5t22.5 -9.5zM1536 32v1120h-640v-1152h608q13 0 22.5 9.5t9.5 22.5zM1664 1248v-1216q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1344q66 0 113 -47t47 -113z" />
|
229 |
+
<glyph unicode="" horiz-adv-x="1024" d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45zM1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
|
230 |
+
<glyph unicode="" horiz-adv-x="1024" d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" />
|
231 |
+
<glyph unicode="" horiz-adv-x="1024" d="M1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
|
232 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 826v-794q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v794q44 -49 101 -87q362 -246 497 -345q57 -42 92.5 -65.5t94.5 -48t110 -24.5h1h1q51 0 110 24.5t94.5 48t92.5 65.5q170 123 498 345q57 39 100 87zM1792 1120q0 -79 -49 -151t-122 -123 q-376 -261 -468 -325q-10 -7 -42.5 -30.5t-54 -38t-52 -32.5t-57.5 -27t-50 -9h-1h-1q-23 0 -50 9t-57.5 27t-52 32.5t-54 38t-42.5 30.5q-91 64 -262 182.5t-205 142.5q-62 42 -117 115.5t-55 136.5q0 78 41.5 130t118.5 52h1472q65 0 112.5 -47t47.5 -113z" />
|
233 |
+
<glyph unicode="" d="M349 911v-991h-330v991h330zM370 1217q1 -73 -50.5 -122t-135.5 -49h-2q-82 0 -132 49t-50 122q0 74 51.5 122.5t134.5 48.5t133 -48.5t51 -122.5zM1536 488v-568h-329v530q0 105 -40.5 164.5t-126.5 59.5q-63 0 -105.5 -34.5t-63.5 -85.5q-11 -30 -11 -81v-553h-329 q2 399 2 647t-1 296l-1 48h329v-144h-2q20 32 41 56t56.5 52t87 43.5t114.5 15.5q171 0 275 -113.5t104 -332.5z" />
|
234 |
+
<glyph unicode="" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61q-172 0 -327 72.5t-264 204.5q-7 10 -6.5 22.5t8.5 20.5l137 138q10 9 25 9q16 -2 23 -12q73 -95 179 -147t225 -52q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5 t-163.5 109.5t-198.5 40.5q-98 0 -188 -35.5t-160 -101.5l137 -138q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l130 -129q107 101 244.5 156.5t284.5 55.5q156 0 298 -61t245 -164t164 -245t61 -298z" />
|
235 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1771 0q0 -53 -37 -90l-107 -108q-39 -37 -91 -37q-53 0 -90 37l-363 364q-38 36 -38 90q0 53 43 96l-256 256l-126 -126q-14 -14 -34 -14t-34 14q2 -2 12.5 -12t12.5 -13t10 -11.5t10 -13.5t6 -13.5t5.5 -16.5t1.5 -18q0 -38 -28 -68q-3 -3 -16.5 -18t-19 -20.5 t-18.5 -16.5t-22 -15.5t-22 -9t-26 -4.5q-40 0 -68 28l-408 408q-28 28 -28 68q0 13 4.5 26t9 22t15.5 22t16.5 18.5t20.5 19t18 16.5q30 28 68 28q10 0 18 -1.5t16.5 -5.5t13.5 -6t13.5 -10t11.5 -10t13 -12.5t12 -12.5q-14 14 -14 34t14 34l348 348q14 14 34 14t34 -14 q-2 2 -12.5 12t-12.5 13t-10 11.5t-10 13.5t-6 13.5t-5.5 16.5t-1.5 18q0 38 28 68q3 3 16.5 18t19 20.5t18.5 16.5t22 15.5t22 9t26 4.5q40 0 68 -28l408 -408q28 -28 28 -68q0 -13 -4.5 -26t-9 -22t-15.5 -22t-16.5 -18.5t-20.5 -19t-18 -16.5q-30 -28 -68 -28 q-10 0 -18 1.5t-16.5 5.5t-13.5 6t-13.5 10t-11.5 10t-13 12.5t-12 12.5q14 -14 14 -34t-14 -34l-126 -126l256 -256q43 43 96 43q52 0 91 -37l363 -363q37 -39 37 -91z" />
|
236 |
+
<glyph unicode="" horiz-adv-x="1792" d="M384 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM576 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1004 351l101 382q6 26 -7.5 48.5t-38.5 29.5 t-48 -6.5t-30 -39.5l-101 -382q-60 -5 -107 -43.5t-63 -98.5q-20 -77 20 -146t117 -89t146 20t89 117q16 60 -6 117t-72 91zM1664 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 1024q0 53 -37.5 90.5 t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1472 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1792 384q0 -261 -141 -483q-19 -29 -54 -29h-1402q-35 0 -54 29 q-141 221 -141 483q0 182 71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
|
237 |
+
<glyph unicode="" horiz-adv-x="1792" d="M896 1152q-204 0 -381.5 -69.5t-282 -187.5t-104.5 -255q0 -112 71.5 -213.5t201.5 -175.5l87 -50l-27 -96q-24 -91 -70 -172q152 63 275 171l43 38l57 -6q69 -8 130 -8q204 0 381.5 69.5t282 187.5t104.5 255t-104.5 255t-282 187.5t-381.5 69.5zM1792 640 q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22h-5q-15 0 -27 10.5t-16 27.5v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281q0 174 120 321.5 t326 233t450 85.5t450 -85.5t326 -233t120 -321.5z" />
|
238 |
+
<glyph unicode="" horiz-adv-x="1792" d="M704 1152q-153 0 -286 -52t-211.5 -141t-78.5 -191q0 -82 53 -158t149 -132l97 -56l-35 -84q34 20 62 39l44 31l53 -10q78 -14 153 -14q153 0 286 52t211.5 141t78.5 191t-78.5 191t-211.5 141t-286 52zM704 1280q191 0 353.5 -68.5t256.5 -186.5t94 -257t-94 -257 t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224q0 139 94 257t256.5 186.5 t353.5 68.5zM1526 111q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129 q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230q0 -120 -71 -224.5t-195 -176.5z" />
|
239 |
+
<glyph unicode="" horiz-adv-x="896" d="M885 970q18 -20 7 -44l-540 -1157q-13 -25 -42 -25q-4 0 -14 2q-17 5 -25.5 19t-4.5 30l197 808l-406 -101q-4 -1 -12 -1q-18 0 -31 11q-18 15 -13 39l201 825q4 14 16 23t28 9h328q19 0 32 -12.5t13 -29.5q0 -8 -5 -18l-171 -463l396 98q8 2 12 2q19 0 34 -15z" />
|
240 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 288v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320 q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192q0 52 38 90t90 38h512v192h-96q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h320q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-96v-192h512q52 0 90 -38t38 -90v-192h96q40 0 68 -28t28 -68 z" />
|
241 |
+
<glyph unicode="" horiz-adv-x="1664" d="M896 708v-580q0 -104 -76 -180t-180 -76t-180 76t-76 180q0 26 19 45t45 19t45 -19t19 -45q0 -50 39 -89t89 -39t89 39t39 89v580q33 11 64 11t64 -11zM1664 681q0 -13 -9.5 -22.5t-22.5 -9.5q-11 0 -23 10q-49 46 -93 69t-102 23q-68 0 -128 -37t-103 -97 q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -28 -17q-18 0 -29 17q-4 6 -14.5 24t-17.5 28q-43 60 -102.5 97t-127.5 37t-127.5 -37t-102.5 -97q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -29 -17q-17 0 -28 17q-4 6 -14.5 24t-17.5 28q-43 60 -103 97t-128 37q-58 0 -102 -23t-93 -69 q-12 -10 -23 -10q-13 0 -22.5 9.5t-9.5 22.5q0 5 1 7q45 183 172.5 319.5t298 204.5t360.5 68q140 0 274.5 -40t246.5 -113.5t194.5 -187t115.5 -251.5q1 -2 1 -7zM896 1408v-98q-42 2 -64 2t-64 -2v98q0 26 19 45t45 19t45 -19t19 -45z" />
|
242 |
+
<glyph unicode="" horiz-adv-x="1792" d="M768 -128h896v640h-416q-40 0 -68 28t-28 68v416h-384v-1152zM1024 1312v64q0 13 -9.5 22.5t-22.5 9.5h-704q-13 0 -22.5 -9.5t-9.5 -22.5v-64q0 -13 9.5 -22.5t22.5 -9.5h704q13 0 22.5 9.5t9.5 22.5zM1280 640h299l-299 299v-299zM1792 512v-672q0 -40 -28 -68t-68 -28 h-960q-40 0 -68 28t-28 68v160h-544q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h1088q40 0 68 -28t28 -68v-328q21 -13 36 -28l408 -408q28 -28 48 -76t20 -88z" />
|
243 |
+
<glyph unicode="" horiz-adv-x="1024" d="M736 960q0 -13 -9.5 -22.5t-22.5 -9.5t-22.5 9.5t-9.5 22.5q0 46 -54 71t-106 25q-13 0 -22.5 9.5t-9.5 22.5t9.5 22.5t22.5 9.5q50 0 99.5 -16t87 -54t37.5 -90zM896 960q0 72 -34.5 134t-90 101.5t-123 62t-136.5 22.5t-136.5 -22.5t-123 -62t-90 -101.5t-34.5 -134 q0 -101 68 -180q10 -11 30.5 -33t30.5 -33q128 -153 141 -298h228q13 145 141 298q10 11 30.5 33t30.5 33q68 79 68 180zM1024 960q0 -155 -103 -268q-45 -49 -74.5 -87t-59.5 -95.5t-34 -107.5q47 -28 47 -82q0 -37 -25 -64q25 -27 25 -64q0 -52 -45 -81q13 -23 13 -47 q0 -46 -31.5 -71t-77.5 -25q-20 -44 -60 -70t-87 -26t-87 26t-60 70q-46 0 -77.5 25t-31.5 71q0 24 13 47q-45 29 -45 81q0 37 25 64q-25 27 -25 64q0 54 47 82q-4 50 -34 107.5t-59.5 95.5t-74.5 87q-103 113 -103 268q0 99 44.5 184.5t117 142t164 89t186.5 32.5 t186.5 -32.5t164 -89t117 -142t44.5 -184.5z" />
|
244 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 352v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5q-12 0 -24 10l-319 320q-9 9 -9 22q0 14 9 23l320 320q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5v-192h1376q13 0 22.5 -9.5t9.5 -22.5zM1792 896q0 -14 -9 -23l-320 -320q-9 -9 -23 -9 q-13 0 -22.5 9.5t-9.5 22.5v192h-1376q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1376v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" />
|
245 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1280 608q0 14 -9 23t-23 9h-224v352q0 13 -9.5 22.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-352h-224q-13 0 -22.5 -9.5t-9.5 -22.5q0 -14 9 -23l352 -352q9 -9 23 -9t23 9l351 351q10 12 10 24zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088 q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" />
|
246 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1280 672q0 14 -9 23l-352 352q-9 9 -23 9t-23 -9l-351 -351q-10 -12 -10 -24q0 -14 9 -23t23 -9h224v-352q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5v352h224q13 0 22.5 9.5t9.5 22.5zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088 q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" />
|
247 |
+
<glyph unicode="" horiz-adv-x="1408" d="M384 192q0 -26 -19 -45t-45 -19t-45 19t-19 45t19 45t45 19t45 -19t19 -45zM1408 131q0 -121 -73 -190t-194 -69h-874q-121 0 -194 69t-73 190q0 68 5.5 131t24 138t47.5 132.5t81 103t120 60.5q-22 -52 -22 -120v-203q-58 -20 -93 -70t-35 -111q0 -80 56 -136t136 -56 t136 56t56 136q0 61 -35.5 111t-92.5 70v203q0 62 25 93q132 -104 295 -104t295 104q25 -31 25 -93v-64q-106 0 -181 -75t-75 -181v-89q-32 -29 -32 -71q0 -40 28 -68t68 -28t68 28t28 68q0 42 -32 71v89q0 52 38 90t90 38t90 -38t38 -90v-89q-32 -29 -32 -71q0 -40 28 -68 t68 -28t68 28t28 68q0 42 -32 71v89q0 68 -34.5 127.5t-93.5 93.5q0 10 0.5 42.5t0 48t-2.5 41.5t-7 47t-13 40q68 -15 120 -60.5t81 -103t47.5 -132.5t24 -138t5.5 -131zM1088 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5 t271.5 -112.5t112.5 -271.5z" />
|
248 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1280 832q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 832q0 -62 -35.5 -111t-92.5 -70v-395q0 -159 -131.5 -271.5t-316.5 -112.5t-316.5 112.5t-131.5 271.5v132q-164 20 -274 128t-110 252v512q0 26 19 45t45 19q6 0 16 -2q17 30 47 48 t65 18q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5q-33 0 -64 18v-402q0 -106 94 -181t226 -75t226 75t94 181v402q-31 -18 -64 -18q-53 0 -90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5q35 0 65 -18t47 -48q10 2 16 2q26 0 45 -19t19 -45v-512q0 -144 -110 -252 t-274 -128v-132q0 -106 94 -181t226 -75t226 75t94 181v395q-57 21 -92.5 70t-35.5 111q0 80 56 136t136 56t136 -56t56 -136z" />
|
249 |
+
<glyph unicode="" horiz-adv-x="1792" d="M640 1152h512v128h-512v-128zM288 1152v-1280h-64q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h64zM1408 1152v-1280h-1024v1280h128v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h128zM1792 928v-832q0 -92 -66 -158t-158 -66h-64v1280h64q92 0 158 -66 t66 -158z" />
|
250 |
+
<glyph unicode="" horiz-adv-x="1664" d="M848 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM1664 128q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q190 161 287 397.5t97 498.5 q0 165 96 262t264 117q-8 18 -8 37q0 40 28 68t68 28t68 -28t28 -68q0 -19 -8 -37q168 -20 264 -117t96 -262q0 -262 97 -498.5t287 -397.5z" />
|
251 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1664 896q0 80 -56 136t-136 56h-64v-384h64q80 0 136 56t56 136zM0 128h1792q0 -106 -75 -181t-181 -75h-1280q-106 0 -181 75t-75 181zM1856 896q0 -159 -112.5 -271.5t-271.5 -112.5h-64v-32q0 -92 -66 -158t-158 -66h-704q-92 0 -158 66t-66 158v736q0 26 19 45 t45 19h1152q159 0 271.5 -112.5t112.5 -271.5z" />
|
252 |
+
<glyph unicode="" horiz-adv-x="1408" d="M640 1472v-640q0 -61 -35.5 -111t-92.5 -70v-779q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v779q-57 20 -92.5 70t-35.5 111v640q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45 t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45zM1408 1472v-1600q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v512h-224q-13 0 -22.5 9.5t-9.5 22.5v800q0 132 94 226t226 94h256q26 0 45 -19t19 -45z" />
|
253 |
+
<glyph unicode="" horiz-adv-x="1280" d="M1024 352v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704q14 0 23 -9t9 -23zM1024 608v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704q14 0 23 -9t9 -23zM128 0h1024v768h-416q-40 0 -68 28t-28 68v416h-512v-1280z M768 896h299l-299 299v-299zM1280 768v-800q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h544q40 0 88 -20t76 -48l408 -408q28 -28 48 -76t20 -88z" />
|
254 |
+
<glyph unicode="" horiz-adv-x="1408" d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 -128h384v1536h-1152v-1536h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM1408 1472v-1664q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1664q0 26 19 45t45 19h1280q26 0 45 -19t19 -45z" />
|
255 |
+
<glyph unicode="" horiz-adv-x="1408" d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 -128h384v1152h-256v-32q0 -40 -28 -68t-68 -28h-448q-40 0 -68 28t-28 68v32h-256v-1152h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM896 1056v320q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-96h-128v96q0 13 -9.5 22.5 t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5v96h128v-96q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1408 1088v-1280q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1280q0 26 19 45t45 19h320 v288q0 40 28 68t68 28h448q40 0 68 -28t28 -68v-288h320q26 0 45 -19t19 -45z" />
|
256 |
+
<glyph unicode="" horiz-adv-x="1920" d="M640 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM256 640h384v256h-158q-14 -2 -22 -9l-195 -195q-7 -12 -9 -22v-30zM1536 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5 t90.5 37.5t37.5 90.5zM1664 800v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM1920 1344v-1152 q0 -26 -19 -45t-45 -19h-192q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-128q-26 0 -45 19t-19 45t19 45t45 19v416q0 26 13 58t32 51l198 198q19 19 51 32t58 13h160v320q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
|
257 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1280 416v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM640 1152h512v128h-512v-128zM256 1152v-1280h-32 q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h32zM1440 1152v-1280h-1088v1280h160v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h160zM1792 928v-832q0 -92 -66 -158t-158 -66h-32v1280h32q92 0 158 -66t66 -158z" />
|
258 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1920 576q-1 -32 -288 -96l-352 -32l-224 -64h-64l-293 -352h69q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-96h-160h-64v32h64v416h-160l-192 -224h-96l-32 32v192h32v32h128v8l-192 24v128l192 24v8h-128v32h-32v192l32 32h96l192 -224h160v416h-64v32h64h160h96 q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-69l293 -352h64l224 -64l352 -32q261 -58 287 -93z" />
|
259 |
+
<glyph unicode="" horiz-adv-x="1664" d="M640 640v384h-256v-256q0 -53 37.5 -90.5t90.5 -37.5h128zM1664 192v-192h-1152v192l128 192h-128q-159 0 -271.5 112.5t-112.5 271.5v320l-64 64l32 128h480l32 128h960l32 -192l-64 -32v-800z" />
|
260 |
+
<glyph unicode="" d="M1280 192v896q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-512v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-896q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h512v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
261 |
+
<glyph unicode="" d="M1280 576v128q0 26 -19 45t-45 19h-320v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-320q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h320v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h320q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
262 |
+
<glyph unicode="" horiz-adv-x="1024" d="M627 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23zM1011 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23 t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23z" />
|
263 |
+
<glyph unicode="" horiz-adv-x="1024" d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM979 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23 l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
|
264 |
+
<glyph unicode="" horiz-adv-x="1152" d="M1075 224q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM1075 608q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393 q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
|
265 |
+
<glyph unicode="" horiz-adv-x="1152" d="M1075 672q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23zM1075 1056q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23 t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
|
266 |
+
<glyph unicode="" horiz-adv-x="640" d="M627 992q0 -13 -10 -23l-393 -393l393 -393q10 -10 10 -23t-10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
|
267 |
+
<glyph unicode="" horiz-adv-x="640" d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
|
268 |
+
<glyph unicode="" horiz-adv-x="1152" d="M1075 352q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
|
269 |
+
<glyph unicode="" horiz-adv-x="1152" d="M1075 800q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
|
270 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1792 544v832q0 13 -9.5 22.5t-22.5 9.5h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5zM1920 1376v-1088q0 -66 -47 -113t-113 -47h-544q0 -37 16 -77.5t32 -71t16 -43.5q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19 t-19 45q0 14 16 44t32 70t16 78h-544q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
|
271 |
+
<glyph unicode="" horiz-adv-x="1920" d="M416 256q-66 0 -113 47t-47 113v704q0 66 47 113t113 47h1088q66 0 113 -47t47 -113v-704q0 -66 -47 -113t-113 -47h-1088zM384 1120v-704q0 -13 9.5 -22.5t22.5 -9.5h1088q13 0 22.5 9.5t9.5 22.5v704q0 13 -9.5 22.5t-22.5 9.5h-1088q-13 0 -22.5 -9.5t-9.5 -22.5z M1760 192h160v-96q0 -40 -47 -68t-113 -28h-1600q-66 0 -113 28t-47 68v96h160h1600zM1040 96q16 0 16 16t-16 16h-160q-16 0 -16 -16t16 -16h160z" />
|
272 |
+
<glyph unicode="" horiz-adv-x="1152" d="M640 128q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1024 288v960q0 13 -9.5 22.5t-22.5 9.5h-832q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h832q13 0 22.5 9.5t9.5 22.5zM1152 1248v-1088q0 -66 -47 -113t-113 -47h-832 q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h832q66 0 113 -47t47 -113z" />
|
273 |
+
<glyph unicode="" horiz-adv-x="768" d="M464 128q0 33 -23.5 56.5t-56.5 23.5t-56.5 -23.5t-23.5 -56.5t23.5 -56.5t56.5 -23.5t56.5 23.5t23.5 56.5zM672 288v704q0 13 -9.5 22.5t-22.5 9.5h-512q-13 0 -22.5 -9.5t-9.5 -22.5v-704q0 -13 9.5 -22.5t22.5 -9.5h512q13 0 22.5 9.5t9.5 22.5zM480 1136 q0 16 -16 16h-160q-16 0 -16 -16t16 -16h160q16 0 16 16zM768 1152v-1024q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v1024q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" />
|
274 |
+
<glyph unicode="" d="M768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103 t279.5 -279.5t103 -385.5z" />
|
275 |
+
<glyph unicode="" horiz-adv-x="1664" d="M768 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z M1664 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z" />
|
276 |
+
<glyph unicode="" horiz-adv-x="1664" d="M768 1216v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136zM1664 1216 v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136z" />
|
277 |
+
<glyph unicode="" horiz-adv-x="1568" d="M496 192q0 -60 -42.5 -102t-101.5 -42q-60 0 -102 42t-42 102t42 102t102 42q59 0 101.5 -42t42.5 -102zM928 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM320 640q0 -66 -47 -113t-113 -47t-113 47t-47 113 t47 113t113 47t113 -47t47 -113zM1360 192q0 -46 -33 -79t-79 -33t-79 33t-33 79t33 79t79 33t79 -33t33 -79zM528 1088q0 -73 -51.5 -124.5t-124.5 -51.5t-124.5 51.5t-51.5 124.5t51.5 124.5t124.5 51.5t124.5 -51.5t51.5 -124.5zM992 1280q0 -80 -56 -136t-136 -56 t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1536 640q0 -40 -28 -68t-68 -28t-68 28t-28 68t28 68t68 28t68 -28t28 -68zM1328 1088q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5z" />
|
278 |
+
<glyph unicode="" d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
279 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 416q0 -166 -127 -451q-3 -7 -10.5 -24t-13.5 -30t-13 -22q-12 -17 -28 -17q-15 0 -23.5 10t-8.5 25q0 9 2.5 26.5t2.5 23.5q5 68 5 123q0 101 -17.5 181t-48.5 138.5t-80 101t-105.5 69.5t-133 42.5t-154 21.5t-175.5 6h-224v-256q0 -26 -19 -45t-45 -19t-45 19 l-512 512q-19 19 -19 45t19 45l512 512q19 19 45 19t45 -19t19 -45v-256h224q713 0 875 -403q53 -134 53 -333z" />
|
280 |
+
<glyph unicode="" horiz-adv-x="1664" />
|
281 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1536 224v704q0 40 -28 68t-68 28h-704q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68v-960q0 -40 28 -68t68 -28h1216q40 0 68 28t28 68zM1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320 q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" />
|
282 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1781 605q0 35 -53 35h-1088q-40 0 -85.5 -21.5t-71.5 -52.5l-294 -363q-18 -24 -18 -40q0 -35 53 -35h1088q40 0 86 22t71 53l294 363q18 22 18 39zM640 768h768v160q0 40 -28 68t-68 28h-576q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68 v-853l256 315q44 53 116 87.5t140 34.5zM1909 605q0 -62 -46 -120l-295 -363q-43 -53 -116 -87.5t-140 -34.5h-1088q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158v-160h192q54 0 99 -24.5t67 -70.5q15 -32 15 -68z " />
|
283 |
+
<glyph unicode="" horiz-adv-x="1152" d="M896 608v-64q0 -14 -9 -23t-23 -9h-224v-224q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v224h-224q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v224q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-224h224q14 0 23 -9t9 -23zM1024 224v704q0 40 -28 68t-68 28h-704q-40 0 -68 -28 t-28 -68v-704q0 -40 28 -68t68 -28h704q40 0 68 28t28 68zM1152 928v-704q0 -92 -65.5 -158t-158.5 -66h-704q-93 0 -158.5 66t-65.5 158v704q0 93 65.5 158.5t158.5 65.5h704q93 0 158.5 -65.5t65.5 -158.5z" />
|
284 |
+
<glyph unicode="" horiz-adv-x="1152" d="M928 1152q93 0 158.5 -65.5t65.5 -158.5v-704q0 -92 -65.5 -158t-158.5 -66h-704q-93 0 -158.5 66t-65.5 158v704q0 93 65.5 158.5t158.5 65.5h704zM1024 224v704q0 40 -28 68t-68 28h-704q-40 0 -68 -28t-28 -68v-704q0 -40 28 -68t68 -28h704q40 0 68 28t28 68z M864 640q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-576q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h576z" />
|
285 |
+
<glyph unicode="" d="M1134 461q-37 -121 -138 -195t-228 -74t-228 74t-138 195q-8 25 4 48.5t38 31.5q25 8 48.5 -4t31.5 -38q25 -80 92.5 -129.5t151.5 -49.5t151.5 49.5t92.5 129.5q8 26 32 38t49 4t37 -31.5t4 -48.5zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5 t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5 t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
286 |
+
<glyph unicode="" d="M1134 307q8 -25 -4 -48.5t-37 -31.5t-49 4t-32 38q-25 80 -92.5 129.5t-151.5 49.5t-151.5 -49.5t-92.5 -129.5q-8 -26 -31.5 -38t-48.5 -4q-26 8 -38 31.5t-4 48.5q37 121 138 195t228 74t228 -74t138 -195zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5 t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204 t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
287 |
+
<glyph unicode="" d="M1152 448q0 -26 -19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h640q26 0 45 -19t19 -45zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5 t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
288 |
+
<glyph unicode="" horiz-adv-x="1920" d="M832 448v128q0 14 -9 23t-23 9h-192v192q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-192h-192q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h192v-192q0 -14 9 -23t23 -9h128q14 0 23 9t9 23v192h192q14 0 23 9t9 23zM1408 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5 t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 640q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1920 512q0 -212 -150 -362t-362 -150q-192 0 -338 128h-220q-146 -128 -338 -128q-212 0 -362 150 t-150 362t150 362t362 150h896q212 0 362 -150t150 -362z" />
|
289 |
+
<glyph unicode="" horiz-adv-x="1920" d="M384 368v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM512 624v-96q0 -16 -16 -16h-224q-16 0 -16 16v96q0 16 16 16h224q16 0 16 -16zM384 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1408 368v-96q0 -16 -16 -16 h-864q-16 0 -16 16v96q0 16 16 16h864q16 0 16 -16zM768 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM640 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1024 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16 h96q16 0 16 -16zM896 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1280 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1664 368v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1152 880v-96 q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1408 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1664 880v-352q0 -16 -16 -16h-224q-16 0 -16 16v96q0 16 16 16h112v240q0 16 16 16h96q16 0 16 -16zM1792 128v896h-1664v-896 h1664zM1920 1024v-896q0 -53 -37.5 -90.5t-90.5 -37.5h-1664q-53 0 -90.5 37.5t-37.5 90.5v896q0 53 37.5 90.5t90.5 37.5h1664q53 0 90.5 -37.5t37.5 -90.5z" />
|
290 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1664 491v616q-169 -91 -306 -91q-82 0 -145 32q-100 49 -184 76.5t-178 27.5q-173 0 -403 -127v-599q245 113 433 113q55 0 103.5 -7.5t98 -26t77 -31t82.5 -39.5l28 -14q44 -22 101 -22q120 0 293 92zM320 1280q0 -35 -17.5 -64t-46.5 -46v-1266q0 -14 -9 -23t-23 -9 h-64q-14 0 -23 9t-9 23v1266q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -39 -35 -57q-10 -5 -17 -9q-218 -116 -369 -116q-88 0 -158 35l-28 14q-64 33 -99 48t-91 29t-114 14q-102 0 -235.5 -44t-228.5 -102 q-15 -9 -33 -9q-16 0 -32 8q-32 19 -32 56v742q0 35 31 55q35 21 78.5 42.5t114 52t152.5 49.5t155 19q112 0 209 -31t209 -86q38 -19 89 -19q122 0 310 112q22 12 31 17q31 16 62 -2q31 -20 31 -55z" />
|
291 |
+
<glyph unicode="" horiz-adv-x="1792" d="M832 536v192q-181 -16 -384 -117v-185q205 96 384 110zM832 954v197q-172 -8 -384 -126v-189q215 111 384 118zM1664 491v184q-235 -116 -384 -71v224q-20 6 -39 15q-5 3 -33 17t-34.5 17t-31.5 15t-34.5 15.5t-32.5 13t-36 12.5t-35 8.5t-39.5 7.5t-39.5 4t-44 2 q-23 0 -49 -3v-222h19q102 0 192.5 -29t197.5 -82q19 -9 39 -15v-188q42 -17 91 -17q120 0 293 92zM1664 918v189q-169 -91 -306 -91q-45 0 -78 8v-196q148 -42 384 90zM320 1280q0 -35 -17.5 -64t-46.5 -46v-1266q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v1266 q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -39 -35 -57q-10 -5 -17 -9q-218 -116 -369 -116q-88 0 -158 35l-28 14q-64 33 -99 48t-91 29t-114 14q-102 0 -235.5 -44t-228.5 -102q-15 -9 -33 -9q-16 0 -32 8 q-32 19 -32 56v742q0 35 31 55q35 21 78.5 42.5t114 52t152.5 49.5t155 19q112 0 209 -31t209 -86q38 -19 89 -19q122 0 310 112q22 12 31 17q31 16 62 -2q31 -20 31 -55z" />
|
292 |
+
<glyph unicode="" horiz-adv-x="1664" d="M585 553l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23t-10 -23zM1664 96v-64q0 -14 -9 -23t-23 -9h-960q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h960q14 0 23 -9 t9 -23z" />
|
293 |
+
<glyph unicode="" horiz-adv-x="1920" d="M617 137l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23t-10 -23zM1208 1204l-373 -1291q-4 -13 -15.5 -19.5t-23.5 -2.5l-62 17q-13 4 -19.5 15.5t-2.5 24.5 l373 1291q4 13 15.5 19.5t23.5 2.5l62 -17q13 -4 19.5 -15.5t2.5 -24.5zM1865 553l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23t-10 -23z" />
|
294 |
+
<glyph unicode="" horiz-adv-x="1792" d="M640 454v-70q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-512 512q-19 19 -19 45t19 45l512 512q29 31 70 14q39 -17 39 -59v-69l-397 -398q-19 -19 -19 -45t19 -45zM1792 416q0 -58 -17 -133.5t-38.5 -138t-48 -125t-40.5 -90.5l-20 -40q-8 -17 -28 -17q-6 0 -9 1 q-25 8 -23 34q43 400 -106 565q-64 71 -170.5 110.5t-267.5 52.5v-251q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-512 512q-19 19 -19 45t19 45l512 512q29 31 70 14q39 -17 39 -59v-262q411 -28 599 -221q169 -173 169 -509z" />
|
295 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1186 579l257 250l-356 52l-66 10l-30 60l-159 322v-963l59 -31l318 -168l-60 355l-12 66zM1638 841l-363 -354l86 -500q5 -33 -6 -51.5t-34 -18.5q-17 0 -40 12l-449 236l-449 -236q-23 -12 -40 -12q-23 0 -34 18.5t-6 51.5l86 500l-364 354q-32 32 -23 59.5t54 34.5 l502 73l225 455q20 41 49 41q28 0 49 -41l225 -455l502 -73q45 -7 54 -34.5t-24 -59.5z" />
|
296 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1401 1187l-640 -1280q-17 -35 -57 -35q-5 0 -15 2q-22 5 -35.5 22.5t-13.5 39.5v576h-576q-22 0 -39.5 13.5t-22.5 35.5t4 42t29 30l1280 640q13 7 29 7q27 0 45 -19q15 -14 18.5 -34.5t-6.5 -39.5z" />
|
297 |
+
<glyph unicode="" horiz-adv-x="1664" d="M557 256h595v595zM512 301l595 595h-595v-595zM1664 224v-192q0 -14 -9 -23t-23 -9h-224v-224q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v224h-864q-14 0 -23 9t-9 23v864h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224v224q0 14 9 23t23 9h192q14 0 23 -9t9 -23 v-224h851l246 247q10 9 23 9t23 -9q9 -10 9 -23t-9 -23l-247 -246v-851h224q14 0 23 -9t9 -23z" />
|
298 |
+
<glyph unicode="" horiz-adv-x="1024" d="M288 64q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM288 1216q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM928 1088q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1024 1088q0 -52 -26 -96.5t-70 -69.5 q-2 -287 -226 -414q-68 -38 -203 -81q-128 -40 -169.5 -71t-41.5 -100v-26q44 -25 70 -69.5t26 -96.5q0 -80 -56 -136t-136 -56t-136 56t-56 136q0 52 26 96.5t70 69.5v820q-44 25 -70 69.5t-26 96.5q0 80 56 136t136 56t136 -56t56 -136q0 -52 -26 -96.5t-70 -69.5v-497 q54 26 154 57q55 17 87.5 29.5t70.5 31t59 39.5t40.5 51t28 69.5t8.5 91.5q-44 25 -70 69.5t-26 96.5q0 80 56 136t136 56t136 -56t56 -136z" />
|
299 |
+
<glyph unicode="" horiz-adv-x="1664" d="M439 265l-256 -256q-10 -9 -23 -9q-12 0 -23 9q-9 10 -9 23t9 23l256 256q10 9 23 9t23 -9q9 -10 9 -23t-9 -23zM608 224v-320q0 -14 -9 -23t-23 -9t-23 9t-9 23v320q0 14 9 23t23 9t23 -9t9 -23zM384 448q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23t9 23t23 9h320 q14 0 23 -9t9 -23zM1648 320q0 -120 -85 -203l-147 -146q-83 -83 -203 -83q-121 0 -204 85l-334 335q-21 21 -42 56l239 18l273 -274q27 -27 68 -27.5t68 26.5l147 146q28 28 28 67q0 40 -28 68l-274 275l18 239q35 -21 56 -42l336 -336q84 -86 84 -204zM1031 1044l-239 -18 l-273 274q-28 28 -68 28q-39 0 -68 -27l-147 -146q-28 -28 -28 -67q0 -40 28 -68l274 -274l-18 -240q-35 21 -56 42l-336 336q-84 86 -84 204q0 120 85 203l147 146q83 83 203 83q121 0 204 -85l334 -335q21 -21 42 -56zM1664 960q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9 t-9 23t9 23t23 9h320q14 0 23 -9t9 -23zM1120 1504v-320q0 -14 -9 -23t-23 -9t-23 9t-9 23v320q0 14 9 23t23 9t23 -9t9 -23zM1527 1353l-256 -256q-11 -9 -23 -9t-23 9q-9 10 -9 23t9 23l256 256q10 9 23 9t23 -9q9 -10 9 -23t-9 -23z" />
|
300 |
+
<glyph unicode="" horiz-adv-x="1024" d="M704 280v-240q0 -16 -12 -28t-28 -12h-240q-16 0 -28 12t-12 28v240q0 16 12 28t28 12h240q16 0 28 -12t12 -28zM1020 880q0 -54 -15.5 -101t-35 -76.5t-55 -59.5t-57.5 -43.5t-61 -35.5q-41 -23 -68.5 -65t-27.5 -67q0 -17 -12 -32.5t-28 -15.5h-240q-15 0 -25.5 18.5 t-10.5 37.5v45q0 83 65 156.5t143 108.5q59 27 84 56t25 76q0 42 -46.5 74t-107.5 32q-65 0 -108 -29q-35 -25 -107 -115q-13 -16 -31 -16q-12 0 -25 8l-164 125q-13 10 -15.5 25t5.5 28q160 266 464 266q80 0 161 -31t146 -83t106 -127.5t41 -158.5z" />
|
301 |
+
<glyph unicode="" horiz-adv-x="640" d="M640 192v-128q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64v384h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h384q26 0 45 -19t19 -45v-576h64q26 0 45 -19t19 -45zM512 1344v-192q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v192 q0 26 19 45t45 19h256q26 0 45 -19t19 -45z" />
|
302 |
+
<glyph unicode="" horiz-adv-x="640" d="M512 288v-224q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v224q0 26 19 45t45 19h256q26 0 45 -19t19 -45zM542 1344l-28 -768q-1 -26 -20.5 -45t-45.5 -19h-256q-26 0 -45.5 19t-20.5 45l-28 768q-1 26 17.5 45t44.5 19h320q26 0 44.5 -19t17.5 -45z" />
|
303 |
+
<glyph unicode="" d="M897 167v-167h-248l-159 252l-24 42q-8 9 -11 21h-3l-9 -21q-10 -20 -25 -44l-155 -250h-258v167h128l197 291l-185 272h-137v168h276l139 -228q2 -4 23 -42q8 -9 11 -21h3q3 9 11 21l25 42l140 228h257v-168h-125l-184 -267l204 -296h109zM1534 846v-206h-514l-3 27 q-4 28 -4 46q0 64 26 117t65 86.5t84 65t84 54.5t65 54t26 64q0 38 -29.5 62.5t-70.5 24.5q-51 0 -97 -39q-14 -11 -36 -38l-105 92q26 37 63 66q83 65 188 65q110 0 178 -59.5t68 -158.5q0 -56 -24.5 -103t-62 -76.5t-81.5 -58.5t-82 -50.5t-65.5 -51.5t-30.5 -63h232v80 h126z" />
|
304 |
+
<glyph unicode="" d="M897 167v-167h-248l-159 252l-24 42q-8 9 -11 21h-3l-9 -21q-10 -20 -25 -44l-155 -250h-258v167h128l197 291l-185 272h-137v168h276l139 -228q2 -4 23 -42q8 -9 11 -21h3q3 9 11 21l25 42l140 228h257v-168h-125l-184 -267l204 -296h109zM1536 -50v-206h-514l-4 27 q-3 45 -3 46q0 64 26 117t65 86.5t84 65t84 54.5t65 54t26 64q0 38 -29.5 62.5t-70.5 24.5q-51 0 -97 -39q-14 -11 -36 -38l-105 92q26 37 63 66q80 65 188 65q110 0 178 -59.5t68 -158.5q0 -66 -34.5 -118.5t-84 -86t-99.5 -62.5t-87 -63t-41 -73h232v80h126z" />
|
305 |
+
<glyph unicode="" horiz-adv-x="1920" d="M896 128l336 384h-768l-336 -384h768zM1909 1205q15 -34 9.5 -71.5t-30.5 -65.5l-896 -1024q-38 -44 -96 -44h-768q-38 0 -69.5 20.5t-47.5 54.5q-15 34 -9.5 71.5t30.5 65.5l896 1024q38 44 96 44h768q38 0 69.5 -20.5t47.5 -54.5z" />
|
306 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1664 438q0 -81 -44.5 -135t-123.5 -54q-41 0 -77.5 17.5t-59 38t-56.5 38t-71 17.5q-110 0 -110 -124q0 -39 16 -115t15 -115v-5q-22 0 -33 -1q-34 -3 -97.5 -11.5t-115.5 -13.5t-98 -5q-61 0 -103 26.5t-42 83.5q0 37 17.5 71t38 56.5t38 59t17.5 77.5q0 79 -54 123.5 t-135 44.5q-84 0 -143 -45.5t-59 -127.5q0 -43 15 -83t33.5 -64.5t33.5 -53t15 -50.5q0 -45 -46 -89q-37 -35 -117 -35q-95 0 -245 24q-9 2 -27.5 4t-27.5 4l-13 2q-1 0 -3 1q-2 0 -2 1v1024q2 -1 17.5 -3.5t34 -5t21.5 -3.5q150 -24 245 -24q80 0 117 35q46 44 46 89 q0 22 -15 50.5t-33.5 53t-33.5 64.5t-15 83q0 82 59 127.5t144 45.5q80 0 134 -44.5t54 -123.5q0 -41 -17.5 -77.5t-38 -59t-38 -56.5t-17.5 -71q0 -57 42 -83.5t103 -26.5q64 0 180 15t163 17v-2q-1 -2 -3.5 -17.5t-5 -34t-3.5 -21.5q-24 -150 -24 -245q0 -80 35 -117 q44 -46 89 -46q22 0 50.5 15t53 33.5t64.5 33.5t83 15q82 0 127.5 -59t45.5 -143z" />
|
307 |
+
<glyph unicode="" horiz-adv-x="1152" d="M1152 832v-128q0 -221 -147.5 -384.5t-364.5 -187.5v-132h256q26 0 45 -19t19 -45t-19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h256v132q-217 24 -364.5 187.5t-147.5 384.5v128q0 26 19 45t45 19t45 -19t19 -45v-128q0 -185 131.5 -316.5t316.5 -131.5 t316.5 131.5t131.5 316.5v128q0 26 19 45t45 19t45 -19t19 -45zM896 1216v-512q0 -132 -94 -226t-226 -94t-226 94t-94 226v512q0 132 94 226t226 94t226 -94t94 -226z" />
|
308 |
+
<glyph unicode="" horiz-adv-x="1408" d="M271 591l-101 -101q-42 103 -42 214v128q0 26 19 45t45 19t45 -19t19 -45v-128q0 -53 15 -113zM1385 1193l-361 -361v-128q0 -132 -94 -226t-226 -94q-55 0 -109 19l-96 -96q97 -51 205 -51q185 0 316.5 131.5t131.5 316.5v128q0 26 19 45t45 19t45 -19t19 -45v-128 q0 -221 -147.5 -384.5t-364.5 -187.5v-132h256q26 0 45 -19t19 -45t-19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h256v132q-125 13 -235 81l-254 -254q-10 -10 -23 -10t-23 10l-82 82q-10 10 -10 23t10 23l1234 1234q10 10 23 10t23 -10l82 -82q10 -10 10 -23 t-10 -23zM1005 1325l-621 -621v512q0 132 94 226t226 94q102 0 184.5 -59t116.5 -152z" />
|
309 |
+
<glyph unicode="" horiz-adv-x="1280" d="M1088 576v640h-448v-1137q119 63 213 137q235 184 235 360zM1280 1344v-768q0 -86 -33.5 -170.5t-83 -150t-118 -127.5t-126.5 -103t-121 -77.5t-89.5 -49.5t-42.5 -20q-12 -6 -26 -6t-26 6q-16 7 -42.5 20t-89.5 49.5t-121 77.5t-126.5 103t-118 127.5t-83 150 t-33.5 170.5v768q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
|
310 |
+
<glyph unicode="" horiz-adv-x="1664" d="M128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280 q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />
|
311 |
+
<glyph unicode="" horiz-adv-x="1408" d="M512 1344q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 1376v-320q0 -16 -12 -25q-8 -7 -20 -7q-4 0 -7 1l-448 96q-11 2 -18 11t-7 20h-256v-102q111 -23 183.5 -111t72.5 -203v-800q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v800 q0 106 62.5 190.5t161.5 114.5v111h-32q-59 0 -115 -23.5t-91.5 -53t-66 -66.5t-40.5 -53.5t-14 -24.5q-17 -35 -57 -35q-16 0 -29 7q-23 12 -31.5 37t3.5 49q5 10 14.5 26t37.5 53.5t60.5 70t85 67t108.5 52.5q-25 42 -25 86q0 66 47 113t113 47t113 -47t47 -113 q0 -33 -14 -64h302q0 11 7 20t18 11l448 96q3 1 7 1q12 0 20 -7q12 -9 12 -25z" />
|
312 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1440 1088q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1664 1376q0 -249 -75.5 -430.5t-253.5 -360.5q-81 -80 -195 -176l-20 -379q-2 -16 -16 -26l-384 -224q-7 -4 -16 -4q-12 0 -23 9l-64 64q-13 14 -8 32l85 276l-281 281l-276 -85q-3 -1 -9 -1 q-14 0 -23 9l-64 64q-17 19 -5 39l224 384q10 14 26 16l379 20q96 114 176 195q188 187 358 258t431 71q14 0 24 -9.5t10 -22.5z" />
|
313 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1708 881l-188 -881h-304l181 849q4 21 1 43q-4 20 -16 35q-10 14 -28 24q-18 9 -40 9h-197l-205 -960h-303l204 960h-304l-205 -960h-304l272 1280h1139q157 0 245 -118q86 -116 52 -281z" />
|
314 |
+
<glyph unicode="" d="M909 141l102 102q19 19 19 45t-19 45l-307 307l307 307q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
315 |
+
<glyph unicode="" d="M717 141l454 454q19 19 19 45t-19 45l-454 454q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l307 -307l-307 -307q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
316 |
+
<glyph unicode="" d="M1165 397l102 102q19 19 19 45t-19 45l-454 454q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19l307 307l307 -307q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
317 |
+
<glyph unicode="" d="M813 237l454 454q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-307 -307l-307 307q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
318 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1130 939l16 175h-884l47 -534h612l-22 -228l-197 -53l-196 53l-13 140h-175l22 -278l362 -100h4v1l359 99l50 544h-644l-15 181h674zM0 1408h1408l-128 -1438l-578 -162l-574 162z" />
|
319 |
+
<glyph unicode="" horiz-adv-x="1792" d="M275 1408h1505l-266 -1333l-804 -267l-698 267l71 356h297l-29 -147l422 -161l486 161l68 339h-1208l58 297h1209l38 191h-1208z" />
|
320 |
+
<glyph unicode="" horiz-adv-x="1792" d="M960 1280q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1790 276q-8 -20 -30 -20h-112q0 -137 -99.5 -251t-272 -179.5t-380.5 -65.5t-380.5 65.5t-272 179.5t-99.5 251h-112q-22 0 -30 20q-8 19 7 35l224 224q10 9 23 9q12 0 23 -9l224 -224 q15 -16 7 -35q-8 -20 -30 -20h-112q0 -85 112.5 -162.5t287.5 -100.5v647h-192q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h192v163q-58 34 -93 92.5t-35 128.5q0 106 75 181t181 75t181 -75t75 -181q0 -70 -35 -128.5t-93 -92.5v-163h192q26 0 45 -19t19 -45v-128 q0 -26 -19 -45t-45 -19h-192v-647q175 23 287.5 100.5t112.5 162.5h-112q-22 0 -30 20q-8 19 7 35l224 224q11 9 23 9t23 -9l224 -224q15 -16 7 -35z" />
|
321 |
+
<glyph unicode="" horiz-adv-x="1152" d="M1056 768q40 0 68 -28t28 -68v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h32v320q0 185 131.5 316.5t316.5 131.5t316.5 -131.5t131.5 -316.5q0 -26 -19 -45t-45 -19h-64q-26 0 -45 19t-19 45q0 106 -75 181t-181 75t-181 -75t-75 -181 v-320h736zM703 169l-69 229q32 17 51 47t19 67q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5q0 -37 19 -67t51 -47l-69 -229q-5 -15 5 -28t26 -13h192q16 0 26 13t5 28z" />
|
322 |
+
<glyph unicode="" d="M1024 640q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM1152 640q0 159 -112.5 271.5t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM1280 640q0 -212 -150 -362t-362 -150t-362 150 t-150 362t150 362t362 150t362 -150t150 -362zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
323 |
+
<glyph unicode="" horiz-adv-x="1408" d="M384 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM896 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM1408 800v-192q0 -40 -28 -68t-68 -28h-192 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68z" />
|
324 |
+
<glyph unicode="" horiz-adv-x="384" d="M384 288v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM384 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM384 1312v-192q0 -40 -28 -68t-68 -28h-192 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68z" />
|
325 |
+
<glyph unicode="" d="M512 256q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM863 162q-13 232 -177 396t-396 177q-14 1 -24 -9t-10 -23v-128q0 -13 8.5 -22t21.5 -10q154 -11 264 -121t121 -264q1 -13 10 -21.5t22 -8.5h128q13 0 23 10 t9 24zM1247 161q-5 154 -56 297.5t-139.5 260t-205 205t-260 139.5t-297.5 56q-14 1 -23 -9q-10 -10 -10 -23v-128q0 -13 9 -22t22 -10q204 -7 378 -111.5t278.5 -278.5t111.5 -378q1 -13 10 -22t22 -9h128q13 0 23 10q11 9 9 23zM1536 1120v-960q0 -119 -84.5 -203.5 t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
326 |
+
<glyph unicode="" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1152 585q32 18 32 55t-32 55l-544 320q-31 19 -64 1q-32 -19 -32 -56v-640q0 -37 32 -56 q16 -8 32 -8q17 0 32 9z" />
|
327 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1024 1084l316 -316l-572 -572l-316 316zM813 105l618 618q19 19 19 45t-19 45l-362 362q-18 18 -45 18t-45 -18l-618 -618q-19 -19 -19 -45t19 -45l362 -362q18 -18 45 -18t45 18zM1702 742l-907 -908q-37 -37 -90.5 -37t-90.5 37l-126 126q56 56 56 136t-56 136 t-136 56t-136 -56l-125 126q-37 37 -37 90.5t37 90.5l907 906q37 37 90.5 37t90.5 -37l125 -125q-56 -56 -56 -136t56 -136t136 -56t136 56l126 -125q37 -37 37 -90.5t-37 -90.5z" />
|
328 |
+
<glyph unicode="" d="M1280 576v128q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h896q26 0 45 19t19 45zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z" />
|
329 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1152 736v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h832q14 0 23 -9t9 -23zM1280 288v832q0 66 -47 113t-113 47h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113zM1408 1120v-832q0 -119 -84.5 -203.5 t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q119 0 203.5 -84.5t84.5 -203.5z" />
|
330 |
+
<glyph unicode="" horiz-adv-x="1024" d="M1018 933q-18 -37 -58 -37h-192v-864q0 -14 -9 -23t-23 -9h-704q-21 0 -29 18q-8 20 4 35l160 192q9 11 25 11h320v640h-192q-40 0 -58 37q-17 37 9 68l320 384q18 22 49 22t49 -22l320 -384q27 -32 9 -68z" />
|
331 |
+
<glyph unicode="" horiz-adv-x="1024" d="M32 1280h704q13 0 22.5 -9.5t9.5 -23.5v-863h192q40 0 58 -37t-9 -69l-320 -384q-18 -22 -49 -22t-49 22l-320 384q-26 31 -9 69q18 37 58 37h192v640h-320q-14 0 -25 11l-160 192q-13 14 -4 34q9 19 29 19z" />
|
332 |
+
<glyph unicode="" d="M685 237l614 614q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-467 -467l-211 211q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l358 -358q19 -19 45 -19t45 19zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5 t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
333 |
+
<glyph unicode="" d="M404 428l152 -152l-52 -52h-56v96h-96v56zM818 818q14 -13 -3 -30l-291 -291q-17 -17 -30 -3q-14 13 3 30l291 291q17 17 30 3zM544 128l544 544l-288 288l-544 -544v-288h288zM1152 736l92 92q28 28 28 68t-28 68l-152 152q-28 28 -68 28t-68 -28l-92 -92zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
334 |
+
<glyph unicode="" d="M1280 608v480q0 26 -19 45t-45 19h-480q-42 0 -59 -39q-17 -41 14 -70l144 -144l-534 -534q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19l534 534l144 -144q18 -19 45 -19q12 0 25 5q39 17 39 59zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960 q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
335 |
+
<glyph unicode="" d="M1005 435l352 352q19 19 19 45t-19 45l-352 352q-30 31 -69 14q-40 -17 -40 -59v-160q-119 0 -216 -19.5t-162.5 -51t-114 -79t-76.5 -95.5t-44.5 -109t-21.5 -111.5t-5 -110.5q0 -181 167 -404q10 -12 25 -12q7 0 13 3q22 9 19 33q-44 354 62 473q46 52 130 75.5 t224 23.5v-160q0 -42 40 -59q12 -5 24 -5q26 0 45 19zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
336 |
+
<glyph unicode="" horiz-adv-x="1792" />
|
337 |
+
<glyph unicode="" horiz-adv-x="1792" />
|
338 |
+
</font>
|
339 |
+
</defs></svg>
|
trunk/app/assets/font/fontawesome-webfont.ttf
ADDED
Binary file
|
trunk/app/assets/font/fontawesome-webfont.woff
ADDED
Binary file
|
trunk/app/assets/img/Popup-title-bg.png
ADDED
Binary file
|
trunk/app/assets/img/admin-menu.png
ADDED
Binary file
|
trunk/app/assets/img/audio_thumb.png
ADDED
Binary file
|
trunk/app/assets/img/backgrounds.gif
ADDED
Binary file
|
trunk/app/assets/img/boxspinner.gif
ADDED
Binary file
|
trunk/app/assets/img/bp-media-modal.png
ADDED
Binary file
|
trunk/app/assets/img/bp_media_social.png
ADDED
Binary file
|
trunk/app/assets/img/bpm-contest-banner.jpg
ADDED
Binary file
|
trunk/app/assets/img/bpm-icon-16.png
ADDED
Binary file
|
trunk/app/assets/img/bpm-icon-32.png
ADDED
Binary file
|
trunk/app/assets/img/buttons-disabled.png
ADDED
Binary file
|
trunk/app/assets/img/buttons.png
ADDED
Binary file
|
trunk/app/assets/img/close.png
ADDED
Binary file
|
trunk/app/assets/img/coming-soon.png
ADDED
Binary file
|
trunk/app/assets/img/delete.gif
ADDED
Binary file
|
trunk/app/assets/img/donate.gif
ADDED
Binary file
|
trunk/app/assets/img/donate.png
ADDED
Binary file
|
trunk/app/assets/img/done.gif
ADDED
Binary file
|
trunk/app/assets/img/drag-drop-bg.png
ADDED
Binary file
|
trunk/app/assets/img/error.gif
ADDED
Binary file
|
trunk/app/assets/img/image_thumb.png
ADDED
Binary file
|
trunk/app/assets/img/indicator.png
ADDED
Binary file
|
trunk/app/assets/img/indicatorActive.png
ADDED
Binary file
|
trunk/app/assets/img/leftArrow.png
ADDED
Binary file
|
trunk/app/assets/img/leftPanelArrow.png
ADDED
Binary file
|
trunk/app/assets/img/loader.gif
ADDED
Binary file
|
trunk/app/assets/img/logo_medibp_32.png
ADDED
Binary file
|
trunk/app/assets/img/mask-square.png
ADDED
Binary file
|
trunk/app/assets/img/mask.png
ADDED
Binary file
|
trunk/app/assets/img/paypal-donate-button.png
ADDED
Binary file
|
trunk/app/assets/img/private.png
ADDED
Binary file
|
trunk/app/assets/img/rightArrow.png
ADDED
Binary file
|
trunk/app/assets/img/rightPanelArrow.png
ADDED
Binary file
|
trunk/app/assets/img/rtCamp-bullet.png
ADDED
Binary file
|
trunk/app/assets/img/rtcamp-logo.png
ADDED
Binary file
|
trunk/app/assets/img/tab-icon.png
ADDED
Binary file
|
trunk/app/assets/img/throbber.gif
ADDED
Binary file
|
trunk/app/assets/img/thumb_default.png
ADDED
Binary file
|
trunk/app/assets/img/transp50.png
ADDED
Binary file
|
trunk/app/assets/img/video_thumb.png
ADDED
Binary file
|
trunk/app/assets/img/wpmini-grey.png
ADDED
Binary file
|
trunk/app/assets/js/admin.js
ADDED
@@ -0,0 +1,619 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
jQuery(document).ready(function($) {
|
2 |
+
|
3 |
+
/* Linkback */
|
4 |
+
jQuery('#spread-the-word').on('click', '#bp-media-add-linkback', function() {
|
5 |
+
var data = {
|
6 |
+
action: 'rtmedia_linkback',
|
7 |
+
linkback: jQuery('#bp-media-add-linkback:checked').length
|
8 |
+
};
|
9 |
+
jQuery.post(rtmedia_admin_ajax, data, function(response) {
|
10 |
+
});
|
11 |
+
})
|
12 |
+
|
13 |
+
/* Fetch Feed */
|
14 |
+
var rtmedia_news_section = jQuery('#latest-news');
|
15 |
+
if (rtmedia_news_section.length > 0) {
|
16 |
+
var data = {
|
17 |
+
action: 'rtmedia_fetch_feed'
|
18 |
+
};
|
19 |
+
jQuery.post(rtmedia_admin_ajax, data, function(response) {
|
20 |
+
rtmedia_news_section.find('.inside').html(response);
|
21 |
+
});
|
22 |
+
}
|
23 |
+
|
24 |
+
/* Select Request */
|
25 |
+
jQuery('#bp-media-settings-boxes').on('change', '#select-request', function() {
|
26 |
+
if (jQuery(this).val()) {
|
27 |
+
jQuery('#bp_media_settings_form .bp-media-metabox-holder').html()
|
28 |
+
jQuery('#bp_media_settings_form .bp-media-metabox-holder').html('<div class="support_form_loader"></div>');
|
29 |
+
var data = {
|
30 |
+
action: 'rtmedia_select_request',
|
31 |
+
form: jQuery(this).val()
|
32 |
+
};
|
33 |
+
|
34 |
+
// since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
|
35 |
+
jQuery.post(ajaxurl, data, function(response) {
|
36 |
+
jQuery('#bp_media_settings_form .bp-media-metabox-holder').html()
|
37 |
+
jQuery('#bp_media_settings_form .bp-media-metabox-holder').html(response).fadeIn('slow');
|
38 |
+
});
|
39 |
+
}
|
40 |
+
});
|
41 |
+
|
42 |
+
/* Cancel Request */
|
43 |
+
jQuery('#bp-media-settings-boxes').on('click', '#cancel-request', function() {
|
44 |
+
if (jQuery(this).val()) {
|
45 |
+
jQuery('#bp_media_settings_form .bp-media-metabox-holder').html()
|
46 |
+
jQuery('#bp_media_settings_form .bp-media-metabox-holder').html('<div class="support_form_loader"></div>');
|
47 |
+
var data = {
|
48 |
+
action: 'rtmedia_cancel_request'
|
49 |
+
};
|
50 |
+
|
51 |
+
// since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
|
52 |
+
jQuery.post(ajaxurl, data, function(response) {
|
53 |
+
jQuery('#bp_media_settings_form .bp-media-metabox-holder').html()
|
54 |
+
jQuery('#bp_media_settings_form .bp-media-metabox-holder').html(response).fadeIn('slow');
|
55 |
+
});
|
56 |
+
}
|
57 |
+
});
|
58 |
+
|
59 |
+
/* Submit Request */
|
60 |
+
|
61 |
+
jQuery('#bp-media-settings-boxes').on('submit', '#bp_media_settings_form,#rtmedia-settings-submit', function(e) {
|
62 |
+
var return_code = true;
|
63 |
+
var reg = new RegExp('^auto$|^[+-]?[0-9]+\\.?([0-9]+)?(px|em|ex|%|in|cm|mm|pt|pc)?$');
|
64 |
+
jQuery("input[name*='defaultSizes']").each(function(el) {
|
65 |
+
if (!reg.test(jQuery(this).val())) {
|
66 |
+
alert("Invalid value for " + jQuery(this).attr('name').replace('rtmedia-options[', '').replace(']', '').replace(/_/g, ' '));
|
67 |
+
return_code = false;
|
68 |
+
return false;
|
69 |
+
}
|
70 |
+
|
71 |
+
});
|
72 |
+
if (!return_code) {
|
73 |
+
e.preventDefault();
|
74 |
+
}
|
75 |
+
|
76 |
+
});
|
77 |
+
|
78 |
+
jQuery(document).on('click', "#bpm-services .encoding-try-now,#rtm-services .encoding-try-now", function(e) {
|
79 |
+
e.preventDefault();
|
80 |
+
if (confirm(rtmedia_admin_strings.are_you_sure)) {
|
81 |
+
jQuery(this).after('<img style="margin: 0 0 0 10px" src="' + rtmedia_admin_url + 'images/wpspin_light.gif" />')
|
82 |
+
var data = {
|
83 |
+
action: 'rtmedia_free_encoding_subscribe'
|
84 |
+
};
|
85 |
+
|
86 |
+
// since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
|
87 |
+
jQuery.getJSON(ajaxurl, data, function(response) {
|
88 |
+
if (response.error === undefined && response.apikey) {
|
89 |
+
var tempUrl = window.location.href;
|
90 |
+
var hash = window.location.hash;
|
91 |
+
tempUrl = tempUrl.replace(hash, '');
|
92 |
+
document.location.href = tempUrl + '&apikey=' + response.apikey + hash;
|
93 |
+
} else {
|
94 |
+
jQuery('.encoding-try-now').next().remove();
|
95 |
+
jQuery('#settings-error-encoding-error').remove();
|
96 |
+
jQuery('#bp-media-settings-boxes').before('<div class="error" id="settings-error-encoding-error"><p>' + response.error + '</p></div>');
|
97 |
+
}
|
98 |
+
});
|
99 |
+
}
|
100 |
+
});
|
101 |
+
|
102 |
+
jQuery(document).on('click', '#api-key-submit', function(e) {
|
103 |
+
e.preventDefault();
|
104 |
+
jQuery(this).after('<img style="margin: 0 0 0 10px" src="' + rtmedia_admin_url + 'images/wpspin_light.gif" />')
|
105 |
+
var data = {
|
106 |
+
action: 'rtmedia_enter_api_key',
|
107 |
+
apikey: jQuery('#new-api-key').val()
|
108 |
+
};
|
109 |
+
|
110 |
+
// since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
|
111 |
+
jQuery.getJSON(ajaxurl, data, function(response) {
|
112 |
+
if (response.error === undefined && response.apikey) {
|
113 |
+
var tempUrl = window.location.href;
|
114 |
+
var hash = window.location.hash;
|
115 |
+
tempUrl = tempUrl.replace(hash, '');
|
116 |
+
if (tempUrl.toString().indexOf('&apikey=' + response.apikey) == -1)
|
117 |
+
tempUrl += '&apikey=' + response.apikey;
|
118 |
+
if (tempUrl.toString().indexOf('&update=true') == -1)
|
119 |
+
tempUrl += '&update=true';
|
120 |
+
document.location.href = tempUrl + hash;
|
121 |
+
|
122 |
+
} else {
|
123 |
+
jQuery('#settings-error-api-key-error').remove();
|
124 |
+
jQuery('h2:first').after('<div class="error" id="settings-error-api-key-error"><p>' + response.error + '</p></div>');
|
125 |
+
}
|
126 |
+
});
|
127 |
+
});
|
128 |
+
|
129 |
+
jQuery(document).on('click', '#disable-encoding', function(e) {
|
130 |
+
e.preventDefault();
|
131 |
+
if (confirm(rtmedia_admin_strings.disable_encoding)) {
|
132 |
+
jQuery(this).after('<img style="margin: 0 0 0 10px" src="' + rtmedia_admin_url + 'images/wpspin_light.gif" />')
|
133 |
+
var data = {
|
134 |
+
action: 'rtmedia_disable_encoding'
|
135 |
+
};
|
136 |
+
|
137 |
+
// since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
|
138 |
+
jQuery.post(ajaxurl, data, function(response) {
|
139 |
+
if (response) {
|
140 |
+
jQuery('settings-error-encoding-disabled').remove();
|
141 |
+
jQuery('h2:first').after('<div class="updated" id="settings-encoding-successfully-disabled"><p>' + response + '</p></div>');
|
142 |
+
jQuery('#bp-media-encoding-usage').remove();
|
143 |
+
jQuery('#disable-encoding').next().remove();
|
144 |
+
jQuery('#disable-encoding').remove();
|
145 |
+
jQuery('#new-api-key').val('');
|
146 |
+
} else {
|
147 |
+
jQuery('#settings-error-encoding-disabled').remove();
|
148 |
+
jQuery('h2:first').after('<div class="error" id="settings-error-encoding-disabled"><p>' + rtmedia_admin_strings.something_went_wrong + '</p></div>');
|
149 |
+
}
|
150 |
+
});
|
151 |
+
}
|
152 |
+
});
|
153 |
+
|
154 |
+
jQuery('.bp-media-encoding-table').on('click', '.bpm-unsubscribe', function(e) {
|
155 |
+
e.preventDefault();
|
156 |
+
// var note=prompt(bp_media_admin_strings.reason_for_unsubscribe);
|
157 |
+
jQuery("#bpm-unsubscribe-dialog").dialog({
|
158 |
+
dialogClass: "wp-dialog",
|
159 |
+
modal: true,
|
160 |
+
buttons: {
|
161 |
+
Unsubscribe: function() {
|
162 |
+
jQuery(this).dialog("close");
|
163 |
+
jQuery('.bpm-unsubscribe').after('<img style="margin: 0 0 0 10px" src="' + rtmedia_admin_url + 'images/wpspin_light.gif" />')
|
164 |
+
var data = {
|
165 |
+
action: 'rtmedia_unsubscribe_encoding_service',
|
166 |
+
note: jQuery('#bpm-unsubscribe-note').val(),
|
167 |
+
plan: jQuery('.bpm-unsubscribe').attr('data-plan'),
|
168 |
+
price: jQuery('.bpm-unsubscribe').attr('data-price')
|
169 |
+
};
|
170 |
+
|
171 |
+
// since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
|
172 |
+
jQuery.getJSON(ajaxurl, data, function(response) {
|
173 |
+
if (response.error === undefined && response.updated) {
|
174 |
+
jQuery('.bpm-unsubscribe').next().remove();
|
175 |
+
jQuery('.bpm-unsubscribe').after(response.form);
|
176 |
+
jQuery('.bpm-unsubscribe').remove();
|
177 |
+
jQuery('#settings-unsubscribed-successfully').remove();
|
178 |
+
jQuery('#settings-unsubscribe-error').remove();
|
179 |
+
jQuery('h2:first').after('<div class="updated" id="settings-unsubscribed-successfully"><p>' + response.updated + '</p></div>');
|
180 |
+
window.location.hash = '#settings-unsubscribed-successfully';
|
181 |
+
} else {
|
182 |
+
jQuery('.bpm-unsubscribe').next().remove();
|
183 |
+
jQuery('#settings-unsubscribed-successfully').remove();
|
184 |
+
jQuery('#settings-unsubscribe-error').remove();
|
185 |
+
jQuery('h2:first').after('<div class="error" id="settings-unsubscribe-error"><p>' + response.error + '</p></div>');
|
186 |
+
window.location.hash = '#settings-unsubscribe-error';
|
187 |
+
}
|
188 |
+
});
|
189 |
+
}
|
190 |
+
}
|
191 |
+
});
|
192 |
+
|
193 |
+
});
|
194 |
+
|
195 |
+
function fireRequest(data) {
|
196 |
+
return jQuery.post(ajaxurl, data, function(response) {
|
197 |
+
if (response != 0) {
|
198 |
+
var redirect = false;
|
199 |
+
var progw = Math.ceil((((parseInt(response) * 20) + parseInt(data.values['finished'])) / parseInt(data.values['total'])) * 100);
|
200 |
+
if (progw > 100) {
|
201 |
+
progw = 100;
|
202 |
+
redirect = true
|
203 |
+
}
|
204 |
+
;
|
205 |
+
jQuery('#rtprogressbar>div').css('width', progw + '%');
|
206 |
+
finished = jQuery('#rtprivacyinstaller span.finished').html();
|
207 |
+
jQuery('#rtprivacyinstaller span.finished').html(parseInt(finished) + data.count);
|
208 |
+
if (redirect) {
|
209 |
+
jQuery.post(ajaxurl, {
|
210 |
+
action: 'rtmedia_privacy_redirect'
|
211 |
+
}, function(response) {
|
212 |
+
window.location = settings_url;
|
213 |
+
});
|
214 |
+
}
|
215 |
+
} else {
|
216 |
+
jQuery('#map_progress_msgs').html('<div class="map_mapping_failure">Row ' + response + ' failed.</div>');
|
217 |
+
}
|
218 |
+
});
|
219 |
+
}
|
220 |
+
|
221 |
+
jQuery('#bpmedia-bpalbumimporter').on('change', '#bp-album-import-accept', function() {
|
222 |
+
jQuery('.bp-album-import-accept').toggleClass('i-accept');
|
223 |
+
jQuery('.bp-album-importer-wizard').slideToggle();
|
224 |
+
});
|
225 |
+
|
226 |
+
jQuery('#rtprivacyinstall').click(function(e) {
|
227 |
+
e.preventDefault();
|
228 |
+
$progress_parent = jQuery('#rtprivacyinstaller');
|
229 |
+
$progress_parent.find('.rtprivacytype').each(function() {
|
230 |
+
$type = jQuery(this).attr('id');
|
231 |
+
if ($type == 'total') {
|
232 |
+
$values = [];
|
233 |
+
jQuery(this).find('input').each(function() {
|
234 |
+
|
235 |
+
$values [jQuery(this).attr('name')] = [jQuery(this).val()];
|
236 |
+
|
237 |
+
});
|
238 |
+
$data = {};
|
239 |
+
for (var i = 1; i <= $values['steps'][0]; i++) {
|
240 |
+
$count = 20;
|
241 |
+
if (i == $values['steps'][0]) {
|
242 |
+
$count = parseInt($values['laststep'][0]);
|
243 |
+
if ($count == 0) {
|
244 |
+
$count = 20
|
245 |
+
}
|
246 |
+
;
|
247 |
+
}
|
248 |
+
newvals = {
|
249 |
+
'page': i,
|
250 |
+
'action': 'rtmedia_privacy_install',
|
251 |
+
'count': $count,
|
252 |
+
'values': $values
|
253 |
+
}
|
254 |
+
$data[i] = newvals;
|
255 |
+
}
|
256 |
+
var $startingpoint = jQuery.Deferred();
|
257 |
+
$startingpoint.resolve();
|
258 |
+
jQuery.each($data, function(i, v) {
|
259 |
+
$startingpoint = $startingpoint.pipe(function() {
|
260 |
+
return fireRequest(v);
|
261 |
+
});
|
262 |
+
});
|
263 |
+
|
264 |
+
|
265 |
+
}
|
266 |
+
});
|
267 |
+
});
|
268 |
+
|
269 |
+
function fireimportRequest(data) {
|
270 |
+
return jQuery.getJSON(ajaxurl, data, function(response) {
|
271 |
+
favorites = false;
|
272 |
+
if (response) {
|
273 |
+
var redirect = false;
|
274 |
+
var media_progw = Math.ceil((((parseInt(response.page) * 5) + parseInt(data.values['finished'])) / parseInt(data.values['total'])) * 100);
|
275 |
+
comments_total = jQuery('#bpmedia-bpalbumimporter .bp-album-comments span.total').html();
|
276 |
+
users_total = jQuery('#bpmedia-bpalbumimporter .bp-album-users span.total').html();
|
277 |
+
media_total = jQuery('#bpmedia-bpalbumimporter .bp-album-media span.total').html();
|
278 |
+
comments_finished = jQuery('#bpmedia-bpalbumimporter .bp-album-comments span.finished').html();
|
279 |
+
users_finished = jQuery('#bpmedia-bpalbumimporter .bp-album-users span.finished').html();
|
280 |
+
var comments_progw = Math.ceil((((parseInt(response.comments)) + parseInt(comments_finished)) / parseInt(comments_total)) * 100);
|
281 |
+
var users_progw = Math.ceil((parseInt(response.users) / parseInt(users_total)) * 100);
|
282 |
+
if (media_progw > 100 || media_progw == 100) {
|
283 |
+
media_progw = 100;
|
284 |
+
favorites = true
|
285 |
+
}
|
286 |
+
;
|
287 |
+
jQuery('.bp-album-media #rtprogressbar>div').css('width', media_progw + '%');
|
288 |
+
jQuery('.bp-album-comments #rtprogressbar>div').css('width', comments_progw + '%');
|
289 |
+
jQuery('.bp-album-users #rtprogressbar>div').css('width', users_progw + '%');
|
290 |
+
media_finished = jQuery('#bpmedia-bpalbumimporter .bp-album-media span.finished').html();
|
291 |
+
if (parseInt(media_finished) < parseInt(media_total))
|
292 |
+
jQuery('#bpmedia-bpalbumimporter .bp-album-media span.finished').html(parseInt(media_finished) + data.count);
|
293 |
+
jQuery('#bpmedia-bpalbumimporter .bp-album-comments span.finished').html(parseInt(response.comments) + parseInt(comments_finished));
|
294 |
+
jQuery('#bpmedia-bpalbumimporter .bp-album-users span.finished').html(parseInt(response.users));
|
295 |
+
if (favorites) {
|
296 |
+
favorite_data = {
|
297 |
+
'action': 'rtmedia_rt_album_import_favorites'
|
298 |
+
}
|
299 |
+
jQuery.post(ajaxurl, favorite_data, function(response) {
|
300 |
+
if (response.favorites !== 0 || response.favorites !== '0') {
|
301 |
+
if (!jQuery('.bp-album-favorites').length)
|
302 |
+
jQuery('.bp-album-comments').after('<br /><div class="bp-album-favorites"><strong>User\'s Favorites: <span class="finished">0</span> / <span class="total">' + response.users + '</span></strong><div id="rtprogressbar"><div style="width:0%"></div></div></div>');
|
303 |
+
$favorites = {};
|
304 |
+
if (response.offset != 0 || response.offset != '0')
|
305 |
+
start = response.offset * 1 + 1;
|
306 |
+
else
|
307 |
+
start = 1
|
308 |
+
for (var i = start; i <= response.users; i++) {
|
309 |
+
$count = 1;
|
310 |
+
if (i == response.users) {
|
311 |
+
$count = parseInt(response.users % $count);
|
312 |
+
if ($count == 0) {
|
313 |
+
$count = 1;
|
314 |
+
}
|
315 |
+
}
|
316 |
+
|
317 |
+
newvals = {
|
318 |
+
'action': 'rtmedia_rt_album_import_step_favorites',
|
319 |
+
'offset': (i - 1) * 1,
|
320 |
+
'redirect': i == response.users
|
321 |
+
}
|
322 |
+
$favorites[i] = newvals;
|
323 |
+
}
|
324 |
+
var $startingpoint = jQuery.Deferred();
|
325 |
+
$startingpoint.resolve();
|
326 |
+
jQuery.each($favorites, function(i, v) {
|
327 |
+
$startingpoint = $startingpoint.pipe(function() {
|
328 |
+
return fireimportfavoriteRequest(v);
|
329 |
+
});
|
330 |
+
});
|
331 |
+
|
332 |
+
} else {
|
333 |
+
window.setTimeout(reload_url, 2000);
|
334 |
+
}
|
335 |
+
}, 'json');
|
336 |
+
}
|
337 |
+
} else {
|
338 |
+
jQuery('#map_progress_msgs').html('<div class="map_mapping_failure">Row ' + response.page + ' failed.</div>');
|
339 |
+
}
|
340 |
+
});
|
341 |
+
}
|
342 |
+
|
343 |
+
function fireimportfavoriteRequest(data) {
|
344 |
+
return jQuery.post(ajaxurl, data, function(response) {
|
345 |
+
redirect = false;
|
346 |
+
favorites_total = jQuery('#bpmedia-bpalbumimporter .bp-album-favorites span.total').html();
|
347 |
+
favorites_finished = jQuery('#bpmedia-bpalbumimporter .bp-album-favorites span.finished').html();
|
348 |
+
jQuery('#bpmedia-bpalbumimporter .bp-album-favorites span.finished').html(parseInt(favorites_finished) + 1);
|
349 |
+
var favorites_progw = Math.ceil((parseInt(favorites_finished + 1) / parseInt(favorites_total)) * 100);
|
350 |
+
if (favorites_progw > 100 || favorites_progw == 100) {
|
351 |
+
favorites_progw = 100;
|
352 |
+
redirect = true;
|
353 |
+
}
|
354 |
+
jQuery('.bp-album-favorites #rtprogressbar>div').css('width', favorites_progw + '%');
|
355 |
+
if (redirect) {
|
356 |
+
window.setTimeout(reload_url, 2000);
|
357 |
+
}
|
358 |
+
});
|
359 |
+
}
|
360 |
+
|
361 |
+
function reload_url() {
|
362 |
+
window.location = document.URL;
|
363 |
+
}
|
364 |
+
|
365 |
+
jQuery('#bpmedia-bpalbumimport-cleanup').click(function(e) {
|
366 |
+
e.preventDefault();
|
367 |
+
jQuery.post(ajaxurl, {
|
368 |
+
action: 'rtmedia_rt_album_cleanup'
|
369 |
+
}, function(response) {
|
370 |
+
window.location = settings_rt_album_import_url;
|
371 |
+
});
|
372 |
+
|
373 |
+
});
|
374 |
+
|
375 |
+
jQuery('#bpmedia-bpalbumimporter').on('click', '#bpmedia-bpalbumimport', function(e) {
|
376 |
+
e.preventDefault();
|
377 |
+
if (!jQuery('#bp-album-import-accept').prop('checked')) {
|
378 |
+
jQuery('html, body').animate({
|
379 |
+
scrollTop: jQuery('#bp-album-import-accept').offset().top
|
380 |
+
}, 500);
|
381 |
+
var $el = jQuery('.bp-album-import-accept'),
|
382 |
+
x = 500,
|
383 |
+
originalColor = '#FFEBE8',
|
384 |
+
i = 3; //counter
|
385 |
+
|
386 |
+
(function loop() { //recurisve IIFE
|
387 |
+
$el.css("background-color", "#EE0000");
|
388 |
+
setTimeout(function() {
|
389 |
+
$el.css("background-color", originalColor);
|
390 |
+
if (--i)
|
391 |
+
setTimeout(loop, x); //restart loop
|
392 |
+
}, x);
|
393 |
+
}());
|
394 |
+
return;
|
395 |
+
} else {
|
396 |
+
jQuery(this).prop('disabled', true);
|
397 |
+
}
|
398 |
+
wp_admin_url = ajaxurl.replace('admin-ajax.php', '');
|
399 |
+
if (!jQuery('.bpm-ajax-loader').length)
|
400 |
+
jQuery(this).after(' <img class="bpm-ajax-loader" src="' + wp_admin_url + 'images/wpspin_light.gif" /> <strong>' + rtmedia_admin_strings.no_refresh + '</strong>');
|
401 |
+
|
402 |
+
|
403 |
+
$progress_parent = jQuery('#bpmedia-bpalbumimport');
|
404 |
+
$values = [];
|
405 |
+
jQuery(this).parent().find('input').each(function() {
|
406 |
+
$values [jQuery(this).attr('name')] = [jQuery(this).val()];
|
407 |
+
|
408 |
+
});
|
409 |
+
|
410 |
+
if ($values['steps'][0] == 0)
|
411 |
+
$values['steps'][0] = 1;
|
412 |
+
|
413 |
+
$data = {};
|
414 |
+
for (var i = 1; i <= $values['steps'][0]; i++) {
|
415 |
+
$count = 5;
|
416 |
+
if (i == $values['steps'][0]) {
|
417 |
+
$count = parseInt($values['laststep'][0]);
|
418 |
+
if ($count == 0) {
|
419 |
+
$count = 5
|
420 |
+
}
|
421 |
+
;
|
422 |
+
}
|
423 |
+
newvals = {
|
424 |
+
'page': i,
|
425 |
+
'action': 'rtmedia_rt_album_import',
|
426 |
+
'count': $count,
|
427 |
+
'values': $values
|
428 |
+
}
|
429 |
+
$data[i] = newvals;
|
430 |
+
}
|
431 |
+
var $startingpoint = jQuery.Deferred();
|
432 |
+
$startingpoint.resolve();
|
433 |
+
jQuery.each($data, function(i, v) {
|
434 |
+
$startingpoint = $startingpoint.pipe(function() {
|
435 |
+
return fireimportRequest(v);
|
436 |
+
});
|
437 |
+
});
|
438 |
+
|
439 |
+
|
440 |
+
});
|
441 |
+
|
442 |
+
jQuery('#bp-media-settings-boxes').on('click', '.interested', function() {
|
443 |
+
jQuery('.interested-container').removeClass('hidden');
|
444 |
+
jQuery('.choice-free').attr('required', 'required');
|
445 |
+
});
|
446 |
+
jQuery('#bp-media-settings-boxes').on('click', '.not-interested', function() {
|
447 |
+
jQuery('.interested-container').addClass('hidden');
|
448 |
+
jQuery('.choice-free').removeAttr('required');
|
449 |
+
});
|
450 |
+
|
451 |
+
jQuery('#video-transcoding-main-container').on('click', '.video-transcoding-survey', function(e) {
|
452 |
+
e.preventDefault();
|
453 |
+
var data = {
|
454 |
+
action: 'rtmedia_convert_videos_form',
|
455 |
+
email: jQuery('.email').val(),
|
456 |
+
url: jQuery('.url').val(),
|
457 |
+
choice: jQuery('input[name="choice"]:checked').val(),
|
458 |
+
interested: jQuery('input[name="interested"]:checked').val()
|
459 |
+
}
|
460 |
+
jQuery.post(ajaxurl, data, function(response) {
|
461 |
+
jQuery('#video-transcoding-main-container').html('<p><strong>' + response + '</strong></p>');
|
462 |
+
});
|
463 |
+
return false;
|
464 |
+
});
|
465 |
+
|
466 |
+
jQuery('#bpmedia-bpalbumimporter').on('click', '.deactivate-bp-album', function(e) {
|
467 |
+
e.preventDefault();
|
468 |
+
$bpalbum = jQuery(this);
|
469 |
+
var data = {
|
470 |
+
action: 'rtmedia_rt_album_deactivate'
|
471 |
+
}
|
472 |
+
jQuery.get(ajaxurl, data, function(response) {
|
473 |
+
if (response)
|
474 |
+
location.reload();
|
475 |
+
else
|
476 |
+
$bpalbum.parent().after('<p>' + rtmedia_admin_strings.something_went_wrong + '</p>');
|
477 |
+
});
|
478 |
+
});
|
479 |
+
|
480 |
+
jQuery('.updated').on('click', '.bpm-hide-encoding-notice', function() {
|
481 |
+
jQuery(this).after('<img style="margin: 0 0 0 10px" src="' + rtmedia_admin_url + 'images/wpspin_light.gif" />');
|
482 |
+
var data = {
|
483 |
+
action: 'rtmedia_hide_encoding_notice'
|
484 |
+
}
|
485 |
+
jQuery.post(ajaxurl, data, function(response) {
|
486 |
+
if (response) {
|
487 |
+
jQuery('.bpm-hide-encoding-notice').closest('.updated').remove();
|
488 |
+
}
|
489 |
+
});
|
490 |
+
});
|
491 |
+
|
492 |
+
|
493 |
+
jQuery("#rtm-addons").sliderTabs({
|
494 |
+
autoplay: false,
|
495 |
+
mousewheel: false,
|
496 |
+
defaultTab: manageHash()
|
497 |
+
});
|
498 |
+
|
499 |
+
if (jQuery('#rtmedia-privacy-enable').is(":checked")) {
|
500 |
+
jQuery(".privacy-driven-disable label input").prop("disabled", false);
|
501 |
+
jQuery(".privacy-driven-disable label .rt-switch").bootstrapSwitch("setActive", true);
|
502 |
+
} else {
|
503 |
+
jQuery(".privacy-driven-disable label input").prop("disabled", true);
|
504 |
+
jQuery(".privacy-driven-disable label .rt-switch").bootstrapSwitch("setActive", false);
|
505 |
+
}
|
506 |
+
jQuery('#rtmedia-privacy-enable').on("click", function(e) {
|
507 |
+
if (jQuery(this).is(":checked")) {
|
508 |
+
jQuery(".privacy-driven-disable label input").prop("disabled", false);
|
509 |
+
jQuery(".privacy-driven-disable label .rt-switch").bootstrapSwitch("setActive", true);
|
510 |
+
} else {
|
511 |
+
jQuery(".privacy-driven-disable label input").prop("disabled", true);
|
512 |
+
jQuery(".privacy-driven-disable label .rt-switch").bootstrapSwitch("setActive", false);
|
513 |
+
}
|
514 |
+
});
|
515 |
+
|
516 |
+
var onData = '';
|
517 |
+
var offData = '';
|
518 |
+
if (rtmedia_on_label !== undefined)
|
519 |
+
onData = 'data-on-label="' + rtmedia_on_label + '"';
|
520 |
+
if (rtmedia_off_label !== undefined)
|
521 |
+
offData = 'data-off-label="' + rtmedia_off_label + '"';
|
522 |
+
jQuery("[data-toggle='switch']").wrap('<div class="rt-switch" ' + onData + ' ' + offData + ' />').parent().bootstrapSwitch();
|
523 |
+
|
524 |
+
try {
|
525 |
+
jQuery('.rtm-show-tooltip').powerTip({
|
526 |
+
followMouse: true
|
527 |
+
});
|
528 |
+
} catch (e) {
|
529 |
+
// no tooltip is defined
|
530 |
+
}
|
531 |
+
$(".rtmedia-tab-title").click(function() {
|
532 |
+
hash = $(this).attr('href');
|
533 |
+
window.location.hash = hash.substring(1, hash.length);
|
534 |
+
});
|
535 |
+
function manageHash() {
|
536 |
+
|
537 |
+
hash = window.location.hash;
|
538 |
+
$('#tab-' + hash.substr(1, hash.length)).click();
|
539 |
+
if ($('#tab-' + hash.substr(1, hash.length)).length < 1)
|
540 |
+
return 1;
|
541 |
+
return $('#tab-' + hash.substr(1, hash.length)).parent().index() + 1;
|
542 |
+
}
|
543 |
+
|
544 |
+
jQuery('#submit-request').click(function(){
|
545 |
+
var flag = true;
|
546 |
+
var name = jQuery('#name').val();
|
547 |
+
var email = jQuery('#email').val();
|
548 |
+
var website = jQuery('#website').val();
|
549 |
+
var phone = jQuery('#phone').val();
|
550 |
+
var subject = jQuery('#subject').val();
|
551 |
+
var details = jQuery('#details').val();
|
552 |
+
var request_type = jQuery('input[name="request_type"]').val();
|
553 |
+
var request_id = jQuery('input[name="request_id"]').val();
|
554 |
+
var server_address = jQuery('input[name="server_address"]').val();
|
555 |
+
var ip_address = jQuery('input[name="ip_address"]').val();
|
556 |
+
var server_type = jQuery('input[name="server_type"]').val();
|
557 |
+
var user_agent = jQuery('input[name="user_agent"]').val();
|
558 |
+
var form_data = { name : name, email : email, website : website, phone : phone, subject : subject, details : details, request_id : request_id, request_type: 'premium_support', server_address : server_address, ip_address : ip_address, server_type : server_type, user_agent : user_agent};
|
559 |
+
if(request_type == "bug_report") {
|
560 |
+
var wp_admin_username = jQuery('#wp_admin_username').val();
|
561 |
+
if(wp_admin_username == "") {
|
562 |
+
alert("Please enter WP Admin Login.");
|
563 |
+
return false;
|
564 |
+
}
|
565 |
+
var wp_admin_pwd = jQuery('#wp_admin_pwd').val();
|
566 |
+
if(wp_admin_pwd == "") {
|
567 |
+
alert("Please enter WP Admin password.");
|
568 |
+
return false;
|
569 |
+
}
|
570 |
+
var ssh_ftp_host = jQuery('#ssh_ftp_host').val();
|
571 |
+
if(ssh_ftp_host == "") {
|
572 |
+
alert("Please enter SSH / FTP host.");
|
573 |
+
return false;
|
574 |
+
}
|
575 |
+
var ssh_ftp_username = jQuery('#ssh_ftp_username').val();
|
576 |
+
if(ssh_ftp_username == "") {
|
577 |
+
alert("Please enter SSH / FTP login.");
|
578 |
+
return false;
|
579 |
+
}
|
580 |
+
var ssh_ftp_pwd = jQuery('#ssh_ftp_pwd').val();
|
581 |
+
if(ssh_ftp_pwd == "") {
|
582 |
+
alert("Please enter SSH / FTP password.");
|
583 |
+
return false;
|
584 |
+
}
|
585 |
+
form_data = { name : name, email : email, website : website, phone : phone, subject : subject, details : details, request_id : request_id, request_type: 'premium_support', server_address : server_address, ip_address : ip_address, server_type : server_type, user_agent : user_agent, wp_admin_username : wp_admin_username, wp_admin_pwd : wp_admin_pwd, ssh_ftp_host : ssh_ftp_host, ssh_ftp_username : ssh_ftp_username, ssh_ftp_pwd : ssh_ftp_pwd };
|
586 |
+
}
|
587 |
+
for(formdata in form_data) {
|
588 |
+
if(form_data[formdata] == "" && formdata != 'phone' ) {
|
589 |
+
alert("Please enter " + formdata.replace("_", " ") + " field.");
|
590 |
+
return false;
|
591 |
+
}
|
592 |
+
}
|
593 |
+
data = {
|
594 |
+
action: "rtmedia_submit_request",
|
595 |
+
form_data: form_data
|
596 |
+
};
|
597 |
+
jQuery.post(ajaxurl,data,function(data){
|
598 |
+
data = data.trim();
|
599 |
+
if(data == "false") {
|
600 |
+
alert("Please fill all the fields.");
|
601 |
+
return false;
|
602 |
+
}
|
603 |
+
$('#rtmedia_service_contact_container').empty();
|
604 |
+
$('#rtmedia_service_contact_container').append(data);
|
605 |
+
});
|
606 |
+
return false;
|
607 |
+
});
|
608 |
+
|
609 |
+
jQuery('#cancel-request').click(function(){
|
610 |
+
return false;
|
611 |
+
});
|
612 |
+
|
613 |
+
$(window).hashchange(function(e, data) {
|
614 |
+
e.preventDefault();
|
615 |
+
manageHash();
|
616 |
+
});
|
617 |
+
if(jQuery(document).foundation !== undefined)
|
618 |
+
jQuery(document).foundation('section');
|
619 |
+
});
|
trunk/app/assets/js/bootstrap-switch.js
ADDED
@@ -0,0 +1,255 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/* ============================================================
|
2 |
+
* bootstrapSwitch v1.3 by Larentis Mattia @spiritualGuru
|
3 |
+
* http://www.larentis.eu/switch/
|
4 |
+
* ============================================================
|
5 |
+
* Licensed under the Apache License, Version 2.0
|
6 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7 |
+
* ============================================================ */
|
8 |
+
|
9 |
+
!function ($) {
|
10 |
+
"use strict";
|
11 |
+
|
12 |
+
$.fn['bootstrapSwitch'] = function (method) {
|
13 |
+
var methods = {
|
14 |
+
init: function () {
|
15 |
+
return this.each(function () {
|
16 |
+
var $element = $(this)
|
17 |
+
, $div
|
18 |
+
, $switchLeft
|
19 |
+
, $switchRight
|
20 |
+
, $label
|
21 |
+
, myClasses = ""
|
22 |
+
, classes = $element.attr('class')
|
23 |
+
, color
|
24 |
+
, moving
|
25 |
+
, onLabel = "ON"
|
26 |
+
, offLabel = "OFF"
|
27 |
+
, icon = false;
|
28 |
+
|
29 |
+
$.each(['switch-mini', 'switch-small', 'switch-large'], function (i, el) {
|
30 |
+
if (classes.indexOf(el) >= 0)
|
31 |
+
myClasses = el;
|
32 |
+
});
|
33 |
+
|
34 |
+
$element.addClass('has-switch');
|
35 |
+
|
36 |
+
if ($element.data('on') !== undefined)
|
37 |
+
color = "switch-" + $element.data('on');
|
38 |
+
|
39 |
+
if ($element.data('on-label') !== undefined)
|
40 |
+
onLabel = $element.data('on-label');
|
41 |
+
|
42 |
+
if ($element.data('off-label') !== undefined)
|
43 |
+
offLabel = $element.data('off-label');
|
44 |
+
|
45 |
+
if ($element.data('icon') !== undefined)
|
46 |
+
icon = $element.data('icon');
|
47 |
+
|
48 |
+
$switchLeft = $('<span>')
|
49 |
+
.addClass("switch-left")
|
50 |
+
.addClass(myClasses)
|
51 |
+
.addClass(color)
|
52 |
+
.html(onLabel);
|
53 |
+
|
54 |
+
color = '';
|
55 |
+
if ($element.data('off') !== undefined)
|
56 |
+
color = "switch-" + $element.data('off');
|
57 |
+
|
58 |
+
$switchRight = $('<span>')
|
59 |
+
.addClass("switch-right")
|
60 |
+
.addClass(myClasses)
|
61 |
+
.addClass(color)
|
62 |
+
.html(offLabel);
|
63 |
+
|
64 |
+
$label = $('<label>')
|
65 |
+
.html(" ")
|
66 |
+
.addClass(myClasses)
|
67 |
+
.attr('for', $element.find('input').attr('id'));
|
68 |
+
|
69 |
+
if (icon) {
|
70 |
+
$label.html('<i class="' + icon + '"></i>');
|
71 |
+
}
|
72 |
+
|
73 |
+
$div = $element.find(':checkbox').wrap($('<div>')).parent().data('animated', false);
|
74 |
+
|
75 |
+
if ($element.data('animated') !== false)
|
76 |
+
$div.addClass('switch-animate').data('animated', true);
|
77 |
+
|
78 |
+
$div
|
79 |
+
.append($switchLeft)
|
80 |
+
.append($label)
|
81 |
+
.append($switchRight);
|
82 |
+
|
83 |
+
$element.find('>div').addClass(
|
84 |
+
$element.find('input').is(':checked') ? 'switch-on' : 'switch-off'
|
85 |
+
);
|
86 |
+
|
87 |
+
if ($element.find('input').is(':disabled'))
|
88 |
+
$(this).addClass('deactivate');
|
89 |
+
|
90 |
+
var changeStatus = function ($this) {
|
91 |
+
$($this).siblings('label').trigger('mousedown').trigger('mouseup').trigger('click');
|
92 |
+
};
|
93 |
+
|
94 |
+
$element.on('keydown', function (e) {
|
95 |
+
if (e.keyCode === 32) {
|
96 |
+
e.stopImmediatePropagation();
|
97 |
+
e.preventDefault();
|
98 |
+
changeStatus($(e.target).find('span:first'));
|
99 |
+
}
|
100 |
+
});
|
101 |
+
|
102 |
+
$switchLeft.on('click', function (e) {
|
103 |
+
changeStatus($(this));
|
104 |
+
});
|
105 |
+
|
106 |
+
$switchRight.on('click', function (e) {
|
107 |
+
changeStatus($(this));
|
108 |
+
});
|
109 |
+
|
110 |
+
$element.find('input').on('change', function (e) {
|
111 |
+
var $this = $(this)
|
112 |
+
, $element = $this.parent()
|
113 |
+
, thisState = $this.is(':checked')
|
114 |
+
, state = $element.is('.switch-off');
|
115 |
+
|
116 |
+
e.preventDefault();
|
117 |
+
|
118 |
+
$element.css('left', '');
|
119 |
+
|
120 |
+
if (state === thisState) {
|
121 |
+
|
122 |
+
if (thisState)
|
123 |
+
$element.removeClass('switch-off').addClass('switch-on');
|
124 |
+
else $element.removeClass('switch-on').addClass('switch-off');
|
125 |
+
|
126 |
+
if ($element.data('animated') !== false)
|
127 |
+
$element.addClass("switch-animate");
|
128 |
+
|
129 |
+
$element.parent().trigger('switch-change', {'el': $this, 'value': thisState})
|
130 |
+
}
|
131 |
+
});
|
132 |
+
|
133 |
+
$element.find('label').on('mousedown touchstart', function (e) {
|
134 |
+
var $this = $(this);
|
135 |
+
moving = false;
|
136 |
+
|
137 |
+
e.preventDefault();
|
138 |
+
e.stopImmediatePropagation();
|
139 |
+
|
140 |
+
$this.closest('div').removeClass('switch-animate');
|
141 |
+
|
142 |
+
if ($this.closest('.has-switch').is('.deactivate'))
|
143 |
+
$this.unbind('click');
|
144 |
+
else {
|
145 |
+
$this.on('mousemove touchmove', function (e) {
|
146 |
+
var $element = $(this).closest('.rt-switch')
|
147 |
+
, relativeX = (e.pageX || e.originalEvent.targetTouches[0].pageX) - $element.offset().left
|
148 |
+
, percent = (relativeX / $element.width()) * 100
|
149 |
+
, left = 25
|
150 |
+
, right = 75;
|
151 |
+
|
152 |
+
moving = true;
|
153 |
+
|
154 |
+
if (percent < left)
|
155 |
+
percent = left;
|
156 |
+
else if (percent > right)
|
157 |
+
percent = right;
|
158 |
+
|
159 |
+
$element.find('>div').css('left', (percent - right) + "%")
|
160 |
+
});
|
161 |
+
|
162 |
+
$this.on('click touchend', function (e) {
|
163 |
+
var $this = $(this)
|
164 |
+
, $target = $(e.target)
|
165 |
+
, $myCheckBox = $target.siblings('input');
|
166 |
+
|
167 |
+
e.stopImmediatePropagation();
|
168 |
+
e.preventDefault();
|
169 |
+
|
170 |
+
$this.unbind('mouseleave');
|
171 |
+
|
172 |
+
if (moving)
|
173 |
+
$myCheckBox.prop('checked', !(parseInt($this.parent().css('left')) < -25));
|
174 |
+
else $myCheckBox.prop("checked", !$myCheckBox.is(":checked"));
|
175 |
+
|
176 |
+
moving = false;
|
177 |
+
$myCheckBox.trigger('change');
|
178 |
+
});
|
179 |
+
|
180 |
+
$this.on('mouseleave', function (e) {
|
181 |
+
var $this = $(this)
|
182 |
+
, $myCheckBox = $this.siblings('input');
|
183 |
+
|
184 |
+
e.preventDefault();
|
185 |
+
e.stopImmediatePropagation();
|
186 |
+
|
187 |
+
$this.unbind('mouseleave');
|
188 |
+
$this.trigger('mouseup');
|
189 |
+
|
190 |
+
$myCheckBox.prop('checked', !(parseInt($this.parent().css('left')) < -25)).trigger('change');
|
191 |
+
});
|
192 |
+
|
193 |
+
$this.on('mouseup', function (e) {
|
194 |
+
e.stopImmediatePropagation();
|
195 |
+
e.preventDefault();
|
196 |
+
|
197 |
+
$(this).unbind('mousemove');
|
198 |
+
});
|
199 |
+
}
|
200 |
+
});
|
201 |
+
}
|
202 |
+
);
|
203 |
+
},
|
204 |
+
toggleActivation: function () {
|
205 |
+
$(this).toggleClass('deactivate');
|
206 |
+
},
|
207 |
+
isActive: function () {
|
208 |
+
return !$(this).hasClass('deactivate');
|
209 |
+
},
|
210 |
+
setActive: function (active) {
|
211 |
+
if (active)
|
212 |
+
$(this).removeClass('deactivate');
|
213 |
+
else $(this).addClass('deactivate');
|
214 |
+
},
|
215 |
+
toggleState: function (skipOnChange) {
|
216 |
+
var $input = $(this).find('input:checkbox');
|
217 |
+
$input.prop('checked', !$input.is(':checked')).trigger('change', skipOnChange);
|
218 |
+
},
|
219 |
+
setState: function (value, skipOnChange) {
|
220 |
+
$(this).find('input:checkbox').prop('checked', value).trigger('change', skipOnChange);
|
221 |
+
},
|
222 |
+
status: function () {
|
223 |
+
return $(this).find('input:checkbox').is(':checked');
|
224 |
+
},
|
225 |
+
destroy: function () {
|
226 |
+
var $div = $(this).find('div')
|
227 |
+
, $checkbox;
|
228 |
+
|
229 |
+
$div.find(':not(input:checkbox)').remove();
|
230 |
+
|
231 |
+
$checkbox = $div.children();
|
232 |
+
$checkbox.unwrap().unwrap();
|
233 |
+
|
234 |
+
$checkbox.unbind('change');
|
235 |
+
|
236 |
+
return $checkbox;
|
237 |
+
}
|
238 |
+
};
|
239 |
+
|
240 |
+
if (methods[method])
|
241 |
+
return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
|
242 |
+
else if (typeof method === 'object' || !method)
|
243 |
+
return methods.init.apply(this, arguments);
|
244 |
+
else
|
245 |
+
$.error('Method ' + method + ' does not exist!');
|
246 |
+
};
|
247 |
+
}(jQuery);
|
248 |
+
|
249 |
+
jQuery(function () {
|
250 |
+
jQuery('.rt-switch')['bootstrapSwitch']();
|
251 |
+
jQuery(document).on('click' ,'.switch-left,.switch-right',function(e){
|
252 |
+
jQuery(this).siblings('label').trigger('click');
|
253 |
+
})
|
254 |
+
|
255 |
+
});
|
trunk/app/assets/js/bp-media-activity-uploader.js
ADDED
@@ -0,0 +1,222 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/*
|
2 |
+
* To change this template, choose Tools | Templates
|
3 |
+
* and open the template in the editor.
|
4 |
+
*/
|
5 |
+
|
6 |
+
jQuery(document).ready(function(){
|
7 |
+
if ( jQuery('#bp-media-activity-upload-ui').length > 0 ) {
|
8 |
+
|
9 |
+
jQuery('#whats-new').off('focus');
|
10 |
+
jQuery('#whats-new').on('focus', function(){
|
11 |
+
jQuery("#whats-new-options").css('height','auto');
|
12 |
+
jQuery("form#whats-new-form textarea").animate({
|
13 |
+
height:'50px'
|
14 |
+
});
|
15 |
+
jQuery("#aw-whats-new-submit").prop("disabled", false);
|
16 |
+
});
|
17 |
+
|
18 |
+
jQuery("input#aw-whats-new-submit").off('click');
|
19 |
+
jQuery("input#aw-whats-new-submit").on('click',function() {
|
20 |
+
var button = jQuery(this);
|
21 |
+
var form = button.parent().parent().parent().parent();
|
22 |
+
|
23 |
+
form.children().each( function() {
|
24 |
+
if ( jQuery.nodeName(this, "textarea") || jQuery.nodeName(this, "input") )
|
25 |
+
jQuery(this).prop( 'disabled', true );
|
26 |
+
});
|
27 |
+
|
28 |
+
/* Remove any errors */
|
29 |
+
jQuery('div.error').remove();
|
30 |
+
button.addClass('loading');
|
31 |
+
button.prop('disabled', true);
|
32 |
+
|
33 |
+
/* Default POST values */
|
34 |
+
var object = '';
|
35 |
+
var item_id = jQuery("#whats-new-post-in").val();
|
36 |
+
var content = jQuery("#bp-media-dummy-update").val();
|
37 |
+
|
38 |
+
/* Set object for non-profile posts */
|
39 |
+
if ( item_id > 0 ) {
|
40 |
+
object = jQuery("#whats-new-post-object").val();
|
41 |
+
}
|
42 |
+
|
43 |
+
jQuery.post( ajaxurl, {
|
44 |
+
action: 'post_update',
|
45 |
+
'cookie': encodeURIComponent(document.cookie),
|
46 |
+
'_wpnonce_post_update': jQuery("input#_wpnonce_post_update").val(),
|
47 |
+
'content': content,
|
48 |
+
'object': object,
|
49 |
+
'item_id': item_id,
|
50 |
+
'_bp_as_nonce': jQuery('#_bp_as_nonce').val() || ''
|
51 |
+
},
|
52 |
+
function(response) {
|
53 |
+
|
54 |
+
form.children().each( function() {
|
55 |
+
if ( jQuery.nodeName(this, "textarea") || jQuery.nodeName(this, "input") ) {
|
56 |
+
jQuery(this).prop( 'disabled', false );
|
57 |
+
}
|
58 |
+
});
|
59 |
+
|
60 |
+
/* Check for errors and append if found. */
|
61 |
+
if ( response[0] + response[1] == '-1' ) {
|
62 |
+
form.prepend( response.substr( 2, response.length ) );
|
63 |
+
jQuery( 'form#' + form.attr('id') + ' div.error').hide().fadeIn( 200 );
|
64 |
+
} else {
|
65 |
+
if ( 0 == jQuery("ul.activity-list").length ) {
|
66 |
+
jQuery("div.error").slideUp(100).remove();
|
67 |
+
jQuery("div#message").slideUp(100).remove();
|
68 |
+
jQuery("div.activity").append( '<ul id="activity-stream" class="activity-list item-list">' );
|
69 |
+
}
|
70 |
+
|
71 |
+
jQuery("ul#activity-stream").prepend(response);
|
72 |
+
jQuery("ul#activity-stream li:first").addClass('new-update');
|
73 |
+
|
74 |
+
if ( 0 != jQuery("#latest-update").length ) {
|
75 |
+
var l = jQuery("ul#activity-stream li.new-update .activity-content .activity-inner p").html();
|
76 |
+
var v = jQuery("ul#activity-stream li.new-update .activity-content .activity-header p a.view").attr('href');
|
77 |
+
|
78 |
+
var ltext = jQuery("ul#activity-stream li.new-update .activity-content .activity-inner p").text();
|
79 |
+
|
80 |
+
var u = '';
|
81 |
+
if ( ltext != '' )
|
82 |
+
u = l + ' ';
|
83 |
+
|
84 |
+
u += '<a href="' + v + '" rel="nofollow">' + BP_DTheme.view + '</a>';
|
85 |
+
|
86 |
+
jQuery("#latest-update").slideUp(300,function(){
|
87 |
+
jQuery("#latest-update").html( u );
|
88 |
+
jQuery("#latest-update").slideDown(300);
|
89 |
+
});
|
90 |
+
}
|
91 |
+
|
92 |
+
jQuery("li.new-update").hide().slideDown( 300 );
|
93 |
+
jQuery("li.new-update").removeClass( 'new-update' );
|
94 |
+
jQuery("textarea#whats-new").val('');
|
95 |
+
}
|
96 |
+
|
97 |
+
jQuery("#whats-new-options").animate({
|
98 |
+
height:'0px'
|
99 |
+
});
|
100 |
+
jQuery("form#whats-new-form textarea").animate({
|
101 |
+
height:'20px'
|
102 |
+
});
|
103 |
+
jQuery("#aw-whats-new-submit").prop("disabled", true).removeClass('loading');
|
104 |
+
});
|
105 |
+
|
106 |
+
return false;
|
107 |
+
});
|
108 |
+
|
109 |
+
$dummy_update_box = jQuery('<input id="bp-media-dummy-update" type="hidden" name="whats-new" />');
|
110 |
+
$update_container = jQuery('#whats-new-textarea');
|
111 |
+
$update_container.append($dummy_update_box);
|
112 |
+
|
113 |
+
jQuery('#whats-new').on('keyup',function(){
|
114 |
+
$this = jQuery(this);
|
115 |
+
$that = jQuery('#bp-media-update-text');
|
116 |
+
$that.val($this.val()).change();
|
117 |
+
});
|
118 |
+
jQuery('#bp-media-update-text').on('change',function(){
|
119 |
+
bp_media_overwrite();
|
120 |
+
});
|
121 |
+
jQuery('#bp-media-update-json').on('change',function(){
|
122 |
+
bp_media_overwrite();
|
123 |
+
});
|
124 |
+
|
125 |
+
$bp_media_activity_is_multiple_upload = false;
|
126 |
+
$bp_media_activity_uploader=new plupload.Uploader(bp_media_uploader_params);
|
127 |
+
$bp_media_activity_album_selected = false;
|
128 |
+
$bp_media_activity_uploader.init();
|
129 |
+
|
130 |
+
$bp_media_activity_uploader.bind('FilesAdded', function(up, files) {
|
131 |
+
//bp_media_is_multiple_upload = files.length==1&&jQuery('.bp-media-progressbar').length==0?false:true;
|
132 |
+
$bp_media_activity_is_multiple_upload = files.length>1;
|
133 |
+
jQuery.each(files, function(i, file) {
|
134 |
+
$bp_media_activity_extension = file.name.substr( (file.name.lastIndexOf('.') +1) );
|
135 |
+
jQuery('#bp-media-activity-uploaded-files').append('<div id="bp-media-activity-progress-'+file.id+'" class="bp-media-progressbar"><div class="bp-media-progress-text">' + file.name + ' (' + plupload.formatSize(file.size) + ')(<b>0%</b>)</div><div class="bp-media-progress-completed"></div></div>');
|
136 |
+
});
|
137 |
+
// bp_media_activity_album_selected = jQuery('#bp-media-activity-selected-album').val();
|
138 |
+
$bp_media_activity_album_selected = default_album;
|
139 |
+
$bp_media_activity_uploader.start();
|
140 |
+
up.refresh(); // Reposition Flash/Silverlight
|
141 |
+
});
|
142 |
+
$bp_media_activity_uploader.bind('UploadProgress', function(up, file) {
|
143 |
+
jQuery('input#aw-whats-new-submit').prop('disabled',true).addClass('loading');
|
144 |
+
jQuery('#bp-media-activity-progress-'+file.id+' .bp-media-progress-completed').width(file.percent+'%');
|
145 |
+
jQuery('#bp-media-activity-progress-'+file.id+' .bp-media-progress-text b').html(file.percent+'%');
|
146 |
+
});
|
147 |
+
|
148 |
+
$bp_media_activity_uploader.bind('Error', function(up, err) {
|
149 |
+
jQuery('#bp-media-activity-uploaded-files').html('<div class="error"><p>Error: ' + err.code +
|
150 |
+
', Message: ' + err.message +
|
151 |
+
(err.file ? ', File: ' + err.file.name : '') +
|
152 |
+
'</p></div>'
|
153 |
+
);
|
154 |
+
up.refresh();
|
155 |
+
});
|
156 |
+
$bp_media_activity_uploader.bind('FileUploaded', function(up, file,response) {
|
157 |
+
jQuery('#bp-media-activity-progress-'+file.id+' .bp-media-progress-text b').html("100%");
|
158 |
+
$album_arr = [];
|
159 |
+
$val = jQuery('#bp-media-update-json').val();
|
160 |
+
if($val!=''){
|
161 |
+
$album_arr= JSON.parse($val);
|
162 |
+
}
|
163 |
+
$album_arr.push(parseInt(response.response));
|
164 |
+
$album_json =JSON.stringify($album_arr);
|
165 |
+
jQuery('#bp-media-update-json').val($album_json).change();
|
166 |
+
jQuery('#aw-whats-new-submit').prop('disabled',false).removeClass('loading');
|
167 |
+
|
168 |
+
});
|
169 |
+
$bp_media_activity_uploader.bind('BeforeUpload',function(up){
|
170 |
+
up.settings.multipart_params.is_multiple_upload = $bp_media_activity_is_multiple_upload;
|
171 |
+
up.settings.multipart_params.bp_media_album_id = $bp_media_activity_album_selected;
|
172 |
+
up.settings.multipart_params.is_activity = true;
|
173 |
+
});
|
174 |
+
//jQuery("#aw-whats-new-submit").off( 'click');
|
175 |
+
|
176 |
+
jQuery("#aw-whats-new-submit").on( 'click', function() {
|
177 |
+
$latest = '';
|
178 |
+
$val = bp_media_stringify();
|
179 |
+
jQuery("#bp-media-dummy-update").val('');
|
180 |
+
jQuery("#bp-media-update-json").val('');
|
181 |
+
jQuery("#bp-media-update-txt").val('');
|
182 |
+
jQuery("#bp-media-activity-uploaded-files").empty();
|
183 |
+
setTimeout(function(){
|
184 |
+
if($val!=''){
|
185 |
+
$album_arr= JSON.parse($val);
|
186 |
+
$lastid = parseInt($album_arr.length) - 1;
|
187 |
+
$media_id = $album_arr[parseInt($lastid)];
|
188 |
+
$activity = (jQuery('#activity-stream').find('li').first().attr('id')).split('-');
|
189 |
+
$activity_id = $activity[1];
|
190 |
+
var data = {
|
191 |
+
action: 'bp_media_get_latest_activity',
|
192 |
+
content : $val,
|
193 |
+
id: $activity_id
|
194 |
+
};
|
195 |
+
jQuery.get(ajaxurl,data,function(response){
|
196 |
+
$latest = response;
|
197 |
+
jQuery('#latest-update').html($latest);
|
198 |
+
});
|
199 |
+
}
|
200 |
+
},1000);
|
201 |
+
});
|
202 |
+
|
203 |
+
$bp_media_activity_uploader.bind('UploadComplete',function(response){
|
204 |
+
|
205 |
+
});
|
206 |
+
}
|
207 |
+
|
208 |
+
|
209 |
+
function bp_media_stringify(){
|
210 |
+
$album_json = jQuery('#bp-media-update-json').val();
|
211 |
+
$update_txt = jQuery('#bp-media-update-text').val();
|
212 |
+
$activity = {
|
213 |
+
'media':$album_json,
|
214 |
+
'update_txt':encodeURIComponent($update_txt)
|
215 |
+
};
|
216 |
+
return JSON.stringify($activity);
|
217 |
+
}
|
218 |
+
|
219 |
+
function bp_media_overwrite(){
|
220 |
+
jQuery('#bp-media-dummy-update').val(bp_media_stringify());
|
221 |
+
}
|
222 |
+
});
|
trunk/app/assets/js/bp-media-uploader.js
ADDED
@@ -0,0 +1,119 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/*
|
2 |
+
* To change this template, choose Tools | Templates
|
3 |
+
* and open the template in the editor.
|
4 |
+
*/
|
5 |
+
|
6 |
+
jQuery(document).ready(function(){
|
7 |
+
|
8 |
+
var selected = jQuery('#bp-media-album-prompt select').val();
|
9 |
+
var in_list = 0;
|
10 |
+
if(jQuery('#'+bp_media_uploader_params.container).length==0)
|
11 |
+
return false;
|
12 |
+
if ( jQuery('#bp-media-album-prompt p').css('display') == 'none' )
|
13 |
+
in_list = 1;
|
14 |
+
jQuery('#bp-media-album-prompt select').change(function() {
|
15 |
+
if ( jQuery(this).val() == 'create_new' ) {
|
16 |
+
jQuery('#bp-media-album-prompt select').hide();
|
17 |
+
jQuery('#bp-media-album-prompt p').hide();
|
18 |
+
jQuery('#bp-media-album-prompt div.hide').show();
|
19 |
+
} else
|
20 |
+
selected = jQuery(this).val();
|
21 |
+
});
|
22 |
+
var new_album_flag = 0;
|
23 |
+
jQuery('#btn-create-new').click(function(){
|
24 |
+
if ( new_album_flag == 1 ) {
|
25 |
+
return false;
|
26 |
+
}
|
27 |
+
var new_album_name = jQuery('#bp_media_album_new').val();
|
28 |
+
if(new_album_name.length==0){
|
29 |
+
alert(bp_media_uploader_strings.no_name);
|
30 |
+
return false;
|
31 |
+
} else {
|
32 |
+
new_album_flag = 1;
|
33 |
+
jQuery(this).val('Wait');
|
34 |
+
var data = {
|
35 |
+
action: 'bp_media_add_album',
|
36 |
+
bp_media_album_name : new_album_name,
|
37 |
+
bp_media_group_id : bp_media_uploader_params.multipart_params.bp_media_group_id
|
38 |
+
};
|
39 |
+
jQuery.post(bp_media_vars.ajaxurl,data,function(response){
|
40 |
+
var album = parseInt(response);
|
41 |
+
if(album == 0){
|
42 |
+
alert(bp_media_uploader_strings.cant_upload_group_album);
|
43 |
+
} else {
|
44 |
+
jQuery('#bp-media-album-prompt select option').removeAttr('selected');
|
45 |
+
jQuery('#bp-media-selected-album').prepend('<option value='+album+' selected="selected">'+new_album_name+'</option>');
|
46 |
+
jQuery('#bp-media-album-prompt div.hide').hide();
|
47 |
+
jQuery('#bp-media-album-prompt select').show();
|
48 |
+
if ( in_list == 0 )
|
49 |
+
jQuery('#bp-media-album-prompt p').show();
|
50 |
+
}
|
51 |
+
});
|
52 |
+
}
|
53 |
+
});
|
54 |
+
jQuery('#btn-create-cancel').click(function(){
|
55 |
+
jQuery('#bp-media-album-prompt div.hide').hide();
|
56 |
+
jQuery('#bp-media-album-prompt select option').removeAttr('selected');
|
57 |
+
jQuery('#bp-media-album-prompt select option[value=' + selected + ']').attr('selected', 'selected');
|
58 |
+
jQuery('#bp-media-album-prompt select').show();
|
59 |
+
if ( in_list == 0 )
|
60 |
+
jQuery('#bp-media-album-prompt p').show();
|
61 |
+
});
|
62 |
+
|
63 |
+
//Normal Uplaoder
|
64 |
+
var bp_media_is_multiple_upload = false;
|
65 |
+
var bp_media_uploader=new plupload.Uploader(bp_media_uploader_params);
|
66 |
+
var bp_media_album_selected = false;
|
67 |
+
bp_media_uploader.init();
|
68 |
+
|
69 |
+
bp_media_uploader.bind('FilesAdded', function(up, files) {
|
70 |
+
if ( jQuery('#bp-media-selected-album').val() == 'create_new' ) {
|
71 |
+
alert(bp_media_uploader_strings.select_album);
|
72 |
+
return false;
|
73 |
+
}
|
74 |
+
//bp_media_is_multiple_upload = files.length==1&&jQuery('.bp-media-progressbar').length==0?false:true;
|
75 |
+
bp_media_is_multiple_upload = files.length>1;
|
76 |
+
jQuery.each(files, function(i, file) {
|
77 |
+
var extension = file.name.substr( (file.name.lastIndexOf('.') +1) );
|
78 |
+
jQuery('#bp-media-uploaded-files').append('<div id="bp-media-progress-'+file.id+'" class="bp-media-progressbar"><div class="bp-media-progress-text">' + file.name + ' (' + plupload.formatSize(file.size) + ')(<b>0%</b>)</div><div class="bp-media-progress-completed"></div></div>');
|
79 |
+
});
|
80 |
+
bp_media_album_selected = jQuery('#bp-media-selected-album').val();
|
81 |
+
bp_media_uploader.start();
|
82 |
+
up.refresh(); // Reposition Flash/Silverlight
|
83 |
+
});
|
84 |
+
bp_media_uploader.bind('UploadProgress', function(up, file) {
|
85 |
+
jQuery('#bp-media-progress-'+file.id+' .bp-media-progress-completed').width(file.percent+'%');
|
86 |
+
jQuery('#bp-media-progress-'+file.id+' .bp-media-progress-text b').html(file.percent+'%');
|
87 |
+
});
|
88 |
+
|
89 |
+
bp_media_uploader.bind('Error', function(up, err) {
|
90 |
+
jQuery('#bp-media-uploaded-files').html('<div class="error"><p>Error: ' + err.code +
|
91 |
+
', Message: ' + err.message +
|
92 |
+
(err.file ? ', File: ' + err.file.name : '') +
|
93 |
+
'</p></div>'
|
94 |
+
);
|
95 |
+
up.refresh();
|
96 |
+
});
|
97 |
+
|
98 |
+
bp_media_uploader.bind('FileUploaded', function(up, file) {
|
99 |
+
jQuery('#bp-media-progress-'+file.id+' .bp-media-progress-text b').html("100%");
|
100 |
+
});
|
101 |
+
bp_media_uploader.bind('BeforeUpload',function(up){
|
102 |
+
up.settings.multipart_params.is_multiple_upload = bp_media_is_multiple_upload;
|
103 |
+
up.settings.multipart_params.bp_media_album_id = bp_media_album_selected;
|
104 |
+
});
|
105 |
+
bp_media_uploader.bind('UploadComplete',function(){
|
106 |
+
var new_location = window.location.href;
|
107 |
+
if(new_location.search('/upload/')>0){
|
108 |
+
new_location = new_location.replace('/upload/','/albums/');
|
109 |
+
if(bp_media_album_selected>0)
|
110 |
+
new_location = new_location.concat(bp_media_album_selected);
|
111 |
+
else
|
112 |
+
new_location = new_location.concat('0/');
|
113 |
+
window.location.replace(new_location);
|
114 |
+
} else
|
115 |
+
location.reload(true);
|
116 |
+
});
|
117 |
+
|
118 |
+
|
119 |
+
});
|
trunk/app/assets/js/jquery.observehashchange.pack.js
ADDED
@@ -0,0 +1,20 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/**
|
2 |
+
* jQuery.observeHashChange (Version: 1.0)
|
3 |
+
*
|
4 |
+
* http://finnlabs.github.com/jquery.observehashchange/
|
5 |
+
*
|
6 |
+
* Copyright (c) 2009, Gregor Schmidt, Finn GmbH
|
7 |
+
*
|
8 |
+
* Permission is hereby granted, free of charge, to any person obtaining a
|
9 |
+
* copy of this software and associated documentation files (the "Software"),
|
10 |
+
* to deal in the Software without restriction, including without limitation
|
11 |
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
12 |
+
* and/or sell copies of the Software, and to permit persons to whom the
|
13 |
+
* Software is furnished to do so, subject to the following conditions:
|
14 |
+
*
|
15 |
+
* The above copyright notice and this permission notice shall be included in
|
16 |
+
* all copies or substantial portions of the Software.
|
17 |
+
*
|
18 |
+
**/
|
19 |
+
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2($){$.i.h=2(i){$(a).w("d.h",i);s x};$.f=2(j){4 5=$.y({},$.f.r,j);9(m()){l()}v{t(5)}};4 1=c;4 b=c;4 3=0;$.f.r={3:D};2 m(){s E a.k!==\'C\'}2 l(){1=7.6.8;a.k=n}2 n(e,B){4 g=1;1=7.6.8;$(a).q("d.h",{u:g,o:1})}2 t(5){9(1==c){1=7.6.8}9(b!=c){z(b)}9(3!=5.3){b=A(p,5.3);3=5.3}}2 p(){9(1!=7.6.8){4 g=1;1=7.6.8;$(a).q("d.h",{u:g,o:1})}}$.f()})(d);',41,41,'|locationHash|function|interval|var|opts|location|document|hash|if|window|functionStore|null|jQuery||observeHashChange|oldHash|hashchange|fn|options|onhashchange|nativeVersion|isHashChangeEventSupported|onhashchangeHandler|after|checkLocationHash|trigger|defaults|return|setIntervalVersion|before|else|bind|this|extend|clearInterval|setInterval|data|undefined|500|typeof'.split('|'),0,{}))
|
20 |
+
|
trunk/app/assets/js/jquery.powertip.min.js
ADDED
@@ -0,0 +1,8 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/*!
|
2 |
+
PowerTip - v1.2.0 - 2013-04-03
|
3 |
+
http://stevenbenner.github.com/jquery-powertip/
|
4 |
+
Copyright (c) 2013 Steven Benner (http://stevenbenner.com/).
|
5 |
+
Released under MIT license.
|
6 |
+
https://raw.github.com/stevenbenner/jquery-powertip/master/LICENSE.txt
|
7 |
+
*/
|
8 |
+
(function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){function t(){var t=this;t.top="auto",t.left="auto",t.right="auto",t.bottom="auto",t.set=function(o,n){e.isNumeric(n)&&(t[o]=Math.round(n))}}function o(e,t,o){function n(n,i){r(),e.data(v)||(n?(i&&e.data(m,!0),o.showTip(e)):(P.tipOpenImminent=!0,l=setTimeout(function(){l=null,s()},t.intentPollInterval)))}function i(n){r(),P.tipOpenImminent=!1,e.data(v)&&(e.data(m,!1),n?o.hideTip(e):(P.delayInProgress=!0,l=setTimeout(function(){l=null,o.hideTip(e),P.delayInProgress=!1},t.closeDelay)))}function s(){var i=Math.abs(P.previousX-P.currentX),s=Math.abs(P.previousY-P.currentY),r=i+s;t.intentSensitivity>r?o.showTip(e):(P.previousX=P.currentX,P.previousY=P.currentY,n())}function r(){l=clearTimeout(l),P.delayInProgress=!1}function a(){o.resetPosition(e)}var l=null;this.show=n,this.hide=i,this.cancel=r,this.resetPosition=a}function n(){function e(e,i,r,a,l){var p,c=i.split("-")[0],u=new t;switch(p=s(e)?n(e,c):o(e,c),i){case"n":u.set("left",p.left-r/2),u.set("bottom",P.windowHeight-p.top+l);break;case"e":u.set("left",p.left+l),u.set("top",p.top-a/2);break;case"s":u.set("left",p.left-r/2),u.set("top",p.top+l);break;case"w":u.set("top",p.top-a/2),u.set("right",P.windowWidth-p.left+l);break;case"nw":u.set("bottom",P.windowHeight-p.top+l),u.set("right",P.windowWidth-p.left-20);break;case"nw-alt":u.set("left",p.left),u.set("bottom",P.windowHeight-p.top+l);break;case"ne":u.set("left",p.left-20),u.set("bottom",P.windowHeight-p.top+l);break;case"ne-alt":u.set("bottom",P.windowHeight-p.top+l),u.set("right",P.windowWidth-p.left);break;case"sw":u.set("top",p.top+l),u.set("right",P.windowWidth-p.left-20);break;case"sw-alt":u.set("left",p.left),u.set("top",p.top+l);break;case"se":u.set("left",p.left-20),u.set("top",p.top+l);break;case"se-alt":u.set("top",p.top+l),u.set("right",P.windowWidth-p.left)}return u}function o(e,t){var o,n,i=e.offset(),s=e.outerWidth(),r=e.outerHeight();switch(t){case"n":o=i.left+s/2,n=i.top;break;case"e":o=i.left+s,n=i.top+r/2;break;case"s":o=i.left+s/2,n=i.top+r;break;case"w":o=i.left,n=i.top+r/2;break;case"nw":o=i.left,n=i.top;break;case"ne":o=i.left+s,n=i.top;break;case"sw":o=i.left,n=i.top+r;break;case"se":o=i.left+s,n=i.top+r}return{top:n,left:o}}function n(e,t){function o(){d.push(p.matrixTransform(u))}var n,i,s,r,a=e.closest("svg")[0],l=e[0],p=a.createSVGPoint(),c=l.getBBox(),u=l.getScreenCTM(),f=c.width/2,w=c.height/2,d=[],h=["nw","n","ne","e","se","s","sw","w"];if(p.x=c.x,p.y=c.y,o(),p.x+=f,o(),p.x+=f,o(),p.y+=w,o(),p.y+=w,o(),p.x-=f,o(),p.x-=f,o(),p.y-=w,o(),d[0].y!==d[1].y||d[0].x!==d[7].x)for(i=Math.atan2(u.b,u.a)*O,s=Math.ceil((i%360-22.5)/45),1>s&&(s+=8);s--;)h.push(h.shift());for(r=0;d.length>r;r++)if(h[r]===t){n=d[r];break}return{top:n.y+P.scrollTop,left:n.x+P.scrollLeft}}this.compute=e}function i(o){function i(e){e.data(v,!0),O.queue(function(t){s(e),t()})}function s(e){var t;if(e.data(v)){if(P.isTipOpen)return P.isClosing||r(P.activeHover),O.delay(100).queue(function(t){s(e),t()}),void 0;e.trigger("powerTipPreRender"),t=p(e),t&&(O.empty().append(t),e.trigger("powerTipRender"),P.activeHover=e,P.isTipOpen=!0,O.data(g,o.mouseOnToPopup),o.followMouse?a():(b(e),P.isFixedTipOpen=!0),O.fadeIn(o.fadeInTime,function(){P.desyncTimeout||(P.desyncTimeout=setInterval(H,500)),e.trigger("powerTipOpen")}))}}function r(e){P.isClosing=!0,P.activeHover=null,P.isTipOpen=!1,P.desyncTimeout=clearInterval(P.desyncTimeout),e.data(v,!1),e.data(m,!1),O.fadeOut(o.fadeOutTime,function(){var n=new t;P.isClosing=!1,P.isFixedTipOpen=!1,O.removeClass(),n.set("top",P.currentY+o.offset),n.set("left",P.currentX+o.offset),O.css(n),e.trigger("powerTipClose")})}function a(){if(!P.isFixedTipOpen&&(P.isTipOpen||P.tipOpenImminent&&O.data(T))){var e,n,i=O.outerWidth(),s=O.outerHeight(),r=new t;r.set("top",P.currentY+o.offset),r.set("left",P.currentX+o.offset),e=c(r,i,s),e!==I.none&&(n=u(e),1===n?e===I.right?r.set("left",P.windowWidth-i):e===I.bottom&&r.set("top",P.scrollTop+P.windowHeight-s):(r.set("left",P.currentX-i-o.offset),r.set("top",P.currentY-s-o.offset))),O.css(r)}}function b(t){var n,i;o.smartPlacement?(n=e.fn.powerTip.smartPlacementLists[o.placement],e.each(n,function(e,o){var n=c(y(t,o),O.outerWidth(),O.outerHeight());return i=o,n===I.none?!1:void 0})):(y(t,o.placement),i=o.placement),O.addClass(i)}function y(e,n){var i,s,r=0,a=new t;a.set("top",0),a.set("left",0),O.css(a);do i=O.outerWidth(),s=O.outerHeight(),a=k.compute(e,n,i,s,o.offset),O.css(a);while(5>=++r&&(i!==O.outerWidth()||s!==O.outerHeight()));return a}function H(){var e=!1;!P.isTipOpen||P.isClosing||P.delayInProgress||(P.activeHover.data(v)===!1||P.activeHover.is(":disabled")?e=!0:l(P.activeHover)||P.activeHover.is(":focus")||P.activeHover.data(m)||(O.data(g)?l(O)||(e=!0):e=!0),e&&r(P.activeHover))}var k=new n,O=e("#"+o.popupId);0===O.length&&(O=e("<div/>",{id:o.popupId}),0===d.length&&(d=e("body")),d.append(O)),o.followMouse&&(O.data(T)||(f.on("mousemove",a),w.on("scroll",a),O.data(T,!0))),o.mouseOnToPopup&&O.on({mouseenter:function(){O.data(g)&&P.activeHover&&P.activeHover.data(h).cancel()},mouseleave:function(){P.activeHover&&P.activeHover.data(h).hide()}}),this.showTip=i,this.hideTip=r,this.resetPosition=b}function s(e){return window.SVGElement&&e[0]instanceof SVGElement}function r(){P.mouseTrackingActive||(P.mouseTrackingActive=!0,e(function(){P.scrollLeft=w.scrollLeft(),P.scrollTop=w.scrollTop(),P.windowWidth=w.width(),P.windowHeight=w.height()}),f.on("mousemove",a),w.on({resize:function(){P.windowWidth=w.width(),P.windowHeight=w.height()},scroll:function(){var e=w.scrollLeft(),t=w.scrollTop();e!==P.scrollLeft&&(P.currentX+=e-P.scrollLeft,P.scrollLeft=e),t!==P.scrollTop&&(P.currentY+=t-P.scrollTop,P.scrollTop=t)}}))}function a(e){P.currentX=e.pageX,P.currentY=e.pageY}function l(e){var t=e.offset(),o=e[0].getBoundingClientRect(),n=o.right-o.left,i=o.bottom-o.top;return P.currentX>=t.left&&P.currentX<=t.left+n&&P.currentY>=t.top&&P.currentY<=t.top+i}function p(t){var o,n,i=t.data(y),s=t.data(H),r=t.data(k);return i?(e.isFunction(i)&&(i=i.call(t[0])),n=i):s?(e.isFunction(s)&&(s=s.call(t[0])),s.length>0&&(n=s.clone(!0,!0))):r&&(o=e("#"+r),o.length>0&&(n=o.html())),n}function c(e,t,o){var n=P.scrollTop,i=P.scrollLeft,s=n+P.windowHeight,r=i+P.windowWidth,a=I.none;return(n>e.top||n>Math.abs(e.bottom-P.windowHeight)-o)&&(a|=I.top),(e.top+o>s||Math.abs(e.bottom-P.windowHeight)>s)&&(a|=I.bottom),(i>e.left||e.right+t>r)&&(a|=I.left),(e.left+t>r||i>e.right)&&(a|=I.right),a}function u(e){for(var t=0;e;)e&=e-1,t++;return t}var f=e(document),w=e(window),d=e("body"),h="displayController",v="hasActiveHover",m="forcedOpen",T="hasMouseMove",g="mouseOnToPopup",b="originalTitle",y="powertip",H="powertipjq",k="powertiptarget",O=180/Math.PI,P={isTipOpen:!1,isFixedTipOpen:!1,isClosing:!1,tipOpenImminent:!1,activeHover:null,currentX:0,currentY:0,previousX:0,previousY:0,desyncTimeout:null,mouseTrackingActive:!1,delayInProgress:!1,windowWidth:0,windowHeight:0,scrollTop:0,scrollLeft:0},I={none:0,top:1,bottom:2,left:4,right:8};e.fn.powerTip=function(t,n){if(!this.length)return this;if("string"===e.type(t)&&e.powerTip[t])return e.powerTip[t].call(this,this,n);var s=e.extend({},e.fn.powerTip.defaults,t),a=new i(s);return r(),this.each(function(){var t,n=e(this),i=n.data(y),r=n.data(H),l=n.data(k);n.data(h)&&e.powerTip.destroy(n),t=n.attr("title"),i||l||r||!t||(n.data(y,t),n.data(b,t),n.removeAttr("title")),n.data(h,new o(n,s,a))}),s.manual||this.on({"mouseenter.powertip":function(t){e.powerTip.show(this,t)},"mouseleave.powertip":function(){e.powerTip.hide(this)},"focus.powertip":function(){e.powerTip.show(this)},"blur.powertip":function(){e.powerTip.hide(this,!0)},"keydown.powertip":function(t){27===t.keyCode&&e.powerTip.hide(this,!0)}}),this},e.fn.powerTip.defaults={fadeInTime:200,fadeOutTime:100,followMouse:!1,popupId:"powerTip",intentSensitivity:7,intentPollInterval:100,closeDelay:100,placement:"n",smartPlacement:!1,offset:10,mouseOnToPopup:!1,manual:!1},e.fn.powerTip.smartPlacementLists={n:["n","ne","nw","s"],e:["e","ne","se","w","nw","sw","n","s","e"],s:["s","se","sw","n"],w:["w","nw","sw","e","ne","se","n","s","w"],nw:["nw","w","sw","n","s","se","nw"],ne:["ne","e","se","n","s","sw","ne"],sw:["sw","w","nw","s","n","ne","sw"],se:["se","e","ne","s","n","nw","se"],"nw-alt":["nw-alt","n","ne-alt","sw-alt","s","se-alt","w","e"],"ne-alt":["ne-alt","n","nw-alt","se-alt","s","sw-alt","e","w"],"sw-alt":["sw-alt","s","se-alt","nw-alt","n","ne-alt","w","e"],"se-alt":["se-alt","s","sw-alt","ne-alt","n","nw-alt","e","w"]},e.powerTip={show:function(t,o){return o?(a(o),P.previousX=o.pageX,P.previousY=o.pageY,e(t).data(h).show()):e(t).first().data(h).show(!0,!0),t},reposition:function(t){return e(t).first().data(h).resetPosition(),t},hide:function(t,o){return t?e(t).first().data(h).hide(o):P.activeHover&&P.activeHover.data(h).hide(!0),t},destroy:function(t){return e(t).off(".powertip").each(function(){var t=e(this),o=[b,h,v,m];t.data(b)&&(t.attr("title",t.data(b)),o.push(y)),t.removeData(o)}),t}},e.powerTip.showTip=e.powerTip.show,e.powerTip.closeTip=e.powerTip.hide});
|
trunk/app/assets/js/jquery.sliderTabs.min.js
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
(function(e){e.sliderTabs=function(t,n){var r=this;var i={autoplay:false,tabArrowWidth:35,classes:{leftTabArrow:"",panel:"",panelActive:"",panelsContainer:"",rightTabArrow:"",tab:"",tabActive:"",tabsList:""},defaultTab:1,height:null,indicators:false,mousewheel:true,position:"top",panelArrows:false,panelArrowsShowOnHover:false,tabs:true,tabHeight:30,tabArrows:true,tabSlideLength:100,tabSlideSpeed:200,transition:"slide",transitionEasing:"easeOutCubic",transitionSpeed:500,width:null};var s=e(t),o,u,a,f,l,c,h,p,d,v;var m=false,g=true;var y,b;r.selectedTab=i.defaultTab;r.init=function(){y=r.settings=e.extend({},i,n);s.addClass("ui-slider-tabs");a=s.children("div").addClass("ui-slider-tab-content").remove();u=s.children("ul").addClass("ui-slider-tabs-list").remove();u.children("li").remove().appendTo(u);r.count=u.children("li").length;l=e("<div class='ui-slider-tabs-list-wrapper'>");f=e("<div class='ui-slider-tabs-list-container'>").append(u).appendTo(l);f.find("li").css("height",y.tabHeight+2);f.find("li a").css("height",y.tabHeight+2);h=e("<a href='#' class='ui-slider-left-arrow'><div></div></a>").css({width:y.tabArrowWidth,height:y.tabHeight+2}).appendTo(f).click(function(e){r.slideTabs("right",y.tabSlideLength);return false});p=e("<a href='#' class='ui-slider-right-arrow'><div></div></a>").css({width:y.tabArrowWidth,height:y.tabHeight+2}).appendTo(f).click(function(e){r.slideTabs("left",y.tabSlideLength);return false});c=e("<div class='ui-slider-tabs-content-container'>").append(a);if(y.position=="bottom")s.append(c).append(l.addClass("bottom"));else s.append(l).append(c);if(y.width)s.width(parseInt(y.width));if(y.height)c.height(parseInt(y.height)-y.tabHeight);if(y.indicators)r.showIndicators();r.selectTab(y.defaultTab);r.slideTabs("left",0);S();A();s.delegate(".ui-slider-tabs-list li a","click",function(){if(!e(this).parent().hasClass("selected")&&!m){r.selectTab(e(this).parent())}return false});if(o)o.delegate(".ui-slider-tabs-indicator","click",function(){if(!e(this).hasClass("selected")&&!m)r.selectTab(e(this).index()+1)});e.each(y.classes,function(e,t){switch(e){case"leftTabArrow":h.addClass(t);break;case"rightTabArrow":p.addClass(t);break;case"panel":a.addClass(t);break;case"panelsContainer":c.addClass(t);break;case"tab":u.find("li").addClass(t);break;case"tabsList":u.addClass(t);break;default:break}});if(y.panelArrows)k();if(y.panelArrowsShowOnHover){if(d)d.addClass("showOnHover");if(v)v.addClass("showOnHover")}c.resize(k);l.resize(function(){L();A()});setInterval(function(){var e=c.children(".selected");if(e.outerHeight()>c.outerHeight()&&g)C(e)},100);L();if(!y.tabs)l.hide();if(y.autoplay)setInterval(r.next,y.autoplay);if(y.mousewheel)s.bind("mousewheel",function(e,t,n,i){if(t>0)r.next();else if(t<0)r.prev();return false})};r.selectTab=function(e){g=false;var t=typeof e==="number"?u.children("li:nth-child("+e+")"):e;var n=t.find("a").attr("href").substr(1);var i=c.children("#"+n);r.selectedTab=typeof e==="number"?e:e.index()+1;C(i);m=true;var s=u.find(".selected").index()<t.index()?"left":"right";t.siblings().removeClass("selected");if(y.classes.tabActive!="")t.siblings().removeClass(y.classes.tabActive);t.addClass("selected").addClass(y.classes.tabActive);T(c.children(".ui-slider-tab-content:visible"),s);N(i);E(t);w()};r.next=function(){if(!m){if(r.count===r.selectedTab)r.selectTab(1);else r.selectTab(r.selectedTab+1)}};r.prev=function(){if(!m){if(r.selectedTab===1)r.selectTab(r.count);else r.selectTab(r.selectedTab-1)}};r.slideTabs=function(e,t){var n=parseInt(u.css("margin-left"));var r=n;h.removeClass("edge");p.removeClass("edge");if(e=="right")r+=t;else if(e=="left")r-=t;if(r>=0){r=0;h.addClass("edge")}else if(r<=b){r=b;p.addClass("edge")}u.animate({"margin-left":r},y.tabSlideSpeed)};r.showIndicators=function(){if(!o){o=e("<div class='ui-slider-tabs-indicator-container'>");for(var t=0;t<a.length;t++){o.append("<div class='ui-slider-tabs-indicator'></div>")}c.append(o)}else o.show()};r.hideIndicators=function(){if(o)o.hide()};r.showTabArrows=function(){if(!y.tabArrows)return;h.show();p.show();f.css("margin","0 "+y.tabArrowWidth+"px")};r.hideTabArrows=function(){h.hide();p.hide();f.css("margin","0")};r.showPanelArrows=function(){if(d)d.show();if(v)v.show()};r.hidePanelArrows=function(){if(d)d.hide();if(v)v.hide()};var w=function(){if(y.indicators&&o){var e=o.children("div:nth-child("+r.selectedTab+")");e.siblings().removeClass("selected");e.addClass("selected")}};var E=function(e){var t=e.offset(),n=f.offset(),i=t.left-n.left,s=n.left+f.outerWidth()-(t.left+e.outerWidth());if(i<0)r.slideTabs("right",-i);else if(s<0)r.slideTabs("left",-s)};var S=function(){if(y.transition=="slide")u.children("li").each(function(t,n){var r=u.children(".selected").index(),i=e(n).index();var s=c.children("#"+e(n).find("a").attr("href").substr(1));if(r<i)s.css({left:c.width()+"px"});else if(r>i)s.css({left:"-"+c.width()+"px"});else s.addClass(y.classes.panelActive)});if(y.transition=="fade")u.children("li").each(function(t,n){var r=u.children(".selected").index(),i=e(n).index();var s=c.children("#"+e(n).find("a").attr("href").substr(1));if(r!=i)s.css({opacity:0});else s.addClass(y.classes.panelActive)})};var x=function(e){return{hide:{slideleft:{left:"-"+e+"px"},slideright:{left:e+"px"},fade:{opacity:0}},show:{slide:{left:0},fade:{opacity:1}}}};var T=function(e,t){if(y.transition=="slide")var n="slide"+t;else var n=y.transition;e.animate(x(c.width())["hide"][n],y.transitionSpeed,y.transitionEasing,function(){e.hide();e.removeClass("selected");m=false;S()})};var N=function(e){e.show();e.addClass(y.classes.panelActive).addClass("selected");e.animate(x(c.width())["show"][y.transition],y.transitionSpeed,y.transitionEasing,function(){m=false;g=true;S()})};var C=function(e){if(!y.height)c.animate({height:O(e)},200)};var k=function(){if(y.panelArrows){if(!d&&!v){d=e("<div class='ui-slider-tabs-leftPanelArrow'>").click(function(){r.prev()});v=e("<div class='ui-slider-tabs-rightPanelArrow'>").click(function(){r.next()});d.appendTo(c);v.appendTo(c)}v.css({top:c.height()/2-v.outerHeight()/2});d.css({top:c.height()/2-d.outerHeight()/2})}};var L=function(){var t=0;u.children().each(function(n,r){t+=e(r).outerWidth(true)});u.width(t+50);if(f.width()<t&&y.tabArrows){r.showTabArrows();b=f.width()-t}else r.hideTabArrows()};var A=function(){a.width(c.width()-(a.outerWidth()-a.width()))};var O=function(e){var t={display:e.css("display"),left:e.css("left"),position:e.css("position")};e.css({display:"normal",left:-5e3,position:"absolute"});var n=e.outerHeight();e.css(t);return n};r.init()};e.fn.sliderTabs=function(t){return this.each(function(){var n=e(this),r=n.data("sliderTabs");if(!r){r=new e.sliderTabs(this,t);n.data("sliderTabs",r);return r}if(r.methods[t]){return r.methods[t].apply(this,Array.prototype.slice.call(arguments,1))}})}})(jQuery);(function(e){function r(t){var n=t||window.event,r=[].slice.call(arguments,1),i=0,s=true,o=0,u=0;t=e.event.fix(n);t.type="mousewheel";if(n.wheelDelta){i=n.wheelDelta/120}if(n.detail){i=-n.detail/3}u=i;if(n.axis!==undefined&&n.axis===n.HORIZONTAL_AXIS){u=0;o=-1*i}if(n.wheelDeltaY!==undefined){u=n.wheelDeltaY/120}if(n.wheelDeltaX!==undefined){o=-1*n.wheelDeltaX/120}r.unshift(t,i,o,u);return(e.event.dispatch||e.event.handle).apply(this,r)}var t=["DOMMouseScroll","mousewheel"];if(e.event.fixHooks){for(var n=t.length;n;){e.event.fixHooks[t[--n]]=e.event.mouseHooks}}e.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var e=t.length;e;){this.addEventListener(t[--e],r,false)}}else{this.onmousewheel=r}},teardown:function(){if(this.removeEventListener){for(var e=t.length;e;){this.removeEventListener(t[--e],r,false)}}else{this.onmousewheel=null}}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})})(jQuery);(function(e,t,n){function c(){s=t[o](function(){r.each(function(){var t=e(this),n=t.width(),r=t.height(),i=e.data(this,a);if(n!==i.w||r!==i.h){t.trigger(u,[i.w=n,i.h=r])}});c()},i[f])}var r=e([]),i=e.resize=e.extend(e.resize,{}),s,o="setTimeout",u="resize",a=u+"-special-event",f="delay",l="throttleWindow";i[f]=250;i[l]=true;e.event.special[u]={setup:function(){if(!i[l]&&this[o]){return false}var t=e(this);r=r.add(t);e.data(this,a,{w:t.width(),h:t.height()});if(r.length===1){c()}},teardown:function(){if(!i[l]&&this[o]){return false}var t=e(this);r=r.not(t);t.removeData(a);if(!r.length){clearTimeout(s)}},add:function(t){function s(t,i,s){var o=e(this),u=e.data(this,a);u.w=i!==n?i:o.width();u.h=s!==n?s:o.height();r.apply(this,arguments)}if(!i[l]&&this[o]){return false}var r;if(e.isFunction(t)){r=t;return s}else{r=t.handler;t.handler=s}}}})(jQuery,this)
|
trunk/app/assets/js/main.js
ADDED
@@ -0,0 +1,827 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/*
|
2 |
+
* BuddyPress Media Default JS
|
3 |
+
*/
|
4 |
+
//Legacy media element for old activities
|
5 |
+
function bp_media_create_element(id) {
|
6 |
+
return false;
|
7 |
+
}
|
8 |
+
var $current;
|
9 |
+
//window.onbeforeunload= function() { return "Custom message here"; };
|
10 |
+
|
11 |
+
jQuery(document).ready(function() {
|
12 |
+
|
13 |
+
jQuery('body').on('mediapreview', '.bp_media_content video,.bp_media_content audio, video.bp-media-featured-media, audio.bp-media-featured-media', function() {
|
14 |
+
jQuery(this).mediaelementplayer({
|
15 |
+
enableKeyboard: false,
|
16 |
+
startVolume: 1,
|
17 |
+
success: function(mediaElement, domElement) {
|
18 |
+
var $thisMediaElement = (mediaElement.id) ? jQuery("#" + mediaElement.id) : jQuery(mediaElement);
|
19 |
+
$thisMediaElement.parents('.mejs-container').find(".mejs-volume-current").css("top", "8px");
|
20 |
+
$thisMediaElement.parents('.mejs-container').find(".mejs-volume-handle").css("top", "5px");
|
21 |
+
}
|
22 |
+
});
|
23 |
+
});
|
24 |
+
jQuery('.bp_media_content video,.bp_media_content audio, video.bp-media-featured-media, audio.bp-media-featured-media').trigger('mediapreview');
|
25 |
+
|
26 |
+
jQuery('ul#activity-stream').on('DOMNodeInserted', function() {
|
27 |
+
jQuery('ul#activity-stream .bp_media_content video,ul#activity-stream .bp_media_content audio').trigger('mediapreview');
|
28 |
+
});
|
29 |
+
var $id, $idtxt;
|
30 |
+
|
31 |
+
jQuery('body').on('click', '.bp-media-featured-media-button', function(e) {
|
32 |
+
e.preventDefault();
|
33 |
+
$idtxt = jQuery(this).closest('.bp-media-image').attr('id');
|
34 |
+
$id = $idtxt.replace('bp-media-id-', '');
|
35 |
+
data = {
|
36 |
+
'media_id': $id,
|
37 |
+
'action': 'bp_set_featured'
|
38 |
+
}
|
39 |
+
jQuery.get(ajaxurl, data, function(response) {
|
40 |
+
if ($id == response) {
|
41 |
+
jQuery('#' + $idtxt).find('.bp-media-featured-media-button').remove();
|
42 |
+
}
|
43 |
+
});
|
44 |
+
})
|
45 |
+
|
46 |
+
|
47 |
+
jQuery('#item-body').on('click', '#bp-media-upload-button', function() {
|
48 |
+
jQuery('#bp-media-move-merge-ui').slideUp();
|
49 |
+
jQuery('#bp-media-delete-ui').slideUp();
|
50 |
+
jQuery('#bp-media-list input').remove();
|
51 |
+
jQuery('#bp-media-show-more').attr('data-move', 0);
|
52 |
+
$parent = jQuery('.bp-media-album-actions');
|
53 |
+
$wrapper = jQuery('.bp-media-upload-wrapper');
|
54 |
+
$description = jQuery('.bp-media-album-description');
|
55 |
+
if ($parent.length > 0 && $wrapper.length <= 0) {
|
56 |
+
if ($description.length > 0)
|
57 |
+
$description.after('<div class="bp-media-action-wrapper bp-media-upload-wrapper"></div>');
|
58 |
+
else
|
59 |
+
$parent.after('<div class="bp-media-action-wrapper bp-media-upload-wrapper"></div>');
|
60 |
+
jQuery('#bp-media-upload-ui').appendTo('.bp-media-upload-wrapper');
|
61 |
+
}
|
62 |
+
jQuery('#bp-media-upload-ui').slideToggle();
|
63 |
+
});
|
64 |
+
|
65 |
+
jQuery('#item-body').on('click', '#bp-media-move-merge-button', function() {
|
66 |
+
jQuery('#bp-media-upload-ui').slideUp();
|
67 |
+
jQuery('#bp-media-delete-ui').slideUp();
|
68 |
+
$parent = jQuery('.bp-media-album-actions');
|
69 |
+
$wrapper = jQuery('.bp-media-move-merge-wrapper');
|
70 |
+
$description = jQuery('.bp-media-album-description');
|
71 |
+
if ($parent.length > 0 && $wrapper.length <= 0) {
|
72 |
+
if ($description.length > 0)
|
73 |
+
$description.after('<div class="bp-media-action-wrapper bp-media-move-merge-wrapper"></div>');
|
74 |
+
else
|
75 |
+
$parent.after('<div class="bp-media-action-wrapper bp-media-move-merge-wrapper"></div>');
|
76 |
+
jQuery('#bp-media-move-merge-ui').appendTo('.bp-media-move-merge-wrapper');
|
77 |
+
}
|
78 |
+
jQuery('#bp-media-move-merge-ui').slideToggle('slow', function() {
|
79 |
+
if (jQuery(this).css('display') == 'none' || jQuery('#bp-media-move-merge-select option:checked').val() == 'merge') {
|
80 |
+
jQuery('#bp-media-list input').remove();
|
81 |
+
jQuery('#bp-media-show-more').attr('data-move', 0);
|
82 |
+
} else if (!jQuery('#bp-media-list input').length) {
|
83 |
+
jQuery('#bp-media-show-more').attr('data-move', 1);
|
84 |
+
jQuery('#bp-media-list h3').each(function() {
|
85 |
+
$media_id = jQuery(this).parent().attr('id').replace('bp-media-item-', '');
|
86 |
+
jQuery(this).prepend('<input type="checkbox" name="move" value="' + $media_id + '" />');
|
87 |
+
});
|
88 |
+
}
|
89 |
+
});
|
90 |
+
});
|
91 |
+
|
92 |
+
jQuery('#item-body').on('click', '#bp-media-delete-button', function() {
|
93 |
+
jQuery('#bp-media-upload-ui').slideUp();
|
94 |
+
jQuery('#bp-media-move-merge-ui').slideUp();
|
95 |
+
$parent = jQuery('.bp-media-album-actions');
|
96 |
+
$wrapper = jQuery('.bp-media-delete-wrapper');
|
97 |
+
$description = jQuery('.bp-media-album-description');
|
98 |
+
if ($parent.length > 0 && $wrapper.length <= 0) {
|
99 |
+
if ($description.length > 0)
|
100 |
+
$description.after('<div class="bp-media-action-wrapper bp-media-delete-wrapper"></div>');
|
101 |
+
else
|
102 |
+
$parent.after('<div class="bp-media-action-wrapper bp-media-delete-wrapper"></div>');
|
103 |
+
jQuery('#bp-media-delete-ui').appendTo('.bp-media-delete-wrapper');
|
104 |
+
}
|
105 |
+
jQuery('#bp-media-delete-ui').slideToggle('slow', function() {
|
106 |
+
if (jQuery(this).css('display') == 'none') {
|
107 |
+
jQuery('#bp-media-list input').remove();
|
108 |
+
jQuery('#bp-media-show-more').attr('data-move', 0);
|
109 |
+
} else if (!jQuery('#bp-media-list input').length) {
|
110 |
+
jQuery('#bp-media-show-more').attr('data-move', 1);
|
111 |
+
jQuery('#bp-media-list h3').each(function() {
|
112 |
+
$media_id = jQuery(this).parent().attr('id').replace('bp-media-item-', '');
|
113 |
+
jQuery(this).prepend('<input type="checkbox" name="move" value="' + $media_id + '" />');
|
114 |
+
});
|
115 |
+
}
|
116 |
+
});
|
117 |
+
});
|
118 |
+
|
119 |
+
jQuery('.rtmedia-container').on('click', '.select-all', function(e) {
|
120 |
+
e.preventDefault();
|
121 |
+
jQuery('.rtmedia-list input').each(function() {
|
122 |
+
jQuery(this).prop('checked', true);
|
123 |
+
});
|
124 |
+
});
|
125 |
+
|
126 |
+
jQuery('.rtmedia-container').on('click', '.unselect-all', function(e) {
|
127 |
+
e.preventDefault();
|
128 |
+
jQuery('.rtmedia-list input').each(function() {
|
129 |
+
jQuery(this).prop('checked', false);
|
130 |
+
});
|
131 |
+
});
|
132 |
+
|
133 |
+
jQuery('#bp-media-move-merge-ui').on('change', '#bp-media-move-merge-select', function() {
|
134 |
+
$this = jQuery(this);
|
135 |
+
if ($this.val() == 'move') {
|
136 |
+
if (!jQuery('#bp-media-list input').length) {
|
137 |
+
jQuery('#bp-media-list h3').each(function() {
|
138 |
+
$media_id = jQuery(this).parent().attr('id').replace('bp-media-item-', '');
|
139 |
+
jQuery(this).prepend('<input type="checkbox" name="move" value="' + $media_id + '" />');
|
140 |
+
});
|
141 |
+
}
|
142 |
+
jQuery('#bp-media-show-more').attr('data-move', 1);
|
143 |
+
jQuery('.bp-media-move-selected-checks').fadeIn();
|
144 |
+
} else if ($this.val() == 'merge') {
|
145 |
+
jQuery('.bp-media-move-selected-checks').fadeOut();
|
146 |
+
jQuery('#bp-media-list input').remove();
|
147 |
+
jQuery('#bp-media-show-more').attr('data-move', 0)
|
148 |
+
}
|
149 |
+
});
|
150 |
+
|
151 |
+
jQuery('#bp-media-move-merge-ui').on('click', '#bp-media-move-merge-media', function() {
|
152 |
+
jQuery(this).siblings('.bp-media-ajax-spinner').show();
|
153 |
+
jQuery(this).prop('disabled', true);
|
154 |
+
jQuery(this).addClass('disabled');
|
155 |
+
$val = jQuery('#bp-media-move-merge-select option:checked').val();
|
156 |
+
if ($val == 'merge') {
|
157 |
+
if (confirm(bp_media_main_strings.merge_confirmation)) {
|
158 |
+
$delete_album = false;
|
159 |
+
// if ( jQuery('.bp-media-can-delete').length ) {
|
160 |
+
// if(confirm(bp_media_main_strings.delete_after_merge))
|
161 |
+
// $delete_album = true;
|
162 |
+
// }
|
163 |
+
$from = jQuery('#bp-media-selected-album').val();
|
164 |
+
$to = jQuery('.bp-media-selected-album-move-merge option:checked').val();
|
165 |
+
if ($from && $to) {
|
166 |
+
var data = {
|
167 |
+
action: 'bp_media_merge_album',
|
168 |
+
from: $from,
|
169 |
+
to: $to,
|
170 |
+
delete_album: $delete_album
|
171 |
+
};
|
172 |
+
jQuery.post(bp_media_vars.ajaxurl, data, function(response) {
|
173 |
+
if (response.length == 0) {
|
174 |
+
jQuery('.item-list-tabs:last').after('<div id="message" class="error"><p>' + bp_media_main_strings.something_went_wrong + '</p></div>');
|
175 |
+
} else if (response == 'redirect') {
|
176 |
+
window.location = window.location.href.replace($from, $to);
|
177 |
+
} else {
|
178 |
+
location.reload();
|
179 |
+
}
|
180 |
+
});
|
181 |
+
}
|
182 |
+
} else {
|
183 |
+
jQuery(this).siblings('.bp-media-ajax-spinner').hide();
|
184 |
+
jQuery(this).prop('disabled', false);
|
185 |
+
jQuery(this).removeClass('disabled');
|
186 |
+
return false;
|
187 |
+
}
|
188 |
+
} else if ($val == 'move') {
|
189 |
+
$media = new Array();
|
190 |
+
jQuery('input:checkbox[name="move"]:checked').each(function() {
|
191 |
+
$media.push(jQuery(this).val());
|
192 |
+
});
|
193 |
+
if ($media.length) {
|
194 |
+
if (confirm(bp_media_main_strings.are_you_sure)) {
|
195 |
+
var data = {
|
196 |
+
action: 'bp_media_move_selected_media',
|
197 |
+
media: $media,
|
198 |
+
parent: jQuery('.bp-media-selected-album-move-merge option:checked').val()
|
199 |
+
};
|
200 |
+
jQuery.post(bp_media_vars.ajaxurl, data, function(response) {
|
201 |
+
if (response.length == 0) {
|
202 |
+
jQuery('.item-list-tabs:last').after('<div id="message" class="error"><p>' + bp_media_main_strings.something_went_wrong + '</p></div>');
|
203 |
+
} else {
|
204 |
+
location.reload();
|
205 |
+
}
|
206 |
+
});
|
207 |
+
} else {
|
208 |
+
jQuery(this).siblings('.bp-media-ajax-spinner').hide();
|
209 |
+
jQuery(this).prop('disabled', false);
|
210 |
+
jQuery(this).removeClass('disabled');
|
211 |
+
}
|
212 |
+
} else {
|
213 |
+
alert(bp_media_main_strings.select_media);
|
214 |
+
jQuery(this).siblings('.bp-media-ajax-spinner').hide();
|
215 |
+
jQuery(this).prop('disabled', false);
|
216 |
+
jQuery(this).removeClass('disabled');
|
217 |
+
}
|
218 |
+
} else {
|
219 |
+
alert(bp_media_main_strings.select_action);
|
220 |
+
jQuery(this).siblings('.bp-media-ajax-spinner').hide();
|
221 |
+
jQuery(this).prop('disabled', false);
|
222 |
+
jQuery(this).removeClass('disabled');
|
223 |
+
return false;
|
224 |
+
}
|
225 |
+
|
226 |
+
});
|
227 |
+
|
228 |
+
jQuery('#bp-media-delete-ui').on('click', '#bp-media-delete-media', function() {
|
229 |
+
jQuery(this).siblings('.bp-media-ajax-spinner').show();
|
230 |
+
jQuery(this).prop('disabled', true);
|
231 |
+
jQuery(this).addClass('disabled');
|
232 |
+
$media = new Array();
|
233 |
+
jQuery('input:checkbox[name="move"]:checked').each(function() {
|
234 |
+
$media.push(jQuery(this).val());
|
235 |
+
});
|
236 |
+
if ($media.length) {
|
237 |
+
if (confirm(bp_media_main_strings.delete_selected_media)) {
|
238 |
+
var data = {
|
239 |
+
action: 'bp_media_delete_selected_media',
|
240 |
+
media: $media
|
241 |
+
};
|
242 |
+
jQuery.post(bp_media_vars.ajaxurl, data, function(response) {
|
243 |
+
if (response.length == 0) {
|
244 |
+
jQuery('.item-list-tabs:last').after('<div id="message" class="error"><p>' + bp_media_main_strings.something_went_wrong + '</p></div>');
|
245 |
+
} else {
|
246 |
+
location.reload();
|
247 |
+
}
|
248 |
+
});
|
249 |
+
} else {
|
250 |
+
jQuery(this).siblings('.bp-media-ajax-spinner').hide();
|
251 |
+
jQuery(this).prop('disabled', false);
|
252 |
+
jQuery(this).removeClass('disabled');
|
253 |
+
return false;
|
254 |
+
}
|
255 |
+
} else {
|
256 |
+
alert(bp_media_main_strings.select_media);
|
257 |
+
jQuery(this).siblings('.bp-media-ajax-spinner').hide();
|
258 |
+
jQuery(this).prop('disabled', false);
|
259 |
+
jQuery(this).removeClass('disabled');
|
260 |
+
}
|
261 |
+
});
|
262 |
+
|
263 |
+
jQuery('#bp-media-upload-ui').bind('dragover', function(e) {
|
264 |
+
jQuery(this).addClass('hover');
|
265 |
+
return 0;
|
266 |
+
});
|
267 |
+
jQuery('#bp-media-upload-ui').bind('dragleave', function(e) {
|
268 |
+
jQuery(this).removeClass('hover');
|
269 |
+
return 0;
|
270 |
+
});
|
271 |
+
|
272 |
+
var bp_media_recent_tabs = jQuery('.media-tabs-container-tabs');
|
273 |
+
if (bp_media_recent_tabs.length > 0) {
|
274 |
+
jQuery(bp_media_recent_tabs).tabs();
|
275 |
+
}
|
276 |
+
|
277 |
+
var tallest = 0;
|
278 |
+
jQuery('#recent-media-tabs .bp-media-tab-panel').each(function() {
|
279 |
+
|
280 |
+
var thisHeight = jQuery(this).height();
|
281 |
+
if (thisHeight > tallest) {
|
282 |
+
tallest = thisHeight;
|
283 |
+
}
|
284 |
+
}).height(tallest);
|
285 |
+
|
286 |
+
|
287 |
+
jQuery('#bp-media-show-more').click(function(e) {
|
288 |
+
e.preventDefault();
|
289 |
+
var data = load_more_data();
|
290 |
+
jQuery.get(bp_media_vars.ajaxurl, data, function(response) {
|
291 |
+
if (response.length == 0)
|
292 |
+
jQuery('#bp-media-show-more').parent().remove();
|
293 |
+
else
|
294 |
+
jQuery('.bp-media-gallery').append(response);
|
295 |
+
});
|
296 |
+
});
|
297 |
+
|
298 |
+
jQuery('#bp-media-show-more-sc').click(function(e) {
|
299 |
+
e.preventDefault();
|
300 |
+
$this = jQuery(this);
|
301 |
+
$this.prop("disabled", true);
|
302 |
+
var data = {
|
303 |
+
action: 'bp_media_load_more_sc',
|
304 |
+
page: parseInt($this.attr('data-page')) + 1,
|
305 |
+
media: $this.attr('data-media'),
|
306 |
+
count: $this.attr('data-count'),
|
307 |
+
title: $this.attr('data-title')
|
308 |
+
};
|
309 |
+
jQuery.get(bp_media_vars.ajaxurl, data, function(response) {
|
310 |
+
if (response.length == 0) {
|
311 |
+
jQuery('#bp-media-show-more-sc').parent().remove();
|
312 |
+
} else {
|
313 |
+
$this.prop("disabled", false);
|
314 |
+
$this.attr('data-page', parseInt($this.attr('data-page')) + 1);
|
315 |
+
jQuery('.bp-media-gallery').append(response);
|
316 |
+
}
|
317 |
+
});
|
318 |
+
});
|
319 |
+
setTimeout(function() {
|
320 |
+
jQuery('.media album_updated .delete-activity,.media_upload .delete-activity').unbind('click').click(function(e) {
|
321 |
+
if (confirm(bp_media_main_strings.delete_activity_media)) {
|
322 |
+
return true;
|
323 |
+
}
|
324 |
+
else {
|
325 |
+
return false;
|
326 |
+
}
|
327 |
+
});
|
328 |
+
|
329 |
+
}, 1000);
|
330 |
+
|
331 |
+
/* Add Featured Image */
|
332 |
+
jQuery('.bp-media-image').on('click', '.bp-media-featured', function(e) {
|
333 |
+
e.preventDefault();
|
334 |
+
var post_id = jQuery(this).attr('data-post-id');
|
335 |
+
var album_id = jQuery(this).attr('data-album-id');
|
336 |
+
var curr_obj = jQuery(this);
|
337 |
+
var data = {
|
338 |
+
action: 'bp_media_set_album_cover',
|
339 |
+
post_id: post_id,
|
340 |
+
album_id: album_id
|
341 |
+
};
|
342 |
+
jQuery.get(bp_media_vars.ajaxurl, data, function(response)
|
343 |
+
{
|
344 |
+
curr_obj.text(response);
|
345 |
+
curr_obj.attr('title', response);
|
346 |
+
}
|
347 |
+
);
|
348 |
+
});
|
349 |
+
|
350 |
+
if (bp_media_vars.lightbox > 0 && !(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent))) {
|
351 |
+
|
352 |
+
jQuery('#bp-media-list,.widget-item-listing,.bp-media-sc-list').on('click', 'li a', function(e) {
|
353 |
+
e.preventDefault();
|
354 |
+
$current = jQuery(this);
|
355 |
+
load_media($current);
|
356 |
+
});
|
357 |
+
jQuery('ul#activity-stream').on('click',
|
358 |
+
'li.media.album_updated ul li a, ul.bp-media-list-media li a, li.activity-item div.activity-content div.activity-inner div.bp_media_content a', function(e) {
|
359 |
+
e.preventDefault();
|
360 |
+
$current = jQuery(this);
|
361 |
+
load_media($current);
|
362 |
+
});
|
363 |
+
jQuery('body').on('click', 'a.modal-next', function(e) {
|
364 |
+
e.preventDefault();
|
365 |
+
if (!$current.parent().hasClass('bp_media_content')) {
|
366 |
+
$next_current = $current.closest('li').next().find('a');
|
367 |
+
if ($next_current.length < 1) {
|
368 |
+
if (jQuery('#bp-media-show-more').length > 0) {
|
369 |
+
var args = load_more_data();
|
370 |
+
var request = jQuery.get(bp_media_vars.ajaxurl, args);
|
371 |
+
chained = request.then(function(data) {
|
372 |
+
if (data.length == 0) {
|
373 |
+
jQuery('#bp-media-show-more').parent().remove();
|
374 |
+
return false;
|
375 |
+
} else {
|
376 |
+
jQuery('#bp-media-list').append(data);
|
377 |
+
return true;
|
378 |
+
}
|
379 |
+
});
|
380 |
+
|
381 |
+
chained.done(function(truth) {
|
382 |
+
if (truth != false) {
|
383 |
+
$next_current = $current.closest('li').next().find('a');
|
384 |
+
$current = $next_current;
|
385 |
+
transit_media($current);
|
386 |
+
}
|
387 |
+
});
|
388 |
+
}
|
389 |
+
} else {
|
390 |
+
$current = $next_current;
|
391 |
+
transit_media($next_current);
|
392 |
+
}
|
393 |
+
}
|
394 |
+
|
395 |
+
|
396 |
+
});
|
397 |
+
jQuery('body').on('click', 'a.modal-prev', function(e) {
|
398 |
+
e.preventDefault();
|
399 |
+
if (!$current.parent().hasClass('bp_media_content')) {
|
400 |
+
if ($current.closest('li').prev().length > 0 && $current.closest('li').prev().find('#bp-media-upload-ui').length < 1) {
|
401 |
+
$current = $current.closest('li').prev().find('a');
|
402 |
+
|
403 |
+
transit_media($current);
|
404 |
+
}
|
405 |
+
}
|
406 |
+
});
|
407 |
+
jQuery(document.documentElement).keyup(function(event) {
|
408 |
+
if (event.keyCode == 37) {
|
409 |
+
jQuery('a.modal-prev').trigger('click');
|
410 |
+
} else if (event.keyCode == 39) {
|
411 |
+
jQuery('a.modal-next').trigger('click');
|
412 |
+
}
|
413 |
+
});
|
414 |
+
|
415 |
+
function load_media($current) {
|
416 |
+
jQuery.get($current.attr('href'), function(response) {
|
417 |
+
$mediacontent = jQuery(response).find('.bp-media-single');
|
418 |
+
$medialoaded = jQuery('<div class="bp-media-ajax-single"></div>');
|
419 |
+
$medialoaded.append($mediacontent);
|
420 |
+
jQuery.modal($medialoaded, {
|
421 |
+
'zIndex': 99999,
|
422 |
+
'autoResize': true,
|
423 |
+
'opacity': 90
|
424 |
+
});
|
425 |
+
do_fixes($medialoaded);
|
426 |
+
jQuery('.bp_media_content video,.bp_media_content audio').trigger('mediapreview');
|
427 |
+
});
|
428 |
+
}
|
429 |
+
function transit_media($current) {
|
430 |
+
$medialoaded = jQuery('.bp-media-ajax-single');
|
431 |
+
$medialoaded.empty();
|
432 |
+
$medialoaded.append(jQuery('<div class="lightbox-spinner" />'));
|
433 |
+
jQuery.get($current.attr('href'), function(response) {
|
434 |
+
$mediacontent = jQuery(response).find('.bp-media-single');
|
435 |
+
$medialoaded = jQuery('.bp-media-ajax-single');
|
436 |
+
$medialoaded.empty();
|
437 |
+
$medialoaded.append($mediacontent);
|
438 |
+
do_fixes($medialoaded);
|
439 |
+
jQuery('.bp_media_content video,.bp_media_content audio').trigger('mediapreview');
|
440 |
+
});
|
441 |
+
}
|
442 |
+
|
443 |
+
function do_fixes($medialoaded) {
|
444 |
+
$medialoaded.find('.bp-media-content-wrap').append('<a class="modal-prev modal-ctrl"><span class="img-icon"></span></a><a class="modal-next modal-ctrl"><span class="img-icon"></span></a>');
|
445 |
+
$medialoaded.find('.bp_media_description').remove();
|
446 |
+
$image = $medialoaded.find('.bp-media-content-wrap .bp_media_content img');
|
447 |
+
if ($image.length < 1) {
|
448 |
+
$image = $medialoaded.find('.bp-media-content-wrap .bp_media_content video');
|
449 |
+
$dimensions = adjust_dimensions($image);
|
450 |
+
adjust_comment_div($dimensions[0]);
|
451 |
+
jQuery.modal.update($dimensions[0], $dimensions[1]);
|
452 |
+
}
|
453 |
+
$form = $medialoaded.find('form.ac-form');
|
454 |
+
if ($form.length > 0) {
|
455 |
+
$form.find('.ac-reply-avatar').remove();
|
456 |
+
$form.html($form.html().replace(' or press esc to cancel.', ''));
|
457 |
+
}
|
458 |
+
$image.load(function() {
|
459 |
+
$dimensions = adjust_dimensions($image);
|
460 |
+
adjust_comment_div($dimensions[0]);
|
461 |
+
jQuery.modal.update($dimensions[0], $dimensions[1]);
|
462 |
+
})
|
463 |
+
}
|
464 |
+
|
465 |
+
function adjust_dimensions($image) {
|
466 |
+
$height = ($image.height() > 480) ? $image.height() : 480;
|
467 |
+
$width = ($image.width() > 640) ? $image.width() : 640;
|
468 |
+
$width = $width + 280;
|
469 |
+
$image.hide();
|
470 |
+
$image.show();
|
471 |
+
return [$height, $width];
|
472 |
+
|
473 |
+
}
|
474 |
+
|
475 |
+
function adjust_comment_div($height) {
|
476 |
+
$medialoaded.find('.bp-media-meta-content-wrap').css({
|
477 |
+
'height': $height,
|
478 |
+
'overflow': 'auto'
|
479 |
+
});
|
480 |
+
}
|
481 |
+
function load_more_data() {
|
482 |
+
if (jQuery('#bp-media-show-more').attr('data-move') == 1)
|
483 |
+
$move = 1;
|
484 |
+
else
|
485 |
+
$move = 0;
|
486 |
+
var data = {
|
487 |
+
action: 'bp_media_load_more',
|
488 |
+
page: ++bp_media_vars.page,
|
489 |
+
current_action: bp_media_vars.current_action,
|
490 |
+
action_variables: bp_media_vars.action_variables,
|
491 |
+
displayed_user: bp_media_vars.displayed_user,
|
492 |
+
loggedin_user: bp_media_vars.loggedin_user,
|
493 |
+
current_group: bp_media_vars.current_group,
|
494 |
+
move: $move
|
495 |
+
};
|
496 |
+
return data;
|
497 |
+
}
|
498 |
+
|
499 |
+
/**** Activity Comments *******************************************************/
|
500 |
+
|
501 |
+
/* Hide all activity comment forms */
|
502 |
+
jQuery('form.ac-form').hide();
|
503 |
+
|
504 |
+
/* Hide excess comments */
|
505 |
+
// if ( jQuery('.activity-comments').length )
|
506 |
+
// bp_legacy_theme_hide_comments();
|
507 |
+
|
508 |
+
jQuery('.bp-media-image-editor').bind('DOMNodeInserted DOMNodeRemoved', function(event) {
|
509 |
+
$id = jQuery('.bp-media-image-editor').attr('id').replace('image-editor-', '');
|
510 |
+
if (!jQuery('#imgedit-save-target-' + $id).length) {
|
511 |
+
jQuery('#imgedit-y-' + $id).after('<p id="imgedit-save-target-' + $id + '" style="display: none;"><input type="checkbox" style="display:none;" checked="checked" name="imgedit-target-' + $id + '" value="all"></p>');
|
512 |
+
}
|
513 |
+
});
|
514 |
+
|
515 |
+
/* Activity list event delegation */
|
516 |
+
jQuery('body').on('click', '.bp-media-ajax-single div.activity', function(event) {
|
517 |
+
var target = jQuery(event.target);
|
518 |
+
if (target.hasClass('bp-media-featured')) {
|
519 |
+
var post_id = target.attr('data-post-id');
|
520 |
+
var album_id = target.attr('data-album-id');
|
521 |
+
var data = {
|
522 |
+
action: 'bp_media_set_album_cover',
|
523 |
+
post_id: post_id,
|
524 |
+
album_id: album_id
|
525 |
+
};
|
526 |
+
target.addClass('loading');
|
527 |
+
jQuery.get(bp_media_vars.ajaxurl, data, function(response)
|
528 |
+
{
|
529 |
+
target.removeClass('loading');
|
530 |
+
target.fadeOut(200, function() {
|
531 |
+
jQuery(this).html(response);
|
532 |
+
jQuery(this).attr('title', response);
|
533 |
+
jQuery(this).fadeIn(200);
|
534 |
+
});
|
535 |
+
|
536 |
+
}
|
537 |
+
);
|
538 |
+
}
|
539 |
+
|
540 |
+
/* Favoriting activity stream items */
|
541 |
+
if (target.hasClass('fav') || target.hasClass('unfav')) {
|
542 |
+
event.preventDefault();
|
543 |
+
var type = target.hasClass('fav') ? 'fav' : 'unfav';
|
544 |
+
var parent = target.closest('.activity_update');
|
545 |
+
var parent_id = parent.attr('id').substr(9, parent.attr('id').length);
|
546 |
+
|
547 |
+
target.addClass('loading');
|
548 |
+
|
549 |
+
jQuery.post(ajaxurl, {
|
550 |
+
action: 'activity_mark_' + type,
|
551 |
+
'cookie': encodeURIComponent(document.cookie),
|
552 |
+
'id': parent_id
|
553 |
+
},
|
554 |
+
function(response) {
|
555 |
+
target.removeClass('loading');
|
556 |
+
|
557 |
+
target.fadeOut(200, function() {
|
558 |
+
jQuery(this).html(response);
|
559 |
+
jQuery(this).attr('title', 'fav' == type ? BP_DTheme.remove_fav : BP_DTheme.mark_as_fav);
|
560 |
+
jQuery(this).fadeIn(200);
|
561 |
+
});
|
562 |
+
|
563 |
+
if ('fav' == type) {
|
564 |
+
if (!jQuery('.item-list-tabs #activity-favorites').length)
|
565 |
+
jQuery('.item-list-tabs ul #activity-mentions').before('<li id="activity-favorites"><a href="#">' + BP_DTheme.my_favs + ' <span>0</span></a></li>');
|
566 |
+
|
567 |
+
target.removeClass('fav');
|
568 |
+
target.addClass('unfav');
|
569 |
+
|
570 |
+
jQuery('.item-list-tabs ul #activity-favorites span').html(Number(jQuery('.item-list-tabs ul #activity-favorites span').html()) + 1);
|
571 |
+
} else {
|
572 |
+
target.removeClass('unfav');
|
573 |
+
target.addClass('fav');
|
574 |
+
|
575 |
+
jQuery('.item-list-tabs ul #activity-favorites span').html(Number(jQuery('.item-list-tabs ul #activity-favorites span').html()) - 1);
|
576 |
+
|
577 |
+
if (!Number(jQuery('.item-list-tabs ul #activity-favorites span').html())) {
|
578 |
+
if (jQuery('.item-list-tabs ul #activity-favorites').hasClass('selected'))
|
579 |
+
bp_activity_request(null, null);
|
580 |
+
|
581 |
+
jQuery('.item-list-tabs ul #activity-favorites').remove();
|
582 |
+
}
|
583 |
+
}
|
584 |
+
|
585 |
+
if ('activity-favorites' == jQuery('.item-list-tabs li.selected').attr('id'))
|
586 |
+
target.parent().parent().parent().slideUp(100);
|
587 |
+
});
|
588 |
+
|
589 |
+
return false;
|
590 |
+
}
|
591 |
+
/* Comment / comment reply links */
|
592 |
+
if (target.hasClass('acomment-reply') || target.parent().hasClass('acomment-reply')) {
|
593 |
+
if (target.parent().hasClass('acomment-reply'))
|
594 |
+
target = target.parent();
|
595 |
+
|
596 |
+
var id = target.attr('id');
|
597 |
+
ids = id.split('-');
|
598 |
+
|
599 |
+
var a_id = ids[2]
|
600 |
+
var c_id = target.attr('href').substr(10, target.attr('href').length);
|
601 |
+
var form = jQuery('.bp-media-ajax-single #ac-form-' + a_id);
|
602 |
+
|
603 |
+
form.css('display', 'none');
|
604 |
+
form.removeClass('root');
|
605 |
+
jQuery('.ac-form').hide();
|
606 |
+
|
607 |
+
/* Hide any error messages */
|
608 |
+
form.children('div').each(function() {
|
609 |
+
if (jQuery(this).hasClass('error'))
|
610 |
+
jQuery(this).hide();
|
611 |
+
});
|
612 |
+
|
613 |
+
|
614 |
+
if (ids[1] != 'comment') {
|
615 |
+
jQuery('.bp-media-ajax-single #acomment-' + c_id).append(form);
|
616 |
+
} else {
|
617 |
+
jQuery('.bp-media-ajax-single #activity-' + a_id + ' .activity-comments').append(form);
|
618 |
+
}
|
619 |
+
|
620 |
+
if (form.parent().hasClass('activity-comments'))
|
621 |
+
form.addClass('root');
|
622 |
+
|
623 |
+
form.slideDown(200);
|
624 |
+
jQuery.scrollTo(form, 500, {
|
625 |
+
offset: -100,
|
626 |
+
easing: 'easeOutQuad'
|
627 |
+
});
|
628 |
+
jQuery('.bp-media-ajax-single #ac-form-' + ids[2] + ' textarea').focus();
|
629 |
+
|
630 |
+
return false;
|
631 |
+
}
|
632 |
+
|
633 |
+
/* Activity comment posting */
|
634 |
+
if (target.attr('name') == 'ac_form_submit') {
|
635 |
+
var form = target.closest('form');
|
636 |
+
var form_parent = form.parent();
|
637 |
+
var form_id = form.attr('id').split('-');
|
638 |
+
|
639 |
+
if (!form_parent.hasClass('activity-comments')) {
|
640 |
+
var tmp_id = form_parent.attr('id').split('-');
|
641 |
+
var comment_id = tmp_id[1];
|
642 |
+
} else {
|
643 |
+
var comment_id = form_id[2];
|
644 |
+
}
|
645 |
+
|
646 |
+
var content = jQuery(target.closest('.ac-reply-content').find('textarea'));
|
647 |
+
// var content = jQuery( target.closest())'#' + form.attr('id') + ' textarea' );
|
648 |
+
|
649 |
+
/* Hide any error messages */
|
650 |
+
jQuery('.bp-media-ajax-single #' + form.attr('id') + ' div.error').hide();
|
651 |
+
target.addClass('loading').prop('disabled', true);
|
652 |
+
content.addClass('loading').prop('disabled', true);
|
653 |
+
|
654 |
+
var ajaxdata = {
|
655 |
+
action: 'new_activity_comment',
|
656 |
+
'cookie': encodeURIComponent(document.cookie),
|
657 |
+
'_wpnonce_new_activity_comment': jQuery("#_wpnonce_new_activity_comment").val(),
|
658 |
+
'comment_id': comment_id,
|
659 |
+
'form_id': form_id[2],
|
660 |
+
'content': content.val()
|
661 |
+
};
|
662 |
+
|
663 |
+
// Akismet
|
664 |
+
var ak_nonce = jQuery('#_bp_as_nonce_' + comment_id).val();
|
665 |
+
if (ak_nonce) {
|
666 |
+
ajaxdata['_bp_as_nonce_' + comment_id] = ak_nonce;
|
667 |
+
}
|
668 |
+
|
669 |
+
jQuery.post(ajaxurl, ajaxdata, function(response) {
|
670 |
+
target.removeClass('loading');
|
671 |
+
content.removeClass('loading');
|
672 |
+
|
673 |
+
/* Check for errors and append if found. */
|
674 |
+
if (response[0] + response[1] == '-1') {
|
675 |
+
form.append(jQuery(response.substr(2, response.length)).hide().fadeIn(200));
|
676 |
+
} else {
|
677 |
+
form.fadeOut(200, function() {
|
678 |
+
form_parent_id = jQuery('#' + form.parent().attr('id'));
|
679 |
+
if (0 == form.parent().children('ul').length) {
|
680 |
+
if (form.parent().hasClass('activity-comments')) {
|
681 |
+
form_parent_id.prepend('<ul></ul>');
|
682 |
+
} else {
|
683 |
+
form_parent_id.parent().append('<ul></ul>');
|
684 |
+
}
|
685 |
+
}
|
686 |
+
|
687 |
+
/* Preceeding whitespace breaks output with jQuery 1.9.0 */
|
688 |
+
var the_comment = jQuery.trim(response);
|
689 |
+
//var addnl_comment = jQuery.trim( response );
|
690 |
+
|
691 |
+
//form.parent().children('ul').append( jQuery( the_comment ).hide().fadeIn( 200 ) );
|
692 |
+
form_parent_id.children('ul').append(jQuery(the_comment).hide().fadeIn(200));
|
693 |
+
|
694 |
+
form.children('textarea').val('');
|
695 |
+
form.parent().parent().addClass('has-comments');
|
696 |
+
});
|
697 |
+
jQuery('.bp-media-ajax-single #' + form.attr('id') + ' textarea').val('');
|
698 |
+
|
699 |
+
/* Increase the "Reply (X)" button count */
|
700 |
+
jQuery('.bp-media-ajax-single #activity-' + form_id[2] + ' a.acomment-reply span').html(Number(jQuery('#activity-' + form_id[2] + ' a.acomment-reply span').html()) + 1);
|
701 |
+
}
|
702 |
+
|
703 |
+
jQuery(target).prop("disabled", false);
|
704 |
+
jQuery(content).prop("disabled", false);
|
705 |
+
});
|
706 |
+
|
707 |
+
return false;
|
708 |
+
}
|
709 |
+
|
710 |
+
/* Deleting an activity comment */
|
711 |
+
if (target.hasClass('acomment-delete')) {
|
712 |
+
var link_href = target.attr('href');
|
713 |
+
var comment_li = target.parent().parent();
|
714 |
+
var form = comment_li.parents('div.activity-comments').children('form');
|
715 |
+
|
716 |
+
var nonce = link_href.split('_wpnonce=');
|
717 |
+
nonce = nonce[1];
|
718 |
+
|
719 |
+
var comment_id = link_href.split('cid=');
|
720 |
+
comment_id = comment_id[1].split('&');
|
721 |
+
comment_id = comment_id[0];
|
722 |
+
|
723 |
+
target.addClass('loading');
|
724 |
+
|
725 |
+
/* Remove any error messages */
|
726 |
+
jQuery('.activity-comments ul .error').remove();
|
727 |
+
|
728 |
+
/* Reset the form position */
|
729 |
+
comment_li.parents('.activity-comments').append(form);
|
730 |
+
|
731 |
+
jQuery.post(ajaxurl, {
|
732 |
+
action: 'delete_activity_comment',
|
733 |
+
'cookie': encodeURIComponent(document.cookie),
|
734 |
+
'_wpnonce': nonce,
|
735 |
+
'id': comment_id
|
736 |
+
},
|
737 |
+
function(response) {
|
738 |
+
/* Check for errors and append if found. */
|
739 |
+
if (response[0] + response[1] == '-1') {
|
740 |
+
comment_li.prepend(jQuery(response.substr(2, response.length)).hide().fadeIn(200));
|
741 |
+
} else {
|
742 |
+
var children = jQuery('#' + comment_li.attr('id') + ' ul').children('li');
|
743 |
+
var child_count = 0;
|
744 |
+
jQuery(children).each(function() {
|
745 |
+
if (!jQuery(this).is(':hidden'))
|
746 |
+
child_count++;
|
747 |
+
});
|
748 |
+
comment_li.fadeOut(200);
|
749 |
+
|
750 |
+
/* Decrease the "Reply (X)" button count */
|
751 |
+
var count_span = jQuery('#' + comment_li.parents('#activity-stream > li').attr('id') + ' a.acomment-reply span');
|
752 |
+
var new_count = count_span.html() - (1 + child_count);
|
753 |
+
count_span.html(new_count);
|
754 |
+
|
755 |
+
/* If that was the last comment for the item, remove the has-comments class to clean up the styling */
|
756 |
+
if (0 == new_count) {
|
757 |
+
jQuery(comment_li.parents('#activity-stream > li')).removeClass('has-comments');
|
758 |
+
}
|
759 |
+
}
|
760 |
+
});
|
761 |
+
|
762 |
+
return false;
|
763 |
+
}
|
764 |
+
|
765 |
+
// Spam an activity stream comment
|
766 |
+
if (target.hasClass('spam-activity-comment')) {
|
767 |
+
var link_href = target.attr('href');
|
768 |
+
var comment_li = target.parent().parent();
|
769 |
+
|
770 |
+
target.addClass('loading');
|
771 |
+
|
772 |
+
// Remove any error messages
|
773 |
+
jQuery('.activity-comments ul div.error').remove();
|
774 |
+
|
775 |
+
// Reset the form position
|
776 |
+
comment_li.parents('.activity-comments').append(comment_li.parents('.activity-comments').children('form'));
|
777 |
+
|
778 |
+
jQuery.post(ajaxurl, {
|
779 |
+
action: 'bp_spam_activity_comment',
|
780 |
+
'cookie': encodeURIComponent(document.cookie),
|
781 |
+
'_wpnonce': link_href.split('_wpnonce=')[1],
|
782 |
+
'id': link_href.split('cid=')[1].split('&')[0]
|
783 |
+
},
|
784 |
+
function(response) {
|
785 |
+
// Check for errors and append if found.
|
786 |
+
if (response[0] + response[1] == '-1') {
|
787 |
+
comment_li.prepend(jQuery(response.substr(2, response.length)).hide().fadeIn(200));
|
788 |
+
|
789 |
+
} else {
|
790 |
+
var children = jQuery('#' + comment_li.attr('id') + ' ul').children('li');
|
791 |
+
var child_count = 0;
|
792 |
+
jQuery(children).each(function() {
|
793 |
+
if (!jQuery(this).is(':hidden')) {
|
794 |
+
child_count++;
|
795 |
+
}
|
796 |
+
});
|
797 |
+
comment_li.fadeOut(200);
|
798 |
+
|
799 |
+
// Decrease the "Reply (X)" button count
|
800 |
+
var parent_li = comment_li.parents('#activity-stream > li');
|
801 |
+
jQuery('#' + parent_li.attr('id') + ' a.acomment-reply span').html(jQuery('#' + parent_li.attr('id') + ' a.acomment-reply span').html() - (1 + child_count));
|
802 |
+
}
|
803 |
+
});
|
804 |
+
|
805 |
+
return false;
|
806 |
+
}
|
807 |
+
|
808 |
+
/* Showing hidden comments - pause for half a second */
|
809 |
+
if (target.parent().hasClass('show-all')) {
|
810 |
+
target.parent().addClass('loading');
|
811 |
+
|
812 |
+
setTimeout(function() {
|
813 |
+
target.parent().parent().children('li').fadeIn(200, function() {
|
814 |
+
target.parent().remove();
|
815 |
+
});
|
816 |
+
}, 600);
|
817 |
+
|
818 |
+
return false;
|
819 |
+
}
|
820 |
+
});
|
821 |
+
|
822 |
+
}
|
823 |
+
|
824 |
+
jQuery('.rtmedia-item-thumbnail a').magnificPopup({type: 'ajax'});
|
825 |
+
|
826 |
+
});
|
827 |
+
|
trunk/app/assets/js/rtMedia.backbone.js
ADDED
@@ -0,0 +1,642 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
var galleryObj;
|
2 |
+
var nextpage = 2;
|
3 |
+
var upload_sync = false;
|
4 |
+
var activity_id = -1;
|
5 |
+
var uploaderObj;
|
6 |
+
var objUploadView ;
|
7 |
+
|
8 |
+
jQuery(function($) {
|
9 |
+
|
10 |
+
|
11 |
+
rtMedia = window.rtMedia || {};
|
12 |
+
|
13 |
+
rtMedia = window.rtMedia || {};
|
14 |
+
|
15 |
+
rtMedia.Context = Backbone.Model.extend({
|
16 |
+
url: function() {
|
17 |
+
var url = rtmedia_media_slug + "/";
|
18 |
+
if (!upload_sync && nextpage > 0)
|
19 |
+
url += 'pg/' + nextpage + '/'
|
20 |
+
return url;
|
21 |
+
},
|
22 |
+
defaults: {
|
23 |
+
"context": "post",
|
24 |
+
"context_id": false
|
25 |
+
}
|
26 |
+
});
|
27 |
+
|
28 |
+
rtMedia.Media = Backbone.Model.extend({
|
29 |
+
defaults: {
|
30 |
+
"id": 0,
|
31 |
+
"blog_id": false,
|
32 |
+
"media_id": false,
|
33 |
+
"media_author": false,
|
34 |
+
"media_title": false,
|
35 |
+
"album_id": false,
|
36 |
+
"media_type": "photo",
|
37 |
+
"activity_id": false,
|
38 |
+
"privacy": 0,
|
39 |
+
"views": 0,
|
40 |
+
"downloads": 0,
|
41 |
+
"ratings_average": 0,
|
42 |
+
"ratings_total": 0,
|
43 |
+
"ratings_count": 0,
|
44 |
+
"likes": 0,
|
45 |
+
"dislikes": 0,
|
46 |
+
"guid": false,
|
47 |
+
"width": 0,
|
48 |
+
"height": 0,
|
49 |
+
"rt_permalink": false
|
50 |
+
// "next" : -1,
|
51 |
+
// "prev" : -1
|
52 |
+
}
|
53 |
+
|
54 |
+
});
|
55 |
+
|
56 |
+
rtMedia.Gallery = Backbone.Collection.extend({
|
57 |
+
model: rtMedia.Media,
|
58 |
+
url: function() {
|
59 |
+
var temp = window.location.pathname;
|
60 |
+
var url = '';
|
61 |
+
if (temp.indexOf("/" + rtmedia_media_slug + "/") == -1) {
|
62 |
+
url = rtmedia_media_slug + '/';
|
63 |
+
} else {
|
64 |
+
if (temp.indexOf('pg/') == -1)
|
65 |
+
url = temp;
|
66 |
+
else
|
67 |
+
url = window.location.pathname.substr(0, window.location.pathname.lastIndexOf("pg/"));
|
68 |
+
}
|
69 |
+
if (!upload_sync && nextpage > 1) {
|
70 |
+
if (url.substr(url.length - 1) != "/")
|
71 |
+
url += "/"
|
72 |
+
url += 'pg/' + nextpage + '/';
|
73 |
+
}
|
74 |
+
return url;
|
75 |
+
},
|
76 |
+
getNext: function(page, el) {
|
77 |
+
var query = {
|
78 |
+
json: true,
|
79 |
+
rtmedia_page: nextpage
|
80 |
+
};
|
81 |
+
el = jQuery(".rtmedia-list").parent().parent();
|
82 |
+
if (el != undefined) {
|
83 |
+
$(el).children("input[type=hidden]").each(function(e) {
|
84 |
+
query[$(this).attr("name")] = $(this).val();
|
85 |
+
});
|
86 |
+
}
|
87 |
+
this.fetch({
|
88 |
+
data: query,
|
89 |
+
success: function(model, response) {
|
90 |
+
nextpage = response.next;
|
91 |
+
var galleryViewObj = new rtMedia.GalleryView({
|
92 |
+
collection: new rtMedia.Gallery(response.data),
|
93 |
+
el: $(".rtmedia-list")[0]
|
94 |
+
});
|
95 |
+
}
|
96 |
+
});
|
97 |
+
},
|
98 |
+
reloadView: function() {
|
99 |
+
upload_sync = true;
|
100 |
+
nextpage = 1;
|
101 |
+
this.getNext();
|
102 |
+
}
|
103 |
+
|
104 |
+
|
105 |
+
});
|
106 |
+
|
107 |
+
rtMedia.MediaView = Backbone.View.extend({
|
108 |
+
tagName: 'li',
|
109 |
+
className: 'rtmedia-list-item',
|
110 |
+
initialize: function() {
|
111 |
+
this.template = _.template($("#rtmedia-gallery-item-template").html());
|
112 |
+
this.model.bind('change', this.render);
|
113 |
+
this.model.bind('remove', this.unrender);
|
114 |
+
this.render();
|
115 |
+
},
|
116 |
+
render: function() {
|
117 |
+
$(this.el).html(this.template(this.model.toJSON()));
|
118 |
+
return this.el;
|
119 |
+
},
|
120 |
+
unrender: function() {
|
121 |
+
$(this.el).remove();
|
122 |
+
},
|
123 |
+
remove: function() {
|
124 |
+
this.model.destroy();
|
125 |
+
}
|
126 |
+
});
|
127 |
+
|
128 |
+
rtMedia.GalleryView = Backbone.View.extend({
|
129 |
+
tagName: 'ul',
|
130 |
+
className: 'rtmedia-list',
|
131 |
+
initialize: function() {
|
132 |
+
this.template = _.template($("#rtmedia-gallery-item-template").html());
|
133 |
+
this.render();
|
134 |
+
},
|
135 |
+
render: function() {
|
136 |
+
|
137 |
+
that = this;
|
138 |
+
|
139 |
+
if (upload_sync) {
|
140 |
+
$(that.el).html('');
|
141 |
+
}
|
142 |
+
|
143 |
+
$.each(this.collection.toJSON(), function(key, media) {
|
144 |
+
$(that.el).append(that.template(media));
|
145 |
+
});
|
146 |
+
if (upload_sync) {
|
147 |
+
upload_sync = false;
|
148 |
+
}
|
149 |
+
if (nextpage > 1) {
|
150 |
+
$("#rtMedia-galary-next").show();
|
151 |
+
}
|
152 |
+
|
153 |
+
|
154 |
+
},
|
155 |
+
appendTo: function(media) {
|
156 |
+
//console.log("append");
|
157 |
+
var mediaView = new rtMedia.MediaView({
|
158 |
+
model: media
|
159 |
+
});
|
160 |
+
$(this.el).append(mediaView.render().el);
|
161 |
+
}
|
162 |
+
});
|
163 |
+
|
164 |
+
|
165 |
+
galleryObj = new rtMedia.Gallery();
|
166 |
+
|
167 |
+
$("body").append('<script id="rtmedia-gallery-item-template" type="text/template"></script>');
|
168 |
+
var o_is_album, o_is_edit_allowed;
|
169 |
+
if (typeof(is_album) == "undefined") {
|
170 |
+
o_is_album = new Array("");
|
171 |
+
} else {
|
172 |
+
o_is_album = is_album
|
173 |
+
}
|
174 |
+
if (typeof(is_edit_allowed) == "undefined") {
|
175 |
+
o_is_edit_allowed = new Array("")
|
176 |
+
} else {
|
177 |
+
o_is_edit_allowed = is_edit_allowed;
|
178 |
+
}
|
179 |
+
$("#rtmedia-gallery-item-template").load(template_url, {
|
180 |
+
backbone: true,
|
181 |
+
is_album: o_is_album,
|
182 |
+
is_edit_allowed: o_is_edit_allowed
|
183 |
+
}, function(response, status, xhr) {
|
184 |
+
|
185 |
+
$(document).on("click", "#rtMedia-galary-next", function(e) {
|
186 |
+
$(this).hide();
|
187 |
+
e.preventDefault();
|
188 |
+
galleryObj.getNext(nextpage, $(this).parent().parent().parent());
|
189 |
+
});
|
190 |
+
});
|
191 |
+
|
192 |
+
|
193 |
+
|
194 |
+
|
195 |
+
if (window.location.pathname.indexOf(rtmedia_media_slug) != -1) {
|
196 |
+
var tempNext = window.location.pathname.substring(window.location.pathname.lastIndexOf("pg/") + 5, window.location.pathname.lastIndexOf("/"));
|
197 |
+
if (isNaN(tempNext) === false) {
|
198 |
+
nextpage = parseInt(tempNext) + 1;
|
199 |
+
}
|
200 |
+
}
|
201 |
+
|
202 |
+
|
203 |
+
|
204 |
+
window.UploadView = Backbone.View.extend({
|
205 |
+
events: {
|
206 |
+
"click #rtMedia-start-upload": "uploadFiles"
|
207 |
+
},
|
208 |
+
initialize: function(config) {
|
209 |
+
this.uploader = new plupload.Uploader(config);
|
210 |
+
},
|
211 |
+
render: function() {
|
212 |
+
|
213 |
+
},
|
214 |
+
initUploader: function(a) {
|
215 |
+
|
216 |
+
if(typeof(a)!=="undefined") a=false;// if rtmediapro widget calls the function, dont show max size note.
|
217 |
+
this.uploader.init();
|
218 |
+
//The plupload HTML5 code gives a negative z-index making add files button unclickable
|
219 |
+
$(".plupload.html5").css({
|
220 |
+
zIndex: 0
|
221 |
+
});
|
222 |
+
$("#rtMedia-upload-button").css({
|
223 |
+
zIndex: 2
|
224 |
+
});
|
225 |
+
if(a!==false)
|
226 |
+
$("#rtMedia-upload-button").after("<span>(Max file size is " + plupload.formatSize(this.uploader.settings.max_file_size) + ")</span>")
|
227 |
+
|
228 |
+
return this;
|
229 |
+
},
|
230 |
+
uploadFiles: function(e) {
|
231 |
+
if (e != undefined)
|
232 |
+
e.preventDefault();
|
233 |
+
this.uploader.start();
|
234 |
+
return false;
|
235 |
+
}
|
236 |
+
|
237 |
+
});
|
238 |
+
|
239 |
+
|
240 |
+
|
241 |
+
if ($("#rtMedia-upload-button").length > 0) {
|
242 |
+
uploaderObj = new UploadView(rtMedia_plupload_config);
|
243 |
+
|
244 |
+
uploaderObj.initUploader();
|
245 |
+
|
246 |
+
|
247 |
+
uploaderObj.uploader.bind('UploadComplete', function(up, files) {
|
248 |
+
activity_id = -1;
|
249 |
+
galleryObj.reloadView();
|
250 |
+
});
|
251 |
+
|
252 |
+
uploaderObj.uploader.bind('FilesAdded', function(up, files) {
|
253 |
+
var upload_size_error = false;
|
254 |
+
var upload_error = "";
|
255 |
+
var upload_error_sep = "";
|
256 |
+
var upload_remove_array= [];
|
257 |
+
$.each(files, function(i, file) {
|
258 |
+
var hook_respo = rtMediaHook.call('rtmedia_js_file_added', [up,file, "#rtMedia-queue-list tbody"]);
|
259 |
+
if( hook_respo == false){
|
260 |
+
file.status = -1;
|
261 |
+
upload_remove_array.push(file.id);
|
262 |
+
return true;
|
263 |
+
}
|
264 |
+
if (uploaderObj.uploader.settings.max_file_size < file.size) {
|
265 |
+
upload_size_error = true
|
266 |
+
upload_error += upload_error_sep + file.name;
|
267 |
+
upload_error_sep = ",";
|
268 |
+
var tr = "<tr style='background-color:lightpink;color:black' id='" + file.id + "'><td>" + file.name + "(" + plupload.formatSize(file.size) + ")" + "</td><td colspan='3'> Max file size is " + plupload.formatSize(uploaderObj.uploader.settings.max_file_size) + "</td></tr>"
|
269 |
+
$("#rtMedia-queue-list tbody").append(tr);
|
270 |
+
return true;
|
271 |
+
}
|
272 |
+
tdName = document.createElement("td");
|
273 |
+
tdName.innerHTML = file.name;
|
274 |
+
tdStatus = document.createElement("td");
|
275 |
+
tdStatus.className = "plupload_file_status";
|
276 |
+
tdStatus.innerHTML = "0%";
|
277 |
+
tdSize = document.createElement("td");
|
278 |
+
tdSize.className = "plupload_file_size";
|
279 |
+
tdSize.innerHTML = plupload.formatSize(file.size);
|
280 |
+
tdDelete = document.createElement("td");
|
281 |
+
tdDelete.innerHTML = "X";
|
282 |
+
tdDelete.title = "Close";
|
283 |
+
tdDelete.className = "close plupload_delete"
|
284 |
+
tr = document.createElement("tr");
|
285 |
+
tr.id = file.id;
|
286 |
+
tr.appendChild(tdName);
|
287 |
+
tr.appendChild(tdStatus);
|
288 |
+
tr.appendChild(tdSize);
|
289 |
+
tr.appendChild(tdDelete);
|
290 |
+
$("#rtMedia-queue-list").append(tr);
|
291 |
+
//Delete Function
|
292 |
+
$("#" + file.id + " td.plupload_delete").click(function(e) {
|
293 |
+
e.preventDefault();
|
294 |
+
//console.log(up.getFile(file.id));
|
295 |
+
uploaderObj.uploader.removeFile(up.getFile(file.id));
|
296 |
+
$("#" + file.id).remove();
|
297 |
+
return false;
|
298 |
+
});
|
299 |
+
|
300 |
+
});
|
301 |
+
$.each(upload_remove_array, function(i, rfile) {
|
302 |
+
up.removeFile(up.getFile(rfile));
|
303 |
+
});
|
304 |
+
|
305 |
+
if (upload_size_error) {
|
306 |
+
// alert(upload_error + " because max file size is " + plupload.formatSize(uploaderObj.uploader.settings.max_file_size) );
|
307 |
+
}
|
308 |
+
});
|
309 |
+
|
310 |
+
uploaderObj.uploader.bind('QueueChanged', function(up) {
|
311 |
+
uploaderObj.uploadFiles()
|
312 |
+
|
313 |
+
});
|
314 |
+
|
315 |
+
uploaderObj.uploader.bind('UploadProgress', function(up, file) {
|
316 |
+
$("#" + file.id + " .plupload_file_status").html(file.percent + "%");
|
317 |
+
if (file.percent == 100) {
|
318 |
+
$("#" + file.id).css("background-color", "lightgreen");
|
319 |
+
$("#" + file.id).css("color", "#000");
|
320 |
+
}
|
321 |
+
});
|
322 |
+
uploaderObj.uploader.bind('BeforeUpload', function(up, file) {
|
323 |
+
up.settings.multipart_params.privacy = $("#rtm-file_upload-ui select.privacy").val();
|
324 |
+
if (jQuery("#rt_upload_hf_redirect").length > 0)
|
325 |
+
up.settings.multipart_params.redirect = up.files.length;
|
326 |
+
jQuery("#rtmedia-uploader-form input[type=hidden]").each(function() {
|
327 |
+
up.settings.multipart_params[$(this).attr("name")] = $(this).val();
|
328 |
+
});
|
329 |
+
up.settings.multipart_params.activity_id = activity_id;
|
330 |
+
if ($('#rtmedia-uploader-form .rtmedia-user-album-list').length > 0)
|
331 |
+
up.settings.multipart_params.album_id = $('#rtmedia-uploader-form .rtmedia-user-album-list').find(":selected").val();
|
332 |
+
else if ($('#rtmedia-uploader-form .rtmedia-current-album').length > 0)
|
333 |
+
up.settings.multipart_params.album_id = $('#rtmedia-uploader-form .rtmedia-current-album').val();
|
334 |
+
});
|
335 |
+
|
336 |
+
uploaderObj.uploader.bind('FileUploaded', function(up, file, res) {
|
337 |
+
|
338 |
+
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { //test for MSIE x.x;
|
339 |
+
var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
|
340 |
+
|
341 |
+
if(ieversion <10) {
|
342 |
+
if( typeof res.response !== "undefined" )
|
343 |
+
res.status = 200;
|
344 |
+
}
|
345 |
+
}
|
346 |
+
var rtnObj;
|
347 |
+
try {
|
348 |
+
|
349 |
+
rtnObj = JSON.parse(res.response);
|
350 |
+
uploaderObj.uploader.settings.multipart_params.activity_id = rtnObj.activity_id;
|
351 |
+
activity_id = rtnObj.activity_id;
|
352 |
+
} catch (e) {
|
353 |
+
// console.log('Invalid Activity ID');
|
354 |
+
}
|
355 |
+
if (res.status == 200 || res.status == 302) {
|
356 |
+
if (uploaderObj.upload_count == undefined)
|
357 |
+
uploaderObj.upload_count = 1;
|
358 |
+
else
|
359 |
+
uploaderObj.upload_count++;
|
360 |
+
|
361 |
+
if (uploaderObj.upload_count == up.files.length && jQuery("#rt_upload_hf_redirect").length > 0 && jQuery.trim(rtnObj.redirect_url.indexOf("http") == 0)) {
|
362 |
+
window.location = rtnObj.redirect_url;
|
363 |
+
}
|
364 |
+
}
|
365 |
+
|
366 |
+
files = up.files;
|
367 |
+
lastfile = files[files.length - 1];
|
368 |
+
|
369 |
+
|
370 |
+
});
|
371 |
+
|
372 |
+
uploaderObj.uploader.refresh();//refresh the uploader for opera/IE fix on media page
|
373 |
+
|
374 |
+
$("#rtMedia-start-upload").click(function(e) {
|
375 |
+
uploaderObj.uploadFiles(e);
|
376 |
+
});
|
377 |
+
$("#rtMedia-start-upload").hide();
|
378 |
+
}
|
379 |
+
|
380 |
+
|
381 |
+
});
|
382 |
+
/** History Code for route
|
383 |
+
|
384 |
+
var rtMediaRouter = Backbone.Router.extend({
|
385 |
+
routes: {
|
386 |
+
"media/*": "getMedia"
|
387 |
+
}
|
388 |
+
});
|
389 |
+
var app_router = new rtMediaRouter;
|
390 |
+
app_router.on('route:getMedia', function() {
|
391 |
+
// Note the variable in the route definition being passed in here
|
392 |
+
});
|
393 |
+
Backbone.history.start({pushState: true});
|
394 |
+
|
395 |
+
**/
|
396 |
+
|
397 |
+
|
398 |
+
/** Activity Update Js **/
|
399 |
+
|
400 |
+
jQuery(document).ready(function($) {
|
401 |
+
if (typeof rtMedia_update_plupload_config == 'undefined') {
|
402 |
+
return false;
|
403 |
+
}
|
404 |
+
var activity_attachemnt_ids = [];
|
405 |
+
if ($("#rtmedia-add-media-button-post-update").length > 0) {
|
406 |
+
$("#whats-new-options").prepend($("#rtmedia-action-update"));
|
407 |
+
if ($("#rtm-file_upload-ui .privacy").length > 0) {
|
408 |
+
$("#rtmedia-action-update").append($("#rtm-file_upload-ui .privacy"));
|
409 |
+
}
|
410 |
+
}
|
411 |
+
objUploadView = new UploadView(rtMedia_update_plupload_config);
|
412 |
+
$("#whats-new-form").on('click', '#rtmedia-add-media-button-post-update', function(e) {
|
413 |
+
$("#div-attache-rtmedia").toggle();
|
414 |
+
objUploadView.uploader.refresh();
|
415 |
+
});
|
416 |
+
//whats-new-post-in
|
417 |
+
|
418 |
+
|
419 |
+
objUploadView.uploader.bind('FilesAdded', function(upl, rfiles) {
|
420 |
+
//$("#aw-whats-new-submit").attr('disabled', 'disabled');
|
421 |
+
objUploadView.upload_remove_array= [];
|
422 |
+
$.each(rfiles, function(i, file) {
|
423 |
+
var hook_respo = rtMediaHook.call('rtmedia_js_file_added', [upl,file, "#rtMedia-update-queue-list"]);
|
424 |
+
if( hook_respo == false){
|
425 |
+
file.status = -1;
|
426 |
+
upload_remove_array.push(file.id);
|
427 |
+
return true;
|
428 |
+
}
|
429 |
+
tdName = document.createElement("span");
|
430 |
+
tdName.innerHTML = file.name;
|
431 |
+
tdStatus = document.createElement("span");
|
432 |
+
tdStatus.className = "plupload_file_status";
|
433 |
+
tdStatus.innerHTML = "0%";
|
434 |
+
tr = document.createElement("p");
|
435 |
+
tr.id = file.id;
|
436 |
+
tr.appendChild(tdName);
|
437 |
+
tr.appendChild(tdStatus);
|
438 |
+
$("#rtMedia-update-queue-list").append(tr);
|
439 |
+
});
|
440 |
+
$.each(objUploadView.upload_remove_array, function(i, rfile) {
|
441 |
+
objUploadView.uploader.removeFile(objUploadView.uploader.getFile(rfile));
|
442 |
+
});
|
443 |
+
});
|
444 |
+
|
445 |
+
objUploadView.uploader.bind('FileUploaded', function(up, file, res) {
|
446 |
+
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { //test for MSIE x.x;
|
447 |
+
var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
|
448 |
+
|
449 |
+
if(ieversion <10) {
|
450 |
+
try {
|
451 |
+
if( typeof JSON.parse(res.response) !== "undefined" )
|
452 |
+
res.status = 200;
|
453 |
+
}
|
454 |
+
catch(e){}
|
455 |
+
}
|
456 |
+
}
|
457 |
+
|
458 |
+
if (res.status == 200) {
|
459 |
+
try {
|
460 |
+
var objIds = JSON.parse(res.response);
|
461 |
+
$.each(objIds, function(key, val) {
|
462 |
+
activity_attachemnt_ids.push(val);
|
463 |
+
if ($("#whats-new-form").find("#rtmedia_attached_id_" + val).length < 1) {
|
464 |
+
$("#whats-new-form").append("<input type='hidden' name='rtMedia_attached_files[]' data-mode='rtMedia-update' id='rtmedia_attached_id_" + val + "' value='"
|
465 |
+
+ val + "' />");
|
466 |
+
}
|
467 |
+
});
|
468 |
+
} catch (e) {
|
469 |
+
|
470 |
+
}
|
471 |
+
}
|
472 |
+
});
|
473 |
+
objUploadView.uploader.bind('BeforeUpload', function(up, files) {
|
474 |
+
|
475 |
+
var object = '';
|
476 |
+
var item_id = jq("#whats-new-post-in").val();
|
477 |
+
if (item_id == undefined)
|
478 |
+
item_id = 0;
|
479 |
+
if (item_id > 0) {
|
480 |
+
object = "group";
|
481 |
+
} else {
|
482 |
+
object = "profile";
|
483 |
+
}
|
484 |
+
|
485 |
+
up.settings.multipart_params.context = object;
|
486 |
+
up.settings.multipart_params.context_id = item_id;
|
487 |
+
up.settings.multipart_params.privacy = jQuery("select.privacy").val();
|
488 |
+
});
|
489 |
+
objUploadView.uploader.bind('UploadComplete', function(up, files) {
|
490 |
+
media_uploading = true;
|
491 |
+
$("#aw-whats-new-submit").click();
|
492 |
+
//$("#aw-whats-new-submit").removeAttr('disabled');
|
493 |
+
});
|
494 |
+
objUploadView.uploader.bind('UploadProgress', function(up, file) {
|
495 |
+
$("#" + file.id + " .plupload_file_status").html(file.percent + "%");
|
496 |
+
|
497 |
+
});
|
498 |
+
|
499 |
+
$("#rtMedia-start-upload").hide();
|
500 |
+
|
501 |
+
objUploadView.initUploader();
|
502 |
+
var change_flag = false
|
503 |
+
var media_uploading = false;
|
504 |
+
$.ajaxPrefilter(function(options, originalOptions, jqXHR) {
|
505 |
+
// Modify options, control originalOptions, store jqXHR, etc
|
506 |
+
try{
|
507 |
+
if (originalOptions.data == null || typeof(originalOptions.data) == "undefined" || typeof(originalOptions.data.action) == "undefined" ) {
|
508 |
+
return true;
|
509 |
+
}
|
510 |
+
}catch(e){
|
511 |
+
return true;
|
512 |
+
}
|
513 |
+
if (originalOptions.data.action == 'post_update') {
|
514 |
+
var temp = activity_attachemnt_ids;
|
515 |
+
while (activity_attachemnt_ids.length > 0) {
|
516 |
+
options.data += "&rtMedia_attached_files[]=" + activity_attachemnt_ids.pop();
|
517 |
+
}
|
518 |
+
options.data += "&rtmedia-privacy=" + jQuery("select.privacy").val();
|
519 |
+
activity_attachemnt_ids = temp;
|
520 |
+
var orignalSuccess = originalOptions.success;
|
521 |
+
options.beforeSend = function() {
|
522 |
+
if ($.trim($("#whats-new").val()) == "") {
|
523 |
+
alert("Please enter some content to post.");
|
524 |
+
$("#aw-whats-new-submit").prop("disabled", true).removeClass('loading');
|
525 |
+
return false;
|
526 |
+
}
|
527 |
+
if (!media_uploading && objUploadView.uploader.files.length > 0) {
|
528 |
+
$("#whats-new-post-in").attr('disabled', 'disabled');
|
529 |
+
$("#rtmedia-add-media-button-post-update").attr('disabled', 'disabled');
|
530 |
+
objUploadView.uploadFiles()
|
531 |
+
media_uploading = true;
|
532 |
+
return false;
|
533 |
+
} else {
|
534 |
+
media_uploading = false;
|
535 |
+
return true;
|
536 |
+
}
|
537 |
+
|
538 |
+
|
539 |
+
}
|
540 |
+
options.success = function(response) {
|
541 |
+
orignalSuccess(response);
|
542 |
+
if (response[0] + response[1] == '-1') {
|
543 |
+
//Error
|
544 |
+
|
545 |
+
} else {
|
546 |
+
jQuery("input[data-mode=rtMedia-update]").remove();
|
547 |
+
while (objUploadView.uploader.files.pop() != undefined) {
|
548 |
+
}
|
549 |
+
objUploadView.uploader.refresh()
|
550 |
+
$('#rtMedia-update-queue-list').html('');
|
551 |
+
$("#div-attache-rtmedia").hide();
|
552 |
+
}
|
553 |
+
$("#whats-new-post-in").removeAttr('disabled');
|
554 |
+
$("#rtmedia-add-media-button-post-update").removeAttr('disabled');
|
555 |
+
|
556 |
+
}
|
557 |
+
}
|
558 |
+
});
|
559 |
+
});
|
560 |
+
/**
|
561 |
+
* rtMedia Comment Js
|
562 |
+
*/
|
563 |
+
jQuery(document).ready(function($) {
|
564 |
+
jQuery(document).on("click", ".mfp-content #rt_media_comment_form #rt_media_comment_submit", function(e) {
|
565 |
+
e.preventDefault();
|
566 |
+
if ($.trim($("#comment_content").val()) == "") {
|
567 |
+
alert("Empty Comment is not allowed");
|
568 |
+
return false;
|
569 |
+
}
|
570 |
+
|
571 |
+
$(this).attr('disabled', 'disabled');
|
572 |
+
|
573 |
+
$.ajax({
|
574 |
+
url: jQuery("#rt_media_comment_form").attr("action"),
|
575 |
+
type: 'post',
|
576 |
+
data: jQuery("#rt_media_comment_form").serialize() + "&rtajax=true",
|
577 |
+
success: function(data) {
|
578 |
+
$(".mfp-content #rtmedia_comment_ul").append(data);
|
579 |
+
$("#comment_content").val("");
|
580 |
+
$(".mfp-content #rt_media_comment_form #rt_media_comment_submit").removeAttr('disabled');
|
581 |
+
}
|
582 |
+
});
|
583 |
+
|
584 |
+
|
585 |
+
|
586 |
+
return false;
|
587 |
+
});
|
588 |
+
|
589 |
+
|
590 |
+
|
591 |
+
$(document).on("click", '.rtmedia-like', function(e) {
|
592 |
+
e.preventDefault();
|
593 |
+
var that = this;
|
594 |
+
$(this).attr('disabled', 'disabled');
|
595 |
+
var url = $(this).parent().attr("action");
|
596 |
+
$(that).prepend("<img src='" + rMedia_loading_file + "' />");
|
597 |
+
$.ajax({
|
598 |
+
url: url,
|
599 |
+
type: 'post',
|
600 |
+
data: "json=true",
|
601 |
+
success: function(data) {
|
602 |
+
try {
|
603 |
+
data = JSON.parse(data);
|
604 |
+
} catch (e) {
|
605 |
+
|
606 |
+
}
|
607 |
+
$(that).html(data.next);
|
608 |
+
$(that).removeAttr('disabled');
|
609 |
+
}
|
610 |
+
});
|
611 |
+
|
612 |
+
|
613 |
+
});
|
614 |
+
$(document).on("click", '.rtmedia-featured', function(e) {
|
615 |
+
e.preventDefault();
|
616 |
+
var that = this;
|
617 |
+
$(this).attr('disabled', 'disabled');
|
618 |
+
var url = $(this).parent().attr("action");
|
619 |
+
$(that).prepend("<img src='" + rMedia_loading_file + "' />");
|
620 |
+
$.ajax({
|
621 |
+
url: url,
|
622 |
+
type: 'post',
|
623 |
+
data: "json=true",
|
624 |
+
success: function(data) {
|
625 |
+
try {
|
626 |
+
data = JSON.parse(data);
|
627 |
+
} catch (e) {
|
628 |
+
|
629 |
+
}
|
630 |
+
$(that).html(data.next);
|
631 |
+
$(that).removeAttr('disabled');
|
632 |
+
}
|
633 |
+
});
|
634 |
+
|
635 |
+
|
636 |
+
});
|
637 |
+
jQuery("#div-attache-rtmedia").find("input[type=file]").each(function() {
|
638 |
+
//$(this).attr("capture", "camera");
|
639 |
+
// $(this).attr("accept", $(this).attr("accept") + ';capture=camera');
|
640 |
+
|
641 |
+
});
|
642 |
+
});
|
trunk/app/assets/js/rtMedia.js
ADDED
@@ -0,0 +1,212 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
var rtMagnificPopup;
|
2 |
+
var rtMediaHook = {
|
3 |
+
hooks: [],
|
4 |
+
is_break : false,
|
5 |
+
register: function(name, callback) {
|
6 |
+
if ('undefined' == typeof(rtMediaHook.hooks[name]))
|
7 |
+
rtMediaHook.hooks[name] = []
|
8 |
+
rtMediaHook.hooks[name].push(callback)
|
9 |
+
},
|
10 |
+
call: function(name, arguments) {
|
11 |
+
if ('undefined' != typeof(rtMediaHook.hooks[name]))
|
12 |
+
for (i = 0; i < rtMediaHook.hooks[name].length; ++i){
|
13 |
+
if (true != rtMediaHook.hooks[name][i](arguments)) {
|
14 |
+
rtMediaHook.is_break=true;
|
15 |
+
return false;
|
16 |
+
break;
|
17 |
+
}
|
18 |
+
}
|
19 |
+
return true;
|
20 |
+
}
|
21 |
+
}
|
22 |
+
jQuery('document').ready(function($) {
|
23 |
+
|
24 |
+
$("#rt_media_comment_form").submit(function(e) {
|
25 |
+
if ($.trim($("#comment_content").val()) == "") {
|
26 |
+
alert("Empty Comment is not allowed");
|
27 |
+
return false;
|
28 |
+
} else {
|
29 |
+
return true;
|
30 |
+
}
|
31 |
+
|
32 |
+
})
|
33 |
+
|
34 |
+
//Remove title from popup duplication
|
35 |
+
$("li.rtmedia-list-item p a").each(function(e) {
|
36 |
+
$(this).addClass("no-popup");
|
37 |
+
})
|
38 |
+
//rtmedia_lightbox_enabled from setting
|
39 |
+
if (typeof(rtmedia_lightbox_enabled) != 'undefined' && rtmedia_lightbox_enabled == "1") {
|
40 |
+
rtMagnificPopup = jQuery('.rtmedia-list-media, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.widget-item-listing,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content').magnificPopup({
|
41 |
+
delegate: 'a:not(".no-popup")',
|
42 |
+
type: 'ajax',
|
43 |
+
tLoading: 'Loading media #%curr%...',
|
44 |
+
mainClass: 'mfp-img-mobile',
|
45 |
+
preload: [1, 3],
|
46 |
+
closeOnBgClick: false,
|
47 |
+
gallery: {
|
48 |
+
enabled: true,
|
49 |
+
navigateByImgClick: true,
|
50 |
+
preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
|
51 |
+
},
|
52 |
+
image: {
|
53 |
+
tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
|
54 |
+
titleSrc: function(item) {
|
55 |
+
return item.el.attr('title') + '<small>by Marsel Van Oosten</small>';
|
56 |
+
}
|
57 |
+
},
|
58 |
+
disableOn: function() {
|
59 |
+
if (jQuery(window).width() < 600) {
|
60 |
+
return false;
|
61 |
+
}
|
62 |
+
return true;
|
63 |
+
},
|
64 |
+
callbacks: {
|
65 |
+
ajaxContentAdded: function() {
|
66 |
+
|
67 |
+
$container = this.content.find('.tagcontainer');
|
68 |
+
if ($container.length > 0) {
|
69 |
+
$context = $container.find('img');
|
70 |
+
$container.find('.tagcontainer').css(
|
71 |
+
{
|
72 |
+
'height': $context.css('height'),
|
73 |
+
'width': $context.css('width')
|
74 |
+
});
|
75 |
+
|
76 |
+
}
|
77 |
+
var settings = {};
|
78 |
+
|
79 |
+
if (typeof _wpmejsSettings !== 'undefined')
|
80 |
+
settings.pluginPath = _wpmejsSettings.pluginPath;
|
81 |
+
|
82 |
+
$('.mfp-content .wp-audio-shortcode,.mfp-content .wp-video-shortcode,.mfp-content .bp_media_content video').mediaelementplayer(settings);
|
83 |
+
$('.mfp-content .mejs-audio .mejs-controls').css('position', 'relative');
|
84 |
+
rtMediaHook.call('rtmedia_js_popup_after_content_added', []);
|
85 |
+
},
|
86 |
+
close: function(e) {
|
87 |
+
//console.log(e);
|
88 |
+
},
|
89 |
+
BeforeChange: function(e) {
|
90 |
+
//console.log(e);
|
91 |
+
}
|
92 |
+
}
|
93 |
+
});
|
94 |
+
}
|
95 |
+
|
96 |
+
jQuery('.rtmedia-container').on('click', '.select-all', function(e) {
|
97 |
+
e.preventDefault();
|
98 |
+
jQuery('.rtmedia-list input').each(function() {
|
99 |
+
jQuery(this).prop('checked', true);
|
100 |
+
});
|
101 |
+
});
|
102 |
+
|
103 |
+
jQuery('.rtmedia-container').on('click', '.unselect-all', function(e) {
|
104 |
+
e.preventDefault();
|
105 |
+
jQuery('.rtmedia-list input').each(function() {
|
106 |
+
jQuery(this).prop('checked', false);
|
107 |
+
});
|
108 |
+
});
|
109 |
+
|
110 |
+
jQuery('.rtmedia-container').on('click', '.rtmedia-move', function(e) {
|
111 |
+
jQuery('.rtmedia-delete-container').slideUp();
|
112 |
+
jQuery('.rtmedia-move-container').slideToggle();
|
113 |
+
});
|
114 |
+
|
115 |
+
jQuery('.rtmedia-container').on('click', '.rtmedia-merge', function(e) {
|
116 |
+
jQuery('.rtmedia-merge-container').slideToggle();
|
117 |
+
});
|
118 |
+
|
119 |
+
jQuery('.rtmedia-container').on('click', '.rtmedia-create-new-album-button', function(e) {
|
120 |
+
jQuery('.rtmedia-create-new-album-container').slideToggle();
|
121 |
+
});
|
122 |
+
|
123 |
+
jQuery('.rtmedia-container').on('click', '#rtmedia_create_new_album', function(e) {
|
124 |
+
$albumname = jQuery.trim(jQuery('#rtmedia_album_name').val());
|
125 |
+
$context = jQuery.trim(jQuery('#rtmedia_album_context').val());
|
126 |
+
$context_id = jQuery.trim(jQuery('#rtmedia_album_context_id').val());
|
127 |
+
if ($albumname != '') {
|
128 |
+
var data = {
|
129 |
+
action: 'rtmedia_create_album',
|
130 |
+
name: $albumname,
|
131 |
+
context: $context,
|
132 |
+
context_id: $context_id
|
133 |
+
};
|
134 |
+
|
135 |
+
// since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
|
136 |
+
$("#rtmedia_create_new_album").attr('disabled', 'disabled');
|
137 |
+
var old_val = $("#rtmedia_create_new_album").html();
|
138 |
+
$("#rtmedia_create_new_album").prepend("<img src='" + rMedia_loading_file + "'/>");
|
139 |
+
jQuery.post(rtmedia_ajax_url, data, function(response) {
|
140 |
+
response = response.trim();
|
141 |
+
if (response) {
|
142 |
+
response = response.trim();
|
143 |
+
var flag = true;
|
144 |
+
jQuery('.rtmedia-user-album-list').each(function() {
|
145 |
+
jQuery(this).children('optgroup').each(function(){
|
146 |
+
if(jQuery(this).attr('value') === $context) {
|
147 |
+
flag = false;
|
148 |
+
jQuery(this).append('<option value="' + response + '">' + $albumname + '</option>');
|
149 |
+
return;
|
150 |
+
}
|
151 |
+
});
|
152 |
+
if(flag) {
|
153 |
+
var label = $context.charAt(0).toUpperCase() + $context .slice(1);
|
154 |
+
var opt_html = '<optgroup value="' + $context + '" label="' + label + ' Albums"><option value="' + response + '">' + $albumname + '</option></optgroup>';
|
155 |
+
jQuery(this).append(opt_html);
|
156 |
+
}
|
157 |
+
|
158 |
+
});
|
159 |
+
jQuery('select.rtmedia-user-album-list option[value="' + response + '"]').prop('selected', true);
|
160 |
+
jQuery('.rtmedia-create-new-album-container').slideToggle();
|
161 |
+
jQuery('#rtmedia_album_name').val("");
|
162 |
+
jQuery(".rtmedia-create-new-album-button").after("<span class='rtmedia-success rtmedia-create-album-alert'><b>" + $albumname + "</b> album created.</span>");
|
163 |
+
setTimeout(function() {
|
164 |
+
jQuery(".rtmedia-create-album-alert").remove()
|
165 |
+
}, 4000);
|
166 |
+
|
167 |
+
} else {
|
168 |
+
alert('Something went wrong. Please try again.');
|
169 |
+
}
|
170 |
+
$("#rtmedia_create_new_album").removeAttr('disabled');
|
171 |
+
$("#rtmedia_create_new_album").html(old_val);
|
172 |
+
});
|
173 |
+
} else {
|
174 |
+
alert('Enter an album name');
|
175 |
+
}
|
176 |
+
});
|
177 |
+
|
178 |
+
jQuery('.rtmedia-container').on('click', '.rtmedia-delete-selected', function(e) {
|
179 |
+
jQuery('.rtmedia-bulk-actions').attr('action', '../../../media/delete');
|
180 |
+
});
|
181 |
+
|
182 |
+
jQuery('.rtmedia-container').on('click', '.rtmedia-move-selected', function(e) {
|
183 |
+
jQuery('.rtmedia-bulk-actions').attr('action', '');
|
184 |
+
});
|
185 |
+
|
186 |
+
function rtmedia_media_view_counts() {
|
187 |
+
//var view_count_action = jQuery('#rtmedia-media-view-form').attr("action");
|
188 |
+
if(jQuery('#rtmedia-media-view-form').length > 0 ) {
|
189 |
+
var url = jQuery('#rtmedia-media-view-form').attr("action");
|
190 |
+
jQuery.post(url,
|
191 |
+
{
|
192 |
+
|
193 |
+
},function(data){
|
194 |
+
|
195 |
+
});
|
196 |
+
}
|
197 |
+
}
|
198 |
+
|
199 |
+
rtmedia_media_view_counts();
|
200 |
+
rtMediaHook.register('rtmedia_js_popup_after_content_added',
|
201 |
+
function() {
|
202 |
+
rtmedia_media_view_counts();
|
203 |
+
return true;
|
204 |
+
}
|
205 |
+
);
|
206 |
+
|
207 |
+
});
|
208 |
+
|
209 |
+
//Legacy media element for old activities
|
210 |
+
function bp_media_create_element(id) {
|
211 |
+
return false;
|
212 |
+
}
|
trunk/app/assets/sass/config.rb
ADDED
@@ -0,0 +1,25 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
require 'zurb-foundation'
|
2 |
+
# Require any additional compass plugins here.
|
3 |
+
|
4 |
+
# Set this to the root of your project when deployed:
|
5 |
+
http_path = "/"
|
6 |
+
css_dir = "../css"
|
7 |
+
sass_dir = "./"
|
8 |
+
images_dir = "../img"
|
9 |
+
javascripts_dir = "javascripts"
|
10 |
+
|
11 |
+
# You can select your preferred output style here (can be overridden via the command line):
|
12 |
+
output_style = :compressed
|
13 |
+
|
14 |
+
# To enable relative paths to assets via compass helper functions. Uncomment:
|
15 |
+
# relative_assets = true
|
16 |
+
|
17 |
+
# To disable debugging comments that display the original location of your selectors. Uncomment:
|
18 |
+
line_comments = false
|
19 |
+
|
20 |
+
|
21 |
+
# If you prefer the indented syntax, you might want to regenerate this
|
22 |
+
# project again passing --syntax sass, or you can uncomment this:
|
23 |
+
# preferred_syntax = :sass
|
24 |
+
# and then run:
|
25 |
+
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
|
trunk/app/assets/sass/main.scss
ADDED
@@ -0,0 +1,433 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
@import "compass/css3";
|
2 |
+
.rtmedia-container{
|
3 |
+
@import "compass/reset";
|
4 |
+
@import "foundation/components/global"; // *always required
|
5 |
+
@import "foundation/components/grid";
|
6 |
+
@import "foundation/components/visibility";
|
7 |
+
@import "foundation/components/flex-video";
|
8 |
+
#buddypress{
|
9 |
+
li{
|
10 |
+
list-style:none;
|
11 |
+
}
|
12 |
+
}
|
13 |
+
.row{
|
14 |
+
max-width:95%;
|
15 |
+
}
|
16 |
+
.rtmedia-item-title{
|
17 |
+
text-align:center;
|
18 |
+
h4{
|
19 |
+
text-overflow: ellipsis;
|
20 |
+
white-space: nowrap;
|
21 |
+
width: 100%;
|
22 |
+
overflow: hidden;
|
23 |
+
font-size:1.1em;
|
24 |
+
text-align:center;
|
25 |
+
}
|
26 |
+
}
|
27 |
+
.rtmedia-success{
|
28 |
+
display: block;
|
29 |
+
padding: 10px;
|
30 |
+
border: 1px solid #008000;
|
31 |
+
background-color: #90EE90;
|
32 |
+
@include border-radius(4px);
|
33 |
+
}
|
34 |
+
padding:5px;
|
35 |
+
margin: 0;
|
36 |
+
clear:left;
|
37 |
+
h2 {
|
38 |
+
font-size:1.4em;
|
39 |
+
font-weight:bold;
|
40 |
+
line-height: 2.4em;
|
41 |
+
}
|
42 |
+
|
43 |
+
.drag-drop{
|
44 |
+
border: 4px dashed #DDD;
|
45 |
+
text-align: center;
|
46 |
+
background: #fafafa;
|
47 |
+
overflow: hidden;
|
48 |
+
padding: 15px 0;
|
49 |
+
&.dragover{
|
50 |
+
border-color: #83b4d8;
|
51 |
+
}
|
52 |
+
}
|
53 |
+
|
54 |
+
.rtmedia-action-update{
|
55 |
+
float: left;
|
56 |
+
margin-top: 12px;
|
57 |
+
margin-right: 10px;
|
58 |
+
}
|
59 |
+
|
60 |
+
|
61 |
+
.rtmedia-list {
|
62 |
+
list-style: none;
|
63 |
+
.rtmedia-list-item {
|
64 |
+
word-wrap: break-word;
|
65 |
+
margin:10px;
|
66 |
+
float:left;
|
67 |
+
list-style:none;
|
68 |
+
a {
|
69 |
+
text-decoration:none;
|
70 |
+
h4 {
|
71 |
+
line-height:1.4em;
|
72 |
+
font-size:1.2em;
|
73 |
+
padding-top:10px;
|
74 |
+
}
|
75 |
+
}
|
76 |
+
}
|
77 |
+
.rtmedia-list-item.media-type-music, .rtmedia-list-item.media-type-video {
|
78 |
+
width: 100%;
|
79 |
+
.mejs-controls {
|
80 |
+
.mejs-time-rail {
|
81 |
+
margin: 8px 2px 2px 0;
|
82 |
+
}
|
83 |
+
}
|
84 |
+
}
|
85 |
+
}
|
86 |
+
|
87 |
+
.rtmedia-media img {
|
88 |
+
max-width: 100%;
|
89 |
+
}
|
90 |
+
|
91 |
+
.rtmedia-item-thumbnail {
|
92 |
+
text-align: center;
|
93 |
+
img {
|
94 |
+
vertical-align: middle;
|
95 |
+
}
|
96 |
+
}
|
97 |
+
.rtmedia_next_prev{
|
98 |
+
clear:both;
|
99 |
+
a{
|
100 |
+
display: block;
|
101 |
+
clear: both;
|
102 |
+
background-color: #E9E9E9;
|
103 |
+
padding: 10px;
|
104 |
+
text-align: center;
|
105 |
+
text-decoration: none;
|
106 |
+
color: #000;
|
107 |
+
margin: 15px;
|
108 |
+
}
|
109 |
+
}
|
110 |
+
.rtmedia-item-comments-container {
|
111 |
+
margin: 3% 3%;
|
112 |
+
}
|
113 |
+
|
114 |
+
.rtmedia-comment {
|
115 |
+
list-style: none;
|
116 |
+
background: #f6f6f6;
|
117 |
+
border: 1px solid #ddd;
|
118 |
+
-moz-border-radius: 3px;
|
119 |
+
border-radius: 3px;
|
120 |
+
margin: 5px 0;
|
121 |
+
padding: 1px 5px 25px;
|
122 |
+
width: 391px;
|
123 |
+
max-width:100%;
|
124 |
+
|
125 |
+
.rtmedia-comment-author {
|
126 |
+
display: block;
|
127 |
+
}
|
128 |
+
|
129 |
+
.rtmedia-comment-content {
|
130 |
+
display: block;
|
131 |
+
}
|
132 |
+
|
133 |
+
.rtmedia-comment-date {
|
134 |
+
display: block;
|
135 |
+
float: right;
|
136 |
+
}
|
137 |
+
}
|
138 |
+
|
139 |
+
.rtmedia-bp-header {
|
140 |
+
width: 460px;
|
141 |
+
margin: auto;
|
142 |
+
}
|
143 |
+
|
144 |
+
#div-attache-rtmedia{
|
145 |
+
display:none;
|
146 |
+
}
|
147 |
+
#rtMedia-update-queue-list{
|
148 |
+
p{
|
149 |
+
span{
|
150 |
+
margin-right:20px;
|
151 |
+
}
|
152 |
+
}
|
153 |
+
}
|
154 |
+
.rtmedia-move-container {
|
155 |
+
display: none;
|
156 |
+
}
|
157 |
+
#rtmedia-add-media-button-post-update{
|
158 |
+
float: left;
|
159 |
+
margin-top: 10px;
|
160 |
+
margin-right: 20px;
|
161 |
+
}
|
162 |
+
#whats-new-post-in-box{
|
163 |
+
float:left;
|
164 |
+
}
|
165 |
+
.rtmedia-activity-text{
|
166 |
+
display:block;
|
167 |
+
padding-bottom:10px;
|
168 |
+
}
|
169 |
+
.rtmedia-merge-container{
|
170 |
+
display: none;
|
171 |
+
}
|
172 |
+
.rtmedia-create-new-album-container{
|
173 |
+
display: none;
|
174 |
+
}
|
175 |
+
select{
|
176 |
+
width: auto;
|
177 |
+
}
|
178 |
+
&.rtmedia-single-container{
|
179 |
+
.row{
|
180 |
+
background-color: #FFF;
|
181 |
+
#rtmedia-single-media-container{
|
182 |
+
padding-top: 10px;
|
183 |
+
padding-bottom: 10px;
|
184 |
+
.rtmedia-media{
|
185 |
+
div.mejs-layers{
|
186 |
+
div.mejs-poster{
|
187 |
+
overflow: hidden
|
188 |
+
}
|
189 |
+
}
|
190 |
+
.mejs-layers .mejs-overlay-button{
|
191 |
+
margin: -50px 0 0 -50px;
|
192 |
+
}
|
193 |
+
.mejs-layers .mejs-poster {
|
194 |
+
overflow: hidden;
|
195 |
+
}
|
196 |
+
}
|
197 |
+
.rtmedia-media-title {
|
198 |
+
margin: 0 0 5px 0;
|
199 |
+
display: block;
|
200 |
+
font-weight: bold;
|
201 |
+
letter-spacing: 1px;
|
202 |
+
}
|
203 |
+
}
|
204 |
+
.rtmedia-single-meta{
|
205 |
+
div{
|
206 |
+
&.userprofile{
|
207 |
+
float: left;
|
208 |
+
padding: 10px;
|
209 |
+
}
|
210 |
+
&.username{
|
211 |
+
padding: 10px;
|
212 |
+
}
|
213 |
+
}
|
214 |
+
padding: 10px;
|
215 |
+
button{
|
216 |
+
color: #5E5E5E;
|
217 |
+
background-color: #EBEBEB;
|
218 |
+
background-repeat: repeat-x;
|
219 |
+
background-image: -moz-linear-gradient(top, #F9F9F9, #EBEBEB);
|
220 |
+
background-image: -ms-linear-gradient(top, #F9F9F9, #EBEBEB);
|
221 |
+
background-image: -webkit-linear-gradient(top, #F9F9F9, #EBEBEB);
|
222 |
+
background-image: -o-linear-gradient(top, #F9F9F9, #EBEBEB);
|
223 |
+
background-image: linear-gradient(top, #F9F9F9, #EBEBEB);
|
224 |
+
}
|
225 |
+
&>a{
|
226 |
+
float: left;
|
227 |
+
margin:10px;
|
228 |
+
}
|
229 |
+
.rtmedia-item-actions{
|
230 |
+
&>a{
|
231 |
+
display: inline-block;
|
232 |
+
float:left;
|
233 |
+
}
|
234 |
+
&>form{
|
235 |
+
float:left;
|
236 |
+
margin-right: 5px;
|
237 |
+
}
|
238 |
+
.rtmedia-action-buttons{
|
239 |
+
span{
|
240 |
+
background: #EEE;
|
241 |
+
@include border-radius(50%);
|
242 |
+
border: 1px solid #CCC;
|
243 |
+
color: #999;
|
244 |
+
display: inline;
|
245 |
+
font-size: 70%;
|
246 |
+
margin-left: 2px;
|
247 |
+
margin-right: 2px;
|
248 |
+
padding: 3px 6px;
|
249 |
+
text-align: center;
|
250 |
+
vertical-align: middle;
|
251 |
+
|
252 |
+
}
|
253 |
+
}
|
254 |
+
}
|
255 |
+
}
|
256 |
+
.rtmedia-item-comments{
|
257 |
+
background-color:transparent;
|
258 |
+
div{
|
259 |
+
background-color:transparent;
|
260 |
+
}
|
261 |
+
}
|
262 |
+
}
|
263 |
+
}
|
264 |
+
|
265 |
+
#wp-description-editor-tools{
|
266 |
+
a.wp-switch-editor{
|
267 |
+
margin: 5px 5px 0 0;
|
268 |
+
padding: 4px 5px 2px;
|
269 |
+
float: right;
|
270 |
+
cursor: pointer;
|
271 |
+
border: 1px solid;
|
272 |
+
border-color: #DFDFDF #DFDFDF #CCC;
|
273 |
+
font: 13px/18px Arial,Helvetica,sans-serif normal;
|
274 |
+
height:auto;
|
275 |
+
}
|
276 |
+
}
|
277 |
+
#description_toolbargroup .mceToolbar td{
|
278 |
+
padding:0px;
|
279 |
+
}
|
280 |
+
#wp-description-editor-container{
|
281 |
+
border-width: 1px;
|
282 |
+
border-style: solid;
|
283 |
+
-webkit-border-top-right-radius: 3px;
|
284 |
+
-webkit-border-top-left-radius: 3px;
|
285 |
+
border-top-right-radius: 3px;
|
286 |
+
border-top-left-radius: 3px;
|
287 |
+
border-color: #CCC #CCC #DFDFDF;
|
288 |
+
}
|
289 |
+
.rtmedia-change-cover-arts {
|
290 |
+
p {
|
291 |
+
padding: 5px 0;
|
292 |
+
}
|
293 |
+
}
|
294 |
+
}
|
295 |
+
.rtmedia-activity-container {
|
296 |
+
@extend .rtmedia-container;
|
297 |
+
}
|
298 |
+
#buddypress{
|
299 |
+
div{
|
300 |
+
&.rtmedia-activity-container {
|
301 |
+
@extend .rtmedia-container;
|
302 |
+
ul{
|
303 |
+
&.rtmedia-list{
|
304 |
+
li{
|
305 |
+
float:left;
|
306 |
+
padding:10px;
|
307 |
+
.rtmedia-item-thumbnail{
|
308 |
+
overflow:hidden;
|
309 |
+
}
|
310 |
+
|
311 |
+
&.media-type-video{
|
312 |
+
float:none;
|
313 |
+
.rtmedia-item-thumbnail{
|
314 |
+
margin : 0 auto;
|
315 |
+
overflow:hidden;
|
316 |
+
.mejs-overlay-button{
|
317 |
+
margin: -50px 0 0 -50px;
|
318 |
+
}
|
319 |
+
}
|
320 |
+
}
|
321 |
+
}
|
322 |
+
}
|
323 |
+
}
|
324 |
+
}
|
325 |
+
}
|
326 |
+
}
|
327 |
+
|
328 |
+
|
329 |
+
#buddypress, .rtmedia-container {
|
330 |
+
.mejs-controls {
|
331 |
+
button {
|
332 |
+
padding: 4px 8px;
|
333 |
+
border: none;
|
334 |
+
background: rgba(0, 0, 0, 0) url('../../../lib/media-element/controls.png') no-repeat;
|
335 |
+
}
|
336 |
+
.mejs-play {
|
337 |
+
button {
|
338 |
+
background-position: 0 0;
|
339 |
+
}
|
340 |
+
}
|
341 |
+
.mejs-pause {
|
342 |
+
button {
|
343 |
+
background-position: 0 -16px;
|
344 |
+
}
|
345 |
+
}
|
346 |
+
.mejs-unmute {
|
347 |
+
button {
|
348 |
+
background-position: -16px 0;
|
349 |
+
}
|
350 |
+
}
|
351 |
+
.mejs-mute {
|
352 |
+
button {
|
353 |
+
background-position: -16px -16px;
|
354 |
+
}
|
355 |
+
}
|
356 |
+
.mejs-fullscreen-button {
|
357 |
+
button {
|
358 |
+
background-position: -32px 0;
|
359 |
+
}
|
360 |
+
}
|
361 |
+
.mejs-unfullscreen {
|
362 |
+
button{
|
363 |
+
background-position: -32px -16px;
|
364 |
+
}
|
365 |
+
}
|
366 |
+
}
|
367 |
+
}
|
368 |
+
|
369 |
+
.mfp-content{
|
370 |
+
#rtmedia-single-media-container{
|
371 |
+
.rtmedia-media{
|
372 |
+
text-align: center;
|
373 |
+
background-color: #333;
|
374 |
+
img{
|
375 |
+
max-height: 95%;
|
376 |
+
}
|
377 |
+
}
|
378 |
+
}
|
379 |
+
}
|
380 |
+
|
381 |
+
|
382 |
+
#rtmedia-action-update{
|
383 |
+
float: left;
|
384 |
+
padding-right: 10px;
|
385 |
+
}
|
386 |
+
#header{
|
387 |
+
z-index:1 !important;
|
388 |
+
}
|
389 |
+
|
390 |
+
.bp_media_content{
|
391 |
+
video{
|
392 |
+
background-color:black;
|
393 |
+
}
|
394 |
+
}
|
395 |
+
.rtmedia-success{
|
396 |
+
display: block;
|
397 |
+
padding: 10px;
|
398 |
+
@include border-radius(4px);
|
399 |
+
background-color: #2ECC71;
|
400 |
+
color:white;
|
401 |
+
}
|
402 |
+
.rtmedia-error{
|
403 |
+
color:white;
|
404 |
+
display: block;
|
405 |
+
padding: 10px;
|
406 |
+
@include border-radius(4px);
|
407 |
+
background-color: #E74C3C;
|
408 |
+
}
|
409 |
+
.rtmp-uploaded-file {
|
410 |
+
width: 100%;
|
411 |
+
}
|
412 |
+
.close {
|
413 |
+
cursor: pointer;
|
414 |
+
color : red;
|
415 |
+
}
|
416 |
+
|
417 |
+
button.mfp-arrow,button.mfp-arrow:active {
|
418 |
+
margin-top:-30px;
|
419 |
+
}
|
420 |
+
|
421 |
+
button.mfp-close {
|
422 |
+
margin-top:-10px;
|
423 |
+
}
|
424 |
+
|
425 |
+
#object-nav,#group-admins,.item-list-tabs{
|
426 |
+
li{
|
427 |
+
list-style:none;
|
428 |
+
}
|
429 |
+
}
|
430 |
+
|
431 |
+
.mejs-video .mejs-controls {
|
432 |
+
position: abosulute;
|
433 |
+
}
|
trunk/app/assets/sass/settings.scss
ADDED
@@ -0,0 +1,80 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
#bp-media-settings-boxes{
|
2 |
+
@import "foundation/components/global"; // *always required
|
3 |
+
@import "foundation/components/section";
|
4 |
+
margin: 0;
|
5 |
+
.has-switch {
|
6 |
+
border-radius: 0
|
7 |
+
}
|
8 |
+
.has-switch label {
|
9 |
+
padding: 6px;
|
10 |
+
border-radius: 0;
|
11 |
+
}
|
12 |
+
.has-switch span.switch-left {
|
13 |
+
border-radius: 0;
|
14 |
+
}
|
15 |
+
.has-switch span.switch-right {
|
16 |
+
border-radius: 0;
|
17 |
+
}
|
18 |
+
.rtmedia-setting-text-box {
|
19 |
+
width: 55px;
|
20 |
+
text-align: right;
|
21 |
+
}
|
22 |
+
.section-container {
|
23 |
+
section {
|
24 |
+
.title {
|
25 |
+
a {
|
26 |
+
font-size: 13px;
|
27 |
+
text-decoration: none;
|
28 |
+
font-weight: bold;
|
29 |
+
color: #555;
|
30 |
+
&:hover {
|
31 |
+
color: #000;
|
32 |
+
}
|
33 |
+
}
|
34 |
+
}
|
35 |
+
}
|
36 |
+
section.active {
|
37 |
+
.title {
|
38 |
+
a {
|
39 |
+
color: #000;
|
40 |
+
}
|
41 |
+
}
|
42 |
+
}
|
43 |
+
.rtmedia-size-content-setting {
|
44 |
+
.rt-form-dimension {
|
45 |
+
input[type="text"] {
|
46 |
+
margin-left: 32px;
|
47 |
+
}
|
48 |
+
span {
|
49 |
+
margin-left: 36px;
|
50 |
+
}
|
51 |
+
}
|
52 |
+
}
|
53 |
+
}
|
54 |
+
.section-container.vertical-tabs, .section-container.auto {
|
55 |
+
section {
|
56 |
+
.title {
|
57 |
+
a {
|
58 |
+
font-size: 13px;
|
59 |
+
}
|
60 |
+
}
|
61 |
+
}
|
62 |
+
section.active {
|
63 |
+
.title {
|
64 |
+
a {
|
65 |
+
color: #000;
|
66 |
+
}
|
67 |
+
}
|
68 |
+
}
|
69 |
+
}
|
70 |
+
.global-album-settings {
|
71 |
+
.default-global-albums {
|
72 |
+
padding: 5px 0;
|
73 |
+
overflow: hidden;
|
74 |
+
&:hover {
|
75 |
+
background-color: #EEE;
|
76 |
+
}
|
77 |
+
}
|
78 |
+
}
|
79 |
+
}
|
80 |
+
|
trunk/app/helper/BPMediaBranding.php
ADDED
@@ -0,0 +1,23 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Description of BPMediaBranding
|
5 |
+
*
|
6 |
+
* @package BuddyPressMedia
|
7 |
+
* @subpackage Admin
|
8 |
+
*
|
9 |
+
* @author Gagandeep Singh <gagandeep.singh@rtcamp.com>
|
10 |
+
* @author Joshua Abenazer <joshua.abenazer@rtcamp.com>
|
11 |
+
*/
|
12 |
+
if (!class_exists('BPMediaBranding')) {
|
13 |
+
|
14 |
+
class BPMediaBranding {
|
15 |
+
|
16 |
+
public function __construct() {
|
17 |
+
;
|
18 |
+
}
|
19 |
+
|
20 |
+
}
|
21 |
+
|
22 |
+
}
|
23 |
+
?>
|
trunk/app/helper/BPMediaLog.php
ADDED
@@ -0,0 +1,86 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Logs a given message with an optional context string and timestamp
|
5 |
+
*
|
6 |
+
* @author Saurabh Shukla <saurabh.shukla@rtcamp.com>
|
7 |
+
*/
|
8 |
+
if (!class_exists('BPMediaLog')) {
|
9 |
+
|
10 |
+
class BPMediaLog {
|
11 |
+
/**
|
12 |
+
* Formats and logs the error message
|
13 |
+
*
|
14 |
+
* @param any $msg The message to log
|
15 |
+
* @param string $context The context string, optional
|
16 |
+
* @return boolean True if successful
|
17 |
+
*/
|
18 |
+
|
19 |
+
/**
|
20 |
+
*
|
21 |
+
* @param type $msg
|
22 |
+
* @param string $context
|
23 |
+
* @param string $log_file
|
24 |
+
* @return type
|
25 |
+
*/
|
26 |
+
public function __construct($msg, $context = '', $log_file = '') {
|
27 |
+
$log_msg = $this->log_msg($msg, $context = '');
|
28 |
+
if ($log_file == '') {
|
29 |
+
$log_file = RTMEDIA_PATH . 'log/rtmedia.log';
|
30 |
+
}
|
31 |
+
return $this->log($log_msg, $log_file);
|
32 |
+
}
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Formats the message
|
36 |
+
*
|
37 |
+
* @param any $msg The message to format
|
38 |
+
* @param string $context The context string, optional
|
39 |
+
* @return string The formatted log entry
|
40 |
+
*/
|
41 |
+
|
42 |
+
/**
|
43 |
+
*
|
44 |
+
* @param type $msg
|
45 |
+
* @param type $context
|
46 |
+
* @return type
|
47 |
+
*/
|
48 |
+
function log_msg($msg, $context = '') {
|
49 |
+
$logmsg = gmdate("Y-m-d H:i:s ") . " | ";
|
50 |
+
if ($context) {
|
51 |
+
$logmsg .= $context . " | ";
|
52 |
+
}
|
53 |
+
if (!is_string($msg)) {
|
54 |
+
$msg = var_export($msg, false);
|
55 |
+
}
|
56 |
+
$logmsg .= $msg;
|
57 |
+
return $logmsg;
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Logs the entry to the log file
|
62 |
+
*
|
63 |
+
* @param string $logmsg The formatted log entry
|
64 |
+
* @param string $file The log file's path
|
65 |
+
* @return boolean Success
|
66 |
+
*/
|
67 |
+
|
68 |
+
/**
|
69 |
+
*
|
70 |
+
* @param type $logmsg
|
71 |
+
* @param type $file
|
72 |
+
* @return boolean
|
73 |
+
*/
|
74 |
+
public function log($logmsg, $file) {
|
75 |
+
$fp = fopen(RTMEDIA_PATH . 'plugin.log', "a+");
|
76 |
+
if ($fp) {
|
77 |
+
fwrite($fp, "\n" . $logmsg);
|
78 |
+
fclose($fp);
|
79 |
+
}
|
80 |
+
return true;
|
81 |
+
}
|
82 |
+
|
83 |
+
}
|
84 |
+
|
85 |
+
}
|
86 |
+
?>
|
trunk/app/helper/RTMediaAddon.php
ADDED
@@ -0,0 +1,210 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Description of RTMediaAddon
|
5 |
+
*
|
6 |
+
* @package rtMedia
|
7 |
+
* @subpackage Admin
|
8 |
+
*
|
9 |
+
* @author Gagandeep Singh <gagandeep.singh@rtcamp.com>
|
10 |
+
* @author Joshua Abenazer <joshua.abenazer@rtcamp.com>
|
11 |
+
*/
|
12 |
+
if (!class_exists('RTMediaAddon')) {
|
13 |
+
|
14 |
+
class RTMediaAddon {
|
15 |
+
|
16 |
+
public $enquiry_link = 'http://rtcamp.com/contact/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media';
|
17 |
+
|
18 |
+
public function coming_soon_div() {
|
19 |
+
return
|
20 |
+
'<div class="coming-soon coming-soon-l"></div>
|
21 |
+
<a class="coming-soon coming-soon-r" href="' . $this->enquiry_link . '" target="_blank">'
|
22 |
+
//<a></a>
|
23 |
+
. '</a>';
|
24 |
+
}
|
25 |
+
|
26 |
+
public static function render_addons($page = '') {
|
27 |
+
global $wp_settings_sections, $wp_settings_fields;
|
28 |
+
|
29 |
+
if ( ! isset( $wp_settings_sections ) || !isset( $wp_settings_sections[$page] ) )
|
30 |
+
return;
|
31 |
+
|
32 |
+
foreach ( (array) $wp_settings_sections[$page] as $section ) {
|
33 |
+
|
34 |
+
if ( $section['callback'] )
|
35 |
+
call_user_func( $section['callback'], $section );
|
36 |
+
|
37 |
+
if ( ! isset( $wp_settings_fields ) || !isset( $wp_settings_fields[$page] ) || !isset( $wp_settings_fields[$page][$section['id']] ) )
|
38 |
+
continue;
|
39 |
+
|
40 |
+
echo '<table class="form-table">';
|
41 |
+
do_settings_fields( $page, $section['id'] );
|
42 |
+
echo '</table>';
|
43 |
+
}
|
44 |
+
}
|
45 |
+
|
46 |
+
public function get_addons() {
|
47 |
+
|
48 |
+
$tabs = array();
|
49 |
+
global $rtmedia_admin;
|
50 |
+
$tabs[] = array(
|
51 |
+
'title' => 'Audio/Video Encoding',
|
52 |
+
'name' => __('Audio/Video Encoding', 'rtmedia'),
|
53 |
+
'href' => '#rtm-services',
|
54 |
+
'callback' => array($rtmedia_admin->rtmedia_encoding, 'encoding_service_intro')
|
55 |
+
);
|
56 |
+
$tabs[] = array(
|
57 |
+
'title' => 'Plugins',
|
58 |
+
'name' => __('Plugins', 'rtmedia'),
|
59 |
+
'href' => '#rtm-plugins',
|
60 |
+
'callback' => array($this, 'plugins_content')
|
61 |
+
);
|
62 |
+
|
63 |
+
/* $tabs[] = array(
|
64 |
+
'title' => 'Themes',
|
65 |
+
'name' => __('Themes', 'rtmedia'),
|
66 |
+
'href' => '#bpm-themes',
|
67 |
+
'callback' => array($this, 'themes_content')
|
68 |
+
);*/
|
69 |
+
|
70 |
+
?>
|
71 |
+
<div id="rtm-addons">
|
72 |
+
<ul>
|
73 |
+
<?php
|
74 |
+
foreach ($tabs as $tab) {?>
|
75 |
+
<li><a id="tab-<?php echo substr ( $tab[ 'href' ], 1 ); ?>" title="<?php echo $tab['title'] ?>" href="<?php echo $tab['href']; ?>" class="rtmedia-tab-title"><?php echo $tab['name']; ?></a></li>
|
76 |
+
<?php }
|
77 |
+
?>
|
78 |
+
</ul>
|
79 |
+
|
80 |
+
<?php
|
81 |
+
foreach ($tabs as $tab) {
|
82 |
+
echo '<div id="' . substr($tab['href'],1) . '">';
|
83 |
+
call_user_func($tab['callback']);
|
84 |
+
echo '</div>';
|
85 |
+
}
|
86 |
+
?>
|
87 |
+
</div>
|
88 |
+
<?php
|
89 |
+
}
|
90 |
+
|
91 |
+
|
92 |
+
public function plugins_content($args = '') {
|
93 |
+
|
94 |
+
$addons = array(
|
95 |
+
array(
|
96 |
+
'title' => __('rtMedia Photo Tagging', 'rtmedia'),
|
97 |
+
'img_src' => 'http://rtcamp.com/wp-content/uploads/2013/04/bpm-photo-tagging.png',
|
98 |
+
'product_link' => 'http://rtcamp.com/store/buddypress-media-photo-tagging/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
99 |
+
'desc' => '<p>' . __('rtMedia Photo Tagging add-on enables tagging on photos uploaded using BuddyPress Media.', 'rtmedia') . '</p>
|
100 |
+
<p><strong>' . __('Important', 'rtmedia') . ':</strong> ' . __('You need to have ImageMagick installed on your server for this addon to work.', 'rtmedia') . '</p>',
|
101 |
+
'price' => '$49',
|
102 |
+
'demo_link' => 'http://demo.rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
103 |
+
'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=37506'
|
104 |
+
),
|
105 |
+
array(
|
106 |
+
'title' => __('rtMedia Instagram', 'rtmedia'),
|
107 |
+
'img_src' => 'http://cdn.rtcamp.com/wp-content/uploads/2013/03/BuddyPressMedia-Instagram.png',
|
108 |
+
'product_link' => 'http://rtcamp.com/store/buddypress-media-instagram/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
109 |
+
'desc' => '<p>' . __('rtMedia Instagram adds Instagram like filters to images uploaded with rtMedia.', 'rtmedia') . '</p>
|
110 |
+
<p><strong>' . __('Important', 'rtmedia') . ':</strong> ' . __('You need to have ImageMagick installed on your server for this addon to work.', 'rtmedia') . '</p>',
|
111 |
+
'price' => '$49',
|
112 |
+
'demo_link' => 'http://demo.rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
113 |
+
'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=34379'
|
114 |
+
),
|
115 |
+
array(
|
116 |
+
'title' => __('rtMedia Kaltura Add-on', 'rtmedia'),
|
117 |
+
'img_src' => 'http://cdn.rtcamp.com/files/2012/10/new-buddypress-media-kaltura-logo-240x184.png',
|
118 |
+
'product_link' => 'http://rtcamp.com/store/buddypress-media-kaltura/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
119 |
+
'desc' => '<p>' . __('Add support for more video formats using Kaltura video solution.', 'rtmedia') . '</p>
|
120 |
+
<p>' . __('Works with Kaltura.com, self-hosted Kaltura-CE and Kaltura-on-premise.', 'rtmedia') . '</p>',
|
121 |
+
'price' => '$149',
|
122 |
+
'demo_link' => 'http://demo.rtcamp.com/bpm-kaltura/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
123 |
+
'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=15446'
|
124 |
+
),
|
125 |
+
array(
|
126 |
+
'title' => __('rtMedia FFMPEG Add-on', 'rtmedia'),
|
127 |
+
'img_src' => 'http://cdn.rtcamp.com/files/2012/09/ffmpeg-logo-240x184.png',
|
128 |
+
'product_link' => 'http://rtcamp.com/store/buddypress-media-ffmpeg-converter/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
129 |
+
'desc' => '<p>' . __('Add supports for more audio & video formats using open-source media-node.', 'rtmedia') . '</p>
|
130 |
+
<p>' . __('Media node comes with automated setup script for Ubuntu/Debian.', 'rtmedia') . '</p>',
|
131 |
+
'price' => '$99',
|
132 |
+
'demo_link' => 'http://demo.rtcamp.com/bpm-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
133 |
+
'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=13677'
|
134 |
+
)
|
135 |
+
);
|
136 |
+
$addons = apply_filters('rtmedia_addons', $addons);
|
137 |
+
|
138 |
+
foreach ($addons as $key => $value) {
|
139 |
+
|
140 |
+
if($key == 0) {
|
141 |
+
echo '<h3>';
|
142 |
+
_e('rtMedia Addons for Photos');
|
143 |
+
echo '</h3>';
|
144 |
+
} else if($key == 2) {
|
145 |
+
echo '<h3>';
|
146 |
+
_e('rtMedia Addons for Audio/Video');
|
147 |
+
echo '</h3>';
|
148 |
+
}
|
149 |
+
$this->addon($value);
|
150 |
+
}
|
151 |
+
}
|
152 |
+
|
153 |
+
public function services_content($args = '') {
|
154 |
+
|
155 |
+
|
156 |
+
$objEncoding->encoding_service_intro();
|
157 |
+
}
|
158 |
+
|
159 |
+
public function themes_content($args = '') {
|
160 |
+
echo '<h3>Coming Soon !!</h3>';
|
161 |
+
}
|
162 |
+
|
163 |
+
|
164 |
+
|
165 |
+
/**
|
166 |
+
*
|
167 |
+
* @global type $rtmedia
|
168 |
+
* @param type $args
|
169 |
+
*/
|
170 |
+
public function addon($args) {
|
171 |
+
global $rtmedia;
|
172 |
+
|
173 |
+
$defaults = array(
|
174 |
+
'title' => '',
|
175 |
+
'img_src' => '',
|
176 |
+
'product_link' => '',
|
177 |
+
'desc' => '',
|
178 |
+
'price' => '',
|
179 |
+
'demo_link' => '',
|
180 |
+
'buy_now' => '',
|
181 |
+
'coming_soon' => false,
|
182 |
+
);
|
183 |
+
$args = wp_parse_args($args, $defaults);
|
184 |
+
extract($args);
|
185 |
+
|
186 |
+
$coming_soon ? ' coming-soon' : '';
|
187 |
+
|
188 |
+
$coming_soon_div = ($coming_soon) ? $this->coming_soon_div() : '';
|
189 |
+
$addon = '<div class="bp-media-addon">
|
190 |
+
<a href="' . $product_link . '" title="' . $title . '" target="_blank">
|
191 |
+
<img width="240" height="184" title="' . $title . '" alt="' . $title . '" src="' . $img_src . '">
|
192 |
+
</a>
|
193 |
+
<h4><a href="' . $product_link . '" title="' . $title . '" target="_blank">' . $title . '</a></h4>
|
194 |
+
<div class="product_desc">
|
195 |
+
' . $desc . '
|
196 |
+
</div>
|
197 |
+
<div class="product_footer">
|
198 |
+
<span class="price alignleft"><span class="amount">' . $price . '</span></span>
|
199 |
+
<a class="add_to_cart_button alignright product_type_simple" href="' . $buy_now . '" target="_blank">' . __('Buy Now', 'rtmedia') . '</a>
|
200 |
+
<a class="alignleft product_demo_link" href="' . $demo_link . '" title="' . $title . '" target="_blank">' . __('Live Demo', 'rtmedia') . '</a>
|
201 |
+
</div>'
|
202 |
+
. $coming_soon_div .
|
203 |
+
'</div>';
|
204 |
+
echo $addon;
|
205 |
+
}
|
206 |
+
|
207 |
+
}
|
208 |
+
|
209 |
+
}
|
210 |
+
?>
|
trunk/app/helper/RTMediaAdminWidget.php
ADDED
@@ -0,0 +1,36 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Description of RTMediaWidget
|
4 |
+
*
|
5 |
+
* @author Gagandeep Singh <gagandeep.singh@rtcamp.com>
|
6 |
+
* @author Joshua Abenazer <joshua.abenazer@rtcamp.com>
|
7 |
+
*/
|
8 |
+
if (!class_exists('RTMediaAdminWidget')) {
|
9 |
+
|
10 |
+
class RTMediaAdminWidget {
|
11 |
+
|
12 |
+
/**
|
13 |
+
*
|
14 |
+
* @global type $rtmedia
|
15 |
+
* @param type $id
|
16 |
+
* @param type $title
|
17 |
+
* @param type $content
|
18 |
+
*/
|
19 |
+
public function __construct($id = NULL, $title = NULL, $content = NULL) {
|
20 |
+
global $rtmedia;
|
21 |
+
if ($id) {
|
22 |
+
?>
|
23 |
+
<div class="postbox" id="<?php echo $id; ?>"><?php if ($title) { ?>
|
24 |
+
<h3 class="hndle"><span><?php echo $title; ?></span></h3><?php }
|
25 |
+
?>
|
26 |
+
<div class="inside"><?php echo $content; ?></div>
|
27 |
+
</div><?php
|
28 |
+
} else {
|
29 |
+
trigger_error(__('Argument missing. id is required.', 'rtmedia'));
|
30 |
+
}
|
31 |
+
}
|
32 |
+
|
33 |
+
}
|
34 |
+
|
35 |
+
}
|
36 |
+
?>
|
trunk/app/helper/RTMediaCommentModel.php
ADDED
@@ -0,0 +1,44 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* To change this template, choose Tools | Templates
|
5 |
+
* and open the template in the editor.
|
6 |
+
*/
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Description of RTMediaCommentModel
|
10 |
+
*
|
11 |
+
* @author Udit Desai <udit.desai@rtcamp.com>
|
12 |
+
*/
|
13 |
+
class RTMediaCommentModel {
|
14 |
+
|
15 |
+
public function __construct() {
|
16 |
+
//initialization
|
17 |
+
}
|
18 |
+
|
19 |
+
function insert($attr) {
|
20 |
+
return wp_insert_comment($attr);
|
21 |
+
}
|
22 |
+
|
23 |
+
function update($attr) {
|
24 |
+
|
25 |
+
return wp_update_comment($attr, ARRAY_A);
|
26 |
+
}
|
27 |
+
|
28 |
+
function get($where) {
|
29 |
+
|
30 |
+
return get_comments($where);
|
31 |
+
}
|
32 |
+
|
33 |
+
function get_by_id($id) {
|
34 |
+
|
35 |
+
return get_comment($id);
|
36 |
+
}
|
37 |
+
|
38 |
+
function delete($id) {
|
39 |
+
|
40 |
+
return wp_delete_comment($id);
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
?>
|
trunk/app/helper/RTMediaFeed.php
ADDED
@@ -0,0 +1,62 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Description of RTMediaFeed
|
5 |
+
*
|
6 |
+
* @author Gagandeep Singh <gagandeep.singh@rtcamp.com>
|
7 |
+
* @author Joshua Abenazer <joshua.abenazer@rtcamp.com>
|
8 |
+
*/
|
9 |
+
class RTMediaFeed {
|
10 |
+
|
11 |
+
public $feed_url = 'http://rtcamp.com/tag/buddypress/feed/';
|
12 |
+
|
13 |
+
public function __construct($feed_url = '') {
|
14 |
+
if ($feed_url)
|
15 |
+
$this->feed_url = $feed_url;
|
16 |
+
}
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Get BuddyPress Media Feed from rtCamp.com
|
20 |
+
*/
|
21 |
+
|
22 |
+
/**
|
23 |
+
*
|
24 |
+
* @global type $rtmedia
|
25 |
+
*/
|
26 |
+
public function fetch_feed() {
|
27 |
+
global $rtmedia;
|
28 |
+
// Get RSS Feed(s)
|
29 |
+
require_once( ABSPATH . WPINC . '/feed.php' );
|
30 |
+
$maxitems = 0;
|
31 |
+
// Get a SimplePie feed object from the specified feed source.
|
32 |
+
$rss = fetch_feed($this->feed_url);
|
33 |
+
if (!is_wp_error($rss)) { // Checks that the object is created correctly
|
34 |
+
// Figure out how many total items there are, but limit it to 5.
|
35 |
+
// $maxitems = $rss->get_item_quantity(5);
|
36 |
+
$maxitems = $rss->get_item_quantity(3);
|
37 |
+
|
38 |
+
// Build an array of all the items, starting with element 0 (first element).
|
39 |
+
$rss_items = $rss->get_items(0, $maxitems);
|
40 |
+
}
|
41 |
+
?>
|
42 |
+
<ul><?php
|
43 |
+
if ($maxitems == 0) {
|
44 |
+
echo '<li>' . __('No items', 'rtmedia') . '.</li>';
|
45 |
+
} else {
|
46 |
+
// Loop through each feed item and display each item as a hyperlink.
|
47 |
+
foreach ($rss_items as $item) {
|
48 |
+
?>
|
49 |
+
<li>
|
50 |
+
<a href='<?php echo $item->get_permalink(); ?>?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media' title='<?php echo __('Posted ', 'rtmedia') . $item->get_date('j F Y | g:i a'); ?>'><?php echo $item->get_title(); ?></a>
|
51 |
+
</li><?php
|
52 |
+
}
|
53 |
+
}
|
54 |
+
?>
|
55 |
+
</ul><?php
|
56 |
+
if (DOING_AJAX) {
|
57 |
+
die();
|
58 |
+
}
|
59 |
+
}
|
60 |
+
|
61 |
+
}
|
62 |
+
?>
|
trunk/app/helper/RTMediaInteractionModel.php
ADDED
@@ -0,0 +1,47 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* To change this template, choose Tools | Templates
|
5 |
+
* and open the template in the editor.
|
6 |
+
*/
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Description of RTMediaInteractionModel
|
10 |
+
*
|
11 |
+
* @author ritz
|
12 |
+
*/
|
13 |
+
class RTMediaInteractionModel extends RTDBModel {
|
14 |
+
|
15 |
+
function __construct () {
|
16 |
+
parent::__construct ( 'rtm_media_interaction' );
|
17 |
+
}
|
18 |
+
|
19 |
+
function check($user_id = "", $media_id = "", $action = "") {
|
20 |
+
if($user_id == "" || $media_id == "" || $action == "")
|
21 |
+
return false;
|
22 |
+
$columns = array(
|
23 |
+
'user_id' => $user_id,
|
24 |
+
'media_id' => $media_id,
|
25 |
+
'action' => $action
|
26 |
+
);
|
27 |
+
$results = $this->get($columns);
|
28 |
+
if($results)
|
29 |
+
return true;
|
30 |
+
else
|
31 |
+
return false;
|
32 |
+
}
|
33 |
+
|
34 |
+
function get_row($user_id = "", $media_id = "", $action = "") {
|
35 |
+
if($user_id == "" || $media_id == "" || $action == "")
|
36 |
+
return false;
|
37 |
+
$columns = array(
|
38 |
+
'user_id' => $user_id,
|
39 |
+
'media_id' => $media_id,
|
40 |
+
'action' => $action
|
41 |
+
);
|
42 |
+
$results = $this->get($columns);
|
43 |
+
return $results;
|
44 |
+
}
|
45 |
+
}
|
46 |
+
|
47 |
+
?>
|
trunk/app/helper/RTMediaModel.php
ADDED
@@ -0,0 +1,249 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Description of BPMediaModel
|
5 |
+
*
|
6 |
+
* @author joshua
|
7 |
+
*/
|
8 |
+
class RTMediaModel extends RTDBModel {
|
9 |
+
|
10 |
+
function __construct () {
|
11 |
+
parent::__construct ( 'rtm_media' );
|
12 |
+
$this->meta_table_name = "rt_rtm_media_meta";
|
13 |
+
}
|
14 |
+
|
15 |
+
/**
|
16 |
+
*
|
17 |
+
* @param type $name
|
18 |
+
* @param type $arguments
|
19 |
+
* @return type
|
20 |
+
*/
|
21 |
+
function __call ( $name, $arguments ) {
|
22 |
+
$result = parent::__call ( $name, $arguments );
|
23 |
+
if ( ! $result[ 'result' ] ) {
|
24 |
+
$result[ 'result' ] = $this->populate_results_fallback ( $name, $arguments );
|
25 |
+
}
|
26 |
+
return $result;
|
27 |
+
}
|
28 |
+
|
29 |
+
/**
|
30 |
+
*
|
31 |
+
* @global type $wpdb
|
32 |
+
* @param type $columns
|
33 |
+
* @param type $offset
|
34 |
+
* @param type $per_page
|
35 |
+
* @param type $order_by
|
36 |
+
* @return type
|
37 |
+
*/
|
38 |
+
function get ( $columns, $offset = false, $per_page = false, $order_by = 'media_id desc' ) {
|
39 |
+
global $wpdb;
|
40 |
+
$select = "SELECT * FROM {$this->table_name}";
|
41 |
+
$join = "";
|
42 |
+
$where = " where 2=2 ";
|
43 |
+
$temp = 65;
|
44 |
+
foreach ( $columns as $colname => $colvalue ) {
|
45 |
+
if ( strtolower ( $colname ) == "meta_query" ) {
|
46 |
+
foreach ( $colvalue as $meta_query ) {
|
47 |
+
if ( ! isset ( $meta_query[ "compare" ] ) ) {
|
48 |
+
$meta_query[ "compare" ] = "=";
|
49 |
+
}
|
50 |
+
$tbl_alias = chr ( $temp ++ );
|
51 |
+
$join .= " LEFT JOIN {$wpdb->prefix}{$this->meta_table_name} as {$tbl_alias} ON {$this->table_name}.id = {$tbl_alias}.media_id ";
|
52 |
+
if ( isset ( $meta_query[ "value" ] ) )
|
53 |
+
$where .= " AND ({$tbl_alias}.meta_key = '{$meta_query[ "key" ]}' and {$tbl_alias}.meta_value {$meta_query[ "compare" ]} '{$meta_query[ "value" ]}' ) ";
|
54 |
+
else
|
55 |
+
$where .= " AND {$tbl_alias}.meta_key = '{$meta_query[ "key" ]}' ";
|
56 |
+
}
|
57 |
+
} else {
|
58 |
+
if ( is_array ( $colvalue ) ) {
|
59 |
+
if ( ! isset ( $colvalue[ 'compare' ] ) )
|
60 |
+
$compare = 'IN';
|
61 |
+
else
|
62 |
+
$compare = $colvalue[ 'compare' ];
|
63 |
+
if ( ! isset ( $colvalue[ 'value' ] ) ) {
|
64 |
+
$colvalue[ 'value' ] = $colvalue;
|
65 |
+
}
|
66 |
+
$col_val_comapare = ($colvalue[ 'value' ]) ? '(\'' . implode ( "','", $colvalue[ 'value' ] ) . '\')' : '';
|
67 |
+
$where .= " AND {$this->table_name}.{$colname} {$compare} {$col_val_comapare}";
|
68 |
+
}
|
69 |
+
else
|
70 |
+
$where .= " AND {$this->table_name}.{$colname} = '{$colvalue}'";
|
71 |
+
}
|
72 |
+
}
|
73 |
+
$qorder_by = " ORDER BY {$this->table_name}.$order_by";
|
74 |
+
|
75 |
+
$join = apply_filters ( 'rtmedia-model-join-query', $join, $this->table_name );
|
76 |
+
$where = apply_filters ( 'rtmedia-model-where-query', $where, $this->table_name );
|
77 |
+
$qorder_by = apply_filters ( 'rtmedia-model-order-by-query', $qorder_by, $this->table_name );
|
78 |
+
|
79 |
+
$sql = $select . $join . $where .$qorder_by;
|
80 |
+
if ( is_integer ( $offset ) && is_integer ( $per_page ) ) {
|
81 |
+
$sql .= ' LIMIT ' . $offset . ',' . $per_page;
|
82 |
+
}
|
83 |
+
|
84 |
+
return $wpdb->get_results ( $sql );
|
85 |
+
}
|
86 |
+
|
87 |
+
/**
|
88 |
+
*
|
89 |
+
* @param type $name
|
90 |
+
* @param type $arguments
|
91 |
+
* @return type
|
92 |
+
*/
|
93 |
+
function populate_results_fallback ( $name, $arguments ) {
|
94 |
+
$result[ 'result' ] = false;
|
95 |
+
if ( 'get_by_media_id' == $name && isset ( $arguments[ 0 ] ) && $arguments[ 0 ] ) {
|
96 |
+
|
97 |
+
$result[ 'result' ][ 0 ]->media_id = $arguments[ 0 ];
|
98 |
+
|
99 |
+
$post_type = get_post_field ( 'post_type', $arguments[ 0 ] );
|
100 |
+
if ( 'attachment' == $post_type ) {
|
101 |
+
$post_mime_type = explode ( '/', get_post_field ( 'post_mime_type', $arguments[ 0 ] ) );
|
102 |
+
$result[ 'result' ][ 0 ]->media_type = $post_mime_type[ 0 ];
|
103 |
+
} elseif ( 'bp_media_album' == $post_type ) {
|
104 |
+
$result[ 'result' ][ 0 ]->media_type = 'bp_media_album';
|
105 |
+
} else {
|
106 |
+
$result[ 'result' ][ 0 ]->media_type = false;
|
107 |
+
}
|
108 |
+
|
109 |
+
$result[ 'result' ][ 0 ]->context_id = intval ( get_post_meta ( $arguments[ 0 ], 'bp-media-key', true ) );
|
110 |
+
if ( $result[ 'result' ][ 0 ]->context_id > 0 )
|
111 |
+
$result[ 'result' ][ 0 ]->context = 'profile';
|
112 |
+
else
|
113 |
+
$result[ 'result' ][ 0 ]->context = 'group';
|
114 |
+
|
115 |
+
$result[ 'result' ][ 0 ]->activity_id = get_post_meta ( $arguments[ 0 ], 'bp_media_child_activity', true );
|
116 |
+
|
117 |
+
$result[ 'result' ][ 0 ]->privacy = get_post_meta ( $arguments[ 0 ], 'bp_media_privacy', true );
|
118 |
+
}
|
119 |
+
return $result[ 'result' ];
|
120 |
+
}
|
121 |
+
|
122 |
+
/**
|
123 |
+
*
|
124 |
+
* @param type $columns
|
125 |
+
* @param type $offset
|
126 |
+
* @param type $per_page
|
127 |
+
* @param type $order_by
|
128 |
+
* @return type
|
129 |
+
*/
|
130 |
+
function get_media ( $columns, $offset = false, $per_page = false, $order_by = 'media_id desc' ) {
|
131 |
+
if ( is_multisite () ) {
|
132 |
+
$results = $this->get ( $columns, $offset, $per_page, "blog_id ," . $order_by );
|
133 |
+
} else {
|
134 |
+
$results = $this->get ( $columns, $offset, $per_page, $order_by );
|
135 |
+
}
|
136 |
+
return $results;
|
137 |
+
}
|
138 |
+
|
139 |
+
function get_user_albums ( $author_id, $offset, $per_page, $order_by = 'media_id desc' ) {
|
140 |
+
global $wpdb;
|
141 |
+
if ( is_multisite () )
|
142 |
+
$order_by = "blog_id ," . $order_by;
|
143 |
+
|
144 |
+
$sql = "SELECT * FROM {$this->table_name} WHERE (id IN(SELECT DISTINCT (album_id)
|
145 |
+
FROM {$this->table_name}
|
146 |
+
WHERE media_author = $author_id
|
147 |
+
AND album_id IS NOT NULL
|
148 |
+
AND media_type <> 'album' AND context <> 'group') OR (media_author = $author_id ))
|
149 |
+
AND media_type = 'album'
|
150 |
+
AND (context <> 'group' or context is NULL) ";
|
151 |
+
$sql .= " ORDER BY {$this->table_name}.$order_by";
|
152 |
+
|
153 |
+
if ( is_integer ( $offset ) && is_integer ( $per_page ) ) {
|
154 |
+
$sql .= ' LIMIT ' . $offset . ',' . $per_page;
|
155 |
+
}
|
156 |
+
|
157 |
+
$results = $wpdb->get_results ( $sql );
|
158 |
+
return $results;
|
159 |
+
}
|
160 |
+
|
161 |
+
function get_group_albums ( $group_id, $offset, $per_page, $order_by = 'media_id desc' ) {
|
162 |
+
global $wpdb;
|
163 |
+
if ( is_multisite () )
|
164 |
+
$order_by = "blog_id ," . $order_by;
|
165 |
+
$sql = "SELECT * FROM {$this->table_name} WHERE id IN(SELECT DISTINCT (album_id) FROM {$this->table_name} WHERE context_id = $group_id AND album_id IS NOT NULL AND media_type != 'album' AND context = 'group') OR (media_type = 'album' AND context_id = $group_id AND context = 'group')";
|
166 |
+
$sql .= " ORDER BY {$this->table_name}.$order_by";
|
167 |
+
|
168 |
+
if ( is_integer ( $offset ) && is_integer ( $per_page ) ) {
|
169 |
+
$sql .= ' LIMIT ' . $offset . ',' . $per_page;
|
170 |
+
}
|
171 |
+
$results = $wpdb->get_results ( $sql );
|
172 |
+
return $results;
|
173 |
+
}
|
174 |
+
|
175 |
+
function get_counts ( $user_id = false, $where_query = false ) {
|
176 |
+
|
177 |
+
if ( ! $user_id && ! $where_query )
|
178 |
+
return false;
|
179 |
+
global $wpdb, $rtmedia;
|
180 |
+
|
181 |
+
$query =
|
182 |
+
"SELECT {$this->table_name}.privacy, ";
|
183 |
+
foreach ( $rtmedia->allowed_types as $type ) {
|
184 |
+
$query .= "SUM(CASE WHEN {$this->table_name}.media_type LIKE '{$type[ 'name' ]}' THEN 1 ELSE 0 END) as {$type[ 'name' ]}, ";
|
185 |
+
}
|
186 |
+
$query .= "SUM(CASE WHEN {$this->table_name}.media_type LIKE 'album' THEN 1 ELSE 0 END) as album
|
187 |
+
FROM
|
188 |
+
{$this->table_name} WHERE 2=2 ";
|
189 |
+
|
190 |
+
if ( $where_query ) {
|
191 |
+
foreach ( $where_query as $colname => $colvalue ) {
|
192 |
+
if ( strtolower ( $colname ) != "meta_query" ) {
|
193 |
+
if ( is_array ( $colvalue ) ) {
|
194 |
+
if ( ! isset ( $colvalue[ 'compare' ] ) )
|
195 |
+
$compare = 'IN';
|
196 |
+
else
|
197 |
+
$compare = $colvalue[ 'compare' ];
|
198 |
+
if ( ! isset ( $colvalue[ 'value' ] ) ) {
|
199 |
+
$colvalue[ 'value' ] = $colvalue;
|
200 |
+
}
|
201 |
+
|
202 |
+
$query .= " AND {$this->table_name}.{$colname} {$compare} ('" . implode ( "','", $colvalue[ 'value' ] ) . "')";
|
203 |
+
} else {
|
204 |
+
|
205 |
+
if ( $colname == "context" && $colvalue == "profile" ) {
|
206 |
+
$query .= " AND {$this->table_name}.{$colname} <> 'group'";
|
207 |
+
} else {
|
208 |
+
$query .= " AND {$this->table_name}.{$colname} = '{$colvalue}'";
|
209 |
+
}
|
210 |
+
}
|
211 |
+
}
|
212 |
+
}
|
213 |
+
}
|
214 |
+
$query .= "GROUP BY privacy";
|
215 |
+
$result = $wpdb->get_results ( $query );
|
216 |
+
if ( ! is_array ( $result ) )
|
217 |
+
return false;
|
218 |
+
return $result;
|
219 |
+
}
|
220 |
+
|
221 |
+
function get_other_album_count ( $profile_id, $context = "profile" ) {
|
222 |
+
$global = RTMediaAlbum::get_globals ();
|
223 |
+
$sql = "select distinct album_id from {$this->table_name} where 2=2 AND context = '{$context}' ";
|
224 |
+
if ( is_array ( $global ) && count ( $global ) > 0 ) {
|
225 |
+
$sql .= " and album_id in (";
|
226 |
+
$sep = "";
|
227 |
+
foreach ( $global as $id ) {
|
228 |
+
$sql .= $sep . $id;
|
229 |
+
$sep = ",";
|
230 |
+
}
|
231 |
+
$sql .= ")";
|
232 |
+
}
|
233 |
+
if ( $context == "profile" ) {
|
234 |
+
$sql .= " AND media_author=$profile_id ";
|
235 |
+
} else if ( $context == "group" ) {
|
236 |
+
$sql .= " AND context_id=$profile_id ";
|
237 |
+
}
|
238 |
+
global $wpdb;
|
239 |
+
$result = $wpdb->get_results ( $sql );
|
240 |
+
if ( isset ( $result ) ) {
|
241 |
+
return count ( $result );
|
242 |
+
} else {
|
243 |
+
return 0;
|
244 |
+
}
|
245 |
+
}
|
246 |
+
|
247 |
+
}
|
248 |
+
|
249 |
+
?>
|
trunk/app/helper/RTMediaSettings.php
ADDED
@@ -0,0 +1,255 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Description of RTMediaSettings
|
5 |
+
*
|
6 |
+
* @author Gagandeep Singh <gagandeep.singh@rtcamp.com>
|
7 |
+
* @author Joshua Abenazer <joshua.abenazer@rtcamp.com>
|
8 |
+
*/
|
9 |
+
if (!class_exists('RTMediaSettings')) {
|
10 |
+
|
11 |
+
class RTMediaSettings {
|
12 |
+
|
13 |
+
public function __construct() {
|
14 |
+
if (!(defined('DOING_AJAX') && DOING_AJAX))
|
15 |
+
add_action('admin_init', array($this, 'settings'));
|
16 |
+
// if (is_multisite()) {
|
17 |
+
// add_action('network_admin_notices', array($this, 'privacy_notice'));
|
18 |
+
// } else {
|
19 |
+
// add_action('admin_notices', array($this, 'privacy_notice'));
|
20 |
+
// }
|
21 |
+
}
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Register Settings
|
25 |
+
*
|
26 |
+
* @global string 'rtmedia'
|
27 |
+
*/
|
28 |
+
function sanitize_options($options) {
|
29 |
+
|
30 |
+
global $rtmedia;
|
31 |
+
|
32 |
+
$defaults = array(
|
33 |
+
'general_enableAlbums' => 0,
|
34 |
+
'general_enableComments' => 0,
|
35 |
+
'general_downloadButton' => 0,
|
36 |
+
'general_enableLightbox' => 0,
|
37 |
+
'general_perPageMedia' => 10,
|
38 |
+
'general_enableMediaEndPoint' => 0,
|
39 |
+
'general_showAdminMenu' => 0,
|
40 |
+
'general_videothumbs' => 2,
|
41 |
+
'general_uniqueviewcount' => 0,
|
42 |
+
'general_viewcount' => 0
|
43 |
+
);
|
44 |
+
|
45 |
+
$defaults = apply_filters('rtmedia_general_content_default_values', $defaults);
|
46 |
+
foreach ($rtmedia->allowed_types as $type) {
|
47 |
+
// invalid keys handled in sanitize method
|
48 |
+
$defaults['allowedTypes_' . $type['name'] . '_enabled'] = 0;
|
49 |
+
$defaults['allowedTypes_' . $type['name'] . '_featured'] = 0;
|
50 |
+
}
|
51 |
+
|
52 |
+
/* Previous Sizes values from buddypress is migrated */
|
53 |
+
foreach ($rtmedia->default_sizes as $type => $typeValue) {
|
54 |
+
foreach ($typeValue as $size => $sizeValue) {
|
55 |
+
foreach ($sizeValue as $dimension => $value) {
|
56 |
+
$defaults['defaultSizes_' . $type . '_' . $size . '_' . $dimension] = 0;
|
57 |
+
}
|
58 |
+
}
|
59 |
+
}
|
60 |
+
|
61 |
+
/* Privacy */
|
62 |
+
$defaults['privacy_enabled'] = 0;
|
63 |
+
$defaults['privacy_default'] = 0;
|
64 |
+
$defaults['privacy_userOverride'] = 0;
|
65 |
+
|
66 |
+
$defaults['buddypress_enableOnGroup'] = 0;
|
67 |
+
$defaults['buddypress_enableOnActivity'] = 0;
|
68 |
+
$defaults['buddypress_enableOnProfile'] = 0;
|
69 |
+
if(isset($options["general_videothumbs"]) && is_numeric($options["general_videothumbs"]) && intval($options["general_videothumbs"]) > 10){
|
70 |
+
$options["general_videothumbs"] = 10;
|
71 |
+
add_action ( 'admin_notices', array( &$this, 'add_max_video_thumb_notice' ) );
|
72 |
+
}
|
73 |
+
$options = wp_parse_args($options, $defaults);
|
74 |
+
|
75 |
+
return $options;
|
76 |
+
}
|
77 |
+
function add_max_video_thumb_notice(){
|
78 |
+
echo '<div class="error"><p>' . __("Max Video thumbnail size is ") .' <strong>10</strong></p></div>';
|
79 |
+
}
|
80 |
+
/**
|
81 |
+
*
|
82 |
+
* @global BPMediaAddon $rtmedia_addon
|
83 |
+
*/
|
84 |
+
public function settings() {
|
85 |
+
global $rtmedia, $rtmedia_addon;
|
86 |
+
$options = rtmedia_get_site_option('rtmedia-options');
|
87 |
+
$options = $this->sanitize_options($options);
|
88 |
+
$rtmedia->options = $options;
|
89 |
+
// Save Settings first then proceed.
|
90 |
+
if (isset($_POST['rtmedia-options-save'])) {
|
91 |
+
$options = $_POST['rtmedia-options'];
|
92 |
+
$options = $this->sanitize_options($options);
|
93 |
+
$options = apply_filters("rtmedia_pro_options_save_settings", $options);
|
94 |
+
rtmedia_update_site_option('rtmedia-options', $options);
|
95 |
+
global $rtmedia;
|
96 |
+
$rtmedia->options = $options;
|
97 |
+
}
|
98 |
+
$rtmedia_addon = new RTMediaAddon();
|
99 |
+
add_settings_section('rtm-addons', __('BuddyPress Media Addons for Photos', 'rtmedia'), array($rtmedia_addon, 'get_addons'), 'rtmedia-addons');
|
100 |
+
|
101 |
+
add_settings_section('rtm-support', __('Support', 'rtmedia'), array($this, 'rtmedia_support_intro'), 'rtmedia-support');
|
102 |
+
|
103 |
+
// if (!BPMediaPrivacy::is_installed()) {
|
104 |
+
// $rtmedia_privacy = new BPMediaPrivacySettings();
|
105 |
+
// add_filter('rtmedia_add_sub_tabs', array($rtmedia_privacy, 'ui'), 99, 2);
|
106 |
+
// add_settings_section('rtm-privacy', __('Update Database', 'rtmedia'), array($rtmedia_privacy, 'init'), 'rtmedia-privacy');
|
107 |
+
// }
|
108 |
+
//$rtmedia_album_importer = new BPMediaAlbumimporter();
|
109 |
+
//add_settings_section('rtm-rt-album-importer', __('BP-Album Importer', 'rtmedia'), array($rtmedia_album_importer, 'ui'), 'rtmedia-importer');
|
110 |
+
//register_setting('rtmedia', 'rtmedia_options', array($this, 'sanitize'));
|
111 |
+
}
|
112 |
+
|
113 |
+
public function network_notices() {
|
114 |
+
$flag = 1;
|
115 |
+
if (rtmedia_get_site_option('rtm-media-enable', false)) {
|
116 |
+
echo '<div id="setting-error-bpm-media-enable" class="error"><p><strong>' . rtmedia_get_site_option('rtm-media-enable') . '</strong></p></div>';
|
117 |
+
delete_site_option('rtm-media-enable');
|
118 |
+
$flag = 0;
|
119 |
+
}
|
120 |
+
if (rtmedia_get_site_option('rtm-media-type', false)) {
|
121 |
+
echo '<div id="setting-error-bpm-media-type" class="error"><p><strong>' . rtmedia_get_site_option('rtm-media-type') . '</strong></p></div>';
|
122 |
+
delete_site_option('rtm-media-type');
|
123 |
+
$flag = 0;
|
124 |
+
}
|
125 |
+
if (rtmedia_get_site_option('rtm-media-default-count', false)) {
|
126 |
+
echo '<div id="setting-error-bpm-media-default-count" class="error"><p><strong>' . rtmedia_get_site_option('rtm-media-default-count') . '</strong></p></div>';
|
127 |
+
delete_site_option('rtm-media-default-count');
|
128 |
+
$flag = 0;
|
129 |
+
}
|
130 |
+
|
131 |
+
if (rtmedia_get_site_option('rtm-recount-success', false)) {
|
132 |
+
echo '<div id="setting-error-bpm-recount-success" class="updated"><p><strong>' . rtmedia_get_site_option('rtm-recount-success') . '</strong></p></div>';
|
133 |
+
delete_site_option('rtm-recount-success');
|
134 |
+
$flag = 0;
|
135 |
+
}
|
136 |
+
elseif (rtmedia_get_site_option('rtm-recount-fail', false)) {
|
137 |
+
echo '<div id="setting-error-bpm-recount-fail" class="error"><p><strong>' . rtmedia_get_site_option('rtm-recount-fail') . '</strong></p></div>';
|
138 |
+
delete_site_option('rtm-recount-fail');
|
139 |
+
$flag = 0;
|
140 |
+
}
|
141 |
+
|
142 |
+
if (get_site_option('rtm-settings-saved') && $flag) {
|
143 |
+
echo '<div id="setting-error-bpm-settings-saved" class="updated"><p><strong>' . get_site_option('rtm-settings-saved') . '</strong></p></div>';
|
144 |
+
}
|
145 |
+
delete_site_option('rtm-settings-saved');
|
146 |
+
}
|
147 |
+
|
148 |
+
public function allowed_types() {
|
149 |
+
$allowed_types = get_site_option('upload_filetypes', 'jpg jpeg png gif');
|
150 |
+
$allowed_types = explode(' ', $allowed_types);
|
151 |
+
$allowed_types = implode(', ', $allowed_types);
|
152 |
+
echo '<span class="description">' . sprintf(__('Currently your network allows uploading of the following file types. You can change the settings <a href="%s">here</a>.<br /><code>%s</code></span>', 'rtmedia'), network_admin_url('settings.php#upload_filetypes'), $allowed_types);
|
153 |
+
}
|
154 |
+
|
155 |
+
/**
|
156 |
+
* Sanitizes the settings
|
157 |
+
*/
|
158 |
+
|
159 |
+
/**
|
160 |
+
*
|
161 |
+
* @global type $rtmedia_admin
|
162 |
+
* @param type $input
|
163 |
+
* @return type
|
164 |
+
*/
|
165 |
+
public function sanitize($input) {
|
166 |
+
global $rtmedia_admin;
|
167 |
+
if (isset($_POST['refresh-count'])) {
|
168 |
+
if ($rtmedia_admin->update_count()) {
|
169 |
+
if (is_multisite())
|
170 |
+
update_site_option('rtm-recount-success', __('Recounting of media files done successfully', 'rtmedia'));
|
171 |
+
else
|
172 |
+
add_settings_error(__('Recount Success', 'rtmedia'), 'rtm-recount-success', __('Recounting of media files done successfully', 'rtmedia'), 'updated');
|
173 |
+
} else {
|
174 |
+
if (is_multisite())
|
175 |
+
update_site_option('rtm-recount-fail', __('Recounting Failed', 'rtmedia'));
|
176 |
+
else
|
177 |
+
add_settings_error(__('Recount Fail', 'rtmedia'), 'rtm-recount-fail', __('Recounting Failed', 'rtmedia'));
|
178 |
+
}
|
179 |
+
}
|
180 |
+
// if (!isset($_POST['rtmedia_options']['enable_on_profile']) && !isset($_POST['rtmedia_options']['enable_on_group'])) {
|
181 |
+
// if (is_multisite())
|
182 |
+
// update_site_option('rtm-media-enable', __('Enable BuddyPress Media on either User Profiles or Groups or both. Atleast one should be selected.', 'rtmedia'));
|
183 |
+
// else
|
184 |
+
// add_settings_error(__('Enable BuddyPress Media', 'rtmedia'), 'rtm-media-enable', __('Enable BuddyPress Media on either User Profiles or Groups or both. Atleast one should be selected.', 'rtmedia'));
|
185 |
+
// $input['enable_on_profile'] = 1;
|
186 |
+
// }
|
187 |
+
if (!isset($_POST['rtmedia_options']['videos_enabled']) && !isset($_POST['rtmedia_options']['audio_enabled']) && !isset($_POST['rtmedia_options']['images_enabled'])) {
|
188 |
+
if (is_multisite())
|
189 |
+
update_site_option('rtm-media-type', __('Atleast one Media Type Must be selected', 'rtmedia'));
|
190 |
+
else
|
191 |
+
add_settings_error(__('Media Type', 'rtmedia'), 'rtm-media-type', __('Atleast one Media Type Must be selected', 'rtmedia'));
|
192 |
+
$input['images_enabled'] = 1;
|
193 |
+
}
|
194 |
+
|
195 |
+
$input['default_count'] = intval($_POST['rtmedia_options']['default_count']);
|
196 |
+
if (!is_int($input['default_count']) || ($input['default_count'] < 0 ) || empty($input['default_count'])) {
|
197 |
+
if (is_multisite())
|
198 |
+
update_site_option('rtm-media-default-count', __('"Number of media" count value should be numeric and greater than 0.', 'rtmedia'));
|
199 |
+
else
|
200 |
+
add_settings_error(__('Default Count', 'rtmedia'), 'rtm-media-default-count', __('"Number of media" count value should be numeric and greater than 0.', 'rtmedia'));
|
201 |
+
$input['default_count'] = 10;
|
202 |
+
}
|
203 |
+
if (is_multisite())
|
204 |
+
update_site_option('rtm-settings-saved', __('Settings saved.', 'rtmedia'));
|
205 |
+
do_action('rtmedia_sanitize_settings', $_POST, $input);
|
206 |
+
return $input;
|
207 |
+
}
|
208 |
+
|
209 |
+
public function image_settings_intro() {
|
210 |
+
if (is_plugin_active('regenerate-thumbnails/regenerate-thumbnails.php')) {
|
211 |
+
$regenerate_link = admin_url('/tools.php?page=regenerate-thumbnails');
|
212 |
+
}
|
213 |
+
elseif (array_key_exists('regenerate-thumbnails/regenerate-thumbnails.php', get_plugins())) {
|
214 |
+
$regenerate_link = admin_url('/plugins.php#regenerate-thumbnails');
|
215 |
+
}
|
216 |
+
else {
|
217 |
+
$regenerate_link = wp_nonce_url(admin_url('update.php?action=install-plugin&plugin=regenerate-thumbnails'), 'install-plugin_regenerate-thumbnails');
|
218 |
+
}
|
219 |
+
echo '<span class="description">' . sprintf(__('If you make changes to width, height or crop settings, you must use "<a href="%s">Regenerate Thumbnail Plugin</a>" to regenerate old images."', 'rtmedia'), $regenerate_link) . '</span>';
|
220 |
+
echo '<div class="clearfix"> </div>';
|
221 |
+
}
|
222 |
+
|
223 |
+
/**
|
224 |
+
* Output a checkbox
|
225 |
+
*
|
226 |
+
* @global array $rtmedia
|
227 |
+
* @param array $args
|
228 |
+
*/
|
229 |
+
public function privacy_notice() {
|
230 |
+
if (current_user_can('create_users')) {
|
231 |
+
// if (BPMediaPrivacy::is_installed())
|
232 |
+
// return;
|
233 |
+
$url = add_query_arg(
|
234 |
+
array('page' => 'rtmedia-privacy'), (is_multisite() ? network_admin_url('admin.php') : admin_url('admin.php'))
|
235 |
+
);
|
236 |
+
|
237 |
+
$notice = '
|
238 |
+
<div class="error">
|
239 |
+
<p>' . __('BuddyPress Media 2.6 requires a database upgrade. ', 'rtmedia')
|
240 |
+
. '<a href="' . $url . '">' . __('Update Database', 'rtmedia') . '.</a></p>
|
241 |
+
</div>
|
242 |
+
';
|
243 |
+
echo $notice;
|
244 |
+
}
|
245 |
+
}
|
246 |
+
|
247 |
+
public function rtmedia_support_intro() {
|
248 |
+
echo '<p>' . __('If your site has some issues due to BuddyPress Media and you want one on one support then you can create a support topic on the <a target="_blank" href="http://rtcamp.com/groups/buddypress-media/forum/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media">rtCamp Support Forum</a>.', 'rtmedia') . '</p>';
|
249 |
+
echo '<p>' . __('If you have any suggestions, enhancements or bug reports, then you can open a new issue on <a target="_blank" href="https://github.com/rtCamp/buddypress-media/issues/new">GitHub</a>.', 'rtmedia') . '</p>';
|
250 |
+
}
|
251 |
+
|
252 |
+
}
|
253 |
+
|
254 |
+
}
|
255 |
+
?>
|
trunk/app/helper/RTMediaSupport.php
ADDED
@@ -0,0 +1,421 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Description of RTMediaSupport
|
4 |
+
*
|
5 |
+
* @author Gagandeep Singh <gagandeep.singh@rtcamp.com>
|
6 |
+
* @author Joshua Abenazer <joshua.abenazer@rtcamp.com>
|
7 |
+
*/
|
8 |
+
if (!class_exists('RTMediaSupport')) {
|
9 |
+
|
10 |
+
class RTMediaSupport {
|
11 |
+
|
12 |
+
var $debug_info;
|
13 |
+
var $curr_sub_tab;
|
14 |
+
public function __construct($init = true) {
|
15 |
+
$this->curr_sub_tab = "debug";
|
16 |
+
if(isset($_REQUEST['tab'])) {
|
17 |
+
$this->curr_sub_tab = $_REQUEST['tab'];
|
18 |
+
}
|
19 |
+
if($init) {
|
20 |
+
$this->debug_info();
|
21 |
+
if($this->curr_sub_tab == "debug") {
|
22 |
+
add_action('rtmedia_admin_page_insert', array($this, 'debug_info_html'), 20);
|
23 |
+
}
|
24 |
+
}
|
25 |
+
}
|
26 |
+
|
27 |
+
public function service_selector() {
|
28 |
+
?>
|
29 |
+
<div>
|
30 |
+
<form name="rtmedia_service_select_form" method="post">
|
31 |
+
<p>
|
32 |
+
<label class="bp-media-label" for="select_support"><?php _e('Service', 'rtmedia'); ?>:</label>
|
33 |
+
<select name="rtmedia_service_select">
|
34 |
+
<option value="premium_support" <?php if($_POST['form']=="premium_support") echo "selected"; ?>>Premium Support</option>
|
35 |
+
<option value="bug_report" <?php if($_POST['form']=="bug_report") echo "selected"; ?>>Bug Report</option>
|
36 |
+
<option value="new_feature" <?php if($_POST['form']=="new_feature") echo "selected"; ?>>New Feature</option>
|
37 |
+
</select>
|
38 |
+
<input name="support_submit" value="Submit" type="submit" class="button" />
|
39 |
+
</p>
|
40 |
+
</form>
|
41 |
+
</div>
|
42 |
+
<?php
|
43 |
+
//$this->get_form("premium_support");
|
44 |
+
}
|
45 |
+
|
46 |
+
public function get_current_sub_tab() {
|
47 |
+
return isset ( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : "debug";
|
48 |
+
}
|
49 |
+
public function rtmedia_support_sub_tabs ( $active_tab = '' ) {
|
50 |
+
// Declare local variables
|
51 |
+
$tabs_html = '';
|
52 |
+
$idle_class = 'nav-tab';
|
53 |
+
$active_class = 'nav-tab nav-tab-active';
|
54 |
+
|
55 |
+
// Setup core admin tabs
|
56 |
+
$tabs = array(
|
57 |
+
array(
|
58 |
+
'href' => get_admin_url ( null, add_query_arg ( array( 'page' => 'rtmedia-support' ), 'admin.php' ) ) . "&tab=debug",
|
59 |
+
'name' => __ ( 'Debug Info', 'rtmedia' ),
|
60 |
+
'slug' => 'rtmedia-support&tab=debug'
|
61 |
+
),
|
62 |
+
array(
|
63 |
+
'href' => get_admin_url ( null, add_query_arg ( array( 'page' => 'rtmedia-support' ), 'admin.php' ) ) . "&tab=support",
|
64 |
+
'name' => __ ( 'Support Request', 'rtmedia' ),
|
65 |
+
'slug' => 'rtmedia-support&tab=support'
|
66 |
+
)
|
67 |
+
);
|
68 |
+
$tabs = apply_filters ( 'rtmedia_support_add_sub_tabs', $tabs );
|
69 |
+
// Loop through tabs and build navigation
|
70 |
+
$tabs_html = "";
|
71 |
+
foreach ( array_values ( $tabs ) as $tab_data ) {
|
72 |
+
$is_current = (bool) ( $tab_data[ 'slug' ] == (RTMediaAdmin::get_current_tab()."&tab=".$this->get_current_sub_tab () ) );
|
73 |
+
$tab_class = $is_current ? $active_class : $idle_class;
|
74 |
+
$tabs_html .= '<a href="' . $tab_data[ 'href' ] . '" class="' . $tab_class . '">' . $tab_data[ 'name' ] . '</a>';
|
75 |
+
}
|
76 |
+
// Output the tabs
|
77 |
+
return $tabs_html;
|
78 |
+
|
79 |
+
// // Do other fun things
|
80 |
+
// do_action('bp_media_admin_tabs');
|
81 |
+
}
|
82 |
+
|
83 |
+
function call_get_form () {
|
84 |
+
if(isset($_REQUEST['page']) && $_REQUEST['page'] == 'rtmedia-support') {
|
85 |
+
echo "<h2 class='nav-tab-wrapper'>".$this->rtmedia_support_sub_tabs()."</h2>";
|
86 |
+
if($this->curr_sub_tab == "support") {
|
87 |
+
echo "<div id='rtmedia_service_contact_container'><form name='rtmedia_service_contact_detail' method='post'>";
|
88 |
+
$this->get_form("premium_support");
|
89 |
+
echo "</form></div>";
|
90 |
+
}
|
91 |
+
}
|
92 |
+
}
|
93 |
+
|
94 |
+
public function load_service_form() {
|
95 |
+
if(isset($_REQUEST['page']) && $_REQUEST['page'] == 'rtmedia-support') {
|
96 |
+
add_action('rtmedia_admin_page_insert', array($this,'call_get_form'),11);
|
97 |
+
}
|
98 |
+
}
|
99 |
+
|
100 |
+
public function get_plugin_info() {
|
101 |
+
$active_plugins = (array) get_option( 'active_plugins', array() );
|
102 |
+
if ( is_multisite() ) {
|
103 |
+
$active_plugins = array_merge( $active_plugins, get_site_option( 'active_sitewide_plugins', array() ) );
|
104 |
+
}
|
105 |
+
$rtmedia_plugins = array();
|
106 |
+
foreach ( $active_plugins as $plugin ) {
|
107 |
+
$plugin_data = @get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );
|
108 |
+
$version_string = '';
|
109 |
+
if ( ! empty( $plugin_data['Name'] ) ) {
|
110 |
+
$rtmedia_plugins[] = $plugin_data['Name'] . ' ' . __( 'by', 'rtmedia' ) . ' ' . $plugin_data['Author'] . ' ' . __( 'version', 'rtmedia' ) . ' ' . $plugin_data['Version'] . $version_string;
|
111 |
+
}
|
112 |
+
}
|
113 |
+
if ( sizeof( $rtmedia_plugins ) == 0 ) {
|
114 |
+
return false;
|
115 |
+
} else {
|
116 |
+
return implode( ', <br/>', $rtmedia_plugins );
|
117 |
+
}
|
118 |
+
}
|
119 |
+
|
120 |
+
function rtmedia_scan_template_files( $template_path ) {
|
121 |
+
$files = scandir( $template_path );
|
122 |
+
$result = array();
|
123 |
+
if ( $files ) {
|
124 |
+
foreach ( $files as $key => $value ) {
|
125 |
+
if ( ! in_array( $value, array( ".",".." ) ) ) {
|
126 |
+
if ( is_dir( $template_path . DIRECTORY_SEPARATOR . $value ) ) {
|
127 |
+
$sub_files = $this->rtmedia_scan_template_files( $template_path . DIRECTORY_SEPARATOR . $value );
|
128 |
+
foreach ( $sub_files as $sub_file ) {
|
129 |
+
$result[] = str_replace(ABSPATH."wp-content/", "", RTMediaTemplate::locate_template(substr($sub_file, 1, ( sizeof($sub_file) - 5 ) )));
|
130 |
+
//$result[] = $value . DIRECTORY_SEPARATOR . $sub_file;
|
131 |
+
}
|
132 |
+
} else {
|
133 |
+
if($value != "main.php")
|
134 |
+
$result[] = $value;
|
135 |
+
}
|
136 |
+
}
|
137 |
+
}
|
138 |
+
}
|
139 |
+
return $result;
|
140 |
+
}
|
141 |
+
|
142 |
+
public function debug_info() {
|
143 |
+
global $wpdb, $wp_version, $bp;
|
144 |
+
$debug_info = array();
|
145 |
+
$debug_info['Home URL'] = home_url();
|
146 |
+
$debug_info['Site URL'] = site_url();
|
147 |
+
$debug_info['PHP'] = PHP_VERSION;
|
148 |
+
$debug_info['MYSQL'] = $wpdb->db_version();
|
149 |
+
$debug_info['WordPress'] = $wp_version;
|
150 |
+
$debug_info['BuddyPress'] = (isset($bp->version))?$bp->version:'-NA-';
|
151 |
+
$debug_info['rtMedia'] = RTMEDIA_VERSION;
|
152 |
+
$debug_info['OS'] = PHP_OS;
|
153 |
+
if (extension_loaded('imagick')) {
|
154 |
+
$imagickobj = new Imagick();
|
155 |
+
$imagick = $message = preg_replace(" #((http|https|ftp)://(\S*?\.\S*?))(\s|\;|\)|\]|\[|\{|\}|,|\"|'|:|\<|$|\.\s)#ie", "'<a href=\"$1\" target=\"_blank\">$3</a>$4'", $imagickobj->getversion() );
|
156 |
+
} else {
|
157 |
+
$imagick['versionString'] = 'Not Installed';
|
158 |
+
}
|
159 |
+
$debug_info['Imagick'] = $imagick['versionString'];
|
160 |
+
if (extension_loaded('gd')) {
|
161 |
+
$gd = gd_info();
|
162 |
+
} else {
|
163 |
+
$gd['GD Version'] = 'Not Installed';
|
164 |
+
}
|
165 |
+
$debug_info['GD'] = $gd['GD Version'];
|
166 |
+
$debug_info['[php.ini] post_max_size'] = ini_get('post_max_size');
|
167 |
+
$debug_info['[php.ini] upload_max_filesize'] = ini_get('upload_max_filesize');
|
168 |
+
$debug_info['[php.ini] memory_limit'] = ini_get('memory_limit');
|
169 |
+
$debug_info['Installed Plugins'] = $this->get_plugin_info();
|
170 |
+
$active_theme = wp_get_theme();
|
171 |
+
$debug_info['Theme Name'] = $active_theme->Name;
|
172 |
+
$debug_info['Theme Version'] = $active_theme->Version;
|
173 |
+
$debug_info['Author URL'] = $active_theme->{'Author URI'};
|
174 |
+
$debug_info['Template Overrides'] = implode( ', <br/>', $this->rtmedia_scan_template_files(RTMEDIA_PATH . "/templates/") );
|
175 |
+
|
176 |
+
$rtMedia_model = new RTMediaModel();
|
177 |
+
$sql = "select media_type, count(id) as count from {$rtMedia_model->table_name} group by media_type";
|
178 |
+
global $wpdb;
|
179 |
+
$results = $wpdb->get_results ( $sql );
|
180 |
+
if ( $results ) {
|
181 |
+
foreach ( $results as $media ) {
|
182 |
+
$debug_info["Total ".ucfirst ( $media->media_type ). "s"] = $media->count;
|
183 |
+
}
|
184 |
+
}
|
185 |
+
$this->debug_info = $debug_info;
|
186 |
+
}
|
187 |
+
|
188 |
+
public function debug_info_html($page) {
|
189 |
+
if ('rtmedia-support' == $page) {
|
190 |
+
?>
|
191 |
+
<div id="debug-info">
|
192 |
+
<h3><?php _e('Debug info', 'rtmedia'); ?></h3>
|
193 |
+
<table class="form-table">
|
194 |
+
<tbody><?php
|
195 |
+
if ($this->debug_info) {
|
196 |
+
foreach ($this->debug_info as $configuration => $value) {
|
197 |
+
?>
|
198 |
+
<tr valign="top">
|
199 |
+
<th scope="row"><?php echo $configuration; ?></th>
|
200 |
+
<td><?php echo $value; ?></td>
|
201 |
+
</tr><?php
|
202 |
+
}
|
203 |
+
}
|
204 |
+
?>
|
205 |
+
</tbody>
|
206 |
+
</table>
|
207 |
+
</div><?php
|
208 |
+
}
|
209 |
+
}
|
210 |
+
|
211 |
+
/**
|
212 |
+
*
|
213 |
+
* @global type $current_user
|
214 |
+
* @param type $form
|
215 |
+
*/
|
216 |
+
public function get_form($form) {
|
217 |
+
if (empty($form))
|
218 |
+
$form = (isset($_POST['form'])) ? $_POST['form'] : '';
|
219 |
+
|
220 |
+
global $current_user;
|
221 |
+
switch ($form) {
|
222 |
+
case "bug_report":
|
223 |
+
$meta_title = __('Submit a Bug Report', 'rtmedia');
|
224 |
+
break;
|
225 |
+
case "new_feature":
|
226 |
+
$meta_title = __('Submit a New Feature Request', 'rtmedia');
|
227 |
+
break;
|
228 |
+
case "premium_support":
|
229 |
+
$meta_title = __('Submit a Premium Support Request', 'rtmedia');
|
230 |
+
break;
|
231 |
+
}
|
232 |
+
?>
|
233 |
+
<h3><?php echo $meta_title; ?></h3>
|
234 |
+
<div id="support-form" class="bp-media-form">
|
235 |
+
<ul>
|
236 |
+
<li>
|
237 |
+
<label class="bp-media-label" for="name"><?php _e('Name', 'rtmedia'); ?>:</label><input class="bp-media-input" id="name" type="text" name="name" value="<?php echo (isset($_REQUEST['name'])) ? esc_attr(stripslashes(trim($_REQUEST['name']))) : $current_user->display_name; ?>" required />
|
238 |
+
</li>
|
239 |
+
<li>
|
240 |
+
<label class="bp-media-label" for="email"><?php _e('Email', 'rtmedia'); ?>:</label><input id="email" class="bp-media-input" type="text" name="email" value="<?php echo (isset($_REQUEST['email'])) ? esc_attr(stripslashes(trim($_REQUEST['email']))) : get_option('admin_email'); ?>" required />
|
241 |
+
</li>
|
242 |
+
<li>
|
243 |
+
<label class="bp-media-label" for="website"><?php _e('Website', 'rtmedia'); ?>:</label><input id="website" class="bp-media-input" type="text" name="website" value="<?php echo (isset($_REQUEST['website'])) ? esc_attr(stripslashes(trim($_REQUEST['website']))) : get_bloginfo('url'); ?>" required />
|
244 |
+
</li>
|
245 |
+
<li>
|
246 |
+
<label class="bp-media-label" for="phone"><?php _e('Phone', 'rtmedia'); ?>:</label><input class="bp-media-input" id="phone" type="text" name="phone" value="<?php echo (isset($_REQUEST['phone'])) ? esc_attr(stripslashes(trim($_REQUEST['phone']))) : ''; ?>"/>
|
247 |
+
</li>
|
248 |
+
<li>
|
249 |
+
<label class="bp-media-label" for="subject"><?php _e('Subject', 'rtmedia'); ?>:</label><input id="subject" class="bp-media-input" type="text" name="subject" value="<?php echo (isset($_REQUEST['subject'])) ? esc_attr(stripslashes(trim($_REQUEST['subject']))) : ''; ?>" required />
|
250 |
+
</li>
|
251 |
+
<li>
|
252 |
+
<label class="bp-media-label" for="details"><?php _e('Details', 'rtmedia'); ?>:</label><textarea id="details" class="bp-media-textarea" type="text" name="details" required/><?php echo (isset($_REQUEST['details'])) ? esc_textarea(stripslashes(trim($_REQUEST['details']))) : ''; ?></textarea>
|
253 |
+
</li>
|
254 |
+
<input type="hidden" name="request_type" value="<?php echo $form; ?>"/>
|
255 |
+
<input type="hidden" name="request_id" value="<?php echo wp_create_nonce(date('YmdHis')); ?>"/>
|
256 |
+
<input type="hidden" name="server_address" value="<?php echo $_SERVER['SERVER_ADDR']; ?>"/>
|
257 |
+
<input type="hidden" name="ip_address" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>"/>
|
258 |
+
<input type="hidden" name="server_type" value="<?php echo $_SERVER['SERVER_SOFTWARE']; ?>"/>
|
259 |
+
<input type="hidden" name="user_agent" value="<?php echo $_SERVER['HTTP_USER_AGENT']; ?>"/>
|
260 |
+
|
261 |
+
</ul>
|
262 |
+
</div><!-- .submit-bug-box --><?php if ($form == 'bug_report') { ?>
|
263 |
+
<h3><?php _e('Additional Information', 'rtmedia'); ?></h3>
|
264 |
+
<div id="support-form" class="bp-media-form">
|
265 |
+
<ul>
|
266 |
+
|
267 |
+
<li>
|
268 |
+
<label class="bp-media-label" for="wp_admin_username"><?php _e('Your WP Admin Login:', 'rtmedia'); ?></label><input class="bp-media-input" id="wp_admin_username" type="text" name="wp_admin_username" value="<?php echo (isset($_REQUEST['wp_admin_username'])) ? esc_attr(stripslashes(trim($_REQUEST['wp_admin_username']))) : $current_user->user_login; ?>"/>
|
269 |
+
</li>
|
270 |
+
<li>
|
271 |
+
<label class="bp-media-label" for="wp_admin_pwd"><?php _e('Your WP Admin password:', 'rtmedia'); ?></label><input class="bp-media-input" id="wp_admin_pwd" type="password" name="wp_admin_pwd" value="<?php echo (isset($_REQUEST['wp_admin_pwd'])) ? esc_attr(stripslashes(trim($_REQUEST['wp_admin_pwd']))) : ''; ?>"/>
|
272 |
+
</li>
|
273 |
+
<li>
|
274 |
+
<label class="bp-media-label" for="ssh_ftp_host"><?php _e('Your SSH / FTP host:', 'rtmedia'); ?></label><input class="bp-media-input" id="ssh_ftp_host" type="text" name="ssh_ftp_host" value="<?php echo (isset($_REQUEST['ssh_ftp_host'])) ? esc_attr(stripslashes(trim($_REQUEST['ssh_ftp_host']))) : ''; ?>"/>
|
275 |
+
</li>
|
276 |
+
<li>
|
277 |
+
<label class="bp-media-label" for="ssh_ftp_username"><?php _e('Your SSH / FTP login:', 'rtmedia'); ?></label><input class="bp-media-input" id="ssh_ftp_username" type="text" name="ssh_ftp_username" value="<?php echo (isset($_REQUEST['ssh_ftp_username'])) ? esc_attr(stripslashes(trim($_REQUEST['ssh_ftp_username']))) : ''; ?>"/>
|
278 |
+
</li>
|
279 |
+
<li>
|
280 |
+
<label class="bp-media-label" for="ssh_ftp_pwd"><?php _e('Your SSH / FTP password:', 'rtmedia'); ?></label><input class="bp-media-input" id="ssh_ftp_pwd" type="password" name="ssh_ftp_pwd" value="<?php echo (isset($_REQUEST['ssh_ftp_pwd'])) ? esc_attr(stripslashes(trim($_REQUEST['ssh_ftp_pwd']))) : ''; ?>"/>
|
281 |
+
</li>
|
282 |
+
</ul>
|
283 |
+
</div><!-- .submit-bug-box --><?php } ?>
|
284 |
+
|
285 |
+
<?php submit_button('Submit', 'primary', 'submit-request', false); ?>
|
286 |
+
<?php submit_button('Cancel', 'secondary', 'cancel-request', false); ?>
|
287 |
+
|
288 |
+
<?php
|
289 |
+
// if (DOING_AJAX) {
|
290 |
+
// die();
|
291 |
+
// }
|
292 |
+
}
|
293 |
+
|
294 |
+
/**
|
295 |
+
*
|
296 |
+
* @global type $rtmedia
|
297 |
+
*/
|
298 |
+
public function submit_request() {
|
299 |
+
global $rtmedia;
|
300 |
+
$form_data = wp_parse_args($_POST['form_data']);
|
301 |
+
foreach($form_data as $key=>$formdata) {
|
302 |
+
if($formdata == "" && $key != "phone") {
|
303 |
+
echo "false";
|
304 |
+
die();
|
305 |
+
}
|
306 |
+
}
|
307 |
+
if ($form_data['request_type'] == 'premium_support') {
|
308 |
+
$mail_type = 'Premium Support';
|
309 |
+
$title = __('rtMedia Premium Support Request from', 'rtmedia');
|
310 |
+
} elseif ($form_data['request_type'] == 'new_feature') {
|
311 |
+
$mail_type = 'New Feature Request';
|
312 |
+
$title = __('rtMedia New Feature Request from', 'rtmedia');
|
313 |
+
} elseif ($form_data['request_type'] == 'bug_report') {
|
314 |
+
$mail_type = 'Bug Report';
|
315 |
+
$title = __('rtMedia Bug Report from', 'rtmedia');
|
316 |
+
} else {
|
317 |
+
$mail_type = 'Bug Report';
|
318 |
+
$title = __('rtMedia Contact from', 'rtmedia');
|
319 |
+
}
|
320 |
+
$message = '<html>
|
321 |
+
<head>
|
322 |
+
<title>' . $title . get_bloginfo('name') . '</title>
|
323 |
+
</head>
|
324 |
+
<body>
|
325 |
+
<table>
|
326 |
+
<tr>
|
327 |
+
<td>Name</td><td>' . strip_tags($form_data['name']) . '</td>
|
328 |
+
</tr>
|
329 |
+
<tr>
|
330 |
+
<td>Email</td><td>' . strip_tags($form_data['email']) . '</td>
|
331 |
+
</tr>
|
332 |
+
<tr>
|
333 |
+
<td>Website</td><td>' . strip_tags($form_data['website']) . '</td>
|
334 |
+
</tr>
|
335 |
+
<tr>
|
336 |
+
<td>Phone</td><td>' . strip_tags($form_data['phone']) . '</td>
|
337 |
+
</tr>
|
338 |
+
<tr>
|
339 |
+
<td>Subject</td><td>' . strip_tags($form_data['subject']) . '</td>
|
340 |
+
</tr>
|
341 |
+
<tr>
|
342 |
+
<td>Details</td><td>' . strip_tags($form_data['details']) . '</td>
|
343 |
+
</tr>
|
344 |
+
<tr>
|
345 |
+
<td>Request ID</td><td>' . strip_tags($form_data['request_id']) . '</td>
|
346 |
+
</tr>
|
347 |
+
<tr>
|
348 |
+
<td>Server Address</td><td>' . strip_tags($form_data['server_address']) . '</td>
|
349 |
+
</tr>
|
350 |
+
<tr>
|
351 |
+
<td>IP Address</td><td>' . strip_tags($form_data['ip_address']) . '</td>
|
352 |
+
</tr>
|
353 |
+
<tr>
|
354 |
+
<td>Server Type</td><td>' . strip_tags($form_data['server_type']) . '</td>
|
355 |
+
</tr>
|
356 |
+
<tr>
|
357 |
+
<td>User Agent</td><td>' . strip_tags($form_data['user_agent']) . '</td>
|
358 |
+
</tr>';
|
359 |
+
if ($form_data['request_type'] == 'bug_report') {
|
360 |
+
$message .= '<tr>
|
361 |
+
<td>WordPress Admin Username</td><td>' . strip_tags($form_data['wp_admin_username']) . '</td>
|
362 |
+
</tr>
|
363 |
+
<tr>
|
364 |
+
<td>WordPress Admin Password</td><td>' . strip_tags($form_data['wp_admin_pwd']) . '</td>
|
365 |
+
</tr>
|
366 |
+
<tr>
|
367 |
+
<td>SSH FTP Host</td><td>' . strip_tags($form_data['ssh_ftp_host']) . '</td>
|
368 |
+
</tr>
|
369 |
+
<tr>
|
370 |
+
<td>SSH FTP Username</td><td>' . strip_tags($form_data['ssh_ftp_username']) . '</td>
|
371 |
+
</tr>
|
372 |
+
<tr>
|
373 |
+
<td>SSH FTP Password</td><td>' . strip_tags($form_data['ssh_ftp_pwd']) . '</td>
|
374 |
+
</tr>
|
375 |
+
';
|
376 |
+
}
|
377 |
+
$message .= '</table>';
|
378 |
+
if ( $this->debug_info ) {
|
379 |
+
$message .= '<h3>'.__('Debug Info', 'rtmedia').'</h3>';
|
380 |
+
$message .= '<table>';
|
381 |
+
foreach ($this->debug_info as $configuration => $value) {
|
382 |
+
$message .= '<tr>
|
383 |
+
<td style="vertical-align:top">' . $configuration . '</td><td>' . $value . '</td>
|
384 |
+
</tr>';
|
385 |
+
}
|
386 |
+
$message .= '</table>';
|
387 |
+
}
|
388 |
+
$message .= '</body>
|
389 |
+
</html>';
|
390 |
+
add_filter('wp_mail_content_type', create_function('', 'return "text/html";'));
|
391 |
+
$headers = 'From: ' . $form_data['name'] . ' <' . $form_data['email'] . '>' . "\r\n";
|
392 |
+
if(isset($rtmedia->support_email)) {
|
393 |
+
$support_email = $rtmedia->support_email;
|
394 |
+
}
|
395 |
+
else {
|
396 |
+
$support_email = "support@rtcamp.com";
|
397 |
+
}
|
398 |
+
$support_email = "support+m2p-37e6afd@rtcamp.com";
|
399 |
+
if (wp_mail($support_email, '[rtmedia] ' . $mail_type . ' from ' . str_replace(array('http://', 'https://'), '', $form_data['website']), $message, $headers)) {
|
400 |
+
echo '<div class="rtmedia-success" style="margin:10px 0;">';
|
401 |
+
if ($form_data['request_type'] == 'new_feature') {
|
402 |
+
echo '<p>' . __('Thank you for your Feedback/Suggestion.', 'rtmedia') . '</p>';
|
403 |
+
} else {
|
404 |
+
echo '<p>' . __('Thank you for posting your support request.', 'rtmedia') . '</p>';
|
405 |
+
echo '<p>' . __('We will get back to you shortly.', 'rtmedia') . '</p>';
|
406 |
+
}
|
407 |
+
echo '</div>';
|
408 |
+
} else {
|
409 |
+
echo '<div class="rtmedia-error">';
|
410 |
+
echo '<p>' . __('Your server failed to send an email.', 'rtmedia') . '</p>';
|
411 |
+
echo '<p>' . __('Kindly contact your server support to fix this.', 'rtmedia') . '</p>';
|
412 |
+
echo '<p>' . sprintf(__('You can alternatively create a support request <a href="%s">here</a>', 'rtmedia'), $rtmedia->support_url) . '</p>';
|
413 |
+
echo '</div>';
|
414 |
+
}
|
415 |
+
die();
|
416 |
+
}
|
417 |
+
|
418 |
+
}
|
419 |
+
|
420 |
+
}
|
421 |
+
?>
|
trunk/app/helper/RTMediaUploadException.php
ADDED
@@ -0,0 +1,66 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Description of RTMediaUploadException
|
5 |
+
*
|
6 |
+
* @author joshua
|
7 |
+
*/
|
8 |
+
class RTMediaUploadException extends Exception
|
9 |
+
{
|
10 |
+
/**
|
11 |
+
*
|
12 |
+
* @var type
|
13 |
+
*
|
14 |
+
* Exception for Invalid context while uploading any media
|
15 |
+
*/
|
16 |
+
var $upload_err_invalid_context = 9;
|
17 |
+
|
18 |
+
/**
|
19 |
+
*
|
20 |
+
* @param type $code
|
21 |
+
* @param type $msg
|
22 |
+
*/
|
23 |
+
public function __construct($code,$msg=false) {
|
24 |
+
$message = $this->codeToMessage($code,$msg);
|
25 |
+
parent::__construct($message, $code);
|
26 |
+
}
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Error specific Message generated for the exception depending upon the code passed.
|
30 |
+
* Native Error Codes defined in PHP core module are used for uploading a standard file
|
31 |
+
*
|
32 |
+
* @param type $code
|
33 |
+
* @param type $msg
|
34 |
+
* @return type
|
35 |
+
*/
|
36 |
+
private function codeToMessage($code,$msg)
|
37 |
+
{
|
38 |
+
switch ($code) {
|
39 |
+
case UPLOAD_ERR_INI_SIZE:
|
40 |
+
case UPLOAD_ERR_FORM_SIZE:
|
41 |
+
$message = apply_filters('bp_media_file_size_error', __('The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form','rtmedia'));
|
42 |
+
break;
|
43 |
+
case UPLOAD_ERR_NO_FILE:
|
44 |
+
$message = apply_filters('bp_media_file_null_error', __('No file was uploaded','rtmedia'));
|
45 |
+
break;
|
46 |
+
case UPLOAD_ERR_PARTIAL:
|
47 |
+
case UPLOAD_ERR_NO_TMP_DIR:
|
48 |
+
case UPLOAD_ERR_CANT_WRITE: $message = apply_filters('bp_media_file_internal_error', __('Uploade failed due to internal server error.','rtmedia'));
|
49 |
+
break;
|
50 |
+
case UPLOAD_ERR_EXTENSION:
|
51 |
+
$message = apply_filters('bp_media_file_extension_error', __('File type not allowed.','rtmedia'));
|
52 |
+
break;
|
53 |
+
|
54 |
+
case $this->upload_err_invalid_context:
|
55 |
+
$message = apply_filters('rtmedia_invalid_context_error', __('Invalid Context for upload.','rtmedia'));
|
56 |
+
break;
|
57 |
+
default:
|
58 |
+
$msg = $msg ? $msg : __('Unknown file upload error.','rtmedia');
|
59 |
+
$message = apply_filters('bp_media_file_unknown_error', $msg);
|
60 |
+
break;
|
61 |
+
}
|
62 |
+
return $message;
|
63 |
+
}
|
64 |
+
}
|
65 |
+
|
66 |
+
?>
|
trunk/app/helper/db/RTDBModel.php
ADDED
@@ -0,0 +1,168 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Description of RTDBModel
|
5 |
+
* Base class for any Database Model like Media, Album etc.
|
6 |
+
*
|
7 |
+
* @author faishal
|
8 |
+
*/
|
9 |
+
class RTDBModel {
|
10 |
+
|
11 |
+
/**
|
12 |
+
*
|
13 |
+
* @var type
|
14 |
+
*
|
15 |
+
* $table_name - database table linked to the model.
|
16 |
+
* All the queries will be fired on that table or with the join in this table.
|
17 |
+
* $per_page - number of rows per page to be displayed
|
18 |
+
*/
|
19 |
+
public $table_name;
|
20 |
+
public $per_page;
|
21 |
+
|
22 |
+
/**
|
23 |
+
*
|
24 |
+
* @param string $table_name Table name for model
|
25 |
+
* @param boolean $withprefix Set true if $tablename is with prefix otherwise it will prepend wordpress prefix with "rt_"
|
26 |
+
*/
|
27 |
+
function __construct($table_name, $withprefix = false, $per_page = 10) {
|
28 |
+
$this->set_table_name($table_name, $withprefix);
|
29 |
+
$this->set_per_page($per_page);
|
30 |
+
}
|
31 |
+
|
32 |
+
/**
|
33 |
+
*
|
34 |
+
* @global type $wpdb
|
35 |
+
* @param string $table_name
|
36 |
+
* @param type $withprefix
|
37 |
+
*/
|
38 |
+
public function set_table_name($table_name, $withprefix = false) {
|
39 |
+
global $wpdb;
|
40 |
+
if (!$withprefix) {
|
41 |
+
$table_name = $wpdb->prefix . "rt_" . $table_name;
|
42 |
+
}
|
43 |
+
$this->table_name = $table_name;
|
44 |
+
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* set number of rows per page for pagination
|
48 |
+
* @param type $per_page
|
49 |
+
*/
|
50 |
+
public function set_per_page($per_page) {
|
51 |
+
$this->per_page = $per_page;
|
52 |
+
}
|
53 |
+
|
54 |
+
/**
|
55 |
+
* Magic Method for getting DB rows by particular column.
|
56 |
+
* E.g., get_by_<columnName>(params)
|
57 |
+
* @global type $wpdb
|
58 |
+
* @param type $name - Added get_by_<coulmname>(value,pagging=true,page_no=1)
|
59 |
+
* @param type $arguments
|
60 |
+
* @return type result array
|
61 |
+
*/
|
62 |
+
function __call($name, $arguments) {
|
63 |
+
$column_name = str_replace("get_by_", "", strtolower($name));
|
64 |
+
$paging = false;
|
65 |
+
$page = 1;
|
66 |
+
if ($arguments && !empty($arguments)) {
|
67 |
+
if (!isset($arguments[1])) {
|
68 |
+
$paging = true;
|
69 |
+
} else {
|
70 |
+
$paging = $arguments[1];
|
71 |
+
}
|
72 |
+
|
73 |
+
if (!isset($arguments[2])) {
|
74 |
+
$page = 1;
|
75 |
+
} else {
|
76 |
+
$page = $arguments[2];
|
77 |
+
}
|
78 |
+
|
79 |
+
$this->per_page = apply_filters("rt_db_model_per_page", $this->per_page, $this->table_name);
|
80 |
+
$return_array = Array();
|
81 |
+
$return_array["result"] = false;
|
82 |
+
global $wpdb;
|
83 |
+
$return_array["total"] = intval($wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM " . $this->table_name . " WHERE {$column_name} = %s", $arguments[0])));
|
84 |
+
if ($return_array["total"] > 0) {
|
85 |
+
$other = "";
|
86 |
+
if ($paging) {
|
87 |
+
$offset = ($page - 1) * $this->per_page;
|
88 |
+
if ($offset <= $return_array["total"]) {
|
89 |
+
$other = " LIMIT " . $offset . "," . $this->per_page;
|
90 |
+
}else{
|
91 |
+
return false;
|
92 |
+
}
|
93 |
+
}
|
94 |
+
//echo $wpdb->prepare("SELECT * FROM " . $this->table_name . " WHERE {$column_name} = %s {$other}", $arguments[0]);
|
95 |
+
$return_array["result"] = $wpdb->get_results($wpdb->prepare("SELECT * FROM " . $this->table_name . " WHERE {$column_name} = %s {$other}", $arguments[0]), ARRAY_A);
|
96 |
+
}
|
97 |
+
return $return_array;
|
98 |
+
} else {
|
99 |
+
return false;
|
100 |
+
}
|
101 |
+
}
|
102 |
+
|
103 |
+
/**
|
104 |
+
*
|
105 |
+
* @global type $wpdb
|
106 |
+
* @param type $row
|
107 |
+
* @return type
|
108 |
+
*/
|
109 |
+
function insert($row) {
|
110 |
+
global $wpdb;
|
111 |
+
$insertdata =array();
|
112 |
+
foreach($row as $key=>$val){
|
113 |
+
if($val != NULL)
|
114 |
+
$insertdata[$key]=$val;
|
115 |
+
}
|
116 |
+
|
117 |
+
$wpdb->insert($this->table_name, $insertdata);
|
118 |
+
return $wpdb->insert_id;
|
119 |
+
}
|
120 |
+
|
121 |
+
/**
|
122 |
+
*
|
123 |
+
* @global type $wpdb
|
124 |
+
* @param type $data
|
125 |
+
* @param type $where
|
126 |
+
*/
|
127 |
+
function update($data, $where) {
|
128 |
+
global $wpdb;
|
129 |
+
return $wpdb->update($this->table_name, $data, $where);
|
130 |
+
}
|
131 |
+
|
132 |
+
/**
|
133 |
+
* Get all the rows according to the columns set in $columns parameter.
|
134 |
+
* offset and rows per page can also be passed for pagination.
|
135 |
+
* @global type $wpdb
|
136 |
+
* @param type $columns
|
137 |
+
* @return type
|
138 |
+
*/
|
139 |
+
function get($columns, $offset=false, $per_page=false, $order_by= 'id desc') {
|
140 |
+
$select = "SELECT * FROM {$this->table_name}";
|
141 |
+
$where = " where 2=2 " ;
|
142 |
+
foreach ($columns as $colname => $colvalue) {
|
143 |
+
$where .= " AND {$this->table_name}.{$colname} = '{$colvalue}'";
|
144 |
+
}
|
145 |
+
$sql = $select . $where ;
|
146 |
+
|
147 |
+
$sql .= " ORDER BY {$this->table_name}.$order_by";
|
148 |
+
|
149 |
+
if(is_integer($offset) && is_integer($per_page)) {
|
150 |
+
$sql .= ' LIMIT ' . $offset . ',' . $per_page;
|
151 |
+
}
|
152 |
+
global $wpdb;
|
153 |
+
return $wpdb->get_results($sql);
|
154 |
+
}
|
155 |
+
|
156 |
+
/**
|
157 |
+
*
|
158 |
+
* @global type $wpdb
|
159 |
+
* @param type $where
|
160 |
+
* @return type
|
161 |
+
*/
|
162 |
+
function delete($where) {
|
163 |
+
global $wpdb;
|
164 |
+
return $wpdb->delete($this->table_name, $where);
|
165 |
+
}
|
166 |
+
|
167 |
+
|
168 |
+
}
|
trunk/app/helper/db/RTDBUpdate.php
ADDED
@@ -0,0 +1,91 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Description of RTDBUpdate
|
5 |
+
* Required : rt_plugin_info.php
|
6 |
+
* @author faishal
|
7 |
+
*/
|
8 |
+
class RTDBUpdate {
|
9 |
+
|
10 |
+
/**
|
11 |
+
*
|
12 |
+
* @var type String
|
13 |
+
*/
|
14 |
+
public $db_version;
|
15 |
+
public $install_db_version;
|
16 |
+
public $schema_path = '/../../schema/';
|
17 |
+
public $db_version_option_name;
|
18 |
+
public $rt_plugin_info;
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Set db current and installed version and also plugin info in rt_plugin_info variable.
|
22 |
+
*
|
23 |
+
* @param type string $current_version Optional if not defined then will use plugin version
|
24 |
+
*/
|
25 |
+
public function __construct ( $current_version = false ) {
|
26 |
+
$this->rt_plugin_info = new rt_plugin_info ( RTMEDIA_PATH . 'index.php' );
|
27 |
+
if ( $current_version == false ) {
|
28 |
+
$current_version = $this->rt_plugin_info->version;
|
29 |
+
}
|
30 |
+
|
31 |
+
|
32 |
+
$this->db_version = $current_version;
|
33 |
+
$this->db_version_option_name = $this->get_db_version_option_name ();
|
34 |
+
$this->install_db_version = $this->get_install_db_version ();
|
35 |
+
}
|
36 |
+
|
37 |
+
public function create_table ( $sql ) {
|
38 |
+
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
39 |
+
dbDelta ( $sql );
|
40 |
+
}
|
41 |
+
|
42 |
+
public function get_db_version_option_name () {
|
43 |
+
return strtoupper ( "RT_" . str_replace ( "-", "_", sanitize_title ( $this->rt_plugin_info->name ) ) . "_DB_VERSIONS" );
|
44 |
+
}
|
45 |
+
|
46 |
+
public function get_install_db_version () {
|
47 |
+
return get_site_option ( $this->db_version_option_name, "0.0" );
|
48 |
+
}
|
49 |
+
|
50 |
+
public function check_upgrade () {
|
51 |
+
return version_compare ( $this->db_version, $this->install_db_version, '>' );
|
52 |
+
}
|
53 |
+
|
54 |
+
public function do_upgrade () {
|
55 |
+
if ( version_compare ( $this->db_version, $this->install_db_version, '>' ) ) {
|
56 |
+
do_action ( "rt_db_upgrade" );
|
57 |
+
$path = realpath ( dirname ( __FILE__ ) . $this->schema_path );
|
58 |
+
if ( $handle = opendir ( $path ) ) {
|
59 |
+
while ( false !== ($entry = readdir ( $handle )) ) {
|
60 |
+
if ( $entry != "." && $entry != ".." ) {
|
61 |
+
if ( strpos ( $entry, ".schema" ) !== false && file_exists ( $path . "/" . $entry ) ) {
|
62 |
+
$this->create_table ( $this->genrate_sql ( $entry, file_get_contents ( $path . "/" . $entry ) ) );
|
63 |
+
}
|
64 |
+
}
|
65 |
+
}
|
66 |
+
closedir ( $handle );
|
67 |
+
}
|
68 |
+
update_site_option ( $this->db_version_option_name, $this->db_version );
|
69 |
+
}
|
70 |
+
}
|
71 |
+
|
72 |
+
static function table_exists ( $table ) {
|
73 |
+
global $wpdb;
|
74 |
+
|
75 |
+
if ( $wpdb->query ( "SHOW TABLES LIKE '" . $table . "'" ) == 1 ) {
|
76 |
+
return true;
|
77 |
+
}
|
78 |
+
|
79 |
+
return false;
|
80 |
+
}
|
81 |
+
|
82 |
+
public function genrate_sql ( $file_name, $file_content ) {
|
83 |
+
return sprintf ( $file_content, $this->genrate_table_name ( $file_name ) );
|
84 |
+
}
|
85 |
+
|
86 |
+
public function genrate_table_name ( $file_name ) {
|
87 |
+
global $wpdb;
|
88 |
+
return $wpdb->prefix . "rt_" . str_replace ( ".schema", "", strtolower ( $file_name ) );
|
89 |
+
}
|
90 |
+
|
91 |
+
}
|
trunk/app/helper/db/rt_plugin_info.php
ADDED
@@ -0,0 +1,57 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Description of rt_plugin_info
|
5 |
+
*
|
6 |
+
* @author faishal
|
7 |
+
*/
|
8 |
+
class rt_plugin_info {
|
9 |
+
|
10 |
+
//put your code here
|
11 |
+
public $plugin_path;
|
12 |
+
public $name; //'Name' - Name of the plugin, must be unique.
|
13 |
+
public $title; //'Title' - Title of the plugin and the link to the plugin's web site.
|
14 |
+
public $desctipriton; //'Description' - Description of what the plugin does and/or notes from the author.
|
15 |
+
public $authro; //'Author' - The author's name
|
16 |
+
public $authoruri; //'AuthorURI' - The authors web site address.
|
17 |
+
public $version; //'Version' - The plugin version number.
|
18 |
+
public $pluginuri; //'PluginURI' - Plugin web site address.
|
19 |
+
public $textdomain; //'TextDomain' - Plugin's text domain for localization.
|
20 |
+
public $domain_path; //'DomainPath' - Plugin's relative directory path to .mo files.
|
21 |
+
public $network; //'Network' - Boolean. Whether the plugin can only be activated network wide.
|
22 |
+
public $plugin_data;
|
23 |
+
|
24 |
+
public function __construct($path = NULL) {
|
25 |
+
$this->set_current_plugin_path($path);
|
26 |
+
$this->set_plugin_data();
|
27 |
+
}
|
28 |
+
|
29 |
+
function get_plugin_data() {
|
30 |
+
require_once(ABSPATH . 'wp-admin/includes/plugin.php');
|
31 |
+
return @get_plugin_data($this->plugin_path);
|
32 |
+
}
|
33 |
+
|
34 |
+
function set_plugin_data() {
|
35 |
+
$this->plugin_data = $this->get_plugin_data();
|
36 |
+
$this->name = $this->plugin_data["Name"];
|
37 |
+
$this->title = $this->plugin_data["Title"];
|
38 |
+
$this->desctipriton = $this->plugin_data["Description"];
|
39 |
+
$this->author = $this->plugin_data["Author"];
|
40 |
+
$this->authoruri = $this->plugin_data["AuthorURI"];
|
41 |
+
$this->version = $this->plugin_data["Version"];
|
42 |
+
$this->pluginuri = $this->plugin_data["PluginURI"];
|
43 |
+
$this->textdomain = $this->plugin_data["TextDomain"];
|
44 |
+
$this->domain_path = $this->plugin_data["DomainPath"];
|
45 |
+
$this->network = $this->plugin_data["Network"];
|
46 |
+
}
|
47 |
+
|
48 |
+
function set_current_plugin_path($path) {
|
49 |
+
if ($path != NULL)
|
50 |
+
$this->plugin_path = $path;
|
51 |
+
else
|
52 |
+
$this->plugin_path = realpath(plugin_dir_path(__FILE__) . "../../index.php");
|
53 |
+
}
|
54 |
+
|
55 |
+
}
|
56 |
+
|
57 |
+
?>
|
trunk/app/helper/rtDimensions.php
ADDED
@@ -0,0 +1,120 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* To change this template, choose Tools | Templates
|
5 |
+
* and open the template in the editor.
|
6 |
+
*/
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Description of rtfDimension
|
10 |
+
*
|
11 |
+
* @author udit
|
12 |
+
*/
|
13 |
+
class rtDimensions extends rtForm {
|
14 |
+
|
15 |
+
private $element_id;
|
16 |
+
private static $id_count = 0;
|
17 |
+
private static $default_class = "rt-form-dimension";
|
18 |
+
|
19 |
+
private function get_default_id () {
|
20 |
+
return self::$id_count;
|
21 |
+
}
|
22 |
+
|
23 |
+
private function update_default_id () {
|
24 |
+
self::$id_count ++;
|
25 |
+
}
|
26 |
+
|
27 |
+
private function get_default_class () {
|
28 |
+
return self::$default_class;
|
29 |
+
}
|
30 |
+
|
31 |
+
private function embedd_class ( $element, $class = null ) {
|
32 |
+
|
33 |
+
$html = 'class = "' . $this->get_default_class ();
|
34 |
+
|
35 |
+
if ( isset ( $class ) ) {
|
36 |
+
|
37 |
+
if ( is_array ( $class ) )
|
38 |
+
$html .= ' ' . implode ( " ", $class );
|
39 |
+
else
|
40 |
+
throw new rtFormsInvalidArgumentsException ( "class [" . $element . "]" );
|
41 |
+
}
|
42 |
+
$html .= '"';
|
43 |
+
|
44 |
+
return $html;
|
45 |
+
}
|
46 |
+
|
47 |
+
protected function generate_dimensions ( $attributes ) {
|
48 |
+
|
49 |
+
$element = "rtDimension";
|
50 |
+
global $rtmedia;
|
51 |
+
$defaults = array(
|
52 |
+
'desc' => '',
|
53 |
+
'show_desc' => false
|
54 |
+
);
|
55 |
+
|
56 |
+
$attributes = wp_parse_args ( $attributes, $defaults );
|
57 |
+
extract ( $attributes );
|
58 |
+
|
59 |
+
$html = '<div ';
|
60 |
+
|
61 |
+
if ( isset ( $attributes[ 'id' ] ) )
|
62 |
+
$html .= 'id="' . $attributes[ 'id' ] . '" ';
|
63 |
+
else {
|
64 |
+
$html .= 'id="' . $this->get_default_class () . '-' . $this->get_default_id () . '" ';
|
65 |
+
$this->update_default_id ();
|
66 |
+
}
|
67 |
+
|
68 |
+
if ( isset ( $attributes[ 'class' ] ) )
|
69 |
+
$html .= self::embedd_class ( $element, $attributes[ 'class' ] );
|
70 |
+
else
|
71 |
+
$html .= self::embedd_class ( $element );
|
72 |
+
$html .= '>';
|
73 |
+
|
74 |
+
$html .= parent::get_textbox ( array(
|
75 |
+
'name' => "rtmedia-options[{$key}_width]",
|
76 |
+
'value' => $width,
|
77 |
+
'class' => array( "small-text large-offset-1" ),
|
78 |
+
'show_desc' => $show_desc
|
79 |
+
) );
|
80 |
+
|
81 |
+
if ( isset ( $height ) ) {
|
82 |
+
$html .= parent::get_textbox ( array(
|
83 |
+
'name' => "rtmedia-options[{$key}_height]",
|
84 |
+
'value' => $height,
|
85 |
+
'class' => array( "small-text large-offset-1" ),
|
86 |
+
'show_desc' => $show_desc
|
87 |
+
) );
|
88 |
+
}
|
89 |
+
|
90 |
+
if ( isset ( $crop ) ) {
|
91 |
+
$html .= parent::get_checkbox ( array(
|
92 |
+
'name' => "rtmedia-options[{$key}_crop]",
|
93 |
+
'rtForm_options' => array( array(
|
94 |
+
'' => 1, //label would be blank
|
95 |
+
'checked' => $crop
|
96 |
+
) ),
|
97 |
+
'class' => array( "large-offset-1" ),
|
98 |
+
'show_desc' => $show_desc
|
99 |
+
) );
|
100 |
+
}
|
101 |
+
|
102 |
+
if ( $desc && $show_desc )
|
103 |
+
$html .= '<span class="clearfix large-offset-3 description">' . $desc . '</span>';
|
104 |
+
|
105 |
+
$html .= '</div>';
|
106 |
+
|
107 |
+
if ( isset ( $attributes[ 'label' ] ) )
|
108 |
+
$html = parent::enclose_label ( 'container', $html, $attributes[ 'label' ] );
|
109 |
+
|
110 |
+
return $html;
|
111 |
+
}
|
112 |
+
|
113 |
+
public function get_dimensions ( $attributes = '' ) {
|
114 |
+
|
115 |
+
return $this->generate_dimensions ( $attributes );
|
116 |
+
}
|
117 |
+
|
118 |
+
}
|
119 |
+
|
120 |
+
?>
|
trunk/app/helper/rtForm.php
ADDED
@@ -0,0 +1,713 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* To change this template, choose Tools | Templates
|
5 |
+
* and open the template in the editor.
|
6 |
+
*/
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Description of rtForms
|
10 |
+
*
|
11 |
+
* Usage Example :
|
12 |
+
*
|
13 |
+
* $obj = new rtForm();
|
14 |
+
*
|
15 |
+
* ----textbox test
|
16 |
+
* echo $obj->get_textbox(array(
|
17 |
+
* "id"=>"myid",
|
18 |
+
* "label" => "mylabel",
|
19 |
+
* "name"=>"myname",
|
20 |
+
* "value"=>"myval",
|
21 |
+
* "class"=> array("myclass")
|
22 |
+
* ))."\n";
|
23 |
+
*
|
24 |
+
*
|
25 |
+
* ----textarea test
|
26 |
+
* echo $obj->get_textarea(array(
|
27 |
+
* "id"=>"myid",
|
28 |
+
* "name"=>"myname",
|
29 |
+
* "value"=>"myval",
|
30 |
+
* "class"=> array("myclass")
|
31 |
+
* ))."\n";
|
32 |
+
*
|
33 |
+
*
|
34 |
+
* ----radio test
|
35 |
+
* echo $obj->get_radio(array(
|
36 |
+
* "id"=>"myid",
|
37 |
+
* "name"=>"myname",
|
38 |
+
* "class"=>array("myclass"),
|
39 |
+
* "rtForm_options"=>array(
|
40 |
+
* "op1"=>1,
|
41 |
+
* "op2"=>2,
|
42 |
+
* "op3"=>3
|
43 |
+
* )
|
44 |
+
* ))."\n";
|
45 |
+
|
46 |
+
|
47 |
+
* ----checkbox test
|
48 |
+
* echo $obj->get_checkbox(array(
|
49 |
+
* "id"=>"myid",
|
50 |
+
* "name"=>"myname",
|
51 |
+
* "class"=>array("myclass"),
|
52 |
+
* "rtForm_options"=>array(
|
53 |
+
* "op1"=>1,
|
54 |
+
* "op2"=>2,
|
55 |
+
* "op3"=>3
|
56 |
+
* )
|
57 |
+
* ))."\n";
|
58 |
+
|
59 |
+
* ----select test
|
60 |
+
* echo $obj->get_select(array(
|
61 |
+
* "id"=>"myid",
|
62 |
+
* "name"=>"myname",
|
63 |
+
* "class"=>array("myclass"),
|
64 |
+
* "rtForm_options"=>array(
|
65 |
+
* "op1"=>1,
|
66 |
+
* "op2"=>2,
|
67 |
+
* "op3"=>3
|
68 |
+
* )
|
69 |
+
* ))."\n";
|
70 |
+
*
|
71 |
+
* @author udit
|
72 |
+
*/
|
73 |
+
|
74 |
+
if(!class_exists("rtForm")) {
|
75 |
+
|
76 |
+
class rtForm {
|
77 |
+
|
78 |
+
|
79 |
+
private $element_id;
|
80 |
+
/**
|
81 |
+
* default id counts
|
82 |
+
* if id for any element is not given then these count will be used in id generation
|
83 |
+
*/
|
84 |
+
private static $id_counts = array(
|
85 |
+
"rtText" => 0,
|
86 |
+
"rtNumber" => 0,
|
87 |
+
"rtDate" => 0,
|
88 |
+
"rtRadio" => 0,
|
89 |
+
"rtCheckbox" => 0,
|
90 |
+
"rtSelect" => 0,
|
91 |
+
"rtTextarea" => 0,
|
92 |
+
"rtHidden" => 0,
|
93 |
+
"rtWysiwyg" => 0
|
94 |
+
);
|
95 |
+
|
96 |
+
private static $default_classes = array(
|
97 |
+
"rtText" => "rt-form-text",
|
98 |
+
"rtNumber" => "rt-form-number",
|
99 |
+
"rtDate" => "rt-form-date",
|
100 |
+
"rtRadio" => "rt-form-radio",
|
101 |
+
"rtCheckbox" => "rt-form-checkbox",
|
102 |
+
"rtSelect" => "rt-form-select",
|
103 |
+
"rtTextarea" => "rt-form-textarea",
|
104 |
+
"rtHidden" => "rt-form-hidden",
|
105 |
+
"rtWysiwyg" => "rt-form-wysiwyg"
|
106 |
+
);
|
107 |
+
|
108 |
+
|
109 |
+
private function get_default_id($element) {
|
110 |
+
return self::$id_counts[$element];
|
111 |
+
}
|
112 |
+
|
113 |
+
private function update_default_id($element) {
|
114 |
+
self::$id_counts[$element] ++;
|
115 |
+
}
|
116 |
+
|
117 |
+
private function get_default_class($element) {
|
118 |
+
return self::$default_classes[$element];
|
119 |
+
}
|
120 |
+
|
121 |
+
|
122 |
+
private function embedd_class($element, $class = NULL) {
|
123 |
+
|
124 |
+
$html = 'class="' . $this->get_default_class($element);
|
125 |
+
|
126 |
+
if( isset( $class ) ) {
|
127 |
+
|
128 |
+
if( is_array( $class ) )
|
129 |
+
$html .= ' ' . implode(" ", $class);
|
130 |
+
else
|
131 |
+
throw new rtFormInvalidArgumentsException( "class [". $element ."]" );
|
132 |
+
}
|
133 |
+
$html .= '" ';
|
134 |
+
|
135 |
+
return $html;
|
136 |
+
}
|
137 |
+
|
138 |
+
private function generate_element_id($element, $id = NULL) {
|
139 |
+
|
140 |
+
$html = 'id="';
|
141 |
+
if( isset( $id ) ) {
|
142 |
+
$html .= $id . '"';
|
143 |
+
$this->element_id = $id;
|
144 |
+
} else {
|
145 |
+
$html .= $this->get_default_class($element) . "-" . $this->get_default_id($element) . '"';
|
146 |
+
$this->element_id = $this->get_default_class($element) . "-" . $this->get_default_id($element);
|
147 |
+
$this->update_default_id($element);
|
148 |
+
}
|
149 |
+
|
150 |
+
return $html;
|
151 |
+
}
|
152 |
+
|
153 |
+
private function generate_element_name($element, $multiple, $name) {
|
154 |
+
|
155 |
+
$html = 'name="';
|
156 |
+
if( $multiple ) {
|
157 |
+
|
158 |
+
$html .= isset( $name ) ? $name . '[]' : $element . '[]';
|
159 |
+
|
160 |
+
// for select - add multiple = multiple
|
161 |
+
if( $element == "rtSelect" ) {
|
162 |
+
$html .= 'multiple = "multiple"';
|
163 |
+
}
|
164 |
+
}
|
165 |
+
else
|
166 |
+
$html .= isset( $name ) ? $name : $element;
|
167 |
+
$html .= '"';
|
168 |
+
|
169 |
+
return $html;
|
170 |
+
}
|
171 |
+
|
172 |
+
private function generate_element_value($element, $attributes) {
|
173 |
+
|
174 |
+
$html = '';
|
175 |
+
switch( $element ) {
|
176 |
+
case "rtHidden"://hidden
|
177 |
+
case "rtNumber"://number
|
178 |
+
case "rtText" : //text
|
179 |
+
$html .= 'value="';
|
180 |
+
$html .= ( isset($attributes['value']) ) ? $attributes['value'] : '';
|
181 |
+
$html .= '" ';
|
182 |
+
break;
|
183 |
+
|
184 |
+
case "rtTextarea" : /**textarea
|
185 |
+
* no process --- handled in between the start tab and end tag.
|
186 |
+
* <textarea> value </textarea>
|
187 |
+
*/
|
188 |
+
break;
|
189 |
+
|
190 |
+
case "rtCheckbox" : //checkbox
|
191 |
+
case "rtRadio" ://radio
|
192 |
+
$html .= 'value = "' . $attributes['value'] . '">';
|
193 |
+
break;
|
194 |
+
}
|
195 |
+
return $html;
|
196 |
+
}
|
197 |
+
|
198 |
+
private function generate_element_desc($attributes) {
|
199 |
+
|
200 |
+
if( isset($attributes['desc']) ) {
|
201 |
+
|
202 |
+
$html = '<span class="clearfix large-offset-3 description">' . $attributes['desc'] . '</span>';
|
203 |
+
|
204 |
+
return $html;
|
205 |
+
}
|
206 |
+
|
207 |
+
return "";
|
208 |
+
}
|
209 |
+
|
210 |
+
private function embedd_misc_attributes($misc) {
|
211 |
+
|
212 |
+
if(!is_array($misc)) {
|
213 |
+
throw new rtFormInvalidArgumentsException("attributes : misc");
|
214 |
+
return;
|
215 |
+
}
|
216 |
+
|
217 |
+
$html = '';
|
218 |
+
|
219 |
+
foreach ($misc as $key => $value) {
|
220 |
+
$html .= $key . '="' . $value . '" ';
|
221 |
+
}
|
222 |
+
|
223 |
+
return $html;
|
224 |
+
}
|
225 |
+
|
226 |
+
private function processAttributes($element, $attributes, $container = false) {
|
227 |
+
|
228 |
+
/* generating the id on its own if not provided otherwise taken from the parameter provided */
|
229 |
+
if( isset($attributes['id']) )
|
230 |
+
$html = $this->generate_element_id($element, $attributes['id']) . ' ';
|
231 |
+
else
|
232 |
+
$html = $this->generate_element_id($element) . ' ';
|
233 |
+
|
234 |
+
/* name attrbute according to multiple flag */
|
235 |
+
$multiple = ( isset($attributes['multiple']) && $attributes['multiple'] ) ? true : false;
|
236 |
+
$name = ( isset($attributes['name']) ) ? $attributes['name'] : $element;
|
237 |
+
$html .= $this->generate_element_name($element, $multiple, $name) . ' ';
|
238 |
+
|
239 |
+
/*
|
240 |
+
* list down all the classes provided along with the default class of rtForms.
|
241 |
+
* default class of rtForms will always be attached irrespective of the attributes provided.
|
242 |
+
*/
|
243 |
+
if(!$container) {
|
244 |
+
|
245 |
+
if(isset($attributes['class']))
|
246 |
+
$html .= $this->embedd_class($element, $attributes['class']);
|
247 |
+
else
|
248 |
+
$html .= $this->embedd_class($element);
|
249 |
+
}
|
250 |
+
|
251 |
+
if(isset($attributes['misc']))
|
252 |
+
$html.= ' ' . $this->embedd_misc_attributes($attributes['misc']);
|
253 |
+
|
254 |
+
$html .= $this->generate_element_value($element, $attributes);
|
255 |
+
|
256 |
+
return $html;
|
257 |
+
}
|
258 |
+
|
259 |
+
private function container_enclosed_elements($element, $attrib, $rtForm_options) {
|
260 |
+
|
261 |
+
$html = '';
|
262 |
+
$size = count($rtForm_options);
|
263 |
+
if( isset($attrib['id']) )
|
264 |
+
$id = $attrib['id'];
|
265 |
+
|
266 |
+
foreach ($rtForm_options as $opt) {
|
267 |
+
|
268 |
+
if( isset($attrib['id']) && $size>1 ) {
|
269 |
+
$attrib['id'] = $id . "-" . $this->get_default_id($element);
|
270 |
+
$this->update_default_id($element);
|
271 |
+
}
|
272 |
+
|
273 |
+
foreach ((array)$opt as $key => $val) {
|
274 |
+
|
275 |
+
if($key == "checked")
|
276 |
+
$attrib['checked'] = $val;
|
277 |
+
else if($key == "selected")
|
278 |
+
$attrib['selected'] = $val;
|
279 |
+
else if($key == "desc")
|
280 |
+
$attrib['desc'] = $val;
|
281 |
+
else if($key == "id")
|
282 |
+
$attrib['id'] = $val;
|
283 |
+
else {
|
284 |
+
$attrib['key'] = $key;
|
285 |
+
$attrib['value'] = $val;
|
286 |
+
}
|
287 |
+
}
|
288 |
+
|
289 |
+
$checked = (isset($attrib['checked']) && $attrib['checked']) ? "checked=checked" : "";
|
290 |
+
if( isset($attrib['switch']) && $attrib['switch'])
|
291 |
+
$switch = 'data-toggle="switch"';
|
292 |
+
else
|
293 |
+
$switch = '';
|
294 |
+
|
295 |
+
switch($element) {
|
296 |
+
case "rtRadio" :
|
297 |
+
$data = '<input type="radio" ' . $checked . " ";
|
298 |
+
break;
|
299 |
+
case "rtCheckbox" :
|
300 |
+
$data = '<input type="checkbox" ' . $checked . " " . $switch . " ";
|
301 |
+
break;
|
302 |
+
case "rtSelect" :
|
303 |
+
$selected = ($attrib['selected']) ? "selected=selected" : "";
|
304 |
+
$data = '<option value="' . $attrib['value'] . '"' . $selected . '>' . $attrib['key'] . '</option><br />';
|
305 |
+
break;
|
306 |
+
}
|
307 |
+
|
308 |
+
if($element != "rtSelect") {
|
309 |
+
$data .= $this->processAttributes($element, $attrib, true);
|
310 |
+
|
311 |
+
if( isset($attrib['switch_square']) && $attrib['switch_square'] ) {
|
312 |
+
|
313 |
+
$data = '<div class="rt-switch switch-square" data-on-label="<i class=\'fui-check\'></i>" data-off-label="<i class=\'fui-cross\'></i>">' . $data . '</div>';
|
314 |
+
|
315 |
+
} else if( (isset($attrib['switch']) && $attrib['switch']) ||
|
316 |
+
(isset($attrib['switch_square']) && $attrib['switch_square']) ) {
|
317 |
+
|
318 |
+
if( $size > 1 )
|
319 |
+
$data = '<div>' . $this->enclose_label($element, $data, $attrib['key']) . '</div>';
|
320 |
+
else
|
321 |
+
$data = $this->enclose_label($element, $data, $attrib['key']);
|
322 |
+
|
323 |
+
} else
|
324 |
+
$data = $this->enclose_label($element, $data, $attrib['key']);
|
325 |
+
|
326 |
+
$data .= '<br>';
|
327 |
+
}
|
328 |
+
|
329 |
+
$html .= $data;
|
330 |
+
|
331 |
+
unset($attrib['id']);
|
332 |
+
unset($attrib['key']);
|
333 |
+
unset($attrib['value']);
|
334 |
+
}
|
335 |
+
return $html;
|
336 |
+
}
|
337 |
+
|
338 |
+
private function parse_multiple_options($element, $attributes) {
|
339 |
+
|
340 |
+
if( is_array($attributes) ) {
|
341 |
+
|
342 |
+
if( isset($attributes['rtForm_options']) && is_array($attributes['rtForm_options']) ) {
|
343 |
+
|
344 |
+
$attribKeys = array_keys($attributes);
|
345 |
+
$attrib = array();
|
346 |
+
|
347 |
+
foreach ($attribKeys as $key) {
|
348 |
+
if( $key != "rtForm_options" )
|
349 |
+
$attrib[$key] = $attributes[$key];
|
350 |
+
}
|
351 |
+
|
352 |
+
$rtForm_options = (array) $attributes['rtForm_options'];
|
353 |
+
|
354 |
+
return array( 'attrib' => $attrib, 'rtForm_options' => $rtForm_options );
|
355 |
+
} else
|
356 |
+
throw new rtFormInvalidArgumentsException( "rtForm_options [" . $element . "]" );
|
357 |
+
} else
|
358 |
+
throw new rtFormInvalidArgumentsException( "attributes" );
|
359 |
+
}
|
360 |
+
|
361 |
+
protected function enclose_label($element, $html, $label, $class=false) {
|
362 |
+
|
363 |
+
$labelClass = '';
|
364 |
+
if(!empty($class) && is_array($class))
|
365 |
+
$labelClass = 'class="'.implode(' ', $class).'"';
|
366 |
+
|
367 |
+
$data = '<label for="' . $this->element_id . '" '.$labelClass.'>';
|
368 |
+
|
369 |
+
if( $element == "rtRadio" || $element == "rtCheckbox" )
|
370 |
+
$data .= $html . ' ' . $label;
|
371 |
+
else
|
372 |
+
$data .= $label . ' ' . $html;
|
373 |
+
|
374 |
+
$data .= '</label>';
|
375 |
+
|
376 |
+
return $data;
|
377 |
+
}
|
378 |
+
|
379 |
+
|
380 |
+
protected function generate_textbox($attributes) {
|
381 |
+
|
382 |
+
$element = 'rtText';
|
383 |
+
if( is_array( $attributes ) ) {
|
384 |
+
|
385 |
+
/* Starting the input tag */
|
386 |
+
$html = '<input type="text" ';
|
387 |
+
|
388 |
+
/* generating attributes */
|
389 |
+
$html .= $this->processAttributes($element, $attributes);
|
390 |
+
|
391 |
+
/* ending the tag */
|
392 |
+
$html .= ' />';
|
393 |
+
|
394 |
+
if( isset($attributes['label']) ) {
|
395 |
+
if( isset($attributes['labelClass']) )
|
396 |
+
$html = $this->enclose_label($element, $html, $attributes['label'], $attributes['labelClass']);
|
397 |
+
else
|
398 |
+
$html = $this->enclose_label($element, $html, $attributes['label']);
|
399 |
+
}
|
400 |
+
|
401 |
+
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
|
402 |
+
$html .= $this->generate_element_desc($attributes);
|
403 |
+
|
404 |
+
return $html;
|
405 |
+
} else
|
406 |
+
throw new rtFormInvalidArgumentsException( "attributes" );
|
407 |
+
}
|
408 |
+
|
409 |
+
public function get_textbox( $attributes = '' ) {
|
410 |
+
|
411 |
+
return $this->generate_textbox($attributes);
|
412 |
+
}
|
413 |
+
|
414 |
+
|
415 |
+
protected function generate_number($attributes) {
|
416 |
+
|
417 |
+
$element = 'rtNumber';
|
418 |
+
if( is_array( $attributes ) ) {
|
419 |
+
|
420 |
+
/* Starting the input tag */
|
421 |
+
$html = '<input type="number" ';
|
422 |
+
|
423 |
+
/* generating attributes */
|
424 |
+
$html .= $this->processAttributes($element, $attributes);
|
425 |
+
|
426 |
+
/* ending the tag */
|
427 |
+
$html .= ' />';
|
428 |
+
|
429 |
+
if( isset($attributes['label']) ) {
|
430 |
+
if( isset($attributes['labelClass']) )
|
431 |
+
$html = $this->enclose_label($element, $html, $attributes['label'], $attributes['labelClass']);
|
432 |
+
else
|
433 |
+
$html = $this->enclose_label($element, $html, $attributes['label']);
|
434 |
+
}
|
435 |
+
|
436 |
+
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
|
437 |
+
$html .= $this->generate_element_desc($attributes);
|
438 |
+
|
439 |
+
return $html;
|
440 |
+
} else
|
441 |
+
throw new rtFormInvalidArgumentsException( "attributes" );
|
442 |
+
}
|
443 |
+
|
444 |
+
public function get_number( $attributes = '' ) {
|
445 |
+
|
446 |
+
return $this->generate_number($attributes);
|
447 |
+
}
|
448 |
+
|
449 |
+
protected function generate_date($attributes) {
|
450 |
+
|
451 |
+
$element = 'rtDate';
|
452 |
+
if( is_array( $attributes ) ) {
|
453 |
+
$html = '<input type="date" ';
|
454 |
+
|
455 |
+
$html .= $this->processAttributes($element, $attributes);
|
456 |
+
|
457 |
+
$html .= ' />';
|
458 |
+
|
459 |
+
if( isset($attributes['label']) ) {
|
460 |
+
if( isset($attributes['labelClass']) )
|
461 |
+
$html = $this->enclose_label($element, $html, $attributes['label'], $attributes['labelClass']);
|
462 |
+
else
|
463 |
+
$html = $this->enclose_label($element, $html, $attributes['label']);
|
464 |
+
}
|
465 |
+
|
466 |
+
if( isset($attributes['show_desc']) && $attributes['desc'] )
|
467 |
+
$html .= $this->generate_element_desc($attributes);
|
468 |
+
|
469 |
+
return $html;
|
470 |
+
} else
|
471 |
+
throw new rtFormInvalidArgumentsException( "attributes" );
|
472 |
+
}
|
473 |
+
|
474 |
+
public function get_date($attributes) {
|
475 |
+
return $this->generate_date($attributes);
|
476 |
+
}
|
477 |
+
|
478 |
+
|
479 |
+
protected function generate_hidden($attributes) {
|
480 |
+
|
481 |
+
$element = 'rtHidden';
|
482 |
+
if( is_array( $attributes ) ) {
|
483 |
+
|
484 |
+
/* Starting the input tag */
|
485 |
+
$html = '<input type="hidden" ';
|
486 |
+
|
487 |
+
/* generating attributes */
|
488 |
+
$html .= $this->processAttributes($element, $attributes);
|
489 |
+
|
490 |
+
/* ending the tag */
|
491 |
+
$html .= ' />';
|
492 |
+
|
493 |
+
if( isset($attributes['label']) ) {
|
494 |
+
if( isset($attributes['labelClass']) )
|
495 |
+
$html = $this->enclose_label($element, $html, $attributes['label'], $attributes['labelClass']);
|
496 |
+
else
|
497 |
+
$html = $this->enclose_label($element, $html, $attributes['label']);
|
498 |
+
}
|
499 |
+
|
500 |
+
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
|
501 |
+
$html .= $this->generate_element_desc($attributes);
|
502 |
+
|
503 |
+
return $html;
|
504 |
+
} else
|
505 |
+
throw new rtFormInvalidArgumentsException( "attributes" );
|
506 |
+
}
|
507 |
+
|
508 |
+
public function get_hidden( $attributes = '' ) {
|
509 |
+
|
510 |
+
return $this->generate_hidden($attributes);
|
511 |
+
}
|
512 |
+
|
513 |
+
|
514 |
+
protected function generate_textarea($attributes) {
|
515 |
+
|
516 |
+
$element = 'rtTextarea';
|
517 |
+
if( is_array( $attributes ) ) {
|
518 |
+
|
519 |
+
$html = '<textarea ';
|
520 |
+
$html .= $this->processAttributes($element, $attributes);
|
521 |
+
$html .= '>';
|
522 |
+
|
523 |
+
$html .= (isset($attributes['value'])) ? $attributes['value'] : "" ;
|
524 |
+
|
525 |
+
$html .= '</textarea>';
|
526 |
+
|
527 |
+
if( isset($attributes['label']) ) {
|
528 |
+
if( isset($attributes['labelClass']) )
|
529 |
+
$html = $this->enclose_label($element, $html, $attributes['label'], $attributes['labelClass']);
|
530 |
+
else
|
531 |
+
$html = $this->enclose_label($element, $html, $attributes['label']);
|
532 |
+
}
|
533 |
+
|
534 |
+
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
|
535 |
+
$html .= $this->generate_element_desc($attributes);
|
536 |
+
|
537 |
+
return $html;
|
538 |
+
} else
|
539 |
+
throw new rtFormInvalidArgumentsException( "attributes" );
|
540 |
+
}
|
541 |
+
|
542 |
+
public function get_textarea( $attributes = '' ) {
|
543 |
+
|
544 |
+
return $this->generate_textarea($attributes);
|
545 |
+
}
|
546 |
+
|
547 |
+
|
548 |
+
|
549 |
+
/* wysiwyg
|
550 |
+
*
|
551 |
+
* pending as of now.
|
552 |
+
*
|
553 |
+
* functionality and flow needs to be decided
|
554 |
+
*
|
555 |
+
* */
|
556 |
+
// protected function generate_wysiwyg($attributes) {
|
557 |
+
//
|
558 |
+
// $element = 'rtWysiwyg';
|
559 |
+
// if( is_array($attributes) ) {
|
560 |
+
//
|
561 |
+
// $id = isset( $attributes['id'] ) ? $attributes['id'] : $this->get_default_class($element) . "-" . $this->get_default_id($element);
|
562 |
+
// $name = isset( $attributes['name'] ) ? $attributes['name'] : $element;
|
563 |
+
// if(isset($attributes['class']))
|
564 |
+
// $class = $this->embedd_class($element, $attributes['class']);
|
565 |
+
// else
|
566 |
+
// $class = $this->embedd_class($element);
|
567 |
+
// $value = isset( $attributes['value'] ) ? $attributes['value'] : "";
|
568 |
+
//
|
569 |
+
// echo '<label for="' . $id . '">';
|
570 |
+
// wp_editor( $value, $id, array('textarea_name' => $name, 'editor_class' => $class) );
|
571 |
+
// echo '</label>';
|
572 |
+
// } else
|
573 |
+
// throw new rtFormInvalidArgumentsException( "attributes" );
|
574 |
+
// }
|
575 |
+
//
|
576 |
+
// public function get_wysiwyg( $attributes = '' ) {
|
577 |
+
//
|
578 |
+
// ob_start();
|
579 |
+
// $this->generate_wysiwyg($attributes);
|
580 |
+
// return ob_get_clean();
|
581 |
+
// }
|
582 |
+
|
583 |
+
|
584 |
+
protected function generate_radio($attributes) {
|
585 |
+
|
586 |
+
$element = 'rtRadio';
|
587 |
+
$html = '';
|
588 |
+
|
589 |
+
$meta = $this->parse_multiple_options($element, $attributes);
|
590 |
+
$html .= $this->container_enclosed_elements($element, $meta['attrib'], $meta['rtForm_options']);
|
591 |
+
|
592 |
+
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
|
593 |
+
$html .= $this->generate_element_desc($attributes);
|
594 |
+
|
595 |
+
$container = '<span ';
|
596 |
+
if(isset($attributes['class']))
|
597 |
+
$container .= $this->embedd_class($element, $attributes['class']);
|
598 |
+
else
|
599 |
+
$container .= $this->embedd_class($element);
|
600 |
+
$container .= '>';
|
601 |
+
|
602 |
+
$container .= $html;
|
603 |
+
|
604 |
+
$container .= '</span>';
|
605 |
+
|
606 |
+
// if( isset($attributes['label']) )
|
607 |
+
// $container = $this->enclose_label('container', $container, $attributes['label']);
|
608 |
+
|
609 |
+
return $container;
|
610 |
+
}
|
611 |
+
|
612 |
+
public function get_radio( $attributes = '' ) {
|
613 |
+
|
614 |
+
return $this->generate_radio($attributes);
|
615 |
+
}
|
616 |
+
|
617 |
+
|
618 |
+
protected function generate_checkbox($attributes) {
|
619 |
+
|
620 |
+
$element = 'rtCheckbox';
|
621 |
+
$html = '';
|
622 |
+
|
623 |
+
$meta = $this->parse_multiple_options($element, $attributes);
|
624 |
+
$html .= $this->container_enclosed_elements($element, $meta['attrib'], $meta['rtForm_options']);
|
625 |
+
|
626 |
+
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
|
627 |
+
$html .= $this->generate_element_desc($attributes);
|
628 |
+
|
629 |
+
$container = '<span ';
|
630 |
+
if(isset($attributes['class']))
|
631 |
+
$container .= $this->embedd_class($element, $attributes['class']);
|
632 |
+
else
|
633 |
+
$container .= $this->embedd_class($element);
|
634 |
+
$container .= '>';
|
635 |
+
|
636 |
+
$container .= $html;
|
637 |
+
|
638 |
+
$container .= '</span>';
|
639 |
+
|
640 |
+
// if( isset($attributes['label']) )
|
641 |
+
// $container = $this->enclose_label('container', $container, $attributes['label']);
|
642 |
+
|
643 |
+
return $container;
|
644 |
+
}
|
645 |
+
|
646 |
+
public function get_checkbox( $attributes = '' ) {
|
647 |
+
|
648 |
+
return $this->generate_checkbox($attributes);
|
649 |
+
}
|
650 |
+
|
651 |
+
public function get_switch($attributes = '') {
|
652 |
+
|
653 |
+
$attributes['switch'] = true;
|
654 |
+
return $this->generate_checkbox($attributes);
|
655 |
+
}
|
656 |
+
|
657 |
+
public function get_switch_square($attributes = '') {
|
658 |
+
|
659 |
+
$attributes['switch_square'] = true;
|
660 |
+
return $this->generate_checkbox($attributes);
|
661 |
+
}
|
662 |
+
|
663 |
+
protected function generate_select($attributes) {
|
664 |
+
|
665 |
+
if( is_array($attributes) ) {
|
666 |
+
$element = 'rtSelect';
|
667 |
+
$html = '<select ';
|
668 |
+
|
669 |
+
if(isset($attributes['id']))
|
670 |
+
$id = $attributes['id'];
|
671 |
+
else {
|
672 |
+
$id = $element.$this->get_default_id ($element);
|
673 |
+
$this->update_default_id($element);
|
674 |
+
}
|
675 |
+
$html .= $this->generate_element_id($element, $id) . ' ';
|
676 |
+
$multiple = ( isset($attributes['multiple']) && $attributes['multiple'] ) ? true : false;
|
677 |
+
$name = ( isset($attributes['name']) ) ? $attributes['name'] : $element;
|
678 |
+
$html .= $this->generate_element_name($element, $multiple, $name) . ' ';
|
679 |
+
if(isset($attributes['class']))
|
680 |
+
$html .= $this->embedd_class($element, $attributes['class']);
|
681 |
+
else
|
682 |
+
$html .= $this->embedd_class($element);
|
683 |
+
|
684 |
+
$html .= '>';
|
685 |
+
|
686 |
+
$meta = $this->parse_multiple_options($element, $attributes);
|
687 |
+
$html .= $this->container_enclosed_elements($element, $meta['attrib'], $meta['rtForm_options']);
|
688 |
+
|
689 |
+
$html .= '</select>';
|
690 |
+
|
691 |
+
if( isset($attributes['label']) ) {
|
692 |
+
if( isset($attributes['labelClass']) )
|
693 |
+
$html = $this->enclose_label($element, $html, $attributes['label'], $attributes['labelClass']);
|
694 |
+
else
|
695 |
+
$html = $this->enclose_label($element, $html, $attributes['label']);
|
696 |
+
}
|
697 |
+
|
698 |
+
if( isset($attributes['show_desc']) && $attributes['show_desc'] )
|
699 |
+
$html .= $this->generate_element_desc($attributes);
|
700 |
+
|
701 |
+
return $html;
|
702 |
+
} else
|
703 |
+
throw new rtFormInvalidArgumentsException( "attributes" );
|
704 |
+
|
705 |
+
}
|
706 |
+
|
707 |
+
public function get_select( $attributes = '' ) {
|
708 |
+
|
709 |
+
return $this->generate_select($attributes);
|
710 |
+
}
|
711 |
+
}
|
712 |
+
}
|
713 |
+
?>
|
trunk/app/helper/rtFormInvalidArgumentsException.php
ADDED
@@ -0,0 +1,29 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* To change this template, choose Tools | Templates
|
5 |
+
* and open the template in the editor.
|
6 |
+
*/
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Description of rtException
|
10 |
+
*
|
11 |
+
* @author udit
|
12 |
+
*/
|
13 |
+
|
14 |
+
if(!class_exists("rtFormsInvalidArgumentsException")) {
|
15 |
+
|
16 |
+
class rtFormInvalidArgumentsException extends Exception {
|
17 |
+
|
18 |
+
public function __construct($msg) {
|
19 |
+
|
20 |
+
//Error Message
|
21 |
+
$errorMsg = 'Error on line ' . $this->getLine() . ' in ' . $this->getFile() .
|
22 |
+
' : <b>The method expects an array in arguments for ' . $msg . ' provided.</b>';
|
23 |
+
|
24 |
+
echo $errorMsg;
|
25 |
+
}
|
26 |
+
}
|
27 |
+
}
|
28 |
+
|
29 |
+
?>
|
trunk/app/helper/rtPluginInfo.php
ADDED
@@ -0,0 +1,124 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* A container class for holding and transforming various plugin metadata.
|
5 |
+
*
|
6 |
+
* @author faishal
|
7 |
+
*/
|
8 |
+
class rtPluginInfo {
|
9 |
+
|
10 |
+
//Most fields map directly to the contents of the plugin's info.json file.
|
11 |
+
//See the relevant docs for a description of their meaning.
|
12 |
+
public $name;
|
13 |
+
public $slug;
|
14 |
+
public $version;
|
15 |
+
public $homepage;
|
16 |
+
public $sections;
|
17 |
+
public $download_url;
|
18 |
+
public $author;
|
19 |
+
public $author_homepage;
|
20 |
+
public $requires;
|
21 |
+
public $tested;
|
22 |
+
public $upgrade_notice;
|
23 |
+
public $rating;
|
24 |
+
public $num_ratings;
|
25 |
+
public $downloaded;
|
26 |
+
public $last_updated;
|
27 |
+
public $id = 0; //The native WP.org API returns numeric plugin IDs, but they're not used for anything.
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Create a new instance of PluginInfo from JSON-encoded plugin info
|
31 |
+
* returned by an external update API.
|
32 |
+
*
|
33 |
+
* @param string $json Valid JSON string representing plugin info.
|
34 |
+
* @param bool $triggerErrors
|
35 |
+
* @return PluginInfo|null New instance of PluginInfo, or NULL on error.
|
36 |
+
*/
|
37 |
+
|
38 |
+
/**
|
39 |
+
*
|
40 |
+
* @param type $json
|
41 |
+
* @param type $triggerErrors
|
42 |
+
* @return null|\self
|
43 |
+
*/
|
44 |
+
public static function fromJson($json, $triggerErrors = false) {
|
45 |
+
/** @var StdClass $apiResponse */
|
46 |
+
$apiResponse = json_decode($json);
|
47 |
+
if (empty($apiResponse) || !is_object($apiResponse)) {
|
48 |
+
if ($triggerErrors) {
|
49 |
+
trigger_error(
|
50 |
+
"Failed to parse plugin metadata. Try validating your .json file with http://jsonlint.com/", E_USER_NOTICE
|
51 |
+
);
|
52 |
+
}
|
53 |
+
return null;
|
54 |
+
}
|
55 |
+
|
56 |
+
//Very, very basic validation.
|
57 |
+
$valid = isset($apiResponse->name) && !empty($apiResponse->name) && isset($apiResponse->version) && !empty($apiResponse->version);
|
58 |
+
if (!$valid) {
|
59 |
+
if ($triggerErrors) {
|
60 |
+
trigger_error(
|
61 |
+
"The plugin metadata file does not contain the required 'name' and/or 'version' keys.", E_USER_NOTICE
|
62 |
+
);
|
63 |
+
}
|
64 |
+
return null;
|
65 |
+
}
|
66 |
+
|
67 |
+
$info = new self();
|
68 |
+
foreach (get_object_vars($apiResponse) as $key => $value) {
|
69 |
+
$info->$key = $value;
|
70 |
+
}
|
71 |
+
|
72 |
+
return $info;
|
73 |
+
}
|
74 |
+
|
75 |
+
/**
|
76 |
+
* Transform plugin info into the format used by the native WordPress.org API
|
77 |
+
*
|
78 |
+
* @return object
|
79 |
+
*/
|
80 |
+
|
81 |
+
/**
|
82 |
+
*
|
83 |
+
* @return \StdClass
|
84 |
+
*/
|
85 |
+
public function toWpFormat() {
|
86 |
+
$info = new StdClass;
|
87 |
+
|
88 |
+
//The custom update API is built so that many fields have the same name and format
|
89 |
+
//as those returned by the native WordPress.org API. These can be assigned directly.
|
90 |
+
$sameFormat = array(
|
91 |
+
'name', 'slug', 'version', 'requires', 'tested', 'rating', 'upgrade_notice',
|
92 |
+
'num_ratings', 'downloaded', 'homepage', 'last_updated',
|
93 |
+
);
|
94 |
+
foreach ($sameFormat as $field) {
|
95 |
+
if (isset($this->$field)) {
|
96 |
+
$info->$field = $this->$field;
|
97 |
+
} else {
|
98 |
+
$info->$field = null;
|
99 |
+
}
|
100 |
+
}
|
101 |
+
|
102 |
+
//Other fields need to be renamed and/or transformed.
|
103 |
+
$info->download_link = $this->download_url;
|
104 |
+
|
105 |
+
if (!empty($this->author_homepage)) {
|
106 |
+
$info->author = sprintf('<a href="%s">%s</a>', $this->author_homepage, $this->author);
|
107 |
+
} else {
|
108 |
+
$info->author = $this->author;
|
109 |
+
}
|
110 |
+
|
111 |
+
if (is_object($this->sections)) {
|
112 |
+
$info->sections = get_object_vars($this->sections);
|
113 |
+
} elseif (is_array($this->sections)) {
|
114 |
+
$info->sections = $this->sections;
|
115 |
+
} else {
|
116 |
+
$info->sections = array('description' => '');
|
117 |
+
}
|
118 |
+
|
119 |
+
return $info;
|
120 |
+
}
|
121 |
+
|
122 |
+
}
|
123 |
+
|
124 |
+
?>
|
trunk/app/helper/rtPluginUpdate.php
ADDED
@@ -0,0 +1,130 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Description of rtPluginUpdate
|
5 |
+
* A simple container class for holding information about an available update.
|
6 |
+
* @author faishal
|
7 |
+
*/
|
8 |
+
class rtPluginUpdate {
|
9 |
+
|
10 |
+
public $id = 0;
|
11 |
+
public $slug;
|
12 |
+
public $version;
|
13 |
+
public $homepage;
|
14 |
+
public $download_url;
|
15 |
+
public $upgrade_notice;
|
16 |
+
private static $fields = array('id', 'slug', 'version', 'homepage', 'download_url', 'upgrade_notice');
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Create a new instance of PluginUpdate from its JSON-encoded representation.
|
20 |
+
*
|
21 |
+
* @param string $json
|
22 |
+
* @param bool $triggerErrors
|
23 |
+
* @return PluginUpdate|null
|
24 |
+
*/
|
25 |
+
|
26 |
+
/**
|
27 |
+
*
|
28 |
+
* @param type $json
|
29 |
+
* @param type $triggerErrors
|
30 |
+
* @return null
|
31 |
+
*/
|
32 |
+
public static function fromJson($json, $triggerErrors = false) {
|
33 |
+
//Since update-related information is simply a subset of the full plugin info,
|
34 |
+
//we can parse the update JSON as if it was a plugin info string, then copy over
|
35 |
+
//the parts that we care about.
|
36 |
+
$pluginInfo = rtPluginInfo::fromJson($json, $triggerErrors);
|
37 |
+
if ($pluginInfo != null) {
|
38 |
+
return self::fromPluginInfo($pluginInfo);
|
39 |
+
} else {
|
40 |
+
return null;
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
/**
|
45 |
+
* Create a new instance of PluginUpdate based on an instance of PluginInfo.
|
46 |
+
* Basically, this just copies a subset of fields from one object to another.
|
47 |
+
*
|
48 |
+
* @param PluginInfo $info
|
49 |
+
* @return PluginUpdate
|
50 |
+
*/
|
51 |
+
|
52 |
+
/**
|
53 |
+
*
|
54 |
+
* @param type $info
|
55 |
+
* @return type
|
56 |
+
*/
|
57 |
+
public static function fromPluginInfo($info) {
|
58 |
+
return self::fromObject($info);
|
59 |
+
}
|
60 |
+
|
61 |
+
/**
|
62 |
+
* Create a new instance of PluginUpdate by copying the necessary fields from
|
63 |
+
* another object.
|
64 |
+
*
|
65 |
+
* @param StdClass|PluginInfo|PluginUpdate $object The source object.
|
66 |
+
* @return PluginUpdate The new copy.
|
67 |
+
*/
|
68 |
+
|
69 |
+
/**
|
70 |
+
*
|
71 |
+
* @param type $object
|
72 |
+
* @return \self
|
73 |
+
*/
|
74 |
+
public static function fromObject($object) {
|
75 |
+
$update = new self();
|
76 |
+
foreach (self::$fields as $field) {
|
77 |
+
$update->$field = $object->$field;
|
78 |
+
}
|
79 |
+
return $update;
|
80 |
+
}
|
81 |
+
|
82 |
+
/**
|
83 |
+
* Create an instance of StdClass that can later be converted back to
|
84 |
+
* a PluginUpdate. Useful for serialization and caching, as it avoids
|
85 |
+
* the "incomplete object" problem if the cached value is loaded before
|
86 |
+
* this class.
|
87 |
+
*
|
88 |
+
* @return StdClass
|
89 |
+
*/
|
90 |
+
|
91 |
+
/**
|
92 |
+
*
|
93 |
+
* @return \StdClass
|
94 |
+
*/
|
95 |
+
public function toStdClass() {
|
96 |
+
$object = new StdClass();
|
97 |
+
foreach (self::$fields as $field) {
|
98 |
+
$object->$field = $this->$field;
|
99 |
+
}
|
100 |
+
return $object;
|
101 |
+
}
|
102 |
+
|
103 |
+
/**
|
104 |
+
* Transform the update into the format used by WordPress native plugin API.
|
105 |
+
*
|
106 |
+
* @return object
|
107 |
+
*/
|
108 |
+
|
109 |
+
/**
|
110 |
+
*
|
111 |
+
* @return \StdClass
|
112 |
+
*/
|
113 |
+
public function toWpFormat() {
|
114 |
+
$update = new StdClass;
|
115 |
+
|
116 |
+
$update->id = $this->id;
|
117 |
+
$update->slug = $this->slug;
|
118 |
+
$update->new_version = $this->version;
|
119 |
+
$update->url = $this->homepage;
|
120 |
+
$update->package = $this->download_url;
|
121 |
+
if (!empty($this->upgrade_notice)) {
|
122 |
+
$update->upgrade_notice = $this->upgrade_notice;
|
123 |
+
}
|
124 |
+
|
125 |
+
return $update;
|
126 |
+
}
|
127 |
+
|
128 |
+
}
|
129 |
+
|
130 |
+
?>
|
trunk/app/helper/rtPluginUpdateChecker.php
ADDED
@@ -0,0 +1,669 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Description of rtUpdateCheker
|
5 |
+
* A custom plugin update checker.
|
6 |
+
*
|
7 |
+
* @author faishal
|
8 |
+
*/
|
9 |
+
class rtPluginUpdateChecker {
|
10 |
+
|
11 |
+
public $metadataUrl = ''; //The URL of the plugin's metadata file.
|
12 |
+
public $pluginFile = ''; //Plugin filename relative to the plugins directory.
|
13 |
+
public $slug = ''; //Plugin slug.
|
14 |
+
public $checkPeriod = 12; //How often to check for updates (in hours).
|
15 |
+
public $optionName = ''; //Where to store the update info.
|
16 |
+
public $debugMode = true; //Set to TRUE to enable error reporting. Errors are raised using trigger_error()
|
17 |
+
//and should be logged to the standard PHP error log.
|
18 |
+
private $cronHook = null;
|
19 |
+
private $debugBarPlugin = null;
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Class constructor.
|
23 |
+
*
|
24 |
+
* @param string $metadataUrl The URL of the plugin's metadata file.
|
25 |
+
* @param string $pluginFile Fully qualified path to the main plugin file.
|
26 |
+
* @param string $slug The plugin's 'slug'. If not specified, the filename part of $pluginFile sans '.php' will be used as the slug.
|
27 |
+
* @param integer $checkPeriod How often to check for updates (in hours). Defaults to checking every 12 hours. Set to 0 to disable automatic update checks.
|
28 |
+
* @param string $optionName Where to store book-keeping info about update checks. Defaults to 'external_updates-$slug'.
|
29 |
+
*/
|
30 |
+
|
31 |
+
/**
|
32 |
+
*
|
33 |
+
* @param type $metadataUrl
|
34 |
+
* @param type $pluginFile
|
35 |
+
* @param type $slug
|
36 |
+
* @param type $checkPeriod
|
37 |
+
* @param type $optionName
|
38 |
+
*/
|
39 |
+
public function __construct($metadataUrl, $pluginFile, $slug = '', $checkPeriod = 12, $optionName = '') {
|
40 |
+
if(strpos($metadataUrl,"https:") !== false){
|
41 |
+
$metadataUrl = str_replace("https:", "http:", $metadataUrl);
|
42 |
+
}
|
43 |
+
$this->metadataUrl = $metadataUrl;
|
44 |
+
$this->pluginFile = plugin_basename($pluginFile);
|
45 |
+
$this->checkPeriod = $checkPeriod;
|
46 |
+
$this->slug = $slug;
|
47 |
+
$this->optionName = $optionName;
|
48 |
+
$this->debugMode = defined('WP_DEBUG') && WP_DEBUG;
|
49 |
+
|
50 |
+
//If no slug is specified, use the name of the main plugin file as the slug.
|
51 |
+
//For example, 'my-cool-plugin/cool-plugin.php' becomes 'cool-plugin'.
|
52 |
+
if (empty($this->slug)) {
|
53 |
+
$this->slug = basename($this->pluginFile, '.php');
|
54 |
+
}
|
55 |
+
|
56 |
+
if (empty($this->optionName)) {
|
57 |
+
$this->optionName = 'external_updates-' . $this->slug;
|
58 |
+
}
|
59 |
+
|
60 |
+
$this->installHooks();
|
61 |
+
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Install the hooks required to run periodic update checks and inject update info
|
65 |
+
* into WP data structures.
|
66 |
+
*
|
67 |
+
* @return void
|
68 |
+
*/
|
69 |
+
protected function installHooks() {
|
70 |
+
//Override requests for plugin information
|
71 |
+
add_filter('plugins_api', array($this, 'injectInfo'), 20, 3);
|
72 |
+
|
73 |
+
//Insert our update info into the update array maintained by WP
|
74 |
+
add_filter('site_transient_update_plugins', array($this, 'injectUpdate')); //WP 3.0+
|
75 |
+
add_filter('transient_update_plugins', array($this, 'injectUpdate')); //WP 2.8+
|
76 |
+
|
77 |
+
add_filter('plugin_row_meta', array($this, 'addCheckForUpdatesLink'), 10, 4);
|
78 |
+
add_action('admin_init', array($this, 'handleManualCheck'));
|
79 |
+
add_action('all_admin_notices', array($this, 'displayManualCheckResult'));
|
80 |
+
|
81 |
+
//Set up the periodic update checks
|
82 |
+
$this->cronHook = 'check_plugin_updates-' . $this->slug;
|
83 |
+
if ($this->checkPeriod > 0) {
|
84 |
+
|
85 |
+
//Trigger the check via Cron
|
86 |
+
add_filter('cron_schedules', array($this, '_addCustomSchedule'));
|
87 |
+
if (!wp_next_scheduled($this->cronHook) && !defined('WP_INSTALLING')) {
|
88 |
+
$scheduleName = 'every' . $this->checkPeriod . 'hours';
|
89 |
+
wp_schedule_event(time(), $scheduleName, $this->cronHook);
|
90 |
+
}
|
91 |
+
add_action($this->cronHook, array($this, 'checkForUpdates'));
|
92 |
+
|
93 |
+
register_deactivation_hook($this->pluginFile, array($this, '_removeUpdaterCron'));
|
94 |
+
|
95 |
+
//In case Cron is disabled or unreliable, we also manually trigger
|
96 |
+
//the periodic checks while the user is browsing the Dashboard.
|
97 |
+
add_action('admin_init', array($this, 'maybeCheckForUpdates'));
|
98 |
+
} else {
|
99 |
+
//Periodic checks are disabled.
|
100 |
+
wp_clear_scheduled_hook($this->cronHook);
|
101 |
+
}
|
102 |
+
|
103 |
+
add_action('plugins_loaded', array($this, 'initDebugBarPanel'));
|
104 |
+
}
|
105 |
+
|
106 |
+
/**
|
107 |
+
* Add our custom schedule to the array of Cron schedules used by WP.
|
108 |
+
*
|
109 |
+
* @param array $schedules
|
110 |
+
* @return array
|
111 |
+
*/
|
112 |
+
|
113 |
+
/**
|
114 |
+
*
|
115 |
+
* @param type $schedules
|
116 |
+
* @return type
|
117 |
+
*/
|
118 |
+
public function _addCustomSchedule($schedules) {
|
119 |
+
if ($this->checkPeriod && ($this->checkPeriod > 0)) {
|
120 |
+
$scheduleName = 'every' . $this->checkPeriod . 'hours';
|
121 |
+
$schedules[$scheduleName] = array(
|
122 |
+
'interval' => $this->checkPeriod * 3600,
|
123 |
+
'display' => sprintf('Every %d hours', $this->checkPeriod),
|
124 |
+
);
|
125 |
+
}
|
126 |
+
return $schedules;
|
127 |
+
}
|
128 |
+
|
129 |
+
/**
|
130 |
+
* Remove the scheduled cron event that the library uses to check for updates.
|
131 |
+
*
|
132 |
+
* @return void
|
133 |
+
*/
|
134 |
+
public function _removeUpdaterCron() {
|
135 |
+
wp_clear_scheduled_hook($this->cronHook);
|
136 |
+
}
|
137 |
+
|
138 |
+
/**
|
139 |
+
* Get the name of the update checker's WP-cron hook. Mostly useful for debugging.
|
140 |
+
*
|
141 |
+
* @return string
|
142 |
+
*/
|
143 |
+
|
144 |
+
/**
|
145 |
+
*
|
146 |
+
* @return type
|
147 |
+
*/
|
148 |
+
public function getCronHookName() {
|
149 |
+
return $this->cronHook;
|
150 |
+
}
|
151 |
+
|
152 |
+
/**
|
153 |
+
* Retrieve plugin info from the configured API endpoint.
|
154 |
+
*
|
155 |
+
* @uses wp_remote_get()
|
156 |
+
*
|
157 |
+
* @param array $queryArgs Additional query arguments to append to the request. Optional.
|
158 |
+
* @return PluginInfo
|
159 |
+
*/
|
160 |
+
|
161 |
+
/**
|
162 |
+
*
|
163 |
+
* @param type $queryArgs
|
164 |
+
* @return type
|
165 |
+
*/
|
166 |
+
public function requestInfo($queryArgs = array()) {
|
167 |
+
//Query args to append to the URL. Plugins can add their own by using a filter callback (see addQueryArgFilter()).
|
168 |
+
$installedVersion = $this->getInstalledVersion();
|
169 |
+
$queryArgs['installed_version'] = ($installedVersion !== null) ? $installedVersion : '';
|
170 |
+
$queryArgs['admin_email'] = get_option("admin_email");
|
171 |
+
$queryArgs['slug'] = $this->slug;
|
172 |
+
$queryArgs = apply_filters('puc_request_info_query_args-' . $this->slug, $queryArgs);
|
173 |
+
//Various options for the wp_remote_get() call. Plugins can filter these, too.
|
174 |
+
$options = array(
|
175 |
+
'timeout' => 10, //seconds
|
176 |
+
'headers' => array(
|
177 |
+
'Accept' => 'application/json'
|
178 |
+
),
|
179 |
+
);
|
180 |
+
$options = apply_filters('puc_request_info_options-' . $this->slug, $options);
|
181 |
+
|
182 |
+
//The plugin info should be at 'http://your-api.com/url/here/$slug/info.json'
|
183 |
+
$url = $this->metadataUrl;
|
184 |
+
if (!empty($queryArgs)) {
|
185 |
+
$url = add_query_arg($queryArgs, $url);
|
186 |
+
}
|
187 |
+
|
188 |
+
$result = wp_remote_get(
|
189 |
+
$url, $options
|
190 |
+
);
|
191 |
+
//Try to parse the response
|
192 |
+
$pluginInfo = null;
|
193 |
+
if (!is_wp_error($result) && isset($result['response']['code']) && ($result['response']['code'] == 200) && !empty($result['body'])) {
|
194 |
+
$pluginInfo = rtPluginInfo::fromJson($result['body'], $this->debugMode);
|
195 |
+
} else if ($this->debugMode) {
|
196 |
+
$message = sprintf("The URL %s does not point to a valid plugin metadata file. ", $url);
|
197 |
+
if (is_wp_error($result)) {
|
198 |
+
$message .= "WP HTTP error: " . $result->get_error_message();
|
199 |
+
} else if (isset($result['response']['code'])) {
|
200 |
+
$message .= "HTTP response code is " . $result['response']['code'] . " (expected: 200)";
|
201 |
+
} else {
|
202 |
+
$message .= "wp_remote_get() returned an unexpected result.";
|
203 |
+
}
|
204 |
+
trigger_error($message, E_USER_WARNING);
|
205 |
+
}
|
206 |
+
|
207 |
+
$pluginInfo = apply_filters('puc_request_info_result-' . $this->slug, $pluginInfo, $result);
|
208 |
+
return $pluginInfo;
|
209 |
+
}
|
210 |
+
|
211 |
+
/**
|
212 |
+
* Retrieve the latest update (if any) from the configured API endpoint.
|
213 |
+
*
|
214 |
+
* @uses PluginUpdateChecker::requestInfo()
|
215 |
+
*
|
216 |
+
* @return PluginUpdate An instance of PluginUpdate, or NULL when no updates are available.
|
217 |
+
*/
|
218 |
+
|
219 |
+
/**
|
220 |
+
*
|
221 |
+
* @return null
|
222 |
+
*/
|
223 |
+
public function requestUpdate() {
|
224 |
+
//For the sake of simplicity, this function just calls requestInfo()
|
225 |
+
//and transforms the result accordingly.
|
226 |
+
$pluginInfo = $this->requestInfo(array('checking_for_updates' => '1'));
|
227 |
+
if ($pluginInfo == null) {
|
228 |
+
return null;
|
229 |
+
}
|
230 |
+
return rtPluginUpdate::fromPluginInfo($pluginInfo);
|
231 |
+
}
|
232 |
+
|
233 |
+
/**
|
234 |
+
* Get the currently installed version of the plugin.
|
235 |
+
*
|
236 |
+
* @return string Version number.
|
237 |
+
*/
|
238 |
+
|
239 |
+
/**
|
240 |
+
*
|
241 |
+
* @return null
|
242 |
+
*/
|
243 |
+
public function getInstalledVersion() {
|
244 |
+
|
245 |
+
if (!function_exists('get_plugins')) {
|
246 |
+
if (is_multisite()) {
|
247 |
+
require_once( ABSPATH . '/wp-admin/network/includes/plugin.php' );
|
248 |
+
} else {
|
249 |
+
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
250 |
+
}
|
251 |
+
}
|
252 |
+
$allPlugins = get_plugins();
|
253 |
+
if (array_key_exists($this->pluginFile, $allPlugins) && array_key_exists('Version', $allPlugins[$this->pluginFile])) {
|
254 |
+
return $allPlugins[$this->pluginFile]['Version'];
|
255 |
+
} else {
|
256 |
+
//This can happen if the filename is wrong or the plugin is installed in mu-plugins.
|
257 |
+
if ($this->debugMode) {
|
258 |
+
trigger_error(
|
259 |
+
sprintf(
|
260 |
+
"Can't to read the Version header for %s. The filename may be incorrect, or the file is not present in /wp-content/plugins.", $this->pluginFile
|
261 |
+
), E_USER_WARNING
|
262 |
+
);
|
263 |
+
}
|
264 |
+
return null;
|
265 |
+
}
|
266 |
+
}
|
267 |
+
|
268 |
+
/**
|
269 |
+
* Check for plugin updates.
|
270 |
+
* The results are stored in the DB option specified in $optionName.
|
271 |
+
*
|
272 |
+
* @return PluginUpdate|null
|
273 |
+
*/
|
274 |
+
|
275 |
+
/**
|
276 |
+
*
|
277 |
+
* @return null
|
278 |
+
*/
|
279 |
+
public function checkForUpdates() {
|
280 |
+
$installedVersion = $this->getInstalledVersion();
|
281 |
+
//Fail silently if we can't find the plugin or read its header.
|
282 |
+
if ($installedVersion === null) {
|
283 |
+
if ($this->debugMode) {
|
284 |
+
trigger_error(
|
285 |
+
sprintf('Skipping update check for %s - installed version unknown.', $this->pluginFile), E_USER_WARNING
|
286 |
+
);
|
287 |
+
}
|
288 |
+
return null;
|
289 |
+
}
|
290 |
+
|
291 |
+
$state = $this->getUpdateState();
|
292 |
+
if (empty($state)) {
|
293 |
+
$state = new StdClass;
|
294 |
+
$state->lastCheck = 0;
|
295 |
+
$state->checkedVersion = '';
|
296 |
+
$state->update = null;
|
297 |
+
}
|
298 |
+
|
299 |
+
$state->lastCheck = time();
|
300 |
+
$state->checkedVersion = $installedVersion;
|
301 |
+
$this->setUpdateState($state); //Save before checking in case something goes wrong
|
302 |
+
|
303 |
+
$state->update = $this->requestUpdate();
|
304 |
+
$this->setUpdateState($state);
|
305 |
+
|
306 |
+
return $this->getUpdate();
|
307 |
+
}
|
308 |
+
|
309 |
+
/**
|
310 |
+
* Check for updates only if the configured check interval has already elapsed.
|
311 |
+
*
|
312 |
+
* @return void
|
313 |
+
*/
|
314 |
+
|
315 |
+
/**
|
316 |
+
*
|
317 |
+
* @return type
|
318 |
+
*/
|
319 |
+
public function maybeCheckForUpdates() {
|
320 |
+
if (empty($this->checkPeriod)) {
|
321 |
+
return;
|
322 |
+
}
|
323 |
+
$state = $this->getUpdateState();
|
324 |
+
|
325 |
+
$shouldCheck =
|
326 |
+
empty($state) ||
|
327 |
+
!isset($state->lastCheck) ||
|
328 |
+
( (time() - $state->lastCheck) >= $this->checkPeriod * 3600 );
|
329 |
+
|
330 |
+
if ($shouldCheck) {
|
331 |
+
$this->checkForUpdates();
|
332 |
+
}
|
333 |
+
}
|
334 |
+
|
335 |
+
/**
|
336 |
+
* Load the update checker state from the DB.
|
337 |
+
*
|
338 |
+
* @return StdClass|null
|
339 |
+
*/
|
340 |
+
|
341 |
+
/**
|
342 |
+
*
|
343 |
+
* @return null
|
344 |
+
*/
|
345 |
+
public function getUpdateState() {
|
346 |
+
$state = get_site_option($this->optionName, null);
|
347 |
+
if (empty($state) || !is_object($state)) {
|
348 |
+
$state = null;
|
349 |
+
}
|
350 |
+
|
351 |
+
if (!empty($state) && isset($state->update) && is_object($state->update)) {
|
352 |
+
$state->update = rtPluginUpdate::fromObject($state->update);
|
353 |
+
}
|
354 |
+
return $state;
|
355 |
+
}
|
356 |
+
|
357 |
+
/**
|
358 |
+
* Persist the update checker state to the DB.
|
359 |
+
*
|
360 |
+
* @param StdClass $state
|
361 |
+
* @return void
|
362 |
+
*/
|
363 |
+
|
364 |
+
/**
|
365 |
+
*
|
366 |
+
* @param type $state
|
367 |
+
*/
|
368 |
+
private function setUpdateState($state) {
|
369 |
+
if (isset($state->update) && is_object($state->update) && method_exists($state->update, 'toStdClass')) {
|
370 |
+
$update = $state->update;/** @var PluginUpdate $update */
|
371 |
+
$state->update = $update->toStdClass();
|
372 |
+
}
|
373 |
+
update_site_option($this->optionName, $state);
|
374 |
+
}
|
375 |
+
|
376 |
+
/**
|
377 |
+
* Reset update checker state - i.e. last check time, cached update data and so on.
|
378 |
+
*
|
379 |
+
* Call this when your plugin is being uninstalled, or if you want to
|
380 |
+
* clear the update cache.
|
381 |
+
*/
|
382 |
+
public function resetUpdateState() {
|
383 |
+
delete_site_option($this->optionName);
|
384 |
+
}
|
385 |
+
|
386 |
+
/**
|
387 |
+
* Intercept plugins_api() calls that request information about our plugin and
|
388 |
+
* use the configured API endpoint to satisfy them.
|
389 |
+
*
|
390 |
+
* @see plugins_api()
|
391 |
+
*
|
392 |
+
* @param mixed $result
|
393 |
+
* @param string $action
|
394 |
+
* @param array|object $args
|
395 |
+
* @return mixed
|
396 |
+
*/
|
397 |
+
|
398 |
+
/**
|
399 |
+
*
|
400 |
+
* @param type $result
|
401 |
+
* @param type $action
|
402 |
+
* @param type $args
|
403 |
+
* @return type
|
404 |
+
*/
|
405 |
+
public function injectInfo($result, $action = null, $args = null) {
|
406 |
+
$relevant = ($action == 'plugin_information') && isset($args->slug) && ($args->slug == $this->slug);
|
407 |
+
if (!$relevant) {
|
408 |
+
return $result;
|
409 |
+
}
|
410 |
+
|
411 |
+
$pluginInfo = $this->requestInfo();
|
412 |
+
$pluginInfo = apply_filters('puc_pre_inject_info-' . $this->slug, $pluginInfo);
|
413 |
+
if ($pluginInfo) {
|
414 |
+
return $pluginInfo->toWpFormat();
|
415 |
+
}
|
416 |
+
|
417 |
+
return $result;
|
418 |
+
}
|
419 |
+
|
420 |
+
/**
|
421 |
+
* Insert the latest update (if any) into the update list maintained by WP.
|
422 |
+
*
|
423 |
+
* @param StdClass $updates Update list.
|
424 |
+
* @return StdClass Modified update list.
|
425 |
+
*/
|
426 |
+
|
427 |
+
/**
|
428 |
+
*
|
429 |
+
* @param StdClass $updates
|
430 |
+
* @return \StdClass
|
431 |
+
*/
|
432 |
+
public function injectUpdate($updates) {
|
433 |
+
//Is there an update to insert?
|
434 |
+
$update = $this->getUpdate();
|
435 |
+
if (!empty($update)) {
|
436 |
+
//Let plugins filter the update info before it's passed on to WordPress.
|
437 |
+
$update = apply_filters('puc_pre_inject_update-' . $this->slug, $update);
|
438 |
+
if (!is_object($updates)) {
|
439 |
+
$updates = new StdClass();
|
440 |
+
$updates->response = array();
|
441 |
+
}
|
442 |
+
$updates->response[$this->pluginFile] = $update->toWpFormat();
|
443 |
+
} else if (isset($updates, $updates->response)) {
|
444 |
+
unset($updates->response[$this->pluginFile]);
|
445 |
+
}
|
446 |
+
|
447 |
+
return $updates;
|
448 |
+
}
|
449 |
+
|
450 |
+
/**
|
451 |
+
* Get the details of the currently available update, if any.
|
452 |
+
*
|
453 |
+
* If no updates are available, or if the last known update version is below or equal
|
454 |
+
* to the currently installed version, this method will return NULL.
|
455 |
+
*
|
456 |
+
* Uses cached update data. To retrieve update information straight from
|
457 |
+
* the metadata URL, call requestUpdate() instead.
|
458 |
+
*
|
459 |
+
* @return PluginUpdate|null
|
460 |
+
*/
|
461 |
+
|
462 |
+
/**
|
463 |
+
*
|
464 |
+
* @return null
|
465 |
+
*/
|
466 |
+
public function getUpdate() {
|
467 |
+
$state = $this->getUpdateState();/** @var StdClass $state */
|
468 |
+
//Is there an update available insert?
|
469 |
+
if (!empty($state) && isset($state->update) && !empty($state->update)) {
|
470 |
+
$update = $state->update;
|
471 |
+
//Check if the update is actually newer than the currently installed version.
|
472 |
+
$installedVersion = $this->getInstalledVersion();
|
473 |
+
if (($installedVersion !== null) && version_compare($update->version, $installedVersion, '>')) {
|
474 |
+
return $update;
|
475 |
+
}
|
476 |
+
}
|
477 |
+
return null;
|
478 |
+
}
|
479 |
+
|
480 |
+
/**
|
481 |
+
* Add a "Check for updates" link to the plugin row in the "Plugins" page. By default,
|
482 |
+
* the new link will appear after the "Visit plugin site" link.
|
483 |
+
*
|
484 |
+
* You can change the link text by using the "puc_manual_check_link-$slug" filter.
|
485 |
+
* Returning an empty string from the filter will disable the link.
|
486 |
+
*
|
487 |
+
* @param array $pluginMeta Array of meta links.
|
488 |
+
* @param string $pluginFile
|
489 |
+
* @param array|null $pluginData Currently ignored.
|
490 |
+
* @param string|null $status Currently ignored.
|
491 |
+
* @return array
|
492 |
+
*/
|
493 |
+
|
494 |
+
/**
|
495 |
+
*
|
496 |
+
* @param type $pluginMeta
|
497 |
+
* @param type $pluginFile
|
498 |
+
* @param type $pluginData
|
499 |
+
* @param type $status
|
500 |
+
* @return type
|
501 |
+
*/
|
502 |
+
public function addCheckForUpdatesLink($pluginMeta, $pluginFile, $pluginData = null, $status = null) {
|
503 |
+
if ($pluginFile == $this->pluginFile && current_user_can('update_plugins')) {
|
504 |
+
$linkUrl = wp_nonce_url(
|
505 |
+
add_query_arg(
|
506 |
+
array(
|
507 |
+
'puc_check_for_updates' => 1,
|
508 |
+
'puc_slug' => $this->slug,
|
509 |
+
), is_network_admin() ? network_admin_url('plugins.php') : admin_url('plugins.php')
|
510 |
+
), 'puc_check_for_updates'
|
511 |
+
);
|
512 |
+
|
513 |
+
$linkText = apply_filters('puc_manual_check_link-' . $this->slug, 'Check for updates');
|
514 |
+
if (!empty($linkText)) {
|
515 |
+
$pluginMeta[] = sprintf('<a href="%s">%s</a>', esc_attr($linkUrl), $linkText);
|
516 |
+
}
|
517 |
+
}
|
518 |
+
return $pluginMeta;
|
519 |
+
}
|
520 |
+
|
521 |
+
/**
|
522 |
+
* Check for updates when the user clicks the "Check for updates" link.
|
523 |
+
* @see self::addCheckForUpdatesLink()
|
524 |
+
*
|
525 |
+
* @return void
|
526 |
+
*/
|
527 |
+
public function handleManualCheck() {
|
528 |
+
$shouldCheck =
|
529 |
+
isset($_GET['puc_check_for_updates'], $_GET['puc_slug'])
|
530 |
+
&& $_GET['puc_slug'] == $this->slug
|
531 |
+
&& current_user_can('update_plugins')
|
532 |
+
&& check_admin_referer('puc_check_for_updates');
|
533 |
+
|
534 |
+
if ($shouldCheck) {
|
535 |
+
$update = $this->checkForUpdates();
|
536 |
+
$status = ($update === null) ? 'no_update' : 'update_available';
|
537 |
+
wp_redirect(add_query_arg(
|
538 |
+
array(
|
539 |
+
'puc_update_check_result' => $status,
|
540 |
+
'puc_slug' => $this->slug,
|
541 |
+
), is_network_admin() ? network_admin_url('plugins.php') : admin_url('plugins.php')
|
542 |
+
));
|
543 |
+
}
|
544 |
+
}
|
545 |
+
|
546 |
+
/**
|
547 |
+
* Display the results of a manual update check.
|
548 |
+
* @see self::handleManualCheck()
|
549 |
+
*
|
550 |
+
* You can change the result message by using the "puc_manual_check_message-$slug" filter.
|
551 |
+
*/
|
552 |
+
public function displayManualCheckResult() {
|
553 |
+
if (isset($_GET['puc_update_check_result'], $_GET['puc_slug']) && ($_GET['puc_slug'] == $this->slug)) {
|
554 |
+
$status = strval($_GET['puc_update_check_result']);
|
555 |
+
if ($sta
|